Whamcloud - gitweb
e2fsck: handle preallocation for large PAGE_SIZE
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 BUILD_LDFLAGS
598 BUILD_CFLAGS
599 INCLUDES
600 DO_TEST_SUITE
601 ET_DIR
602 SS_DIR
603 LDFLAG_STATIC
604 root_sysconfdir
605 root_libdir
606 root_sbindir
607 root_bindir
608 root_prefix
609 UNIX_CMT
610 CYGWIN_CMT
611 LINUX_CMT
612 UNI_DIFF_OPTS
613 SEM_INIT_LIB
614 SOCKET_LIB
615 SIZEOF_OFF_T
616 SIZEOF_LONG_LONG
617 SIZEOF_LONG
618 SIZEOF_INT
619 SIZEOF_SHORT
620 BUILD_CC
621 MAKEINFO
622 STRIP
623 AR
624 LDCONFIG
625 PERL
626 SED
627 AWK
628 CHMOD
629 RM
630 CP
631 MV
632 LN_S
633 LN
634 ifNotGNUmake
635 ifGNUmake
636 BINARY_TYPE
637 POSUB
638 LTLIBINTL
639 LIBINTL
640 INTLLIBS
641 INTL_LIBTOOL_SUFFIX_PREFIX
642 INTLOBJS
643 GENCAT
644 INSTOBJEXT
645 DATADIRNAME
646 CATOBJEXT
647 USE_INCLUDED_LIBINTL
648 BUILD_INCLUDED_LIBINTL
649 INTLBISON
650 LTLIBICONV
651 LIBICONV
652 HAVE_WPRINTF
653 HAVE_SNPRINTF
654 HAVE_ASPRINTF
655 HAVE_POSIX_PRINTF
656 GLIBC21
657 ALLOCA
658 EGREP
659 GREP
660 RANLIB
661 MSGMERGE
662 XGETTEXT
663 GMSGFMT
664 MSGFMT
665 USE_NLS
666 MKINSTALLDIRS
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 SET_MAKE
671 VERSION
672 PACKAGE
673 GETTEXT_PACKAGE
674 UUIDD_CMT
675 E2INITRD_MAN
676 E2INITRD_PROG
677 FSCK_MAN
678 FSCK_PROG
679 DEFRAG_CMT
680 RESIZER_CMT
681 IMAGER_CMT
682 DEBUGFS_CMT
683 QUOTA_CMT
684 DEPPROFILED_LIBQUOTA
685 PROFILED_LIBQUOTA
686 DEPSTATIC_LIBQUOTA
687 STATIC_LIBQUOTA
688 DEPLIBQUOTA
689 LIBQUOTA
690 QUOTA_MAN_COMMENT
691 BLKID_CMT
692 DEPPROFILED_LIBBLKID
693 PROFILED_LIBBLKID
694 DEPSTATIC_LIBBLKID
695 STATIC_LIBBLKID
696 DEPLIBBLKID
697 LIBBLKID
698 UUID_CMT
699 DEPPROFILED_LIBUUID
700 PROFILED_LIBUUID
701 DEPSTATIC_LIBUUID
702 STATIC_LIBUUID
703 DEPLIBUUID
704 LIBUUID
705 PKG_CONFIG
706 TEST_IO_CMT
707 PRIVATE_LIBS_CMT
708 LDFLAG_DYNAMIC
709 PROFILED_LIB_EXT
710 STATIC_LIB_EXT
711 LIB_EXT
712 PROFILE_CMT
713 BSDLIB_CMT
714 ELF_CMT
715 HTREE_CMT
716 Q
717 ES
718 E
719 LINK_BUILD_FLAGS
720 SYMLINK_RELATIVE
721 LINK_INSTALL_FLAGS
722 MAINTAINER_CMT
723 CPP
724 RDYNAMIC
725 DLOPEN_LIB
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 E2FSPROGS_PKGVER
742 E2FSPROGS_VERSION
743 E2FSPROGS_DAY
744 E2FSPROGS_MONTH
745 E2FSPROGS_YEAR
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files='MCONFIG
785 MAKEFILE_ELF
786 MAKEFILE_BSDLIB
787 MAKEFILE_PROFILE
788 MAKEFILE_LIBRARY
789 ASM_TYPES_HEADER
790 PUBLIC_CONFIG_HEADER'
791 ac_user_opts='
792 enable_option_checking
793 with_diet_libc
794 with_cc
795 with_ccopts
796 with_ldopts
797 with_root_prefix
798 enable_maintainer_mode
799 enable_symlink_install
800 enable_relative_symlinks
801 enable_symlink_relative_symlinks
802 enable_symlink_build
803 enable_verbose_makecmds
804 enable_compression
805 enable_htree
806 enable_elf_shlibs
807 enable_bsd_shlibs
808 enable_profile
809 enable_gcov
810 enable_jbd_debug
811 enable_blkid_debug
812 enable_testio_debug
813 enable_libuuid
814 enable_libblkid
815 enable_quota
816 enable_backtrace
817 enable_debugfs
818 enable_imager
819 enable_resizer
820 enable_defrag
821 enable_fsck
822 enable_e2initrd_helper
823 enable_tls
824 enable_uuidd
825 enable_nls
826 with_gnu_ld
827 enable_rpath
828 with_libiconv_prefix
829 with_included_gettext
830 with_libintl_prefix
831 with_multiarch
832 '
833       ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 PKG_CONFIG'
843
844
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
866
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897   # If the previous option needs an argument, assign it.
898   if test -n "$ac_prev"; then
899     eval $ac_prev=\$ac_option
900     ac_prev=
901     continue
902   fi
903
904   case $ac_option in
905   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906   *)    ac_optarg=yes ;;
907   esac
908
909   # Accept the important Cygnus configure options, so we can diagnose typos.
910
911   case $ac_dashdash$ac_option in
912   --)
913     ac_dashdash=yes ;;
914
915   -bindir | --bindir | --bindi | --bind | --bin | --bi)
916     ac_prev=bindir ;;
917   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918     bindir=$ac_optarg ;;
919
920   -build | --build | --buil | --bui | --bu)
921     ac_prev=build_alias ;;
922   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923     build_alias=$ac_optarg ;;
924
925   -cache-file | --cache-file | --cache-fil | --cache-fi \
926   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927     ac_prev=cache_file ;;
928   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930     cache_file=$ac_optarg ;;
931
932   --config-cache | -C)
933     cache_file=config.cache ;;
934
935   -datadir | --datadir | --datadi | --datad)
936     ac_prev=datadir ;;
937   -datadir=* | --datadir=* | --datadi=* | --datad=*)
938     datadir=$ac_optarg ;;
939
940   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941   | --dataroo | --dataro | --datar)
942     ac_prev=datarootdir ;;
943   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945     datarootdir=$ac_optarg ;;
946
947   -disable-* | --disable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=\$ac_optarg ;;
988
989   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991   | --exec | --exe | --ex)
992     ac_prev=exec_prefix ;;
993   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995   | --exec=* | --exe=* | --ex=*)
996     exec_prefix=$ac_optarg ;;
997
998   -gas | --gas | --ga | --g)
999     # Obsolete; use --with-gas.
1000     with_gas=yes ;;
1001
1002   -help | --help | --hel | --he | -h)
1003     ac_init_help=long ;;
1004   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005     ac_init_help=recursive ;;
1006   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007     ac_init_help=short ;;
1008
1009   -host | --host | --hos | --ho)
1010     ac_prev=host_alias ;;
1011   -host=* | --host=* | --hos=* | --ho=*)
1012     host_alias=$ac_optarg ;;
1013
1014   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015     ac_prev=htmldir ;;
1016   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017   | --ht=*)
1018     htmldir=$ac_optarg ;;
1019
1020   -includedir | --includedir | --includedi | --included | --include \
1021   | --includ | --inclu | --incl | --inc)
1022     ac_prev=includedir ;;
1023   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024   | --includ=* | --inclu=* | --incl=* | --inc=*)
1025     includedir=$ac_optarg ;;
1026
1027   -infodir | --infodir | --infodi | --infod | --info | --inf)
1028     ac_prev=infodir ;;
1029   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030     infodir=$ac_optarg ;;
1031
1032   -libdir | --libdir | --libdi | --libd)
1033     ac_prev=libdir ;;
1034   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035     libdir=$ac_optarg ;;
1036
1037   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038   | --libexe | --libex | --libe)
1039     ac_prev=libexecdir ;;
1040   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041   | --libexe=* | --libex=* | --libe=*)
1042     libexecdir=$ac_optarg ;;
1043
1044   -localedir | --localedir | --localedi | --localed | --locale)
1045     ac_prev=localedir ;;
1046   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047     localedir=$ac_optarg ;;
1048
1049   -localstatedir | --localstatedir | --localstatedi | --localstated \
1050   | --localstate | --localstat | --localsta | --localst | --locals)
1051     ac_prev=localstatedir ;;
1052   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054     localstatedir=$ac_optarg ;;
1055
1056   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057     ac_prev=mandir ;;
1058   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059     mandir=$ac_optarg ;;
1060
1061   -nfp | --nfp | --nf)
1062     # Obsolete; use --without-fp.
1063     with_fp=no ;;
1064
1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066   | --no-cr | --no-c | -n)
1067     no_create=yes ;;
1068
1069   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071     no_recursion=yes ;;
1072
1073   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075   | --oldin | --oldi | --old | --ol | --o)
1076     ac_prev=oldincludedir ;;
1077   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080     oldincludedir=$ac_optarg ;;
1081
1082   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083     ac_prev=prefix ;;
1084   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085     prefix=$ac_optarg ;;
1086
1087   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088   | --program-pre | --program-pr | --program-p)
1089     ac_prev=program_prefix ;;
1090   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092     program_prefix=$ac_optarg ;;
1093
1094   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095   | --program-suf | --program-su | --program-s)
1096     ac_prev=program_suffix ;;
1097   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099     program_suffix=$ac_optarg ;;
1100
1101   -program-transform-name | --program-transform-name \
1102   | --program-transform-nam | --program-transform-na \
1103   | --program-transform-n | --program-transform- \
1104   | --program-transform | --program-transfor \
1105   | --program-transfo | --program-transf \
1106   | --program-trans | --program-tran \
1107   | --progr-tra | --program-tr | --program-t)
1108     ac_prev=program_transform_name ;;
1109   -program-transform-name=* | --program-transform-name=* \
1110   | --program-transform-nam=* | --program-transform-na=* \
1111   | --program-transform-n=* | --program-transform-=* \
1112   | --program-transform=* | --program-transfor=* \
1113   | --program-transfo=* | --program-transf=* \
1114   | --program-trans=* | --program-tran=* \
1115   | --progr-tra=* | --program-tr=* | --program-t=*)
1116     program_transform_name=$ac_optarg ;;
1117
1118   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119     ac_prev=pdfdir ;;
1120   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121     pdfdir=$ac_optarg ;;
1122
1123   -psdir | --psdir | --psdi | --psd | --ps)
1124     ac_prev=psdir ;;
1125   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126     psdir=$ac_optarg ;;
1127
1128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129   | -silent | --silent | --silen | --sile | --sil)
1130     silent=yes ;;
1131
1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133     ac_prev=sbindir ;;
1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135   | --sbi=* | --sb=*)
1136     sbindir=$ac_optarg ;;
1137
1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140   | --sharedst | --shareds | --shared | --share | --shar \
1141   | --sha | --sh)
1142     ac_prev=sharedstatedir ;;
1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146   | --sha=* | --sh=*)
1147     sharedstatedir=$ac_optarg ;;
1148
1149   -site | --site | --sit)
1150     ac_prev=site ;;
1151   -site=* | --site=* | --sit=*)
1152     site=$ac_optarg ;;
1153
1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155     ac_prev=srcdir ;;
1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157     srcdir=$ac_optarg ;;
1158
1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160   | --syscon | --sysco | --sysc | --sys | --sy)
1161     ac_prev=sysconfdir ;;
1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164     sysconfdir=$ac_optarg ;;
1165
1166   -target | --target | --targe | --targ | --tar | --ta | --t)
1167     ac_prev=target_alias ;;
1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169     target_alias=$ac_optarg ;;
1170
1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172     verbose=yes ;;
1173
1174   -version | --version | --versio | --versi | --vers | -V)
1175     ac_init_version=: ;;
1176
1177   -with-* | --with-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=\$ac_optarg ;;
1192
1193   -without-* | --without-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=no ;;
1208
1209   --x)
1210     # Obsolete; use --with-x.
1211     with_x=yes ;;
1212
1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214   | --x-incl | --x-inc | --x-in | --x-i)
1215     ac_prev=x_includes ;;
1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218     x_includes=$ac_optarg ;;
1219
1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222     ac_prev=x_libraries ;;
1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225     x_libraries=$ac_optarg ;;
1226
1227   -*) as_fn_error "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information."
1229     ;;
1230
1231   *=*)
1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233     # Reject names that are not valid shell variable names.
1234     case $ac_envvar in #(
1235       '' | [0-9]* | *[!_$as_cr_alnum]* )
1236       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1237     esac
1238     eval $ac_envvar=\$ac_optarg
1239     export $ac_envvar ;;
1240
1241   *)
1242     # FIXME: should be removed in autoconf 3.0.
1243     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247     ;;
1248
1249   esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254   as_fn_error "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258   case $enable_option_checking in
1259     no) ;;
1260     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1261     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262   esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267                 datadir sysconfdir sharedstatedir localstatedir includedir \
1268                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269                 libdir localedir mandir
1270 do
1271   eval ac_val=\$$ac_var
1272   # Remove trailing slashes.
1273   case $ac_val in
1274     */ )
1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276       eval $ac_var=\$ac_val;;
1277   esac
1278   # Be sure to have absolute directory names.
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298     If a cross compiler is detected then cross compile mode will be used." >&2
1299   elif test "x$build_alias" != "x$host_alias"; then
1300     cross_compiling=yes
1301   fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313   as_fn_error "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315   as_fn_error "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320   ac_srcdir_defaulted=yes
1321   # Try the directory containing this script, then the parent directory.
1322   ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324          X"$as_myself" : 'X\(//\)[^/]' \| \
1325          X"$as_myself" : 'X\(//\)$' \| \
1326          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)[^/].*/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\).*/{
1341             s//\1/
1342             q
1343           }
1344           s/.*/./; q'`
1345   srcdir=$ac_confdir
1346   if test ! -r "$srcdir/$ac_unique_file"; then
1347     srcdir=..
1348   fi
1349 else
1350   ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1359         pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362   srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_env_${ac_var}_value=\$${ac_var}
1373   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381   # Omit some internal or obsolete options to make the list less imposing.
1382   # This message is too long to be a string in the A/UX 3.1 sh.
1383   cat <<_ACEOF
1384 \`configure' configures this package to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394   -h, --help              display this help and exit
1395       --help=short        display options specific to this package
1396       --help=recursive    display the short help of all the included packages
1397   -V, --version           display version information and exit
1398   -q, --quiet, --silent   do not print \`checking...' messages
1399       --cache-file=FILE   cache test results in FILE [disabled]
1400   -C, --config-cache      alias for \`--cache-file=config.cache'
1401   -n, --no-create         do not create output files
1402       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405   --prefix=PREFIX         install architecture-independent files in PREFIX
1406                           [$ac_default_prefix]
1407   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                           [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418   --bindir=DIR            user executables [EPREFIX/bin]
1419   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420   --libexecdir=DIR        program executables [EPREFIX/libexec]
1421   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --enable-maintainer-mode enable makefile rules useful for maintainers
1456   --enable-symlink-install use symlinks when installing instead of hard links
1457   --enable-relative-symlinks use relative symlinks when installing
1458
1459   --enable-symlink-build  use symlinks while building instead of hard links
1460   --enable-verbose-makecmds enable verbose make command output
1461   --enable-compression    enable EXPERIMENTAL compression support
1462   --enable-htree          enable EXPERIMENTAL htree directory support
1463   --enable-elf-shlibs     select ELF shared libraries
1464   --enable-bsd-shlibs     select BSD shared libraries
1465   --enable-profile        build profiling libraries
1466   --enable-gcov           build for coverage testing using gcov
1467   --enable-jbd-debug      enable journal debugging
1468   --enable-blkid-debug    enable blkid debugging
1469   --disable-testio-debug  disable the use of the test I/O manager for debugging
1470   --disable-libuuid       do not build private uuid library
1471   --disable-libblkid      do not build private blkid library
1472   --enable-quota          enable quota support
1473   --disable-backtrace     disable use backtrace
1474   --disable-debugfs       disable support of debugfs program
1475   --disable-imager        disable support of e2image program
1476   --disable-resizer       disable support of e2resize program
1477   --disable-defrag        disable support of e4defrag program
1478   --enable-fsck           build fsck wrapper program
1479   --enable-e2initrd-helper build e2initrd-helper program
1480   --disable-tls           disable use of thread local support
1481   --disable-uuidd         disable building the uuid daemon
1482   --disable-nls           do not use Native Language Support
1483   --disable-rpath         do not hardcode runtime library paths
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-diet-libc        use diet libc
1489   --with-cc               no longer supported, use CC= instead
1490   --with-ccopts           no longer supported, use CFLAGS= instead
1491   --with-ldopts           no longer supported, use LDFLAGS= instead
1492   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1493   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1494   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1495   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1496   --with-included-gettext use the GNU gettext library included here
1497   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1498   --without-libintl-prefix     don't search for libintl in includedir and libdir
1499   --with-multiarch=ARCH specify the multiarch triplet
1500
1501 Some influential environment variables:
1502   CC          C compiler command
1503   CFLAGS      C compiler flags
1504   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505               nonstandard directory <lib dir>
1506   LIBS        libraries to pass to the linker, e.g. -l<library>
1507   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508               you have headers in a nonstandard directory <include dir>
1509   CPP         C preprocessor
1510   PKG_CONFIG  path to pkg-config utility
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to the package provider.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" ||
1524       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525       continue
1526     ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.65
1580
1581 Copyright (C) 2009 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   rm -f conftest.$ac_objext
1599   if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_compile") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } && {
1615          test -z "$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        } && test -s conftest.$ac_objext; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623         ac_retval=1
1624 fi
1625   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626   as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_link ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   rm -f conftest.$ac_objext conftest$ac_exeext
1637   if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_link") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } && {
1653          test -z "$ac_c_werror_flag" ||
1654          test ! -s conftest.err
1655        } && test -s conftest$ac_exeext && {
1656          test "$cross_compiling" = yes ||
1657          $as_test_x conftest$ac_exeext
1658        }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664         ac_retval=1
1665 fi
1666   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668   # interfere with the next link command; also delete a directory that is
1669   # left behind by Apple's compiler.  We do this before executing the actions.
1670   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_link
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } >/dev/null && {
1698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699          test ! -s conftest.err
1700        }; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706     ac_retval=1
1707 fi
1708   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>&5
1728   ac_status=$?
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731   { { case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_try") 2>&5
1738   ac_status=$?
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; }; }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: program exited with status $ac_status" >&5
1744        $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747        ac_retval=$ac_status
1748 fi
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1756 # -------------------------------------------
1757 # Tests whether TYPE exists after having included INCLUDES, setting cache
1758 # variable VAR accordingly.
1759 ac_fn_c_check_type ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   eval "$3=no"
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 $4
1771 int
1772 main ()
1773 {
1774 if (sizeof ($2))
1775          return 0;
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 int
1785 main ()
1786 {
1787 if (sizeof (($2)))
1788             return 0;
1789   ;
1790   return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794
1795 else
1796   eval "$3=yes"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_c_check_type
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858     which can conflict with char $2 (); below.
1859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860     <limits.h> exists even on freestanding compilers.  */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871    Use char because int might match the return type of a GCC
1872    builtin and then its argument prototype would still apply.  */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878     to always fail with ENOSYS.  Some functions are actually named
1879     something starting with __ and the normal name is an alias.  */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893   eval "$3=yes"
1894 else
1895   eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898     conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1911 # accordingly.
1912 ac_fn_c_check_header_mongrel ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919   $as_echo_n "(cached) " >&6
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 else
1925   # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934   ac_header_compiler=yes
1935 else
1936   ac_header_compiler=no
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1941
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950   ac_header_preproc=yes
1951 else
1952   ac_header_preproc=no
1953 fi
1954 rm -f conftest.err conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1957
1958 # So?  What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960   yes:no: )
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965     ;;
1966   no:yes:* )
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977     ;;
1978 esac
1979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982   $as_echo_n "(cached) " >&6
1983 else
1984   eval "$3=\$ac_header_compiler"
1985 fi
1986 eval ac_res=\$$3
1987                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 fi
1990   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991
1992 } # ac_fn_c_check_header_mongrel
1993
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 # computed
1999 ac_fn_c_compute_int ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   if test "$cross_compiling" = yes; then
2003     # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2011 test_array [0] = 0
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   ac_lo=0 ac_mid=0
2019   while :; do
2020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 test_array [0] = 0
2028
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   ac_hi=$ac_mid; break
2035 else
2036   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2037                         if test $ac_lo -le $ac_mid; then
2038                           ac_lo= ac_hi=
2039                           break
2040                         fi
2041                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044   done
2045 else
2046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 static int test_array [1 - 2 * !(($2) < 0)];
2053 test_array [0] = 0
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060   ac_hi=-1 ac_mid=-1
2061   while :; do
2062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2069 test_array [0] = 0
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   ac_lo=$ac_mid; break
2077 else
2078   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079                         if test $ac_mid -le $ac_hi; then
2080                           ac_lo= ac_hi=
2081                           break
2082                         fi
2083                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086   done
2087 else
2088   ac_lo= ac_hi=
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 test_array [0] = 0
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   ac_hi=$ac_mid
2111 else
2112   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 case $ac_lo in #((
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 '') ac_retval=1 ;;
2119 esac
2120   else
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 static long int longval () { return $2; }
2125 static unsigned long int ulongval () { return $2; }
2126 #include <stdio.h>
2127 #include <stdlib.h>
2128 int
2129 main ()
2130 {
2131
2132   FILE *f = fopen ("conftest.val", "w");
2133   if (! f)
2134     return 1;
2135   if (($2) < 0)
2136     {
2137       long int i = longval ();
2138       if (i != ($2))
2139         return 1;
2140       fprintf (f, "%ld", i);
2141     }
2142   else
2143     {
2144       unsigned long int i = ulongval ();
2145       if (i != ($2))
2146         return 1;
2147       fprintf (f, "%lu", i);
2148     }
2149   /* Do not output a trailing newline, as this causes \r\n confusion
2150      on some platforms.  */
2151   return ferror (f) || fclose (f) != 0;
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_run "$LINENO"; then :
2158   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2159 else
2160   ac_retval=1
2161 fi
2162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2163   conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 rm -f conftest.val
2165
2166   fi
2167   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168   as_fn_set_status $ac_retval
2169
2170 } # ac_fn_c_compute_int
2171
2172 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2173 # ----------------------------------------------------
2174 # Tries to find if the field MEMBER exists in type AGGR, after including
2175 # INCLUDES, setting cache variable VAR accordingly.
2176 ac_fn_c_check_member ()
2177 {
2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2180 $as_echo_n "checking for $2.$3... " >&6; }
2181 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2182   $as_echo_n "(cached) " >&6
2183 else
2184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h.  */
2186 $5
2187 int
2188 main ()
2189 {
2190 static $2 ac_aggr;
2191 if (ac_aggr.$3)
2192 return 0;
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198   eval "$4=yes"
2199 else
2200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $5
2203 int
2204 main ()
2205 {
2206 static $2 ac_aggr;
2207 if (sizeof ac_aggr.$3)
2208 return 0;
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214   eval "$4=yes"
2215 else
2216   eval "$4=no"
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 fi
2222 eval ac_res=\$$4
2223                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226
2227 } # ac_fn_c_check_member
2228
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR
2230 # ------------------------------------
2231 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2232 ac_fn_c_check_decl ()
2233 {
2234   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2236 $as_echo_n "checking whether $2 is declared... " >&6; }
2237 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2238   $as_echo_n "(cached) " >&6
2239 else
2240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 int
2244 main ()
2245 {
2246 #ifndef $2
2247   (void) $2;
2248 #endif
2249
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255   eval "$3=yes"
2256 else
2257   eval "$3=no"
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 eval ac_res=\$$3
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265
2266 } # ac_fn_c_check_decl
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2270
2271 It was created by $as_me, which was
2272 generated by GNU Autoconf 2.65.  Invocation command line was
2273
2274   $ $0 $@
2275
2276 _ACEOF
2277 exec 5>>config.log
2278 {
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2283
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2292
2293 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2294 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2297 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2298 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2299 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2300
2301 _ASUNAME
2302
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308     $as_echo "PATH: $as_dir"
2309   done
2310 IFS=$as_save_IFS
2311
2312 } >&5
2313
2314 cat >&5 <<_ACEOF
2315
2316
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2320
2321 _ACEOF
2322
2323
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2334 do
2335   for ac_arg
2336   do
2337     case $ac_arg in
2338     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340     | -silent | --silent | --silen | --sile | --sil)
2341       continue ;;
2342     *\'*)
2343       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     esac
2345     case $ac_pass in
2346     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347     2)
2348       as_fn_append ac_configure_args1 " '$ac_arg'"
2349       if test $ac_must_keep_next = true; then
2350         ac_must_keep_next=false # Got value, back to normal.
2351       else
2352         case $ac_arg in
2353           *=* | --config-cache | -C | -disable-* | --disable-* \
2354           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356           | -with-* | --with-* | -without-* | --without-* | --x)
2357             case "$ac_configure_args0 " in
2358               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359             esac
2360             ;;
2361           -* ) ac_must_keep_next=true ;;
2362         esac
2363       fi
2364       as_fn_append ac_configure_args " '$ac_arg'"
2365       ;;
2366     esac
2367   done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2371
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log.  We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378   # Save into config.log some information that might help in debugging.
2379   {
2380     echo
2381
2382     cat <<\_ASBOX
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2386 _ASBOX
2387     echo
2388     # The following way of writing the cache mishandles newlines in values,
2389 (
2390   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391     eval ac_val=\$$ac_var
2392     case $ac_val in #(
2393     *${as_nl}*)
2394       case $ac_var in #(
2395       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397       esac
2398       case $ac_var in #(
2399       _ | IFS | as_nl) ;; #(
2400       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401       *) { eval $ac_var=; unset $ac_var;} ;;
2402       esac ;;
2403     esac
2404   done
2405   (set) 2>&1 |
2406     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407     *${as_nl}ac_space=\ *)
2408       sed -n \
2409         "s/'\''/'\''\\\\'\'''\''/g;
2410           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411       ;; #(
2412     *)
2413       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2414       ;;
2415     esac |
2416     sort
2417 )
2418     echo
2419
2420     cat <<\_ASBOX
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2424 _ASBOX
2425     echo
2426     for ac_var in $ac_subst_vars
2427     do
2428       eval ac_val=\$$ac_var
2429       case $ac_val in
2430       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431       esac
2432       $as_echo "$ac_var='\''$ac_val'\''"
2433     done | sort
2434     echo
2435
2436     if test -n "$ac_subst_files"; then
2437       cat <<\_ASBOX
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2441 _ASBOX
2442       echo
2443       for ac_var in $ac_subst_files
2444       do
2445         eval ac_val=\$$ac_var
2446         case $ac_val in
2447         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448         esac
2449         $as_echo "$ac_var='\''$ac_val'\''"
2450       done | sort
2451       echo
2452     fi
2453
2454     if test -s confdefs.h; then
2455       cat <<\_ASBOX
2456 ## ----------- ##
2457 ## confdefs.h. ##
2458 ## ----------- ##
2459 _ASBOX
2460       echo
2461       cat confdefs.h
2462       echo
2463     fi
2464     test "$ac_signal" != 0 &&
2465       $as_echo "$as_me: caught signal $ac_signal"
2466     $as_echo "$as_me: exit $exit_status"
2467   } >&5
2468   rm -f core *.core core.conftest.* &&
2469     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2470     exit $exit_status
2471 ' 0
2472 for ac_signal in 1 2 13 15; do
2473   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 done
2475 ac_signal=0
2476
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2479
2480 $as_echo "/* confdefs.h */" > confdefs.h
2481
2482 # Predefined preprocessor variables.
2483
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2486 _ACEOF
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2490 _ACEOF
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2506 _ACEOF
2507
2508
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2511 ac_site_file1=NONE
2512 ac_site_file2=NONE
2513 if test -n "$CONFIG_SITE"; then
2514   ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516   ac_site_file1=$prefix/share/config.site
2517   ac_site_file2=$prefix/etc/config.site
2518 else
2519   ac_site_file1=$ac_default_prefix/share/config.site
2520   ac_site_file2=$ac_default_prefix/etc/config.site
2521 fi
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 do
2524   test "x$ac_site_file" = xNONE && continue
2525   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528     sed 's/^/| /' "$ac_site_file" >&5
2529     . "$ac_site_file"
2530   fi
2531 done
2532
2533 if test -r "$cache_file"; then
2534   # Some versions of bash will fail to source /dev/null (special files
2535   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2536   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539     case $cache_file in
2540       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541       *)                      . "./$cache_file";;
2542     esac
2543   fi
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2547   >$cache_file
2548 fi
2549
2550 as_fn_append ac_header_list " stdlib.h"
2551 as_fn_append ac_header_list " unistd.h"
2552 as_fn_append ac_header_list " sys/param.h"
2553 # Check that the precious variables saved in the cache have kept the same
2554 # value.
2555 ac_cache_corrupted=false
2556 for ac_var in $ac_precious_vars; do
2557   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558   eval ac_new_set=\$ac_env_${ac_var}_set
2559   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560   eval ac_new_val=\$ac_env_${ac_var}_value
2561   case $ac_old_set,$ac_new_set in
2562     set,)
2563       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565       ac_cache_corrupted=: ;;
2566     ,set)
2567       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569       ac_cache_corrupted=: ;;
2570     ,);;
2571     *)
2572       if test "x$ac_old_val" != "x$ac_new_val"; then
2573         # differences in whitespace do not lead to failure.
2574         ac_old_val_w=`echo x $ac_old_val`
2575         ac_new_val_w=`echo x $ac_new_val`
2576         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579           ac_cache_corrupted=:
2580         else
2581           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583           eval $ac_var=\$ac_old_val
2584         fi
2585         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2586 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2587         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2589       fi;;
2590   esac
2591   # Pass precious variables to config.status.
2592   if test "$ac_new_set" = set; then
2593     case $ac_new_val in
2594     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595     *) ac_arg=$ac_var=$ac_new_val ;;
2596     esac
2597     case " $ac_configure_args " in
2598       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2599       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600     esac
2601   fi
2602 done
2603 if $ac_cache_corrupted; then
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2609 fi
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621
2622 ac_aux_dir=
2623 for ac_dir in config "$srcdir"/config; do
2624   for ac_t in install-sh install.sh shtool; do
2625     if test -f "$ac_dir/$ac_t"; then
2626       ac_aux_dir=$ac_dir
2627       ac_install_sh="$ac_aux_dir/$ac_t -c"
2628       break 2
2629     fi
2630   done
2631 done
2632 if test -z "$ac_aux_dir"; then
2633   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2634 fi
2635
2636 # These three variables are undocumented and unsupported,
2637 # and are intended to be withdrawn in a future Autoconf release.
2638 # They can cause serious problems if a builder's source tree is in a directory
2639 # whose full name contains unusual characters.
2640 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2641 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2642 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2643
2644
2645 ac_config_headers="$ac_config_headers lib/config.h"
2646
2647
2648 MCONFIG=./MCONFIG
2649
2650 BINARY_TYPE=bin
2651 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2652         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2653 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2654         | tr \" " "`
2655 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2656 MONTH=`echo $DATE | awk -F- '{print $2}'`
2657 YEAR=`echo $DATE | awk -F- '{print $3}'`
2658
2659 if expr $YEAR ">" 1900 > /dev/null ; then
2660         E2FSPROGS_YEAR=$YEAR
2661 elif expr $YEAR ">" 90 >/dev/null ; then
2662         E2FSPROGS_YEAR=19$YEAR
2663 else
2664         E2FSPROGS_YEAR=20$YEAR
2665 fi
2666
2667 case $MONTH in
2668 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2669 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2670 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2671 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2672 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2673 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2674 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2675 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2676 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2677 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2678 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2679 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2680 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2681 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2682 esac
2683
2684 base_ver=`echo $E2FSPROGS_VERSION | \
2685                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2686
2687 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2688
2689 case $E2FSPROGS_VERSION in
2690 *-WIP|pre-*)
2691         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2692         ;;
2693 *)
2694         E2FSPROGS_PKGVER="$base_ver"
2695         ;;
2696 esac
2697
2698 unset DATE MONTH YEAR base_ver pre_vers date_spec
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2700 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2702 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2703
2704
2705
2706
2707
2708 WITH_DIET_LIBC=
2709
2710 # Check whether --with-diet-libc was given.
2711 if test "${with_diet_libc+set}" = set; then :
2712   withval=$with_diet_libc; CC="diet cc -nostdinc"
2713 WITH_DIET_LIBC=yes
2714 if test -z "$LIBS"
2715 then
2716         LIBS="-lcompat"
2717 else
2718         LIBS="$LIBS -lcompat"
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2721 $as_echo "CC=$CC" >&6; }
2722 fi
2723 # Make sure we can run config.sub.
2724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2725   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2728 $as_echo_n "checking build system type... " >&6; }
2729 if test "${ac_cv_build+set}" = set; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   ac_build_alias=$build_alias
2733 test "x$ac_build_alias" = x &&
2734   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2735 test "x$ac_build_alias" = x &&
2736   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2737 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2738   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2739
2740 fi
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2742 $as_echo "$ac_cv_build" >&6; }
2743 case $ac_cv_build in
2744 *-*-*) ;;
2745 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2746 esac
2747 build=$ac_cv_build
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_build
2750 shift
2751 build_cpu=$1
2752 build_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 build_os=$*
2757 IFS=$ac_save_IFS
2758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2759
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2762 $as_echo_n "checking host system type... " >&6; }
2763 if test "${ac_cv_host+set}" = set; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   if test "x$host_alias" = x; then
2767   ac_cv_host=$ac_cv_build
2768 else
2769   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2770     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2771 fi
2772
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2775 $as_echo "$ac_cv_host" >&6; }
2776 case $ac_cv_host in
2777 *-*-*) ;;
2778 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2779 esac
2780 host=$ac_cv_host
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_host
2783 shift
2784 host_cpu=$1
2785 host_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 host_os=$*
2790 IFS=$ac_save_IFS
2791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2792
2793
2794 DLOPEN_LIB=''
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_CC+set}" = set; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$CC"; then
2809   ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 CC=$ac_cv_prog_CC
2829 if test -n "$CC"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 fi
2839 if test -z "$ac_cv_prog_CC"; then
2840   ac_ct_CC=$CC
2841   # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$ac_ct_CC"; then
2849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_ac_ct_CC="gcc"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877   if test "x$ac_ct_CC" = x; then
2878     CC=""
2879   else
2880     case $cross_compiling:$ac_tool_warned in
2881 yes:)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     CC=$ac_ct_CC
2887   fi
2888 else
2889   CC="$ac_cv_prog_CC"
2890 fi
2891
2892 if test -z "$CC"; then
2893           if test -n "$ac_tool_prefix"; then
2894     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   if test -n "$CC"; then
2902   ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907   IFS=$as_save_IFS
2908   test -z "$as_dir" && as_dir=.
2909     for ac_exec_ext in '' $ac_executable_extensions; do
2910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911     ac_cv_prog_CC="${ac_tool_prefix}cc"
2912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913     break 2
2914   fi
2915 done
2916   done
2917 IFS=$as_save_IFS
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 fi
2929
2930
2931   fi
2932 fi
2933 if test -z "$CC"; then
2934   # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944   ac_prog_rejected=no
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950     for ac_exec_ext in '' $ac_executable_extensions; do
2951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953        ac_prog_rejected=yes
2954        continue
2955      fi
2956     ac_cv_prog_CC="cc"
2957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961   done
2962 IFS=$as_save_IFS
2963
2964 if test $ac_prog_rejected = yes; then
2965   # We found a bogon in the path, so make sure we never use it.
2966   set dummy $ac_cv_prog_CC
2967   shift
2968   if test $# != 0; then
2969     # We chose a different compiler from the bogus one.
2970     # However, it has the same basename, so the bogon will be chosen
2971     # first if we set CC to just the basename; use the full file name.
2972     shift
2973     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974   fi
2975 fi
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 fi
2989 if test -z "$CC"; then
2990   if test -n "$ac_tool_prefix"; then
2991   for ac_prog in cl.exe
2992   do
2993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$CC"; then
3001   ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030     test -n "$CC" && break
3031   done
3032 fi
3033 if test -z "$CC"; then
3034   ac_ct_CC=$CC
3035   for ac_prog in cl.exe
3036 do
3037   # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$ac_ct_CC"; then
3045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_ac_ct_CC="$ac_prog"
3055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059   done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074   test -n "$ac_ct_CC" && break
3075 done
3076
3077   if test "x$ac_ct_CC" = x; then
3078     CC=""
3079   else
3080     case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086     CC=$ac_ct_CC
3087   fi
3088 fi
3089
3090 fi
3091
3092
3093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error "no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." "$LINENO" 5; }
3097
3098 # Provide some information about the compiler.
3099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100 set X $ac_compile
3101 ac_compiler=$2
3102 for ac_option in --version -v -V -qversion; do
3103   { { ac_try="$ac_compiler $ac_option >&5"
3104 case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3111   ac_status=$?
3112   if test -s conftest.err; then
3113     sed '10a\
3114 ... rest of stderr output deleted ...
3115          10q' conftest.err >conftest.er1
3116     cat conftest.er1 >&5
3117   fi
3118   rm -f conftest.er1 conftest.err
3119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120   test $ac_status = 0; }
3121 done
3122
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 ac_clean_files_save=$ac_clean_files
3135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136 # Try to create an executable without -o first, disregard a.out.
3137 # It will help us diagnose broken compilers, and finding out an intuition
3138 # of exeext.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140 $as_echo_n "checking whether the C compiler works... " >&6; }
3141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142
3143 # The possible output files:
3144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
3146 ac_rmfiles=
3147 for ac_file in $ac_files
3148 do
3149   case $ac_file in
3150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3152   esac
3153 done
3154 rm -f $ac_rmfiles
3155
3156 if { { ac_try="$ac_link_default"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163   (eval "$ac_link_default") 2>&5
3164   ac_status=$?
3165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166   test $ac_status = 0; }; then :
3167   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3170 # so that the user can short-circuit this test for compilers unknown to
3171 # Autoconf.
3172 for ac_file in $ac_files ''
3173 do
3174   test -f "$ac_file" || continue
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177         ;;
3178     [ab].out )
3179         # We found the default executable, but exeext='' is most
3180         # certainly right.
3181         break;;
3182     *.* )
3183         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184         then :; else
3185            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186         fi
3187         # We set ac_cv_exeext here because the later test for it is not
3188         # safe: cross compilers may not add the suffix if given an `-o'
3189         # argument, so we may need to know it at that point already.
3190         # Even if this section looks crufty: it has the advantage of
3191         # actually working.
3192         break;;
3193     * )
3194         break;;
3195   esac
3196 done
3197 test "$ac_cv_exeext" = no && ac_cv_exeext=
3198
3199 else
3200   ac_file=''
3201 fi
3202 if test -z "$ac_file"; then :
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 { as_fn_set_status 77
3211 as_fn_error "C compiler cannot create executables
3212 See \`config.log' for more details." "$LINENO" 5; }; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3218 $as_echo_n "checking for C compiler default output file name... " >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3220 $as_echo "$ac_file" >&6; }
3221 ac_exeext=$ac_cv_exeext
3222
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3226 $as_echo_n "checking for suffix of executables... " >&6; }
3227 if { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234   (eval "$ac_link") 2>&5
3235   ac_status=$?
3236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237   test $ac_status = 0; }; then :
3238   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243   test -f "$ac_file" || continue
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247           break;;
3248     * ) break;;
3249   esac
3250 done
3251 else
3252   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." "$LINENO" 5; }
3256 fi
3257 rm -f conftest conftest$ac_cv_exeext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3259 $as_echo "$ac_cv_exeext" >&6; }
3260
3261 rm -f conftest.$ac_ext
3262 EXEEXT=$ac_cv_exeext
3263 ac_exeext=$EXEEXT
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h.  */
3266 #include <stdio.h>
3267 int
3268 main ()
3269 {
3270 FILE *f = fopen ("conftest.out", "w");
3271  return ferror (f) || fclose (f) != 0;
3272
3273   ;
3274   return 0;
3275 }
3276 _ACEOF
3277 ac_clean_files="$ac_clean_files conftest.out"
3278 # Check that the compiler produces executables we can run.  If not, either
3279 # the compiler is broken, or we cross compile.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3281 $as_echo_n "checking whether we are cross compiling... " >&6; }
3282 if test "$cross_compiling" != yes; then
3283   { { ac_try="$ac_link"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }
3294   if { ac_try='./conftest$ac_cv_exeext'
3295   { { case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }; }; then
3305     cross_compiling=no
3306   else
3307     if test "$cross_compiling" = maybe; then
3308         cross_compiling=yes
3309     else
3310         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error "cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." "$LINENO" 5; }
3315     fi
3316   fi
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3324 $as_echo_n "checking for suffix of object files... " >&6; }
3325 if test "${ac_cv_objext+set}" = set; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334
3335   ;
3336   return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.o conftest.obj
3340 if { { ac_try="$ac_compile"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347   (eval "$ac_compile") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }; then :
3351   for ac_file in conftest.o conftest.obj conftest.*; do
3352   test -f "$ac_file" || continue;
3353   case $ac_file in
3354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356        break;;
3357   esac
3358 done
3359 else
3360   $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error "cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." "$LINENO" 5; }
3367 fi
3368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3371 $as_echo "$ac_cv_objext" >&6; }
3372 OBJEXT=$ac_cv_objext
3373 ac_objext=$OBJEXT
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3376 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385 #ifndef __GNUC__
3386        choke me
3387 #endif
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394   ac_compiler_gnu=yes
3395 else
3396   ac_compiler_gnu=no
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404 if test $ac_compiler_gnu = yes; then
3405   GCC=yes
3406 else
3407   GCC=
3408 fi
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3413 if test "${ac_cv_prog_cc_g+set}" = set; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   ac_save_c_werror_flag=$ac_c_werror_flag
3417    ac_c_werror_flag=yes
3418    ac_cv_prog_cc_g=no
3419    CFLAGS="-g"
3420    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h.  */
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432   ac_cv_prog_cc_g=yes
3433 else
3434   CFLAGS=""
3435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437
3438 int
3439 main ()
3440 {
3441
3442   ;
3443   return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447
3448 else
3449   ac_c_werror_flag=$ac_save_c_werror_flag
3450          CFLAGS="-g"
3451          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453
3454 int
3455 main ()
3456 {
3457
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463   ac_cv_prog_cc_g=yes
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470    ac_c_werror_flag=$ac_save_c_werror_flag
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3473 $as_echo "$ac_cv_prog_cc_g" >&6; }
3474 if test "$ac_test_CFLAGS" = set; then
3475   CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477   if test "$GCC" = yes; then
3478     CFLAGS="-g -O2"
3479   else
3480     CFLAGS="-g"
3481   fi
3482 else
3483   if test "$GCC" = yes; then
3484     CFLAGS="-O2"
3485   else
3486     CFLAGS=
3487   fi
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3491 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   ac_cv_prog_cc_c89=no
3495 ac_save_CC=$CC
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498 #include <stdarg.h>
3499 #include <stdio.h>
3500 #include <sys/types.h>
3501 #include <sys/stat.h>
3502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3503 struct buf { int x; };
3504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3505 static char *e (p, i)
3506      char **p;
3507      int i;
3508 {
3509   return p[i];
3510 }
3511 static char *f (char * (*g) (char **, int), char **p, ...)
3512 {
3513   char *s;
3514   va_list v;
3515   va_start (v,p);
3516   s = g (p, va_arg (v,int));
3517   va_end (v);
3518   return s;
3519 }
3520
3521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3522    function prototypes and stuff, but not '\xHH' hex character constants.
3523    These don't provoke an error unfortunately, instead are silently treated
3524    as 'x'.  The following induces an error, until -std is added to get
3525    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3526    array size at least.  It's necessary to write '\x00'==0 to get something
3527    that's true only with -std.  */
3528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3529
3530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3531    inside strings and character constants.  */
3532 #define FOO(x) 'x'
3533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3550         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3551 do
3552   CC="$ac_save_CC $ac_arg"
3553   if ac_fn_c_try_compile "$LINENO"; then :
3554   ac_cv_prog_cc_c89=$ac_arg
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext
3557   test "x$ac_cv_prog_cc_c89" != "xno" && break
3558 done
3559 rm -f conftest.$ac_ext
3560 CC=$ac_save_CC
3561
3562 fi
3563 # AC_CACHE_VAL
3564 case "x$ac_cv_prog_cc_c89" in
3565   x)
3566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 $as_echo "none needed" >&6; } ;;
3568   xno)
3569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3570 $as_echo "unsupported" >&6; } ;;
3571   *)
3572     CC="$CC $ac_cv_prog_cc_c89"
3573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3575 esac
3576 if test "x$ac_cv_prog_cc_c89" != xno; then :
3577
3578 fi
3579
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585
3586
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3590   $as_echo_n "(cached) " >&6
3591 else
3592   ac_check_lib_save_LIBS=$LIBS
3593 LIBS="-ldl  $LIBS"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596
3597 /* Override any GCC internal prototype to avoid an error.
3598    Use char because int might match the return type of a GCC
3599    builtin and then its argument prototype would still apply.  */
3600 #ifdef __cplusplus
3601 extern "C"
3602 #endif
3603 char dlopen ();
3604 int
3605 main ()
3606 {
3607 return dlopen ();
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_link "$LINENO"; then :
3613   ac_cv_lib_dl_dlopen=yes
3614 else
3615   ac_cv_lib_dl_dlopen=no
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext \
3618     conftest$ac_exeext conftest.$ac_ext
3619 LIBS=$ac_check_lib_save_LIBS
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3624   DLOPEN_LIB=-ldl
3625
3626 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3627
3628 fi
3629
3630
3631
3632 # Check whether --with-cc was given.
3633 if test "${with_cc+set}" = set; then :
3634   withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3635 fi
3636
3637
3638 # Check whether --with-ccopts was given.
3639 if test "${with_ccopts+set}" = set; then :
3640   withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3641 fi
3642
3643
3644 # Check whether --with-ldopts was given.
3645 if test "${with_ldopts+set}" = set; then :
3646   withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3647 fi
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 if test -n "$ac_tool_prefix"; then
3655   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3656 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_CC+set}" = set; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   if test -n "$CC"; then
3663   ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670     for ac_exec_ext in '' $ac_executable_extensions; do
3671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674     break 2
3675   fi
3676 done
3677   done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3686 else
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 fi
3690
3691
3692 fi
3693 if test -z "$ac_cv_prog_CC"; then
3694   ac_ct_CC=$CC
3695   # Extract the first word of "gcc", so it can be a program name with args.
3696 set dummy gcc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_exec_ext in '' $ac_executable_extensions; do
3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712     ac_cv_prog_ac_ct_CC="gcc"
3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717   done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731   if test "x$ac_ct_CC" = x; then
3732     CC=""
3733   else
3734     case $cross_compiling:$ac_tool_warned in
3735 yes:)
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3739 esac
3740     CC=$ac_ct_CC
3741   fi
3742 else
3743   CC="$ac_cv_prog_CC"
3744 fi
3745
3746 if test -z "$CC"; then
3747           if test -n "$ac_tool_prefix"; then
3748     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}cc; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_CC+set}" = set; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   if test -n "$CC"; then
3756   ac_cv_prog_CC="$CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763     for ac_exec_ext in '' $ac_executable_extensions; do
3764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765     ac_cv_prog_CC="${ac_tool_prefix}cc"
3766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767     break 2
3768   fi
3769 done
3770   done
3771 IFS=$as_save_IFS
3772
3773 fi
3774 fi
3775 CC=$ac_cv_prog_CC
3776 if test -n "$CC"; then
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3779 else
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 fi
3783
3784
3785   fi
3786 fi
3787 if test -z "$CC"; then
3788   # Extract the first word of "cc", so it can be a program name with args.
3789 set dummy cc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_CC+set}" = set; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   if test -n "$CC"; then
3796   ac_cv_prog_CC="$CC" # Let the user override the test.
3797 else
3798   ac_prog_rejected=no
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3807        ac_prog_rejected=yes
3808        continue
3809      fi
3810     ac_cv_prog_CC="cc"
3811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815   done
3816 IFS=$as_save_IFS
3817
3818 if test $ac_prog_rejected = yes; then
3819   # We found a bogon in the path, so make sure we never use it.
3820   set dummy $ac_cv_prog_CC
3821   shift
3822   if test $# != 0; then
3823     # We chose a different compiler from the bogus one.
3824     # However, it has the same basename, so the bogon will be chosen
3825     # first if we set CC to just the basename; use the full file name.
3826     shift
3827     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3828   fi
3829 fi
3830 fi
3831 fi
3832 CC=$ac_cv_prog_CC
3833 if test -n "$CC"; then
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3836 else
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3839 fi
3840
3841
3842 fi
3843 if test -z "$CC"; then
3844   if test -n "$ac_tool_prefix"; then
3845   for ac_prog in cl.exe
3846   do
3847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -n "$CC"; then
3855   ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884     test -n "$CC" && break
3885   done
3886 fi
3887 if test -z "$CC"; then
3888   ac_ct_CC=$CC
3889   for ac_prog in cl.exe
3890 do
3891   # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   if test -n "$ac_ct_CC"; then
3899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906     for ac_exec_ext in '' $ac_executable_extensions; do
3907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908     ac_cv_prog_ac_ct_CC="$ac_prog"
3909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913   done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3919 if test -n "$ac_ct_CC"; then
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3921 $as_echo "$ac_ct_CC" >&6; }
3922 else
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928   test -n "$ac_ct_CC" && break
3929 done
3930
3931   if test "x$ac_ct_CC" = x; then
3932     CC=""
3933   else
3934     case $cross_compiling:$ac_tool_warned in
3935 yes:)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3939 esac
3940     CC=$ac_ct_CC
3941   fi
3942 fi
3943
3944 fi
3945
3946
3947 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error "no acceptable C compiler found in \$PATH
3950 See \`config.log' for more details." "$LINENO" 5; }
3951
3952 # Provide some information about the compiler.
3953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3954 set X $ac_compile
3955 ac_compiler=$2
3956 for ac_option in --version -v -V -qversion; do
3957   { { ac_try="$ac_compiler $ac_option >&5"
3958 case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3965   ac_status=$?
3966   if test -s conftest.err; then
3967     sed '10a\
3968 ... rest of stderr output deleted ...
3969          10q' conftest.err >conftest.er1
3970     cat conftest.er1 >&5
3971   fi
3972   rm -f conftest.er1 conftest.err
3973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974   test $ac_status = 0; }
3975 done
3976
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3979 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988 #ifndef __GNUC__
3989        choke me
3990 #endif
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997   ac_compiler_gnu=yes
3998 else
3999   ac_compiler_gnu=no
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4007 if test $ac_compiler_gnu = yes; then
4008   GCC=yes
4009 else
4010   GCC=
4011 fi
4012 ac_test_CFLAGS=${CFLAGS+set}
4013 ac_save_CFLAGS=$CFLAGS
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4016 if test "${ac_cv_prog_cc_g+set}" = set; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   ac_save_c_werror_flag=$ac_c_werror_flag
4020    ac_c_werror_flag=yes
4021    ac_cv_prog_cc_g=no
4022    CFLAGS="-g"
4023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h.  */
4025
4026 int
4027 main ()
4028 {
4029
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035   ac_cv_prog_cc_g=yes
4036 else
4037   CFLAGS=""
4038       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h.  */
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050
4051 else
4052   ac_c_werror_flag=$ac_save_c_werror_flag
4053          CFLAGS="-g"
4054          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066   ac_cv_prog_cc_g=yes
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073    ac_c_werror_flag=$ac_save_c_werror_flag
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4076 $as_echo "$ac_cv_prog_cc_g" >&6; }
4077 if test "$ac_test_CFLAGS" = set; then
4078   CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080   if test "$GCC" = yes; then
4081     CFLAGS="-g -O2"
4082   else
4083     CFLAGS="-g"
4084   fi
4085 else
4086   if test "$GCC" = yes; then
4087     CFLAGS="-O2"
4088   else
4089     CFLAGS=
4090   fi
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4094 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4095   $as_echo_n "(cached) " >&6
4096 else
4097   ac_cv_prog_cc_c89=no
4098 ac_save_CC=$CC
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #include <stdarg.h>
4102 #include <stdio.h>
4103 #include <sys/types.h>
4104 #include <sys/stat.h>
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4109      char **p;
4110      int i;
4111 {
4112   return p[i];
4113 }
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4115 {
4116   char *s;
4117   va_list v;
4118   va_start (v,p);
4119   s = g (p, va_arg (v,int));
4120   va_end (v);
4121   return s;
4122 }
4123
4124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4125    function prototypes and stuff, but not '\xHH' hex character constants.
4126    These don't provoke an error unfortunately, instead are silently treated
4127    as 'x'.  The following induces an error, until -std is added to get
4128    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4129    array size at least.  It's necessary to write '\x00'==0 to get something
4130    that's true only with -std.  */
4131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4132
4133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4134    inside strings and character constants.  */
4135 #define FOO(x) 'x'
4136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4137
4138 int test (int i, double x);
4139 struct s1 {int (*f) (int a);};
4140 struct s2 {int (*f) (double a);};
4141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4142 int argc;
4143 char **argv;
4144 int
4145 main ()
4146 {
4147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4153         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 do
4155   CC="$ac_save_CC $ac_arg"
4156   if ac_fn_c_try_compile "$LINENO"; then :
4157   ac_cv_prog_cc_c89=$ac_arg
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext
4160   test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 done
4162 rm -f conftest.$ac_ext
4163 CC=$ac_save_CC
4164
4165 fi
4166 # AC_CACHE_VAL
4167 case "x$ac_cv_prog_cc_c89" in
4168   x)
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 $as_echo "none needed" >&6; } ;;
4171   xno)
4172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4173 $as_echo "unsupported" >&6; } ;;
4174   *)
4175     CC="$CC $ac_cv_prog_cc_c89"
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4178 esac
4179 if test "x$ac_cv_prog_cc_c89" != xno; then :
4180
4181 fi
4182
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189 if test "$GCC" = yes; then
4190    RDYNAMIC="-rdynamic"
4191
4192 fi
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4202   CPP=
4203 fi
4204 if test -z "$CPP"; then
4205   if test "${ac_cv_prog_CPP+set}" = set; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208       # Double quotes because CPP needs to be expanded
4209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210     do
4211       ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4213 do
4214   # Use a header file that comes with gcc, so configuring glibc
4215   # with a fresh cross-compiler works.
4216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217   # <limits.h> exists even on freestanding compilers.
4218   # On the NeXT, cc -E runs the code through the compiler's parser,
4219   # not just through cpp. "Syntax error" is here to catch this case.
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227                      Syntax error
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230
4231 else
4232   # Broken: fails on valid input.
4233 continue
4234 fi
4235 rm -f conftest.err conftest.$ac_ext
4236
4237   # OK, works on sane cases.  Now check whether nonexistent headers
4238   # can be detected and how.
4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h.  */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244   # Broken: success on invalid input.
4245 continue
4246 else
4247   # Passes both tests.
4248 ac_preproc_ok=:
4249 break
4250 fi
4251 rm -f conftest.err conftest.$ac_ext
4252
4253 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4257   break
4258 fi
4259
4260     done
4261     ac_cv_prog_CPP=$CPP
4262
4263 fi
4264   CPP=$ac_cv_prog_CPP
4265 else
4266   ac_cv_prog_CPP=$CPP
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4270 ac_preproc_ok=false
4271 for ac_c_preproc_warn_flag in '' yes
4272 do
4273   # Use a header file that comes with gcc, so configuring glibc
4274   # with a fresh cross-compiler works.
4275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276   # <limits.h> exists even on freestanding compilers.
4277   # On the NeXT, cc -E runs the code through the compiler's parser,
4278   # not just through cpp. "Syntax error" is here to catch this case.
4279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281 #ifdef __STDC__
4282 # include <limits.h>
4283 #else
4284 # include <assert.h>
4285 #endif
4286                      Syntax error
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289
4290 else
4291   # Broken: fails on valid input.
4292 continue
4293 fi
4294 rm -f conftest.err conftest.$ac_ext
4295
4296   # OK, works on sane cases.  Now check whether nonexistent headers
4297   # can be detected and how.
4298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300 #include <ac_nonexistent.h>
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303   # Broken: success on invalid input.
4304 continue
4305 else
4306   # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4309 fi
4310 rm -f conftest.err conftest.$ac_ext
4311
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then :
4316
4317 else
4318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4331 $as_echo_n "checking for additional special compiler flags... " >&6; }
4332 if test "$GCC" = yes
4333 then
4334     case "$host_cpu" in
4335         alpha)          addcflags="-mieee" ;;
4336     esac
4337 fi
4338 if test "x$addcflags" != x
4339 then
4340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4341 $as_echo "$addcflags" >&6; }
4342     CFLAGS="$addcflags $CFLAGS"
4343 else
4344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4345 $as_echo "(none)" >&6; }
4346 fi
4347 LIB_EXT=.a
4348 STATIC_LIB_EXT=.a
4349 PROFILED_LIB_EXT=.a
4350
4351 # Check whether --with-root-prefix was given.
4352 if test "${with_root_prefix+set}" = set; then :
4353   withval=$with_root_prefix; root_prefix=$withval
4354 else
4355   root_prefix=NONE
4356 fi
4357 # Check whether --enable-maintainer-mode was given.
4358 if test "${enable_maintainer_mode+set}" = set; then :
4359   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4360 then
4361         MAINTAINER_CMT=#
4362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4363 $as_echo "Disabling maintainer mode" >&6; }
4364 else
4365         MAINTAINER_CMT=
4366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4367 $as_echo "Enabling maintainer mode" >&6; }
4368 fi
4369
4370 else
4371   MAINTAINER_CMT=#
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4373 $as_echo "Disabling maintainer mode by default" >&6; }
4374
4375 fi
4376
4377
4378 # Check whether --enable-symlink-install was given.
4379 if test "${enable_symlink_install+set}" = set; then :
4380   enableval=$enable_symlink_install; if test "$enableval" = "no"
4381 then
4382         LINK_INSTALL_FLAGS=-f
4383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4384 $as_echo "Disabling symlinks for install" >&6; }
4385 else
4386         LINK_INSTALL_FLAGS=-sf
4387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4388 $as_echo "Enabling symlinks for install" >&6; }
4389 fi
4390
4391 else
4392   LINK_INSTALL_FLAGS=-f
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4394 $as_echo "Disabling symlinks for install by default" >&6; }
4395
4396 fi
4397
4398
4399 relative_symlink_defined=
4400 # Check whether --enable-relative-symlinks was given.
4401 if test "${enable_relative_symlinks+set}" = set; then :
4402   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4403 then
4404         SYMLINK_RELATIVE=
4405         relative_symlink_defined=yes
4406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4407 $as_echo "Disabling relative symlinks for install" >&6; }
4408 else
4409         SYMLINK_RELATIVE=--relative
4410         relative_symlink_defined=yes
4411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4412 $as_echo "Enabling relative symlinks for install" >&6; }
4413 fi
4414 fi
4415
4416 # Check whether --enable-symlink-relative-symlinks was given.
4417 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4418   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4419 then
4420         SYMLINK_RELATIVE=yes
4421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4422 $as_echo "Disabling relative symlinks for install" >&6; }
4423 else
4424         SYMLINK_RELATIVE=--relative
4425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4426 $as_echo "Enabling relative symlinks for install" >&6; }
4427 fi
4428
4429 else
4430   if test -z "$relative_symlink_defined"
4431 then
4432         SYMLINK_RELATIVE=
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4434 $as_echo "Disabling relative symlinks for install by default" >&6; }
4435 fi
4436
4437 fi
4438
4439
4440 # Check whether --enable-symlink-build was given.
4441 if test "${enable_symlink_build+set}" = set; then :
4442   enableval=$enable_symlink_build; if test "$enableval" = "no"
4443 then
4444         LINK_BUILD_FLAGS=
4445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4446 $as_echo "Disabling symlinks for build" >&6; }
4447 else
4448         LINK_BUILD_FLAGS=-s
4449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4450 $as_echo "Enabling symlinks for build" >&6; }
4451 fi
4452
4453 else
4454   LINK_BUILD_FLAGS=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4456 $as_echo "Disabling symlinks for build by default" >&6; }
4457
4458 fi
4459
4460
4461 # Check whether --enable-verbose-makecmds was given.
4462 if test "${enable_verbose_makecmds+set}" = set; then :
4463   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4464 then
4465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4466 $as_echo "Disabling verbose make commands" >&6; }
4467         E=@echo
4468         ES=echo
4469         Q=@
4470 else
4471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4472 $as_echo "Enabling verbose make commands" >&6; }
4473         E=@\\#
4474         ES=\\#
4475         Q=
4476 fi
4477
4478 else
4479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4480 $as_echo "Disabling verbose make commands" >&6; }
4481 E=@echo
4482 ES=echo
4483 Q=@
4484
4485 fi
4486
4487
4488
4489
4490 # Check whether --enable-compression was given.
4491 if test "${enable_compression+set}" = set; then :
4492   enableval=$enable_compression; if test "$enableval" = "no"
4493 then
4494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4495 $as_echo "Disabling compression support" >&6; }
4496 else
4497
4498 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4499
4500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4501 $as_echo "Enabling compression support" >&6; }
4502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4503 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4504 fi
4505
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4508 $as_echo "Disabling compression support by default" >&6; }
4509
4510 fi
4511
4512
4513 # Check whether --enable-htree was given.
4514 if test "${enable_htree+set}" = set; then :
4515   enableval=$enable_htree; if test "$enableval" = "no"
4516 then
4517         HTREE_CMT=#
4518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4519 $as_echo "Disabling htree directory support" >&6; }
4520 else
4521         HTREE_CMT=
4522         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4523
4524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4525 $as_echo "Enabling htree directory support" >&6; }
4526 fi
4527
4528 else
4529   HTREE_CMT=
4530 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4533 $as_echo "Enabling htree directory support by default" >&6; }
4534
4535 fi
4536
4537
4538 E2_PKG_CONFIG_STATIC=--static
4539 LDFLAG_DYNAMIC=
4540 PRIVATE_LIBS_CMT=
4541 # Check whether --enable-elf-shlibs was given.
4542 if test "${enable_elf_shlibs+set}" = set; then :
4543   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4544 then
4545         ELF_CMT=#
4546         MAKEFILE_ELF=/dev/null
4547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4548 $as_echo "Disabling ELF shared libraries" >&6; }
4549 else
4550         E2_PKG_CONFIG_STATIC=
4551         ELF_CMT=
4552         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4553         case "$host_os" in
4554         solaris2.*)
4555                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4556         ;;
4557         esac
4558         BINARY_TYPE=elfbin
4559         LIB_EXT=.so
4560         PRIVATE_LIBS_CMT=#
4561         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4563 $as_echo "Enabling ELF shared libraries" >&6; }
4564 fi
4565
4566 else
4567   MAKEFILE_ELF=/dev/null
4568 ELF_CMT=#
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4570 $as_echo "Disabling ELF shared libraries by default" >&6; }
4571
4572 fi
4573
4574
4575
4576 # Check whether --enable-bsd-shlibs was given.
4577 if test "${enable_bsd_shlibs+set}" = set; then :
4578   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4579 then
4580         BSDLIB_CMT=#
4581         MAKEFILE_BSDLIB=/dev/null
4582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4583 $as_echo "Disabling BSD shared libraries" >&6; }
4584 else
4585         E2_PKG_CONFIG_STATIC=
4586         BSDLIB_CMT=
4587         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4588         LIB_EXT=.so
4589         case "$host_os" in
4590         darwin*)
4591                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4592                 LIB_EXT=.dylib
4593         ;;
4594         esac
4595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4596 $as_echo "Enabling BSD shared libraries" >&6; }
4597 fi
4598
4599 else
4600   MAKEFILE_BSDLIB=/dev/null
4601 BSDLIB_CMT=#
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4603 $as_echo "Disabling BSD shared libraries by default" >&6; }
4604
4605 fi
4606
4607
4608
4609 # Check whether --enable-profile was given.
4610 if test "${enable_profile+set}" = set; then :
4611   enableval=$enable_profile; if test "$enableval" = "no"
4612 then
4613         PROFILE_CMT=#
4614         MAKEFILE_PROFILE=/dev/null
4615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4616 $as_echo "Disabling profiling libraries" >&6; }
4617 else
4618         PROFILE_CMT=
4619         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4620         PROFILED_LIB_EXT=_p.a
4621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4622 $as_echo "Building profiling libraries" >&6; }
4623 fi
4624
4625 else
4626   PROFILE_CMT=#
4627 MAKEFILE_PROFILE=/dev/null
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4629 $as_echo "Disabling profiling libraries by default" >&6; }
4630
4631 fi
4632
4633
4634
4635 # Check whether --enable-gcov was given.
4636 if test "${enable_gcov+set}" = set; then :
4637   enableval=$enable_gcov; if test "$enableval" = "yes"
4638 then
4639         CFLAGS="-g -fprofile-arcs -ftest-coverage"
4640         LDFLAGS="-fprofile-arcs -ftest-coverage"
4641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4642 $as_echo "Enabling gcov support" >&6; }
4643 fi
4644
4645 fi
4646
4647
4648
4649
4650
4651
4652
4653 # Check whether --enable-jbd-debug was given.
4654 if test "${enable_jbd_debug+set}" = set; then :
4655   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4656 then
4657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4658 $as_echo "Disabling journal debugging" >&6; }
4659 else
4660
4661 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4662
4663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4664 $as_echo "Enabling journal debugging" >&6; }
4665 fi
4666
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4669 $as_echo "Disabling journal debugging by default" >&6; }
4670
4671 fi
4672
4673 # Check whether --enable-blkid-debug was given.
4674 if test "${enable_blkid_debug+set}" = set; then :
4675   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4676 then
4677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4678 $as_echo "Disabling blkid debugging" >&6; }
4679 else
4680
4681 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4682
4683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4684 $as_echo "Enabling blkid debugging" >&6; }
4685 fi
4686
4687 else
4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4689 $as_echo "Disabling blkid debugging by default" >&6; }
4690
4691 fi
4692
4693 # Check whether --enable-testio-debug was given.
4694 if test "${enable_testio_debug+set}" = set; then :
4695   enableval=$enable_testio_debug;
4696 if test "$enableval" = "no"
4697 then
4698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4699 $as_echo "Disabling testio debugging" >&6; }
4700         TEST_IO_CMT="#"
4701 else
4702         TEST_IO_CMT=
4703         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4704
4705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4706 $as_echo "Enabling testio debugging" >&6; }
4707 fi
4708
4709 else
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4711 $as_echo "Enabling testio debugging by default" >&6; }
4712 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4713
4714 TEST_IO_CMT=
4715
4716 fi
4717
4718
4719
4720
4721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4722         if test -n "$ac_tool_prefix"; then
4723   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   case $PKG_CONFIG in
4731   [\\/]* | ?:[\\/]*)
4732   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4733   ;;
4734   *)
4735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747   done
4748 IFS=$as_save_IFS
4749
4750   ;;
4751 esac
4752 fi
4753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4754 if test -n "$PKG_CONFIG"; then
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4756 $as_echo "$PKG_CONFIG" >&6; }
4757 else
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4760 fi
4761
4762
4763 fi
4764 if test -z "$ac_cv_path_PKG_CONFIG"; then
4765   ac_pt_PKG_CONFIG=$PKG_CONFIG
4766   # Extract the first word of "pkg-config", so it can be a program name with args.
4767 set dummy pkg-config; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4771   $as_echo_n "(cached) " >&6
4772 else
4773   case $ac_pt_PKG_CONFIG in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790   done
4791 IFS=$as_save_IFS
4792
4793   ;;
4794 esac
4795 fi
4796 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4797 if test -n "$ac_pt_PKG_CONFIG"; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4799 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4800 else
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805   if test "x$ac_pt_PKG_CONFIG" = x; then
4806     PKG_CONFIG=""
4807   else
4808     case $cross_compiling:$ac_tool_warned in
4809 yes:)
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814     PKG_CONFIG=$ac_pt_PKG_CONFIG
4815   fi
4816 else
4817   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4818 fi
4819
4820 fi
4821 if test -n "$PKG_CONFIG"; then
4822         _pkg_min_version=0.9.0
4823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4824 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4825         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4826                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827 $as_echo "yes" >&6; }
4828         else
4829                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831                 PKG_CONFIG=""
4832         fi
4833
4834 fi
4835 LIBUUID=
4836 DEPLIBUUID=
4837 STATIC_LIBUUID=
4838 DEPSTATIC_LIBUUID=
4839 PROFILED_LIBUUID=
4840 DEPPROFILED_LIBUUID=
4841 UUID_CMT=
4842 # Check whether --enable-libuuid was given.
4843 if test "${enable_libuuid+set}" = set; then :
4844   enableval=$enable_libuuid; if test "$enableval" = "no"
4845 then
4846         if test -z "$PKG_CONFIG"; then
4847                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4848         fi
4849
4850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4851 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4852 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   ac_check_lib_save_LIBS=$LIBS
4856 LIBS="-luuid  $LIBS"
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h.  */
4859
4860 /* Override any GCC internal prototype to avoid an error.
4861    Use char because int might match the return type of a GCC
4862    builtin and then its argument prototype would still apply.  */
4863 #ifdef __cplusplus
4864 extern "C"
4865 #endif
4866 char uuid_generate ();
4867 int
4868 main ()
4869 {
4870 return uuid_generate ();
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_link "$LINENO"; then :
4876   ac_cv_lib_uuid_uuid_generate=yes
4877 else
4878   ac_cv_lib_uuid_uuid_generate=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext \
4881     conftest$ac_exeext conftest.$ac_ext
4882 LIBS=$ac_check_lib_save_LIBS
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4885 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4886 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4887   LIBUUID=`$PKG_CONFIG --libs uuid`;
4888                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4889 else
4890   as_fn_error "external uuid library not found" "$LINENO" 5
4891 fi
4892
4893         PROFILED_LIBUUID=$LIBUUID
4894         UUID_CMT=#
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4896 $as_echo "Disabling private uuid library" >&6; }
4897 else
4898         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4899         DEPLIBUUID=$LIBUUID
4900         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4901         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4902         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4903         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4905 $as_echo "Enabling private uuid library" >&6; }
4906 fi
4907
4908 else
4909   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4910 DEPLIBUUID=$LIBUUID
4911 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4912 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4913 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4914 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4916 $as_echo "Enabling private uuid library by default" >&6; }
4917
4918 fi
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4930         if test -n "$ac_tool_prefix"; then
4931   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   case $PKG_CONFIG in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958   ;;
4959 esac
4960 fi
4961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4962 if test -n "$PKG_CONFIG"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4964 $as_echo "$PKG_CONFIG" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 fi
4972 if test -z "$ac_cv_path_PKG_CONFIG"; then
4973   ac_pt_PKG_CONFIG=$PKG_CONFIG
4974   # Extract the first word of "pkg-config", so it can be a program name with args.
4975 set dummy pkg-config; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   case $ac_pt_PKG_CONFIG in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998   done
4999 IFS=$as_save_IFS
5000
5001   ;;
5002 esac
5003 fi
5004 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5005 if test -n "$ac_pt_PKG_CONFIG"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5007 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013   if test "x$ac_pt_PKG_CONFIG" = x; then
5014     PKG_CONFIG=""
5015   else
5016     case $cross_compiling:$ac_tool_warned in
5017 yes:)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022     PKG_CONFIG=$ac_pt_PKG_CONFIG
5023   fi
5024 else
5025   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5026 fi
5027
5028 fi
5029 if test -n "$PKG_CONFIG"; then
5030         _pkg_min_version=0.9.0
5031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5032 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5033         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5034                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5036         else
5037                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039                 PKG_CONFIG=""
5040         fi
5041
5042 fi
5043 LIBBLKID=
5044 DEPLIBBLKID=
5045 STATIC_LIBBLKID=
5046 DEPSTATIC_LIBBLKID=
5047 PROFILED_LIBBLKID=
5048 DEPPROFILED_LIBBLKID=
5049 BLKID_CMT=
5050
5051 # Check whether --enable-libblkid was given.
5052 if test "${enable_libblkid+set}" = set; then :
5053   enableval=$enable_libblkid; if test "$enableval" = "no"
5054 then
5055         if test -z "$PKG_CONFIG"; then
5056                 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5057         fi
5058
5059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5060 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5061 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   ac_check_lib_save_LIBS=$LIBS
5065 LIBS="-lblkid -luuid $LIBS"
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h.  */
5068
5069 /* Override any GCC internal prototype to avoid an error.
5070    Use char because int might match the return type of a GCC
5071    builtin and then its argument prototype would still apply.  */
5072 #ifdef __cplusplus
5073 extern "C"
5074 #endif
5075 char blkid_get_cache ();
5076 int
5077 main ()
5078 {
5079 return blkid_get_cache ();
5080   ;
5081   return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_link "$LINENO"; then :
5085   ac_cv_lib_blkid_blkid_get_cache=yes
5086 else
5087   ac_cv_lib_blkid_blkid_get_cache=no
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext \
5090     conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5094 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5095 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5096   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5097                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5098 else
5099   as_fn_error "external blkid library not found" "$LINENO" 5
5100 fi
5101
5102         BLKID_CMT=#
5103         PROFILED_LIBBLKID=$LIBBLKID
5104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5105 $as_echo "Disabling private blkid library" >&6; }
5106 else
5107         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5108         DEPLIBBLKID=$LIBBLKID
5109         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5110         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5111         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5112         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5113         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5114
5115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5116 $as_echo "Enabling private blkid library" >&6; }
5117 fi
5118
5119 else
5120   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5121 DEPLIBBLKID=$LIBBLKID
5122 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5123 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5124 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5125 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5126 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5129 $as_echo "Enabling private blkid library by default" >&6; }
5130
5131 fi
5132
5133
5134
5135
5136
5137
5138
5139
5140 QUOTA_MAN_COMMENT='.\"'
5141 QUOTA_CMT=
5142
5143
5144
5145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5146         if test -n "$ac_tool_prefix"; then
5147   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   case $PKG_CONFIG in
5155   [\\/]* | ?:[\\/]*)
5156   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5157   ;;
5158   *)
5159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173
5174   ;;
5175 esac
5176 fi
5177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5178 if test -n "$PKG_CONFIG"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5180 $as_echo "$PKG_CONFIG" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 fi
5188 if test -z "$ac_cv_path_PKG_CONFIG"; then
5189   ac_pt_PKG_CONFIG=$PKG_CONFIG
5190   # Extract the first word of "pkg-config", so it can be a program name with args.
5191 set dummy pkg-config; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   case $ac_pt_PKG_CONFIG in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207     for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214   done
5215 IFS=$as_save_IFS
5216
5217   ;;
5218 esac
5219 fi
5220 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5221 if test -n "$ac_pt_PKG_CONFIG"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5223 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229   if test "x$ac_pt_PKG_CONFIG" = x; then
5230     PKG_CONFIG=""
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238     PKG_CONFIG=$ac_pt_PKG_CONFIG
5239   fi
5240 else
5241   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5242 fi
5243
5244 fi
5245 if test -n "$PKG_CONFIG"; then
5246         _pkg_min_version=0.9.0
5247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5248 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5249         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5250                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251 $as_echo "yes" >&6; }
5252         else
5253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255                 PKG_CONFIG=""
5256         fi
5257
5258 fi
5259
5260 # Check whether --enable-quota was given.
5261 if test "${enable_quota+set}" = set; then :
5262   enableval=$enable_quota; if test "$enableval" = "no"
5263 then
5264         QUOTA_CMT=#
5265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5266 $as_echo "Disabling quota support" >&6; }
5267 else
5268         QUOTA_CMT=
5269         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5270
5271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5272 $as_echo "Enabling quota support" >&6; }
5273         QUOTA_MAN_COMMENT=""
5274
5275 fi
5276
5277 else
5278   QUOTA_CMT=#
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5280 $as_echo "Disabling quota support by default" >&6; }
5281
5282 fi
5283
5284 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5285 DEPLIBQUOTA=$LIBQUOTA
5286 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5287 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5288 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5289 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5290
5291
5292
5293
5294
5295
5296
5297
5298 # Check whether --enable-backtrace was given.
5299 if test "${enable_backtrace+set}" = set; then :
5300   enableval=$enable_backtrace; if test "$enableval" = "no"
5301 then
5302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5303 $as_echo "Disabling use of backtrace" >&6; }
5304         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5305
5306 else
5307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5308 $as_echo "Enabling use of backtrace" >&6; }
5309 fi
5310
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5313 $as_echo "Enabling use of backtrace by default" >&6; }
5314
5315 fi
5316
5317 # Check whether --enable-debugfs was given.
5318 if test "${enable_debugfs+set}" = set; then :
5319   enableval=$enable_debugfs; if test "$enableval" = "no"
5320 then
5321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5322 $as_echo "Disabling debugfs support" >&6; }
5323         DEBUGFS_CMT="#"
5324 else
5325         DEBUGFS_CMT=
5326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5327 $as_echo "Enabling debugfs support" >&6; }
5328 fi
5329
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5332 $as_echo "Enabling debugfs support by default" >&6; }
5333 DEBUGFS_CMT=
5334
5335 fi
5336
5337
5338 # Check whether --enable-imager was given.
5339 if test "${enable_imager+set}" = set; then :
5340   enableval=$enable_imager; if test "$enableval" = "no"
5341 then
5342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5343 $as_echo "Disabling e2image support" >&6; }
5344         IMAGER_CMT="#"
5345 else
5346         IMAGER_CMT=
5347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5348 $as_echo "Enabling e2image support" >&6; }
5349 fi
5350
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5353 $as_echo "Enabling e2image support by default" >&6; }
5354 IMAGER_CMT=
5355
5356 fi
5357
5358
5359 # Check whether --enable-resizer was given.
5360 if test "${enable_resizer+set}" = set; then :
5361   enableval=$enable_resizer; if test "$enableval" = "no"
5362 then
5363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5364 $as_echo "Disabling e2resize support" >&6; }
5365         RESIZER_CMT="#"
5366 else
5367         RESIZER_CMT=
5368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5369 $as_echo "Enabling e2resize support" >&6; }
5370 fi
5371
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5374 $as_echo "Enabling e2resize support by default" >&6; }
5375 RESIZER_CMT=
5376
5377 fi
5378
5379
5380 # Check whether --enable-defrag was given.
5381 if test "${enable_defrag+set}" = set; then :
5382   enableval=$enable_defrag; if test "$enableval" = "no"
5383 then
5384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5385 $as_echo "Disabling e4defrag support" >&6; }
5386         DEFRAG_CMT="#"
5387 else
5388         DEFRAG_CMT=
5389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5390 $as_echo "Enabling e4defrag support" >&6; }
5391 fi
5392
5393 else
5394   if test -z "$WITH_DIET_LIBC"
5395 then
5396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5397 $as_echo "Enabling e4defrag support by default" >&6; }
5398         DEFRAG_CMT=
5399 else
5400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5401 $as_echo "Disabling e4defrag support by default" >&6; }
5402         DEFRAG_CMT="#"
5403 fi
5404
5405 fi
5406
5407
5408 # Check whether --enable-fsck was given.
5409 if test "${enable_fsck+set}" = set; then :
5410   enableval=$enable_fsck; if test "$enableval" = "no"
5411 then
5412         FSCK_PROG='' FSCK_MAN=''
5413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5414 $as_echo "Not building fsck wrapper" >&6; }
5415 else
5416         FSCK_PROG=fsck FSCK_MAN=fsck.8
5417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5418 $as_echo "Building fsck wrapper" >&6; }
5419 fi
5420
5421 else
5422   case "$host_os" in
5423   gnu*)
5424     FSCK_PROG='' FSCK_MAN=''
5425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5426 $as_echo "Not building fsck wrapper by default" >&6; }
5427     ;;
5428   *)
5429     FSCK_PROG=fsck FSCK_MAN=fsck.8
5430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5431 $as_echo "Building fsck wrapper by default" >&6; }
5432 esac
5433
5434 fi
5435
5436
5437
5438 # Check whether --enable-e2initrd-helper was given.
5439 if test "${enable_e2initrd_helper+set}" = set; then :
5440   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5441 then
5442         E2INITRD_PROG='' E2INITRD_MAN=''
5443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5444 $as_echo "Not building e2initrd helper" >&6; }
5445 else
5446         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5448 $as_echo "Building e2initrd helper" >&6; }
5449 fi
5450
5451 else
5452   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5454 $as_echo "Building e2initrd helper by default" >&6; }
5455
5456 fi
5457
5458
5459
5460 # Check whether --enable-tls was given.
5461 if test "${enable_tls+set}" = set; then :
5462   enableval=$enable_tls; if test "$enableval" = "no"
5463 then
5464         try_tls=""
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5466 $as_echo "Disabling thread local support" >&6; }
5467 else
5468         try_tls="yes"
5469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5470 $as_echo "Enabling thread local support" >&6; }
5471 fi
5472
5473 else
5474   if test -n "$WITH_DIET_LIBC"
5475 then
5476         try_tls=""
5477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5478 $as_echo "Diet libc does not support thread local support" >&6; }
5479 else
5480         try_tls="yes"
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5482 $as_echo "Try using thread local support by default" >&6; }
5483 fi
5484
5485 fi
5486
5487 if test "$try_tls" = "yes"
5488 then
5489
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5491 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5492   if test "${ac_cv_tls+set}" = set; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495
5496     ax_tls_keywords="__thread __declspec(thread) none"
5497     for ax_tls_keyword in $ax_tls_keywords; do
5498        case $ax_tls_keyword in
5499           none) ac_cv_tls=none ; break ;;
5500           *)
5501              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h.  */
5503 #include <stdlib.h>
5504                  static void
5505                  foo(void) {
5506                  static  $ax_tls_keyword  int bar;
5507                  exit(1);
5508                  }
5509 int
5510 main ()
5511 {
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518   ac_cv_tls=$ax_tls_keyword ; break
5519 else
5520   ac_cv_tls=none
5521
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524           esac
5525     done
5526
5527 fi
5528
5529
5530   if test "$ac_cv_tls" != "none"; then
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define TLS $ac_cv_tls
5534 _ACEOF
5535
5536   fi
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5538 $as_echo "$ac_cv_tls" >&6; }
5539
5540 fi
5541
5542 # Check whether --enable-uuidd was given.
5543 if test "${enable_uuidd+set}" = set; then :
5544   enableval=$enable_uuidd; if test "$enableval" = "no"
5545 then
5546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5547 $as_echo "Not building uuidd" >&6; }
5548         UUIDD_CMT="#"
5549 else
5550         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5551
5552         UUIDD_CMT=""
5553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5554 $as_echo "Building uuidd" >&6; }
5555 fi
5556
5557 else
5558   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5559
5560 if test -z "$UUID_CMT"
5561 then
5562         UUIDD_CMT=""
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5564 $as_echo "Building uuidd by default" >&6; }
5565 else
5566         UUIDD_CMT="#"
5567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5568 $as_echo "Disabling uuidd by default" >&6; }
5569 fi
5570
5571 fi
5572
5573
5574 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5575
5576 GETTEXT_PACKAGE=e2fsprogs
5577 PACKAGE=e2fsprogs
5578 VERSION="$E2FSPROGS_VERSION"
5579 VERSION=0.14.1
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define PACKAGE "$PACKAGE"
5583 _ACEOF
5584
5585
5586 cat >>confdefs.h <<_ACEOF
5587 #define VERSION "$VERSION"
5588 _ACEOF
5589
5590
5591
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5596 set x ${MAKE-make}
5597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5598 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   cat >conftest.make <<\_ACEOF
5602 SHELL = /bin/sh
5603 all:
5604         @echo '@@@%%%=$(MAKE)=@@@%%%'
5605 _ACEOF
5606 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5608   *@@@%%%=?*=@@@%%%*)
5609     eval ac_cv_prog_make_${ac_make}_set=yes;;
5610   *)
5611     eval ac_cv_prog_make_${ac_make}_set=no;;
5612 esac
5613 rm -f conftest.make
5614 fi
5615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5618   SET_MAKE=
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622   SET_MAKE="MAKE=${MAKE-make}"
5623 fi
5624
5625 # Find a good install program.  We prefer a C program (faster),
5626 # so one script is as good as another.  But avoid the broken or
5627 # incompatible versions:
5628 # SysV /etc/install, /usr/sbin/install
5629 # SunOS /usr/etc/install
5630 # IRIX /sbin/install
5631 # AIX /bin/install
5632 # AmigaOS /C/install, which installs bootblocks on floppy discs
5633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5636 # OS/2's system install, which has a completely different semantic
5637 # ./install, which can be erroneously created by make from ./install.sh.
5638 # Reject install programs that cannot install multiple files.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5640 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5641 if test -z "$INSTALL"; then
5642 if test "${ac_cv_path_install+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648   IFS=$as_save_IFS
5649   test -z "$as_dir" && as_dir=.
5650     # Account for people who put trailing slashes in PATH elements.
5651 case $as_dir/ in #((
5652   ./ | .// | /[cC]/* | \
5653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5654   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5655   /usr/ucb/* ) ;;
5656   *)
5657     # OSF1 and SCO ODT 3.0 have their own names for install.
5658     # Don't use installbsd from OSF since it installs stuff as root
5659     # by default.
5660     for ac_prog in ginstall scoinst install; do
5661       for ac_exec_ext in '' $ac_executable_extensions; do
5662         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5663           if test $ac_prog = install &&
5664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5665             # AIX install.  It has an incompatible calling convention.
5666             :
5667           elif test $ac_prog = install &&
5668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5669             # program-specific install script used by HP pwplus--don't use.
5670             :
5671           else
5672             rm -rf conftest.one conftest.two conftest.dir
5673             echo one > conftest.one
5674             echo two > conftest.two
5675             mkdir conftest.dir
5676             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5677               test -s conftest.one && test -s conftest.two &&
5678               test -s conftest.dir/conftest.one &&
5679               test -s conftest.dir/conftest.two
5680             then
5681               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5682               break 3
5683             fi
5684           fi
5685         fi
5686       done
5687     done
5688     ;;
5689 esac
5690
5691   done
5692 IFS=$as_save_IFS
5693
5694 rm -rf conftest.one conftest.two conftest.dir
5695
5696 fi
5697   if test "${ac_cv_path_install+set}" = set; then
5698     INSTALL=$ac_cv_path_install
5699   else
5700     # As a last resort, use the slow shell script.  Don't cache a
5701     # value for INSTALL within a source directory, because that will
5702     # break other packages using the cache if that directory is
5703     # removed, or if the value is a relative name.
5704     INSTALL=$ac_install_sh
5705   fi
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5708 $as_echo "$INSTALL" >&6; }
5709
5710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5711 # It thinks the first close brace ends the variable substitution.
5712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5713
5714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5715
5716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5717
5718
5719         MKINSTALLDIRS=
5720   if test -n "$ac_aux_dir"; then
5721     case "$ac_aux_dir" in
5722       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5723       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5724     esac
5725   fi
5726   if test -z "$MKINSTALLDIRS"; then
5727     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5728   fi
5729
5730
5731
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5733 $as_echo_n "checking whether NLS is requested... " >&6; }
5734     # Check whether --enable-nls was given.
5735 if test "${enable_nls+set}" = set; then :
5736   enableval=$enable_nls; USE_NLS=$enableval
5737 else
5738   USE_NLS=yes
5739 fi
5740
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5742 $as_echo "$USE_NLS" >&6; }
5743
5744
5745
5746
5747
5748
5749 # Prepare PATH_SEPARATOR.
5750 # The user is always right.
5751 if test "${PATH_SEPARATOR+set}" != set; then
5752   echo "#! /bin/sh" >conf$$.sh
5753   echo  "exit 0"   >>conf$$.sh
5754   chmod +x conf$$.sh
5755   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5756     PATH_SEPARATOR=';'
5757   else
5758     PATH_SEPARATOR=:
5759   fi
5760   rm -f conf$$.sh
5761 fi
5762
5763 # Find out how to test for executable files. Don't use a zero-byte file,
5764 # as systems may use methods other than mode bits to determine executability.
5765 cat >conf$$.file <<_ASEOF
5766 #! /bin/sh
5767 exit 0
5768 _ASEOF
5769 chmod +x conf$$.file
5770 if test -x conf$$.file >/dev/null 2>&1; then
5771   ac_executable_p="test -x"
5772 else
5773   ac_executable_p="test -f"
5774 fi
5775 rm -f conf$$.file
5776
5777 # Extract the first word of "msgfmt", so it can be a program name with args.
5778 set dummy msgfmt; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   case "$MSGFMT" in
5785   [\\/]* | ?:[\\/]*)
5786     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5787     ;;
5788   *)
5789     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5790     for ac_dir in $PATH; do
5791       IFS="$ac_save_IFS"
5792       test -z "$ac_dir" && ac_dir=.
5793       for ac_exec_ext in '' $ac_executable_extensions; do
5794         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5795           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5796      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5797             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5798             break 2
5799           fi
5800         fi
5801       done
5802     done
5803     IFS="$ac_save_IFS"
5804   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5805     ;;
5806 esac
5807 fi
5808 MSGFMT="$ac_cv_path_MSGFMT"
5809 if test "$MSGFMT" != ":"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5811 $as_echo "$MSGFMT" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816
5817   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5818 set dummy gmsgfmt; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   case $GMSGFMT in
5825   [\\/]* | ?:[\\/]*)
5826   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5827   ;;
5828   *)
5829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843
5844   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5845   ;;
5846 esac
5847 fi
5848 GMSGFMT=$ac_cv_path_GMSGFMT
5849 if test -n "$GMSGFMT"; then
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5851 $as_echo "$GMSGFMT" >&6; }
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858
5859
5860 # Prepare PATH_SEPARATOR.
5861 # The user is always right.
5862 if test "${PATH_SEPARATOR+set}" != set; then
5863   echo "#! /bin/sh" >conf$$.sh
5864   echo  "exit 0"   >>conf$$.sh
5865   chmod +x conf$$.sh
5866   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5867     PATH_SEPARATOR=';'
5868   else
5869     PATH_SEPARATOR=:
5870   fi
5871   rm -f conf$$.sh
5872 fi
5873
5874 # Find out how to test for executable files. Don't use a zero-byte file,
5875 # as systems may use methods other than mode bits to determine executability.
5876 cat >conf$$.file <<_ASEOF
5877 #! /bin/sh
5878 exit 0
5879 _ASEOF
5880 chmod +x conf$$.file
5881 if test -x conf$$.file >/dev/null 2>&1; then
5882   ac_executable_p="test -x"
5883 else
5884   ac_executable_p="test -f"
5885 fi
5886 rm -f conf$$.file
5887
5888 # Extract the first word of "xgettext", so it can be a program name with args.
5889 set dummy xgettext; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895   case "$XGETTEXT" in
5896   [\\/]* | ?:[\\/]*)
5897     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5898     ;;
5899   *)
5900     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5901     for ac_dir in $PATH; do
5902       IFS="$ac_save_IFS"
5903       test -z "$ac_dir" && ac_dir=.
5904       for ac_exec_ext in '' $ac_executable_extensions; do
5905         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5906           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5907      (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
5908             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5909             break 2
5910           fi
5911         fi
5912       done
5913     done
5914     IFS="$ac_save_IFS"
5915   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5916     ;;
5917 esac
5918 fi
5919 XGETTEXT="$ac_cv_path_XGETTEXT"
5920 if test "$XGETTEXT" != ":"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5922 $as_echo "$XGETTEXT" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928     rm -f messages.po
5929
5930
5931 # Prepare PATH_SEPARATOR.
5932 # The user is always right.
5933 if test "${PATH_SEPARATOR+set}" != set; then
5934   echo "#! /bin/sh" >conf$$.sh
5935   echo  "exit 0"   >>conf$$.sh
5936   chmod +x conf$$.sh
5937   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5938     PATH_SEPARATOR=';'
5939   else
5940     PATH_SEPARATOR=:
5941   fi
5942   rm -f conf$$.sh
5943 fi
5944
5945 # Find out how to test for executable files. Don't use a zero-byte file,
5946 # as systems may use methods other than mode bits to determine executability.
5947 cat >conf$$.file <<_ASEOF
5948 #! /bin/sh
5949 exit 0
5950 _ASEOF
5951 chmod +x conf$$.file
5952 if test -x conf$$.file >/dev/null 2>&1; then
5953   ac_executable_p="test -x"
5954 else
5955   ac_executable_p="test -f"
5956 fi
5957 rm -f conf$$.file
5958
5959 # Extract the first word of "msgmerge", so it can be a program name with args.
5960 set dummy msgmerge; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   case "$MSGMERGE" in
5967   [\\/]* | ?:[\\/]*)
5968     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5969     ;;
5970   *)
5971     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5972     for ac_dir in $PATH; do
5973       IFS="$ac_save_IFS"
5974       test -z "$ac_dir" && ac_dir=.
5975       for ac_exec_ext in '' $ac_executable_extensions; do
5976         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5977           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5978             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5979             break 2
5980           fi
5981         fi
5982       done
5983     done
5984     IFS="$ac_save_IFS"
5985   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5986     ;;
5987 esac
5988 fi
5989 MSGMERGE="$ac_cv_path_MSGMERGE"
5990 if test "$MSGMERGE" != ":"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5992 $as_echo "$MSGMERGE" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999       if test "$GMSGFMT" != ":"; then
6000             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6001        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6002       : ;
6003     else
6004       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6005       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6006 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6007       GMSGFMT=":"
6008     fi
6009   fi
6010
6011       if test "$XGETTEXT" != ":"; then
6012             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6013        (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
6014       : ;
6015     else
6016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6017 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6018       XGETTEXT=":"
6019     fi
6020         rm -f messages.po
6021   fi
6022
6023   ac_config_commands="$ac_config_commands default-1"
6024
6025
6026 if test -n "$ac_tool_prefix"; then
6027   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   if test -n "$RANLIB"; then
6035   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 RANLIB=$ac_cv_prog_RANLIB
6055 if test -n "$RANLIB"; then
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6057 $as_echo "$RANLIB" >&6; }
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064 fi
6065 if test -z "$ac_cv_prog_RANLIB"; then
6066   ac_ct_RANLIB=$RANLIB
6067   # Extract the first word of "ranlib", so it can be a program name with args.
6068 set dummy ranlib; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   if test -n "$ac_ct_RANLIB"; then
6075   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080   IFS=$as_save_IFS
6081   test -z "$as_dir" && as_dir=.
6082     for ac_exec_ext in '' $ac_executable_extensions; do
6083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084     ac_cv_prog_ac_ct_RANLIB="ranlib"
6085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086     break 2
6087   fi
6088 done
6089   done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6095 if test -n "$ac_ct_RANLIB"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6097 $as_echo "$ac_ct_RANLIB" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103   if test "x$ac_ct_RANLIB" = x; then
6104     RANLIB=":"
6105   else
6106     case $cross_compiling:$ac_tool_warned in
6107 yes:)
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6111 esac
6112     RANLIB=$ac_ct_RANLIB
6113   fi
6114 else
6115   RANLIB="$ac_cv_prog_RANLIB"
6116 fi
6117
6118
6119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6120 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6121 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   ac_check_lib_save_LIBS=$LIBS
6125 LIBS="-lcposix  $LIBS"
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h.  */
6128
6129 /* Override any GCC internal prototype to avoid an error.
6130    Use char because int might match the return type of a GCC
6131    builtin and then its argument prototype would still apply.  */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 char strerror ();
6136 int
6137 main ()
6138 {
6139 return strerror ();
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"; then :
6145   ac_cv_lib_cposix_strerror=yes
6146 else
6147   ac_cv_lib_cposix_strerror=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150     conftest$ac_exeext conftest.$ac_ext
6151 LIBS=$ac_check_lib_save_LIBS
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6154 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6155 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6156   LIBS="$LIBS -lcposix"
6157 fi
6158
6159
6160
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6163 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6164 if test "${ac_cv_path_GREP+set}" = set; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   if test -z "$GREP"; then
6168   ac_path_GREP_found=false
6169   # Loop through the user's path and test for each of PROGNAME-LIST
6170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175     for ac_prog in grep ggrep; do
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6178       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6179 # Check for GNU ac_path_GREP and select it if it is found.
6180   # Check for GNU $ac_path_GREP
6181 case `"$ac_path_GREP" --version 2>&1` in
6182 *GNU*)
6183   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6184 *)
6185   ac_count=0
6186   $as_echo_n 0123456789 >"conftest.in"
6187   while :
6188   do
6189     cat "conftest.in" "conftest.in" >"conftest.tmp"
6190     mv "conftest.tmp" "conftest.in"
6191     cp "conftest.in" "conftest.nl"
6192     $as_echo 'GREP' >> "conftest.nl"
6193     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6195     as_fn_arith $ac_count + 1 && ac_count=$as_val
6196     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6197       # Best one so far, save it but keep looking for a better one
6198       ac_cv_path_GREP="$ac_path_GREP"
6199       ac_path_GREP_max=$ac_count
6200     fi
6201     # 10*(2^10) chars as input seems more than enough
6202     test $ac_count -gt 10 && break
6203   done
6204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6205 esac
6206
6207       $ac_path_GREP_found && break 3
6208     done
6209   done
6210   done
6211 IFS=$as_save_IFS
6212   if test -z "$ac_cv_path_GREP"; then
6213     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6214   fi
6215 else
6216   ac_cv_path_GREP=$GREP
6217 fi
6218
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6221 $as_echo "$ac_cv_path_GREP" >&6; }
6222  GREP="$ac_cv_path_GREP"
6223
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6226 $as_echo_n "checking for egrep... " >&6; }
6227 if test "${ac_cv_path_EGREP+set}" = set; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6231    then ac_cv_path_EGREP="$GREP -E"
6232    else
6233      if test -z "$EGREP"; then
6234   ac_path_EGREP_found=false
6235   # Loop through the user's path and test for each of PROGNAME-LIST
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_prog in egrep; do
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6244       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6245 # Check for GNU ac_path_EGREP and select it if it is found.
6246   # Check for GNU $ac_path_EGREP
6247 case `"$ac_path_EGREP" --version 2>&1` in
6248 *GNU*)
6249   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6250 *)
6251   ac_count=0
6252   $as_echo_n 0123456789 >"conftest.in"
6253   while :
6254   do
6255     cat "conftest.in" "conftest.in" >"conftest.tmp"
6256     mv "conftest.tmp" "conftest.in"
6257     cp "conftest.in" "conftest.nl"
6258     $as_echo 'EGREP' >> "conftest.nl"
6259     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261     as_fn_arith $ac_count + 1 && ac_count=$as_val
6262     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6263       # Best one so far, save it but keep looking for a better one
6264       ac_cv_path_EGREP="$ac_path_EGREP"
6265       ac_path_EGREP_max=$ac_count
6266     fi
6267     # 10*(2^10) chars as input seems more than enough
6268     test $ac_count -gt 10 && break
6269   done
6270   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6271 esac
6272
6273       $ac_path_EGREP_found && break 3
6274     done
6275   done
6276   done
6277 IFS=$as_save_IFS
6278   if test -z "$ac_cv_path_EGREP"; then
6279     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6280   fi
6281 else
6282   ac_cv_path_EGREP=$EGREP
6283 fi
6284
6285    fi
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6288 $as_echo "$ac_cv_path_EGREP" >&6; }
6289  EGREP="$ac_cv_path_EGREP"
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6293 $as_echo_n "checking for ANSI C header files... " >&6; }
6294 if test "${ac_cv_header_stdc+set}" = set; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h.  */
6299 #include <stdlib.h>
6300 #include <stdarg.h>
6301 #include <string.h>
6302 #include <float.h>
6303
6304 int
6305 main ()
6306 {
6307
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313   ac_cv_header_stdc=yes
6314 else
6315   ac_cv_header_stdc=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318
6319 if test $ac_cv_header_stdc = yes; then
6320   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h.  */
6323 #include <string.h>
6324
6325 _ACEOF
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327   $EGREP "memchr" >/dev/null 2>&1; then :
6328
6329 else
6330   ac_cv_header_stdc=no
6331 fi
6332 rm -f conftest*
6333
6334 fi
6335
6336 if test $ac_cv_header_stdc = yes; then
6337   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h.  */
6340 #include <stdlib.h>
6341
6342 _ACEOF
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344   $EGREP "free" >/dev/null 2>&1; then :
6345
6346 else
6347   ac_cv_header_stdc=no
6348 fi
6349 rm -f conftest*
6350
6351 fi
6352
6353 if test $ac_cv_header_stdc = yes; then
6354   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6355   if test "$cross_compiling" = yes; then :
6356   :
6357 else
6358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h.  */
6360 #include <ctype.h>
6361 #include <stdlib.h>
6362 #if ((' ' & 0x0FF) == 0x020)
6363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6365 #else
6366 # define ISLOWER(c) \
6367                    (('a' <= (c) && (c) <= 'i') \
6368                      || ('j' <= (c) && (c) <= 'r') \
6369                      || ('s' <= (c) && (c) <= 'z'))
6370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6371 #endif
6372
6373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6374 int
6375 main ()
6376 {
6377   int i;
6378   for (i = 0; i < 256; i++)
6379     if (XOR (islower (i), ISLOWER (i))
6380         || toupper (i) != TOUPPER (i))
6381       return 2;
6382   return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_c_try_run "$LINENO"; then :
6386
6387 else
6388   ac_cv_header_stdc=no
6389 fi
6390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6391   conftest.$ac_objext conftest.beam conftest.$ac_ext
6392 fi
6393
6394 fi
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6397 $as_echo "$ac_cv_header_stdc" >&6; }
6398 if test $ac_cv_header_stdc = yes; then
6399
6400 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6401
6402 fi
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6405 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6406 if test "${ac_cv_c_const+set}" = set; then :
6407   $as_echo_n "(cached) " >&6
6408 else
6409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h.  */
6411
6412 int
6413 main ()
6414 {
6415 /* FIXME: Include the comments suggested by Paul. */
6416 #ifndef __cplusplus
6417   /* Ultrix mips cc rejects this.  */
6418   typedef int charset[2];
6419   const charset cs;
6420   /* SunOS 4.1.1 cc rejects this.  */
6421   char const *const *pcpcc;
6422   char **ppc;
6423   /* NEC SVR4.0.2 mips cc rejects this.  */
6424   struct point {int x, y;};
6425   static struct point const zero = {0,0};
6426   /* AIX XL C 1.02.0.0 rejects this.
6427      It does not let you subtract one const X* pointer from another in
6428      an arm of an if-expression whose if-part is not a constant
6429      expression */
6430   const char *g = "string";
6431   pcpcc = &g + (g ? g-g : 0);
6432   /* HPUX 7.0 cc rejects these. */
6433   ++pcpcc;
6434   ppc = (char**) pcpcc;
6435   pcpcc = (char const *const *) ppc;
6436   { /* SCO 3.2v4 cc rejects this.  */
6437     char *t;
6438     char const *s = 0 ? (char *) 0 : (char const *) 0;
6439
6440     *t++ = 0;
6441     if (s) return 0;
6442   }
6443   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6444     int x[] = {25, 17};
6445     const int *foo = &x[0];
6446     ++foo;
6447   }
6448   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6449     typedef const int *iptr;
6450     iptr p = 0;
6451     ++p;
6452   }
6453   { /* AIX XL C 1.02.0.0 rejects this saying
6454        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6455     struct s { int j; const int *ap[3]; };
6456     struct s *b; b->j = 5;
6457   }
6458   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6459     const int foo = 10;
6460     if (!foo) return 0;
6461   }
6462   return !cs[0] && !zero.x;
6463 #endif
6464
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"; then :
6470   ac_cv_c_const=yes
6471 else
6472   ac_cv_c_const=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6477 $as_echo "$ac_cv_c_const" >&6; }
6478 if test $ac_cv_c_const = no; then
6479
6480 $as_echo "#define const /**/" >>confdefs.h
6481
6482 fi
6483
6484
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6486 $as_echo_n "checking for signed... " >&6; }
6487 if test "${bh_cv_c_signed+set}" = set; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496 signed char x;
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502   bh_cv_c_signed=yes
6503 else
6504   bh_cv_c_signed=no
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6509 $as_echo "$bh_cv_c_signed" >&6; }
6510   if test $bh_cv_c_signed = no; then
6511
6512 $as_echo "#define signed /**/" >>confdefs.h
6513
6514   fi
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6517 $as_echo_n "checking for inline... " >&6; }
6518 if test "${ac_cv_c_inline+set}" = set; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   ac_cv_c_inline=no
6522 for ac_kw in inline __inline__ __inline; do
6523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h.  */
6525 #ifndef __cplusplus
6526 typedef int foo_t;
6527 static $ac_kw foo_t static_foo () {return 0; }
6528 $ac_kw foo_t foo () {return 0; }
6529 #endif
6530
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533   ac_cv_c_inline=$ac_kw
6534 fi
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536   test "$ac_cv_c_inline" != no && break
6537 done
6538
6539 fi
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6541 $as_echo "$ac_cv_c_inline" >&6; }
6542
6543 case $ac_cv_c_inline in
6544   inline | yes) ;;
6545   *)
6546     case $ac_cv_c_inline in
6547       no) ac_val=;;
6548       *) ac_val=$ac_cv_c_inline;;
6549     esac
6550     cat >>confdefs.h <<_ACEOF
6551 #ifndef __cplusplus
6552 #define inline $ac_val
6553 #endif
6554 _ACEOF
6555     ;;
6556 esac
6557
6558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560                   inttypes.h stdint.h unistd.h
6561 do :
6562   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6564 "
6565 eval as_val=\$$as_ac_Header
6566    if test "x$as_val" = x""yes; then :
6567   cat >>confdefs.h <<_ACEOF
6568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6570
6571 fi
6572
6573 done
6574
6575
6576 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6577 if test "x$ac_cv_type_off_t" = x""yes; then :
6578
6579 else
6580
6581 cat >>confdefs.h <<_ACEOF
6582 #define off_t long int
6583 _ACEOF
6584
6585 fi
6586
6587 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6588 if test "x$ac_cv_type_size_t" = x""yes; then :
6589
6590 else
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define size_t unsigned int
6594 _ACEOF
6595
6596 fi
6597
6598
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6600 $as_echo_n "checking for long long... " >&6; }
6601 if test "${ac_cv_type_long_long+set}" = set; then :
6602   $as_echo_n "(cached) " >&6
6603 else
6604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h.  */
6606 long long ll = 1LL; int i = 63;
6607 int
6608 main ()
6609 {
6610 long long llmax = (long long) -1;
6611      return ll << i | ll >> i | llmax / ll | llmax % ll;
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_link "$LINENO"; then :
6617   ac_cv_type_long_long=yes
6618 else
6619   ac_cv_type_long_long=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext \
6622     conftest$ac_exeext conftest.$ac_ext
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6625 $as_echo "$ac_cv_type_long_long" >&6; }
6626   if test $ac_cv_type_long_long = yes; then
6627
6628 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6629
6630   fi
6631
6632
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6634 $as_echo_n "checking for long double... " >&6; }
6635 if test "${gt_cv_c_long_double+set}" = set; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test "$GCC" = yes; then
6639        gt_cv_c_long_double=yes
6640      else
6641        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h.  */
6643
6644          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6645          long double foo = 0.0;
6646          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6647          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6648
6649 int
6650 main ()
6651 {
6652
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658   gt_cv_c_long_double=yes
6659 else
6660   gt_cv_c_long_double=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663      fi
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6666 $as_echo "$gt_cv_c_long_double" >&6; }
6667   if test $gt_cv_c_long_double = yes; then
6668
6669 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6670
6671   fi
6672
6673
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6675 $as_echo_n "checking for wchar_t... " >&6; }
6676 if test "${gt_cv_c_wchar_t+set}" = set; then :
6677   $as_echo_n "(cached) " >&6
6678 else
6679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h.  */
6681 #include <stddef.h>
6682        wchar_t foo = (wchar_t)'\0';
6683 int
6684 main ()
6685 {
6686
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692   gt_cv_c_wchar_t=yes
6693 else
6694   gt_cv_c_wchar_t=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6699 $as_echo "$gt_cv_c_wchar_t" >&6; }
6700   if test $gt_cv_c_wchar_t = yes; then
6701
6702 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6703
6704   fi
6705
6706
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6708 $as_echo_n "checking for wint_t... " >&6; }
6709 if test "${gt_cv_c_wint_t+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h.  */
6714 #include <wchar.h>
6715        wint_t foo = (wchar_t)'\0';
6716 int
6717 main ()
6718 {
6719
6720   ;
6721   return 0;
6722 }
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725   gt_cv_c_wint_t=yes
6726 else
6727   gt_cv_c_wint_t=no
6728 fi
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6732 $as_echo "$gt_cv_c_wint_t" >&6; }
6733   if test $gt_cv_c_wint_t = yes; then
6734
6735 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6736
6737   fi
6738
6739
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6741 $as_echo_n "checking for inttypes.h... " >&6; }
6742 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747 #include <sys/types.h>
6748 #include <inttypes.h>
6749 int
6750 main ()
6751 {
6752 uintmax_t i = (uintmax_t) -1;
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758   jm_ac_cv_header_inttypes_h=yes
6759 else
6760   jm_ac_cv_header_inttypes_h=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6765 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6766   if test $jm_ac_cv_header_inttypes_h = yes; then
6767
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6770 _ACEOF
6771
6772   fi
6773
6774
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6776 $as_echo_n "checking for stdint.h... " >&6; }
6777 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782 #include <sys/types.h>
6783 #include <stdint.h>
6784 int
6785 main ()
6786 {
6787 uintmax_t i = (uintmax_t) -1;
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793   jm_ac_cv_header_stdint_h=yes
6794 else
6795   jm_ac_cv_header_stdint_h=no
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6800 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6801   if test $jm_ac_cv_header_stdint_h = yes; then
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_STDINT_H_WITH_UINTMAX 1
6805 _ACEOF
6806
6807   fi
6808
6809
6810
6811
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6813 $as_echo_n "checking for intmax_t... " >&6; }
6814 if test "${gt_cv_c_intmax_t+set}" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h.  */
6819
6820 #include <stddef.h>
6821 #include <stdlib.h>
6822 #if HAVE_STDINT_H_WITH_UINTMAX
6823 #include <stdint.h>
6824 #endif
6825 #if HAVE_INTTYPES_H_WITH_UINTMAX
6826 #include <inttypes.h>
6827 #endif
6828
6829 int
6830 main ()
6831 {
6832 intmax_t x = -1;
6833   ;
6834   return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838   gt_cv_c_intmax_t=yes
6839 else
6840   gt_cv_c_intmax_t=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6845 $as_echo "$gt_cv_c_intmax_t" >&6; }
6846   if test $gt_cv_c_intmax_t = yes; then
6847
6848 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6849
6850   fi
6851
6852
6853
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6855 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6856 if test "${gt_cv_func_printf_posix+set}" = set; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859
6860       if test "$cross_compiling" = yes; then :
6861
6862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h.  */
6864
6865 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6866   notposix
6867 #endif
6868
6869 _ACEOF
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871   $EGREP "notposix" >/dev/null 2>&1; then :
6872   gt_cv_func_printf_posix="guessing no"
6873 else
6874   gt_cv_func_printf_posix="guessing yes"
6875 fi
6876 rm -f conftest*
6877
6878
6879 else
6880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882
6883 #include <stdio.h>
6884 #include <string.h>
6885 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6886    dollar expansion (possibly an autoconf bug).  */
6887 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6888 static char buf[100];
6889 int main ()
6890 {
6891   sprintf (buf, format, 33, 55);
6892   return (strcmp (buf, "55 33") != 0);
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_run "$LINENO"; then :
6896   gt_cv_func_printf_posix=yes
6897 else
6898   gt_cv_func_printf_posix=no
6899 fi
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6901   conftest.$ac_objext conftest.beam conftest.$ac_ext
6902 fi
6903
6904
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6907 $as_echo "$gt_cv_func_printf_posix" >&6; }
6908   case $gt_cv_func_printf_posix in
6909     *yes)
6910
6911 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6912
6913       ;;
6914   esac
6915
6916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6917 # for constant arguments.  Useless!
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6919 $as_echo_n "checking for working alloca.h... " >&6; }
6920 if test "${ac_cv_working_alloca_h+set}" = set; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #include <alloca.h>
6926 int
6927 main ()
6928 {
6929 char *p = (char *) alloca (2 * sizeof (int));
6930                           if (p) return 0;
6931   ;
6932   return 0;
6933 }
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936   ac_cv_working_alloca_h=yes
6937 else
6938   ac_cv_working_alloca_h=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext \
6941     conftest$ac_exeext conftest.$ac_ext
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6944 $as_echo "$ac_cv_working_alloca_h" >&6; }
6945 if test $ac_cv_working_alloca_h = yes; then
6946
6947 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6948
6949 fi
6950
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6952 $as_echo_n "checking for alloca... " >&6; }
6953 if test "${ac_cv_func_alloca_works+set}" = set; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958 #ifdef __GNUC__
6959 # define alloca __builtin_alloca
6960 #else
6961 # ifdef _MSC_VER
6962 #  include <malloc.h>
6963 #  define alloca _alloca
6964 # else
6965 #  ifdef HAVE_ALLOCA_H
6966 #   include <alloca.h>
6967 #  else
6968 #   ifdef _AIX
6969  #pragma alloca
6970 #   else
6971 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6972 char *alloca ();
6973 #    endif
6974 #   endif
6975 #  endif
6976 # endif
6977 #endif
6978
6979 int
6980 main ()
6981 {
6982 char *p = (char *) alloca (1);
6983                                     if (p) return 0;
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989   ac_cv_func_alloca_works=yes
6990 else
6991   ac_cv_func_alloca_works=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext \
6994     conftest$ac_exeext conftest.$ac_ext
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6997 $as_echo "$ac_cv_func_alloca_works" >&6; }
6998
6999 if test $ac_cv_func_alloca_works = yes; then
7000
7001 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7002
7003 else
7004   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7005 # that cause trouble.  Some versions do not even contain alloca or
7006 # contain a buggy version.  If you still want to use their alloca,
7007 # use ar to extract alloca.o from them instead of compiling alloca.c.
7008
7009 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7010
7011 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7012
7013
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7015 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7016 if test "${ac_cv_os_cray+set}" = set; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h.  */
7021 #if defined CRAY && ! defined CRAY2
7022 webecray
7023 #else
7024 wenotbecray
7025 #endif
7026
7027 _ACEOF
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029   $EGREP "webecray" >/dev/null 2>&1; then :
7030   ac_cv_os_cray=yes
7031 else
7032   ac_cv_os_cray=no
7033 fi
7034 rm -f conftest*
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7038 $as_echo "$ac_cv_os_cray" >&6; }
7039 if test $ac_cv_os_cray = yes; then
7040   for ac_func in _getb67 GETB67 getb67; do
7041     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7043 eval as_val=\$$as_ac_var
7044    if test "x$as_val" = x""yes; then :
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define CRAY_STACKSEG_END $ac_func
7048 _ACEOF
7049
7050     break
7051 fi
7052
7053   done
7054 fi
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7057 $as_echo_n "checking stack direction for C alloca... " >&6; }
7058 if test "${ac_cv_c_stack_direction+set}" = set; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   if test "$cross_compiling" = yes; then :
7062   ac_cv_c_stack_direction=0
7063 else
7064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h.  */
7066 $ac_includes_default
7067 int
7068 find_stack_direction ()
7069 {
7070   static char *addr = 0;
7071   auto char dummy;
7072   if (addr == 0)
7073     {
7074       addr = &dummy;
7075       return find_stack_direction ();
7076     }
7077   else
7078     return (&dummy > addr) ? 1 : -1;
7079 }
7080
7081 int
7082 main ()
7083 {
7084   return find_stack_direction () < 0;
7085 }
7086 _ACEOF
7087 if ac_fn_c_try_run "$LINENO"; then :
7088   ac_cv_c_stack_direction=1
7089 else
7090   ac_cv_c_stack_direction=-1
7091 fi
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7093   conftest.$ac_objext conftest.beam conftest.$ac_ext
7094 fi
7095
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7098 $as_echo "$ac_cv_c_stack_direction" >&6; }
7099 cat >>confdefs.h <<_ACEOF
7100 #define STACK_DIRECTION $ac_cv_c_stack_direction
7101 _ACEOF
7102
7103
7104 fi
7105
7106
7107
7108
7109   for ac_header in $ac_header_list
7110 do :
7111   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7113 "
7114 eval as_val=\$$as_ac_Header
7115    if test "x$as_val" = x""yes; then :
7116   cat >>confdefs.h <<_ACEOF
7117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 _ACEOF
7119
7120 fi
7121
7122 done
7123
7124
7125
7126
7127
7128
7129
7130
7131 for ac_func in getpagesize
7132 do :
7133   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7134 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7135   cat >>confdefs.h <<_ACEOF
7136 #define HAVE_GETPAGESIZE 1
7137 _ACEOF
7138
7139 fi
7140 done
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7143 $as_echo_n "checking for working mmap... " >&6; }
7144 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   if test "$cross_compiling" = yes; then :
7148   ac_cv_func_mmap_fixed_mapped=no
7149 else
7150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h.  */
7152 $ac_includes_default
7153 /* malloc might have been renamed as rpl_malloc. */
7154 #undef malloc
7155
7156 /* Thanks to Mike Haertel and Jim Avera for this test.
7157    Here is a matrix of mmap possibilities:
7158         mmap private not fixed
7159         mmap private fixed at somewhere currently unmapped
7160         mmap private fixed at somewhere already mapped
7161         mmap shared not fixed
7162         mmap shared fixed at somewhere currently unmapped
7163         mmap shared fixed at somewhere already mapped
7164    For private mappings, we should verify that changes cannot be read()
7165    back from the file, nor mmap's back from the file at a different
7166    address.  (There have been systems where private was not correctly
7167    implemented like the infamous i386 svr4.0, and systems where the
7168    VM page cache was not coherent with the file system buffer cache
7169    like early versions of FreeBSD and possibly contemporary NetBSD.)
7170    For shared mappings, we should conversely verify that changes get
7171    propagated back to all the places they're supposed to be.
7172
7173    Grep wants private fixed already mapped.
7174    The main things grep needs to know about mmap are:
7175    * does it exist and is it safe to write into the mmap'd area
7176    * how to use it (BSD variants)  */
7177
7178 #include <fcntl.h>
7179 #include <sys/mman.h>
7180
7181 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7182 char *malloc ();
7183 #endif
7184
7185 /* This mess was copied from the GNU getpagesize.h.  */
7186 #ifndef HAVE_GETPAGESIZE
7187 # ifdef _SC_PAGESIZE
7188 #  define getpagesize() sysconf(_SC_PAGESIZE)
7189 # else /* no _SC_PAGESIZE */
7190 #  ifdef HAVE_SYS_PARAM_H
7191 #   include <sys/param.h>
7192 #   ifdef EXEC_PAGESIZE
7193 #    define getpagesize() EXEC_PAGESIZE
7194 #   else /* no EXEC_PAGESIZE */
7195 #    ifdef NBPG
7196 #     define getpagesize() NBPG * CLSIZE
7197 #     ifndef CLSIZE
7198 #      define CLSIZE 1
7199 #     endif /* no CLSIZE */
7200 #    else /* no NBPG */
7201 #     ifdef NBPC
7202 #      define getpagesize() NBPC
7203 #     else /* no NBPC */
7204 #      ifdef PAGESIZE
7205 #       define getpagesize() PAGESIZE
7206 #      endif /* PAGESIZE */
7207 #     endif /* no NBPC */
7208 #    endif /* no NBPG */
7209 #   endif /* no EXEC_PAGESIZE */
7210 #  else /* no HAVE_SYS_PARAM_H */
7211 #   define getpagesize() 8192   /* punt totally */
7212 #  endif /* no HAVE_SYS_PARAM_H */
7213 # endif /* no _SC_PAGESIZE */
7214
7215 #endif /* no HAVE_GETPAGESIZE */
7216
7217 int
7218 main ()
7219 {
7220   char *data, *data2, *data3;
7221   const char *cdata2;
7222   int i, pagesize;
7223   int fd, fd2;
7224
7225   pagesize = getpagesize ();
7226
7227   /* First, make a file with some known garbage in it. */
7228   data = (char *) malloc (pagesize);
7229   if (!data)
7230     return 1;
7231   for (i = 0; i < pagesize; ++i)
7232     *(data + i) = rand ();
7233   umask (0);
7234   fd = creat ("conftest.mmap", 0600);
7235   if (fd < 0)
7236     return 2;
7237   if (write (fd, data, pagesize) != pagesize)
7238     return 3;
7239   close (fd);
7240
7241   /* Next, check that the tail of a page is zero-filled.  File must have
7242      non-zero length, otherwise we risk SIGBUS for entire page.  */
7243   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7244   if (fd2 < 0)
7245     return 4;
7246   cdata2 = "";
7247   if (write (fd2, cdata2, 1) != 1)
7248     return 5;
7249   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7250   if (data2 == MAP_FAILED)
7251     return 6;
7252   for (i = 0; i < pagesize; ++i)
7253     if (*(data2 + i))
7254       return 7;
7255   close (fd2);
7256   if (munmap (data2, pagesize))
7257     return 8;
7258
7259   /* Next, try to mmap the file at a fixed address which already has
7260      something else allocated at it.  If we can, also make sure that
7261      we see the same garbage.  */
7262   fd = open ("conftest.mmap", O_RDWR);
7263   if (fd < 0)
7264     return 9;
7265   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7266                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7267     return 10;
7268   for (i = 0; i < pagesize; ++i)
7269     if (*(data + i) != *(data2 + i))
7270       return 11;
7271
7272   /* Finally, make sure that changes to the mapped area do not
7273      percolate back to the file as seen by read().  (This is a bug on
7274      some variants of i386 svr4.0.)  */
7275   for (i = 0; i < pagesize; ++i)
7276     *(data2 + i) = *(data2 + i) + 1;
7277   data3 = (char *) malloc (pagesize);
7278   if (!data3)
7279     return 12;
7280   if (read (fd, data3, pagesize) != pagesize)
7281     return 13;
7282   for (i = 0; i < pagesize; ++i)
7283     if (*(data + i) != *(data3 + i))
7284       return 14;
7285   close (fd);
7286   return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_run "$LINENO"; then :
7290   ac_cv_func_mmap_fixed_mapped=yes
7291 else
7292   ac_cv_func_mmap_fixed_mapped=no
7293 fi
7294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7295   conftest.$ac_objext conftest.beam conftest.$ac_ext
7296 fi
7297
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7300 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7301 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7302
7303 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7304
7305 fi
7306 rm -f conftest.mmap conftest.txt
7307
7308
7309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7310 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7311 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h.  */
7316
7317 #include <features.h>
7318 #ifdef __GNU_LIBRARY__
7319  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7320   Lucky GNU user
7321  #endif
7322 #endif
7323
7324 _ACEOF
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7327   ac_cv_gnu_library_2_1=yes
7328 else
7329   ac_cv_gnu_library_2_1=no
7330 fi
7331 rm -f conftest*
7332
7333
7334
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7337 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7338
7339     GLIBC21="$ac_cv_gnu_library_2_1"
7340
7341
7342
7343
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7345 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7346 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349
7350       if test "$cross_compiling" = yes; then :
7351
7352           # Guess based on the CPU.
7353           case "$host_cpu" in
7354             alpha* | i3456786 | m68k | s390*)
7355               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7356             *)
7357               gt_cv_int_divbyzero_sigfpe="guessing no";;
7358           esac
7359
7360 else
7361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h.  */
7363
7364 #include <stdlib.h>
7365 #include <signal.h>
7366
7367 static void
7368 #ifdef __cplusplus
7369 sigfpe_handler (int sig)
7370 #else
7371 sigfpe_handler (sig) int sig;
7372 #endif
7373 {
7374   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7375   exit (sig != SIGFPE);
7376 }
7377
7378 int x = 1;
7379 int y = 0;
7380 int z;
7381 int nan;
7382
7383 int main ()
7384 {
7385   signal (SIGFPE, sigfpe_handler);
7386 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7387 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7388   signal (SIGTRAP, sigfpe_handler);
7389 #endif
7390 /* Linux/SPARC yields signal SIGILL.  */
7391 #if defined (__sparc__) && defined (__linux__)
7392   signal (SIGILL, sigfpe_handler);
7393 #endif
7394
7395   z = x / y;
7396   nan = y / y;
7397   exit (1);
7398 }
7399
7400 _ACEOF
7401 if ac_fn_c_try_run "$LINENO"; then :
7402   gt_cv_int_divbyzero_sigfpe=yes
7403 else
7404   gt_cv_int_divbyzero_sigfpe=no
7405 fi
7406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7407   conftest.$ac_objext conftest.beam conftest.$ac_ext
7408 fi
7409
7410
7411 fi
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7413 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7414   case "$gt_cv_int_divbyzero_sigfpe" in
7415     *yes) value=1;;
7416     *) value=0;;
7417   esac
7418
7419 cat >>confdefs.h <<_ACEOF
7420 #define INTDIV0_RAISES_SIGFPE $value
7421 _ACEOF
7422
7423
7424
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7426 $as_echo_n "checking for unsigned long long... " >&6; }
7427 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432 unsigned long long ull = 1ULL; int i = 63;
7433 int
7434 main ()
7435 {
7436 unsigned long long ullmax = (unsigned long long) -1;
7437      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"; then :
7443   ac_cv_type_unsigned_long_long=yes
7444 else
7445   ac_cv_type_unsigned_long_long=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext \
7448     conftest$ac_exeext conftest.$ac_ext
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7451 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7452   if test $ac_cv_type_unsigned_long_long = yes; then
7453
7454 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7455
7456   fi
7457
7458
7459
7460
7461   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7462
7463     test $ac_cv_type_unsigned_long_long = yes \
7464       && ac_type='unsigned long long' \
7465       || ac_type='unsigned long'
7466
7467 cat >>confdefs.h <<_ACEOF
7468 #define uintmax_t $ac_type
7469 _ACEOF
7470
7471   else
7472
7473 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7474
7475   fi
7476
7477
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7479 $as_echo_n "checking for inttypes.h... " >&6; }
7480 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483
7484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h.  */
7486 #include <sys/types.h>
7487 #include <inttypes.h>
7488 int
7489 main ()
7490 {
7491
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497   gt_cv_header_inttypes_h=yes
7498 else
7499   gt_cv_header_inttypes_h=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7505 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7506   if test $gt_cv_header_inttypes_h = yes; then
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_INTTYPES_H 1
7510 _ACEOF
7511
7512   fi
7513
7514
7515
7516   if test $gt_cv_header_inttypes_h = yes; then
7517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7518 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7519 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522
7523         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h.  */
7525 #include <inttypes.h>
7526 #ifdef PRId32
7527 char *p = PRId32;
7528 #endif
7529
7530 int
7531 main ()
7532 {
7533
7534   ;
7535   return 0;
7536 }
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539   gt_cv_inttypes_pri_broken=no
7540 else
7541   gt_cv_inttypes_pri_broken=yes
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7547 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7548   fi
7549   if test "$gt_cv_inttypes_pri_broken" = yes; then
7550
7551 cat >>confdefs.h <<_ACEOF
7552 #define PRI_MACROS_BROKEN 1
7553 _ACEOF
7554
7555   fi
7556
7557
7558   for ac_header in stdint.h
7559 do :
7560   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7561 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7562   cat >>confdefs.h <<_ACEOF
7563 #define HAVE_STDINT_H 1
7564 _ACEOF
7565
7566 fi
7567
7568 done
7569
7570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7571 $as_echo_n "checking for SIZE_MAX... " >&6; }
7572   result=
7573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h.  */
7575
7576 #include <limits.h>
7577 #if HAVE_STDINT_H
7578 #include <stdint.h>
7579 #endif
7580 #ifdef SIZE_MAX
7581 Found it
7582 #endif
7583
7584 _ACEOF
7585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7586   $EGREP "Found it" >/dev/null 2>&1; then :
7587   result=yes
7588 fi
7589 rm -f conftest*
7590
7591   if test -z "$result"; then
7592                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7593
7594 else
7595   result=?
7596 fi
7597
7598
7599     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7600
7601 else
7602   result=?
7603 fi
7604
7605
7606     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7607
7608 else
7609   result=?
7610 fi
7611
7612
7613     if test "$fits_in_uint" = 1; then
7614                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h.  */
7616 #include <stddef.h>
7617         extern size_t foo;
7618         extern unsigned long foo;
7619
7620 int
7621 main ()
7622 {
7623
7624   ;
7625   return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629   fits_in_uint=0
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632     fi
7633     if test -z "$result"; then
7634       if test "$fits_in_uint" = 1; then
7635         result="$res_hi$res_lo"U
7636       else
7637         result="$res_hi$res_lo"UL
7638       fi
7639     else
7640             result='~(size_t)0'
7641     fi
7642   fi
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7644 $as_echo "$result" >&6; }
7645   if test "$result" != yes; then
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define SIZE_MAX $result
7649 _ACEOF
7650
7651   fi
7652
7653
7654
7655   for ac_header in stdint.h
7656 do :
7657   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7658 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7659   cat >>confdefs.h <<_ACEOF
7660 #define HAVE_STDINT_H 1
7661 _ACEOF
7662
7663 fi
7664
7665 done
7666
7667
7668
7669       if test "X$prefix" = "XNONE"; then
7670     acl_final_prefix="$ac_default_prefix"
7671   else
7672     acl_final_prefix="$prefix"
7673   fi
7674   if test "X$exec_prefix" = "XNONE"; then
7675     acl_final_exec_prefix='${prefix}'
7676   else
7677     acl_final_exec_prefix="$exec_prefix"
7678   fi
7679   acl_save_prefix="$prefix"
7680   prefix="$acl_final_prefix"
7681   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7682   prefix="$acl_save_prefix"
7683
7684
7685 # Check whether --with-gnu-ld was given.
7686 if test "${with_gnu_ld+set}" = set; then :
7687   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7688 else
7689   with_gnu_ld=no
7690 fi
7691
7692 # Prepare PATH_SEPARATOR.
7693 # The user is always right.
7694 if test "${PATH_SEPARATOR+set}" != set; then
7695   echo "#! /bin/sh" >conf$$.sh
7696   echo  "exit 0"   >>conf$$.sh
7697   chmod +x conf$$.sh
7698   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7699     PATH_SEPARATOR=';'
7700   else
7701     PATH_SEPARATOR=:
7702   fi
7703   rm -f conf$$.sh
7704 fi
7705 ac_prog=ld
7706 if test "$GCC" = yes; then
7707   # Check if gcc -print-prog-name=ld gives a path.
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7709 $as_echo_n "checking for ld used by GCC... " >&6; }
7710   case $host in
7711   *-*-mingw*)
7712     # gcc leaves a trailing carriage return which upsets mingw
7713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7714   *)
7715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7716   esac
7717   case $ac_prog in
7718     # Accept absolute paths.
7719     [\\/]* | [A-Za-z]:[\\/]*)
7720       re_direlt='/[^/][^/]*/\.\./'
7721       # Canonicalize the path of ld
7722       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7723       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7724         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7725       done
7726       test -z "$LD" && LD="$ac_prog"
7727       ;;
7728   "")
7729     # If it fails, then pretend we aren't using GCC.
7730     ac_prog=ld
7731     ;;
7732   *)
7733     # If it is relative, then search for the first ld in PATH.
7734     with_gnu_ld=unknown
7735     ;;
7736   esac
7737 elif test "$with_gnu_ld" = yes; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7739 $as_echo_n "checking for GNU ld... " >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7742 $as_echo_n "checking for non-GNU ld... " >&6; }
7743 fi
7744 if test "${acl_cv_path_LD+set}" = set; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747   if test -z "$LD"; then
7748   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7749   for ac_dir in $PATH; do
7750     test -z "$ac_dir" && ac_dir=.
7751     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7752       acl_cv_path_LD="$ac_dir/$ac_prog"
7753       # Check to see if the program is GNU ld.  I'd rather use --version,
7754       # but apparently some GNU ld's only accept -v.
7755       # Break only if it was the GNU/non-GNU ld that we prefer.
7756       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7757       *GNU* | *'with BFD'*)
7758         test "$with_gnu_ld" != no && break ;;
7759       *)
7760         test "$with_gnu_ld" != yes && break ;;
7761       esac
7762     fi
7763   done
7764   IFS="$ac_save_ifs"
7765 else
7766   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7767 fi
7768 fi
7769
7770 LD="$acl_cv_path_LD"
7771 if test -n "$LD"; then
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7773 $as_echo "$LD" >&6; }
7774 else
7775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7780 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7781 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7785 case `$LD -v 2>&1 </dev/null` in
7786 *GNU* | *'with BFD'*)
7787   acl_cv_prog_gnu_ld=yes ;;
7788 *)
7789   acl_cv_prog_gnu_ld=no ;;
7790 esac
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7793 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7794 with_gnu_ld=$acl_cv_prog_gnu_ld
7795
7796
7797
7798                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7799 $as_echo_n "checking for shared library run path origin... " >&6; }
7800 if test "${acl_cv_rpath+set}" = set; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803
7804     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7805     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7806     . ./conftest.sh
7807     rm -f ./conftest.sh
7808     acl_cv_rpath=done
7809
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7812 $as_echo "$acl_cv_rpath" >&6; }
7813   wl="$acl_cv_wl"
7814   libext="$acl_cv_libext"
7815   shlibext="$acl_cv_shlibext"
7816   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7817   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7818   hardcode_direct="$acl_cv_hardcode_direct"
7819   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7820     # Check whether --enable-rpath was given.
7821 if test "${enable_rpath+set}" = set; then :
7822   enableval=$enable_rpath; :
7823 else
7824   enable_rpath=yes
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834     use_additional=yes
7835
7836   acl_save_prefix="$prefix"
7837   prefix="$acl_final_prefix"
7838   acl_save_exec_prefix="$exec_prefix"
7839   exec_prefix="$acl_final_exec_prefix"
7840
7841     eval additional_includedir=\"$includedir\"
7842     eval additional_libdir=\"$libdir\"
7843
7844   exec_prefix="$acl_save_exec_prefix"
7845   prefix="$acl_save_prefix"
7846
7847
7848 # Check whether --with-libiconv-prefix was given.
7849 if test "${with_libiconv_prefix+set}" = set; then :
7850   withval=$with_libiconv_prefix;
7851     if test "X$withval" = "Xno"; then
7852       use_additional=no
7853     else
7854       if test "X$withval" = "X"; then
7855
7856   acl_save_prefix="$prefix"
7857   prefix="$acl_final_prefix"
7858   acl_save_exec_prefix="$exec_prefix"
7859   exec_prefix="$acl_final_exec_prefix"
7860
7861           eval additional_includedir=\"$includedir\"
7862           eval additional_libdir=\"$libdir\"
7863
7864   exec_prefix="$acl_save_exec_prefix"
7865   prefix="$acl_save_prefix"
7866
7867       else
7868         additional_includedir="$withval/include"
7869         additional_libdir="$withval/lib"
7870       fi
7871     fi
7872
7873 fi
7874
7875       LIBICONV=
7876   LTLIBICONV=
7877   INCICONV=
7878   rpathdirs=
7879   ltrpathdirs=
7880   names_already_handled=
7881   names_next_round='iconv '
7882   while test -n "$names_next_round"; do
7883     names_this_round="$names_next_round"
7884     names_next_round=
7885     for name in $names_this_round; do
7886       already_handled=
7887       for n in $names_already_handled; do
7888         if test "$n" = "$name"; then
7889           already_handled=yes
7890           break
7891         fi
7892       done
7893       if test -z "$already_handled"; then
7894         names_already_handled="$names_already_handled $name"
7895                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7896         eval value=\"\$HAVE_LIB$uppername\"
7897         if test -n "$value"; then
7898           if test "$value" = yes; then
7899             eval value=\"\$LIB$uppername\"
7900             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7901             eval value=\"\$LTLIB$uppername\"
7902             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7903           else
7904                                     :
7905           fi
7906         else
7907                               found_dir=
7908           found_la=
7909           found_so=
7910           found_a=
7911           if test $use_additional = yes; then
7912             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7913               found_dir="$additional_libdir"
7914               found_so="$additional_libdir/lib$name.$shlibext"
7915               if test -f "$additional_libdir/lib$name.la"; then
7916                 found_la="$additional_libdir/lib$name.la"
7917               fi
7918             else
7919               if test -f "$additional_libdir/lib$name.$libext"; then
7920                 found_dir="$additional_libdir"
7921                 found_a="$additional_libdir/lib$name.$libext"
7922                 if test -f "$additional_libdir/lib$name.la"; then
7923                   found_la="$additional_libdir/lib$name.la"
7924                 fi
7925               fi
7926             fi
7927           fi
7928           if test "X$found_dir" = "X"; then
7929             for x in $LDFLAGS $LTLIBICONV; do
7930
7931   acl_save_prefix="$prefix"
7932   prefix="$acl_final_prefix"
7933   acl_save_exec_prefix="$exec_prefix"
7934   exec_prefix="$acl_final_exec_prefix"
7935   eval x=\"$x\"
7936   exec_prefix="$acl_save_exec_prefix"
7937   prefix="$acl_save_prefix"
7938
7939               case "$x" in
7940                 -L*)
7941                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7942                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7943                     found_dir="$dir"
7944                     found_so="$dir/lib$name.$shlibext"
7945                     if test -f "$dir/lib$name.la"; then
7946                       found_la="$dir/lib$name.la"
7947                     fi
7948                   else
7949                     if test -f "$dir/lib$name.$libext"; then
7950                       found_dir="$dir"
7951                       found_a="$dir/lib$name.$libext"
7952                       if test -f "$dir/lib$name.la"; then
7953                         found_la="$dir/lib$name.la"
7954                       fi
7955                     fi
7956                   fi
7957                   ;;
7958               esac
7959               if test "X$found_dir" != "X"; then
7960                 break
7961               fi
7962             done
7963           fi
7964           if test "X$found_dir" != "X"; then
7965                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7966             if test "X$found_so" != "X"; then
7967                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7968                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7969               else
7970                                                                                 haveit=
7971                 for x in $ltrpathdirs; do
7972                   if test "X$x" = "X$found_dir"; then
7973                     haveit=yes
7974                     break
7975                   fi
7976                 done
7977                 if test -z "$haveit"; then
7978                   ltrpathdirs="$ltrpathdirs $found_dir"
7979                 fi
7980                                 if test "$hardcode_direct" = yes; then
7981                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7982                 else
7983                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7984                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7985                                                             haveit=
7986                     for x in $rpathdirs; do
7987                       if test "X$x" = "X$found_dir"; then
7988                         haveit=yes
7989                         break
7990                       fi
7991                     done
7992                     if test -z "$haveit"; then
7993                       rpathdirs="$rpathdirs $found_dir"
7994                     fi
7995                   else
7996                                                                                 haveit=
7997                     for x in $LDFLAGS $LIBICONV; do
7998
7999   acl_save_prefix="$prefix"
8000   prefix="$acl_final_prefix"
8001   acl_save_exec_prefix="$exec_prefix"
8002   exec_prefix="$acl_final_exec_prefix"
8003   eval x=\"$x\"
8004   exec_prefix="$acl_save_exec_prefix"
8005   prefix="$acl_save_prefix"
8006
8007                       if test "X$x" = "X-L$found_dir"; then
8008                         haveit=yes
8009                         break
8010                       fi
8011                     done
8012                     if test -z "$haveit"; then
8013                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8014                     fi
8015                     if test "$hardcode_minus_L" != no; then
8016                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8017                     else
8018                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8019                     fi
8020                   fi
8021                 fi
8022               fi
8023             else
8024               if test "X$found_a" != "X"; then
8025                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8026               else
8027                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8028               fi
8029             fi
8030                         additional_includedir=
8031             case "$found_dir" in
8032               */lib | */lib/)
8033                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8034                 additional_includedir="$basedir/include"
8035                 ;;
8036             esac
8037             if test "X$additional_includedir" != "X"; then
8038                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8039                 haveit=
8040                 if test "X$additional_includedir" = "X/usr/local/include"; then
8041                   if test -n "$GCC"; then
8042                     case $host_os in
8043                       linux*) haveit=yes;;
8044                     esac
8045                   fi
8046                 fi
8047                 if test -z "$haveit"; then
8048                   for x in $CPPFLAGS $INCICONV; do
8049
8050   acl_save_prefix="$prefix"
8051   prefix="$acl_final_prefix"
8052   acl_save_exec_prefix="$exec_prefix"
8053   exec_prefix="$acl_final_exec_prefix"
8054   eval x=\"$x\"
8055   exec_prefix="$acl_save_exec_prefix"
8056   prefix="$acl_save_prefix"
8057
8058                     if test "X$x" = "X-I$additional_includedir"; then
8059                       haveit=yes
8060                       break
8061                     fi
8062                   done
8063                   if test -z "$haveit"; then
8064                     if test -d "$additional_includedir"; then
8065                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8066                     fi
8067                   fi
8068                 fi
8069               fi
8070             fi
8071                         if test -n "$found_la"; then
8072                                                         save_libdir="$libdir"
8073               case "$found_la" in
8074                 */* | *\\*) . "$found_la" ;;
8075                 *) . "./$found_la" ;;
8076               esac
8077               libdir="$save_libdir"
8078                             for dep in $dependency_libs; do
8079                 case "$dep" in
8080                   -L*)
8081                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8082                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8083                       haveit=
8084                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8085                         if test -n "$GCC"; then
8086                           case $host_os in
8087                             linux*) haveit=yes;;
8088                           esac
8089                         fi
8090                       fi
8091                       if test -z "$haveit"; then
8092                         haveit=
8093                         for x in $LDFLAGS $LIBICONV; do
8094
8095   acl_save_prefix="$prefix"
8096   prefix="$acl_final_prefix"
8097   acl_save_exec_prefix="$exec_prefix"
8098   exec_prefix="$acl_final_exec_prefix"
8099   eval x=\"$x\"
8100   exec_prefix="$acl_save_exec_prefix"
8101   prefix="$acl_save_prefix"
8102
8103                           if test "X$x" = "X-L$additional_libdir"; then
8104                             haveit=yes
8105                             break
8106                           fi
8107                         done
8108                         if test -z "$haveit"; then
8109                           if test -d "$additional_libdir"; then
8110                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8111                           fi
8112                         fi
8113                         haveit=
8114                         for x in $LDFLAGS $LTLIBICONV; do
8115
8116   acl_save_prefix="$prefix"
8117   prefix="$acl_final_prefix"
8118   acl_save_exec_prefix="$exec_prefix"
8119   exec_prefix="$acl_final_exec_prefix"
8120   eval x=\"$x\"
8121   exec_prefix="$acl_save_exec_prefix"
8122   prefix="$acl_save_prefix"
8123
8124                           if test "X$x" = "X-L$additional_libdir"; then
8125                             haveit=yes
8126                             break
8127                           fi
8128                         done
8129                         if test -z "$haveit"; then
8130                           if test -d "$additional_libdir"; then
8131                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8132                           fi
8133                         fi
8134                       fi
8135                     fi
8136                     ;;
8137                   -R*)
8138                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8139                     if test "$enable_rpath" != no; then
8140                                                                   haveit=
8141                       for x in $rpathdirs; do
8142                         if test "X$x" = "X$dir"; then
8143                           haveit=yes
8144                           break
8145                         fi
8146                       done
8147                       if test -z "$haveit"; then
8148                         rpathdirs="$rpathdirs $dir"
8149                       fi
8150                                                                   haveit=
8151                       for x in $ltrpathdirs; do
8152                         if test "X$x" = "X$dir"; then
8153                           haveit=yes
8154                           break
8155                         fi
8156                       done
8157                       if test -z "$haveit"; then
8158                         ltrpathdirs="$ltrpathdirs $dir"
8159                       fi
8160                     fi
8161                     ;;
8162                   -l*)
8163                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8164                     ;;
8165                   *.la)
8166                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8167                     ;;
8168                   *)
8169                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8170                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8171                     ;;
8172                 esac
8173               done
8174             fi
8175           else
8176                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8177             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8178           fi
8179         fi
8180       fi
8181     done
8182   done
8183   if test "X$rpathdirs" != "X"; then
8184     if test -n "$hardcode_libdir_separator"; then
8185                         alldirs=
8186       for found_dir in $rpathdirs; do
8187         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8188       done
8189             acl_save_libdir="$libdir"
8190       libdir="$alldirs"
8191       eval flag=\"$hardcode_libdir_flag_spec\"
8192       libdir="$acl_save_libdir"
8193       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8194     else
8195             for found_dir in $rpathdirs; do
8196         acl_save_libdir="$libdir"
8197         libdir="$found_dir"
8198         eval flag=\"$hardcode_libdir_flag_spec\"
8199         libdir="$acl_save_libdir"
8200         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8201       done
8202     fi
8203   fi
8204   if test "X$ltrpathdirs" != "X"; then
8205             for found_dir in $ltrpathdirs; do
8206       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8207     done
8208   fi
8209
8210
8211
8212
8213
8214
8215
8216
8217   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8218 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8219
8220 else
8221
8222 $as_echo "#define ptrdiff_t long" >>confdefs.h
8223
8224
8225 fi
8226
8227   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8228 stdlib.h string.h unistd.h sys/param.h
8229 do :
8230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8232 eval as_val=\$$as_ac_Header
8233    if test "x$as_val" = x""yes; then :
8234   cat >>confdefs.h <<_ACEOF
8235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8236 _ACEOF
8237
8238 fi
8239
8240 done
8241
8242   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8243 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8244 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8245 __fsetlocking
8246 do :
8247   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8249 eval as_val=\$$as_ac_var
8250    if test "x$as_val" = x""yes; then :
8251   cat >>confdefs.h <<_ACEOF
8252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8253 _ACEOF
8254
8255 fi
8256 done
8257
8258
8259
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8261 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8262 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267 #include <stdio.h>
8268 int
8269 main ()
8270 {
8271
8272 #ifndef _snprintf
8273   char *p = (char *) _snprintf;
8274 #endif
8275
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281   ac_cv_have_decl__snprintf=yes
8282 else
8283   ac_cv_have_decl__snprintf=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8288 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8289   if test $ac_cv_have_decl__snprintf = yes; then
8290     gt_value=1
8291   else
8292     gt_value=0
8293   fi
8294
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_DECL__SNPRINTF $gt_value
8297 _ACEOF
8298
8299
8300
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8302 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8303 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <stdio.h>
8309 int
8310 main ()
8311 {
8312
8313 #ifndef _snwprintf
8314   char *p = (char *) _snwprintf;
8315 #endif
8316
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322   ac_cv_have_decl__snwprintf=yes
8323 else
8324   ac_cv_have_decl__snwprintf=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8330   if test $ac_cv_have_decl__snwprintf = yes; then
8331     gt_value=1
8332   else
8333     gt_value=0
8334   fi
8335
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNWPRINTF $gt_value
8338 _ACEOF
8339
8340
8341
8342
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8344 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8345 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h.  */
8350 #include <stdio.h>
8351 int
8352 main ()
8353 {
8354
8355 #ifndef feof_unlocked
8356   char *p = (char *) feof_unlocked;
8357 #endif
8358
8359   ;
8360   return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_compile "$LINENO"; then :
8364   ac_cv_have_decl_feof_unlocked=yes
8365 else
8366   ac_cv_have_decl_feof_unlocked=no
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 fi
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8371 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8372   if test $ac_cv_have_decl_feof_unlocked = yes; then
8373     gt_value=1
8374   else
8375     gt_value=0
8376   fi
8377
8378 cat >>confdefs.h <<_ACEOF
8379 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8380 _ACEOF
8381
8382
8383
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8385 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8386 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h.  */
8391 #include <stdio.h>
8392 int
8393 main ()
8394 {
8395
8396 #ifndef fgets_unlocked
8397   char *p = (char *) fgets_unlocked;
8398 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   ac_cv_have_decl_fgets_unlocked=yes
8406 else
8407   ac_cv_have_decl_fgets_unlocked=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8413   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8414     gt_value=1
8415   else
8416     gt_value=0
8417   fi
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8421 _ACEOF
8422
8423
8424
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8426 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8427 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h.  */
8432 #include <stdio.h>
8433 int
8434 main ()
8435 {
8436
8437 #ifndef getc_unlocked
8438   char *p = (char *) getc_unlocked;
8439 #endif
8440
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446   ac_cv_have_decl_getc_unlocked=yes
8447 else
8448   ac_cv_have_decl_getc_unlocked=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8454   if test $ac_cv_have_decl_getc_unlocked = yes; then
8455     gt_value=1
8456   else
8457     gt_value=0
8458   fi
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8462 _ACEOF
8463
8464
8465
8466   case $gt_cv_func_printf_posix in
8467     *yes) HAVE_POSIX_PRINTF=1 ;;
8468     *) HAVE_POSIX_PRINTF=0 ;;
8469   esac
8470
8471   if test "$ac_cv_func_asprintf" = yes; then
8472     HAVE_ASPRINTF=1
8473   else
8474     HAVE_ASPRINTF=0
8475   fi
8476
8477   if test "$ac_cv_func_snprintf" = yes; then
8478     HAVE_SNPRINTF=1
8479   else
8480     HAVE_SNPRINTF=0
8481   fi
8482
8483   if test "$ac_cv_func_wprintf" = yes; then
8484     HAVE_WPRINTF=1
8485   else
8486     HAVE_WPRINTF=0
8487   fi
8488
8489
8490
8491
8492
8493
8494
8495           am_save_CPPFLAGS="$CPPFLAGS"
8496
8497   for element in $INCICONV; do
8498     haveit=
8499     for x in $CPPFLAGS; do
8500
8501   acl_save_prefix="$prefix"
8502   prefix="$acl_final_prefix"
8503   acl_save_exec_prefix="$exec_prefix"
8504   exec_prefix="$acl_final_exec_prefix"
8505   eval x=\"$x\"
8506   exec_prefix="$acl_save_exec_prefix"
8507   prefix="$acl_save_prefix"
8508
8509       if test "X$x" = "X$element"; then
8510         haveit=yes
8511         break
8512       fi
8513     done
8514     if test -z "$haveit"; then
8515       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8516     fi
8517   done
8518
8519
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8521 $as_echo_n "checking for iconv... " >&6; }
8522 if test "${am_cv_func_iconv+set}" = set; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525
8526     am_cv_func_iconv="no, consider installing GNU libiconv"
8527     am_cv_lib_iconv=no
8528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h.  */
8530 #include <stdlib.h>
8531 #include <iconv.h>
8532 int
8533 main ()
8534 {
8535 iconv_t cd = iconv_open("","");
8536        iconv(cd,NULL,NULL,NULL,NULL);
8537        iconv_close(cd);
8538   ;
8539   return 0;
8540 }
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"; then :
8543   am_cv_func_iconv=yes
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546     conftest$ac_exeext conftest.$ac_ext
8547     if test "$am_cv_func_iconv" != yes; then
8548       am_save_LIBS="$LIBS"
8549       LIBS="$LIBS $LIBICONV"
8550       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h.  */
8552 #include <stdlib.h>
8553 #include <iconv.h>
8554 int
8555 main ()
8556 {
8557 iconv_t cd = iconv_open("","");
8558          iconv(cd,NULL,NULL,NULL,NULL);
8559          iconv_close(cd);
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565   am_cv_lib_iconv=yes
8566         am_cv_func_iconv=yes
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext \
8569     conftest$ac_exeext conftest.$ac_ext
8570       LIBS="$am_save_LIBS"
8571     fi
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8575 $as_echo "$am_cv_func_iconv" >&6; }
8576   if test "$am_cv_func_iconv" = yes; then
8577
8578 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8579
8580   fi
8581   if test "$am_cv_lib_iconv" = yes; then
8582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8583 $as_echo_n "checking how to link with libiconv... " >&6; }
8584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8585 $as_echo "$LIBICONV" >&6; }
8586   else
8587             CPPFLAGS="$am_save_CPPFLAGS"
8588     LIBICONV=
8589     LTLIBICONV=
8590   fi
8591
8592
8593
8594   if test "$am_cv_func_iconv" = yes; then
8595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8596 $as_echo_n "checking for iconv declaration... " >&6; }
8597     if test "${am_cv_proto_iconv+set}" = set; then :
8598   $as_echo_n "(cached) " >&6
8599 else
8600
8601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h.  */
8603
8604 #include <stdlib.h>
8605 #include <iconv.h>
8606 extern
8607 #ifdef __cplusplus
8608 "C"
8609 #endif
8610 #if defined(__STDC__) || defined(__cplusplus)
8611 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8612 #else
8613 size_t iconv();
8614 #endif
8615
8616 int
8617 main ()
8618 {
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625   am_cv_proto_iconv_arg1=""
8626 else
8627   am_cv_proto_iconv_arg1="const"
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630       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);"
8631 fi
8632
8633     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8635          }$am_cv_proto_iconv" >&5
8636 $as_echo "${ac_t:-
8637          }$am_cv_proto_iconv" >&6; }
8638
8639 cat >>confdefs.h <<_ACEOF
8640 #define ICONV_CONST $am_cv_proto_iconv_arg1
8641 _ACEOF
8642
8643   fi
8644
8645
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8647 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8648 if test "${am_cv_langinfo_codeset+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h.  */
8653 #include <langinfo.h>
8654 int
8655 main ()
8656 {
8657 char* cs = nl_langinfo(CODESET);
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663   am_cv_langinfo_codeset=yes
8664 else
8665   am_cv_langinfo_codeset=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668     conftest$ac_exeext conftest.$ac_ext
8669
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8672 $as_echo "$am_cv_langinfo_codeset" >&6; }
8673   if test $am_cv_langinfo_codeset = yes; then
8674
8675 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8676
8677   fi
8678
8679   if test $ac_cv_header_locale_h = yes; then
8680
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8682 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8683 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h.  */
8688 #include <locale.h>
8689 int
8690 main ()
8691 {
8692 return LC_MESSAGES
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_c_try_link "$LINENO"; then :
8698   am_cv_val_LC_MESSAGES=yes
8699 else
8700   am_cv_val_LC_MESSAGES=no
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext \
8703     conftest$ac_exeext conftest.$ac_ext
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8706 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8707   if test $am_cv_val_LC_MESSAGES = yes; then
8708
8709 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8710
8711   fi
8712
8713   fi
8714
8715                       for ac_prog in bison
8716 do
8717   # Extract the first word of "$ac_prog", so it can be a program name with args.
8718 set dummy $ac_prog; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   if test -n "$INTLBISON"; then
8725   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730   IFS=$as_save_IFS
8731   test -z "$as_dir" && as_dir=.
8732     for ac_exec_ext in '' $ac_executable_extensions; do
8733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734     ac_cv_prog_INTLBISON="$ac_prog"
8735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736     break 2
8737   fi
8738 done
8739   done
8740 IFS=$as_save_IFS
8741
8742 fi
8743 fi
8744 INTLBISON=$ac_cv_prog_INTLBISON
8745 if test -n "$INTLBISON"; then
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8747 $as_echo "$INTLBISON" >&6; }
8748 else
8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8751 fi
8752
8753
8754   test -n "$INTLBISON" && break
8755 done
8756
8757   if test -z "$INTLBISON"; then
8758     ac_verc_fail=yes
8759   else
8760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8761 $as_echo_n "checking version of bison... " >&6; }
8762     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8763     case $ac_prog_version in
8764       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8765       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8766          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8767       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8768     esac
8769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8770 $as_echo "$ac_prog_version" >&6; }
8771   fi
8772   if test $ac_verc_fail = yes; then
8773     INTLBISON=:
8774   fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8792 $as_echo_n "checking whether NLS is requested... " >&6; }
8793     # Check whether --enable-nls was given.
8794 if test "${enable_nls+set}" = set; then :
8795   enableval=$enable_nls; USE_NLS=$enableval
8796 else
8797   USE_NLS=yes
8798 fi
8799
8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8801 $as_echo "$USE_NLS" >&6; }
8802
8803
8804
8805
8806     BUILD_INCLUDED_LIBINTL=no
8807     USE_INCLUDED_LIBINTL=no
8808
8809   LIBINTL=
8810   LTLIBINTL=
8811   POSUB=
8812
8813     if test "$USE_NLS" = "yes"; then
8814     gt_use_preinstalled_gnugettext=no
8815
8816       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8817 $as_echo_n "checking whether included gettext is requested... " >&6; }
8818
8819 # Check whether --with-included-gettext was given.
8820 if test "${with_included_gettext+set}" = set; then :
8821   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8822 else
8823   nls_cv_force_use_gnu_gettext=no
8824 fi
8825
8826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8827 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8828
8829       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8830       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8831
8832
8833
8834
8835
8836
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8838 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8839 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h.  */
8844 #include <libintl.h>
8845 extern int _nl_msg_cat_cntr;
8846 extern int *_nl_domain_bindings;
8847 int
8848 main ()
8849 {
8850 bindtextdomain ("", "");
8851 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_link "$LINENO"; then :
8857   gt_cv_func_gnugettext1_libc=yes
8858 else
8859   gt_cv_func_gnugettext1_libc=no
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862     conftest$ac_exeext conftest.$ac_ext
8863 fi
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8865 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8866
8867         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8868
8869
8870
8871     use_additional=yes
8872
8873   acl_save_prefix="$prefix"
8874   prefix="$acl_final_prefix"
8875   acl_save_exec_prefix="$exec_prefix"
8876   exec_prefix="$acl_final_exec_prefix"
8877
8878     eval additional_includedir=\"$includedir\"
8879     eval additional_libdir=\"$libdir\"
8880
8881   exec_prefix="$acl_save_exec_prefix"
8882   prefix="$acl_save_prefix"
8883
8884
8885 # Check whether --with-libintl-prefix was given.
8886 if test "${with_libintl_prefix+set}" = set; then :
8887   withval=$with_libintl_prefix;
8888     if test "X$withval" = "Xno"; then
8889       use_additional=no
8890     else
8891       if test "X$withval" = "X"; then
8892
8893   acl_save_prefix="$prefix"
8894   prefix="$acl_final_prefix"
8895   acl_save_exec_prefix="$exec_prefix"
8896   exec_prefix="$acl_final_exec_prefix"
8897
8898           eval additional_includedir=\"$includedir\"
8899           eval additional_libdir=\"$libdir\"
8900
8901   exec_prefix="$acl_save_exec_prefix"
8902   prefix="$acl_save_prefix"
8903
8904       else
8905         additional_includedir="$withval/include"
8906         additional_libdir="$withval/lib"
8907       fi
8908     fi
8909
8910 fi
8911
8912       LIBINTL=
8913   LTLIBINTL=
8914   INCINTL=
8915   rpathdirs=
8916   ltrpathdirs=
8917   names_already_handled=
8918   names_next_round='intl '
8919   while test -n "$names_next_round"; do
8920     names_this_round="$names_next_round"
8921     names_next_round=
8922     for name in $names_this_round; do
8923       already_handled=
8924       for n in $names_already_handled; do
8925         if test "$n" = "$name"; then
8926           already_handled=yes
8927           break
8928         fi
8929       done
8930       if test -z "$already_handled"; then
8931         names_already_handled="$names_already_handled $name"
8932                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8933         eval value=\"\$HAVE_LIB$uppername\"
8934         if test -n "$value"; then
8935           if test "$value" = yes; then
8936             eval value=\"\$LIB$uppername\"
8937             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8938             eval value=\"\$LTLIB$uppername\"
8939             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8940           else
8941                                     :
8942           fi
8943         else
8944                               found_dir=
8945           found_la=
8946           found_so=
8947           found_a=
8948           if test $use_additional = yes; then
8949             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8950               found_dir="$additional_libdir"
8951               found_so="$additional_libdir/lib$name.$shlibext"
8952               if test -f "$additional_libdir/lib$name.la"; then
8953                 found_la="$additional_libdir/lib$name.la"
8954               fi
8955             else
8956               if test -f "$additional_libdir/lib$name.$libext"; then
8957                 found_dir="$additional_libdir"
8958                 found_a="$additional_libdir/lib$name.$libext"
8959                 if test -f "$additional_libdir/lib$name.la"; then
8960                   found_la="$additional_libdir/lib$name.la"
8961                 fi
8962               fi
8963             fi
8964           fi
8965           if test "X$found_dir" = "X"; then
8966             for x in $LDFLAGS $LTLIBINTL; do
8967
8968   acl_save_prefix="$prefix"
8969   prefix="$acl_final_prefix"
8970   acl_save_exec_prefix="$exec_prefix"
8971   exec_prefix="$acl_final_exec_prefix"
8972   eval x=\"$x\"
8973   exec_prefix="$acl_save_exec_prefix"
8974   prefix="$acl_save_prefix"
8975
8976               case "$x" in
8977                 -L*)
8978                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8979                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8980                     found_dir="$dir"
8981                     found_so="$dir/lib$name.$shlibext"
8982                     if test -f "$dir/lib$name.la"; then
8983                       found_la="$dir/lib$name.la"
8984                     fi
8985                   else
8986                     if test -f "$dir/lib$name.$libext"; then
8987                       found_dir="$dir"
8988                       found_a="$dir/lib$name.$libext"
8989                       if test -f "$dir/lib$name.la"; then
8990                         found_la="$dir/lib$name.la"
8991                       fi
8992                     fi
8993                   fi
8994                   ;;
8995               esac
8996               if test "X$found_dir" != "X"; then
8997                 break
8998               fi
8999             done
9000           fi
9001           if test "X$found_dir" != "X"; then
9002                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9003             if test "X$found_so" != "X"; then
9004                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9005                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9006               else
9007                                                                                 haveit=
9008                 for x in $ltrpathdirs; do
9009                   if test "X$x" = "X$found_dir"; then
9010                     haveit=yes
9011                     break
9012                   fi
9013                 done
9014                 if test -z "$haveit"; then
9015                   ltrpathdirs="$ltrpathdirs $found_dir"
9016                 fi
9017                                 if test "$hardcode_direct" = yes; then
9018                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9019                 else
9020                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9021                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9022                                                             haveit=
9023                     for x in $rpathdirs; do
9024                       if test "X$x" = "X$found_dir"; then
9025                         haveit=yes
9026                         break
9027                       fi
9028                     done
9029                     if test -z "$haveit"; then
9030                       rpathdirs="$rpathdirs $found_dir"
9031                     fi
9032                   else
9033                                                                                 haveit=
9034                     for x in $LDFLAGS $LIBINTL; do
9035
9036   acl_save_prefix="$prefix"
9037   prefix="$acl_final_prefix"
9038   acl_save_exec_prefix="$exec_prefix"
9039   exec_prefix="$acl_final_exec_prefix"
9040   eval x=\"$x\"
9041   exec_prefix="$acl_save_exec_prefix"
9042   prefix="$acl_save_prefix"
9043
9044                       if test "X$x" = "X-L$found_dir"; then
9045                         haveit=yes
9046                         break
9047                       fi
9048                     done
9049                     if test -z "$haveit"; then
9050                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9051                     fi
9052                     if test "$hardcode_minus_L" != no; then
9053                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9054                     else
9055                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9056                     fi
9057                   fi
9058                 fi
9059               fi
9060             else
9061               if test "X$found_a" != "X"; then
9062                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9063               else
9064                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9065               fi
9066             fi
9067                         additional_includedir=
9068             case "$found_dir" in
9069               */lib | */lib/)
9070                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9071                 additional_includedir="$basedir/include"
9072                 ;;
9073             esac
9074             if test "X$additional_includedir" != "X"; then
9075                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9076                 haveit=
9077                 if test "X$additional_includedir" = "X/usr/local/include"; then
9078                   if test -n "$GCC"; then
9079                     case $host_os in
9080                       linux*) haveit=yes;;
9081                     esac
9082                   fi
9083                 fi
9084                 if test -z "$haveit"; then
9085                   for x in $CPPFLAGS $INCINTL; do
9086
9087   acl_save_prefix="$prefix"
9088   prefix="$acl_final_prefix"
9089   acl_save_exec_prefix="$exec_prefix"
9090   exec_prefix="$acl_final_exec_prefix"
9091   eval x=\"$x\"
9092   exec_prefix="$acl_save_exec_prefix"
9093   prefix="$acl_save_prefix"
9094
9095                     if test "X$x" = "X-I$additional_includedir"; then
9096                       haveit=yes
9097                       break
9098                     fi
9099                   done
9100                   if test -z "$haveit"; then
9101                     if test -d "$additional_includedir"; then
9102                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9103                     fi
9104                   fi
9105                 fi
9106               fi
9107             fi
9108                         if test -n "$found_la"; then
9109                                                         save_libdir="$libdir"
9110               case "$found_la" in
9111                 */* | *\\*) . "$found_la" ;;
9112                 *) . "./$found_la" ;;
9113               esac
9114               libdir="$save_libdir"
9115                             for dep in $dependency_libs; do
9116                 case "$dep" in
9117                   -L*)
9118                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9119                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9120                       haveit=
9121                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9122                         if test -n "$GCC"; then
9123                           case $host_os in
9124                             linux*) haveit=yes;;
9125                           esac
9126                         fi
9127                       fi
9128                       if test -z "$haveit"; then
9129                         haveit=
9130                         for x in $LDFLAGS $LIBINTL; do
9131
9132   acl_save_prefix="$prefix"
9133   prefix="$acl_final_prefix"
9134   acl_save_exec_prefix="$exec_prefix"
9135   exec_prefix="$acl_final_exec_prefix"
9136   eval x=\"$x\"
9137   exec_prefix="$acl_save_exec_prefix"
9138   prefix="$acl_save_prefix"
9139
9140                           if test "X$x" = "X-L$additional_libdir"; then
9141                             haveit=yes
9142                             break
9143                           fi
9144                         done
9145                         if test -z "$haveit"; then
9146                           if test -d "$additional_libdir"; then
9147                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9148                           fi
9149                         fi
9150                         haveit=
9151                         for x in $LDFLAGS $LTLIBINTL; do
9152
9153   acl_save_prefix="$prefix"
9154   prefix="$acl_final_prefix"
9155   acl_save_exec_prefix="$exec_prefix"
9156   exec_prefix="$acl_final_exec_prefix"
9157   eval x=\"$x\"
9158   exec_prefix="$acl_save_exec_prefix"
9159   prefix="$acl_save_prefix"
9160
9161                           if test "X$x" = "X-L$additional_libdir"; then
9162                             haveit=yes
9163                             break
9164                           fi
9165                         done
9166                         if test -z "$haveit"; then
9167                           if test -d "$additional_libdir"; then
9168                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9169                           fi
9170                         fi
9171                       fi
9172                     fi
9173                     ;;
9174                   -R*)
9175                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9176                     if test "$enable_rpath" != no; then
9177                                                                   haveit=
9178                       for x in $rpathdirs; do
9179                         if test "X$x" = "X$dir"; then
9180                           haveit=yes
9181                           break
9182                         fi
9183                       done
9184                       if test -z "$haveit"; then
9185                         rpathdirs="$rpathdirs $dir"
9186                       fi
9187                                                                   haveit=
9188                       for x in $ltrpathdirs; do
9189                         if test "X$x" = "X$dir"; then
9190                           haveit=yes
9191                           break
9192                         fi
9193                       done
9194                       if test -z "$haveit"; then
9195                         ltrpathdirs="$ltrpathdirs $dir"
9196                       fi
9197                     fi
9198                     ;;
9199                   -l*)
9200                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9201                     ;;
9202                   *.la)
9203                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9204                     ;;
9205                   *)
9206                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9207                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9208                     ;;
9209                 esac
9210               done
9211             fi
9212           else
9213                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9214             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9215           fi
9216         fi
9217       fi
9218     done
9219   done
9220   if test "X$rpathdirs" != "X"; then
9221     if test -n "$hardcode_libdir_separator"; then
9222                         alldirs=
9223       for found_dir in $rpathdirs; do
9224         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9225       done
9226             acl_save_libdir="$libdir"
9227       libdir="$alldirs"
9228       eval flag=\"$hardcode_libdir_flag_spec\"
9229       libdir="$acl_save_libdir"
9230       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9231     else
9232             for found_dir in $rpathdirs; do
9233         acl_save_libdir="$libdir"
9234         libdir="$found_dir"
9235         eval flag=\"$hardcode_libdir_flag_spec\"
9236         libdir="$acl_save_libdir"
9237         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9238       done
9239     fi
9240   fi
9241   if test "X$ltrpathdirs" != "X"; then
9242             for found_dir in $ltrpathdirs; do
9243       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9244     done
9245   fi
9246
9247           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9248 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9249 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   gt_save_CPPFLAGS="$CPPFLAGS"
9253             CPPFLAGS="$CPPFLAGS $INCINTL"
9254             gt_save_LIBS="$LIBS"
9255             LIBS="$LIBS $LIBINTL"
9256                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h.  */
9258 #include <libintl.h>
9259 extern int _nl_msg_cat_cntr;
9260 extern
9261 #ifdef __cplusplus
9262 "C"
9263 #endif
9264 const char *_nl_expand_alias ();
9265 int
9266 main ()
9267 {
9268 bindtextdomain ("", "");
9269 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275   gt_cv_func_gnugettext1_libintl=yes
9276 else
9277   gt_cv_func_gnugettext1_libintl=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280     conftest$ac_exeext conftest.$ac_ext
9281                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9282               LIBS="$LIBS $LIBICONV"
9283               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h.  */
9285 #include <libintl.h>
9286 extern int _nl_msg_cat_cntr;
9287 extern
9288 #ifdef __cplusplus
9289 "C"
9290 #endif
9291 const char *_nl_expand_alias ();
9292 int
9293 main ()
9294 {
9295 bindtextdomain ("", "");
9296 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302   LIBINTL="$LIBINTL $LIBICONV"
9303                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9304                 gt_cv_func_gnugettext1_libintl=yes
9305
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext \
9308     conftest$ac_exeext conftest.$ac_ext
9309             fi
9310             CPPFLAGS="$gt_save_CPPFLAGS"
9311             LIBS="$gt_save_LIBS"
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9314 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9315         fi
9316
9317                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9318            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9319                 && test "$PACKAGE" != gettext-runtime \
9320                 && test "$PACKAGE" != gettext-tools; }; then
9321           gt_use_preinstalled_gnugettext=yes
9322         else
9323                     LIBINTL=
9324           LTLIBINTL=
9325           INCINTL=
9326         fi
9327
9328
9329         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9330                               nls_cv_use_gnu_gettext=yes
9331         fi
9332       fi
9333
9334       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9335                 BUILD_INCLUDED_LIBINTL=yes
9336         USE_INCLUDED_LIBINTL=yes
9337         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9338         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9339         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9340       fi
9341
9342       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9343          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9344                 CATOBJEXT=.gmo
9345       fi
9346
9347
9348     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9349        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9350
9351 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9352
9353     else
9354       USE_NLS=no
9355     fi
9356   fi
9357
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9359 $as_echo_n "checking whether to use NLS... " >&6; }
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9361 $as_echo "$USE_NLS" >&6; }
9362   if test "$USE_NLS" = "yes"; then
9363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9364 $as_echo_n "checking where the gettext function comes from... " >&6; }
9365     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9366       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9367         gt_source="external libintl"
9368       else
9369         gt_source="libc"
9370       fi
9371     else
9372       gt_source="included intl directory"
9373     fi
9374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9375 $as_echo "$gt_source" >&6; }
9376   fi
9377
9378   if test "$USE_NLS" = "yes"; then
9379
9380     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9381       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9383 $as_echo_n "checking how to link with libintl... " >&6; }
9384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9385 $as_echo "$LIBINTL" >&6; }
9386
9387   for element in $INCINTL; do
9388     haveit=
9389     for x in $CPPFLAGS; do
9390
9391   acl_save_prefix="$prefix"
9392   prefix="$acl_final_prefix"
9393   acl_save_exec_prefix="$exec_prefix"
9394   exec_prefix="$acl_final_exec_prefix"
9395   eval x=\"$x\"
9396   exec_prefix="$acl_save_exec_prefix"
9397   prefix="$acl_save_prefix"
9398
9399       if test "X$x" = "X$element"; then
9400         haveit=yes
9401         break
9402       fi
9403     done
9404     if test -z "$haveit"; then
9405       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9406     fi
9407   done
9408
9409       fi
9410
9411
9412 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9413
9414
9415 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9416
9417     fi
9418
9419         POSUB=po
9420   fi
9421
9422
9423             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9424       BUILD_INCLUDED_LIBINTL=yes
9425     fi
9426
9427
9428
9429
9430
9431         nls_cv_header_intl=
9432     nls_cv_header_libgt=
9433
9434         DATADIRNAME=share
9435
9436
9437         INSTOBJEXT=.mo
9438
9439
9440         GENCAT=gencat
9441
9442
9443         if test "$USE_INCLUDED_LIBINTL" = yes; then
9444       INTLOBJS="\$(GETTOBJS)"
9445     fi
9446
9447
9448         INTL_LIBTOOL_SUFFIX_PREFIX=
9449
9450
9451
9452     INTLLIBS="$LIBINTL"
9453
9454
9455
9456
9457
9458
9459
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9462 set x ${MAKE-make}
9463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   cat >conftest.make <<\_ACEOF
9468 SHELL = /bin/sh
9469 all:
9470         @echo '@@@%%%=$(MAKE)=@@@%%%'
9471 _ACEOF
9472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9474   *@@@%%%=?*=@@@%%%*)
9475     eval ac_cv_prog_make_${ac_make}_set=yes;;
9476   *)
9477     eval ac_cv_prog_make_${ac_make}_set=no;;
9478 esac
9479 rm -f conftest.make
9480 fi
9481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483 $as_echo "yes" >&6; }
9484   SET_MAKE=
9485 else
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488   SET_MAKE="MAKE=${MAKE-make}"
9489 fi
9490
9491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9492 $as_echo_n "checking for GNU make... " >&6; }
9493 if test "${_cv_gnu_make_command+set}" = set; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   _cv_gnu_make_command='' ;
9497                 for a in "$MAKE" make gmake gnumake ; do
9498                         if test -z "$a" ; then continue ; fi ;
9499                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9500                                 _cv_gnu_make_command=$a ;
9501                                 break;
9502                         fi
9503                 done ;
9504
9505 fi
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9507 $as_echo "$_cv_gnu_make_command" >&6; } ;
9508         if test  "x$_cv_gnu_make_command" != "x"  ; then
9509                 ifGNUmake='' ;
9510                 ifNotGNUmake='#' ;
9511         else
9512                 ifGNUmake='#' ;
9513                 ifNotGNUmake='' ;
9514                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9515 $as_echo "\"Not found\"" >&6; };
9516         fi
9517
9518
9519
9520 # Extract the first word of "ln", so it can be a program name with args.
9521 set dummy ln; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_path_LN+set}" = set; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   case $LN in
9528   [\\/]* | ?:[\\/]*)
9529   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9530   ;;
9531   *)
9532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9534 do
9535   IFS=$as_save_IFS
9536   test -z "$as_dir" && as_dir=.
9537     for ac_exec_ext in '' $ac_executable_extensions; do
9538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541     break 2
9542   fi
9543 done
9544   done
9545 IFS=$as_save_IFS
9546
9547   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9548   ;;
9549 esac
9550 fi
9551 LN=$ac_cv_path_LN
9552 if test -n "$LN"; then
9553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9554 $as_echo "$LN" >&6; }
9555 else
9556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9558 fi
9559
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9562 $as_echo_n "checking whether ln -s works... " >&6; }
9563 LN_S=$as_ln_s
9564 if test "$LN_S" = "ln -s"; then
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9566 $as_echo "yes" >&6; }
9567 else
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9569 $as_echo "no, using $LN_S" >&6; }
9570 fi
9571
9572 # Extract the first word of "mv", so it can be a program name with args.
9573 set dummy mv; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_path_MV+set}" = set; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   case $MV in
9580   [\\/]* | ?:[\\/]*)
9581   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9582   ;;
9583   *)
9584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9586 do
9587   IFS=$as_save_IFS
9588   test -z "$as_dir" && as_dir=.
9589     for ac_exec_ext in '' $ac_executable_extensions; do
9590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593     break 2
9594   fi
9595 done
9596   done
9597 IFS=$as_save_IFS
9598
9599   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9600   ;;
9601 esac
9602 fi
9603 MV=$ac_cv_path_MV
9604 if test -n "$MV"; then
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9606 $as_echo "$MV" >&6; }
9607 else
9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9610 fi
9611
9612
9613 # Extract the first word of "cp", so it can be a program name with args.
9614 set dummy cp; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_CP+set}" = set; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   case $CP in
9621   [\\/]* | ?:[\\/]*)
9622   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9623   ;;
9624   *)
9625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9641   ;;
9642 esac
9643 fi
9644 CP=$ac_cv_path_CP
9645 if test -n "$CP"; then
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9647 $as_echo "$CP" >&6; }
9648 else
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652
9653
9654 # Extract the first word of "rm", so it can be a program name with args.
9655 set dummy rm; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_path_RM+set}" = set; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $RM in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680
9681   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9682   ;;
9683 esac
9684 fi
9685 RM=$ac_cv_path_RM
9686 if test -n "$RM"; then
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9688 $as_echo "$RM" >&6; }
9689 else
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695 # Extract the first word of "chmod", so it can be a program name with args.
9696 set dummy chmod; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_path_CHMOD+set}" = set; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   case $CHMOD in
9703   [\\/]* | ?:[\\/]*)
9704   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9705   ;;
9706   *)
9707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708 for as_dir in $PATH
9709 do
9710   IFS=$as_save_IFS
9711   test -z "$as_dir" && as_dir=.
9712     for ac_exec_ext in '' $ac_executable_extensions; do
9713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9714     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716     break 2
9717   fi
9718 done
9719   done
9720 IFS=$as_save_IFS
9721
9722   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9723   ;;
9724 esac
9725 fi
9726 CHMOD=$ac_cv_path_CHMOD
9727 if test -n "$CHMOD"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9729 $as_echo "$CHMOD" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736 for ac_prog in gawk mawk nawk awk
9737 do
9738   # Extract the first word of "$ac_prog", so it can be a program name with args.
9739 set dummy $ac_prog; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_AWK+set}" = set; then :
9743   $as_echo_n "(cached) " >&6
9744 else
9745   if test -n "$AWK"; then
9746   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753     for ac_exec_ext in '' $ac_executable_extensions; do
9754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755     ac_cv_prog_AWK="$ac_prog"
9756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760   done
9761 IFS=$as_save_IFS
9762
9763 fi
9764 fi
9765 AWK=$ac_cv_prog_AWK
9766 if test -n "$AWK"; then
9767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9768 $as_echo "$AWK" >&6; }
9769 else
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9772 fi
9773
9774
9775   test -n "$AWK" && break
9776 done
9777
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9779 $as_echo_n "checking for egrep... " >&6; }
9780 if test "${ac_cv_path_EGREP+set}" = set; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9784    then ac_cv_path_EGREP="$GREP -E"
9785    else
9786      if test -z "$EGREP"; then
9787   ac_path_EGREP_found=false
9788   # Loop through the user's path and test for each of PROGNAME-LIST
9789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9791 do
9792   IFS=$as_save_IFS
9793   test -z "$as_dir" && as_dir=.
9794     for ac_prog in egrep; do
9795     for ac_exec_ext in '' $ac_executable_extensions; do
9796       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9797       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9798 # Check for GNU ac_path_EGREP and select it if it is found.
9799   # Check for GNU $ac_path_EGREP
9800 case `"$ac_path_EGREP" --version 2>&1` in
9801 *GNU*)
9802   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9803 *)
9804   ac_count=0
9805   $as_echo_n 0123456789 >"conftest.in"
9806   while :
9807   do
9808     cat "conftest.in" "conftest.in" >"conftest.tmp"
9809     mv "conftest.tmp" "conftest.in"
9810     cp "conftest.in" "conftest.nl"
9811     $as_echo 'EGREP' >> "conftest.nl"
9812     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9814     as_fn_arith $ac_count + 1 && ac_count=$as_val
9815     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9816       # Best one so far, save it but keep looking for a better one
9817       ac_cv_path_EGREP="$ac_path_EGREP"
9818       ac_path_EGREP_max=$ac_count
9819     fi
9820     # 10*(2^10) chars as input seems more than enough
9821     test $ac_count -gt 10 && break
9822   done
9823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9824 esac
9825
9826       $ac_path_EGREP_found && break 3
9827     done
9828   done
9829   done
9830 IFS=$as_save_IFS
9831   if test -z "$ac_cv_path_EGREP"; then
9832     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9833   fi
9834 else
9835   ac_cv_path_EGREP=$EGREP
9836 fi
9837
9838    fi
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9841 $as_echo "$ac_cv_path_EGREP" >&6; }
9842  EGREP="$ac_cv_path_EGREP"
9843
9844
9845 # Extract the first word of "sed", so it can be a program name with args.
9846 set dummy sed; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if test "${ac_cv_path_SED+set}" = set; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   case $SED in
9853   [\\/]* | ?:[\\/]*)
9854   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9855   ;;
9856   *)
9857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9859 do
9860   IFS=$as_save_IFS
9861   test -z "$as_dir" && as_dir=.
9862     for ac_exec_ext in '' $ac_executable_extensions; do
9863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866     break 2
9867   fi
9868 done
9869   done
9870 IFS=$as_save_IFS
9871
9872   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9873   ;;
9874 esac
9875 fi
9876 SED=$ac_cv_path_SED
9877 if test -n "$SED"; then
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9879 $as_echo "$SED" >&6; }
9880 else
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9883 fi
9884
9885
9886 # Extract the first word of "perl", so it can be a program name with args.
9887 set dummy perl; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if test "${ac_cv_path_PERL+set}" = set; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893   case $PERL in
9894   [\\/]* | ?:[\\/]*)
9895   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9896   ;;
9897   *)
9898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903     for ac_exec_ext in '' $ac_executable_extensions; do
9904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910   done
9911 IFS=$as_save_IFS
9912
9913   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9914   ;;
9915 esac
9916 fi
9917 PERL=$ac_cv_path_PERL
9918 if test -n "$PERL"; then
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9920 $as_echo "$PERL" >&6; }
9921 else
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924 fi
9925
9926
9927 # Extract the first word of "ldconfig", so it can be a program name with args.
9928 set dummy ldconfig; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   case $LDCONFIG in
9935   [\\/]* | ?:[\\/]*)
9936   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9937   ;;
9938   *)
9939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942   IFS=$as_save_IFS
9943   test -z "$as_dir" && as_dir=.
9944     for ac_exec_ext in '' $ac_executable_extensions; do
9945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951   done
9952 IFS=$as_save_IFS
9953
9954   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9955   ;;
9956 esac
9957 fi
9958 LDCONFIG=$ac_cv_path_LDCONFIG
9959 if test -n "$LDCONFIG"; then
9960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9961 $as_echo "$LDCONFIG" >&6; }
9962 else
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9965 fi
9966
9967
9968 if test -n "$ac_tool_prefix"; then
9969   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9970 set dummy ${ac_tool_prefix}ar; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if test "${ac_cv_prog_AR+set}" = set; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   if test -n "$AR"; then
9977   ac_cv_prog_AR="$AR" # Let the user override the test.
9978 else
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 for as_dir in $PATH
9981 do
9982   IFS=$as_save_IFS
9983   test -z "$as_dir" && as_dir=.
9984     for ac_exec_ext in '' $ac_executable_extensions; do
9985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986     ac_cv_prog_AR="${ac_tool_prefix}ar"
9987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988     break 2
9989   fi
9990 done
9991   done
9992 IFS=$as_save_IFS
9993
9994 fi
9995 fi
9996 AR=$ac_cv_prog_AR
9997 if test -n "$AR"; then
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9999 $as_echo "$AR" >&6; }
10000 else
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10003 fi
10004
10005
10006 fi
10007 if test -z "$ac_cv_prog_AR"; then
10008   ac_ct_AR=$AR
10009   # Extract the first word of "ar", so it can be a program name with args.
10010 set dummy ar; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   if test -n "$ac_ct_AR"; then
10017   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024     for ac_exec_ext in '' $ac_executable_extensions; do
10025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026     ac_cv_prog_ac_ct_AR="ar"
10027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031   done
10032 IFS=$as_save_IFS
10033
10034 fi
10035 fi
10036 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10037 if test -n "$ac_ct_AR"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10039 $as_echo "$ac_ct_AR" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044
10045   if test "x$ac_ct_AR" = x; then
10046     AR="ar"
10047   else
10048     case $cross_compiling:$ac_tool_warned in
10049 yes:)
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10052 ac_tool_warned=yes ;;
10053 esac
10054     AR=$ac_ct_AR
10055   fi
10056 else
10057   AR="$ac_cv_prog_AR"
10058 fi
10059
10060 if test -n "$ac_tool_prefix"; then
10061   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10066   $as_echo_n "(cached) " >&6
10067 else
10068   if test -n "$RANLIB"; then
10069   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10070 else
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076     for ac_exec_ext in '' $ac_executable_extensions; do
10077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083   done
10084 IFS=$as_save_IFS
10085
10086 fi
10087 fi
10088 RANLIB=$ac_cv_prog_RANLIB
10089 if test -n "$RANLIB"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10091 $as_echo "$RANLIB" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096
10097
10098 fi
10099 if test -z "$ac_cv_prog_RANLIB"; then
10100   ac_ct_RANLIB=$RANLIB
10101   # Extract the first word of "ranlib", so it can be a program name with args.
10102 set dummy ranlib; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   if test -n "$ac_ct_RANLIB"; then
10109   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10113 do
10114   IFS=$as_save_IFS
10115   test -z "$as_dir" && as_dir=.
10116     for ac_exec_ext in '' $ac_executable_extensions; do
10117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10118     ac_cv_prog_ac_ct_RANLIB="ranlib"
10119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120     break 2
10121   fi
10122 done
10123   done
10124 IFS=$as_save_IFS
10125
10126 fi
10127 fi
10128 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10129 if test -n "$ac_ct_RANLIB"; then
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10131 $as_echo "$ac_ct_RANLIB" >&6; }
10132 else
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10135 fi
10136
10137   if test "x$ac_ct_RANLIB" = x; then
10138     RANLIB=":"
10139   else
10140     case $cross_compiling:$ac_tool_warned in
10141 yes:)
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10144 ac_tool_warned=yes ;;
10145 esac
10146     RANLIB=$ac_ct_RANLIB
10147   fi
10148 else
10149   RANLIB="$ac_cv_prog_RANLIB"
10150 fi
10151
10152 if test -n "$ac_tool_prefix"; then
10153   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10154 set dummy ${ac_tool_prefix}strip; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_STRIP+set}" = set; then :
10158   $as_echo_n "(cached) " >&6
10159 else
10160   if test -n "$STRIP"; then
10161   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166   IFS=$as_save_IFS
10167   test -z "$as_dir" && as_dir=.
10168     for ac_exec_ext in '' $ac_executable_extensions; do
10169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172     break 2
10173   fi
10174 done
10175   done
10176 IFS=$as_save_IFS
10177
10178 fi
10179 fi
10180 STRIP=$ac_cv_prog_STRIP
10181 if test -n "$STRIP"; then
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10183 $as_echo "$STRIP" >&6; }
10184 else
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188
10189
10190 fi
10191 if test -z "$ac_cv_prog_STRIP"; then
10192   ac_ct_STRIP=$STRIP
10193   # Extract the first word of "strip", so it can be a program name with args.
10194 set dummy strip; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   if test -n "$ac_ct_STRIP"; then
10201   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206   IFS=$as_save_IFS
10207   test -z "$as_dir" && as_dir=.
10208     for ac_exec_ext in '' $ac_executable_extensions; do
10209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210     ac_cv_prog_ac_ct_STRIP="strip"
10211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212     break 2
10213   fi
10214 done
10215   done
10216 IFS=$as_save_IFS
10217
10218 fi
10219 fi
10220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10221 if test -n "$ac_ct_STRIP"; then
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10223 $as_echo "$ac_ct_STRIP" >&6; }
10224 else
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10227 fi
10228
10229   if test "x$ac_ct_STRIP" = x; then
10230     STRIP=":"
10231   else
10232     case $cross_compiling:$ac_tool_warned in
10233 yes:)
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10236 ac_tool_warned=yes ;;
10237 esac
10238     STRIP=$ac_ct_STRIP
10239   fi
10240 else
10241   STRIP="$ac_cv_prog_STRIP"
10242 fi
10243
10244 # Extract the first word of "makeinfo", so it can be a program name with args.
10245 set dummy makeinfo; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   if test -n "$MAKEINFO"; then
10252   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10253 else
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261     ac_cv_prog_MAKEINFO="makeinfo"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268
10269 fi
10270 fi
10271 MAKEINFO=$ac_cv_prog_MAKEINFO
10272 if test -n "$MAKEINFO"; then
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10274 $as_echo "$MAKEINFO" >&6; }
10275 else
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10278 fi
10279
10280
10281 if test "_$MAKEINFO" = "_"; then
10282     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10283 else
10284     case "$MAKEINFO" in
10285       */missing.*)
10286         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10287 *** Makeinfo is missing. Info documentation will not be built." >&5
10288 $as_echo "$as_me: WARNING:
10289 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10290         ;;
10291       *)
10292         ;;
10293     esac
10294 fi
10295
10296
10297 # See if we need a separate native compiler.
10298 if test $cross_compiling = no; then
10299   BUILD_CC="$CC"
10300
10301 else
10302   for ac_prog in gcc cc
10303 do
10304   # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   if test -n "$BUILD_CC"; then
10312   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317   IFS=$as_save_IFS
10318   test -z "$as_dir" && as_dir=.
10319     for ac_exec_ext in '' $ac_executable_extensions; do
10320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321     ac_cv_prog_BUILD_CC="$ac_prog"
10322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323     break 2
10324   fi
10325 done
10326   done
10327 IFS=$as_save_IFS
10328
10329 fi
10330 fi
10331 BUILD_CC=$ac_cv_prog_BUILD_CC
10332 if test -n "$BUILD_CC"; then
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10334 $as_echo "$BUILD_CC" >&6; }
10335 else
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10338 fi
10339
10340
10341   test -n "$BUILD_CC" && break
10342 done
10343
10344 fi
10345 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.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
10346 do :
10347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10349 eval as_val=\$$as_ac_Header
10350    if test "x$as_val" = x""yes; then :
10351   cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10353 _ACEOF
10354
10355 fi
10356
10357 done
10358
10359 for ac_header in net/if.h
10360 do :
10361   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10362 #if HAVE_SYS_TYPES_H
10363 #include <sys/types.h>
10364 #endif
10365 #if HAVE_SYS_SOCKET
10366 #include <sys/socket.h>
10367 #endif
10368
10369 "
10370 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10371   cat >>confdefs.h <<_ACEOF
10372 #define HAVE_NET_IF_H 1
10373 _ACEOF
10374
10375 fi
10376
10377 done
10378
10379 for ac_func in vprintf
10380 do :
10381   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10382 if test "x$ac_cv_func_vprintf" = x""yes; then :
10383   cat >>confdefs.h <<_ACEOF
10384 #define HAVE_VPRINTF 1
10385 _ACEOF
10386
10387 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10388 if test "x$ac_cv_func__doprnt" = x""yes; then :
10389
10390 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10391
10392 fi
10393
10394 fi
10395 done
10396
10397
10398 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10399 "
10400 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10401
10402 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10403
10404 fi
10405
10406 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10407 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
10408
10409 cat >>confdefs.h <<_ACEOF
10410 #define HAVE_STRUCT_STAT_ST_ATIM 1
10411 _ACEOF
10412
10413
10414 fi
10415
10416 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10417 "
10418 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10419
10420 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10421
10422 fi
10423
10424 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10425 "
10426 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10427
10428 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10429
10430 fi
10431
10432 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10433                  #define _LARGEFILE64_SOURCE
10434                  #include <unistd.h>
10435 "
10436 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10437
10438 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10439
10440 fi
10441
10442 # The cast to long int works around a bug in the HP C Compiler
10443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10445 # This bug is HP SR number 8606223364.
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10447 $as_echo_n "checking size of short... " >&6; }
10448 if test "${ac_cv_sizeof_short+set}" = set; then :
10449   $as_echo_n "(cached) " >&6
10450 else
10451   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10452
10453 else
10454   if test "$ac_cv_type_short" = yes; then
10455      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10457 { as_fn_set_status 77
10458 as_fn_error "cannot compute sizeof (short)
10459 See \`config.log' for more details." "$LINENO" 5; }; }
10460    else
10461      ac_cv_sizeof_short=0
10462    fi
10463 fi
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10467 $as_echo "$ac_cv_sizeof_short" >&6; }
10468
10469
10470
10471 cat >>confdefs.h <<_ACEOF
10472 #define SIZEOF_SHORT $ac_cv_sizeof_short
10473 _ACEOF
10474
10475
10476 # The cast to long int works around a bug in the HP C Compiler
10477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10479 # This bug is HP SR number 8606223364.
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10481 $as_echo_n "checking size of int... " >&6; }
10482 if test "${ac_cv_sizeof_int+set}" = set; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10486
10487 else
10488   if test "$ac_cv_type_int" = yes; then
10489      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10491 { as_fn_set_status 77
10492 as_fn_error "cannot compute sizeof (int)
10493 See \`config.log' for more details." "$LINENO" 5; }; }
10494    else
10495      ac_cv_sizeof_int=0
10496    fi
10497 fi
10498
10499 fi
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10501 $as_echo "$ac_cv_sizeof_int" >&6; }
10502
10503
10504
10505 cat >>confdefs.h <<_ACEOF
10506 #define SIZEOF_INT $ac_cv_sizeof_int
10507 _ACEOF
10508
10509
10510 # The cast to long int works around a bug in the HP C Compiler
10511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10513 # This bug is HP SR number 8606223364.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10515 $as_echo_n "checking size of long... " >&6; }
10516 if test "${ac_cv_sizeof_long+set}" = set; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10520
10521 else
10522   if test "$ac_cv_type_long" = yes; then
10523      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10525 { as_fn_set_status 77
10526 as_fn_error "cannot compute sizeof (long)
10527 See \`config.log' for more details." "$LINENO" 5; }; }
10528    else
10529      ac_cv_sizeof_long=0
10530    fi
10531 fi
10532
10533 fi
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10535 $as_echo "$ac_cv_sizeof_long" >&6; }
10536
10537
10538
10539 cat >>confdefs.h <<_ACEOF
10540 #define SIZEOF_LONG $ac_cv_sizeof_long
10541 _ACEOF
10542
10543
10544 # The cast to long int works around a bug in the HP C Compiler
10545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547 # This bug is HP SR number 8606223364.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10549 $as_echo_n "checking size of long long... " >&6; }
10550 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10551   $as_echo_n "(cached) " >&6
10552 else
10553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10554
10555 else
10556   if test "$ac_cv_type_long_long" = yes; then
10557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 { as_fn_set_status 77
10560 as_fn_error "cannot compute sizeof (long long)
10561 See \`config.log' for more details." "$LINENO" 5; }; }
10562    else
10563      ac_cv_sizeof_long_long=0
10564    fi
10565 fi
10566
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10569 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10570
10571
10572
10573 cat >>confdefs.h <<_ACEOF
10574 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10575 _ACEOF
10576
10577
10578 # The cast to long int works around a bug in the HP C Compiler
10579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581 # This bug is HP SR number 8606223364.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10583 $as_echo_n "checking size of off_t... " >&6; }
10584 if test "${ac_cv_sizeof_off_t+set}" = set; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10588
10589 else
10590   if test "$ac_cv_type_off_t" = yes; then
10591      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 { as_fn_set_status 77
10594 as_fn_error "cannot compute sizeof (off_t)
10595 See \`config.log' for more details." "$LINENO" 5; }; }
10596    else
10597      ac_cv_sizeof_off_t=0
10598    fi
10599 fi
10600
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10603 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10604
10605
10606
10607 cat >>confdefs.h <<_ACEOF
10608 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10609 _ACEOF
10610
10611
10612 SIZEOF_SHORT=$ac_cv_sizeof_short
10613 SIZEOF_INT=$ac_cv_sizeof_int
10614 SIZEOF_LONG=$ac_cv_sizeof_long
10615 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10616 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10617
10618
10619
10620
10621
10622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10623 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10624 if test "${ac_cv_c_bigendian+set}" = set; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   ac_cv_c_bigendian=unknown
10628     # See if we're dealing with a universal compiler.
10629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h.  */
10631 #ifndef __APPLE_CC__
10632                not a universal capable compiler
10633              #endif
10634              typedef int dummy;
10635
10636 _ACEOF
10637 if ac_fn_c_try_compile "$LINENO"; then :
10638
10639         # Check for potential -arch flags.  It is not universal unless
10640         # there are at least two -arch flags with different values.
10641         ac_arch=
10642         ac_prev=
10643         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10644          if test -n "$ac_prev"; then
10645            case $ac_word in
10646              i?86 | x86_64 | ppc | ppc64)
10647                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10648                  ac_arch=$ac_word
10649                else
10650                  ac_cv_c_bigendian=universal
10651                  break
10652                fi
10653                ;;
10654            esac
10655            ac_prev=
10656          elif test "x$ac_word" = "x-arch"; then
10657            ac_prev=arch
10658          fi
10659        done
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662     if test $ac_cv_c_bigendian = unknown; then
10663       # See if sys/param.h defines the BYTE_ORDER macro.
10664       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h.  */
10666 #include <sys/types.h>
10667              #include <sys/param.h>
10668
10669 int
10670 main ()
10671 {
10672 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10673                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10674                      && LITTLE_ENDIAN)
10675               bogus endian macros
10676              #endif
10677
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683   # It does; now see whether it defined to BIG_ENDIAN or not.
10684          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h.  */
10686 #include <sys/types.h>
10687                 #include <sys/param.h>
10688
10689 int
10690 main ()
10691 {
10692 #if BYTE_ORDER != BIG_ENDIAN
10693                  not big endian
10694                 #endif
10695
10696   ;
10697   return 0;
10698 }
10699 _ACEOF
10700 if ac_fn_c_try_compile "$LINENO"; then :
10701   ac_cv_c_bigendian=yes
10702 else
10703   ac_cv_c_bigendian=no
10704 fi
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708     fi
10709     if test $ac_cv_c_bigendian = unknown; then
10710       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713 #include <limits.h>
10714
10715 int
10716 main ()
10717 {
10718 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10719               bogus endian macros
10720              #endif
10721
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727   # It does; now see whether it defined to _BIG_ENDIAN or not.
10728          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h.  */
10730 #include <limits.h>
10731
10732 int
10733 main ()
10734 {
10735 #ifndef _BIG_ENDIAN
10736                  not big endian
10737                 #endif
10738
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_compile "$LINENO"; then :
10744   ac_cv_c_bigendian=yes
10745 else
10746   ac_cv_c_bigendian=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751     fi
10752     if test $ac_cv_c_bigendian = unknown; then
10753       # Compile a test program.
10754       if test "$cross_compiling" = yes; then :
10755   # Try to guess by grepping values from an object file.
10756          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758 short int ascii_mm[] =
10759                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10760                 short int ascii_ii[] =
10761                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10762                 int use_ascii (int i) {
10763                   return ascii_mm[i] + ascii_ii[i];
10764                 }
10765                 short int ebcdic_ii[] =
10766                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10767                 short int ebcdic_mm[] =
10768                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10769                 int use_ebcdic (int i) {
10770                   return ebcdic_mm[i] + ebcdic_ii[i];
10771                 }
10772                 extern int foo;
10773
10774 int
10775 main ()
10776 {
10777 return use_ascii (foo) == use_ebcdic (foo);
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 if ac_fn_c_try_compile "$LINENO"; then :
10783   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10784               ac_cv_c_bigendian=yes
10785             fi
10786             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10787               if test "$ac_cv_c_bigendian" = unknown; then
10788                 ac_cv_c_bigendian=no
10789               else
10790                 # finding both strings is unlikely to happen, but who knows?
10791                 ac_cv_c_bigendian=unknown
10792               fi
10793             fi
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 else
10797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h.  */
10799 $ac_includes_default
10800 int
10801 main ()
10802 {
10803
10804              /* Are we little or big endian?  From Harbison&Steele.  */
10805              union
10806              {
10807                long int l;
10808                char c[sizeof (long int)];
10809              } u;
10810              u.l = 1;
10811              return u.c[sizeof (long int) - 1] == 1;
10812
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_c_try_run "$LINENO"; then :
10818   ac_cv_c_bigendian=no
10819 else
10820   ac_cv_c_bigendian=yes
10821 fi
10822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10823   conftest.$ac_objext conftest.beam conftest.$ac_ext
10824 fi
10825
10826     fi
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10829 $as_echo "$ac_cv_c_bigendian" >&6; }
10830  case $ac_cv_c_bigendian in #(
10831    yes)
10832      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10833 ;; #(
10834    no)
10835       ;; #(
10836    universal)
10837
10838 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10839
10840      ;; #(
10841    *)
10842      as_fn_error "unknown endianness
10843  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10844  esac
10845
10846 if test $cross_compiling = no; then
10847   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10848 else
10849   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10850 fi
10851 ASM_TYPES_HEADER=./asm_types.h
10852
10853 echo "/* These defines are needed for the public ext2fs.h header file */" \
10854      > public_config.h
10855 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10856   uniq tmp_config.$$ >> public_config.h
10857 else
10858   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10859 fi
10860 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10861   uniq tmp_config.$$ >> public_config.h
10862 else
10863   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10864 fi
10865 rm -f tmp_config.$$
10866 PUBLIC_CONFIG_HEADER=./public_config.h
10867
10868 for ac_header in inttypes.h
10869 do :
10870   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10871 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10872   cat >>confdefs.h <<_ACEOF
10873 #define HAVE_INTTYPES_H 1
10874 _ACEOF
10875
10876 fi
10877
10878 done
10879
10880 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10881 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10882
10883 cat >>confdefs.h <<_ACEOF
10884 #define HAVE_INTPTR_T 1
10885 _ACEOF
10886
10887
10888 fi
10889
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10891 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10892 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897 #include <sys/stat.h>
10898 int
10899 main ()
10900 {
10901 struct stat stat; stat.st_flags = 0;
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907   e2fsprogs_cv_struct_st_flags=yes
10908 else
10909   e2fsprogs_cv_struct_st_flags=no
10910 fi
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 fi
10913
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10915 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10916 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10918 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10919   if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h.  */
10924 #include <sys/stat.h>
10925 int
10926 main ()
10927 {
10928 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_compile "$LINENO"; then :
10934   e2fsprogs_cv_struct_st_flags_immut=yes
10935 else
10936   e2fsprogs_cv_struct_st_flags_immut=no
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 fi
10940
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10942 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10943   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10944
10945 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10946
10947   fi
10948 fi
10949 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10950          #include <sys/socket.h>
10951 "
10952 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10953
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_SA_LEN 1
10956 _ACEOF
10957
10958 fi
10959
10960 if test -n "$BLKID_CMT"; then
10961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10962 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10963 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10964   $as_echo_n "(cached) " >&6
10965 else
10966   ac_func_search_save_LIBS=$LIBS
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h.  */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971    Use char because int might match the return type of a GCC
10972    builtin and then its argument prototype would still apply.  */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char blkid_probe_all ();
10977 int
10978 main ()
10979 {
10980 return blkid_probe_all ();
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 for ac_lib in '' blkid; do
10986   if test -z "$ac_lib"; then
10987     ac_res="none required"
10988   else
10989     ac_res=-l$ac_lib
10990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10991   fi
10992   if ac_fn_c_try_link "$LINENO"; then :
10993   ac_cv_search_blkid_probe_all=$ac_res
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996     conftest$ac_exeext
10997   if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10998   break
10999 fi
11000 done
11001 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11002
11003 else
11004   ac_cv_search_blkid_probe_all=no
11005 fi
11006 rm conftest.$ac_ext
11007 LIBS=$ac_func_search_save_LIBS
11008 fi
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11010 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11011 ac_res=$ac_cv_search_blkid_probe_all
11012 if test "$ac_res" != no; then :
11013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11014
11015 fi
11016
11017 fi
11018 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
11019 do :
11020   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022 eval as_val=\$$as_ac_var
11023    if test "x$as_val" = x""yes; then :
11024   cat >>confdefs.h <<_ACEOF
11025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11026 _ACEOF
11027
11028 fi
11029 done
11030
11031 SOCKET_LIB=''
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11033 $as_echo_n "checking for socket in -lsocket... " >&6; }
11034 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lsocket  $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043    Use char because int might match the return type of a GCC
11044    builtin and then its argument prototype would still apply.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char socket ();
11049 int
11050 main ()
11051 {
11052 return socket ();
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058   ac_cv_lib_socket_socket=yes
11059 else
11060   ac_cv_lib_socket_socket=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063     conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11067 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11068 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11069   SOCKET_LIB=-lsocket
11070 fi
11071
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11074 $as_echo_n "checking for optreset... " >&6; }
11075 if test "${ac_cv_have_optreset+set}" = set; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080 #include <unistd.h>
11081
11082 _ACEOF
11083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11084   $EGREP "optreset" >/dev/null 2>&1; then :
11085   ac_cv_have_optreset=yes
11086 else
11087   ac_cv_have_optreset=no
11088 fi
11089 rm -f conftest*
11090
11091 fi
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11093 $as_echo "$ac_cv_have_optreset" >&6; }
11094 if test $ac_cv_have_optreset = yes; then
11095
11096 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11097
11098 fi
11099
11100 SEM_INIT_LIB=''
11101 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11102 if test "x$ac_cv_func_sem_init" = x""yes; then :
11103
11104 else
11105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11106 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11107 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lpthread  $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h.  */
11114
11115 /* Override any GCC internal prototype to avoid an error.
11116    Use char because int might match the return type of a GCC
11117    builtin and then its argument prototype would still apply.  */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char sem_init ();
11122 int
11123 main ()
11124 {
11125 return sem_init ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131   ac_cv_lib_pthread_sem_init=yes
11132 else
11133   ac_cv_lib_pthread_sem_init=no
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136     conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11140 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11141 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11142   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11143
11144         SEM_INIT_LIB=-lpthread
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11147 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11148 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-lrt  $LIBS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h.  */
11155
11156 /* Override any GCC internal prototype to avoid an error.
11157    Use char because int might match the return type of a GCC
11158    builtin and then its argument prototype would still apply.  */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char sem_init ();
11163 int
11164 main ()
11165 {
11166 return sem_init ();
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172   ac_cv_lib_rt_sem_init=yes
11173 else
11174   ac_cv_lib_rt_sem_init=no
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext \
11177     conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11181 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11182 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11183   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11184
11185         SEM_INIT_LIB=-lrt
11186 else
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11188 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11189 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-lposix4  $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h.  */
11196
11197 /* Override any GCC internal prototype to avoid an error.
11198    Use char because int might match the return type of a GCC
11199    builtin and then its argument prototype would still apply.  */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char sem_init ();
11204 int
11205 main ()
11206 {
11207 return sem_init ();
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"; then :
11213   ac_cv_lib_posix4_sem_init=yes
11214 else
11215   ac_cv_lib_posix4_sem_init=no
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext \
11218     conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11222 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11223 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11224   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11225
11226         SEM_INIT_LIB=-lposix4
11227 fi
11228
11229 fi
11230
11231 fi
11232
11233 fi
11234
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11236 $as_echo_n "checking for unified diff option... " >&6; }
11237 if diff -u $0 $0 > /dev/null 2>&1 ; then
11238    UNI_DIFF_OPTS=-u
11239 else
11240    UNI_DIFF_OPTS=-c
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11243 $as_echo "$UNI_DIFF_OPTS" >&6; }
11244
11245 case "$host_os" in
11246 linux*)
11247
11248 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11249
11250         ;;
11251 esac
11252 LINUX_CMT="#"
11253 CYGWIN_CMT="#"
11254 UNIX_CMT=
11255 case "$host_os" in
11256 linux*)
11257         LINUX_CMT=
11258         ;;
11259 cygwin)
11260         CYGWIN_CMT=
11261         UNIX_CMT="#"
11262         ;;
11263 esac
11264
11265
11266
11267 case "$host_os" in
11268 linux* | gnu* | k*bsd*-gnu)
11269         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11270                 root_prefix="";
11271                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11272 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11273         fi
11274         ;;
11275 esac
11276 case "$host_os" in
11277 linux* | gnu* | k*bsd*-gnu)
11278         if test "$prefix" = NONE ; then
11279                 prefix="/usr";
11280                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11281 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11282                 if test "$mandir" = '${prefix}/man' ; then
11283                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11284 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11285                         mandir=/usr/share/man
11286                 fi
11287         fi
11288 ;;
11289 esac
11290 if test "$root_prefix" = NONE ; then
11291         if test "$prefix" = NONE ; then
11292                 root_prefix="$ac_default_prefix"
11293         else
11294                 root_prefix="$prefix"
11295         fi
11296         root_bindir=$bindir
11297         root_sbindir=$sbindir
11298         root_libdir=$libdir
11299         root_sysconfdir=$sysconfdir
11300 else
11301         root_bindir='${root_prefix}/bin'
11302         root_sbindir='${root_prefix}/sbin'
11303         root_libdir='${root_prefix}/lib'
11304         root_sysconfdir='${root_prefix}/etc'
11305 fi
11306 if test "$bindir" != '${exec_prefix}/bin'; then
11307     root_bindir=$bindir
11308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11309 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11310 fi
11311 if test "$sbindir" != '${exec_prefix}/sbin'; then
11312     root_sbindir=$sbindir
11313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11314 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11315 fi
11316 if test "$libdir" != '${exec_prefix}/lib'; then
11317     root_libdir=$libdir
11318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11319 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11320 fi
11321 if test "$sysconfdir" != '${prefix}/etc'; then
11322     root_sysconfdir=$sysconfdir
11323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11324 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11325 fi
11326
11327
11328
11329
11330
11331
11332 # Check whether --with-multiarch was given.
11333 if test "${with_multiarch+set}" = set; then :
11334   withval=$with_multiarch; if test "$withval" = "lib64"; then
11335     libdir=/usr/lib64
11336     root_libdir=/lib64
11337 else
11338     libdir=$libdir/$withval
11339     root_libdir=$root_libdir/$withval
11340 fi
11341
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11344 $as_echo_n "checking whether we can link with -static... " >&6; }
11345 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h.  */
11351 #include <stdio.h>
11352 int
11353 main ()
11354 {
11355 fflush(stdout);
11356   ;
11357   return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361   ac_cv_e2fsprogs_use_static=yes
11362 else
11363   ac_cv_e2fsprogs_use_static=no
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext \
11366     conftest$ac_exeext conftest.$ac_ext
11367 LDFLAGS=$SAVE_LDFLAGS
11368 fi
11369
11370 case "$host_os" in
11371 solaris2.*)
11372         ac_cv_e2fsprogs_use_static=no
11373 ;;
11374 esac
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11376 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11377 LDFLAG_STATIC=
11378 if test $ac_cv_e2fsprogs_use_static = yes; then
11379         LDFLAG_STATIC=-static
11380 fi
11381
11382 case "$host_os" in
11383 darwin*)
11384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11385 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11386
11387 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11388
11389         ;;
11390 esac
11391 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11392 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11393
11394
11395 if test "$cross_compiling" = yes ; then
11396   DO_TEST_SUITE=
11397 else
11398   DO_TEST_SUITE=check
11399 fi
11400
11401 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11402 if test -n "$CPPFLAGS" ; then
11403         INCLUDES="$INCLUDES $CPPFLAGS"
11404 fi
11405 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11406         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11407 fi
11408 if test -n "$WITH_DIET_LIBC" ; then
11409         INCLUDES="$INCLUDES -D_REENTRANT"
11410 fi
11411
11412
11413         MKINSTALLDIRS=
11414   if test -n "$ac_aux_dir"; then
11415     case "$ac_aux_dir" in
11416       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11417       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11418     esac
11419   fi
11420   if test -z "$MKINSTALLDIRS"; then
11421     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11422   fi
11423
11424
11425 if test $cross_compiling = no; then
11426    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11427    BUILD_LDFLAGS="$LDFLAGS"
11428 fi
11429
11430
11431 test -d lib || mkdir lib
11432 test -d include || mkdir include
11433 test -d include/linux || mkdir include/linux
11434 test -d include/asm || mkdir include/asm
11435 for i in MCONFIG Makefile e2fsprogs.spec \
11436         e2fsprogs-RHEL-6.spec \
11437         e2fsprogs-SUSE_LINUX-11.spec \
11438         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11439         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11440         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11441         lib/uuid/Makefile lib/uuid/uuid_types.h \
11442         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11443         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11444         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11445         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11446         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11447         resize/Makefile doc/Makefile intl/Makefile \
11448         intl/libgnuintl.h po/Makefile.in ; do
11449         if test -d `dirname ${srcdir}/$i` ; then
11450                 outlist="$outlist $i"
11451         fi
11452 done
11453 ac_config_files="$ac_config_files $outlist"
11454
11455 cat >confcache <<\_ACEOF
11456 # This file is a shell script that caches the results of configure
11457 # tests run on this system so they can be shared between configure
11458 # scripts and configure runs, see configure's option --config-cache.
11459 # It is not useful on other systems.  If it contains results you don't
11460 # want to keep, you may remove or edit it.
11461 #
11462 # config.status only pays attention to the cache file if you give it
11463 # the --recheck option to rerun configure.
11464 #
11465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11467 # following values.
11468
11469 _ACEOF
11470
11471 # The following way of writing the cache mishandles newlines in values,
11472 # but we know of no workaround that is simple, portable, and efficient.
11473 # So, we kill variables containing newlines.
11474 # Ultrix sh set writes to stderr and can't be redirected directly,
11475 # and sets the high bit in the cache file unless we assign to the vars.
11476 (
11477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11478     eval ac_val=\$$ac_var
11479     case $ac_val in #(
11480     *${as_nl}*)
11481       case $ac_var in #(
11482       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11484       esac
11485       case $ac_var in #(
11486       _ | IFS | as_nl) ;; #(
11487       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11488       *) { eval $ac_var=; unset $ac_var;} ;;
11489       esac ;;
11490     esac
11491   done
11492
11493   (set) 2>&1 |
11494     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11495     *${as_nl}ac_space=\ *)
11496       # `set' does not quote correctly, so add quotes: double-quote
11497       # substitution turns \\\\ into \\, and sed turns \\ into \.
11498       sed -n \
11499         "s/'/'\\\\''/g;
11500           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11501       ;; #(
11502     *)
11503       # `set' quotes correctly as required by POSIX, so do not add quotes.
11504       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11505       ;;
11506     esac |
11507     sort
11508 ) |
11509   sed '
11510      /^ac_cv_env_/b end
11511      t clear
11512      :clear
11513      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11514      t end
11515      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11516      :end' >>confcache
11517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11518   if test -w "$cache_file"; then
11519     test "x$cache_file" != "x/dev/null" &&
11520       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11521 $as_echo "$as_me: updating cache $cache_file" >&6;}
11522     cat confcache >$cache_file
11523   else
11524     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11525 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11526   fi
11527 fi
11528 rm -f confcache
11529
11530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11531 # Let make expand exec_prefix.
11532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11533
11534 DEFS=-DHAVE_CONFIG_H
11535
11536 ac_libobjs=
11537 ac_ltlibobjs=
11538 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539   # 1. Remove the extension, and $U if already installed.
11540   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11541   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11542   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11543   #    will be set to the directory where LIBOBJS objects are built.
11544   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11545   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11546 done
11547 LIBOBJS=$ac_libobjs
11548
11549 LTLIBOBJS=$ac_ltlibobjs
11550
11551
11552
11553
11554 : ${CONFIG_STATUS=./config.status}
11555 ac_write_fail=0
11556 ac_clean_files_save=$ac_clean_files
11557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11559 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11560 as_write_fail=0
11561 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11562 #! $SHELL
11563 # Generated by $as_me.
11564 # Run this file to recreate the current configuration.
11565 # Compiler output produced by configure, useful for debugging
11566 # configure, is in config.log if it exists.
11567
11568 debug=false
11569 ac_cs_recheck=false
11570 ac_cs_silent=false
11571
11572 SHELL=\${CONFIG_SHELL-$SHELL}
11573 export SHELL
11574 _ASEOF
11575 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11576 ## -------------------- ##
11577 ## M4sh Initialization. ##
11578 ## -------------------- ##
11579
11580 # Be more Bourne compatible
11581 DUALCASE=1; export DUALCASE # for MKS sh
11582 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11583   emulate sh
11584   NULLCMD=:
11585   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11586   # is contrary to our usage.  Disable this feature.
11587   alias -g '${1+"$@"}'='"$@"'
11588   setopt NO_GLOB_SUBST
11589 else
11590   case `(set -o) 2>/dev/null` in #(
11591   *posix*) :
11592     set -o posix ;; #(
11593   *) :
11594      ;;
11595 esac
11596 fi
11597
11598
11599 as_nl='
11600 '
11601 export as_nl
11602 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11603 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11604 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11606 # Prefer a ksh shell builtin over an external printf program on Solaris,
11607 # but without wasting forks for bash or zsh.
11608 if test -z "$BASH_VERSION$ZSH_VERSION" \
11609     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11610   as_echo='print -r --'
11611   as_echo_n='print -rn --'
11612 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11613   as_echo='printf %s\n'
11614   as_echo_n='printf %s'
11615 else
11616   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11617     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11618     as_echo_n='/usr/ucb/echo -n'
11619   else
11620     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11621     as_echo_n_body='eval
11622       arg=$1;
11623       case $arg in #(
11624       *"$as_nl"*)
11625         expr "X$arg" : "X\\(.*\\)$as_nl";
11626         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11627       esac;
11628       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11629     '
11630     export as_echo_n_body
11631     as_echo_n='sh -c $as_echo_n_body as_echo'
11632   fi
11633   export as_echo_body
11634   as_echo='sh -c $as_echo_body as_echo'
11635 fi
11636
11637 # The user is always right.
11638 if test "${PATH_SEPARATOR+set}" != set; then
11639   PATH_SEPARATOR=:
11640   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11641     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11642       PATH_SEPARATOR=';'
11643   }
11644 fi
11645
11646
11647 # IFS
11648 # We need space, tab and new line, in precisely that order.  Quoting is
11649 # there to prevent editors from complaining about space-tab.
11650 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11651 # splitting by setting IFS to empty value.)
11652 IFS=" ""        $as_nl"
11653
11654 # Find who we are.  Look in the path if we contain no directory separator.
11655 case $0 in #((
11656   *[\\/]* ) as_myself=$0 ;;
11657   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11659 do
11660   IFS=$as_save_IFS
11661   test -z "$as_dir" && as_dir=.
11662     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11663   done
11664 IFS=$as_save_IFS
11665
11666      ;;
11667 esac
11668 # We did not find ourselves, most probably we were run as `sh COMMAND'
11669 # in which case we are not to be found in the path.
11670 if test "x$as_myself" = x; then
11671   as_myself=$0
11672 fi
11673 if test ! -f "$as_myself"; then
11674   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11675   exit 1
11676 fi
11677
11678 # Unset variables that we do not need and which cause bugs (e.g. in
11679 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11680 # suppresses any "Segmentation fault" message there.  '((' could
11681 # trigger a bug in pdksh 5.2.14.
11682 for as_var in BASH_ENV ENV MAIL MAILPATH
11683 do eval test x\${$as_var+set} = xset \
11684   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11685 done
11686 PS1='$ '
11687 PS2='> '
11688 PS4='+ '
11689
11690 # NLS nuisances.
11691 LC_ALL=C
11692 export LC_ALL
11693 LANGUAGE=C
11694 export LANGUAGE
11695
11696 # CDPATH.
11697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11698
11699
11700 # as_fn_error ERROR [LINENO LOG_FD]
11701 # ---------------------------------
11702 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11703 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11704 # script with status $?, using 1 if that was 0.
11705 as_fn_error ()
11706 {
11707   as_status=$?; test $as_status -eq 0 && as_status=1
11708   if test "$3"; then
11709     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11710     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11711   fi
11712   $as_echo "$as_me: error: $1" >&2
11713   as_fn_exit $as_status
11714 } # as_fn_error
11715
11716
11717 # as_fn_set_status STATUS
11718 # -----------------------
11719 # Set $? to STATUS, without forking.
11720 as_fn_set_status ()
11721 {
11722   return $1
11723 } # as_fn_set_status
11724
11725 # as_fn_exit STATUS
11726 # -----------------
11727 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11728 as_fn_exit ()
11729 {
11730   set +e
11731   as_fn_set_status $1
11732   exit $1
11733 } # as_fn_exit
11734
11735 # as_fn_unset VAR
11736 # ---------------
11737 # Portably unset VAR.
11738 as_fn_unset ()
11739 {
11740   { eval $1=; unset $1;}
11741 }
11742 as_unset=as_fn_unset
11743 # as_fn_append VAR VALUE
11744 # ----------------------
11745 # Append the text in VALUE to the end of the definition contained in VAR. Take
11746 # advantage of any shell optimizations that allow amortized linear growth over
11747 # repeated appends, instead of the typical quadratic growth present in naive
11748 # implementations.
11749 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11750   eval 'as_fn_append ()
11751   {
11752     eval $1+=\$2
11753   }'
11754 else
11755   as_fn_append ()
11756   {
11757     eval $1=\$$1\$2
11758   }
11759 fi # as_fn_append
11760
11761 # as_fn_arith ARG...
11762 # ------------------
11763 # Perform arithmetic evaluation on the ARGs, and store the result in the
11764 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11765 # must be portable across $(()) and expr.
11766 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11767   eval 'as_fn_arith ()
11768   {
11769     as_val=$(( $* ))
11770   }'
11771 else
11772   as_fn_arith ()
11773   {
11774     as_val=`expr "$@" || test $? -eq 1`
11775   }
11776 fi # as_fn_arith
11777
11778
11779 if expr a : '\(a\)' >/dev/null 2>&1 &&
11780    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11781   as_expr=expr
11782 else
11783   as_expr=false
11784 fi
11785
11786 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11787   as_basename=basename
11788 else
11789   as_basename=false
11790 fi
11791
11792 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11793   as_dirname=dirname
11794 else
11795   as_dirname=false
11796 fi
11797
11798 as_me=`$as_basename -- "$0" ||
11799 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11800          X"$0" : 'X\(//\)$' \| \
11801          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11802 $as_echo X/"$0" |
11803     sed '/^.*\/\([^/][^/]*\)\/*$/{
11804             s//\1/
11805             q
11806           }
11807           /^X\/\(\/\/\)$/{
11808             s//\1/
11809             q
11810           }
11811           /^X\/\(\/\).*/{
11812             s//\1/
11813             q
11814           }
11815           s/.*/./; q'`
11816
11817 # Avoid depending upon Character Ranges.
11818 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11819 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11820 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11821 as_cr_digits='0123456789'
11822 as_cr_alnum=$as_cr_Letters$as_cr_digits
11823
11824 ECHO_C= ECHO_N= ECHO_T=
11825 case `echo -n x` in #(((((
11826 -n*)
11827   case `echo 'xy\c'` in
11828   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11829   xy)  ECHO_C='\c';;
11830   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11831        ECHO_T=' ';;
11832   esac;;
11833 *)
11834   ECHO_N='-n';;
11835 esac
11836
11837 rm -f conf$$ conf$$.exe conf$$.file
11838 if test -d conf$$.dir; then
11839   rm -f conf$$.dir/conf$$.file
11840 else
11841   rm -f conf$$.dir
11842   mkdir conf$$.dir 2>/dev/null
11843 fi
11844 if (echo >conf$$.file) 2>/dev/null; then
11845   if ln -s conf$$.file conf$$ 2>/dev/null; then
11846     as_ln_s='ln -s'
11847     # ... but there are two gotchas:
11848     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11849     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11850     # In both cases, we have to default to `cp -p'.
11851     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11852       as_ln_s='cp -p'
11853   elif ln conf$$.file conf$$ 2>/dev/null; then
11854     as_ln_s=ln
11855   else
11856     as_ln_s='cp -p'
11857   fi
11858 else
11859   as_ln_s='cp -p'
11860 fi
11861 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11862 rmdir conf$$.dir 2>/dev/null
11863
11864
11865 # as_fn_mkdir_p
11866 # -------------
11867 # Create "$as_dir" as a directory, including parents if necessary.
11868 as_fn_mkdir_p ()
11869 {
11870
11871   case $as_dir in #(
11872   -*) as_dir=./$as_dir;;
11873   esac
11874   test -d "$as_dir" || eval $as_mkdir_p || {
11875     as_dirs=
11876     while :; do
11877       case $as_dir in #(
11878       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11879       *) as_qdir=$as_dir;;
11880       esac
11881       as_dirs="'$as_qdir' $as_dirs"
11882       as_dir=`$as_dirname -- "$as_dir" ||
11883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884          X"$as_dir" : 'X\(//\)[^/]' \| \
11885          X"$as_dir" : 'X\(//\)$' \| \
11886          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11887 $as_echo X"$as_dir" |
11888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11889             s//\1/
11890             q
11891           }
11892           /^X\(\/\/\)[^/].*/{
11893             s//\1/
11894             q
11895           }
11896           /^X\(\/\/\)$/{
11897             s//\1/
11898             q
11899           }
11900           /^X\(\/\).*/{
11901             s//\1/
11902             q
11903           }
11904           s/.*/./; q'`
11905       test -d "$as_dir" && break
11906     done
11907     test -z "$as_dirs" || eval "mkdir $as_dirs"
11908   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11909
11910
11911 } # as_fn_mkdir_p
11912 if mkdir -p . 2>/dev/null; then
11913   as_mkdir_p='mkdir -p "$as_dir"'
11914 else
11915   test -d ./-p && rmdir ./-p
11916   as_mkdir_p=false
11917 fi
11918
11919 if test -x / >/dev/null 2>&1; then
11920   as_test_x='test -x'
11921 else
11922   if ls -dL / >/dev/null 2>&1; then
11923     as_ls_L_option=L
11924   else
11925     as_ls_L_option=
11926   fi
11927   as_test_x='
11928     eval sh -c '\''
11929       if test -d "$1"; then
11930         test -d "$1/.";
11931       else
11932         case $1 in #(
11933         -*)set "./$1";;
11934         esac;
11935         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11936         ???[sx]*):;;*)false;;esac;fi
11937     '\'' sh
11938   '
11939 fi
11940 as_executable_p=$as_test_x
11941
11942 # Sed expression to map a string onto a valid CPP name.
11943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11944
11945 # Sed expression to map a string onto a valid variable name.
11946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11947
11948
11949 exec 6>&1
11950 ## ----------------------------------- ##
11951 ## Main body of $CONFIG_STATUS script. ##
11952 ## ----------------------------------- ##
11953 _ASEOF
11954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11955
11956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957 # Save the log message, to keep $0 and so on meaningful, and to
11958 # report actual input values of CONFIG_FILES etc. instead of their
11959 # values after options handling.
11960 ac_log="
11961 This file was extended by $as_me, which was
11962 generated by GNU Autoconf 2.65.  Invocation command line was
11963
11964   CONFIG_FILES    = $CONFIG_FILES
11965   CONFIG_HEADERS  = $CONFIG_HEADERS
11966   CONFIG_LINKS    = $CONFIG_LINKS
11967   CONFIG_COMMANDS = $CONFIG_COMMANDS
11968   $ $0 $@
11969
11970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11971 "
11972
11973 _ACEOF
11974
11975 case $ac_config_files in *"
11976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11977 esac
11978
11979 case $ac_config_headers in *"
11980 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11981 esac
11982
11983
11984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11985 # Files that config.status was made for.
11986 config_files="$ac_config_files"
11987 config_headers="$ac_config_headers"
11988 config_commands="$ac_config_commands"
11989
11990 _ACEOF
11991
11992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11993 ac_cs_usage="\
11994 \`$as_me' instantiates files and other configuration actions
11995 from templates according to the current configuration.  Unless the files
11996 and actions are specified as TAGs, all are instantiated by default.
11997
11998 Usage: $0 [OPTION]... [TAG]...
11999
12000   -h, --help       print this help, then exit
12001   -V, --version    print version number and configuration settings, then exit
12002       --config     print configuration, then exit
12003   -q, --quiet, --silent
12004                    do not print progress messages
12005   -d, --debug      don't remove temporary files
12006       --recheck    update $as_me by reconfiguring in the same conditions
12007       --file=FILE[:TEMPLATE]
12008                    instantiate the configuration file FILE
12009       --header=FILE[:TEMPLATE]
12010                    instantiate the configuration header FILE
12011
12012 Configuration files:
12013 $config_files
12014
12015 Configuration headers:
12016 $config_headers
12017
12018 Configuration commands:
12019 $config_commands
12020
12021 Report bugs to the package provider."
12022
12023 _ACEOF
12024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12026 ac_cs_version="\\
12027 config.status
12028 configured by $0, generated by GNU Autoconf 2.65,
12029   with options \\"\$ac_cs_config\\"
12030
12031 Copyright (C) 2009 Free Software Foundation, Inc.
12032 This config.status script is free software; the Free Software Foundation
12033 gives unlimited permission to copy, distribute and modify it."
12034
12035 ac_pwd='$ac_pwd'
12036 srcdir='$srcdir'
12037 INSTALL='$INSTALL'
12038 AWK='$AWK'
12039 test -n "\$AWK" || AWK=awk
12040 _ACEOF
12041
12042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043 # The default lists apply if the user does not specify any file.
12044 ac_need_defaults=:
12045 while test $# != 0
12046 do
12047   case $1 in
12048   --*=*)
12049     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12050     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12051     ac_shift=:
12052     ;;
12053   *)
12054     ac_option=$1
12055     ac_optarg=$2
12056     ac_shift=shift
12057     ;;
12058   esac
12059
12060   case $ac_option in
12061   # Handling of the options.
12062   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12063     ac_cs_recheck=: ;;
12064   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12065     $as_echo "$ac_cs_version"; exit ;;
12066   --config | --confi | --conf | --con | --co | --c )
12067     $as_echo "$ac_cs_config"; exit ;;
12068   --debug | --debu | --deb | --de | --d | -d )
12069     debug=: ;;
12070   --file | --fil | --fi | --f )
12071     $ac_shift
12072     case $ac_optarg in
12073     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12074     esac
12075     as_fn_append CONFIG_FILES " '$ac_optarg'"
12076     ac_need_defaults=false;;
12077   --header | --heade | --head | --hea )
12078     $ac_shift
12079     case $ac_optarg in
12080     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12081     esac
12082     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12083     ac_need_defaults=false;;
12084   --he | --h)
12085     # Conflict between --help and --header
12086     as_fn_error "ambiguous option: \`$1'
12087 Try \`$0 --help' for more information.";;
12088   --help | --hel | -h )
12089     $as_echo "$ac_cs_usage"; exit ;;
12090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12091   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12092     ac_cs_silent=: ;;
12093
12094   # This is an error.
12095   -*) as_fn_error "unrecognized option: \`$1'
12096 Try \`$0 --help' for more information." ;;
12097
12098   *) as_fn_append ac_config_targets " $1"
12099      ac_need_defaults=false ;;
12100
12101   esac
12102   shift
12103 done
12104
12105 ac_configure_extra_args=
12106
12107 if $ac_cs_silent; then
12108   exec 6>/dev/null
12109   ac_configure_extra_args="$ac_configure_extra_args --silent"
12110 fi
12111
12112 _ACEOF
12113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12114 if \$ac_cs_recheck; then
12115   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12116   shift
12117   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12118   CONFIG_SHELL='$SHELL'
12119   export CONFIG_SHELL
12120   exec "\$@"
12121 fi
12122
12123 _ACEOF
12124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12125 exec 5>>config.log
12126 {
12127   echo
12128   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12129 ## Running $as_me. ##
12130 _ASBOX
12131   $as_echo "$ac_log"
12132 } >&5
12133
12134 _ACEOF
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12136 #
12137 # INIT-COMMANDS
12138 #
12139 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12140     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12141     # from automake.
12142     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12143     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12144     LINGUAS="${LINGUAS-%UNSET%}"
12145
12146
12147 _ACEOF
12148
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150
12151 # Handling of arguments.
12152 for ac_config_target in $ac_config_targets
12153 do
12154   case $ac_config_target in
12155     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12156     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12157     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12158
12159   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12160   esac
12161 done
12162
12163
12164 # If the user did not use the arguments to specify the items to instantiate,
12165 # then the envvar interface is used.  Set only those that are not.
12166 # We use the long form for the default assignment because of an extremely
12167 # bizarre bug on SunOS 4.1.3.
12168 if $ac_need_defaults; then
12169   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12170   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12171   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12172 fi
12173
12174 # Have a temporary directory for convenience.  Make it in the build tree
12175 # simply because there is no reason against having it here, and in addition,
12176 # creating and moving files from /tmp can sometimes cause problems.
12177 # Hook for its removal unless debugging.
12178 # Note that there is a small window in which the directory will not be cleaned:
12179 # after its creation but before its name has been assigned to `$tmp'.
12180 $debug ||
12181 {
12182   tmp=
12183   trap 'exit_status=$?
12184   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12185 ' 0
12186   trap 'as_fn_exit 1' 1 2 13 15
12187 }
12188 # Create a (secure) tmp directory for tmp files.
12189
12190 {
12191   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12192   test -n "$tmp" && test -d "$tmp"
12193 }  ||
12194 {
12195   tmp=./conf$$-$RANDOM
12196   (umask 077 && mkdir "$tmp")
12197 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12198
12199 # Set up the scripts for CONFIG_FILES section.
12200 # No need to generate them if there are no CONFIG_FILES.
12201 # This happens for instance with `./config.status config.h'.
12202 if test -n "$CONFIG_FILES"; then
12203
12204 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12205   ac_cs_awk_getline=:
12206   ac_cs_awk_pipe_init=
12207   ac_cs_awk_read_file='
12208       while ((getline aline < (F[key])) > 0)
12209         print(aline)
12210       close(F[key])'
12211   ac_cs_awk_pipe_fini=
12212 else
12213   ac_cs_awk_getline=false
12214   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12215   ac_cs_awk_read_file='
12216       print "|#_!!_#|"
12217       print "cat " F[key] " &&"
12218       '$ac_cs_awk_pipe_init
12219   # The final `:' finishes the AND list.
12220   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12221 fi
12222 ac_cr=`echo X | tr X '\015'`
12223 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12224 # But we know of no other shell where ac_cr would be empty at this
12225 # point, so we can use a bashism as a fallback.
12226 if test "x$ac_cr" = x; then
12227   eval ac_cr=\$\'\\r\'
12228 fi
12229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12231   ac_cs_awk_cr='\r'
12232 else
12233   ac_cs_awk_cr=$ac_cr
12234 fi
12235
12236 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12237 _ACEOF
12238
12239 # Create commands to substitute file output variables.
12240 {
12241   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12242   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12243   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12244   echo "_ACAWK" &&
12245   echo "_ACEOF"
12246 } >conf$$files.sh &&
12247 . ./conf$$files.sh ||
12248   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12249 rm -f conf$$files.sh
12250
12251 {
12252   echo "cat >conf$$subs.awk <<_ACEOF" &&
12253   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12254   echo "_ACEOF"
12255 } >conf$$subs.sh ||
12256   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12257 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12258 ac_delim='%!_!# '
12259 for ac_last_try in false false false false false :; do
12260   . ./conf$$subs.sh ||
12261     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12262
12263   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12264   if test $ac_delim_n = $ac_delim_num; then
12265     break
12266   elif $ac_last_try; then
12267     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12268   else
12269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12270   fi
12271 done
12272 rm -f conf$$subs.sh
12273
12274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12275 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12276 _ACEOF
12277 sed -n '
12278 h
12279 s/^/S["/; s/!.*/"]=/
12280 p
12281 g
12282 s/^[^!]*!//
12283 :repl
12284 t repl
12285 s/'"$ac_delim"'$//
12286 t delim
12287 :nl
12288 h
12289 s/\(.\{148\}\)..*/\1/
12290 t more1
12291 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12292 p
12293 n
12294 b repl
12295 :more1
12296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12297 p
12298 g
12299 s/.\{148\}//
12300 t nl
12301 :delim
12302 h
12303 s/\(.\{148\}\)..*/\1/
12304 t more2
12305 s/["\\]/\\&/g; s/^/"/; s/$/"/
12306 p
12307 b
12308 :more2
12309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12310 p
12311 g
12312 s/.\{148\}//
12313 t delim
12314 ' <conf$$subs.awk | sed '
12315 /^[^""]/{
12316   N
12317   s/\n//
12318 }
12319 ' >>$CONFIG_STATUS || ac_write_fail=1
12320 rm -f conf$$subs.awk
12321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12322 _ACAWK
12323 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12324   for (key in S) S_is_set[key] = 1
12325   FS = "\a"
12326   \$ac_cs_awk_pipe_init
12327 }
12328 {
12329   line = $ 0
12330   nfields = split(line, field, "@")
12331   substed = 0
12332   len = length(field[1])
12333   for (i = 2; i < nfields; i++) {
12334     key = field[i]
12335     keylen = length(key)
12336     if (S_is_set[key]) {
12337       value = S[key]
12338       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12339       len += length(value) + length(field[++i])
12340       substed = 1
12341     } else
12342       len += 1 + keylen
12343   }
12344   if (nfields == 3 && !substed) {
12345     key = field[2]
12346     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12347       \$ac_cs_awk_read_file
12348       next
12349     }
12350   }
12351   print line
12352 }
12353 \$ac_cs_awk_pipe_fini
12354 _ACAWK
12355 _ACEOF
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12358   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12359 else
12360   cat
12361 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12362   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12363 _ACEOF
12364
12365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12367 # trailing colons and then remove the whole line if VPATH becomes empty
12368 # (actually we leave an empty line to preserve line numbers).
12369 if test "x$srcdir" = x.; then
12370   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12371 s/:*\$(srcdir):*/:/
12372 s/:*\${srcdir}:*/:/
12373 s/:*@srcdir@:*/:/
12374 s/^\([^=]*=[     ]*\):*/\1/
12375 s/:*$//
12376 s/^[^=]*=[       ]*$//
12377 }'
12378 fi
12379
12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381 fi # test -n "$CONFIG_FILES"
12382
12383 # Set up the scripts for CONFIG_HEADERS section.
12384 # No need to generate them if there are no CONFIG_HEADERS.
12385 # This happens for instance with `./config.status Makefile'.
12386 if test -n "$CONFIG_HEADERS"; then
12387 cat >"$tmp/defines.awk" <<\_ACAWK ||
12388 BEGIN {
12389 _ACEOF
12390
12391 # Transform confdefs.h into an awk script `defines.awk', embedded as
12392 # here-document in config.status, that substitutes the proper values into
12393 # config.h.in to produce config.h.
12394
12395 # Create a delimiter string that does not exist in confdefs.h, to ease
12396 # handling of long lines.
12397 ac_delim='%!_!# '
12398 for ac_last_try in false false :; do
12399   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12400   if test -z "$ac_t"; then
12401     break
12402   elif $ac_last_try; then
12403     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12404   else
12405     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12406   fi
12407 done
12408
12409 # For the awk script, D is an array of macro values keyed by name,
12410 # likewise P contains macro parameters if any.  Preserve backslash
12411 # newline sequences.
12412
12413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12414 sed -n '
12415 s/.\{148\}/&'"$ac_delim"'/g
12416 t rset
12417 :rset
12418 s/^[     ]*#[    ]*define[       ][      ]*/ /
12419 t def
12420 d
12421 :def
12422 s/\\$//
12423 t bsnl
12424 s/["\\]/\\&/g
12425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12426 D["\1"]=" \3"/p
12427 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12428 d
12429 :bsnl
12430 s/["\\]/\\&/g
12431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12432 D["\1"]=" \3\\\\\\n"\\/p
12433 t cont
12434 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12435 t cont
12436 d
12437 :cont
12438 n
12439 s/.\{148\}/&'"$ac_delim"'/g
12440 t clear
12441 :clear
12442 s/\\$//
12443 t bsnlc
12444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12445 d
12446 :bsnlc
12447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12448 b cont
12449 ' <confdefs.h | sed '
12450 s/'"$ac_delim"'/"\\\
12451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12452
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454   for (key in D) D_is_set[key] = 1
12455   FS = "\a"
12456 }
12457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12458   line = \$ 0
12459   split(line, arg, " ")
12460   if (arg[1] == "#") {
12461     defundef = arg[2]
12462     mac1 = arg[3]
12463   } else {
12464     defundef = substr(arg[1], 2)
12465     mac1 = arg[2]
12466   }
12467   split(mac1, mac2, "(") #)
12468   macro = mac2[1]
12469   prefix = substr(line, 1, index(line, defundef) - 1)
12470   if (D_is_set[macro]) {
12471     # Preserve the white space surrounding the "#".
12472     print prefix "define", macro P[macro] D[macro]
12473     next
12474   } else {
12475     # Replace #undef with comments.  This is necessary, for example,
12476     # in the case of _POSIX_SOURCE, which is predefined and required
12477     # on some systems where configure will not decide to define it.
12478     if (defundef == "undef") {
12479       print "/*", prefix defundef, macro, "*/"
12480       next
12481     }
12482   }
12483 }
12484 { print }
12485 _ACAWK
12486 _ACEOF
12487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12488   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12489 fi # test -n "$CONFIG_HEADERS"
12490
12491
12492 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12493 shift
12494 for ac_tag
12495 do
12496   case $ac_tag in
12497   :[FHLC]) ac_mode=$ac_tag; continue;;
12498   esac
12499   case $ac_mode$ac_tag in
12500   :[FHL]*:*);;
12501   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12502   :[FH]-) ac_tag=-:-;;
12503   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12504   esac
12505   ac_save_IFS=$IFS
12506   IFS=:
12507   set x $ac_tag
12508   IFS=$ac_save_IFS
12509   shift
12510   ac_file=$1
12511   shift
12512
12513   case $ac_mode in
12514   :L) ac_source=$1;;
12515   :[FH])
12516     ac_file_inputs=
12517     for ac_f
12518     do
12519       case $ac_f in
12520       -) ac_f="$tmp/stdin";;
12521       *) # Look for the file first in the build tree, then in the source tree
12522          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12523          # because $ac_f cannot contain `:'.
12524          test -f "$ac_f" ||
12525            case $ac_f in
12526            [\\/$]*) false;;
12527            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12528            esac ||
12529            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12530       esac
12531       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12532       as_fn_append ac_file_inputs " '$ac_f'"
12533     done
12534
12535     # Let's still pretend it is `configure' which instantiates (i.e., don't
12536     # use $as_me), people would be surprised to read:
12537     #    /* config.h.  Generated by config.status.  */
12538     configure_input='Generated from '`
12539           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12540         `' by configure.'
12541     if test x"$ac_file" != x-; then
12542       configure_input="$ac_file.  $configure_input"
12543       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12544 $as_echo "$as_me: creating $ac_file" >&6;}
12545     fi
12546     # Neutralize special characters interpreted by sed in replacement strings.
12547     case $configure_input in #(
12548     *\&* | *\|* | *\\* )
12549        ac_sed_conf_input=`$as_echo "$configure_input" |
12550        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12551     *) ac_sed_conf_input=$configure_input;;
12552     esac
12553
12554     case $ac_tag in
12555     *:-:* | *:-) cat >"$tmp/stdin" \
12556       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12557     esac
12558     ;;
12559   esac
12560
12561   ac_dir=`$as_dirname -- "$ac_file" ||
12562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563          X"$ac_file" : 'X\(//\)[^/]' \| \
12564          X"$ac_file" : 'X\(//\)$' \| \
12565          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12566 $as_echo X"$ac_file" |
12567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12568             s//\1/
12569             q
12570           }
12571           /^X\(\/\/\)[^/].*/{
12572             s//\1/
12573             q
12574           }
12575           /^X\(\/\/\)$/{
12576             s//\1/
12577             q
12578           }
12579           /^X\(\/\).*/{
12580             s//\1/
12581             q
12582           }
12583           s/.*/./; q'`
12584   as_dir="$ac_dir"; as_fn_mkdir_p
12585   ac_builddir=.
12586
12587 case "$ac_dir" in
12588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12589 *)
12590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12591   # A ".." for each directory in $ac_dir_suffix.
12592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12593   case $ac_top_builddir_sub in
12594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12596   esac ;;
12597 esac
12598 ac_abs_top_builddir=$ac_pwd
12599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12600 # for backward compatibility:
12601 ac_top_builddir=$ac_top_build_prefix
12602
12603 case $srcdir in
12604   .)  # We are building in place.
12605     ac_srcdir=.
12606     ac_top_srcdir=$ac_top_builddir_sub
12607     ac_abs_top_srcdir=$ac_pwd ;;
12608   [\\/]* | ?:[\\/]* )  # Absolute name.
12609     ac_srcdir=$srcdir$ac_dir_suffix;
12610     ac_top_srcdir=$srcdir
12611     ac_abs_top_srcdir=$srcdir ;;
12612   *) # Relative name.
12613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12614     ac_top_srcdir=$ac_top_build_prefix$srcdir
12615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12616 esac
12617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12618
12619
12620   case $ac_mode in
12621   :F)
12622   #
12623   # CONFIG_FILE
12624   #
12625
12626   case $INSTALL in
12627   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12628   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12629   esac
12630 _ACEOF
12631
12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12633 # If the template does not know about datarootdir, expand it.
12634 # FIXME: This hack should be removed a few years after 2.60.
12635 ac_datarootdir_hack=; ac_datarootdir_seen=
12636 ac_sed_dataroot='
12637 /datarootdir/ {
12638   p
12639   q
12640 }
12641 /@datadir@/p
12642 /@docdir@/p
12643 /@infodir@/p
12644 /@localedir@/p
12645 /@mandir@/p'
12646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12647 *datarootdir*) ac_datarootdir_seen=yes;;
12648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12651 _ACEOF
12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653   ac_datarootdir_hack='
12654   s&@datadir@&$datadir&g
12655   s&@docdir@&$docdir&g
12656   s&@infodir@&$infodir&g
12657   s&@localedir@&$localedir&g
12658   s&@mandir@&$mandir&g
12659   s&\\\${datarootdir}&$datarootdir&g' ;;
12660 esac
12661 _ACEOF
12662
12663 # Neutralize VPATH when `$srcdir' = `.'.
12664 # Shell code in configure.ac might set extrasub.
12665 # FIXME: do we really want to maintain this feature?
12666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12667 ac_sed_extra="$ac_vpsub
12668 $extrasub
12669 _ACEOF
12670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12671 :t
12672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12673 s|@configure_input@|$ac_sed_conf_input|;t t
12674 s&@top_builddir@&$ac_top_builddir_sub&;t t
12675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12676 s&@srcdir@&$ac_srcdir&;t t
12677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12678 s&@top_srcdir@&$ac_top_srcdir&;t t
12679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12680 s&@builddir@&$ac_builddir&;t t
12681 s&@abs_builddir@&$ac_abs_builddir&;t t
12682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12683 s&@INSTALL@&$ac_INSTALL&;t t
12684 $ac_datarootdir_hack
12685 "
12686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12687 if $ac_cs_awk_getline; then
12688   $AWK -f "$tmp/subs.awk"
12689 else
12690   $AWK -f "$tmp/subs.awk" | $SHELL
12691 fi >$tmp/out \
12692   || as_fn_error "could not create $ac_file" "$LINENO" 5
12693
12694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12695   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12696   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12698 which seems to be undefined.  Please make sure it is defined." >&5
12699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12700 which seems to be undefined.  Please make sure it is defined." >&2;}
12701
12702   rm -f "$tmp/stdin"
12703   case $ac_file in
12704   -) cat "$tmp/out" && rm -f "$tmp/out";;
12705   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12706   esac \
12707   || as_fn_error "could not create $ac_file" "$LINENO" 5
12708  ;;
12709   :H)
12710   #
12711   # CONFIG_HEADER
12712   #
12713   if test x"$ac_file" != x-; then
12714     {
12715       $as_echo "/* $configure_input  */" \
12716       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12717     } >"$tmp/config.h" \
12718       || as_fn_error "could not create $ac_file" "$LINENO" 5
12719     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12720       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12722     else
12723       rm -f "$ac_file"
12724       mv "$tmp/config.h" "$ac_file" \
12725         || as_fn_error "could not create $ac_file" "$LINENO" 5
12726     fi
12727   else
12728     $as_echo "/* $configure_input  */" \
12729       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12730       || as_fn_error "could not create -" "$LINENO" 5
12731   fi
12732  ;;
12733
12734   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12735 $as_echo "$as_me: executing $ac_file commands" >&6;}
12736  ;;
12737   esac
12738
12739
12740   case $ac_file$ac_mode in
12741     "default-1":C)
12742     for ac_file in $CONFIG_FILES; do
12743       # Support "outfile[:infile[:infile...]]"
12744       case "$ac_file" in
12745         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12746       esac
12747       # PO directories have a Makefile.in generated from Makefile.in.in.
12748       case "$ac_file" in */Makefile.in)
12749         # Adjust a relative srcdir.
12750         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12751         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12752         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12753         # In autoconf-2.13 it is called $ac_given_srcdir.
12754         # In autoconf-2.50 it is called $srcdir.
12755         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12756         case "$ac_given_srcdir" in
12757           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12758           /*) top_srcdir="$ac_given_srcdir" ;;
12759           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12760         esac
12761         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12762           rm -f "$ac_dir/POTFILES"
12763           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12764           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12765           POMAKEFILEDEPS="POTFILES.in"
12766           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12767           # on $ac_dir but don't depend on user-specified configuration
12768           # parameters.
12769           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12770             # The LINGUAS file contains the set of available languages.
12771             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12772               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12773             fi
12774             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12775             # Hide the ALL_LINGUAS assigment from automake.
12776             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12777             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12778           else
12779             # The set of available languages was given in configure.in.
12780             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12781           fi
12782           # Compute POFILES
12783           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12784           # Compute UPDATEPOFILES
12785           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12786           # Compute DUMMYPOFILES
12787           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12788           # Compute GMOFILES
12789           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12790           case "$ac_given_srcdir" in
12791             .) srcdirpre= ;;
12792             *) srcdirpre='$(srcdir)/' ;;
12793           esac
12794           POFILES=
12795           UPDATEPOFILES=
12796           DUMMYPOFILES=
12797           GMOFILES=
12798           for lang in $ALL_LINGUAS; do
12799             POFILES="$POFILES $srcdirpre$lang.po"
12800             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12801             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12802             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12803           done
12804           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12805           # environment variable.
12806           INST_LINGUAS=
12807           if test -n "$ALL_LINGUAS"; then
12808             for presentlang in $ALL_LINGUAS; do
12809               useit=no
12810               if test "%UNSET%" != "$LINGUAS"; then
12811                 desiredlanguages="$LINGUAS"
12812               else
12813                 desiredlanguages="$ALL_LINGUAS"
12814               fi
12815               for desiredlang in $desiredlanguages; do
12816                 # Use the presentlang catalog if desiredlang is
12817                 #   a. equal to presentlang, or
12818                 #   b. a variant of presentlang (because in this case,
12819                 #      presentlang can be used as a fallback for messages
12820                 #      which are not translated in the desiredlang catalog).
12821                 case "$desiredlang" in
12822                   "$presentlang"*) useit=yes;;
12823                 esac
12824               done
12825               if test $useit = yes; then
12826                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12827               fi
12828             done
12829           fi
12830           CATALOGS=
12831           if test -n "$INST_LINGUAS"; then
12832             for lang in $INST_LINGUAS; do
12833               CATALOGS="$CATALOGS $lang.gmo"
12834             done
12835           fi
12836           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12837           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"
12838           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12839             if test -f "$f"; then
12840               case "$f" in
12841                 *.orig | *.bak | *~) ;;
12842                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12843               esac
12844             fi
12845           done
12846         fi
12847         ;;
12848       esac
12849     done ;;
12850
12851   esac
12852 done # for ac_tag
12853
12854
12855 as_fn_exit 0
12856 _ACEOF
12857 ac_clean_files=$ac_clean_files_save
12858
12859 test $ac_write_fail = 0 ||
12860   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12861
12862
12863 # configure is writing to config.log, and then calls config.status.
12864 # config.status does its own redirection, appending to config.log.
12865 # Unfortunately, on DOS this fails, as config.log is still kept open
12866 # by configure, so config.status won't be able to write to it; its
12867 # output is simply discarded.  So we exec the FD to /dev/null,
12868 # effectively closing config.log, so it can be properly (re)opened and
12869 # appended to by config.status.  When coming back to configure, we
12870 # need to make the FD available again.
12871 if test "$no_create" != yes; then
12872   ac_cs_success=:
12873   ac_config_status_args=
12874   test "$silent" = yes &&
12875     ac_config_status_args="$ac_config_status_args --quiet"
12876   exec 5>/dev/null
12877   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12878   exec 5>>config.log
12879   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12880   # would make configure fail if this is the last instruction.
12881   $ac_cs_success || as_fn_exit $?
12882 fi
12883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12886 fi
12887
12888 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi