Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 BLKID_CMT
719 DEPPROFILED_LIBBLKID
720 PROFILED_LIBBLKID
721 DEPSTATIC_LIBBLKID
722 STATIC_LIBBLKID
723 DEPLIBBLKID
724 LIBBLKID
725 UUID_CMT
726 DEPPROFILED_LIBUUID
727 PROFILED_LIBUUID
728 DEPSTATIC_LIBUUID
729 STATIC_LIBUUID
730 DEPLIBUUID
731 LIBUUID
732 PKG_CONFIG
733 TEST_IO_CMT
734 PRIVATE_LIBS_CMT
735 LDFLAG_DYNAMIC
736 PROFILED_LIB_EXT
737 STATIC_LIB_EXT
738 LIB_EXT
739 CHECKER_CMT
740 PROFILE_CMT
741 BSDLIB_CMT
742 ELF_CMT
743 HTREE_CMT
744 Q
745 ES
746 E
747 LINK_BUILD_FLAGS
748 SYMLINK_RELATIVE
749 LINK_INSTALL_FLAGS
750 MAINTAINER_CMT
751 CPP
752 RDYNAMIC
753 DLOPEN_LIB
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 E2FSPROGS_PKGVER
770 E2FSPROGS_VERSION
771 E2FSPROGS_DAY
772 E2FSPROGS_MONTH
773 E2FSPROGS_YEAR
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files='MCONFIG
813 MAKEFILE_ELF
814 MAKEFILE_BSDLIB
815 MAKEFILE_PROFILE
816 MAKEFILE_CHECKER
817 MAKEFILE_LIBRARY
818 ASM_TYPES_HEADER
819 PUBLIC_CONFIG_HEADER'
820 ac_user_opts='
821 enable_option_checking
822 with_diet_libc
823 with_cc
824 with_ccopts
825 with_ldopts
826 with_root_prefix
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
831 enable_symlink_build
832 enable_verbose_makecmds
833 enable_compression
834 enable_htree
835 enable_elf_shlibs
836 enable_bsd_shlibs
837 enable_profile
838 enable_checker
839 enable_jbd_debug
840 enable_blkid_debug
841 enable_testio_debug
842 enable_libuuid
843 enable_libblkid
844 enable_quota
845 enable_backtrace
846 enable_debugfs
847 enable_imager
848 enable_resizer
849 enable_defrag
850 enable_fsck
851 enable_e2initrd_helper
852 enable_tls
853 enable_uuidd
854 enable_mmp
855 enable_bmap_stats
856 enable_bmap_stats_ops
857 enable_nls
858 with_gnu_ld
859 enable_rpath
860 with_libiconv_prefix
861 with_included_gettext
862 with_libintl_prefix
863 with_multiarch
864 '
865       ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 CPP
874 PKG_CONFIG'
875
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *=)   ac_optarg= ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   # Accept the important Cygnus configure options, so we can diagnose typos.
943
944   case $ac_dashdash$ac_option in
945   --)
946     ac_dashdash=yes ;;
947
948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
949     ac_prev=bindir ;;
950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951     bindir=$ac_optarg ;;
952
953   -build | --build | --buil | --bui | --bu)
954     ac_prev=build_alias ;;
955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956     build_alias=$ac_optarg ;;
957
958   -cache-file | --cache-file | --cache-fil | --cache-fi \
959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960     ac_prev=cache_file ;;
961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963     cache_file=$ac_optarg ;;
964
965   --config-cache | -C)
966     cache_file=config.cache ;;
967
968   -datadir | --datadir | --datadi | --datad)
969     ac_prev=datadir ;;
970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
971     datadir=$ac_optarg ;;
972
973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974   | --dataroo | --dataro | --datar)
975     ac_prev=datarootdir ;;
976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978     datarootdir=$ac_optarg ;;
979
980   -disable-* | --disable-*)
981     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984       as_fn_error $? "invalid feature name: $ac_useropt"
985     ac_useropt_orig=$ac_useropt
986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987     case $ac_user_opts in
988       *"
989 "enable_$ac_useropt"
990 "*) ;;
991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992          ac_unrecognized_sep=', ';;
993     esac
994     eval enable_$ac_useropt=no ;;
995
996   -docdir | --docdir | --docdi | --doc | --do)
997     ac_prev=docdir ;;
998   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999     docdir=$ac_optarg ;;
1000
1001   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002     ac_prev=dvidir ;;
1003   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004     dvidir=$ac_optarg ;;
1005
1006   -enable-* | --enable-*)
1007     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010       as_fn_error $? "invalid feature name: $ac_useropt"
1011     ac_useropt_orig=$ac_useropt
1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013     case $ac_user_opts in
1014       *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018          ac_unrecognized_sep=', ';;
1019     esac
1020     eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214       as_fn_error $? "invalid package name: $ac_useropt"
1215     ac_useropt_orig=$ac_useropt
1216     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217     case $ac_user_opts in
1218       *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222          ac_unrecognized_sep=', ';;
1223     esac
1224     eval with_$ac_useropt=\$ac_optarg ;;
1225
1226   -without-* | --without-*)
1227     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230       as_fn_error $? "invalid package name: $ac_useropt"
1231     ac_useropt_orig=$ac_useropt
1232     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233     case $ac_user_opts in
1234       *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238          ac_unrecognized_sep=', ';;
1239     esac
1240     eval with_$ac_useropt=no ;;
1241
1242   --x)
1243     # Obsolete; use --with-x.
1244     with_x=yes ;;
1245
1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247   | --x-incl | --x-inc | --x-in | --x-i)
1248     ac_prev=x_includes ;;
1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251     x_includes=$ac_optarg ;;
1252
1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255     ac_prev=x_libraries ;;
1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258     x_libraries=$ac_optarg ;;
1259
1260   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     case $ac_envvar in #(
1268       '' | [0-9]* | *[!_$as_cr_alnum]* )
1269       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270     esac
1271     eval $ac_envvar=\$ac_optarg
1272     export $ac_envvar ;;
1273
1274   *)
1275     # FIXME: should be removed in autoconf 3.0.
1276     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280     ;;
1281
1282   esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287   as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291   case $enable_option_checking in
1292     no) ;;
1293     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295   esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300                 datadir sysconfdir sharedstatedir localstatedir includedir \
1301                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302                 libdir localedir mandir
1303 do
1304   eval ac_val=\$$ac_var
1305   # Remove trailing slashes.
1306   case $ac_val in
1307     */ )
1308       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309       eval $ac_var=\$ac_val;;
1310   esac
1311   # Be sure to have absolute directory names.
1312   case $ac_val in
1313     [\\/$]* | ?:[\\/]* )  continue;;
1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315   esac
1316   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328   if test "x$build_alias" = x; then
1329     cross_compiling=maybe
1330   elif test "x$build_alias" != "x$host_alias"; then
1331     cross_compiling=yes
1332   fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344   as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$as_myself" : 'X\(//\)[^/]' \| \
1356          X"$as_myself" : 'X\(//\)$' \| \
1357          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking ...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --enable-maintainer-mode enable makefile rules useful for maintainers
1487   --enable-symlink-install use symlinks when installing instead of hard links
1488   --enable-relative-symlinks use relative symlinks when installing
1489
1490   --enable-symlink-build  use symlinks while building instead of hard links
1491   --enable-verbose-makecmds enable verbose make command output
1492   --enable-compression    enable EXPERIMENTAL compression support
1493   --enable-htree          enable EXPERIMENTAL htree directory support
1494   --enable-elf-shlibs     select ELF shared libraries
1495   --enable-bsd-shlibs     select BSD shared libraries
1496   --enable-profile        build profiling libraries
1497   --enable-checker        build checker libraries
1498   --enable-jbd-debug      enable journal debugging
1499   --enable-blkid-debug    enable blkid debugging
1500   --disable-testio-debug  disable the use of the test I/O manager for debugging
1501   --disable-libuuid       do not build private uuid library
1502   --disable-libblkid      do not build private blkid library
1503   --enable-quota          enable quota support
1504   --disable-backtrace     disable use backtrace
1505   --disable-debugfs       disable support of debugfs program
1506   --disable-imager        disable support of e2image program
1507   --disable-resizer       disable support of e2resize program
1508   --disable-defrag        disable support of e4defrag program
1509   --enable-fsck           build fsck wrapper program
1510   --enable-e2initrd-helper build e2initrd-helper program
1511   --disable-tls           disable use of thread local support
1512   --disable-uuidd         disable building the uuid daemon
1513   --disable-mmp           disable support mmp, Multi Mount Protection
1514   --disable-bmap-stats    disable collection of bitmap stats.
1515   --enable-bmap-stats-ops enable collection of additional bitmap stats
1516   --disable-nls           do not use Native Language Support
1517   --disable-rpath         do not hardcode runtime library paths
1518
1519 Optional Packages:
1520   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522   --with-diet-libc        use diet libc
1523   --with-cc               no longer supported, use CC= instead
1524   --with-ccopts           no longer supported, use CFLAGS= instead
1525   --with-ldopts           no longer supported, use LDFLAGS= instead
1526   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1527   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1528   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1529   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1530   --with-included-gettext use the GNU gettext library included here
1531   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1532   --without-libintl-prefix     don't search for libintl in includedir and libdir
1533   --with-multiarch=ARCH specify the multiarch triplet
1534
1535 Some influential environment variables:
1536   CC          C compiler command
1537   CFLAGS      C compiler flags
1538   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1539               nonstandard directory <lib dir>
1540   LIBS        libraries to pass to the linker, e.g. -l<library>
1541   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542               you have headers in a nonstandard directory <include dir>
1543   CPP         C preprocessor
1544   PKG_CONFIG  path to pkg-config utility
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555   # If there are subdirs, report their specific --help.
1556   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557     test -d "$ac_dir" ||
1558       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559       continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 configure
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext
1633   if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_compile") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest.$ac_objext; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   rm -f conftest.$ac_objext conftest$ac_exeext
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } && {
1687          test -z "$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        } && test -s conftest$ac_exeext && {
1690          test "$cross_compiling" = yes ||
1691          test -x conftest$ac_exeext
1692        }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702   # interfere with the next link command; also delete a directory that is
1703   # left behind by Apple's compiler.  We do this before executing the actions.
1704   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } > conftest.i && {
1732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740     ac_retval=1
1741 fi
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_link") 2>&5
1762   ac_status=$?
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765   { { case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_try") 2>&5
1772   ac_status=$?
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; }; }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: program exited with status $ac_status" >&5
1778        $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781        ac_retval=$ac_status
1782 fi
1783   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785   as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_run
1788
1789 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1790 # -------------------------------------------
1791 # Tests whether TYPE exists after having included INCLUDES, setting cache
1792 # variable VAR accordingly.
1793 ac_fn_c_check_type ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   eval "$3=no"
1802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h.  */
1804 $4
1805 int
1806 main ()
1807 {
1808 if (sizeof ($2))
1809          return 0;
1810   ;
1811   return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 int
1819 main ()
1820 {
1821 if (sizeof (($2)))
1822             return 0;
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828
1829 else
1830   eval "$3=yes"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_type
1842
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 else
1855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 $4
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861   eval "$3=yes"
1862 else
1863   eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883   $as_echo_n "(cached) " >&6
1884 else
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892     which can conflict with char $2 (); below.
1893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894     <limits.h> exists even on freestanding compilers.  */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905    Use char because int might match the return type of a GCC
1906    builtin and then its argument prototype would still apply.  */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912     to always fail with ENOSYS.  Some functions are actually named
1913     something starting with __ and the normal name is an alias.  */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922   ;
1923   return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927   eval "$3=yes"
1928 else
1929   eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932     conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1945 # accordingly.
1946 ac_fn_c_check_header_mongrel ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   if eval \${$3+:} false; then :
1950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953   $as_echo_n "(cached) " >&6
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 else
1959   # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968   ac_header_compiler=yes
1969 else
1970   ac_header_compiler=no
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1975
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h.  */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984   ac_header_preproc=yes
1985 else
1986   ac_header_preproc=no
1987 fi
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1991
1992 # So?  What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994   yes:no: )
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999     ;;
2000   no:yes:* )
2001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011     ;;
2012 esac
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   eval "$3=\$ac_header_compiler"
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 fi
2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026 } # ac_fn_c_check_header_mongrel
2027
2028 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2029 # --------------------------------------------
2030 # Tries to find the compile-time value of EXPR in a program that includes
2031 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2032 # computed
2033 ac_fn_c_compute_int ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   if test "$cross_compiling" = yes; then
2037     # Depending upon the size, compute the lo and hi bounds.
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) >= 0)];
2045 test_array [0] = 0;
2046 return test_array [0];
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053   ac_lo=0 ac_mid=0
2054   while :; do
2055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2062 test_array [0] = 0;
2063 return test_array [0];
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_hi=$ac_mid; break
2071 else
2072   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2073                         if test $ac_lo -le $ac_mid; then
2074                           ac_lo= ac_hi=
2075                           break
2076                         fi
2077                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080   done
2081 else
2082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) < 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097   ac_hi=-1 ac_mid=-1
2098   while :; do
2099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_lo=$ac_mid; break
2115 else
2116   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117                         if test $ac_mid -le $ac_hi; then
2118                           ac_lo= ac_hi=
2119                           break
2120                         fi
2121                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124   done
2125 else
2126   ac_lo= ac_hi=
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149   ac_hi=$ac_mid
2150 else
2151   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 case $ac_lo in #((
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 '') ac_retval=1 ;;
2158 esac
2159   else
2160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h.  */
2162 $4
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2165 #include <stdio.h>
2166 #include <stdlib.h>
2167 int
2168 main ()
2169 {
2170
2171   FILE *f = fopen ("conftest.val", "w");
2172   if (! f)
2173     return 1;
2174   if (($2) < 0)
2175     {
2176       long int i = longval ();
2177       if (i != ($2))
2178         return 1;
2179       fprintf (f, "%ld", i);
2180     }
2181   else
2182     {
2183       unsigned long int i = ulongval ();
2184       if (i != ($2))
2185         return 1;
2186       fprintf (f, "%lu", i);
2187     }
2188   /* Do not output a trailing newline, as this causes \r\n confusion
2189      on some platforms.  */
2190   return ferror (f) || fclose (f) != 0;
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_run "$LINENO"; then :
2197   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 else
2199   ac_retval=1
2200 fi
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202   conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 rm -f conftest.val
2204
2205   fi
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207   as_fn_set_status $ac_retval
2208
2209 } # ac_fn_c_compute_int
2210
2211 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2212 # ----------------------------------------------------
2213 # Tries to find if the field MEMBER exists in type AGGR, after including
2214 # INCLUDES, setting cache variable VAR accordingly.
2215 ac_fn_c_check_member ()
2216 {
2217   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2219 $as_echo_n "checking for $2.$3... " >&6; }
2220 if eval \${$4+:} false; then :
2221   $as_echo_n "(cached) " >&6
2222 else
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $5
2226 int
2227 main ()
2228 {
2229 static $2 ac_aggr;
2230 if (ac_aggr.$3)
2231 return 0;
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   eval "$4=yes"
2238 else
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $5
2242 int
2243 main ()
2244 {
2245 static $2 ac_aggr;
2246 if (sizeof ac_aggr.$3)
2247 return 0;
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253   eval "$4=yes"
2254 else
2255   eval "$4=no"
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 fi
2261 eval ac_res=\$$4
2262                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_check_member
2267
2268 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2269 # ---------------------------------------------
2270 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2271 # accordingly.
2272 ac_fn_c_check_decl ()
2273 {
2274   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275   as_decl_name=`echo $2|sed 's/ *(.*//'`
2276   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2278 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2279 if eval \${$3+:} false; then :
2280   $as_echo_n "(cached) " >&6
2281 else
2282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 int
2286 main ()
2287 {
2288 #ifndef $as_decl_name
2289 #ifdef __cplusplus
2290   (void) $as_decl_use;
2291 #else
2292   (void) $as_decl_name;
2293 #endif
2294 #endif
2295
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   eval "$3=yes"
2302 else
2303   eval "$3=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_c_check_decl
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2316
2317 It was created by $as_me, which was
2318 generated by GNU Autoconf 2.69.  Invocation command line was
2319
2320   $ $0 $@
2321
2322 _ACEOF
2323 exec 5>>config.log
2324 {
2325 cat <<_ASUNAME
2326 ## --------- ##
2327 ## Platform. ##
2328 ## --------- ##
2329
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2335
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2338
2339 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2340 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2343 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2344 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2345 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2346
2347 _ASUNAME
2348
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352   IFS=$as_save_IFS
2353   test -z "$as_dir" && as_dir=.
2354     $as_echo "PATH: $as_dir"
2355   done
2356 IFS=$as_save_IFS
2357
2358 } >&5
2359
2360 cat >&5 <<_ACEOF
2361
2362
2363 ## ----------- ##
2364 ## Core tests. ##
2365 ## ----------- ##
2366
2367 _ACEOF
2368
2369
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_configure_args=
2376 ac_configure_args0=
2377 ac_configure_args1=
2378 ac_must_keep_next=false
2379 for ac_pass in 1 2
2380 do
2381   for ac_arg
2382   do
2383     case $ac_arg in
2384     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386     | -silent | --silent | --silen | --sile | --sil)
2387       continue ;;
2388     *\'*)
2389       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390     esac
2391     case $ac_pass in
2392     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2393     2)
2394       as_fn_append ac_configure_args1 " '$ac_arg'"
2395       if test $ac_must_keep_next = true; then
2396         ac_must_keep_next=false # Got value, back to normal.
2397       else
2398         case $ac_arg in
2399           *=* | --config-cache | -C | -disable-* | --disable-* \
2400           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402           | -with-* | --with-* | -without-* | --without-* | --x)
2403             case "$ac_configure_args0 " in
2404               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405             esac
2406             ;;
2407           -* ) ac_must_keep_next=true ;;
2408         esac
2409       fi
2410       as_fn_append ac_configure_args " '$ac_arg'"
2411       ;;
2412     esac
2413   done
2414 done
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2417
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log.  We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424   # Save into config.log some information that might help in debugging.
2425   {
2426     echo
2427
2428     $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2431     echo
2432     # The following way of writing the cache mishandles newlines in values,
2433 (
2434   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435     eval ac_val=\$$ac_var
2436     case $ac_val in #(
2437     *${as_nl}*)
2438       case $ac_var in #(
2439       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441       esac
2442       case $ac_var in #(
2443       _ | IFS | as_nl) ;; #(
2444       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445       *) { eval $ac_var=; unset $ac_var;} ;;
2446       esac ;;
2447     esac
2448   done
2449   (set) 2>&1 |
2450     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451     *${as_nl}ac_space=\ *)
2452       sed -n \
2453         "s/'\''/'\''\\\\'\'''\''/g;
2454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455       ;; #(
2456     *)
2457       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458       ;;
2459     esac |
2460     sort
2461 )
2462     echo
2463
2464     $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2467     echo
2468     for ac_var in $ac_subst_vars
2469     do
2470       eval ac_val=\$$ac_var
2471       case $ac_val in
2472       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473       esac
2474       $as_echo "$ac_var='\''$ac_val'\''"
2475     done | sort
2476     echo
2477
2478     if test -n "$ac_subst_files"; then
2479       $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2482       echo
2483       for ac_var in $ac_subst_files
2484       do
2485         eval ac_val=\$$ac_var
2486         case $ac_val in
2487         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488         esac
2489         $as_echo "$ac_var='\''$ac_val'\''"
2490       done | sort
2491       echo
2492     fi
2493
2494     if test -s confdefs.h; then
2495       $as_echo "## ----------- ##
2496 ## confdefs.h. ##
2497 ## ----------- ##"
2498       echo
2499       cat confdefs.h
2500       echo
2501     fi
2502     test "$ac_signal" != 0 &&
2503       $as_echo "$as_me: caught signal $ac_signal"
2504     $as_echo "$as_me: exit $exit_status"
2505   } >&5
2506   rm -f core *.core core.conftest.* &&
2507     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508     exit $exit_status
2509 ' 0
2510 for ac_signal in 1 2 13 15; do
2511   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 done
2513 ac_signal=0
2514
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2517
2518 $as_echo "/* confdefs.h */" > confdefs.h
2519
2520 # Predefined preprocessor variables.
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2524 _ACEOF
2525
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528 _ACEOF
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2532 _ACEOF
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2536 _ACEOF
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540 _ACEOF
2541
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2544 _ACEOF
2545
2546
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2549 ac_site_file1=NONE
2550 ac_site_file2=NONE
2551 if test -n "$CONFIG_SITE"; then
2552   # We do not want a PATH search for config.site.
2553   case $CONFIG_SITE in #((
2554     -*)  ac_site_file1=./$CONFIG_SITE;;
2555     */*) ac_site_file1=$CONFIG_SITE;;
2556     *)   ac_site_file1=./$CONFIG_SITE;;
2557   esac
2558 elif test "x$prefix" != xNONE; then
2559   ac_site_file1=$prefix/share/config.site
2560   ac_site_file2=$prefix/etc/config.site
2561 else
2562   ac_site_file1=$ac_default_prefix/share/config.site
2563   ac_site_file2=$ac_default_prefix/etc/config.site
2564 fi
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566 do
2567   test "x$ac_site_file" = xNONE && continue
2568   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571     sed 's/^/| /' "$ac_site_file" >&5
2572     . "$ac_site_file" \
2573       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2577   fi
2578 done
2579
2580 if test -r "$cache_file"; then
2581   # Some versions of bash will fail to source /dev/null (special files
2582   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2583   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2586     case $cache_file in
2587       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588       *)                      . "./$cache_file";;
2589     esac
2590   fi
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594   >$cache_file
2595 fi
2596
2597 as_fn_append ac_header_list " stdlib.h"
2598 as_fn_append ac_header_list " unistd.h"
2599 as_fn_append ac_header_list " sys/param.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605   eval ac_new_set=\$ac_env_${ac_var}_set
2606   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607   eval ac_new_val=\$ac_env_${ac_var}_value
2608   case $ac_old_set,$ac_new_set in
2609     set,)
2610       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612       ac_cache_corrupted=: ;;
2613     ,set)
2614       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616       ac_cache_corrupted=: ;;
2617     ,);;
2618     *)
2619       if test "x$ac_old_val" != "x$ac_new_val"; then
2620         # differences in whitespace do not lead to failure.
2621         ac_old_val_w=`echo x $ac_old_val`
2622         ac_new_val_w=`echo x $ac_new_val`
2623         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626           ac_cache_corrupted=:
2627         else
2628           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630           eval $ac_var=\$ac_old_val
2631         fi
2632         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2633 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2634         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2636       fi;;
2637   esac
2638   # Pass precious variables to config.status.
2639   if test "$ac_new_set" = set; then
2640     case $ac_new_val in
2641     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642     *) ac_arg=$ac_var=$ac_new_val ;;
2643     esac
2644     case " $ac_configure_args " in
2645       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2646       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647     esac
2648   fi
2649 done
2650 if $ac_cache_corrupted; then
2651   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656 fi
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2660
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669 ac_aux_dir=
2670 for ac_dir in config "$srcdir"/config; do
2671   if test -f "$ac_dir/install-sh"; then
2672     ac_aux_dir=$ac_dir
2673     ac_install_sh="$ac_aux_dir/install-sh -c"
2674     break
2675   elif test -f "$ac_dir/install.sh"; then
2676     ac_aux_dir=$ac_dir
2677     ac_install_sh="$ac_aux_dir/install.sh -c"
2678     break
2679   elif test -f "$ac_dir/shtool"; then
2680     ac_aux_dir=$ac_dir
2681     ac_install_sh="$ac_aux_dir/shtool install -c"
2682     break
2683   fi
2684 done
2685 if test -z "$ac_aux_dir"; then
2686   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2687 fi
2688
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2696
2697
2698 ac_config_headers="$ac_config_headers lib/config.h"
2699
2700
2701 MCONFIG=./MCONFIG
2702
2703 BINARY_TYPE=bin
2704 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2705         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2706 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2707         | tr \" " "`
2708 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2709 MONTH=`echo $DATE | awk -F- '{print $2}'`
2710 YEAR=`echo $DATE | awk -F- '{print $3}'`
2711
2712 if expr $YEAR ">" 1900 > /dev/null ; then
2713         E2FSPROGS_YEAR=$YEAR
2714 elif expr $YEAR ">" 90 >/dev/null ; then
2715         E2FSPROGS_YEAR=19$YEAR
2716 else
2717         E2FSPROGS_YEAR=20$YEAR
2718 fi
2719
2720 case $MONTH in
2721 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2722 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2723 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2724 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2725 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2726 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2727 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2728 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2729 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2730 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2731 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2732 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2733 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2734 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2735 esac
2736
2737 base_ver=`echo $E2FSPROGS_VERSION | \
2738                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2739
2740 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2741
2742 case $E2FSPROGS_VERSION in
2743 *-WIP|pre-*)
2744         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2745         ;;
2746 *)
2747         E2FSPROGS_PKGVER="$base_ver"
2748         ;;
2749 esac
2750
2751 unset DATE MONTH YEAR base_ver pre_vers date_spec
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2753 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2755 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2756
2757
2758
2759
2760
2761 # Make sure we can run config.sub.
2762 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766 $as_echo_n "checking build system type... " >&6; }
2767 if ${ac_cv_build+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   ac_build_alias=$build_alias
2771 test "x$ac_build_alias" = x &&
2772   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773 test "x$ac_build_alias" = x &&
2774   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780 $as_echo "$ac_cv_build" >&6; }
2781 case $ac_cv_build in
2782 *-*-*) ;;
2783 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 esac
2785 build=$ac_cv_build
2786 ac_save_IFS=$IFS; IFS='-'
2787 set x $ac_cv_build
2788 shift
2789 build_cpu=$1
2790 build_vendor=$2
2791 shift; shift
2792 # Remember, the first character of IFS is used to create $*,
2793 # except with old shells:
2794 build_os=$*
2795 IFS=$ac_save_IFS
2796 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800 $as_echo_n "checking host system type... " >&6; }
2801 if ${ac_cv_host+:} false; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   if test "x$host_alias" = x; then
2805   ac_cv_host=$ac_cv_build
2806 else
2807   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809 fi
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813 $as_echo "$ac_cv_host" >&6; }
2814 case $ac_cv_host in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 esac
2818 host=$ac_cv_host
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_host
2821 shift
2822 host_cpu=$1
2823 host_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 host_os=$*
2828 IFS=$ac_save_IFS
2829 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 DLOPEN_LIB=''
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 fi
2877 if test -z "$ac_cv_prog_CC"; then
2878   ac_ct_CC=$CC
2879   # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   if test -n "$ac_ct_CC"; then
2887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_exec_ext in '' $ac_executable_extensions; do
2895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896     ac_cv_prog_ac_ct_CC="gcc"
2897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901   done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915   if test "x$ac_ct_CC" = x; then
2916     CC=""
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 else
2927   CC="$ac_cv_prog_CC"
2928 fi
2929
2930 if test -z "$CC"; then
2931           if test -n "$ac_tool_prefix"; then
2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969   fi
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999   done
3000 IFS=$as_save_IFS
3001
3002 if test $ac_prog_rejected = yes; then
3003   # We found a bogon in the path, so make sure we never use it.
3004   set dummy $ac_cv_prog_CC
3005   shift
3006   if test $# != 0; then
3007     # We chose a different compiler from the bogus one.
3008     # However, it has the same basename, so the bogon will be chosen
3009     # first if we set CC to just the basename; use the full file name.
3010     shift
3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012   fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028   if test -n "$ac_tool_prefix"; then
3029   for ac_prog in cl.exe
3030   do
3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068     test -n "$CC" && break
3069   done
3070 fi
3071 if test -z "$CC"; then
3072   ac_ct_CC=$CC
3073   for ac_prog in cl.exe
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$ac_ct_CC"; then
3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092     ac_cv_prog_ac_ct_CC="$ac_prog"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112   test -n "$ac_ct_CC" && break
3113 done
3114
3115   if test "x$ac_ct_CC" = x; then
3116     CC=""
3117   else
3118     case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124     CC=$ac_ct_CC
3125   fi
3126 fi
3127
3128 fi
3129
3130
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3135
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 set X $ac_compile
3139 ac_compiler=$2
3140 for ac_option in --version -v -V -qversion; do
3141   { { ac_try="$ac_compiler $ac_option >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149   ac_status=$?
3150   if test -s conftest.err; then
3151     sed '10a\
3152 ... rest of stderr output deleted ...
3153          10q' conftest.err >conftest.er1
3154     cat conftest.er1 >&5
3155   fi
3156   rm -f conftest.er1 conftest.err
3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158   test $ac_status = 0; }
3159 done
3160
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3176 # of exeext.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3186 do
3187   case $ac_file in
3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190   esac
3191 done
3192 rm -f $ac_rmfiles
3193
3194 if { { ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_link_default") 2>&5
3202   ac_status=$?
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }; then :
3205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3211 do
3212   test -f "$ac_file" || continue
3213   case $ac_file in
3214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215         ;;
3216     [ab].out )
3217         # We found the default executable, but exeext='' is most
3218         # certainly right.
3219         break;;
3220     *.* )
3221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222         then :; else
3223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224         fi
3225         # We set ac_cv_exeext here because the later test for it is not
3226         # safe: cross compilers may not add the suffix if given an `-o'
3227         # argument, so we may need to know it at that point already.
3228         # Even if this section looks crufty: it has the advantage of
3229         # actually working.
3230         break;;
3231     * )
3232         break;;
3233   esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237 else
3238   ac_file=''
3239 fi
3240 if test -z "$ac_file"; then :
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3259
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_link") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274   test $ac_status = 0; }; then :
3275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3278 # `rm'.
3279 for ac_file in conftest.exe conftest conftest.*; do
3280   test -f "$ac_file" || continue
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284           break;;
3285     * ) break;;
3286   esac
3287 done
3288 else
3289   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 fi
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3297
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3300 ac_exeext=$EXEEXT
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h.  */
3303 #include <stdio.h>
3304 int
3305 main ()
3306 {
3307 FILE *f = fopen ("conftest.out", "w");
3308  return ferror (f) || fclose (f) != 0;
3309
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run.  If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320   { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327   (eval "$ac_link") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330   test $ac_status = 0; }
3331   if { ac_try='./conftest$ac_cv_exeext'
3332   { { case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338   (eval "$ac_try") 2>&5
3339   ac_status=$?
3340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }; }; then
3342     cross_compiling=no
3343   else
3344     if test "$cross_compiling" = maybe; then
3345         cross_compiling=yes
3346     else
3347         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3352     fi
3353   fi
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_compile") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387   test $ac_status = 0; }; then :
3388   for ac_file in conftest.o conftest.obj conftest.*; do
3389   test -f "$ac_file" || continue;
3390   case $ac_file in
3391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393        break;;
3394   esac
3395 done
3396 else
3397   $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423        choke me
3424 #endif
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431   ac_compiler_gnu=yes
3432 else
3433   ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442   GCC=yes
3443 else
3444   GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   ac_save_c_werror_flag=$ac_c_werror_flag
3454    ac_c_werror_flag=yes
3455    ac_cv_prog_cc_g=no
3456    CFLAGS="-g"
3457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469   ac_cv_prog_cc_g=yes
3470 else
3471   CFLAGS=""
3472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486   ac_c_werror_flag=$ac_save_c_werror_flag
3487          CFLAGS="-g"
3488          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500   ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507    ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512   CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514   if test "$GCC" = yes; then
3515     CFLAGS="-g -O2"
3516   else
3517     CFLAGS="-g"
3518   fi
3519 else
3520   if test "$GCC" = yes; then
3521     CFLAGS="-O2"
3522   else
3523     CFLAGS=
3524   fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 struct stat;
3538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3539 struct buf { int x; };
3540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541 static char *e (p, i)
3542      char **p;
3543      int i;
3544 {
3545   return p[i];
3546 }
3547 static char *f (char * (*g) (char **, int), char **p, ...)
3548 {
3549   char *s;
3550   va_list v;
3551   va_start (v,p);
3552   s = g (p, va_arg (v,int));
3553   va_end (v);
3554   return s;
3555 }
3556
3557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3558    function prototypes and stuff, but not '\xHH' hex character constants.
3559    These don't provoke an error unfortunately, instead are silently treated
3560    as 'x'.  The following induces an error, until -std is added to get
3561    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3562    array size at least.  It's necessary to write '\x00'==0 to get something
3563    that's true only with -std.  */
3564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565
3566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567    inside strings and character constants.  */
3568 #define FOO(x) 'x'
3569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570
3571 int test (int i, double x);
3572 struct s1 {int (*f) (int a);};
3573 struct s2 {int (*f) (double a);};
3574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575 int argc;
3576 char **argv;
3577 int
3578 main ()
3579 {
3580 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587 do
3588   CC="$ac_save_CC $ac_arg"
3589   if ac_fn_c_try_compile "$LINENO"; then :
3590   ac_cv_prog_cc_c89=$ac_arg
3591 fi
3592 rm -f core conftest.err conftest.$ac_objext
3593   test "x$ac_cv_prog_cc_c89" != "xno" && break
3594 done
3595 rm -f conftest.$ac_ext
3596 CC=$ac_save_CC
3597
3598 fi
3599 # AC_CACHE_VAL
3600 case "x$ac_cv_prog_cc_c89" in
3601   x)
3602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3603 $as_echo "none needed" >&6; } ;;
3604   xno)
3605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3606 $as_echo "unsupported" >&6; } ;;
3607   *)
3608     CC="$CC $ac_cv_prog_cc_c89"
3609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3610 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3611 esac
3612 if test "x$ac_cv_prog_cc_c89" != xno; then :
3613
3614 fi
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3624 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3625 if ${ac_cv_lib_dl_dlopen+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   ac_check_lib_save_LIBS=$LIBS
3629 LIBS="-ldl  $LIBS"
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h.  */
3632
3633 /* Override any GCC internal prototype to avoid an error.
3634    Use char because int might match the return type of a GCC
3635    builtin and then its argument prototype would still apply.  */
3636 #ifdef __cplusplus
3637 extern "C"
3638 #endif
3639 char dlopen ();
3640 int
3641 main ()
3642 {
3643 return dlopen ();
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_link "$LINENO"; then :
3649   ac_cv_lib_dl_dlopen=yes
3650 else
3651   ac_cv_lib_dl_dlopen=no
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext \
3654     conftest$ac_exeext conftest.$ac_ext
3655 LIBS=$ac_check_lib_save_LIBS
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3660   DLOPEN_LIB=-ldl
3661
3662 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3663
3664 fi
3665
3666
3667 WITH_DIET_LIBC=
3668
3669 # Check whether --with-diet-libc was given.
3670 if test "${with_diet_libc+set}" = set; then :
3671   withval=$with_diet_libc; CC="diet cc -nostdinc"
3672 WITH_DIET_LIBC=yes
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3674 $as_echo "CC=$CC" >&6; }
3675 fi
3676
3677 # Check whether --with-cc was given.
3678 if test "${with_cc+set}" = set; then :
3679   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3680 fi
3681
3682
3683 # Check whether --with-ccopts was given.
3684 if test "${with_ccopts+set}" = set; then :
3685   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3686 fi
3687
3688
3689 # Check whether --with-ldopts was given.
3690 if test "${with_ldopts+set}" = set; then :
3691   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 if test -n "$ac_tool_prefix"; then
3700   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CC"; then
3708   ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737 fi
3738 if test -z "$ac_cv_prog_CC"; then
3739   ac_ct_CC=$CC
3740   # Extract the first word of "gcc", so it can be a program name with args.
3741 set dummy gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -n "$ac_ct_CC"; then
3748   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_prog_ac_ct_CC="gcc"
3758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762   done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3771 else
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776   if test "x$ac_ct_CC" = x; then
3777     CC=""
3778   else
3779     case $cross_compiling:$ac_tool_warned in
3780 yes:)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785     CC=$ac_ct_CC
3786   fi
3787 else
3788   CC="$ac_cv_prog_CC"
3789 fi
3790
3791 if test -z "$CC"; then
3792           if test -n "$ac_tool_prefix"; then
3793     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}cc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test -n "$CC"; then
3801   ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810     ac_cv_prog_CC="${ac_tool_prefix}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 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830   fi
3831 fi
3832 if test -z "$CC"; then
3833   # Extract the first word of "cc", so it can be a program name with args.
3834 set dummy cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   if test -n "$CC"; then
3841   ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843   ac_prog_rejected=no
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3851     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852        ac_prog_rejected=yes
3853        continue
3854      fi
3855     ac_cv_prog_CC="cc"
3856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 if test $ac_prog_rejected = yes; then
3864   # We found a bogon in the path, so make sure we never use it.
3865   set dummy $ac_cv_prog_CC
3866   shift
3867   if test $# != 0; then
3868     # We chose a different compiler from the bogus one.
3869     # However, it has the same basename, so the bogon will be chosen
3870     # first if we set CC to just the basename; use the full file name.
3871     shift
3872     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3873   fi
3874 fi
3875 fi
3876 fi
3877 CC=$ac_cv_prog_CC
3878 if test -n "$CC"; then
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3881 else
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 fi
3885
3886
3887 fi
3888 if test -z "$CC"; then
3889   if test -n "$ac_tool_prefix"; then
3890   for ac_prog in cl.exe
3891   do
3892     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$CC"; then
3900   ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929     test -n "$CC" && break
3930   done
3931 fi
3932 if test -z "$CC"; then
3933   ac_ct_CC=$CC
3934   for ac_prog in cl.exe
3935 do
3936   # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   if test -n "$ac_ct_CC"; then
3944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951     for ac_exec_ext in '' $ac_executable_extensions; do
3952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_ac_ct_CC="$ac_prog"
3954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958   done
3959 IFS=$as_save_IFS
3960
3961 fi
3962 fi
3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3967 else
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973   test -n "$ac_ct_CC" && break
3974 done
3975
3976   if test "x$ac_ct_CC" = x; then
3977     CC=""
3978   else
3979     case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985     CC=$ac_ct_CC
3986   fi
3987 fi
3988
3989 fi
3990
3991
3992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "no acceptable C compiler found in \$PATH
3995 See \`config.log' for more details" "$LINENO" 5; }
3996
3997 # Provide some information about the compiler.
3998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3999 set X $ac_compile
4000 ac_compiler=$2
4001 for ac_option in --version -v -V -qversion; do
4002   { { ac_try="$ac_compiler $ac_option >&5"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4010   ac_status=$?
4011   if test -s conftest.err; then
4012     sed '10a\
4013 ... rest of stderr output deleted ...
4014          10q' conftest.err >conftest.er1
4015     cat conftest.er1 >&5
4016   fi
4017   rm -f conftest.er1 conftest.err
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; }
4020 done
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4023 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4024 if ${ac_cv_c_compiler_gnu+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033 #ifndef __GNUC__
4034        choke me
4035 #endif
4036
4037   ;
4038   return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042   ac_compiler_gnu=yes
4043 else
4044   ac_compiler_gnu=no
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4052 if test $ac_compiler_gnu = yes; then
4053   GCC=yes
4054 else
4055   GCC=
4056 fi
4057 ac_test_CFLAGS=${CFLAGS+set}
4058 ac_save_CFLAGS=$CFLAGS
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4061 if ${ac_cv_prog_cc_g+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   ac_save_c_werror_flag=$ac_c_werror_flag
4065    ac_c_werror_flag=yes
4066    ac_cv_prog_cc_g=no
4067    CFLAGS="-g"
4068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h.  */
4070
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4080   ac_cv_prog_cc_g=yes
4081 else
4082   CFLAGS=""
4083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095
4096 else
4097   ac_c_werror_flag=$ac_save_c_werror_flag
4098          CFLAGS="-g"
4099          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101
4102 int
4103 main ()
4104 {
4105
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111   ac_cv_prog_cc_g=yes
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118    ac_c_werror_flag=$ac_save_c_werror_flag
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4121 $as_echo "$ac_cv_prog_cc_g" >&6; }
4122 if test "$ac_test_CFLAGS" = set; then
4123   CFLAGS=$ac_save_CFLAGS
4124 elif test $ac_cv_prog_cc_g = yes; then
4125   if test "$GCC" = yes; then
4126     CFLAGS="-g -O2"
4127   else
4128     CFLAGS="-g"
4129   fi
4130 else
4131   if test "$GCC" = yes; then
4132     CFLAGS="-O2"
4133   else
4134     CFLAGS=
4135   fi
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4138 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4139 if ${ac_cv_prog_cc_c89+:} false; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142   ac_cv_prog_cc_c89=no
4143 ac_save_CC=$CC
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h.  */
4146 #include <stdarg.h>
4147 #include <stdio.h>
4148 struct stat;
4149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4150 struct buf { int x; };
4151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4152 static char *e (p, i)
4153      char **p;
4154      int i;
4155 {
4156   return p[i];
4157 }
4158 static char *f (char * (*g) (char **, int), char **p, ...)
4159 {
4160   char *s;
4161   va_list v;
4162   va_start (v,p);
4163   s = g (p, va_arg (v,int));
4164   va_end (v);
4165   return s;
4166 }
4167
4168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4169    function prototypes and stuff, but not '\xHH' hex character constants.
4170    These don't provoke an error unfortunately, instead are silently treated
4171    as 'x'.  The following induces an error, until -std is added to get
4172    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4173    array size at least.  It's necessary to write '\x00'==0 to get something
4174    that's true only with -std.  */
4175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4176
4177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4178    inside strings and character constants.  */
4179 #define FOO(x) 'x'
4180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4181
4182 int test (int i, double x);
4183 struct s1 {int (*f) (int a);};
4184 struct s2 {int (*f) (double a);};
4185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4186 int argc;
4187 char **argv;
4188 int
4189 main ()
4190 {
4191 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4197         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4198 do
4199   CC="$ac_save_CC $ac_arg"
4200   if ac_fn_c_try_compile "$LINENO"; then :
4201   ac_cv_prog_cc_c89=$ac_arg
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext
4204   test "x$ac_cv_prog_cc_c89" != "xno" && break
4205 done
4206 rm -f conftest.$ac_ext
4207 CC=$ac_save_CC
4208
4209 fi
4210 # AC_CACHE_VAL
4211 case "x$ac_cv_prog_cc_c89" in
4212   x)
4213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4214 $as_echo "none needed" >&6; } ;;
4215   xno)
4216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 $as_echo "unsupported" >&6; } ;;
4218   *)
4219     CC="$CC $ac_cv_prog_cc_c89"
4220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4222 esac
4223 if test "x$ac_cv_prog_cc_c89" != xno; then :
4224
4225 fi
4226
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233 if test "$GCC" = yes; then
4234    RDYNAMIC="-rdynamic"
4235
4236 fi
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246   CPP=
4247 fi
4248 if test -z "$CPP"; then
4249   if ${ac_cv_prog_CPP+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252       # Double quotes because CPP needs to be expanded
4253     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254     do
4255       ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4257 do
4258   # Use a header file that comes with gcc, so configuring glibc
4259   # with a fresh cross-compiler works.
4260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261   # <limits.h> exists even on freestanding compilers.
4262   # On the NeXT, cc -E runs the code through the compiler's parser,
4263   # not just through cpp. "Syntax error" is here to catch this case.
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271                      Syntax error
4272 _ACEOF
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275 else
4276   # Broken: fails on valid input.
4277 continue
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281   # OK, works on sane cases.  Now check whether nonexistent headers
4282   # can be detected and how.
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285 #include <ac_nonexistent.h>
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288   # Broken: success on invalid input.
4289 continue
4290 else
4291   # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4301   break
4302 fi
4303
4304     done
4305     ac_cv_prog_CPP=$CPP
4306
4307 fi
4308   CPP=$ac_cv_prog_CPP
4309 else
4310   ac_cv_prog_CPP=$CPP
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330                      Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4333
4334 else
4335   # Broken: fails on valid input.
4336 continue
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340   # OK, works on sane cases.  Now check whether nonexistent headers
4341   # can be detected and how.
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4360
4361 else
4362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4375 $as_echo_n "checking for additional special compiler flags... " >&6; }
4376 if test "$GCC" = yes
4377 then
4378     case "$host_cpu" in
4379         alpha)          addcflags="-mieee" ;;
4380     esac
4381 fi
4382 if test "x$addcflags" != x
4383 then
4384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4385 $as_echo "$addcflags" >&6; }
4386     CFLAGS="$addcflags $CFLAGS"
4387 else
4388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4389 $as_echo "(none)" >&6; }
4390 fi
4391 LIB_EXT=.a
4392 STATIC_LIB_EXT=.a
4393 PROFILED_LIB_EXT=.a
4394
4395 # Check whether --with-root-prefix was given.
4396 if test "${with_root_prefix+set}" = set; then :
4397   withval=$with_root_prefix; root_prefix=$withval
4398 else
4399   root_prefix=NONE
4400 fi
4401 # Check whether --enable-maintainer-mode was given.
4402 if test "${enable_maintainer_mode+set}" = set; then :
4403   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4404 then
4405         MAINTAINER_CMT=#
4406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4407 $as_echo "Disabling maintainer mode" >&6; }
4408 else
4409         MAINTAINER_CMT=
4410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4411 $as_echo "Enabling maintainer mode" >&6; }
4412 fi
4413
4414 else
4415   MAINTAINER_CMT=#
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4417 $as_echo "Disabling maintainer mode by default" >&6; }
4418
4419 fi
4420
4421
4422 # Check whether --enable-symlink-install was given.
4423 if test "${enable_symlink_install+set}" = set; then :
4424   enableval=$enable_symlink_install; if test "$enableval" = "no"
4425 then
4426         LINK_INSTALL_FLAGS=-f
4427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4428 $as_echo "Disabling symlinks for install" >&6; }
4429 else
4430         LINK_INSTALL_FLAGS=-sf
4431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4432 $as_echo "Enabling symlinks for install" >&6; }
4433 fi
4434
4435 else
4436   LINK_INSTALL_FLAGS=-f
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4438 $as_echo "Disabling symlinks for install by default" >&6; }
4439
4440 fi
4441
4442
4443 relative_symlink_defined=
4444 # Check whether --enable-relative-symlinks was given.
4445 if test "${enable_relative_symlinks+set}" = set; then :
4446   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4447 then
4448         SYMLINK_RELATIVE=
4449         relative_symlink_defined=yes
4450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4451 $as_echo "Disabling relative symlinks for install" >&6; }
4452 else
4453         SYMLINK_RELATIVE=--relative
4454         relative_symlink_defined=yes
4455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4456 $as_echo "Enabling relative symlinks for install" >&6; }
4457 fi
4458 fi
4459
4460 # Check whether --enable-symlink-relative-symlinks was given.
4461 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4462   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4463 then
4464         SYMLINK_RELATIVE=yes
4465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4466 $as_echo "Disabling relative symlinks for install" >&6; }
4467 else
4468         SYMLINK_RELATIVE=--relative
4469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4470 $as_echo "Enabling relative symlinks for install" >&6; }
4471 fi
4472
4473 else
4474   if test -z "$relative_symlink_defined"
4475 then
4476         SYMLINK_RELATIVE=
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4478 $as_echo "Disabling relative symlinks for install by default" >&6; }
4479 fi
4480
4481 fi
4482
4483
4484 # Check whether --enable-symlink-build was given.
4485 if test "${enable_symlink_build+set}" = set; then :
4486   enableval=$enable_symlink_build; if test "$enableval" = "no"
4487 then
4488         LINK_BUILD_FLAGS=
4489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4490 $as_echo "Disabling symlinks for build" >&6; }
4491 else
4492         LINK_BUILD_FLAGS=-s
4493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4494 $as_echo "Enabling symlinks for build" >&6; }
4495 fi
4496
4497 else
4498   LINK_BUILD_FLAGS=
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4500 $as_echo "Disabling symlinks for build by default" >&6; }
4501
4502 fi
4503
4504
4505 # Check whether --enable-verbose-makecmds was given.
4506 if test "${enable_verbose_makecmds+set}" = set; then :
4507   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4508 then
4509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4510 $as_echo "Disabling verbose make commands" >&6; }
4511         E=@echo
4512         ES=echo
4513         Q=@
4514 else
4515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4516 $as_echo "Enabling verbose make commands" >&6; }
4517         E=@\\#
4518         ES=\\#
4519         Q=
4520 fi
4521
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4524 $as_echo "Disabling verbose make commands" >&6; }
4525 E=@echo
4526 ES=echo
4527 Q=@
4528
4529 fi
4530
4531
4532
4533
4534 # Check whether --enable-compression was given.
4535 if test "${enable_compression+set}" = set; then :
4536   enableval=$enable_compression; if test "$enableval" = "no"
4537 then
4538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4539 $as_echo "Disabling compression support" >&6; }
4540 else
4541
4542 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4543
4544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4545 $as_echo "Enabling compression support" >&6; }
4546         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4547 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4548 fi
4549
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4552 $as_echo "Disabling compression support by default" >&6; }
4553
4554 fi
4555
4556
4557 # Check whether --enable-htree was given.
4558 if test "${enable_htree+set}" = set; then :
4559   enableval=$enable_htree; if test "$enableval" = "no"
4560 then
4561         HTREE_CMT=#
4562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4563 $as_echo "Disabling htree directory support" >&6; }
4564 else
4565         HTREE_CMT=
4566         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4567
4568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4569 $as_echo "Enabling htree directory support" >&6; }
4570 fi
4571
4572 else
4573   HTREE_CMT=
4574 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4577 $as_echo "Enabling htree directory support by default" >&6; }
4578
4579 fi
4580
4581
4582 E2_PKG_CONFIG_STATIC=--static
4583 LDFLAG_DYNAMIC=
4584 PRIVATE_LIBS_CMT=
4585 # Check whether --enable-elf-shlibs was given.
4586 if test "${enable_elf_shlibs+set}" = set; then :
4587   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4588 then
4589         ELF_CMT=#
4590         MAKEFILE_ELF=/dev/null
4591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4592 $as_echo "Disabling ELF shared libraries" >&6; }
4593 else
4594         E2_PKG_CONFIG_STATIC=
4595         ELF_CMT=
4596         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4597         case "$host_os" in
4598         solaris2.*)
4599                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4600         ;;
4601         esac
4602         BINARY_TYPE=elfbin
4603         LIB_EXT=.so
4604         PRIVATE_LIBS_CMT=#
4605         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4607 $as_echo "Enabling ELF shared libraries" >&6; }
4608 fi
4609
4610 else
4611   MAKEFILE_ELF=/dev/null
4612 ELF_CMT=#
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4614 $as_echo "Disabling ELF shared libraries by default" >&6; }
4615
4616 fi
4617
4618
4619
4620 # Check whether --enable-bsd-shlibs was given.
4621 if test "${enable_bsd_shlibs+set}" = set; then :
4622   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4623 then
4624         BSDLIB_CMT=#
4625         MAKEFILE_BSDLIB=/dev/null
4626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4627 $as_echo "Disabling BSD shared libraries" >&6; }
4628 else
4629         E2_PKG_CONFIG_STATIC=
4630         BSDLIB_CMT=
4631         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4632         LIB_EXT=.so
4633         case "$host_os" in
4634         darwin*)
4635                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4636                 LIB_EXT=.dylib
4637         ;;
4638         esac
4639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4640 $as_echo "Enabling BSD shared libraries" >&6; }
4641 fi
4642
4643 else
4644   MAKEFILE_BSDLIB=/dev/null
4645 BSDLIB_CMT=#
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4647 $as_echo "Disabling BSD shared libraries by default" >&6; }
4648
4649 fi
4650
4651
4652
4653 # Check whether --enable-profile was given.
4654 if test "${enable_profile+set}" = set; then :
4655   enableval=$enable_profile; if test "$enableval" = "no"
4656 then
4657         PROFILE_CMT=#
4658         MAKEFILE_PROFILE=/dev/null
4659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4660 $as_echo "Disabling profiling libraries" >&6; }
4661 else
4662         PROFILE_CMT=
4663         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4664         PROFILED_LIB_EXT=_p.a
4665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4666 $as_echo "Building profiling libraries" >&6; }
4667 fi
4668
4669 else
4670   PROFILE_CMT=#
4671 MAKEFILE_PROFILE=/dev/null
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4673 $as_echo "Disabling profiling libraries by default" >&6; }
4674
4675 fi
4676
4677
4678
4679 # Check whether --enable-checker was given.
4680 if test "${enable_checker+set}" = set; then :
4681   enableval=$enable_checker; if test "$enableval" = "no"
4682 then
4683         CHECKER_CMT=#
4684         MAKEFILE_CHECKER=/dev/null
4685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4686 $as_echo "Disabling checker libraries" >&6; }
4687 else
4688         CHECKER_CMT=
4689         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4691 $as_echo "Building checker libraries" >&6; }
4692 fi
4693
4694 else
4695   CHECKER_CMT=#
4696 MAKEFILE_CHECKER=/dev/null
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4698 $as_echo "Disabling checker libraries by default" >&6; }
4699
4700 fi
4701
4702
4703
4704
4705
4706
4707
4708
4709 # Check whether --enable-jbd-debug was given.
4710 if test "${enable_jbd_debug+set}" = set; then :
4711   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4712 then
4713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4714 $as_echo "Disabling journal debugging" >&6; }
4715 else
4716
4717 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4718
4719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4720 $as_echo "Enabling journal debugging" >&6; }
4721 fi
4722
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4725 $as_echo "Disabling journal debugging by default" >&6; }
4726
4727 fi
4728
4729 # Check whether --enable-blkid-debug was given.
4730 if test "${enable_blkid_debug+set}" = set; then :
4731   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4732 then
4733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4734 $as_echo "Disabling blkid debugging" >&6; }
4735 else
4736
4737 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4738
4739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4740 $as_echo "Enabling blkid debugging" >&6; }
4741 fi
4742
4743 else
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4745 $as_echo "Disabling blkid debugging by default" >&6; }
4746
4747 fi
4748
4749 # Check whether --enable-testio-debug was given.
4750 if test "${enable_testio_debug+set}" = set; then :
4751   enableval=$enable_testio_debug;
4752 if test "$enableval" = "no"
4753 then
4754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4755 $as_echo "Disabling testio debugging" >&6; }
4756         TEST_IO_CMT="#"
4757 else
4758         TEST_IO_CMT=
4759         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4760
4761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4762 $as_echo "Enabling testio debugging" >&6; }
4763 fi
4764
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4767 $as_echo "Enabling testio debugging by default" >&6; }
4768 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4769
4770 TEST_IO_CMT=
4771
4772 fi
4773
4774
4775
4776
4777 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4778         if test -n "$ac_tool_prefix"; then
4779   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4780 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   case $PKG_CONFIG in
4787   [\\/]* | ?:[\\/]*)
4788   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4789   ;;
4790   *)
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803   done
4804 IFS=$as_save_IFS
4805
4806   ;;
4807 esac
4808 fi
4809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4810 if test -n "$PKG_CONFIG"; then
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4812 $as_echo "$PKG_CONFIG" >&6; }
4813 else
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$ac_cv_path_PKG_CONFIG"; then
4821   ac_pt_PKG_CONFIG=$PKG_CONFIG
4822   # Extract the first word of "pkg-config", so it can be a program name with args.
4823 set dummy pkg-config; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   case $ac_pt_PKG_CONFIG in
4830   [\\/]* | ?:[\\/]*)
4831   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4832   ;;
4833   *)
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done
4847 IFS=$as_save_IFS
4848
4849   ;;
4850 esac
4851 fi
4852 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4853 if test -n "$ac_pt_PKG_CONFIG"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4855 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860
4861   if test "x$ac_pt_PKG_CONFIG" = x; then
4862     PKG_CONFIG=""
4863   else
4864     case $cross_compiling:$ac_tool_warned in
4865 yes:)
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4868 ac_tool_warned=yes ;;
4869 esac
4870     PKG_CONFIG=$ac_pt_PKG_CONFIG
4871   fi
4872 else
4873   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4874 fi
4875
4876 fi
4877 if test -n "$PKG_CONFIG"; then
4878         _pkg_min_version=0.9.0
4879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4880 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4881         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4882                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4883 $as_echo "yes" >&6; }
4884         else
4885                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887                 PKG_CONFIG=""
4888         fi
4889
4890 fi
4891 LIBUUID=
4892 DEPLIBUUID=
4893 STATIC_LIBUUID=
4894 DEPSTATIC_LIBUUID=
4895 PROFILED_LIBUUID=
4896 DEPPROFILED_LIBUUID=
4897 UUID_CMT=
4898 # Check whether --enable-libuuid was given.
4899 if test "${enable_libuuid+set}" = set; then :
4900   enableval=$enable_libuuid; if test "$enableval" = "no"
4901 then
4902         if test -z "$PKG_CONFIG"; then
4903                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4904         fi
4905
4906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4907 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4908 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   ac_check_lib_save_LIBS=$LIBS
4912 LIBS="-luuid $LIBUUID $LIBS"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915
4916 /* Override any GCC internal prototype to avoid an error.
4917    Use char because int might match the return type of a GCC
4918    builtin and then its argument prototype would still apply.  */
4919 #ifdef __cplusplus
4920 extern "C"
4921 #endif
4922 char uuid_generate ();
4923 int
4924 main ()
4925 {
4926 return uuid_generate ();
4927   ;
4928   return 0;
4929 }
4930 _ACEOF
4931 if ac_fn_c_try_link "$LINENO"; then :
4932   ac_cv_lib_uuid_uuid_generate=yes
4933 else
4934   ac_cv_lib_uuid_uuid_generate=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext \
4937     conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4941 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4942 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4943   LIBUUID=`$PKG_CONFIG --libs uuid`;
4944                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4945 else
4946   as_fn_error $? "external uuid library not found" "$LINENO" 5
4947 fi
4948
4949         UUID_CMT=#
4950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4951 $as_echo "Disabling private uuid library" >&6; }
4952 else
4953         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4954         DEPLIBUUID=$LIBUUID
4955         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4956         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4957         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4958         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4960 $as_echo "Enabling private uuid library" >&6; }
4961 fi
4962
4963 else
4964   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4965 DEPLIBUUID=$LIBUUID
4966 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4967 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4968 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4969 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4971 $as_echo "Enabling private uuid library by default" >&6; }
4972
4973 fi
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4985         if test -n "$ac_tool_prefix"; then
4986   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   case $PKG_CONFIG in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_exec_ext in '' $ac_executable_extensions; do
5004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010   done
5011 IFS=$as_save_IFS
5012
5013   ;;
5014 esac
5015 fi
5016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5017 if test -n "$PKG_CONFIG"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5019 $as_echo "$PKG_CONFIG" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 fi
5027 if test -z "$ac_cv_path_PKG_CONFIG"; then
5028   ac_pt_PKG_CONFIG=$PKG_CONFIG
5029   # Extract the first word of "pkg-config", so it can be a program name with args.
5030 set dummy pkg-config; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $ac_pt_PKG_CONFIG in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056   ;;
5057 esac
5058 fi
5059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5060 if test -n "$ac_pt_PKG_CONFIG"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5062 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068   if test "x$ac_pt_PKG_CONFIG" = x; then
5069     PKG_CONFIG=""
5070   else
5071     case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned=yes ;;
5076 esac
5077     PKG_CONFIG=$ac_pt_PKG_CONFIG
5078   fi
5079 else
5080   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5081 fi
5082
5083 fi
5084 if test -n "$PKG_CONFIG"; then
5085         _pkg_min_version=0.9.0
5086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5087 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5088         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5089                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5090 $as_echo "yes" >&6; }
5091         else
5092                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094                 PKG_CONFIG=""
5095         fi
5096
5097 fi
5098 LIBBLKID=
5099 DEPLIBBLKID=
5100 STATIC_LIBBLKID=
5101 DEPSTATIC_LIBBLKID=
5102 PROFILED_LIBBLKID=
5103 DEPPROFILED_LIBBLKID=
5104 BLKID_CMT=
5105
5106 # Check whether --enable-libblkid was given.
5107 if test "${enable_libblkid+set}" = set; then :
5108   enableval=$enable_libblkid; if test "$enableval" = "no"
5109 then
5110         if test -z "$PKG_CONFIG"; then
5111                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5112         fi
5113
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5115 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5116 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   ac_check_lib_save_LIBS=$LIBS
5120 LIBS="-lblkid $LIBBLKID $LIBS"
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h.  */
5123
5124 /* Override any GCC internal prototype to avoid an error.
5125    Use char because int might match the return type of a GCC
5126    builtin and then its argument prototype would still apply.  */
5127 #ifdef __cplusplus
5128 extern "C"
5129 #endif
5130 char blkid_get_cache ();
5131 int
5132 main ()
5133 {
5134 return blkid_get_cache ();
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 if ac_fn_c_try_link "$LINENO"; then :
5140   ac_cv_lib_blkid_blkid_get_cache=yes
5141 else
5142   ac_cv_lib_blkid_blkid_get_cache=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext \
5145     conftest$ac_exeext conftest.$ac_ext
5146 LIBS=$ac_check_lib_save_LIBS
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5149 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5150 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5151   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5152                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5153 else
5154   as_fn_error $? "external blkid library not found" "$LINENO" 5
5155 fi
5156
5157         BLKID_CMT=#
5158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5159 $as_echo "Disabling private blkid library" >&6; }
5160 else
5161         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5162         DEPLIBBLKID=$LIBBLKID
5163         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5164         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5165         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5166         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5167         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5168
5169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5170 $as_echo "Enabling private blkid library" >&6; }
5171 fi
5172
5173 else
5174   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5175 DEPLIBBLKID=$LIBBLKID
5176 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5177 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5178 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5179 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5180 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5183 $as_echo "Enabling private blkid library by default" >&6; }
5184
5185 fi
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5197         if test -n "$ac_tool_prefix"; then
5198   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   case $PKG_CONFIG in
5206   [\\/]* | ?:[\\/]*)
5207   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5208   ;;
5209   *)
5210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224
5225   ;;
5226 esac
5227 fi
5228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5229 if test -n "$PKG_CONFIG"; then
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5231 $as_echo "$PKG_CONFIG" >&6; }
5232 else
5233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5235 fi
5236
5237
5238 fi
5239 if test -z "$ac_cv_path_PKG_CONFIG"; then
5240   ac_pt_PKG_CONFIG=$PKG_CONFIG
5241   # Extract the first word of "pkg-config", so it can be a program name with args.
5242 set dummy pkg-config; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   case $ac_pt_PKG_CONFIG in
5249   [\\/]* | ?:[\\/]*)
5250   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5251   ;;
5252   *)
5253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267
5268   ;;
5269 esac
5270 fi
5271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5272 if test -n "$ac_pt_PKG_CONFIG"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5274 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280   if test "x$ac_pt_PKG_CONFIG" = x; then
5281     PKG_CONFIG=""
5282   else
5283     case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289     PKG_CONFIG=$ac_pt_PKG_CONFIG
5290   fi
5291 else
5292   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5293 fi
5294
5295 fi
5296 if test -n "$PKG_CONFIG"; then
5297         _pkg_min_version=0.9.0
5298         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5299 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5300         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5302 $as_echo "yes" >&6; }
5303         else
5304                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306                 PKG_CONFIG=""
5307         fi
5308
5309 fi
5310
5311 # Check whether --enable-quota was given.
5312 if test "${enable_quota+set}" = set; then :
5313   enableval=$enable_quota; if test "$enableval" = "no"
5314 then
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5316 $as_echo "Disabling quota support" >&6; }
5317 else
5318         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5319
5320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5321 $as_echo "Enabling quota support" >&6; }
5322 fi
5323
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5326 $as_echo "Disabling quota support by default" >&6; }
5327
5328 fi
5329
5330 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5331 DEPLIBQUOTA=$LIBQUOTA
5332 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5333 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5334 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5335 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5336
5337
5338
5339
5340
5341
5342
5343
5344 # Check whether --enable-backtrace was given.
5345 if test "${enable_backtrace+set}" = set; then :
5346   enableval=$enable_backtrace; if test "$enableval" = "no"
5347 then
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5349 $as_echo "Disabling use of backtrace" >&6; }
5350         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5351
5352 else
5353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5354 $as_echo "Enabling use of backtrace" >&6; }
5355 fi
5356
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5359 $as_echo "Enabling use of backtrace by default" >&6; }
5360
5361 fi
5362
5363 # Check whether --enable-debugfs was given.
5364 if test "${enable_debugfs+set}" = set; then :
5365   enableval=$enable_debugfs; if test "$enableval" = "no"
5366 then
5367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5368 $as_echo "Disabling debugfs support" >&6; }
5369         DEBUGFS_CMT="#"
5370 else
5371         DEBUGFS_CMT=
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5373 $as_echo "Enabling debugfs support" >&6; }
5374 fi
5375
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5378 $as_echo "Enabling debugfs support by default" >&6; }
5379 DEBUGFS_CMT=
5380
5381 fi
5382
5383
5384 # Check whether --enable-imager was given.
5385 if test "${enable_imager+set}" = set; then :
5386   enableval=$enable_imager; if test "$enableval" = "no"
5387 then
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5389 $as_echo "Disabling e2image support" >&6; }
5390         IMAGER_CMT="#"
5391 else
5392         IMAGER_CMT=
5393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5394 $as_echo "Enabling e2image support" >&6; }
5395 fi
5396
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5399 $as_echo "Enabling e2image support by default" >&6; }
5400 IMAGER_CMT=
5401
5402 fi
5403
5404
5405 # Check whether --enable-resizer was given.
5406 if test "${enable_resizer+set}" = set; then :
5407   enableval=$enable_resizer; if test "$enableval" = "no"
5408 then
5409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5410 $as_echo "Disabling e2resize support" >&6; }
5411         RESIZER_CMT="#"
5412 else
5413         RESIZER_CMT=
5414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5415 $as_echo "Enabling e2resize support" >&6; }
5416 fi
5417
5418 else
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5420 $as_echo "Enabling e2resize support by default" >&6; }
5421 RESIZER_CMT=
5422
5423 fi
5424
5425
5426 # Check whether --enable-defrag was given.
5427 if test "${enable_defrag+set}" = set; then :
5428   enableval=$enable_defrag; if test "$enableval" = "no"
5429 then
5430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5431 $as_echo "Disabling e4defrag support" >&6; }
5432         DEFRAG_CMT="#"
5433 else
5434         DEFRAG_CMT=
5435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5436 $as_echo "Enabling e4defrag support" >&6; }
5437 fi
5438
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5441 $as_echo "Enabling e4defrag support by default" >&6; }
5442 DEFRAG_CMT=
5443
5444 fi
5445
5446
5447 # Check whether --enable-fsck was given.
5448 if test "${enable_fsck+set}" = set; then :
5449   enableval=$enable_fsck; if test "$enableval" = "no"
5450 then
5451         FSCK_PROG='' FSCK_MAN=''
5452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5453 $as_echo "Not building fsck wrapper" >&6; }
5454 else
5455         FSCK_PROG=fsck FSCK_MAN=fsck.8
5456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5457 $as_echo "Building fsck wrapper" >&6; }
5458 fi
5459
5460 else
5461   case "$host_os" in
5462   gnu*)
5463     FSCK_PROG='' FSCK_MAN=''
5464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5465 $as_echo "Not building fsck wrapper by default" >&6; }
5466     ;;
5467   *)
5468     FSCK_PROG=fsck FSCK_MAN=fsck.8
5469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5470 $as_echo "Building fsck wrapper by default" >&6; }
5471 esac
5472
5473 fi
5474
5475
5476
5477 # Check whether --enable-e2initrd-helper was given.
5478 if test "${enable_e2initrd_helper+set}" = set; then :
5479   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5480 then
5481         E2INITRD_PROG='' E2INITRD_MAN=''
5482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5483 $as_echo "Not building e2initrd helper" >&6; }
5484 else
5485         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5487 $as_echo "Building e2initrd helper" >&6; }
5488 fi
5489
5490 else
5491   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5493 $as_echo "Building e2initrd helper by default" >&6; }
5494
5495 fi
5496
5497
5498
5499 # Check whether --enable-tls was given.
5500 if test "${enable_tls+set}" = set; then :
5501   enableval=$enable_tls; if test "$enableval" = "no"
5502 then
5503         try_tls=""
5504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5505 $as_echo "Disabling thread local support" >&6; }
5506 else
5507         try_tls="yes"
5508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5509 $as_echo "Enabling thread local support" >&6; }
5510 fi
5511
5512 else
5513   if test -n "$WITH_DIET_LIBC"
5514 then
5515         try_tls=""
5516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5517 $as_echo "Diet libc does not support thread local support" >&6; }
5518 else
5519         try_tls="yes"
5520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5521 $as_echo "Try using thread local support by default" >&6; }
5522 fi
5523
5524 fi
5525
5526 if test "$try_tls" = "yes"
5527 then
5528
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5530 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5531   if ${ac_cv_tls+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534
5535     ax_tls_keywords="__thread __declspec(thread) none"
5536     for ax_tls_keyword in $ax_tls_keywords; do
5537        case $ax_tls_keyword in
5538           none) ac_cv_tls=none ; break ;;
5539           *)
5540              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h.  */
5542 #include <stdlib.h>
5543                  static void
5544                  foo(void) {
5545                  static  $ax_tls_keyword  int bar;
5546                  exit(1);
5547                  }
5548 int
5549 main ()
5550 {
5551
5552   ;
5553   return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557   ac_cv_tls=$ax_tls_keyword ; break
5558 else
5559   ac_cv_tls=none
5560
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563           esac
5564     done
5565
5566 fi
5567
5568
5569   if test "$ac_cv_tls" != "none"; then
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define TLS $ac_cv_tls
5573 _ACEOF
5574
5575   fi
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5577 $as_echo "$ac_cv_tls" >&6; }
5578
5579 fi
5580
5581 # Check whether --enable-uuidd was given.
5582 if test "${enable_uuidd+set}" = set; then :
5583   enableval=$enable_uuidd; if test "$enableval" = "no"
5584 then
5585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5586 $as_echo "Not building uuidd" >&6; }
5587         UUIDD_CMT="#"
5588 else
5589         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5590
5591         UUIDD_CMT=""
5592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5593 $as_echo "Building uuidd" >&6; }
5594 fi
5595
5596 else
5597   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5598
5599 UUIDD_CMT=""
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5601 $as_echo "Building uuidd by default" >&6; }
5602
5603 fi
5604
5605
5606
5607 # Check whether --enable-mmp was given.
5608 if test "${enable_mmp+set}" = set; then :
5609   enableval=$enable_mmp; if test "$enableval" = "no"
5610 then
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5612 $as_echo "Disabling mmp support" >&6; }
5613 else
5614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5615 $as_echo "Enabling mmp support" >&6; }
5616         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5617
5618 fi
5619
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5622 $as_echo "Enabling mmp support by default" >&6; }
5623 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5624
5625
5626 fi
5627
5628
5629 # Check whether --enable-bmap-stats was given.
5630 if test "${enable_bmap_stats+set}" = set; then :
5631   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5632 then
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5634 $as_echo "Disabling bitmap statistics support" >&6; }
5635 else
5636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5637 $as_echo "Enabling bitmap statistics support" >&6; }
5638         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5639
5640 fi
5641
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5644 $as_echo "Enabling bitmap statistics support by default" >&6; }
5645 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5646
5647
5648 fi
5649
5650
5651 # Check whether --enable-bmap-stats-ops was given.
5652 if test "${enable_bmap_stats_ops+set}" = set; then :
5653   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5654 then
5655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5656 $as_echo "Disabling additional bitmap statistics" >&6; }
5657 else
5658                 if test "x${enable_bmap_stats}" = "xno"; then :
5659   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5662 See \`config.log' for more details" "$LINENO" 5; }
5663 fi
5664
5665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5666 $as_echo "Enabling additional bitmap statistics" >&6; }
5667         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5668
5669 fi
5670
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5673 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5674
5675 fi
5676
5677 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5678
5679 GETTEXT_PACKAGE=e2fsprogs
5680 PACKAGE=e2fsprogs
5681 VERSION="$E2FSPROGS_VERSION"
5682 VERSION=0.14.1
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define PACKAGE "$PACKAGE"
5686 _ACEOF
5687
5688
5689 cat >>confdefs.h <<_ACEOF
5690 #define VERSION "$VERSION"
5691 _ACEOF
5692
5693
5694
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5699 set x ${MAKE-make}
5700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   cat >conftest.make <<\_ACEOF
5705 SHELL = /bin/sh
5706 all:
5707         @echo '@@@%%%=$(MAKE)=@@@%%%'
5708 _ACEOF
5709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5711   *@@@%%%=?*=@@@%%%*)
5712     eval ac_cv_prog_make_${ac_make}_set=yes;;
5713   *)
5714     eval ac_cv_prog_make_${ac_make}_set=no;;
5715 esac
5716 rm -f conftest.make
5717 fi
5718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5720 $as_echo "yes" >&6; }
5721   SET_MAKE=
5722 else
5723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725   SET_MAKE="MAKE=${MAKE-make}"
5726 fi
5727
5728 # Find a good install program.  We prefer a C program (faster),
5729 # so one script is as good as another.  But avoid the broken or
5730 # incompatible versions:
5731 # SysV /etc/install, /usr/sbin/install
5732 # SunOS /usr/etc/install
5733 # IRIX /sbin/install
5734 # AIX /bin/install
5735 # AmigaOS /C/install, which installs bootblocks on floppy discs
5736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5739 # OS/2's system install, which has a completely different semantic
5740 # ./install, which can be erroneously created by make from ./install.sh.
5741 # Reject install programs that cannot install multiple files.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5743 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5744 if test -z "$INSTALL"; then
5745 if ${ac_cv_path_install+:} false; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     # Account for people who put trailing slashes in PATH elements.
5754 case $as_dir/ in #((
5755   ./ | .// | /[cC]/* | \
5756   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5757   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5758   /usr/ucb/* ) ;;
5759   *)
5760     # OSF1 and SCO ODT 3.0 have their own names for install.
5761     # Don't use installbsd from OSF since it installs stuff as root
5762     # by default.
5763     for ac_prog in ginstall scoinst install; do
5764       for ac_exec_ext in '' $ac_executable_extensions; do
5765         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5766           if test $ac_prog = install &&
5767             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5768             # AIX install.  It has an incompatible calling convention.
5769             :
5770           elif test $ac_prog = install &&
5771             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5772             # program-specific install script used by HP pwplus--don't use.
5773             :
5774           else
5775             rm -rf conftest.one conftest.two conftest.dir
5776             echo one > conftest.one
5777             echo two > conftest.two
5778             mkdir conftest.dir
5779             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5780               test -s conftest.one && test -s conftest.two &&
5781               test -s conftest.dir/conftest.one &&
5782               test -s conftest.dir/conftest.two
5783             then
5784               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5785               break 3
5786             fi
5787           fi
5788         fi
5789       done
5790     done
5791     ;;
5792 esac
5793
5794   done
5795 IFS=$as_save_IFS
5796
5797 rm -rf conftest.one conftest.two conftest.dir
5798
5799 fi
5800   if test "${ac_cv_path_install+set}" = set; then
5801     INSTALL=$ac_cv_path_install
5802   else
5803     # As a last resort, use the slow shell script.  Don't cache a
5804     # value for INSTALL within a source directory, because that will
5805     # break other packages using the cache if that directory is
5806     # removed, or if the value is a relative name.
5807     INSTALL=$ac_install_sh
5808   fi
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5811 $as_echo "$INSTALL" >&6; }
5812
5813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5814 # It thinks the first close brace ends the variable substitution.
5815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5816
5817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5818
5819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5820
5821
5822         MKINSTALLDIRS=
5823   if test -n "$ac_aux_dir"; then
5824     case "$ac_aux_dir" in
5825       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5826       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5827     esac
5828   fi
5829   if test -z "$MKINSTALLDIRS"; then
5830     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5831   fi
5832
5833
5834
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5836 $as_echo_n "checking whether NLS is requested... " >&6; }
5837     # Check whether --enable-nls was given.
5838 if test "${enable_nls+set}" = set; then :
5839   enableval=$enable_nls; USE_NLS=$enableval
5840 else
5841   USE_NLS=yes
5842 fi
5843
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5845 $as_echo "$USE_NLS" >&6; }
5846
5847
5848
5849
5850
5851
5852 # Prepare PATH_SEPARATOR.
5853 # The user is always right.
5854 if test "${PATH_SEPARATOR+set}" != set; then
5855   echo "#! /bin/sh" >conf$$.sh
5856   echo  "exit 0"   >>conf$$.sh
5857   chmod +x conf$$.sh
5858   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5859     PATH_SEPARATOR=';'
5860   else
5861     PATH_SEPARATOR=:
5862   fi
5863   rm -f conf$$.sh
5864 fi
5865
5866 # Find out how to test for executable files. Don't use a zero-byte file,
5867 # as systems may use methods other than mode bits to determine executability.
5868 cat >conf$$.file <<_ASEOF
5869 #! /bin/sh
5870 exit 0
5871 _ASEOF
5872 chmod +x conf$$.file
5873 if test -x conf$$.file >/dev/null 2>&1; then
5874   ac_executable_p="test -x"
5875 else
5876   ac_executable_p="test -f"
5877 fi
5878 rm -f conf$$.file
5879
5880 # Extract the first word of "msgfmt", so it can be a program name with args.
5881 set dummy msgfmt; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_path_MSGFMT+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   case "$MSGFMT" in
5888   [\\/]* | ?:[\\/]*)
5889     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5890     ;;
5891   *)
5892     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5893     for ac_dir in $PATH; do
5894       IFS="$ac_save_IFS"
5895       test -z "$ac_dir" && ac_dir=.
5896       for ac_exec_ext in '' $ac_executable_extensions; do
5897         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5898           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5899      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5900             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5901             break 2
5902           fi
5903         fi
5904       done
5905     done
5906     IFS="$ac_save_IFS"
5907   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5908     ;;
5909 esac
5910 fi
5911 MSGFMT="$ac_cv_path_MSGFMT"
5912 if test "$MSGFMT" != ":"; then
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5914 $as_echo "$MSGFMT" >&6; }
5915 else
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5921 set dummy gmsgfmt; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_path_GMSGFMT+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   case $GMSGFMT in
5928   [\\/]* | ?:[\\/]*)
5929   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5930   ;;
5931   *)
5932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937     for ac_exec_ext in '' $ac_executable_extensions; do
5938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944   done
5945 IFS=$as_save_IFS
5946
5947   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5948   ;;
5949 esac
5950 fi
5951 GMSGFMT=$ac_cv_path_GMSGFMT
5952 if test -n "$GMSGFMT"; then
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5954 $as_echo "$GMSGFMT" >&6; }
5955 else
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961
5962
5963 # Prepare PATH_SEPARATOR.
5964 # The user is always right.
5965 if test "${PATH_SEPARATOR+set}" != set; then
5966   echo "#! /bin/sh" >conf$$.sh
5967   echo  "exit 0"   >>conf$$.sh
5968   chmod +x conf$$.sh
5969   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5970     PATH_SEPARATOR=';'
5971   else
5972     PATH_SEPARATOR=:
5973   fi
5974   rm -f conf$$.sh
5975 fi
5976
5977 # Find out how to test for executable files. Don't use a zero-byte file,
5978 # as systems may use methods other than mode bits to determine executability.
5979 cat >conf$$.file <<_ASEOF
5980 #! /bin/sh
5981 exit 0
5982 _ASEOF
5983 chmod +x conf$$.file
5984 if test -x conf$$.file >/dev/null 2>&1; then
5985   ac_executable_p="test -x"
5986 else
5987   ac_executable_p="test -f"
5988 fi
5989 rm -f conf$$.file
5990
5991 # Extract the first word of "xgettext", so it can be a program name with args.
5992 set dummy xgettext; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_path_XGETTEXT+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   case "$XGETTEXT" in
5999   [\\/]* | ?:[\\/]*)
6000     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6001     ;;
6002   *)
6003     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6004     for ac_dir in $PATH; do
6005       IFS="$ac_save_IFS"
6006       test -z "$ac_dir" && ac_dir=.
6007       for ac_exec_ext in '' $ac_executable_extensions; do
6008         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6009           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6010      (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
6011             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6012             break 2
6013           fi
6014         fi
6015       done
6016     done
6017     IFS="$ac_save_IFS"
6018   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6019     ;;
6020 esac
6021 fi
6022 XGETTEXT="$ac_cv_path_XGETTEXT"
6023 if test "$XGETTEXT" != ":"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6025 $as_echo "$XGETTEXT" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031     rm -f messages.po
6032
6033
6034 # Prepare PATH_SEPARATOR.
6035 # The user is always right.
6036 if test "${PATH_SEPARATOR+set}" != set; then
6037   echo "#! /bin/sh" >conf$$.sh
6038   echo  "exit 0"   >>conf$$.sh
6039   chmod +x conf$$.sh
6040   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6041     PATH_SEPARATOR=';'
6042   else
6043     PATH_SEPARATOR=:
6044   fi
6045   rm -f conf$$.sh
6046 fi
6047
6048 # Find out how to test for executable files. Don't use a zero-byte file,
6049 # as systems may use methods other than mode bits to determine executability.
6050 cat >conf$$.file <<_ASEOF
6051 #! /bin/sh
6052 exit 0
6053 _ASEOF
6054 chmod +x conf$$.file
6055 if test -x conf$$.file >/dev/null 2>&1; then
6056   ac_executable_p="test -x"
6057 else
6058   ac_executable_p="test -f"
6059 fi
6060 rm -f conf$$.file
6061
6062 # Extract the first word of "msgmerge", so it can be a program name with args.
6063 set dummy msgmerge; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_path_MSGMERGE+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   case "$MSGMERGE" in
6070   [\\/]* | ?:[\\/]*)
6071     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6072     ;;
6073   *)
6074     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6075     for ac_dir in $PATH; do
6076       IFS="$ac_save_IFS"
6077       test -z "$ac_dir" && ac_dir=.
6078       for ac_exec_ext in '' $ac_executable_extensions; do
6079         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6080           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6081             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6082             break 2
6083           fi
6084         fi
6085       done
6086     done
6087     IFS="$ac_save_IFS"
6088   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6089     ;;
6090 esac
6091 fi
6092 MSGMERGE="$ac_cv_path_MSGMERGE"
6093 if test "$MSGMERGE" != ":"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6095 $as_echo "$MSGMERGE" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101
6102       if test "$GMSGFMT" != ":"; then
6103             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6104        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6105       : ;
6106     else
6107       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6109 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6110       GMSGFMT=":"
6111     fi
6112   fi
6113
6114       if test "$XGETTEXT" != ":"; then
6115             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6116        (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
6117       : ;
6118     else
6119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6120 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6121       XGETTEXT=":"
6122     fi
6123         rm -f messages.po
6124   fi
6125
6126   ac_config_commands="$ac_config_commands default-1"
6127
6128
6129 if test -n "$ac_tool_prefix"; then
6130   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_RANLIB+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if test -n "$RANLIB"; then
6138   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 RANLIB=$ac_cv_prog_RANLIB
6158 if test -n "$RANLIB"; then
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6160 $as_echo "$RANLIB" >&6; }
6161 else
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 fi
6168 if test -z "$ac_cv_prog_RANLIB"; then
6169   ac_ct_RANLIB=$RANLIB
6170   # Extract the first word of "ranlib", so it can be a program name with args.
6171 set dummy ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$ac_ct_RANLIB"; then
6178   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187     ac_cv_prog_ac_ct_RANLIB="ranlib"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6198 if test -n "$ac_ct_RANLIB"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6200 $as_echo "$ac_ct_RANLIB" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206   if test "x$ac_ct_RANLIB" = x; then
6207     RANLIB=":"
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     RANLIB=$ac_ct_RANLIB
6216   fi
6217 else
6218   RANLIB="$ac_cv_prog_RANLIB"
6219 fi
6220
6221
6222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6223 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6224 if ${ac_cv_lib_cposix_strerror+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-lcposix  $LIBS"
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h.  */
6231
6232 /* Override any GCC internal prototype to avoid an error.
6233    Use char because int might match the return type of a GCC
6234    builtin and then its argument prototype would still apply.  */
6235 #ifdef __cplusplus
6236 extern "C"
6237 #endif
6238 char strerror ();
6239 int
6240 main ()
6241 {
6242 return strerror ();
6243   ;
6244   return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_link "$LINENO"; then :
6248   ac_cv_lib_cposix_strerror=yes
6249 else
6250   ac_cv_lib_cposix_strerror=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext \
6253     conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6255 fi
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6257 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6258 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6259   LIBS="$LIBS -lcposix"
6260 fi
6261
6262
6263
6264
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6267 if ${ac_cv_path_GREP+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -z "$GREP"; then
6271   ac_path_GREP_found=false
6272   # Loop through the user's path and test for each of PROGNAME-LIST
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_prog in grep ggrep; do
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6281       as_fn_executable_p "$ac_path_GREP" || continue
6282 # Check for GNU ac_path_GREP and select it if it is found.
6283   # Check for GNU $ac_path_GREP
6284 case `"$ac_path_GREP" --version 2>&1` in
6285 *GNU*)
6286   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6287 *)
6288   ac_count=0
6289   $as_echo_n 0123456789 >"conftest.in"
6290   while :
6291   do
6292     cat "conftest.in" "conftest.in" >"conftest.tmp"
6293     mv "conftest.tmp" "conftest.in"
6294     cp "conftest.in" "conftest.nl"
6295     $as_echo 'GREP' >> "conftest.nl"
6296     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6297     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6298     as_fn_arith $ac_count + 1 && ac_count=$as_val
6299     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6300       # Best one so far, save it but keep looking for a better one
6301       ac_cv_path_GREP="$ac_path_GREP"
6302       ac_path_GREP_max=$ac_count
6303     fi
6304     # 10*(2^10) chars as input seems more than enough
6305     test $ac_count -gt 10 && break
6306   done
6307   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6308 esac
6309
6310       $ac_path_GREP_found && break 3
6311     done
6312   done
6313   done
6314 IFS=$as_save_IFS
6315   if test -z "$ac_cv_path_GREP"; then
6316     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6317   fi
6318 else
6319   ac_cv_path_GREP=$GREP
6320 fi
6321
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6324 $as_echo "$ac_cv_path_GREP" >&6; }
6325  GREP="$ac_cv_path_GREP"
6326
6327
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6329 $as_echo_n "checking for egrep... " >&6; }
6330 if ${ac_cv_path_EGREP+:} false; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6334    then ac_cv_path_EGREP="$GREP -E"
6335    else
6336      if test -z "$EGREP"; then
6337   ac_path_EGREP_found=false
6338   # Loop through the user's path and test for each of PROGNAME-LIST
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_prog in egrep; do
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6347       as_fn_executable_p "$ac_path_EGREP" || continue
6348 # Check for GNU ac_path_EGREP and select it if it is found.
6349   # Check for GNU $ac_path_EGREP
6350 case `"$ac_path_EGREP" --version 2>&1` in
6351 *GNU*)
6352   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6353 *)
6354   ac_count=0
6355   $as_echo_n 0123456789 >"conftest.in"
6356   while :
6357   do
6358     cat "conftest.in" "conftest.in" >"conftest.tmp"
6359     mv "conftest.tmp" "conftest.in"
6360     cp "conftest.in" "conftest.nl"
6361     $as_echo 'EGREP' >> "conftest.nl"
6362     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6363     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6364     as_fn_arith $ac_count + 1 && ac_count=$as_val
6365     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6366       # Best one so far, save it but keep looking for a better one
6367       ac_cv_path_EGREP="$ac_path_EGREP"
6368       ac_path_EGREP_max=$ac_count
6369     fi
6370     # 10*(2^10) chars as input seems more than enough
6371     test $ac_count -gt 10 && break
6372   done
6373   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6374 esac
6375
6376       $ac_path_EGREP_found && break 3
6377     done
6378   done
6379   done
6380 IFS=$as_save_IFS
6381   if test -z "$ac_cv_path_EGREP"; then
6382     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6383   fi
6384 else
6385   ac_cv_path_EGREP=$EGREP
6386 fi
6387
6388    fi
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6391 $as_echo "$ac_cv_path_EGREP" >&6; }
6392  EGREP="$ac_cv_path_EGREP"
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6396 $as_echo_n "checking for ANSI C header files... " >&6; }
6397 if ${ac_cv_header_stdc+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h.  */
6402 #include <stdlib.h>
6403 #include <stdarg.h>
6404 #include <string.h>
6405 #include <float.h>
6406
6407 int
6408 main ()
6409 {
6410
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416   ac_cv_header_stdc=yes
6417 else
6418   ac_cv_header_stdc=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421
6422 if test $ac_cv_header_stdc = yes; then
6423   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h.  */
6426 #include <string.h>
6427
6428 _ACEOF
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430   $EGREP "memchr" >/dev/null 2>&1; then :
6431
6432 else
6433   ac_cv_header_stdc=no
6434 fi
6435 rm -f conftest*
6436
6437 fi
6438
6439 if test $ac_cv_header_stdc = yes; then
6440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443 #include <stdlib.h>
6444
6445 _ACEOF
6446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447   $EGREP "free" >/dev/null 2>&1; then :
6448
6449 else
6450   ac_cv_header_stdc=no
6451 fi
6452 rm -f conftest*
6453
6454 fi
6455
6456 if test $ac_cv_header_stdc = yes; then
6457   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6458   if test "$cross_compiling" = yes; then :
6459   :
6460 else
6461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463 #include <ctype.h>
6464 #include <stdlib.h>
6465 #if ((' ' & 0x0FF) == 0x020)
6466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6468 #else
6469 # define ISLOWER(c) \
6470                    (('a' <= (c) && (c) <= 'i') \
6471                      || ('j' <= (c) && (c) <= 'r') \
6472                      || ('s' <= (c) && (c) <= 'z'))
6473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6474 #endif
6475
6476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6477 int
6478 main ()
6479 {
6480   int i;
6481   for (i = 0; i < 256; i++)
6482     if (XOR (islower (i), ISLOWER (i))
6483         || toupper (i) != TOUPPER (i))
6484       return 2;
6485   return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_run "$LINENO"; then :
6489
6490 else
6491   ac_cv_header_stdc=no
6492 fi
6493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6494   conftest.$ac_objext conftest.beam conftest.$ac_ext
6495 fi
6496
6497 fi
6498 fi
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6500 $as_echo "$ac_cv_header_stdc" >&6; }
6501 if test $ac_cv_header_stdc = yes; then
6502
6503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6504
6505 fi
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6508 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6509 if ${ac_cv_c_const+:} false; then :
6510   $as_echo_n "(cached) " >&6
6511 else
6512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h.  */
6514
6515 int
6516 main ()
6517 {
6518
6519 #ifndef __cplusplus
6520   /* Ultrix mips cc rejects this sort of thing.  */
6521   typedef int charset[2];
6522   const charset cs = { 0, 0 };
6523   /* SunOS 4.1.1 cc rejects this.  */
6524   char const *const *pcpcc;
6525   char **ppc;
6526   /* NEC SVR4.0.2 mips cc rejects this.  */
6527   struct point {int x, y;};
6528   static struct point const zero = {0,0};
6529   /* AIX XL C 1.02.0.0 rejects this.
6530      It does not let you subtract one const X* pointer from another in
6531      an arm of an if-expression whose if-part is not a constant
6532      expression */
6533   const char *g = "string";
6534   pcpcc = &g + (g ? g-g : 0);
6535   /* HPUX 7.0 cc rejects these. */
6536   ++pcpcc;
6537   ppc = (char**) pcpcc;
6538   pcpcc = (char const *const *) ppc;
6539   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6540     char tx;
6541     char *t = &tx;
6542     char const *s = 0 ? (char *) 0 : (char const *) 0;
6543
6544     *t++ = 0;
6545     if (s) return 0;
6546   }
6547   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6548     int x[] = {25, 17};
6549     const int *foo = &x[0];
6550     ++foo;
6551   }
6552   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6553     typedef const int *iptr;
6554     iptr p = 0;
6555     ++p;
6556   }
6557   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6558        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6559     struct s { int j; const int *ap[3]; } bx;
6560     struct s *b = &bx; b->j = 5;
6561   }
6562   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6563     const int foo = 10;
6564     if (!foo) return 0;
6565   }
6566   return !cs[0] && !zero.x;
6567 #endif
6568
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 if ac_fn_c_try_compile "$LINENO"; then :
6574   ac_cv_c_const=yes
6575 else
6576   ac_cv_c_const=no
6577 fi
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6581 $as_echo "$ac_cv_c_const" >&6; }
6582 if test $ac_cv_c_const = no; then
6583
6584 $as_echo "#define const /**/" >>confdefs.h
6585
6586 fi
6587
6588
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6590 $as_echo_n "checking for signed... " >&6; }
6591 if ${bh_cv_c_signed+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h.  */
6596
6597 int
6598 main ()
6599 {
6600 signed char x;
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then :
6606   bh_cv_c_signed=yes
6607 else
6608   bh_cv_c_signed=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6613 $as_echo "$bh_cv_c_signed" >&6; }
6614   if test $bh_cv_c_signed = no; then
6615
6616 $as_echo "#define signed /**/" >>confdefs.h
6617
6618   fi
6619
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6621 $as_echo_n "checking for inline... " >&6; }
6622 if ${ac_cv_c_inline+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   ac_cv_c_inline=no
6626 for ac_kw in inline __inline__ __inline; do
6627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h.  */
6629 #ifndef __cplusplus
6630 typedef int foo_t;
6631 static $ac_kw foo_t static_foo () {return 0; }
6632 $ac_kw foo_t foo () {return 0; }
6633 #endif
6634
6635 _ACEOF
6636 if ac_fn_c_try_compile "$LINENO"; then :
6637   ac_cv_c_inline=$ac_kw
6638 fi
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640   test "$ac_cv_c_inline" != no && break
6641 done
6642
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6645 $as_echo "$ac_cv_c_inline" >&6; }
6646
6647 case $ac_cv_c_inline in
6648   inline | yes) ;;
6649   *)
6650     case $ac_cv_c_inline in
6651       no) ac_val=;;
6652       *) ac_val=$ac_cv_c_inline;;
6653     esac
6654     cat >>confdefs.h <<_ACEOF
6655 #ifndef __cplusplus
6656 #define inline $ac_val
6657 #endif
6658 _ACEOF
6659     ;;
6660 esac
6661
6662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6663 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6664                   inttypes.h stdint.h unistd.h
6665 do :
6666   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6667 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6668 "
6669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6670   cat >>confdefs.h <<_ACEOF
6671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6672 _ACEOF
6673
6674 fi
6675
6676 done
6677
6678
6679 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6680 if test "x$ac_cv_type_off_t" = xyes; then :
6681
6682 else
6683
6684 cat >>confdefs.h <<_ACEOF
6685 #define off_t long int
6686 _ACEOF
6687
6688 fi
6689
6690 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6691 if test "x$ac_cv_type_size_t" = xyes; then :
6692
6693 else
6694
6695 cat >>confdefs.h <<_ACEOF
6696 #define size_t unsigned int
6697 _ACEOF
6698
6699 fi
6700
6701
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6703 $as_echo_n "checking for long long... " >&6; }
6704 if ${ac_cv_type_long_long+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h.  */
6709 long long ll = 1LL; int i = 63;
6710 int
6711 main ()
6712 {
6713 long long llmax = (long long) -1;
6714      return ll << i | ll >> i | llmax / ll | llmax % ll;
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720   ac_cv_type_long_long=yes
6721 else
6722   ac_cv_type_long_long=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725     conftest$ac_exeext conftest.$ac_ext
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6728 $as_echo "$ac_cv_type_long_long" >&6; }
6729   if test $ac_cv_type_long_long = yes; then
6730
6731 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6732
6733   fi
6734
6735
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6737 $as_echo_n "checking for long double... " >&6; }
6738 if ${gt_cv_c_long_double+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test "$GCC" = yes; then
6742        gt_cv_c_long_double=yes
6743      else
6744        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h.  */
6746
6747          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6748          long double foo = 0.0;
6749          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6750          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6751
6752 int
6753 main ()
6754 {
6755
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761   gt_cv_c_long_double=yes
6762 else
6763   gt_cv_c_long_double=no
6764 fi
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766      fi
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6769 $as_echo "$gt_cv_c_long_double" >&6; }
6770   if test $gt_cv_c_long_double = yes; then
6771
6772 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6773
6774   fi
6775
6776
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6778 $as_echo_n "checking for wchar_t... " >&6; }
6779 if ${gt_cv_c_wchar_t+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784 #include <stddef.h>
6785        wchar_t foo = (wchar_t)'\0';
6786 int
6787 main ()
6788 {
6789
6790   ;
6791   return 0;
6792 }
6793 _ACEOF
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795   gt_cv_c_wchar_t=yes
6796 else
6797   gt_cv_c_wchar_t=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 fi
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6802 $as_echo "$gt_cv_c_wchar_t" >&6; }
6803   if test $gt_cv_c_wchar_t = yes; then
6804
6805 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6806
6807   fi
6808
6809
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6811 $as_echo_n "checking for wint_t... " >&6; }
6812 if ${gt_cv_c_wint_t+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h.  */
6817 #include <wchar.h>
6818        wint_t foo = (wchar_t)'\0';
6819 int
6820 main ()
6821 {
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828   gt_cv_c_wint_t=yes
6829 else
6830   gt_cv_c_wint_t=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6835 $as_echo "$gt_cv_c_wint_t" >&6; }
6836   if test $gt_cv_c_wint_t = yes; then
6837
6838 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6839
6840   fi
6841
6842
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6844 $as_echo_n "checking for inttypes.h... " >&6; }
6845 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 #include <sys/types.h>
6851 #include <inttypes.h>
6852 int
6853 main ()
6854 {
6855 uintmax_t i = (uintmax_t) -1;
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861   jm_ac_cv_header_inttypes_h=yes
6862 else
6863   jm_ac_cv_header_inttypes_h=no
6864 fi
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6868 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6869   if test $jm_ac_cv_header_inttypes_h = yes; then
6870
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6873 _ACEOF
6874
6875   fi
6876
6877
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6879 $as_echo_n "checking for stdint.h... " >&6; }
6880 if ${jm_ac_cv_header_stdint_h+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 #include <sys/types.h>
6886 #include <stdint.h>
6887 int
6888 main ()
6889 {
6890 uintmax_t i = (uintmax_t) -1;
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896   jm_ac_cv_header_stdint_h=yes
6897 else
6898   jm_ac_cv_header_stdint_h=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6903 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6904   if test $jm_ac_cv_header_stdint_h = yes; then
6905
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STDINT_H_WITH_UINTMAX 1
6908 _ACEOF
6909
6910   fi
6911
6912
6913
6914
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6916 $as_echo_n "checking for intmax_t... " >&6; }
6917 if ${gt_cv_c_intmax_t+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h.  */
6922
6923 #include <stddef.h>
6924 #include <stdlib.h>
6925 #if HAVE_STDINT_H_WITH_UINTMAX
6926 #include <stdint.h>
6927 #endif
6928 #if HAVE_INTTYPES_H_WITH_UINTMAX
6929 #include <inttypes.h>
6930 #endif
6931
6932 int
6933 main ()
6934 {
6935 intmax_t x = -1;
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941   gt_cv_c_intmax_t=yes
6942 else
6943   gt_cv_c_intmax_t=no
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6948 $as_echo "$gt_cv_c_intmax_t" >&6; }
6949   if test $gt_cv_c_intmax_t = yes; then
6950
6951 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6952
6953   fi
6954
6955
6956
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6958 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6959 if ${gt_cv_func_printf_posix+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962
6963       if test "$cross_compiling" = yes; then :
6964
6965         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967
6968 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6969   notposix
6970 #endif
6971
6972 _ACEOF
6973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974   $EGREP "notposix" >/dev/null 2>&1; then :
6975   gt_cv_func_printf_posix="guessing no"
6976 else
6977   gt_cv_func_printf_posix="guessing yes"
6978 fi
6979 rm -f conftest*
6980
6981
6982 else
6983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h.  */
6985
6986 #include <stdio.h>
6987 #include <string.h>
6988 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6989    dollar expansion (possibly an autoconf bug).  */
6990 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6991 static char buf[100];
6992 int main ()
6993 {
6994   sprintf (buf, format, 33, 55);
6995   return (strcmp (buf, "55 33") != 0);
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_run "$LINENO"; then :
6999   gt_cv_func_printf_posix=yes
7000 else
7001   gt_cv_func_printf_posix=no
7002 fi
7003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7004   conftest.$ac_objext conftest.beam conftest.$ac_ext
7005 fi
7006
7007
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7010 $as_echo "$gt_cv_func_printf_posix" >&6; }
7011   case $gt_cv_func_printf_posix in
7012     *yes)
7013
7014 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7015
7016       ;;
7017   esac
7018
7019 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7020 # for constant arguments.  Useless!
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7022 $as_echo_n "checking for working alloca.h... " >&6; }
7023 if ${ac_cv_working_alloca_h+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 #include <alloca.h>
7029 int
7030 main ()
7031 {
7032 char *p = (char *) alloca (2 * sizeof (int));
7033                           if (p) return 0;
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039   ac_cv_working_alloca_h=yes
7040 else
7041   ac_cv_working_alloca_h=no
7042 fi
7043 rm -f core conftest.err conftest.$ac_objext \
7044     conftest$ac_exeext conftest.$ac_ext
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7047 $as_echo "$ac_cv_working_alloca_h" >&6; }
7048 if test $ac_cv_working_alloca_h = yes; then
7049
7050 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7051
7052 fi
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7055 $as_echo_n "checking for alloca... " >&6; }
7056 if ${ac_cv_func_alloca_works+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h.  */
7061 #ifdef __GNUC__
7062 # define alloca __builtin_alloca
7063 #else
7064 # ifdef _MSC_VER
7065 #  include <malloc.h>
7066 #  define alloca _alloca
7067 # else
7068 #  ifdef HAVE_ALLOCA_H
7069 #   include <alloca.h>
7070 #  else
7071 #   ifdef _AIX
7072  #pragma alloca
7073 #   else
7074 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7075 void *alloca (size_t);
7076 #    endif
7077 #   endif
7078 #  endif
7079 # endif
7080 #endif
7081
7082 int
7083 main ()
7084 {
7085 char *p = (char *) alloca (1);
7086                                     if (p) return 0;
7087   ;
7088   return 0;
7089 }
7090 _ACEOF
7091 if ac_fn_c_try_link "$LINENO"; then :
7092   ac_cv_func_alloca_works=yes
7093 else
7094   ac_cv_func_alloca_works=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext \
7097     conftest$ac_exeext conftest.$ac_ext
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7100 $as_echo "$ac_cv_func_alloca_works" >&6; }
7101
7102 if test $ac_cv_func_alloca_works = yes; then
7103
7104 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7105
7106 else
7107   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7108 # that cause trouble.  Some versions do not even contain alloca or
7109 # contain a buggy version.  If you still want to use their alloca,
7110 # use ar to extract alloca.o from them instead of compiling alloca.c.
7111
7112 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7113
7114 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7118 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7119 if ${ac_cv_os_cray+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h.  */
7124 #if defined CRAY && ! defined CRAY2
7125 webecray
7126 #else
7127 wenotbecray
7128 #endif
7129
7130 _ACEOF
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132   $EGREP "webecray" >/dev/null 2>&1; then :
7133   ac_cv_os_cray=yes
7134 else
7135   ac_cv_os_cray=no
7136 fi
7137 rm -f conftest*
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7141 $as_echo "$ac_cv_os_cray" >&6; }
7142 if test $ac_cv_os_cray = yes; then
7143   for ac_func in _getb67 GETB67 getb67; do
7144     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define CRAY_STACKSEG_END $ac_func
7150 _ACEOF
7151
7152     break
7153 fi
7154
7155   done
7156 fi
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7159 $as_echo_n "checking stack direction for C alloca... " >&6; }
7160 if ${ac_cv_c_stack_direction+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   if test "$cross_compiling" = yes; then :
7164   ac_cv_c_stack_direction=0
7165 else
7166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h.  */
7168 $ac_includes_default
7169 int
7170 find_stack_direction (int *addr, int depth)
7171 {
7172   int dir, dummy = 0;
7173   if (! addr)
7174     addr = &dummy;
7175   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7176   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7177   return dir + dummy;
7178 }
7179
7180 int
7181 main (int argc, char **argv)
7182 {
7183   return find_stack_direction (0, argc + !argv + 20) < 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_run "$LINENO"; then :
7187   ac_cv_c_stack_direction=1
7188 else
7189   ac_cv_c_stack_direction=-1
7190 fi
7191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7192   conftest.$ac_objext conftest.beam conftest.$ac_ext
7193 fi
7194
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7197 $as_echo "$ac_cv_c_stack_direction" >&6; }
7198 cat >>confdefs.h <<_ACEOF
7199 #define STACK_DIRECTION $ac_cv_c_stack_direction
7200 _ACEOF
7201
7202
7203 fi
7204
7205
7206
7207
7208   for ac_header in $ac_header_list
7209 do :
7210   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7212 "
7213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7214   cat >>confdefs.h <<_ACEOF
7215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 _ACEOF
7217
7218 fi
7219
7220 done
7221
7222
7223
7224
7225
7226
7227
7228
7229 for ac_func in getpagesize
7230 do :
7231   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7232 if test "x$ac_cv_func_getpagesize" = xyes; then :
7233   cat >>confdefs.h <<_ACEOF
7234 #define HAVE_GETPAGESIZE 1
7235 _ACEOF
7236
7237 fi
7238 done
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7241 $as_echo_n "checking for working mmap... " >&6; }
7242 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   if test "$cross_compiling" = yes; then :
7246   ac_cv_func_mmap_fixed_mapped=no
7247 else
7248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h.  */
7250 $ac_includes_default
7251 /* malloc might have been renamed as rpl_malloc. */
7252 #undef malloc
7253
7254 /* Thanks to Mike Haertel and Jim Avera for this test.
7255    Here is a matrix of mmap possibilities:
7256         mmap private not fixed
7257         mmap private fixed at somewhere currently unmapped
7258         mmap private fixed at somewhere already mapped
7259         mmap shared not fixed
7260         mmap shared fixed at somewhere currently unmapped
7261         mmap shared fixed at somewhere already mapped
7262    For private mappings, we should verify that changes cannot be read()
7263    back from the file, nor mmap's back from the file at a different
7264    address.  (There have been systems where private was not correctly
7265    implemented like the infamous i386 svr4.0, and systems where the
7266    VM page cache was not coherent with the file system buffer cache
7267    like early versions of FreeBSD and possibly contemporary NetBSD.)
7268    For shared mappings, we should conversely verify that changes get
7269    propagated back to all the places they're supposed to be.
7270
7271    Grep wants private fixed already mapped.
7272    The main things grep needs to know about mmap are:
7273    * does it exist and is it safe to write into the mmap'd area
7274    * how to use it (BSD variants)  */
7275
7276 #include <fcntl.h>
7277 #include <sys/mman.h>
7278
7279 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7280 char *malloc ();
7281 #endif
7282
7283 /* This mess was copied from the GNU getpagesize.h.  */
7284 #ifndef HAVE_GETPAGESIZE
7285 # ifdef _SC_PAGESIZE
7286 #  define getpagesize() sysconf(_SC_PAGESIZE)
7287 # else /* no _SC_PAGESIZE */
7288 #  ifdef HAVE_SYS_PARAM_H
7289 #   include <sys/param.h>
7290 #   ifdef EXEC_PAGESIZE
7291 #    define getpagesize() EXEC_PAGESIZE
7292 #   else /* no EXEC_PAGESIZE */
7293 #    ifdef NBPG
7294 #     define getpagesize() NBPG * CLSIZE
7295 #     ifndef CLSIZE
7296 #      define CLSIZE 1
7297 #     endif /* no CLSIZE */
7298 #    else /* no NBPG */
7299 #     ifdef NBPC
7300 #      define getpagesize() NBPC
7301 #     else /* no NBPC */
7302 #      ifdef PAGESIZE
7303 #       define getpagesize() PAGESIZE
7304 #      endif /* PAGESIZE */
7305 #     endif /* no NBPC */
7306 #    endif /* no NBPG */
7307 #   endif /* no EXEC_PAGESIZE */
7308 #  else /* no HAVE_SYS_PARAM_H */
7309 #   define getpagesize() 8192   /* punt totally */
7310 #  endif /* no HAVE_SYS_PARAM_H */
7311 # endif /* no _SC_PAGESIZE */
7312
7313 #endif /* no HAVE_GETPAGESIZE */
7314
7315 int
7316 main ()
7317 {
7318   char *data, *data2, *data3;
7319   const char *cdata2;
7320   int i, pagesize;
7321   int fd, fd2;
7322
7323   pagesize = getpagesize ();
7324
7325   /* First, make a file with some known garbage in it. */
7326   data = (char *) malloc (pagesize);
7327   if (!data)
7328     return 1;
7329   for (i = 0; i < pagesize; ++i)
7330     *(data + i) = rand ();
7331   umask (0);
7332   fd = creat ("conftest.mmap", 0600);
7333   if (fd < 0)
7334     return 2;
7335   if (write (fd, data, pagesize) != pagesize)
7336     return 3;
7337   close (fd);
7338
7339   /* Next, check that the tail of a page is zero-filled.  File must have
7340      non-zero length, otherwise we risk SIGBUS for entire page.  */
7341   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7342   if (fd2 < 0)
7343     return 4;
7344   cdata2 = "";
7345   if (write (fd2, cdata2, 1) != 1)
7346     return 5;
7347   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7348   if (data2 == MAP_FAILED)
7349     return 6;
7350   for (i = 0; i < pagesize; ++i)
7351     if (*(data2 + i))
7352       return 7;
7353   close (fd2);
7354   if (munmap (data2, pagesize))
7355     return 8;
7356
7357   /* Next, try to mmap the file at a fixed address which already has
7358      something else allocated at it.  If we can, also make sure that
7359      we see the same garbage.  */
7360   fd = open ("conftest.mmap", O_RDWR);
7361   if (fd < 0)
7362     return 9;
7363   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7364                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7365     return 10;
7366   for (i = 0; i < pagesize; ++i)
7367     if (*(data + i) != *(data2 + i))
7368       return 11;
7369
7370   /* Finally, make sure that changes to the mapped area do not
7371      percolate back to the file as seen by read().  (This is a bug on
7372      some variants of i386 svr4.0.)  */
7373   for (i = 0; i < pagesize; ++i)
7374     *(data2 + i) = *(data2 + i) + 1;
7375   data3 = (char *) malloc (pagesize);
7376   if (!data3)
7377     return 12;
7378   if (read (fd, data3, pagesize) != pagesize)
7379     return 13;
7380   for (i = 0; i < pagesize; ++i)
7381     if (*(data + i) != *(data3 + i))
7382       return 14;
7383   close (fd);
7384   return 0;
7385 }
7386 _ACEOF
7387 if ac_fn_c_try_run "$LINENO"; then :
7388   ac_cv_func_mmap_fixed_mapped=yes
7389 else
7390   ac_cv_func_mmap_fixed_mapped=no
7391 fi
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7393   conftest.$ac_objext conftest.beam conftest.$ac_ext
7394 fi
7395
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7398 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7399 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7400
7401 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7402
7403 fi
7404 rm -f conftest.mmap conftest.txt
7405
7406
7407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7408 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7409 if ${ac_cv_gnu_library_2_1+:} false; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h.  */
7414
7415 #include <features.h>
7416 #ifdef __GNU_LIBRARY__
7417  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7418   Lucky GNU user
7419  #endif
7420 #endif
7421
7422 _ACEOF
7423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7424   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7425   ac_cv_gnu_library_2_1=yes
7426 else
7427   ac_cv_gnu_library_2_1=no
7428 fi
7429 rm -f conftest*
7430
7431
7432
7433 fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7435 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7436
7437     GLIBC21="$ac_cv_gnu_library_2_1"
7438
7439
7440
7441
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7443 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7444 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447
7448       if test "$cross_compiling" = yes; then :
7449
7450           # Guess based on the CPU.
7451           case "$host_cpu" in
7452             alpha* | i3456786 | m68k | s390*)
7453               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7454             *)
7455               gt_cv_int_divbyzero_sigfpe="guessing no";;
7456           esac
7457
7458 else
7459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h.  */
7461
7462 #include <stdlib.h>
7463 #include <signal.h>
7464
7465 static void
7466 #ifdef __cplusplus
7467 sigfpe_handler (int sig)
7468 #else
7469 sigfpe_handler (sig) int sig;
7470 #endif
7471 {
7472   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7473   exit (sig != SIGFPE);
7474 }
7475
7476 int x = 1;
7477 int y = 0;
7478 int z;
7479 int nan;
7480
7481 int main ()
7482 {
7483   signal (SIGFPE, sigfpe_handler);
7484 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7485 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7486   signal (SIGTRAP, sigfpe_handler);
7487 #endif
7488 /* Linux/SPARC yields signal SIGILL.  */
7489 #if defined (__sparc__) && defined (__linux__)
7490   signal (SIGILL, sigfpe_handler);
7491 #endif
7492
7493   z = x / y;
7494   nan = y / y;
7495   exit (1);
7496 }
7497
7498 _ACEOF
7499 if ac_fn_c_try_run "$LINENO"; then :
7500   gt_cv_int_divbyzero_sigfpe=yes
7501 else
7502   gt_cv_int_divbyzero_sigfpe=no
7503 fi
7504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7505   conftest.$ac_objext conftest.beam conftest.$ac_ext
7506 fi
7507
7508
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7511 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7512   case "$gt_cv_int_divbyzero_sigfpe" in
7513     *yes) value=1;;
7514     *) value=0;;
7515   esac
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define INTDIV0_RAISES_SIGFPE $value
7519 _ACEOF
7520
7521
7522
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7524 $as_echo_n "checking for unsigned long long... " >&6; }
7525 if ${ac_cv_type_unsigned_long_long+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h.  */
7530 unsigned long long ull = 1ULL; int i = 63;
7531 int
7532 main ()
7533 {
7534 unsigned long long ullmax = (unsigned long long) -1;
7535      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_link "$LINENO"; then :
7541   ac_cv_type_unsigned_long_long=yes
7542 else
7543   ac_cv_type_unsigned_long_long=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext \
7546     conftest$ac_exeext conftest.$ac_ext
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7549 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7550   if test $ac_cv_type_unsigned_long_long = yes; then
7551
7552 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7553
7554   fi
7555
7556
7557
7558
7559   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7560
7561     test $ac_cv_type_unsigned_long_long = yes \
7562       && ac_type='unsigned long long' \
7563       || ac_type='unsigned long'
7564
7565 cat >>confdefs.h <<_ACEOF
7566 #define uintmax_t $ac_type
7567 _ACEOF
7568
7569   else
7570
7571 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7572
7573   fi
7574
7575
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7577 $as_echo_n "checking for inttypes.h... " >&6; }
7578 if ${gt_cv_header_inttypes_h+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581
7582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h.  */
7584 #include <sys/types.h>
7585 #include <inttypes.h>
7586 int
7587 main ()
7588 {
7589
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595   gt_cv_header_inttypes_h=yes
7596 else
7597   gt_cv_header_inttypes_h=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7603 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7604   if test $gt_cv_header_inttypes_h = yes; then
7605
7606 cat >>confdefs.h <<_ACEOF
7607 #define HAVE_INTTYPES_H 1
7608 _ACEOF
7609
7610   fi
7611
7612
7613
7614   if test $gt_cv_header_inttypes_h = yes; then
7615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7616 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7617 if ${gt_cv_inttypes_pri_broken+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620
7621         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h.  */
7623 #include <inttypes.h>
7624 #ifdef PRId32
7625 char *p = PRId32;
7626 #endif
7627
7628 int
7629 main ()
7630 {
7631
7632   ;
7633   return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637   gt_cv_inttypes_pri_broken=no
7638 else
7639   gt_cv_inttypes_pri_broken=yes
7640 fi
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7645 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7646   fi
7647   if test "$gt_cv_inttypes_pri_broken" = yes; then
7648
7649 cat >>confdefs.h <<_ACEOF
7650 #define PRI_MACROS_BROKEN 1
7651 _ACEOF
7652
7653   fi
7654
7655
7656   for ac_header in stdint.h
7657 do :
7658   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7659 if test "x$ac_cv_header_stdint_h" = xyes; then :
7660   cat >>confdefs.h <<_ACEOF
7661 #define HAVE_STDINT_H 1
7662 _ACEOF
7663
7664 fi
7665
7666 done
7667
7668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7669 $as_echo_n "checking for SIZE_MAX... " >&6; }
7670   result=
7671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h.  */
7673
7674 #include <limits.h>
7675 #if HAVE_STDINT_H
7676 #include <stdint.h>
7677 #endif
7678 #ifdef SIZE_MAX
7679 Found it
7680 #endif
7681
7682 _ACEOF
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684   $EGREP "Found it" >/dev/null 2>&1; then :
7685   result=yes
7686 fi
7687 rm -f conftest*
7688
7689   if test -z "$result"; then
7690                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7691
7692 else
7693   result=?
7694 fi
7695
7696
7697     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7698
7699 else
7700   result=?
7701 fi
7702
7703
7704     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7705
7706 else
7707   result=?
7708 fi
7709
7710
7711     if test "$fits_in_uint" = 1; then
7712                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714 #include <stddef.h>
7715         extern size_t foo;
7716         extern unsigned long foo;
7717
7718 int
7719 main ()
7720 {
7721
7722   ;
7723   return 0;
7724 }
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727   fits_in_uint=0
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730     fi
7731     if test -z "$result"; then
7732       if test "$fits_in_uint" = 1; then
7733         result="$res_hi$res_lo"U
7734       else
7735         result="$res_hi$res_lo"UL
7736       fi
7737     else
7738             result='~(size_t)0'
7739     fi
7740   fi
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7742 $as_echo "$result" >&6; }
7743   if test "$result" != yes; then
7744
7745 cat >>confdefs.h <<_ACEOF
7746 #define SIZE_MAX $result
7747 _ACEOF
7748
7749   fi
7750
7751
7752
7753   for ac_header in stdint.h
7754 do :
7755   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7756 if test "x$ac_cv_header_stdint_h" = xyes; then :
7757   cat >>confdefs.h <<_ACEOF
7758 #define HAVE_STDINT_H 1
7759 _ACEOF
7760
7761 fi
7762
7763 done
7764
7765
7766
7767       if test "X$prefix" = "XNONE"; then
7768     acl_final_prefix="$ac_default_prefix"
7769   else
7770     acl_final_prefix="$prefix"
7771   fi
7772   if test "X$exec_prefix" = "XNONE"; then
7773     acl_final_exec_prefix='${prefix}'
7774   else
7775     acl_final_exec_prefix="$exec_prefix"
7776   fi
7777   acl_save_prefix="$prefix"
7778   prefix="$acl_final_prefix"
7779   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7780   prefix="$acl_save_prefix"
7781
7782
7783 # Check whether --with-gnu-ld was given.
7784 if test "${with_gnu_ld+set}" = set; then :
7785   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7786 else
7787   with_gnu_ld=no
7788 fi
7789
7790 # Prepare PATH_SEPARATOR.
7791 # The user is always right.
7792 if test "${PATH_SEPARATOR+set}" != set; then
7793   echo "#! /bin/sh" >conf$$.sh
7794   echo  "exit 0"   >>conf$$.sh
7795   chmod +x conf$$.sh
7796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7797     PATH_SEPARATOR=';'
7798   else
7799     PATH_SEPARATOR=:
7800   fi
7801   rm -f conf$$.sh
7802 fi
7803 ac_prog=ld
7804 if test "$GCC" = yes; then
7805   # Check if gcc -print-prog-name=ld gives a path.
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7807 $as_echo_n "checking for ld used by GCC... " >&6; }
7808   case $host in
7809   *-*-mingw*)
7810     # gcc leaves a trailing carriage return which upsets mingw
7811     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7812   *)
7813     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7814   esac
7815   case $ac_prog in
7816     # Accept absolute paths.
7817     [\\/]* | [A-Za-z]:[\\/]*)
7818       re_direlt='/[^/][^/]*/\.\./'
7819       # Canonicalize the path of ld
7820       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7821       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7822         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7823       done
7824       test -z "$LD" && LD="$ac_prog"
7825       ;;
7826   "")
7827     # If it fails, then pretend we aren't using GCC.
7828     ac_prog=ld
7829     ;;
7830   *)
7831     # If it is relative, then search for the first ld in PATH.
7832     with_gnu_ld=unknown
7833     ;;
7834   esac
7835 elif test "$with_gnu_ld" = yes; then
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7837 $as_echo_n "checking for GNU ld... " >&6; }
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7840 $as_echo_n "checking for non-GNU ld... " >&6; }
7841 fi
7842 if ${acl_cv_path_LD+:} false; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   if test -z "$LD"; then
7846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7847   for ac_dir in $PATH; do
7848     test -z "$ac_dir" && ac_dir=.
7849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7850       acl_cv_path_LD="$ac_dir/$ac_prog"
7851       # Check to see if the program is GNU ld.  I'd rather use --version,
7852       # but apparently some GNU ld's only accept -v.
7853       # Break only if it was the GNU/non-GNU ld that we prefer.
7854       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7855       *GNU* | *'with BFD'*)
7856         test "$with_gnu_ld" != no && break ;;
7857       *)
7858         test "$with_gnu_ld" != yes && break ;;
7859       esac
7860     fi
7861   done
7862   IFS="$ac_save_ifs"
7863 else
7864   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7865 fi
7866 fi
7867
7868 LD="$acl_cv_path_LD"
7869 if test -n "$LD"; then
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7871 $as_echo "$LD" >&6; }
7872 else
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7879 if ${acl_cv_prog_gnu_ld+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7883 case `$LD -v 2>&1 </dev/null` in
7884 *GNU* | *'with BFD'*)
7885   acl_cv_prog_gnu_ld=yes ;;
7886 *)
7887   acl_cv_prog_gnu_ld=no ;;
7888 esac
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7891 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7892 with_gnu_ld=$acl_cv_prog_gnu_ld
7893
7894
7895
7896                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7897 $as_echo_n "checking for shared library run path origin... " >&6; }
7898 if ${acl_cv_rpath+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901
7902     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7903     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7904     . ./conftest.sh
7905     rm -f ./conftest.sh
7906     acl_cv_rpath=done
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7910 $as_echo "$acl_cv_rpath" >&6; }
7911   wl="$acl_cv_wl"
7912   libext="$acl_cv_libext"
7913   shlibext="$acl_cv_shlibext"
7914   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7915   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7916   hardcode_direct="$acl_cv_hardcode_direct"
7917   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7918     # Check whether --enable-rpath was given.
7919 if test "${enable_rpath+set}" = set; then :
7920   enableval=$enable_rpath; :
7921 else
7922   enable_rpath=yes
7923 fi
7924
7925
7926
7927
7928
7929
7930
7931
7932     use_additional=yes
7933
7934   acl_save_prefix="$prefix"
7935   prefix="$acl_final_prefix"
7936   acl_save_exec_prefix="$exec_prefix"
7937   exec_prefix="$acl_final_exec_prefix"
7938
7939     eval additional_includedir=\"$includedir\"
7940     eval additional_libdir=\"$libdir\"
7941
7942   exec_prefix="$acl_save_exec_prefix"
7943   prefix="$acl_save_prefix"
7944
7945
7946 # Check whether --with-libiconv-prefix was given.
7947 if test "${with_libiconv_prefix+set}" = set; then :
7948   withval=$with_libiconv_prefix;
7949     if test "X$withval" = "Xno"; then
7950       use_additional=no
7951     else
7952       if test "X$withval" = "X"; then
7953
7954   acl_save_prefix="$prefix"
7955   prefix="$acl_final_prefix"
7956   acl_save_exec_prefix="$exec_prefix"
7957   exec_prefix="$acl_final_exec_prefix"
7958
7959           eval additional_includedir=\"$includedir\"
7960           eval additional_libdir=\"$libdir\"
7961
7962   exec_prefix="$acl_save_exec_prefix"
7963   prefix="$acl_save_prefix"
7964
7965       else
7966         additional_includedir="$withval/include"
7967         additional_libdir="$withval/lib"
7968       fi
7969     fi
7970
7971 fi
7972
7973       LIBICONV=
7974   LTLIBICONV=
7975   INCICONV=
7976   rpathdirs=
7977   ltrpathdirs=
7978   names_already_handled=
7979   names_next_round='iconv '
7980   while test -n "$names_next_round"; do
7981     names_this_round="$names_next_round"
7982     names_next_round=
7983     for name in $names_this_round; do
7984       already_handled=
7985       for n in $names_already_handled; do
7986         if test "$n" = "$name"; then
7987           already_handled=yes
7988           break
7989         fi
7990       done
7991       if test -z "$already_handled"; then
7992         names_already_handled="$names_already_handled $name"
7993                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7994         eval value=\"\$HAVE_LIB$uppername\"
7995         if test -n "$value"; then
7996           if test "$value" = yes; then
7997             eval value=\"\$LIB$uppername\"
7998             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7999             eval value=\"\$LTLIB$uppername\"
8000             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8001           else
8002                                     :
8003           fi
8004         else
8005                               found_dir=
8006           found_la=
8007           found_so=
8008           found_a=
8009           if test $use_additional = yes; then
8010             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8011               found_dir="$additional_libdir"
8012               found_so="$additional_libdir/lib$name.$shlibext"
8013               if test -f "$additional_libdir/lib$name.la"; then
8014                 found_la="$additional_libdir/lib$name.la"
8015               fi
8016             else
8017               if test -f "$additional_libdir/lib$name.$libext"; then
8018                 found_dir="$additional_libdir"
8019                 found_a="$additional_libdir/lib$name.$libext"
8020                 if test -f "$additional_libdir/lib$name.la"; then
8021                   found_la="$additional_libdir/lib$name.la"
8022                 fi
8023               fi
8024             fi
8025           fi
8026           if test "X$found_dir" = "X"; then
8027             for x in $LDFLAGS $LTLIBICONV; do
8028
8029   acl_save_prefix="$prefix"
8030   prefix="$acl_final_prefix"
8031   acl_save_exec_prefix="$exec_prefix"
8032   exec_prefix="$acl_final_exec_prefix"
8033   eval x=\"$x\"
8034   exec_prefix="$acl_save_exec_prefix"
8035   prefix="$acl_save_prefix"
8036
8037               case "$x" in
8038                 -L*)
8039                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8040                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8041                     found_dir="$dir"
8042                     found_so="$dir/lib$name.$shlibext"
8043                     if test -f "$dir/lib$name.la"; then
8044                       found_la="$dir/lib$name.la"
8045                     fi
8046                   else
8047                     if test -f "$dir/lib$name.$libext"; then
8048                       found_dir="$dir"
8049                       found_a="$dir/lib$name.$libext"
8050                       if test -f "$dir/lib$name.la"; then
8051                         found_la="$dir/lib$name.la"
8052                       fi
8053                     fi
8054                   fi
8055                   ;;
8056               esac
8057               if test "X$found_dir" != "X"; then
8058                 break
8059               fi
8060             done
8061           fi
8062           if test "X$found_dir" != "X"; then
8063                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8064             if test "X$found_so" != "X"; then
8065                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8066                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8067               else
8068                                                                                 haveit=
8069                 for x in $ltrpathdirs; do
8070                   if test "X$x" = "X$found_dir"; then
8071                     haveit=yes
8072                     break
8073                   fi
8074                 done
8075                 if test -z "$haveit"; then
8076                   ltrpathdirs="$ltrpathdirs $found_dir"
8077                 fi
8078                                 if test "$hardcode_direct" = yes; then
8079                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8080                 else
8081                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8082                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8083                                                             haveit=
8084                     for x in $rpathdirs; do
8085                       if test "X$x" = "X$found_dir"; then
8086                         haveit=yes
8087                         break
8088                       fi
8089                     done
8090                     if test -z "$haveit"; then
8091                       rpathdirs="$rpathdirs $found_dir"
8092                     fi
8093                   else
8094                                                                                 haveit=
8095                     for x in $LDFLAGS $LIBICONV; do
8096
8097   acl_save_prefix="$prefix"
8098   prefix="$acl_final_prefix"
8099   acl_save_exec_prefix="$exec_prefix"
8100   exec_prefix="$acl_final_exec_prefix"
8101   eval x=\"$x\"
8102   exec_prefix="$acl_save_exec_prefix"
8103   prefix="$acl_save_prefix"
8104
8105                       if test "X$x" = "X-L$found_dir"; then
8106                         haveit=yes
8107                         break
8108                       fi
8109                     done
8110                     if test -z "$haveit"; then
8111                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8112                     fi
8113                     if test "$hardcode_minus_L" != no; then
8114                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8115                     else
8116                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8117                     fi
8118                   fi
8119                 fi
8120               fi
8121             else
8122               if test "X$found_a" != "X"; then
8123                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8124               else
8125                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8126               fi
8127             fi
8128                         additional_includedir=
8129             case "$found_dir" in
8130               */lib | */lib/)
8131                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8132                 additional_includedir="$basedir/include"
8133                 ;;
8134             esac
8135             if test "X$additional_includedir" != "X"; then
8136                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8137                 haveit=
8138                 if test "X$additional_includedir" = "X/usr/local/include"; then
8139                   if test -n "$GCC"; then
8140                     case $host_os in
8141                       linux*) haveit=yes;;
8142                     esac
8143                   fi
8144                 fi
8145                 if test -z "$haveit"; then
8146                   for x in $CPPFLAGS $INCICONV; do
8147
8148   acl_save_prefix="$prefix"
8149   prefix="$acl_final_prefix"
8150   acl_save_exec_prefix="$exec_prefix"
8151   exec_prefix="$acl_final_exec_prefix"
8152   eval x=\"$x\"
8153   exec_prefix="$acl_save_exec_prefix"
8154   prefix="$acl_save_prefix"
8155
8156                     if test "X$x" = "X-I$additional_includedir"; then
8157                       haveit=yes
8158                       break
8159                     fi
8160                   done
8161                   if test -z "$haveit"; then
8162                     if test -d "$additional_includedir"; then
8163                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8164                     fi
8165                   fi
8166                 fi
8167               fi
8168             fi
8169                         if test -n "$found_la"; then
8170                                                         save_libdir="$libdir"
8171               case "$found_la" in
8172                 */* | *\\*) . "$found_la" ;;
8173                 *) . "./$found_la" ;;
8174               esac
8175               libdir="$save_libdir"
8176                             for dep in $dependency_libs; do
8177                 case "$dep" in
8178                   -L*)
8179                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8180                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8181                       haveit=
8182                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8183                         if test -n "$GCC"; then
8184                           case $host_os in
8185                             linux*) haveit=yes;;
8186                           esac
8187                         fi
8188                       fi
8189                       if test -z "$haveit"; then
8190                         haveit=
8191                         for x in $LDFLAGS $LIBICONV; do
8192
8193   acl_save_prefix="$prefix"
8194   prefix="$acl_final_prefix"
8195   acl_save_exec_prefix="$exec_prefix"
8196   exec_prefix="$acl_final_exec_prefix"
8197   eval x=\"$x\"
8198   exec_prefix="$acl_save_exec_prefix"
8199   prefix="$acl_save_prefix"
8200
8201                           if test "X$x" = "X-L$additional_libdir"; then
8202                             haveit=yes
8203                             break
8204                           fi
8205                         done
8206                         if test -z "$haveit"; then
8207                           if test -d "$additional_libdir"; then
8208                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8209                           fi
8210                         fi
8211                         haveit=
8212                         for x in $LDFLAGS $LTLIBICONV; do
8213
8214   acl_save_prefix="$prefix"
8215   prefix="$acl_final_prefix"
8216   acl_save_exec_prefix="$exec_prefix"
8217   exec_prefix="$acl_final_exec_prefix"
8218   eval x=\"$x\"
8219   exec_prefix="$acl_save_exec_prefix"
8220   prefix="$acl_save_prefix"
8221
8222                           if test "X$x" = "X-L$additional_libdir"; then
8223                             haveit=yes
8224                             break
8225                           fi
8226                         done
8227                         if test -z "$haveit"; then
8228                           if test -d "$additional_libdir"; then
8229                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8230                           fi
8231                         fi
8232                       fi
8233                     fi
8234                     ;;
8235                   -R*)
8236                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8237                     if test "$enable_rpath" != no; then
8238                                                                   haveit=
8239                       for x in $rpathdirs; do
8240                         if test "X$x" = "X$dir"; then
8241                           haveit=yes
8242                           break
8243                         fi
8244                       done
8245                       if test -z "$haveit"; then
8246                         rpathdirs="$rpathdirs $dir"
8247                       fi
8248                                                                   haveit=
8249                       for x in $ltrpathdirs; do
8250                         if test "X$x" = "X$dir"; then
8251                           haveit=yes
8252                           break
8253                         fi
8254                       done
8255                       if test -z "$haveit"; then
8256                         ltrpathdirs="$ltrpathdirs $dir"
8257                       fi
8258                     fi
8259                     ;;
8260                   -l*)
8261                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8262                     ;;
8263                   *.la)
8264                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8265                     ;;
8266                   *)
8267                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8268                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8269                     ;;
8270                 esac
8271               done
8272             fi
8273           else
8274                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8275             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8276           fi
8277         fi
8278       fi
8279     done
8280   done
8281   if test "X$rpathdirs" != "X"; then
8282     if test -n "$hardcode_libdir_separator"; then
8283                         alldirs=
8284       for found_dir in $rpathdirs; do
8285         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8286       done
8287             acl_save_libdir="$libdir"
8288       libdir="$alldirs"
8289       eval flag=\"$hardcode_libdir_flag_spec\"
8290       libdir="$acl_save_libdir"
8291       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8292     else
8293             for found_dir in $rpathdirs; do
8294         acl_save_libdir="$libdir"
8295         libdir="$found_dir"
8296         eval flag=\"$hardcode_libdir_flag_spec\"
8297         libdir="$acl_save_libdir"
8298         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8299       done
8300     fi
8301   fi
8302   if test "X$ltrpathdirs" != "X"; then
8303             for found_dir in $ltrpathdirs; do
8304       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8305     done
8306   fi
8307
8308
8309
8310
8311
8312
8313
8314
8315   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8316 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8317
8318 else
8319
8320 $as_echo "#define ptrdiff_t long" >>confdefs.h
8321
8322
8323 fi
8324
8325   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8326 stdlib.h string.h unistd.h sys/param.h
8327 do :
8328   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8329 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8331   cat >>confdefs.h <<_ACEOF
8332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 fi
8336
8337 done
8338
8339   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8340 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8341 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8342 __fsetlocking
8343 do :
8344   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8347   cat >>confdefs.h <<_ACEOF
8348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8349 _ACEOF
8350
8351 fi
8352 done
8353
8354
8355
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8357 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8358 if ${ac_cv_have_decl__snprintf+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h.  */
8363 #include <stdio.h>
8364 int
8365 main ()
8366 {
8367
8368 #ifndef _snprintf
8369   char *p = (char *) _snprintf;
8370 #endif
8371
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377   ac_cv_have_decl__snprintf=yes
8378 else
8379   ac_cv_have_decl__snprintf=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8384 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8385   if test $ac_cv_have_decl__snprintf = yes; then
8386     gt_value=1
8387   else
8388     gt_value=0
8389   fi
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL__SNPRINTF $gt_value
8393 _ACEOF
8394
8395
8396
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8398 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8399 if ${ac_cv_have_decl__snwprintf+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h.  */
8404 #include <stdio.h>
8405 int
8406 main ()
8407 {
8408
8409 #ifndef _snwprintf
8410   char *p = (char *) _snwprintf;
8411 #endif
8412
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418   ac_cv_have_decl__snwprintf=yes
8419 else
8420   ac_cv_have_decl__snwprintf=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8425 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8426   if test $ac_cv_have_decl__snwprintf = yes; then
8427     gt_value=1
8428   else
8429     gt_value=0
8430   fi
8431
8432 cat >>confdefs.h <<_ACEOF
8433 #define HAVE_DECL__SNWPRINTF $gt_value
8434 _ACEOF
8435
8436
8437
8438
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8440 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8441 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h.  */
8446 #include <stdio.h>
8447 int
8448 main ()
8449 {
8450
8451 #ifndef feof_unlocked
8452   char *p = (char *) feof_unlocked;
8453 #endif
8454
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460   ac_cv_have_decl_feof_unlocked=yes
8461 else
8462   ac_cv_have_decl_feof_unlocked=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8467 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8468   if test $ac_cv_have_decl_feof_unlocked = yes; then
8469     gt_value=1
8470   else
8471     gt_value=0
8472   fi
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8476 _ACEOF
8477
8478
8479
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8481 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8482 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8483   $as_echo_n "(cached) " >&6
8484 else
8485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h.  */
8487 #include <stdio.h>
8488 int
8489 main ()
8490 {
8491
8492 #ifndef fgets_unlocked
8493   char *p = (char *) fgets_unlocked;
8494 #endif
8495
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501   ac_cv_have_decl_fgets_unlocked=yes
8502 else
8503   ac_cv_have_decl_fgets_unlocked=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8508 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8509   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8510     gt_value=1
8511   else
8512     gt_value=0
8513   fi
8514
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8517 _ACEOF
8518
8519
8520
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8522 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8523 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528 #include <stdio.h>
8529 int
8530 main ()
8531 {
8532
8533 #ifndef getc_unlocked
8534   char *p = (char *) getc_unlocked;
8535 #endif
8536
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_compile "$LINENO"; then :
8542   ac_cv_have_decl_getc_unlocked=yes
8543 else
8544   ac_cv_have_decl_getc_unlocked=no
8545 fi
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8549 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8550   if test $ac_cv_have_decl_getc_unlocked = yes; then
8551     gt_value=1
8552   else
8553     gt_value=0
8554   fi
8555
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8558 _ACEOF
8559
8560
8561
8562   case $gt_cv_func_printf_posix in
8563     *yes) HAVE_POSIX_PRINTF=1 ;;
8564     *) HAVE_POSIX_PRINTF=0 ;;
8565   esac
8566
8567   if test "$ac_cv_func_asprintf" = yes; then
8568     HAVE_ASPRINTF=1
8569   else
8570     HAVE_ASPRINTF=0
8571   fi
8572
8573   if test "$ac_cv_func_snprintf" = yes; then
8574     HAVE_SNPRINTF=1
8575   else
8576     HAVE_SNPRINTF=0
8577   fi
8578
8579   if test "$ac_cv_func_wprintf" = yes; then
8580     HAVE_WPRINTF=1
8581   else
8582     HAVE_WPRINTF=0
8583   fi
8584
8585
8586
8587
8588
8589
8590
8591           am_save_CPPFLAGS="$CPPFLAGS"
8592
8593   for element in $INCICONV; do
8594     haveit=
8595     for x in $CPPFLAGS; do
8596
8597   acl_save_prefix="$prefix"
8598   prefix="$acl_final_prefix"
8599   acl_save_exec_prefix="$exec_prefix"
8600   exec_prefix="$acl_final_exec_prefix"
8601   eval x=\"$x\"
8602   exec_prefix="$acl_save_exec_prefix"
8603   prefix="$acl_save_prefix"
8604
8605       if test "X$x" = "X$element"; then
8606         haveit=yes
8607         break
8608       fi
8609     done
8610     if test -z "$haveit"; then
8611       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8612     fi
8613   done
8614
8615
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8617 $as_echo_n "checking for iconv... " >&6; }
8618 if ${am_cv_func_iconv+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621
8622     am_cv_func_iconv="no, consider installing GNU libiconv"
8623     am_cv_lib_iconv=no
8624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626 #include <stdlib.h>
8627 #include <iconv.h>
8628 int
8629 main ()
8630 {
8631 iconv_t cd = iconv_open("","");
8632        iconv(cd,NULL,NULL,NULL,NULL);
8633        iconv_close(cd);
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_link "$LINENO"; then :
8639   am_cv_func_iconv=yes
8640 fi
8641 rm -f core conftest.err conftest.$ac_objext \
8642     conftest$ac_exeext conftest.$ac_ext
8643     if test "$am_cv_func_iconv" != yes; then
8644       am_save_LIBS="$LIBS"
8645       LIBS="$LIBS $LIBICONV"
8646       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648 #include <stdlib.h>
8649 #include <iconv.h>
8650 int
8651 main ()
8652 {
8653 iconv_t cd = iconv_open("","");
8654          iconv(cd,NULL,NULL,NULL,NULL);
8655          iconv_close(cd);
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661   am_cv_lib_iconv=yes
8662         am_cv_func_iconv=yes
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext \
8665     conftest$ac_exeext conftest.$ac_ext
8666       LIBS="$am_save_LIBS"
8667     fi
8668
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8671 $as_echo "$am_cv_func_iconv" >&6; }
8672   if test "$am_cv_func_iconv" = yes; then
8673
8674 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8675
8676   fi
8677   if test "$am_cv_lib_iconv" = yes; then
8678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8679 $as_echo_n "checking how to link with libiconv... " >&6; }
8680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8681 $as_echo "$LIBICONV" >&6; }
8682   else
8683             CPPFLAGS="$am_save_CPPFLAGS"
8684     LIBICONV=
8685     LTLIBICONV=
8686   fi
8687
8688
8689
8690   if test "$am_cv_func_iconv" = yes; then
8691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8692 $as_echo_n "checking for iconv declaration... " >&6; }
8693     if ${am_cv_proto_iconv+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696
8697       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h.  */
8699
8700 #include <stdlib.h>
8701 #include <iconv.h>
8702 extern
8703 #ifdef __cplusplus
8704 "C"
8705 #endif
8706 #if defined(__STDC__) || defined(__cplusplus)
8707 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8708 #else
8709 size_t iconv();
8710 #endif
8711
8712 int
8713 main ()
8714 {
8715
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721   am_cv_proto_iconv_arg1=""
8722 else
8723   am_cv_proto_iconv_arg1="const"
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726       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);"
8727 fi
8728
8729     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8731          }$am_cv_proto_iconv" >&5
8732 $as_echo "${ac_t:-
8733          }$am_cv_proto_iconv" >&6; }
8734
8735 cat >>confdefs.h <<_ACEOF
8736 #define ICONV_CONST $am_cv_proto_iconv_arg1
8737 _ACEOF
8738
8739   fi
8740
8741
8742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8743 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8744 if ${am_cv_langinfo_codeset+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h.  */
8749 #include <langinfo.h>
8750 int
8751 main ()
8752 {
8753 char* cs = nl_langinfo(CODESET);
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759   am_cv_langinfo_codeset=yes
8760 else
8761   am_cv_langinfo_codeset=no
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext \
8764     conftest$ac_exeext conftest.$ac_ext
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8768 $as_echo "$am_cv_langinfo_codeset" >&6; }
8769   if test $am_cv_langinfo_codeset = yes; then
8770
8771 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8772
8773   fi
8774
8775   if test $ac_cv_header_locale_h = yes; then
8776
8777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8778 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8779 if ${am_cv_val_LC_MESSAGES+:} false; then :
8780   $as_echo_n "(cached) " >&6
8781 else
8782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h.  */
8784 #include <locale.h>
8785 int
8786 main ()
8787 {
8788 return LC_MESSAGES
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 if ac_fn_c_try_link "$LINENO"; then :
8794   am_cv_val_LC_MESSAGES=yes
8795 else
8796   am_cv_val_LC_MESSAGES=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext \
8799     conftest$ac_exeext conftest.$ac_ext
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8802 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8803   if test $am_cv_val_LC_MESSAGES = yes; then
8804
8805 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8806
8807   fi
8808
8809   fi
8810
8811                       for ac_prog in bison
8812 do
8813   # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy $ac_prog; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_INTLBISON+:} false; then :
8818   $as_echo_n "(cached) " >&6
8819 else
8820   if test -n "$INTLBISON"; then
8821   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830     ac_cv_prog_INTLBISON="$ac_prog"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837
8838 fi
8839 fi
8840 INTLBISON=$ac_cv_prog_INTLBISON
8841 if test -n "$INTLBISON"; then
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8843 $as_echo "$INTLBISON" >&6; }
8844 else
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8847 fi
8848
8849
8850   test -n "$INTLBISON" && break
8851 done
8852
8853   if test -z "$INTLBISON"; then
8854     ac_verc_fail=yes
8855   else
8856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8857 $as_echo_n "checking version of bison... " >&6; }
8858     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8859     case $ac_prog_version in
8860       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8861       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8862          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8863       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8864     esac
8865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8866 $as_echo "$ac_prog_version" >&6; }
8867   fi
8868   if test $ac_verc_fail = yes; then
8869     INTLBISON=:
8870   fi
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8888 $as_echo_n "checking whether NLS is requested... " >&6; }
8889     # Check whether --enable-nls was given.
8890 if test "${enable_nls+set}" = set; then :
8891   enableval=$enable_nls; USE_NLS=$enableval
8892 else
8893   USE_NLS=yes
8894 fi
8895
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8897 $as_echo "$USE_NLS" >&6; }
8898
8899
8900
8901
8902     BUILD_INCLUDED_LIBINTL=no
8903     USE_INCLUDED_LIBINTL=no
8904
8905   LIBINTL=
8906   LTLIBINTL=
8907   POSUB=
8908
8909     if test "$USE_NLS" = "yes"; then
8910     gt_use_preinstalled_gnugettext=no
8911
8912       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8913 $as_echo_n "checking whether included gettext is requested... " >&6; }
8914
8915 # Check whether --with-included-gettext was given.
8916 if test "${with_included_gettext+set}" = set; then :
8917   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8918 else
8919   nls_cv_force_use_gnu_gettext=no
8920 fi
8921
8922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8923 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8924
8925       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8926       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8927
8928
8929
8930
8931
8932
8933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8934 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8935 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8936   $as_echo_n "(cached) " >&6
8937 else
8938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h.  */
8940 #include <libintl.h>
8941 extern int _nl_msg_cat_cntr;
8942 extern int *_nl_domain_bindings;
8943 int
8944 main ()
8945 {
8946 bindtextdomain ("", "");
8947 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"; then :
8953   gt_cv_func_gnugettext1_libc=yes
8954 else
8955   gt_cv_func_gnugettext1_libc=no
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext \
8958     conftest$ac_exeext conftest.$ac_ext
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8961 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8962
8963         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8964
8965
8966
8967     use_additional=yes
8968
8969   acl_save_prefix="$prefix"
8970   prefix="$acl_final_prefix"
8971   acl_save_exec_prefix="$exec_prefix"
8972   exec_prefix="$acl_final_exec_prefix"
8973
8974     eval additional_includedir=\"$includedir\"
8975     eval additional_libdir=\"$libdir\"
8976
8977   exec_prefix="$acl_save_exec_prefix"
8978   prefix="$acl_save_prefix"
8979
8980
8981 # Check whether --with-libintl-prefix was given.
8982 if test "${with_libintl_prefix+set}" = set; then :
8983   withval=$with_libintl_prefix;
8984     if test "X$withval" = "Xno"; then
8985       use_additional=no
8986     else
8987       if test "X$withval" = "X"; then
8988
8989   acl_save_prefix="$prefix"
8990   prefix="$acl_final_prefix"
8991   acl_save_exec_prefix="$exec_prefix"
8992   exec_prefix="$acl_final_exec_prefix"
8993
8994           eval additional_includedir=\"$includedir\"
8995           eval additional_libdir=\"$libdir\"
8996
8997   exec_prefix="$acl_save_exec_prefix"
8998   prefix="$acl_save_prefix"
8999
9000       else
9001         additional_includedir="$withval/include"
9002         additional_libdir="$withval/lib"
9003       fi
9004     fi
9005
9006 fi
9007
9008       LIBINTL=
9009   LTLIBINTL=
9010   INCINTL=
9011   rpathdirs=
9012   ltrpathdirs=
9013   names_already_handled=
9014   names_next_round='intl '
9015   while test -n "$names_next_round"; do
9016     names_this_round="$names_next_round"
9017     names_next_round=
9018     for name in $names_this_round; do
9019       already_handled=
9020       for n in $names_already_handled; do
9021         if test "$n" = "$name"; then
9022           already_handled=yes
9023           break
9024         fi
9025       done
9026       if test -z "$already_handled"; then
9027         names_already_handled="$names_already_handled $name"
9028                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9029         eval value=\"\$HAVE_LIB$uppername\"
9030         if test -n "$value"; then
9031           if test "$value" = yes; then
9032             eval value=\"\$LIB$uppername\"
9033             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9034             eval value=\"\$LTLIB$uppername\"
9035             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9036           else
9037                                     :
9038           fi
9039         else
9040                               found_dir=
9041           found_la=
9042           found_so=
9043           found_a=
9044           if test $use_additional = yes; then
9045             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9046               found_dir="$additional_libdir"
9047               found_so="$additional_libdir/lib$name.$shlibext"
9048               if test -f "$additional_libdir/lib$name.la"; then
9049                 found_la="$additional_libdir/lib$name.la"
9050               fi
9051             else
9052               if test -f "$additional_libdir/lib$name.$libext"; then
9053                 found_dir="$additional_libdir"
9054                 found_a="$additional_libdir/lib$name.$libext"
9055                 if test -f "$additional_libdir/lib$name.la"; then
9056                   found_la="$additional_libdir/lib$name.la"
9057                 fi
9058               fi
9059             fi
9060           fi
9061           if test "X$found_dir" = "X"; then
9062             for x in $LDFLAGS $LTLIBINTL; do
9063
9064   acl_save_prefix="$prefix"
9065   prefix="$acl_final_prefix"
9066   acl_save_exec_prefix="$exec_prefix"
9067   exec_prefix="$acl_final_exec_prefix"
9068   eval x=\"$x\"
9069   exec_prefix="$acl_save_exec_prefix"
9070   prefix="$acl_save_prefix"
9071
9072               case "$x" in
9073                 -L*)
9074                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9075                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9076                     found_dir="$dir"
9077                     found_so="$dir/lib$name.$shlibext"
9078                     if test -f "$dir/lib$name.la"; then
9079                       found_la="$dir/lib$name.la"
9080                     fi
9081                   else
9082                     if test -f "$dir/lib$name.$libext"; then
9083                       found_dir="$dir"
9084                       found_a="$dir/lib$name.$libext"
9085                       if test -f "$dir/lib$name.la"; then
9086                         found_la="$dir/lib$name.la"
9087                       fi
9088                     fi
9089                   fi
9090                   ;;
9091               esac
9092               if test "X$found_dir" != "X"; then
9093                 break
9094               fi
9095             done
9096           fi
9097           if test "X$found_dir" != "X"; then
9098                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9099             if test "X$found_so" != "X"; then
9100                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9101                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9102               else
9103                                                                                 haveit=
9104                 for x in $ltrpathdirs; do
9105                   if test "X$x" = "X$found_dir"; then
9106                     haveit=yes
9107                     break
9108                   fi
9109                 done
9110                 if test -z "$haveit"; then
9111                   ltrpathdirs="$ltrpathdirs $found_dir"
9112                 fi
9113                                 if test "$hardcode_direct" = yes; then
9114                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9115                 else
9116                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9117                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9118                                                             haveit=
9119                     for x in $rpathdirs; do
9120                       if test "X$x" = "X$found_dir"; then
9121                         haveit=yes
9122                         break
9123                       fi
9124                     done
9125                     if test -z "$haveit"; then
9126                       rpathdirs="$rpathdirs $found_dir"
9127                     fi
9128                   else
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$found_dir"; then
9141                         haveit=yes
9142                         break
9143                       fi
9144                     done
9145                     if test -z "$haveit"; then
9146                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9147                     fi
9148                     if test "$hardcode_minus_L" != no; then
9149                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9150                     else
9151                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9152                     fi
9153                   fi
9154                 fi
9155               fi
9156             else
9157               if test "X$found_a" != "X"; then
9158                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9159               else
9160                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9161               fi
9162             fi
9163                         additional_includedir=
9164             case "$found_dir" in
9165               */lib | */lib/)
9166                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9167                 additional_includedir="$basedir/include"
9168                 ;;
9169             esac
9170             if test "X$additional_includedir" != "X"; then
9171                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9172                 haveit=
9173                 if test "X$additional_includedir" = "X/usr/local/include"; then
9174                   if test -n "$GCC"; then
9175                     case $host_os in
9176                       linux*) haveit=yes;;
9177                     esac
9178                   fi
9179                 fi
9180                 if test -z "$haveit"; then
9181                   for x in $CPPFLAGS $INCINTL; do
9182
9183   acl_save_prefix="$prefix"
9184   prefix="$acl_final_prefix"
9185   acl_save_exec_prefix="$exec_prefix"
9186   exec_prefix="$acl_final_exec_prefix"
9187   eval x=\"$x\"
9188   exec_prefix="$acl_save_exec_prefix"
9189   prefix="$acl_save_prefix"
9190
9191                     if test "X$x" = "X-I$additional_includedir"; then
9192                       haveit=yes
9193                       break
9194                     fi
9195                   done
9196                   if test -z "$haveit"; then
9197                     if test -d "$additional_includedir"; then
9198                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9199                     fi
9200                   fi
9201                 fi
9202               fi
9203             fi
9204                         if test -n "$found_la"; then
9205                                                         save_libdir="$libdir"
9206               case "$found_la" in
9207                 */* | *\\*) . "$found_la" ;;
9208                 *) . "./$found_la" ;;
9209               esac
9210               libdir="$save_libdir"
9211                             for dep in $dependency_libs; do
9212                 case "$dep" in
9213                   -L*)
9214                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9215                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9216                       haveit=
9217                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9218                         if test -n "$GCC"; then
9219                           case $host_os in
9220                             linux*) haveit=yes;;
9221                           esac
9222                         fi
9223                       fi
9224                       if test -z "$haveit"; then
9225                         haveit=
9226                         for x in $LDFLAGS $LIBINTL; do
9227
9228   acl_save_prefix="$prefix"
9229   prefix="$acl_final_prefix"
9230   acl_save_exec_prefix="$exec_prefix"
9231   exec_prefix="$acl_final_exec_prefix"
9232   eval x=\"$x\"
9233   exec_prefix="$acl_save_exec_prefix"
9234   prefix="$acl_save_prefix"
9235
9236                           if test "X$x" = "X-L$additional_libdir"; then
9237                             haveit=yes
9238                             break
9239                           fi
9240                         done
9241                         if test -z "$haveit"; then
9242                           if test -d "$additional_libdir"; then
9243                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9244                           fi
9245                         fi
9246                         haveit=
9247                         for x in $LDFLAGS $LTLIBINTL; do
9248
9249   acl_save_prefix="$prefix"
9250   prefix="$acl_final_prefix"
9251   acl_save_exec_prefix="$exec_prefix"
9252   exec_prefix="$acl_final_exec_prefix"
9253   eval x=\"$x\"
9254   exec_prefix="$acl_save_exec_prefix"
9255   prefix="$acl_save_prefix"
9256
9257                           if test "X$x" = "X-L$additional_libdir"; then
9258                             haveit=yes
9259                             break
9260                           fi
9261                         done
9262                         if test -z "$haveit"; then
9263                           if test -d "$additional_libdir"; then
9264                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9265                           fi
9266                         fi
9267                       fi
9268                     fi
9269                     ;;
9270                   -R*)
9271                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9272                     if test "$enable_rpath" != no; then
9273                                                                   haveit=
9274                       for x in $rpathdirs; do
9275                         if test "X$x" = "X$dir"; then
9276                           haveit=yes
9277                           break
9278                         fi
9279                       done
9280                       if test -z "$haveit"; then
9281                         rpathdirs="$rpathdirs $dir"
9282                       fi
9283                                                                   haveit=
9284                       for x in $ltrpathdirs; do
9285                         if test "X$x" = "X$dir"; then
9286                           haveit=yes
9287                           break
9288                         fi
9289                       done
9290                       if test -z "$haveit"; then
9291                         ltrpathdirs="$ltrpathdirs $dir"
9292                       fi
9293                     fi
9294                     ;;
9295                   -l*)
9296                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9297                     ;;
9298                   *.la)
9299                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9300                     ;;
9301                   *)
9302                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9303                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9304                     ;;
9305                 esac
9306               done
9307             fi
9308           else
9309                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9310             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9311           fi
9312         fi
9313       fi
9314     done
9315   done
9316   if test "X$rpathdirs" != "X"; then
9317     if test -n "$hardcode_libdir_separator"; then
9318                         alldirs=
9319       for found_dir in $rpathdirs; do
9320         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9321       done
9322             acl_save_libdir="$libdir"
9323       libdir="$alldirs"
9324       eval flag=\"$hardcode_libdir_flag_spec\"
9325       libdir="$acl_save_libdir"
9326       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9327     else
9328             for found_dir in $rpathdirs; do
9329         acl_save_libdir="$libdir"
9330         libdir="$found_dir"
9331         eval flag=\"$hardcode_libdir_flag_spec\"
9332         libdir="$acl_save_libdir"
9333         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9334       done
9335     fi
9336   fi
9337   if test "X$ltrpathdirs" != "X"; then
9338             for found_dir in $ltrpathdirs; do
9339       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9340     done
9341   fi
9342
9343           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9344 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9345 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   gt_save_CPPFLAGS="$CPPFLAGS"
9349             CPPFLAGS="$CPPFLAGS $INCINTL"
9350             gt_save_LIBS="$LIBS"
9351             LIBS="$LIBS $LIBINTL"
9352                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h.  */
9354 #include <libintl.h>
9355 extern int _nl_msg_cat_cntr;
9356 extern
9357 #ifdef __cplusplus
9358 "C"
9359 #endif
9360 const char *_nl_expand_alias ();
9361 int
9362 main ()
9363 {
9364 bindtextdomain ("", "");
9365 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371   gt_cv_func_gnugettext1_libintl=yes
9372 else
9373   gt_cv_func_gnugettext1_libintl=no
9374 fi
9375 rm -f core conftest.err conftest.$ac_objext \
9376     conftest$ac_exeext conftest.$ac_ext
9377                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9378               LIBS="$LIBS $LIBICONV"
9379               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h.  */
9381 #include <libintl.h>
9382 extern int _nl_msg_cat_cntr;
9383 extern
9384 #ifdef __cplusplus
9385 "C"
9386 #endif
9387 const char *_nl_expand_alias ();
9388 int
9389 main ()
9390 {
9391 bindtextdomain ("", "");
9392 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398   LIBINTL="$LIBINTL $LIBICONV"
9399                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9400                 gt_cv_func_gnugettext1_libintl=yes
9401
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404     conftest$ac_exeext conftest.$ac_ext
9405             fi
9406             CPPFLAGS="$gt_save_CPPFLAGS"
9407             LIBS="$gt_save_LIBS"
9408 fi
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9410 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9411         fi
9412
9413                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9414            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9415                 && test "$PACKAGE" != gettext-runtime \
9416                 && test "$PACKAGE" != gettext-tools; }; then
9417           gt_use_preinstalled_gnugettext=yes
9418         else
9419                     LIBINTL=
9420           LTLIBINTL=
9421           INCINTL=
9422         fi
9423
9424
9425         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9426                               nls_cv_use_gnu_gettext=yes
9427         fi
9428       fi
9429
9430       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9431                 BUILD_INCLUDED_LIBINTL=yes
9432         USE_INCLUDED_LIBINTL=yes
9433         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9434         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9435         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9436       fi
9437
9438       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9439          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9440                 CATOBJEXT=.gmo
9441       fi
9442
9443
9444     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9445        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9446
9447 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9448
9449     else
9450       USE_NLS=no
9451     fi
9452   fi
9453
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9455 $as_echo_n "checking whether to use NLS... " >&6; }
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9457 $as_echo "$USE_NLS" >&6; }
9458   if test "$USE_NLS" = "yes"; then
9459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9460 $as_echo_n "checking where the gettext function comes from... " >&6; }
9461     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9462       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9463         gt_source="external libintl"
9464       else
9465         gt_source="libc"
9466       fi
9467     else
9468       gt_source="included intl directory"
9469     fi
9470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9471 $as_echo "$gt_source" >&6; }
9472   fi
9473
9474   if test "$USE_NLS" = "yes"; then
9475
9476     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9477       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9479 $as_echo_n "checking how to link with libintl... " >&6; }
9480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9481 $as_echo "$LIBINTL" >&6; }
9482
9483   for element in $INCINTL; do
9484     haveit=
9485     for x in $CPPFLAGS; do
9486
9487   acl_save_prefix="$prefix"
9488   prefix="$acl_final_prefix"
9489   acl_save_exec_prefix="$exec_prefix"
9490   exec_prefix="$acl_final_exec_prefix"
9491   eval x=\"$x\"
9492   exec_prefix="$acl_save_exec_prefix"
9493   prefix="$acl_save_prefix"
9494
9495       if test "X$x" = "X$element"; then
9496         haveit=yes
9497         break
9498       fi
9499     done
9500     if test -z "$haveit"; then
9501       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9502     fi
9503   done
9504
9505       fi
9506
9507
9508 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9509
9510
9511 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9512
9513     fi
9514
9515         POSUB=po
9516   fi
9517
9518
9519             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9520       BUILD_INCLUDED_LIBINTL=yes
9521     fi
9522
9523
9524
9525
9526
9527         nls_cv_header_intl=
9528     nls_cv_header_libgt=
9529
9530         DATADIRNAME=share
9531
9532
9533         INSTOBJEXT=.mo
9534
9535
9536         GENCAT=gencat
9537
9538
9539         if test "$USE_INCLUDED_LIBINTL" = yes; then
9540       INTLOBJS="\$(GETTOBJS)"
9541     fi
9542
9543
9544         INTL_LIBTOOL_SUFFIX_PREFIX=
9545
9546
9547
9548     INTLLIBS="$LIBINTL"
9549
9550
9551
9552
9553
9554
9555
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9557 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9558 set x ${MAKE-make}
9559 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9560 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   cat >conftest.make <<\_ACEOF
9564 SHELL = /bin/sh
9565 all:
9566         @echo '@@@%%%=$(MAKE)=@@@%%%'
9567 _ACEOF
9568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9570   *@@@%%%=?*=@@@%%%*)
9571     eval ac_cv_prog_make_${ac_make}_set=yes;;
9572   *)
9573     eval ac_cv_prog_make_${ac_make}_set=no;;
9574 esac
9575 rm -f conftest.make
9576 fi
9577 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9579 $as_echo "yes" >&6; }
9580   SET_MAKE=
9581 else
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584   SET_MAKE="MAKE=${MAKE-make}"
9585 fi
9586
9587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9588 $as_echo_n "checking for GNU make... " >&6; }
9589 if ${_cv_gnu_make_command+:} false; then :
9590   $as_echo_n "(cached) " >&6
9591 else
9592   _cv_gnu_make_command='' ;
9593                 for a in "$MAKE" make gmake gnumake ; do
9594                         if test -z "$a" ; then continue ; fi ;
9595                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9596                                 _cv_gnu_make_command=$a ;
9597                                 break;
9598                         fi
9599                 done ;
9600
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9603 $as_echo "$_cv_gnu_make_command" >&6; } ;
9604         if test  "x$_cv_gnu_make_command" != "x"  ; then
9605                 ifGNUmake='' ;
9606                 ifNotGNUmake='#' ;
9607         else
9608                 ifGNUmake='#' ;
9609                 ifNotGNUmake='' ;
9610                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9611 $as_echo "\"Not found\"" >&6; };
9612         fi
9613
9614
9615
9616 # Extract the first word of "ln", so it can be a program name with args.
9617 set dummy ln; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_path_LN+:} false; then :
9621   $as_echo_n "(cached) " >&6
9622 else
9623   case $LN in
9624   [\\/]* | ?:[\\/]*)
9625   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9626   ;;
9627   *)
9628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9630 do
9631   IFS=$as_save_IFS
9632   test -z "$as_dir" && as_dir=.
9633     for ac_exec_ext in '' $ac_executable_extensions; do
9634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637     break 2
9638   fi
9639 done
9640   done
9641 IFS=$as_save_IFS
9642
9643   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9644   ;;
9645 esac
9646 fi
9647 LN=$ac_cv_path_LN
9648 if test -n "$LN"; then
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9650 $as_echo "$LN" >&6; }
9651 else
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 fi
9655
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9658 $as_echo_n "checking whether ln -s works... " >&6; }
9659 LN_S=$as_ln_s
9660 if test "$LN_S" = "ln -s"; then
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9662 $as_echo "yes" >&6; }
9663 else
9664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9665 $as_echo "no, using $LN_S" >&6; }
9666 fi
9667
9668 # Extract the first word of "mv", so it can be a program name with args.
9669 set dummy mv; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_path_MV+:} false; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   case $MV in
9676   [\\/]* | ?:[\\/]*)
9677   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9678   ;;
9679   *)
9680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683   IFS=$as_save_IFS
9684   test -z "$as_dir" && as_dir=.
9685     for ac_exec_ext in '' $ac_executable_extensions; do
9686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689     break 2
9690   fi
9691 done
9692   done
9693 IFS=$as_save_IFS
9694
9695   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9696   ;;
9697 esac
9698 fi
9699 MV=$ac_cv_path_MV
9700 if test -n "$MV"; then
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9702 $as_echo "$MV" >&6; }
9703 else
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9706 fi
9707
9708
9709 # Extract the first word of "cp", so it can be a program name with args.
9710 set dummy cp; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if ${ac_cv_path_CP+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   case $CP in
9717   [\\/]* | ?:[\\/]*)
9718   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9719   ;;
9720   *)
9721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9723 do
9724   IFS=$as_save_IFS
9725   test -z "$as_dir" && as_dir=.
9726     for ac_exec_ext in '' $ac_executable_extensions; do
9727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730     break 2
9731   fi
9732 done
9733   done
9734 IFS=$as_save_IFS
9735
9736   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9737   ;;
9738 esac
9739 fi
9740 CP=$ac_cv_path_CP
9741 if test -n "$CP"; then
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9743 $as_echo "$CP" >&6; }
9744 else
9745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9747 fi
9748
9749
9750 # Extract the first word of "rm", so it can be a program name with args.
9751 set dummy rm; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_RM+:} false; then :
9755   $as_echo_n "(cached) " >&6
9756 else
9757   case $RM in
9758   [\\/]* | ?:[\\/]*)
9759   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9760   ;;
9761   *)
9762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9764 do
9765   IFS=$as_save_IFS
9766   test -z "$as_dir" && as_dir=.
9767     for ac_exec_ext in '' $ac_executable_extensions; do
9768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771     break 2
9772   fi
9773 done
9774   done
9775 IFS=$as_save_IFS
9776
9777   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9778   ;;
9779 esac
9780 fi
9781 RM=$ac_cv_path_RM
9782 if test -n "$RM"; then
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9784 $as_echo "$RM" >&6; }
9785 else
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 fi
9789
9790
9791 # Extract the first word of "chmod", so it can be a program name with args.
9792 set dummy chmod; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_path_CHMOD+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   case $CHMOD in
9799   [\\/]* | ?:[\\/]*)
9800   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9801   ;;
9802   *)
9803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808     for ac_exec_ext in '' $ac_executable_extensions; do
9809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815   done
9816 IFS=$as_save_IFS
9817
9818   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9819   ;;
9820 esac
9821 fi
9822 CHMOD=$ac_cv_path_CHMOD
9823 if test -n "$CHMOD"; then
9824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9825 $as_echo "$CHMOD" >&6; }
9826 else
9827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 fi
9830
9831
9832 for ac_prog in gawk mawk nawk awk
9833 do
9834   # Extract the first word of "$ac_prog", so it can be a program name with args.
9835 set dummy $ac_prog; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_prog_AWK+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   if test -n "$AWK"; then
9842   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9843 else
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH
9846 do
9847   IFS=$as_save_IFS
9848   test -z "$as_dir" && as_dir=.
9849     for ac_exec_ext in '' $ac_executable_extensions; do
9850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9851     ac_cv_prog_AWK="$ac_prog"
9852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853     break 2
9854   fi
9855 done
9856   done
9857 IFS=$as_save_IFS
9858
9859 fi
9860 fi
9861 AWK=$ac_cv_prog_AWK
9862 if test -n "$AWK"; then
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9864 $as_echo "$AWK" >&6; }
9865 else
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869
9870
9871   test -n "$AWK" && break
9872 done
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9875 $as_echo_n "checking for egrep... " >&6; }
9876 if ${ac_cv_path_EGREP+:} false; then :
9877   $as_echo_n "(cached) " >&6
9878 else
9879   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9880    then ac_cv_path_EGREP="$GREP -E"
9881    else
9882      if test -z "$EGREP"; then
9883   ac_path_EGREP_found=false
9884   # Loop through the user's path and test for each of PROGNAME-LIST
9885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890     for ac_prog in egrep; do
9891     for ac_exec_ext in '' $ac_executable_extensions; do
9892       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9893       as_fn_executable_p "$ac_path_EGREP" || continue
9894 # Check for GNU ac_path_EGREP and select it if it is found.
9895   # Check for GNU $ac_path_EGREP
9896 case `"$ac_path_EGREP" --version 2>&1` in
9897 *GNU*)
9898   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9899 *)
9900   ac_count=0
9901   $as_echo_n 0123456789 >"conftest.in"
9902   while :
9903   do
9904     cat "conftest.in" "conftest.in" >"conftest.tmp"
9905     mv "conftest.tmp" "conftest.in"
9906     cp "conftest.in" "conftest.nl"
9907     $as_echo 'EGREP' >> "conftest.nl"
9908     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9910     as_fn_arith $ac_count + 1 && ac_count=$as_val
9911     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9912       # Best one so far, save it but keep looking for a better one
9913       ac_cv_path_EGREP="$ac_path_EGREP"
9914       ac_path_EGREP_max=$ac_count
9915     fi
9916     # 10*(2^10) chars as input seems more than enough
9917     test $ac_count -gt 10 && break
9918   done
9919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9920 esac
9921
9922       $ac_path_EGREP_found && break 3
9923     done
9924   done
9925   done
9926 IFS=$as_save_IFS
9927   if test -z "$ac_cv_path_EGREP"; then
9928     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9929   fi
9930 else
9931   ac_cv_path_EGREP=$EGREP
9932 fi
9933
9934    fi
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9937 $as_echo "$ac_cv_path_EGREP" >&6; }
9938  EGREP="$ac_cv_path_EGREP"
9939
9940
9941 # Extract the first word of "sed", so it can be a program name with args.
9942 set dummy sed; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_SED+:} false; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   case $SED in
9949   [\\/]* | ?:[\\/]*)
9950   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9951   ;;
9952   *)
9953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9955 do
9956   IFS=$as_save_IFS
9957   test -z "$as_dir" && as_dir=.
9958     for ac_exec_ext in '' $ac_executable_extensions; do
9959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962     break 2
9963   fi
9964 done
9965   done
9966 IFS=$as_save_IFS
9967
9968   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9969   ;;
9970 esac
9971 fi
9972 SED=$ac_cv_path_SED
9973 if test -n "$SED"; then
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9975 $as_echo "$SED" >&6; }
9976 else
9977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9979 fi
9980
9981
9982 # Extract the first word of "perl", so it can be a program name with args.
9983 set dummy perl; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_PERL+:} false; then :
9987   $as_echo_n "(cached) " >&6
9988 else
9989   case $PERL in
9990   [\\/]* | ?:[\\/]*)
9991   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9992   ;;
9993   *)
9994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997   IFS=$as_save_IFS
9998   test -z "$as_dir" && as_dir=.
9999     for ac_exec_ext in '' $ac_executable_extensions; do
10000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003     break 2
10004   fi
10005 done
10006   done
10007 IFS=$as_save_IFS
10008
10009   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10010   ;;
10011 esac
10012 fi
10013 PERL=$ac_cv_path_PERL
10014 if test -n "$PERL"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10016 $as_echo "$PERL" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021
10022
10023 # Extract the first word of "ldconfig", so it can be a program name with args.
10024 set dummy ldconfig; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if ${ac_cv_path_LDCONFIG+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   case $LDCONFIG in
10031   [\\/]* | ?:[\\/]*)
10032   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10033   ;;
10034   *)
10035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10037 do
10038   IFS=$as_save_IFS
10039   test -z "$as_dir" && as_dir=.
10040     for ac_exec_ext in '' $ac_executable_extensions; do
10041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044     break 2
10045   fi
10046 done
10047   done
10048 IFS=$as_save_IFS
10049
10050   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10051   ;;
10052 esac
10053 fi
10054 LDCONFIG=$ac_cv_path_LDCONFIG
10055 if test -n "$LDCONFIG"; then
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10057 $as_echo "$LDCONFIG" >&6; }
10058 else
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062
10063
10064 if test -n "$ac_tool_prefix"; then
10065   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10066 set dummy ${ac_tool_prefix}ar; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_prog_AR+:} false; then :
10070   $as_echo_n "(cached) " >&6
10071 else
10072   if test -n "$AR"; then
10073   ac_cv_prog_AR="$AR" # Let the user override the test.
10074 else
10075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076 for as_dir in $PATH
10077 do
10078   IFS=$as_save_IFS
10079   test -z "$as_dir" && as_dir=.
10080     for ac_exec_ext in '' $ac_executable_extensions; do
10081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10082     ac_cv_prog_AR="${ac_tool_prefix}ar"
10083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084     break 2
10085   fi
10086 done
10087   done
10088 IFS=$as_save_IFS
10089
10090 fi
10091 fi
10092 AR=$ac_cv_prog_AR
10093 if test -n "$AR"; then
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10095 $as_echo "$AR" >&6; }
10096 else
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100
10101
10102 fi
10103 if test -z "$ac_cv_prog_AR"; then
10104   ac_ct_AR=$AR
10105   # Extract the first word of "ar", so it can be a program name with args.
10106 set dummy ar; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112   if test -n "$ac_ct_AR"; then
10113   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10114 else
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10117 do
10118   IFS=$as_save_IFS
10119   test -z "$as_dir" && as_dir=.
10120     for ac_exec_ext in '' $ac_executable_extensions; do
10121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10122     ac_cv_prog_ac_ct_AR="ar"
10123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124     break 2
10125   fi
10126 done
10127   done
10128 IFS=$as_save_IFS
10129
10130 fi
10131 fi
10132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10133 if test -n "$ac_ct_AR"; then
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10135 $as_echo "$ac_ct_AR" >&6; }
10136 else
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10139 fi
10140
10141   if test "x$ac_ct_AR" = x; then
10142     AR="ar"
10143   else
10144     case $cross_compiling:$ac_tool_warned in
10145 yes:)
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10148 ac_tool_warned=yes ;;
10149 esac
10150     AR=$ac_ct_AR
10151   fi
10152 else
10153   AR="$ac_cv_prog_AR"
10154 fi
10155
10156 if test -n "$ac_tool_prefix"; then
10157   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_prog_RANLIB+:} false; then :
10162   $as_echo_n "(cached) " >&6
10163 else
10164   if test -n "$RANLIB"; then
10165   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170   IFS=$as_save_IFS
10171   test -z "$as_dir" && as_dir=.
10172     for ac_exec_ext in '' $ac_executable_extensions; do
10173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176     break 2
10177   fi
10178 done
10179   done
10180 IFS=$as_save_IFS
10181
10182 fi
10183 fi
10184 RANLIB=$ac_cv_prog_RANLIB
10185 if test -n "$RANLIB"; then
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10187 $as_echo "$RANLIB" >&6; }
10188 else
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192
10193
10194 fi
10195 if test -z "$ac_cv_prog_RANLIB"; then
10196   ac_ct_RANLIB=$RANLIB
10197   # Extract the first word of "ranlib", so it can be a program name with args.
10198 set dummy ranlib; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10202   $as_echo_n "(cached) " >&6
10203 else
10204   if test -n "$ac_ct_RANLIB"; then
10205   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210   IFS=$as_save_IFS
10211   test -z "$as_dir" && as_dir=.
10212     for ac_exec_ext in '' $ac_executable_extensions; do
10213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214     ac_cv_prog_ac_ct_RANLIB="ranlib"
10215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216     break 2
10217   fi
10218 done
10219   done
10220 IFS=$as_save_IFS
10221
10222 fi
10223 fi
10224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10225 if test -n "$ac_ct_RANLIB"; then
10226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10227 $as_echo "$ac_ct_RANLIB" >&6; }
10228 else
10229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10231 fi
10232
10233   if test "x$ac_ct_RANLIB" = x; then
10234     RANLIB=":"
10235   else
10236     case $cross_compiling:$ac_tool_warned in
10237 yes:)
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10240 ac_tool_warned=yes ;;
10241 esac
10242     RANLIB=$ac_ct_RANLIB
10243   fi
10244 else
10245   RANLIB="$ac_cv_prog_RANLIB"
10246 fi
10247
10248 if test -n "$ac_tool_prefix"; then
10249   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10250 set dummy ${ac_tool_prefix}strip; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if ${ac_cv_prog_STRIP+:} false; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   if test -n "$STRIP"; then
10257   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10258 else
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262   IFS=$as_save_IFS
10263   test -z "$as_dir" && as_dir=.
10264     for ac_exec_ext in '' $ac_executable_extensions; do
10265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10266     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268     break 2
10269   fi
10270 done
10271   done
10272 IFS=$as_save_IFS
10273
10274 fi
10275 fi
10276 STRIP=$ac_cv_prog_STRIP
10277 if test -n "$STRIP"; then
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10279 $as_echo "$STRIP" >&6; }
10280 else
10281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 fi
10284
10285
10286 fi
10287 if test -z "$ac_cv_prog_STRIP"; then
10288   ac_ct_STRIP=$STRIP
10289   # Extract the first word of "strip", so it can be a program name with args.
10290 set dummy strip; ac_word=$2
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292 $as_echo_n "checking for $ac_word... " >&6; }
10293 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10294   $as_echo_n "(cached) " >&6
10295 else
10296   if test -n "$ac_ct_STRIP"; then
10297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10298 else
10299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300 for as_dir in $PATH
10301 do
10302   IFS=$as_save_IFS
10303   test -z "$as_dir" && as_dir=.
10304     for ac_exec_ext in '' $ac_executable_extensions; do
10305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10306     ac_cv_prog_ac_ct_STRIP="strip"
10307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308     break 2
10309   fi
10310 done
10311   done
10312 IFS=$as_save_IFS
10313
10314 fi
10315 fi
10316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10317 if test -n "$ac_ct_STRIP"; then
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10319 $as_echo "$ac_ct_STRIP" >&6; }
10320 else
10321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 fi
10324
10325   if test "x$ac_ct_STRIP" = x; then
10326     STRIP=":"
10327   else
10328     case $cross_compiling:$ac_tool_warned in
10329 yes:)
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10332 ac_tool_warned=yes ;;
10333 esac
10334     STRIP=$ac_ct_STRIP
10335   fi
10336 else
10337   STRIP="$ac_cv_prog_STRIP"
10338 fi
10339
10340 # Extract the first word of "makeinfo", so it can be a program name with args.
10341 set dummy makeinfo; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_MAKEINFO+:} false; then :
10345   $as_echo_n "(cached) " >&6
10346 else
10347   if test -n "$MAKEINFO"; then
10348   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10352 do
10353   IFS=$as_save_IFS
10354   test -z "$as_dir" && as_dir=.
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_MAKEINFO="makeinfo"
10358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362   done
10363 IFS=$as_save_IFS
10364
10365 fi
10366 fi
10367 MAKEINFO=$ac_cv_prog_MAKEINFO
10368 if test -n "$MAKEINFO"; then
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10370 $as_echo "$MAKEINFO" >&6; }
10371 else
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375
10376
10377 if test "_$MAKEINFO" = "_"; then
10378     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10379 else
10380     case "$MAKEINFO" in
10381       */missing.*)
10382         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10383 *** Makeinfo is missing. Info documentation will not be built." >&5
10384 $as_echo "$as_me: WARNING:
10385 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10386         ;;
10387       *)
10388         ;;
10389     esac
10390 fi
10391
10392
10393 # See if we need a separate native compiler.
10394 if test $cross_compiling = no; then
10395   BUILD_CC="$CC"
10396
10397 else
10398   for ac_prog in gcc cc
10399 do
10400   # Extract the first word of "$ac_prog", so it can be a program name with args.
10401 set dummy $ac_prog; ac_word=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if ${ac_cv_prog_BUILD_CC+:} false; then :
10405   $as_echo_n "(cached) " >&6
10406 else
10407   if test -n "$BUILD_CC"; then
10408   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10409 else
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413   IFS=$as_save_IFS
10414   test -z "$as_dir" && as_dir=.
10415     for ac_exec_ext in '' $ac_executable_extensions; do
10416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417     ac_cv_prog_BUILD_CC="$ac_prog"
10418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419     break 2
10420   fi
10421 done
10422   done
10423 IFS=$as_save_IFS
10424
10425 fi
10426 fi
10427 BUILD_CC=$ac_cv_prog_BUILD_CC
10428 if test -n "$BUILD_CC"; then
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10430 $as_echo "$BUILD_CC" >&6; }
10431 else
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433 $as_echo "no" >&6; }
10434 fi
10435
10436
10437   test -n "$BUILD_CC" && break
10438 done
10439
10440 fi
10441 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/file.h      sys/ioctl.h     sys/mkdev.h     sys/mman.h      sys/prctl.h     sys/queue.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h
10442 do :
10443   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10446   cat >>confdefs.h <<_ACEOF
10447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10449
10450 fi
10451
10452 done
10453
10454 for ac_header in sys/disk.h sys/mount.h
10455 do :
10456   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10458 #if HAVE_SYS_QUEUE_H
10459 #include <sys/queue.h>
10460 #endif
10461
10462 "
10463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10464   cat >>confdefs.h <<_ACEOF
10465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10466 _ACEOF
10467
10468 fi
10469
10470 done
10471
10472 for ac_header in net/if.h
10473 do :
10474   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10475 #if HAVE_SYS_TYPES_H
10476 #include <sys/types.h>
10477 #endif
10478 #if HAVE_SYS_SOCKET
10479 #include <sys/socket.h>
10480 #endif
10481
10482 "
10483 if test "x$ac_cv_header_net_if_h" = xyes; then :
10484   cat >>confdefs.h <<_ACEOF
10485 #define HAVE_NET_IF_H 1
10486 _ACEOF
10487
10488 fi
10489
10490 done
10491
10492 for ac_func in vprintf
10493 do :
10494   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10495 if test "x$ac_cv_func_vprintf" = xyes; then :
10496   cat >>confdefs.h <<_ACEOF
10497 #define HAVE_VPRINTF 1
10498 _ACEOF
10499
10500 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10501 if test "x$ac_cv_func__doprnt" = xyes; then :
10502
10503 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10504
10505 fi
10506
10507 fi
10508 done
10509
10510
10511 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10512 "
10513 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10514
10515 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10516
10517 fi
10518
10519 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10520 "
10521 if test "x$ac_cv_type_ssize_t" = xyes; then :
10522
10523 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10524
10525 fi
10526
10527 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10528 "
10529 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10530
10531 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10532
10533 fi
10534
10535 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10536                  #define _LARGEFILE64_SOURCE
10537                  #include <unistd.h>
10538 "
10539 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10540
10541 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10542
10543 fi
10544
10545 # The cast to long int works around a bug in the HP C Compiler
10546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10548 # This bug is HP SR number 8606223364.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10550 $as_echo_n "checking size of short... " >&6; }
10551 if ${ac_cv_sizeof_short+:} false; then :
10552   $as_echo_n "(cached) " >&6
10553 else
10554   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10555
10556 else
10557   if test "$ac_cv_type_short" = yes; then
10558      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10560 as_fn_error 77 "cannot compute sizeof (short)
10561 See \`config.log' for more details" "$LINENO" 5; }
10562    else
10563      ac_cv_sizeof_short=0
10564    fi
10565 fi
10566
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10569 $as_echo "$ac_cv_sizeof_short" >&6; }
10570
10571
10572
10573 cat >>confdefs.h <<_ACEOF
10574 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
10583 $as_echo_n "checking size of int... " >&6; }
10584 if ${ac_cv_sizeof_int+:} false; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10588
10589 else
10590   if test "$ac_cv_type_int" = 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_error 77 "cannot compute sizeof (int)
10594 See \`config.log' for more details" "$LINENO" 5; }
10595    else
10596      ac_cv_sizeof_int=0
10597    fi
10598 fi
10599
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10602 $as_echo "$ac_cv_sizeof_int" >&6; }
10603
10604
10605
10606 cat >>confdefs.h <<_ACEOF
10607 #define SIZEOF_INT $ac_cv_sizeof_int
10608 _ACEOF
10609
10610
10611 # The cast to long int works around a bug in the HP C Compiler
10612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10614 # This bug is HP SR number 8606223364.
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10616 $as_echo_n "checking size of long... " >&6; }
10617 if ${ac_cv_sizeof_long+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10621
10622 else
10623   if test "$ac_cv_type_long" = yes; then
10624      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10626 as_fn_error 77 "cannot compute sizeof (long)
10627 See \`config.log' for more details" "$LINENO" 5; }
10628    else
10629      ac_cv_sizeof_long=0
10630    fi
10631 fi
10632
10633 fi
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10635 $as_echo "$ac_cv_sizeof_long" >&6; }
10636
10637
10638
10639 cat >>confdefs.h <<_ACEOF
10640 #define SIZEOF_LONG $ac_cv_sizeof_long
10641 _ACEOF
10642
10643
10644 # The cast to long int works around a bug in the HP C Compiler
10645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10647 # This bug is HP SR number 8606223364.
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10649 $as_echo_n "checking size of long long... " >&6; }
10650 if ${ac_cv_sizeof_long_long+:} false; then :
10651   $as_echo_n "(cached) " >&6
10652 else
10653   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10654
10655 else
10656   if test "$ac_cv_type_long_long" = yes; then
10657      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10659 as_fn_error 77 "cannot compute sizeof (long long)
10660 See \`config.log' for more details" "$LINENO" 5; }
10661    else
10662      ac_cv_sizeof_long_long=0
10663    fi
10664 fi
10665
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10668 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10669
10670
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10674 _ACEOF
10675
10676
10677 # The cast to long int works around a bug in the HP C Compiler
10678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680 # This bug is HP SR number 8606223364.
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10682 $as_echo_n "checking size of off_t... " >&6; }
10683 if ${ac_cv_sizeof_off_t+:} false; then :
10684   $as_echo_n "(cached) " >&6
10685 else
10686   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10687
10688 else
10689   if test "$ac_cv_type_off_t" = yes; then
10690      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10692 as_fn_error 77 "cannot compute sizeof (off_t)
10693 See \`config.log' for more details" "$LINENO" 5; }
10694    else
10695      ac_cv_sizeof_off_t=0
10696    fi
10697 fi
10698
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10701 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10702
10703
10704
10705 cat >>confdefs.h <<_ACEOF
10706 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10707 _ACEOF
10708
10709
10710 SIZEOF_SHORT=$ac_cv_sizeof_short
10711 SIZEOF_INT=$ac_cv_sizeof_int
10712 SIZEOF_LONG=$ac_cv_sizeof_long
10713 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10714 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10715
10716
10717
10718
10719
10720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10722 if ${ac_cv_c_bigendian+:} false; then :
10723   $as_echo_n "(cached) " >&6
10724 else
10725   ac_cv_c_bigendian=unknown
10726     # See if we're dealing with a universal compiler.
10727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h.  */
10729 #ifndef __APPLE_CC__
10730                not a universal capable compiler
10731              #endif
10732              typedef int dummy;
10733
10734 _ACEOF
10735 if ac_fn_c_try_compile "$LINENO"; then :
10736
10737         # Check for potential -arch flags.  It is not universal unless
10738         # there are at least two -arch flags with different values.
10739         ac_arch=
10740         ac_prev=
10741         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10742          if test -n "$ac_prev"; then
10743            case $ac_word in
10744              i?86 | x86_64 | ppc | ppc64)
10745                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10746                  ac_arch=$ac_word
10747                else
10748                  ac_cv_c_bigendian=universal
10749                  break
10750                fi
10751                ;;
10752            esac
10753            ac_prev=
10754          elif test "x$ac_word" = "x-arch"; then
10755            ac_prev=arch
10756          fi
10757        done
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760     if test $ac_cv_c_bigendian = unknown; then
10761       # See if sys/param.h defines the BYTE_ORDER macro.
10762       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h.  */
10764 #include <sys/types.h>
10765              #include <sys/param.h>
10766
10767 int
10768 main ()
10769 {
10770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10771                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10772                      && LITTLE_ENDIAN)
10773               bogus endian macros
10774              #endif
10775
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781   # It does; now see whether it defined to BIG_ENDIAN or not.
10782          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h.  */
10784 #include <sys/types.h>
10785                 #include <sys/param.h>
10786
10787 int
10788 main ()
10789 {
10790 #if BYTE_ORDER != BIG_ENDIAN
10791                  not big endian
10792                 #endif
10793
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_compile "$LINENO"; then :
10799   ac_cv_c_bigendian=yes
10800 else
10801   ac_cv_c_bigendian=no
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806     fi
10807     if test $ac_cv_c_bigendian = unknown; then
10808       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811 #include <limits.h>
10812
10813 int
10814 main ()
10815 {
10816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10817               bogus endian macros
10818              #endif
10819
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 if ac_fn_c_try_compile "$LINENO"; then :
10825   # It does; now see whether it defined to _BIG_ENDIAN or not.
10826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h.  */
10828 #include <limits.h>
10829
10830 int
10831 main ()
10832 {
10833 #ifndef _BIG_ENDIAN
10834                  not big endian
10835                 #endif
10836
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842   ac_cv_c_bigendian=yes
10843 else
10844   ac_cv_c_bigendian=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849     fi
10850     if test $ac_cv_c_bigendian = unknown; then
10851       # Compile a test program.
10852       if test "$cross_compiling" = yes; then :
10853   # Try to guess by grepping values from an object file.
10854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h.  */
10856 short int ascii_mm[] =
10857                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10858                 short int ascii_ii[] =
10859                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10860                 int use_ascii (int i) {
10861                   return ascii_mm[i] + ascii_ii[i];
10862                 }
10863                 short int ebcdic_ii[] =
10864                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10865                 short int ebcdic_mm[] =
10866                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10867                 int use_ebcdic (int i) {
10868                   return ebcdic_mm[i] + ebcdic_ii[i];
10869                 }
10870                 extern int foo;
10871
10872 int
10873 main ()
10874 {
10875 return use_ascii (foo) == use_ebcdic (foo);
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_compile "$LINENO"; then :
10881   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10882               ac_cv_c_bigendian=yes
10883             fi
10884             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10885               if test "$ac_cv_c_bigendian" = unknown; then
10886                 ac_cv_c_bigendian=no
10887               else
10888                 # finding both strings is unlikely to happen, but who knows?
10889                 ac_cv_c_bigendian=unknown
10890               fi
10891             fi
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 else
10895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h.  */
10897 $ac_includes_default
10898 int
10899 main ()
10900 {
10901
10902              /* Are we little or big endian?  From Harbison&Steele.  */
10903              union
10904              {
10905                long int l;
10906                char c[sizeof (long int)];
10907              } u;
10908              u.l = 1;
10909              return u.c[sizeof (long int) - 1] == 1;
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_run "$LINENO"; then :
10916   ac_cv_c_bigendian=no
10917 else
10918   ac_cv_c_bigendian=yes
10919 fi
10920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10921   conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 fi
10923
10924     fi
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10927 $as_echo "$ac_cv_c_bigendian" >&6; }
10928  case $ac_cv_c_bigendian in #(
10929    yes)
10930      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10931 ;; #(
10932    no)
10933       ;; #(
10934    universal)
10935
10936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10937
10938      ;; #(
10939    *)
10940      as_fn_error $? "unknown endianness
10941  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10942  esac
10943
10944 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10945 ASM_TYPES_HEADER=./asm_types.h
10946
10947 echo "/* These defines are needed for the public ext2fs.h header file */" \
10948      > public_config.h
10949 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10950   uniq tmp_config.$$ >> public_config.h
10951 else
10952   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10953 fi
10954 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10955   uniq tmp_config.$$ >> public_config.h
10956 else
10957   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10958 fi
10959 rm -f tmp_config.$$
10960 PUBLIC_CONFIG_HEADER=./public_config.h
10961
10962 for ac_header in inttypes.h
10963 do :
10964   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10965 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10966   cat >>confdefs.h <<_ACEOF
10967 #define HAVE_INTTYPES_H 1
10968 _ACEOF
10969
10970 fi
10971
10972 done
10973
10974 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10975 if test "x$ac_cv_type_intptr_t" = xyes; then :
10976
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_INTPTR_T 1
10979 _ACEOF
10980
10981
10982 fi
10983
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10985 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10986 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h.  */
10991 #include <sys/stat.h>
10992 int
10993 main ()
10994 {
10995 struct stat stat; stat.st_flags = 0;
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 if ac_fn_c_try_compile "$LINENO"; then :
11001   e2fsprogs_cv_struct_st_flags=yes
11002 else
11003   e2fsprogs_cv_struct_st_flags=no
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 fi
11007
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11009 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11010 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11012 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11013   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11014   $as_echo_n "(cached) " >&6
11015 else
11016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h.  */
11018 #include <sys/stat.h>
11019 int
11020 main ()
11021 {
11022 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11023   ;
11024   return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_compile "$LINENO"; then :
11028   e2fsprogs_cv_struct_st_flags_immut=yes
11029 else
11030   e2fsprogs_cv_struct_st_flags_immut=no
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 fi
11034
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11036 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11037   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11038
11039 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11040
11041   fi
11042 fi
11043 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11044          #include <sys/socket.h>
11045 "
11046 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11047
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_SA_LEN 1
11050 _ACEOF
11051
11052 fi
11053
11054 if test -n "$BLKID_CMT"; then
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11056 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11057 if ${ac_cv_search_blkid_probe_all+:} false; then :
11058   $as_echo_n "(cached) " >&6
11059 else
11060   ac_func_search_save_LIBS=$LIBS
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h.  */
11063
11064 /* Override any GCC internal prototype to avoid an error.
11065    Use char because int might match the return type of a GCC
11066    builtin and then its argument prototype would still apply.  */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char blkid_probe_all ();
11071 int
11072 main ()
11073 {
11074 return blkid_probe_all ();
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 for ac_lib in '' blkid; do
11080   if test -z "$ac_lib"; then
11081     ac_res="none required"
11082   else
11083     ac_res=-l$ac_lib
11084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11085   fi
11086   if ac_fn_c_try_link "$LINENO"; then :
11087   ac_cv_search_blkid_probe_all=$ac_res
11088 fi
11089 rm -f core conftest.err conftest.$ac_objext \
11090     conftest$ac_exeext
11091   if ${ac_cv_search_blkid_probe_all+:} false; then :
11092   break
11093 fi
11094 done
11095 if ${ac_cv_search_blkid_probe_all+:} false; then :
11096
11097 else
11098   ac_cv_search_blkid_probe_all=no
11099 fi
11100 rm conftest.$ac_ext
11101 LIBS=$ac_func_search_save_LIBS
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11104 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11105 ac_res=$ac_cv_search_blkid_probe_all
11106 if test "$ac_res" != no; then :
11107   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11108
11109 fi
11110
11111 fi
11112 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_memalign  prctl   secure_getenv   setmntent       setresgid       setresuid       srandom         strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11113 do :
11114   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11117   cat >>confdefs.h <<_ACEOF
11118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119 _ACEOF
11120
11121 fi
11122 done
11123
11124 SOCKET_LIB=''
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11126 $as_echo_n "checking for socket in -lsocket... " >&6; }
11127 if ${ac_cv_lib_socket_socket+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lsocket  $LIBS"
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h.  */
11134
11135 /* Override any GCC internal prototype to avoid an error.
11136    Use char because int might match the return type of a GCC
11137    builtin and then its argument prototype would still apply.  */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char socket ();
11142 int
11143 main ()
11144 {
11145 return socket ();
11146   ;
11147   return 0;
11148 }
11149 _ACEOF
11150 if ac_fn_c_try_link "$LINENO"; then :
11151   ac_cv_lib_socket_socket=yes
11152 else
11153   ac_cv_lib_socket_socket=no
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext \
11156     conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11158 fi
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11160 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11161 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11162   SOCKET_LIB=-lsocket
11163 fi
11164
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11167 $as_echo_n "checking for optreset... " >&6; }
11168 if ${ac_cv_have_optreset+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h.  */
11173 #include <unistd.h>
11174
11175 _ACEOF
11176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11177   $EGREP "optreset" >/dev/null 2>&1; then :
11178   ac_cv_have_optreset=yes
11179 else
11180   ac_cv_have_optreset=no
11181 fi
11182 rm -f conftest*
11183
11184 fi
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11186 $as_echo "$ac_cv_have_optreset" >&6; }
11187 if test $ac_cv_have_optreset = yes; then
11188
11189 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11190
11191 fi
11192
11193 SEM_INIT_LIB=''
11194 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11195 if test "x$ac_cv_func_sem_init" = xyes; then :
11196
11197 else
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11199 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11200 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11201   $as_echo_n "(cached) " >&6
11202 else
11203   ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-lpthread  $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h.  */
11207
11208 /* Override any GCC internal prototype to avoid an error.
11209    Use char because int might match the return type of a GCC
11210    builtin and then its argument prototype would still apply.  */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char sem_init ();
11215 int
11216 main ()
11217 {
11218 return sem_init ();
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224   ac_cv_lib_pthread_sem_init=yes
11225 else
11226   ac_cv_lib_pthread_sem_init=no
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext \
11229     conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11233 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11234 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11235   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11236
11237         SEM_INIT_LIB=-lpthread
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11240 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11241 if ${ac_cv_lib_rt_sem_init+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   ac_check_lib_save_LIBS=$LIBS
11245 LIBS="-lrt  $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h.  */
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250    Use char because int might match the return type of a GCC
11251    builtin and then its argument prototype would still apply.  */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char sem_init ();
11256 int
11257 main ()
11258 {
11259 return sem_init ();
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265   ac_cv_lib_rt_sem_init=yes
11266 else
11267   ac_cv_lib_rt_sem_init=no
11268 fi
11269 rm -f core conftest.err conftest.$ac_objext \
11270     conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_lib_save_LIBS
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11274 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11275 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11276   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11277
11278         SEM_INIT_LIB=-lrt
11279 else
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11281 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11282 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11283   $as_echo_n "(cached) " >&6
11284 else
11285   ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lposix4  $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h.  */
11289
11290 /* Override any GCC internal prototype to avoid an error.
11291    Use char because int might match the return type of a GCC
11292    builtin and then its argument prototype would still apply.  */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char sem_init ();
11297 int
11298 main ()
11299 {
11300 return sem_init ();
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306   ac_cv_lib_posix4_sem_init=yes
11307 else
11308   ac_cv_lib_posix4_sem_init=no
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext \
11311     conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11313 fi
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11315 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11316 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11317   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11318
11319         SEM_INIT_LIB=-lposix4
11320 fi
11321
11322 fi
11323
11324 fi
11325
11326 fi
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11329 $as_echo_n "checking for unified diff option... " >&6; }
11330 if diff -u $0 $0 > /dev/null 2>&1 ; then
11331    UNI_DIFF_OPTS=-u
11332 else
11333    UNI_DIFF_OPTS=-c
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11336 $as_echo "$UNI_DIFF_OPTS" >&6; }
11337
11338 case "$host_os" in
11339 linux*)
11340
11341 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11342
11343         ;;
11344 esac
11345 LINUX_CMT="#"
11346 CYGWIN_CMT="#"
11347 UNIX_CMT=
11348 case "$host_os" in
11349 linux*)
11350         LINUX_CMT=
11351         ;;
11352 cygwin)
11353         CYGWIN_CMT=
11354         UNIX_CMT="#"
11355         ;;
11356 esac
11357
11358
11359
11360 case "$host_os" in
11361 linux* | gnu* | k*bsd*-gnu)
11362         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11363                 root_prefix="";
11364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11365 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11366         fi
11367         ;;
11368 esac
11369 case "$host_os" in
11370 linux* | gnu* | k*bsd*-gnu)
11371         if test "$prefix" = NONE ; then
11372                 prefix="/usr";
11373                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11374 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11375                 if test "$mandir" = '${prefix}/man' ; then
11376                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11377 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11378                         mandir=/usr/share/man
11379                 fi
11380         fi
11381 ;;
11382 esac
11383 if test "$root_prefix" = NONE ; then
11384         if test "$prefix" = NONE ; then
11385                 root_prefix="$ac_default_prefix"
11386         else
11387                 root_prefix="$prefix"
11388         fi
11389         root_bindir=$bindir
11390         root_sbindir=$sbindir
11391         root_libdir=$libdir
11392         root_sysconfdir=$sysconfdir
11393 else
11394         root_bindir='${root_prefix}/bin'
11395         root_sbindir='${root_prefix}/sbin'
11396         root_libdir='${root_prefix}/lib'
11397         root_sysconfdir='${root_prefix}/etc'
11398 fi
11399 if test "$bindir" != '${exec_prefix}/bin'; then
11400     root_bindir=$bindir
11401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11402 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11403 fi
11404 if test "$sbindir" != '${exec_prefix}/sbin'; then
11405     root_sbindir=$sbindir
11406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11407 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11408 fi
11409 if test "$libdir" != '${exec_prefix}/lib'; then
11410     root_libdir=$libdir
11411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11412 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11413 fi
11414 if test "$sysconfdir" != '${prefix}/etc'; then
11415     root_sysconfdir=$sysconfdir
11416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11417 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11418 fi
11419
11420
11421
11422
11423
11424
11425 # Check whether --with-multiarch was given.
11426 if test "${with_multiarch+set}" = set; then :
11427   withval=$with_multiarch; libdir=$libdir/$withval
11428 root_libdir=$root_libdir/$withval
11429
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11432 $as_echo_n "checking whether we can link with -static... " >&6; }
11433 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439 #include <stdio.h>
11440 int
11441 main ()
11442 {
11443 fflush(stdout);
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11449   ac_cv_e2fsprogs_use_static=yes
11450 else
11451   ac_cv_e2fsprogs_use_static=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext \
11454     conftest$ac_exeext conftest.$ac_ext
11455 LDFLAGS=$SAVE_LDFLAGS
11456 fi
11457
11458 case "$host_os" in
11459 solaris2.*)
11460         ac_cv_e2fsprogs_use_static=no
11461 ;;
11462 esac
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11464 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11465 LDFLAG_STATIC=
11466 if test $ac_cv_e2fsprogs_use_static = yes; then
11467         LDFLAG_STATIC=-static
11468 fi
11469
11470 case "$host_os" in
11471 darwin*)
11472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11473 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11474
11475 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11476
11477         ;;
11478 esac
11479 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11480 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11481
11482
11483 if test "$cross_compiling" = yes ; then
11484   DO_TEST_SUITE=
11485 else
11486   DO_TEST_SUITE=check
11487 fi
11488
11489 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11490 if test -n "$CPPFLAGS" ; then
11491         INCLUDES="$INCLUDES $CPPFLAGS"
11492 fi
11493 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11494         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11495 fi
11496
11497 if test $cross_compiling = no; then
11498    BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11499    BUILD_LDFLAGS="$LDFLAGS"
11500 else
11501    BUILD_CFLAGS=
11502    BUILD_LDFLAGS=
11503 fi
11504
11505
11506 test -d lib || mkdir lib
11507 test -d include || mkdir include
11508 test -d include/linux || mkdir include/linux
11509 test -d include/asm || mkdir include/asm
11510 for i in MCONFIG Makefile e2fsprogs.spec \
11511         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11512         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11513         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11514         lib/uuid/Makefile lib/uuid/uuid_types.h \
11515         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11516         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11517         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11518         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11519         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11520         resize/Makefile doc/Makefile intl/Makefile \
11521         intl/libgnuintl.h po/Makefile.in ; do
11522         if test -d `dirname ${srcdir}/$i` ; then
11523                 outlist="$outlist $i"
11524         fi
11525 done
11526 ac_config_files="$ac_config_files $outlist"
11527
11528 cat >confcache <<\_ACEOF
11529 # This file is a shell script that caches the results of configure
11530 # tests run on this system so they can be shared between configure
11531 # scripts and configure runs, see configure's option --config-cache.
11532 # It is not useful on other systems.  If it contains results you don't
11533 # want to keep, you may remove or edit it.
11534 #
11535 # config.status only pays attention to the cache file if you give it
11536 # the --recheck option to rerun configure.
11537 #
11538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11540 # following values.
11541
11542 _ACEOF
11543
11544 # The following way of writing the cache mishandles newlines in values,
11545 # but we know of no workaround that is simple, portable, and efficient.
11546 # So, we kill variables containing newlines.
11547 # Ultrix sh set writes to stderr and can't be redirected directly,
11548 # and sets the high bit in the cache file unless we assign to the vars.
11549 (
11550   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11551     eval ac_val=\$$ac_var
11552     case $ac_val in #(
11553     *${as_nl}*)
11554       case $ac_var in #(
11555       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11557       esac
11558       case $ac_var in #(
11559       _ | IFS | as_nl) ;; #(
11560       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11561       *) { eval $ac_var=; unset $ac_var;} ;;
11562       esac ;;
11563     esac
11564   done
11565
11566   (set) 2>&1 |
11567     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11568     *${as_nl}ac_space=\ *)
11569       # `set' does not quote correctly, so add quotes: double-quote
11570       # substitution turns \\\\ into \\, and sed turns \\ into \.
11571       sed -n \
11572         "s/'/'\\\\''/g;
11573           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11574       ;; #(
11575     *)
11576       # `set' quotes correctly as required by POSIX, so do not add quotes.
11577       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11578       ;;
11579     esac |
11580     sort
11581 ) |
11582   sed '
11583      /^ac_cv_env_/b end
11584      t clear
11585      :clear
11586      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11587      t end
11588      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11589      :end' >>confcache
11590 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11591   if test -w "$cache_file"; then
11592     if test "x$cache_file" != "x/dev/null"; then
11593       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11594 $as_echo "$as_me: updating cache $cache_file" >&6;}
11595       if test ! -f "$cache_file" || test -h "$cache_file"; then
11596         cat confcache >"$cache_file"
11597       else
11598         case $cache_file in #(
11599         */* | ?:*)
11600           mv -f confcache "$cache_file"$$ &&
11601           mv -f "$cache_file"$$ "$cache_file" ;; #(
11602         *)
11603           mv -f confcache "$cache_file" ;;
11604         esac
11605       fi
11606     fi
11607   else
11608     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11609 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11610   fi
11611 fi
11612 rm -f confcache
11613
11614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11615 # Let make expand exec_prefix.
11616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11617
11618 DEFS=-DHAVE_CONFIG_H
11619
11620 ac_libobjs=
11621 ac_ltlibobjs=
11622 U=
11623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11624   # 1. Remove the extension, and $U if already installed.
11625   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11626   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11627   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11628   #    will be set to the directory where LIBOBJS objects are built.
11629   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11630   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11631 done
11632 LIBOBJS=$ac_libobjs
11633
11634 LTLIBOBJS=$ac_ltlibobjs
11635
11636
11637
11638
11639 : "${CONFIG_STATUS=./config.status}"
11640 ac_write_fail=0
11641 ac_clean_files_save=$ac_clean_files
11642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11644 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11645 as_write_fail=0
11646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11647 #! $SHELL
11648 # Generated by $as_me.
11649 # Run this file to recreate the current configuration.
11650 # Compiler output produced by configure, useful for debugging
11651 # configure, is in config.log if it exists.
11652
11653 debug=false
11654 ac_cs_recheck=false
11655 ac_cs_silent=false
11656
11657 SHELL=\${CONFIG_SHELL-$SHELL}
11658 export SHELL
11659 _ASEOF
11660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11661 ## -------------------- ##
11662 ## M4sh Initialization. ##
11663 ## -------------------- ##
11664
11665 # Be more Bourne compatible
11666 DUALCASE=1; export DUALCASE # for MKS sh
11667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11668   emulate sh
11669   NULLCMD=:
11670   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11671   # is contrary to our usage.  Disable this feature.
11672   alias -g '${1+"$@"}'='"$@"'
11673   setopt NO_GLOB_SUBST
11674 else
11675   case `(set -o) 2>/dev/null` in #(
11676   *posix*) :
11677     set -o posix ;; #(
11678   *) :
11679      ;;
11680 esac
11681 fi
11682
11683
11684 as_nl='
11685 '
11686 export as_nl
11687 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11688 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11691 # Prefer a ksh shell builtin over an external printf program on Solaris,
11692 # but without wasting forks for bash or zsh.
11693 if test -z "$BASH_VERSION$ZSH_VERSION" \
11694     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11695   as_echo='print -r --'
11696   as_echo_n='print -rn --'
11697 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11698   as_echo='printf %s\n'
11699   as_echo_n='printf %s'
11700 else
11701   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11702     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11703     as_echo_n='/usr/ucb/echo -n'
11704   else
11705     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11706     as_echo_n_body='eval
11707       arg=$1;
11708       case $arg in #(
11709       *"$as_nl"*)
11710         expr "X$arg" : "X\\(.*\\)$as_nl";
11711         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11712       esac;
11713       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11714     '
11715     export as_echo_n_body
11716     as_echo_n='sh -c $as_echo_n_body as_echo'
11717   fi
11718   export as_echo_body
11719   as_echo='sh -c $as_echo_body as_echo'
11720 fi
11721
11722 # The user is always right.
11723 if test "${PATH_SEPARATOR+set}" != set; then
11724   PATH_SEPARATOR=:
11725   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11726     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11727       PATH_SEPARATOR=';'
11728   }
11729 fi
11730
11731
11732 # IFS
11733 # We need space, tab and new line, in precisely that order.  Quoting is
11734 # there to prevent editors from complaining about space-tab.
11735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11736 # splitting by setting IFS to empty value.)
11737 IFS=" ""        $as_nl"
11738
11739 # Find who we are.  Look in the path if we contain no directory separator.
11740 as_myself=
11741 case $0 in #((
11742   *[\\/]* ) as_myself=$0 ;;
11743   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11745 do
11746   IFS=$as_save_IFS
11747   test -z "$as_dir" && as_dir=.
11748     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11749   done
11750 IFS=$as_save_IFS
11751
11752      ;;
11753 esac
11754 # We did not find ourselves, most probably we were run as `sh COMMAND'
11755 # in which case we are not to be found in the path.
11756 if test "x$as_myself" = x; then
11757   as_myself=$0
11758 fi
11759 if test ! -f "$as_myself"; then
11760   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11761   exit 1
11762 fi
11763
11764 # Unset variables that we do not need and which cause bugs (e.g. in
11765 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11766 # suppresses any "Segmentation fault" message there.  '((' could
11767 # trigger a bug in pdksh 5.2.14.
11768 for as_var in BASH_ENV ENV MAIL MAILPATH
11769 do eval test x\${$as_var+set} = xset \
11770   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11771 done
11772 PS1='$ '
11773 PS2='> '
11774 PS4='+ '
11775
11776 # NLS nuisances.
11777 LC_ALL=C
11778 export LC_ALL
11779 LANGUAGE=C
11780 export LANGUAGE
11781
11782 # CDPATH.
11783 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11784
11785
11786 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11787 # ----------------------------------------
11788 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11789 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11790 # script with STATUS, using 1 if that was 0.
11791 as_fn_error ()
11792 {
11793   as_status=$1; test $as_status -eq 0 && as_status=1
11794   if test "$4"; then
11795     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11796     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11797   fi
11798   $as_echo "$as_me: error: $2" >&2
11799   as_fn_exit $as_status
11800 } # as_fn_error
11801
11802
11803 # as_fn_set_status STATUS
11804 # -----------------------
11805 # Set $? to STATUS, without forking.
11806 as_fn_set_status ()
11807 {
11808   return $1
11809 } # as_fn_set_status
11810
11811 # as_fn_exit STATUS
11812 # -----------------
11813 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11814 as_fn_exit ()
11815 {
11816   set +e
11817   as_fn_set_status $1
11818   exit $1
11819 } # as_fn_exit
11820
11821 # as_fn_unset VAR
11822 # ---------------
11823 # Portably unset VAR.
11824 as_fn_unset ()
11825 {
11826   { eval $1=; unset $1;}
11827 }
11828 as_unset=as_fn_unset
11829 # as_fn_append VAR VALUE
11830 # ----------------------
11831 # Append the text in VALUE to the end of the definition contained in VAR. Take
11832 # advantage of any shell optimizations that allow amortized linear growth over
11833 # repeated appends, instead of the typical quadratic growth present in naive
11834 # implementations.
11835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11836   eval 'as_fn_append ()
11837   {
11838     eval $1+=\$2
11839   }'
11840 else
11841   as_fn_append ()
11842   {
11843     eval $1=\$$1\$2
11844   }
11845 fi # as_fn_append
11846
11847 # as_fn_arith ARG...
11848 # ------------------
11849 # Perform arithmetic evaluation on the ARGs, and store the result in the
11850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11851 # must be portable across $(()) and expr.
11852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11853   eval 'as_fn_arith ()
11854   {
11855     as_val=$(( $* ))
11856   }'
11857 else
11858   as_fn_arith ()
11859   {
11860     as_val=`expr "$@" || test $? -eq 1`
11861   }
11862 fi # as_fn_arith
11863
11864
11865 if expr a : '\(a\)' >/dev/null 2>&1 &&
11866    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11867   as_expr=expr
11868 else
11869   as_expr=false
11870 fi
11871
11872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11873   as_basename=basename
11874 else
11875   as_basename=false
11876 fi
11877
11878 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11879   as_dirname=dirname
11880 else
11881   as_dirname=false
11882 fi
11883
11884 as_me=`$as_basename -- "$0" ||
11885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11886          X"$0" : 'X\(//\)$' \| \
11887          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11888 $as_echo X/"$0" |
11889     sed '/^.*\/\([^/][^/]*\)\/*$/{
11890             s//\1/
11891             q
11892           }
11893           /^X\/\(\/\/\)$/{
11894             s//\1/
11895             q
11896           }
11897           /^X\/\(\/\).*/{
11898             s//\1/
11899             q
11900           }
11901           s/.*/./; q'`
11902
11903 # Avoid depending upon Character Ranges.
11904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11907 as_cr_digits='0123456789'
11908 as_cr_alnum=$as_cr_Letters$as_cr_digits
11909
11910 ECHO_C= ECHO_N= ECHO_T=
11911 case `echo -n x` in #(((((
11912 -n*)
11913   case `echo 'xy\c'` in
11914   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11915   xy)  ECHO_C='\c';;
11916   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11917        ECHO_T=' ';;
11918   esac;;
11919 *)
11920   ECHO_N='-n';;
11921 esac
11922
11923 rm -f conf$$ conf$$.exe conf$$.file
11924 if test -d conf$$.dir; then
11925   rm -f conf$$.dir/conf$$.file
11926 else
11927   rm -f conf$$.dir
11928   mkdir conf$$.dir 2>/dev/null
11929 fi
11930 if (echo >conf$$.file) 2>/dev/null; then
11931   if ln -s conf$$.file conf$$ 2>/dev/null; then
11932     as_ln_s='ln -s'
11933     # ... but there are two gotchas:
11934     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11935     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11936     # In both cases, we have to default to `cp -pR'.
11937     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11938       as_ln_s='cp -pR'
11939   elif ln conf$$.file conf$$ 2>/dev/null; then
11940     as_ln_s=ln
11941   else
11942     as_ln_s='cp -pR'
11943   fi
11944 else
11945   as_ln_s='cp -pR'
11946 fi
11947 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11948 rmdir conf$$.dir 2>/dev/null
11949
11950
11951 # as_fn_mkdir_p
11952 # -------------
11953 # Create "$as_dir" as a directory, including parents if necessary.
11954 as_fn_mkdir_p ()
11955 {
11956
11957   case $as_dir in #(
11958   -*) as_dir=./$as_dir;;
11959   esac
11960   test -d "$as_dir" || eval $as_mkdir_p || {
11961     as_dirs=
11962     while :; do
11963       case $as_dir in #(
11964       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11965       *) as_qdir=$as_dir;;
11966       esac
11967       as_dirs="'$as_qdir' $as_dirs"
11968       as_dir=`$as_dirname -- "$as_dir" ||
11969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11970          X"$as_dir" : 'X\(//\)[^/]' \| \
11971          X"$as_dir" : 'X\(//\)$' \| \
11972          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11973 $as_echo X"$as_dir" |
11974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11975             s//\1/
11976             q
11977           }
11978           /^X\(\/\/\)[^/].*/{
11979             s//\1/
11980             q
11981           }
11982           /^X\(\/\/\)$/{
11983             s//\1/
11984             q
11985           }
11986           /^X\(\/\).*/{
11987             s//\1/
11988             q
11989           }
11990           s/.*/./; q'`
11991       test -d "$as_dir" && break
11992     done
11993     test -z "$as_dirs" || eval "mkdir $as_dirs"
11994   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11995
11996
11997 } # as_fn_mkdir_p
11998 if mkdir -p . 2>/dev/null; then
11999   as_mkdir_p='mkdir -p "$as_dir"'
12000 else
12001   test -d ./-p && rmdir ./-p
12002   as_mkdir_p=false
12003 fi
12004
12005
12006 # as_fn_executable_p FILE
12007 # -----------------------
12008 # Test if FILE is an executable regular file.
12009 as_fn_executable_p ()
12010 {
12011   test -f "$1" && test -x "$1"
12012 } # as_fn_executable_p
12013 as_test_x='test -x'
12014 as_executable_p=as_fn_executable_p
12015
12016 # Sed expression to map a string onto a valid CPP name.
12017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12018
12019 # Sed expression to map a string onto a valid variable name.
12020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12021
12022
12023 exec 6>&1
12024 ## ----------------------------------- ##
12025 ## Main body of $CONFIG_STATUS script. ##
12026 ## ----------------------------------- ##
12027 _ASEOF
12028 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12029
12030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12031 # Save the log message, to keep $0 and so on meaningful, and to
12032 # report actual input values of CONFIG_FILES etc. instead of their
12033 # values after options handling.
12034 ac_log="
12035 This file was extended by $as_me, which was
12036 generated by GNU Autoconf 2.69.  Invocation command line was
12037
12038   CONFIG_FILES    = $CONFIG_FILES
12039   CONFIG_HEADERS  = $CONFIG_HEADERS
12040   CONFIG_LINKS    = $CONFIG_LINKS
12041   CONFIG_COMMANDS = $CONFIG_COMMANDS
12042   $ $0 $@
12043
12044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12045 "
12046
12047 _ACEOF
12048
12049 case $ac_config_files in *"
12050 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12051 esac
12052
12053 case $ac_config_headers in *"
12054 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12055 esac
12056
12057
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 # Files that config.status was made for.
12060 config_files="$ac_config_files"
12061 config_headers="$ac_config_headers"
12062 config_commands="$ac_config_commands"
12063
12064 _ACEOF
12065
12066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067 ac_cs_usage="\
12068 \`$as_me' instantiates files and other configuration actions
12069 from templates according to the current configuration.  Unless the files
12070 and actions are specified as TAGs, all are instantiated by default.
12071
12072 Usage: $0 [OPTION]... [TAG]...
12073
12074   -h, --help       print this help, then exit
12075   -V, --version    print version number and configuration settings, then exit
12076       --config     print configuration, then exit
12077   -q, --quiet, --silent
12078                    do not print progress messages
12079   -d, --debug      don't remove temporary files
12080       --recheck    update $as_me by reconfiguring in the same conditions
12081       --file=FILE[:TEMPLATE]
12082                    instantiate the configuration file FILE
12083       --header=FILE[:TEMPLATE]
12084                    instantiate the configuration header FILE
12085
12086 Configuration files:
12087 $config_files
12088
12089 Configuration headers:
12090 $config_headers
12091
12092 Configuration commands:
12093 $config_commands
12094
12095 Report bugs to the package provider."
12096
12097 _ACEOF
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12099 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12100 ac_cs_version="\\
12101 config.status
12102 configured by $0, generated by GNU Autoconf 2.69,
12103   with options \\"\$ac_cs_config\\"
12104
12105 Copyright (C) 2012 Free Software Foundation, Inc.
12106 This config.status script is free software; the Free Software Foundation
12107 gives unlimited permission to copy, distribute and modify it."
12108
12109 ac_pwd='$ac_pwd'
12110 srcdir='$srcdir'
12111 INSTALL='$INSTALL'
12112 AWK='$AWK'
12113 test -n "\$AWK" || AWK=awk
12114 _ACEOF
12115
12116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117 # The default lists apply if the user does not specify any file.
12118 ac_need_defaults=:
12119 while test $# != 0
12120 do
12121   case $1 in
12122   --*=?*)
12123     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12124     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12125     ac_shift=:
12126     ;;
12127   --*=)
12128     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12129     ac_optarg=
12130     ac_shift=:
12131     ;;
12132   *)
12133     ac_option=$1
12134     ac_optarg=$2
12135     ac_shift=shift
12136     ;;
12137   esac
12138
12139   case $ac_option in
12140   # Handling of the options.
12141   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12142     ac_cs_recheck=: ;;
12143   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12144     $as_echo "$ac_cs_version"; exit ;;
12145   --config | --confi | --conf | --con | --co | --c )
12146     $as_echo "$ac_cs_config"; exit ;;
12147   --debug | --debu | --deb | --de | --d | -d )
12148     debug=: ;;
12149   --file | --fil | --fi | --f )
12150     $ac_shift
12151     case $ac_optarg in
12152     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12153     '') as_fn_error $? "missing file argument" ;;
12154     esac
12155     as_fn_append CONFIG_FILES " '$ac_optarg'"
12156     ac_need_defaults=false;;
12157   --header | --heade | --head | --hea )
12158     $ac_shift
12159     case $ac_optarg in
12160     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12161     esac
12162     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12163     ac_need_defaults=false;;
12164   --he | --h)
12165     # Conflict between --help and --header
12166     as_fn_error $? "ambiguous option: \`$1'
12167 Try \`$0 --help' for more information.";;
12168   --help | --hel | -h )
12169     $as_echo "$ac_cs_usage"; exit ;;
12170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12171   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12172     ac_cs_silent=: ;;
12173
12174   # This is an error.
12175   -*) as_fn_error $? "unrecognized option: \`$1'
12176 Try \`$0 --help' for more information." ;;
12177
12178   *) as_fn_append ac_config_targets " $1"
12179      ac_need_defaults=false ;;
12180
12181   esac
12182   shift
12183 done
12184
12185 ac_configure_extra_args=
12186
12187 if $ac_cs_silent; then
12188   exec 6>/dev/null
12189   ac_configure_extra_args="$ac_configure_extra_args --silent"
12190 fi
12191
12192 _ACEOF
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 if \$ac_cs_recheck; then
12195   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12196   shift
12197   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12198   CONFIG_SHELL='$SHELL'
12199   export CONFIG_SHELL
12200   exec "\$@"
12201 fi
12202
12203 _ACEOF
12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12205 exec 5>>config.log
12206 {
12207   echo
12208   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12209 ## Running $as_me. ##
12210 _ASBOX
12211   $as_echo "$ac_log"
12212 } >&5
12213
12214 _ACEOF
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 #
12217 # INIT-COMMANDS
12218 #
12219 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12220     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12221     # from automake.
12222     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12223     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12224     LINGUAS="${LINGUAS-%UNSET%}"
12225
12226
12227 _ACEOF
12228
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230
12231 # Handling of arguments.
12232 for ac_config_target in $ac_config_targets
12233 do
12234   case $ac_config_target in
12235     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12236     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12237     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12238
12239   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12240   esac
12241 done
12242
12243
12244 # If the user did not use the arguments to specify the items to instantiate,
12245 # then the envvar interface is used.  Set only those that are not.
12246 # We use the long form for the default assignment because of an extremely
12247 # bizarre bug on SunOS 4.1.3.
12248 if $ac_need_defaults; then
12249   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12250   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12251   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12252 fi
12253
12254 # Have a temporary directory for convenience.  Make it in the build tree
12255 # simply because there is no reason against having it here, and in addition,
12256 # creating and moving files from /tmp can sometimes cause problems.
12257 # Hook for its removal unless debugging.
12258 # Note that there is a small window in which the directory will not be cleaned:
12259 # after its creation but before its name has been assigned to `$tmp'.
12260 $debug ||
12261 {
12262   tmp= ac_tmp=
12263   trap 'exit_status=$?
12264   : "${ac_tmp:=$tmp}"
12265   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12266 ' 0
12267   trap 'as_fn_exit 1' 1 2 13 15
12268 }
12269 # Create a (secure) tmp directory for tmp files.
12270
12271 {
12272   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12273   test -d "$tmp"
12274 }  ||
12275 {
12276   tmp=./conf$$-$RANDOM
12277   (umask 077 && mkdir "$tmp")
12278 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12279 ac_tmp=$tmp
12280
12281 # Set up the scripts for CONFIG_FILES section.
12282 # No need to generate them if there are no CONFIG_FILES.
12283 # This happens for instance with `./config.status config.h'.
12284 if test -n "$CONFIG_FILES"; then
12285
12286 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12287   ac_cs_awk_getline=:
12288   ac_cs_awk_pipe_init=
12289   ac_cs_awk_read_file='
12290       while ((getline aline < (F[key])) > 0)
12291         print(aline)
12292       close(F[key])'
12293   ac_cs_awk_pipe_fini=
12294 else
12295   ac_cs_awk_getline=false
12296   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12297   ac_cs_awk_read_file='
12298       print "|#_!!_#|"
12299       print "cat " F[key] " &&"
12300       '$ac_cs_awk_pipe_init
12301   # The final `:' finishes the AND list.
12302   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12303 fi
12304 ac_cr=`echo X | tr X '\015'`
12305 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12306 # But we know of no other shell where ac_cr would be empty at this
12307 # point, so we can use a bashism as a fallback.
12308 if test "x$ac_cr" = x; then
12309   eval ac_cr=\$\'\\r\'
12310 fi
12311 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12313   ac_cs_awk_cr='\\r'
12314 else
12315   ac_cs_awk_cr=$ac_cr
12316 fi
12317
12318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12319 _ACEOF
12320
12321 # Create commands to substitute file output variables.
12322 {
12323   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12324   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12325   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12326   echo "_ACAWK" &&
12327   echo "_ACEOF"
12328 } >conf$$files.sh &&
12329 . ./conf$$files.sh ||
12330   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12331 rm -f conf$$files.sh
12332
12333 {
12334   echo "cat >conf$$subs.awk <<_ACEOF" &&
12335   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12336   echo "_ACEOF"
12337 } >conf$$subs.sh ||
12338   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12340 ac_delim='%!_!# '
12341 for ac_last_try in false false false false false :; do
12342   . ./conf$$subs.sh ||
12343     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12344
12345   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12346   if test $ac_delim_n = $ac_delim_num; then
12347     break
12348   elif $ac_last_try; then
12349     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12350   else
12351     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12352   fi
12353 done
12354 rm -f conf$$subs.sh
12355
12356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12358 _ACEOF
12359 sed -n '
12360 h
12361 s/^/S["/; s/!.*/"]=/
12362 p
12363 g
12364 s/^[^!]*!//
12365 :repl
12366 t repl
12367 s/'"$ac_delim"'$//
12368 t delim
12369 :nl
12370 h
12371 s/\(.\{148\}\)..*/\1/
12372 t more1
12373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12374 p
12375 n
12376 b repl
12377 :more1
12378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12379 p
12380 g
12381 s/.\{148\}//
12382 t nl
12383 :delim
12384 h
12385 s/\(.\{148\}\)..*/\1/
12386 t more2
12387 s/["\\]/\\&/g; s/^/"/; s/$/"/
12388 p
12389 b
12390 :more2
12391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12392 p
12393 g
12394 s/.\{148\}//
12395 t delim
12396 ' <conf$$subs.awk | sed '
12397 /^[^""]/{
12398   N
12399   s/\n//
12400 }
12401 ' >>$CONFIG_STATUS || ac_write_fail=1
12402 rm -f conf$$subs.awk
12403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12404 _ACAWK
12405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12406   for (key in S) S_is_set[key] = 1
12407   FS = "\a"
12408   \$ac_cs_awk_pipe_init
12409 }
12410 {
12411   line = $ 0
12412   nfields = split(line, field, "@")
12413   substed = 0
12414   len = length(field[1])
12415   for (i = 2; i < nfields; i++) {
12416     key = field[i]
12417     keylen = length(key)
12418     if (S_is_set[key]) {
12419       value = S[key]
12420       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12421       len += length(value) + length(field[++i])
12422       substed = 1
12423     } else
12424       len += 1 + keylen
12425   }
12426   if (nfields == 3 && !substed) {
12427     key = field[2]
12428     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12429       \$ac_cs_awk_read_file
12430       next
12431     }
12432   }
12433   print line
12434 }
12435 \$ac_cs_awk_pipe_fini
12436 _ACAWK
12437 _ACEOF
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12440   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12441 else
12442   cat
12443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12444   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12445 _ACEOF
12446
12447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12449 # trailing colons and then remove the whole line if VPATH becomes empty
12450 # (actually we leave an empty line to preserve line numbers).
12451 if test "x$srcdir" = x.; then
12452   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12453 h
12454 s///
12455 s/^/:/
12456 s/[      ]*$/:/
12457 s/:\$(srcdir):/:/g
12458 s/:\${srcdir}:/:/g
12459 s/:@srcdir@:/:/g
12460 s/^:*//
12461 s/:*$//
12462 x
12463 s/\(=[   ]*\).*/\1/
12464 G
12465 s/\n//
12466 s/^[^=]*=[       ]*$//
12467 }'
12468 fi
12469
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 fi # test -n "$CONFIG_FILES"
12472
12473 # Set up the scripts for CONFIG_HEADERS section.
12474 # No need to generate them if there are no CONFIG_HEADERS.
12475 # This happens for instance with `./config.status Makefile'.
12476 if test -n "$CONFIG_HEADERS"; then
12477 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12478 BEGIN {
12479 _ACEOF
12480
12481 # Transform confdefs.h into an awk script `defines.awk', embedded as
12482 # here-document in config.status, that substitutes the proper values into
12483 # config.h.in to produce config.h.
12484
12485 # Create a delimiter string that does not exist in confdefs.h, to ease
12486 # handling of long lines.
12487 ac_delim='%!_!# '
12488 for ac_last_try in false false :; do
12489   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12490   if test -z "$ac_tt"; then
12491     break
12492   elif $ac_last_try; then
12493     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12494   else
12495     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12496   fi
12497 done
12498
12499 # For the awk script, D is an array of macro values keyed by name,
12500 # likewise P contains macro parameters if any.  Preserve backslash
12501 # newline sequences.
12502
12503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12504 sed -n '
12505 s/.\{148\}/&'"$ac_delim"'/g
12506 t rset
12507 :rset
12508 s/^[     ]*#[    ]*define[       ][      ]*/ /
12509 t def
12510 d
12511 :def
12512 s/\\$//
12513 t bsnl
12514 s/["\\]/\\&/g
12515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12516 D["\1"]=" \3"/p
12517 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12518 d
12519 :bsnl
12520 s/["\\]/\\&/g
12521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12522 D["\1"]=" \3\\\\\\n"\\/p
12523 t cont
12524 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12525 t cont
12526 d
12527 :cont
12528 n
12529 s/.\{148\}/&'"$ac_delim"'/g
12530 t clear
12531 :clear
12532 s/\\$//
12533 t bsnlc
12534 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12535 d
12536 :bsnlc
12537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12538 b cont
12539 ' <confdefs.h | sed '
12540 s/'"$ac_delim"'/"\\\
12541 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12542
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544   for (key in D) D_is_set[key] = 1
12545   FS = "\a"
12546 }
12547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12548   line = \$ 0
12549   split(line, arg, " ")
12550   if (arg[1] == "#") {
12551     defundef = arg[2]
12552     mac1 = arg[3]
12553   } else {
12554     defundef = substr(arg[1], 2)
12555     mac1 = arg[2]
12556   }
12557   split(mac1, mac2, "(") #)
12558   macro = mac2[1]
12559   prefix = substr(line, 1, index(line, defundef) - 1)
12560   if (D_is_set[macro]) {
12561     # Preserve the white space surrounding the "#".
12562     print prefix "define", macro P[macro] D[macro]
12563     next
12564   } else {
12565     # Replace #undef with comments.  This is necessary, for example,
12566     # in the case of _POSIX_SOURCE, which is predefined and required
12567     # on some systems where configure will not decide to define it.
12568     if (defundef == "undef") {
12569       print "/*", prefix defundef, macro, "*/"
12570       next
12571     }
12572   }
12573 }
12574 { print }
12575 _ACAWK
12576 _ACEOF
12577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12579 fi # test -n "$CONFIG_HEADERS"
12580
12581
12582 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12583 shift
12584 for ac_tag
12585 do
12586   case $ac_tag in
12587   :[FHLC]) ac_mode=$ac_tag; continue;;
12588   esac
12589   case $ac_mode$ac_tag in
12590   :[FHL]*:*);;
12591   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12592   :[FH]-) ac_tag=-:-;;
12593   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12594   esac
12595   ac_save_IFS=$IFS
12596   IFS=:
12597   set x $ac_tag
12598   IFS=$ac_save_IFS
12599   shift
12600   ac_file=$1
12601   shift
12602
12603   case $ac_mode in
12604   :L) ac_source=$1;;
12605   :[FH])
12606     ac_file_inputs=
12607     for ac_f
12608     do
12609       case $ac_f in
12610       -) ac_f="$ac_tmp/stdin";;
12611       *) # Look for the file first in the build tree, then in the source tree
12612          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12613          # because $ac_f cannot contain `:'.
12614          test -f "$ac_f" ||
12615            case $ac_f in
12616            [\\/$]*) false;;
12617            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12618            esac ||
12619            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12620       esac
12621       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12622       as_fn_append ac_file_inputs " '$ac_f'"
12623     done
12624
12625     # Let's still pretend it is `configure' which instantiates (i.e., don't
12626     # use $as_me), people would be surprised to read:
12627     #    /* config.h.  Generated by config.status.  */
12628     configure_input='Generated from '`
12629           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12630         `' by configure.'
12631     if test x"$ac_file" != x-; then
12632       configure_input="$ac_file.  $configure_input"
12633       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12634 $as_echo "$as_me: creating $ac_file" >&6;}
12635     fi
12636     # Neutralize special characters interpreted by sed in replacement strings.
12637     case $configure_input in #(
12638     *\&* | *\|* | *\\* )
12639        ac_sed_conf_input=`$as_echo "$configure_input" |
12640        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12641     *) ac_sed_conf_input=$configure_input;;
12642     esac
12643
12644     case $ac_tag in
12645     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12646       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12647     esac
12648     ;;
12649   esac
12650
12651   ac_dir=`$as_dirname -- "$ac_file" ||
12652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12653          X"$ac_file" : 'X\(//\)[^/]' \| \
12654          X"$ac_file" : 'X\(//\)$' \| \
12655          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12656 $as_echo X"$ac_file" |
12657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12658             s//\1/
12659             q
12660           }
12661           /^X\(\/\/\)[^/].*/{
12662             s//\1/
12663             q
12664           }
12665           /^X\(\/\/\)$/{
12666             s//\1/
12667             q
12668           }
12669           /^X\(\/\).*/{
12670             s//\1/
12671             q
12672           }
12673           s/.*/./; q'`
12674   as_dir="$ac_dir"; as_fn_mkdir_p
12675   ac_builddir=.
12676
12677 case "$ac_dir" in
12678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12679 *)
12680   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12681   # A ".." for each directory in $ac_dir_suffix.
12682   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12683   case $ac_top_builddir_sub in
12684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12686   esac ;;
12687 esac
12688 ac_abs_top_builddir=$ac_pwd
12689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12690 # for backward compatibility:
12691 ac_top_builddir=$ac_top_build_prefix
12692
12693 case $srcdir in
12694   .)  # We are building in place.
12695     ac_srcdir=.
12696     ac_top_srcdir=$ac_top_builddir_sub
12697     ac_abs_top_srcdir=$ac_pwd ;;
12698   [\\/]* | ?:[\\/]* )  # Absolute name.
12699     ac_srcdir=$srcdir$ac_dir_suffix;
12700     ac_top_srcdir=$srcdir
12701     ac_abs_top_srcdir=$srcdir ;;
12702   *) # Relative name.
12703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12704     ac_top_srcdir=$ac_top_build_prefix$srcdir
12705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12706 esac
12707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12708
12709
12710   case $ac_mode in
12711   :F)
12712   #
12713   # CONFIG_FILE
12714   #
12715
12716   case $INSTALL in
12717   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12718   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12719   esac
12720 _ACEOF
12721
12722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 # If the template does not know about datarootdir, expand it.
12724 # FIXME: This hack should be removed a few years after 2.60.
12725 ac_datarootdir_hack=; ac_datarootdir_seen=
12726 ac_sed_dataroot='
12727 /datarootdir/ {
12728   p
12729   q
12730 }
12731 /@datadir@/p
12732 /@docdir@/p
12733 /@infodir@/p
12734 /@localedir@/p
12735 /@mandir@/p'
12736 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12737 *datarootdir*) ac_datarootdir_seen=yes;;
12738 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12740 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12741 _ACEOF
12742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743   ac_datarootdir_hack='
12744   s&@datadir@&$datadir&g
12745   s&@docdir@&$docdir&g
12746   s&@infodir@&$infodir&g
12747   s&@localedir@&$localedir&g
12748   s&@mandir@&$mandir&g
12749   s&\\\${datarootdir}&$datarootdir&g' ;;
12750 esac
12751 _ACEOF
12752
12753 # Neutralize VPATH when `$srcdir' = `.'.
12754 # Shell code in configure.ac might set extrasub.
12755 # FIXME: do we really want to maintain this feature?
12756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757 ac_sed_extra="$ac_vpsub
12758 $extrasub
12759 _ACEOF
12760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12761 :t
12762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763 s|@configure_input@|$ac_sed_conf_input|;t t
12764 s&@top_builddir@&$ac_top_builddir_sub&;t t
12765 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12766 s&@srcdir@&$ac_srcdir&;t t
12767 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12768 s&@top_srcdir@&$ac_top_srcdir&;t t
12769 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12770 s&@builddir@&$ac_builddir&;t t
12771 s&@abs_builddir@&$ac_abs_builddir&;t t
12772 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12773 s&@INSTALL@&$ac_INSTALL&;t t
12774 $ac_datarootdir_hack
12775 "
12776 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12777 if $ac_cs_awk_getline; then
12778   $AWK -f "$ac_tmp/subs.awk"
12779 else
12780   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12781 fi \
12782   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12783
12784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12785   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12786   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12787       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12788   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12789 which seems to be undefined.  Please make sure it is defined" >&5
12790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12791 which seems to be undefined.  Please make sure it is defined" >&2;}
12792
12793   rm -f "$ac_tmp/stdin"
12794   case $ac_file in
12795   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12796   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12797   esac \
12798   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12799  ;;
12800   :H)
12801   #
12802   # CONFIG_HEADER
12803   #
12804   if test x"$ac_file" != x-; then
12805     {
12806       $as_echo "/* $configure_input  */" \
12807       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12808     } >"$ac_tmp/config.h" \
12809       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12810     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12811       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12812 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12813     else
12814       rm -f "$ac_file"
12815       mv "$ac_tmp/config.h" "$ac_file" \
12816         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12817     fi
12818   else
12819     $as_echo "/* $configure_input  */" \
12820       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12821       || as_fn_error $? "could not create -" "$LINENO" 5
12822   fi
12823  ;;
12824
12825   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12826 $as_echo "$as_me: executing $ac_file commands" >&6;}
12827  ;;
12828   esac
12829
12830
12831   case $ac_file$ac_mode in
12832     "default-1":C)
12833     for ac_file in $CONFIG_FILES; do
12834       # Support "outfile[:infile[:infile...]]"
12835       case "$ac_file" in
12836         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12837       esac
12838       # PO directories have a Makefile.in generated from Makefile.in.in.
12839       case "$ac_file" in */Makefile.in)
12840         # Adjust a relative srcdir.
12841         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12842         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12843         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12844         # In autoconf-2.13 it is called $ac_given_srcdir.
12845         # In autoconf-2.50 it is called $srcdir.
12846         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12847         case "$ac_given_srcdir" in
12848           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12849           /*) top_srcdir="$ac_given_srcdir" ;;
12850           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12851         esac
12852         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12853           rm -f "$ac_dir/POTFILES"
12854           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12855           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12856           POMAKEFILEDEPS="POTFILES.in"
12857           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12858           # on $ac_dir but don't depend on user-specified configuration
12859           # parameters.
12860           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12861             # The LINGUAS file contains the set of available languages.
12862             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12863               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12864             fi
12865             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12866             # Hide the ALL_LINGUAS assigment from automake.
12867             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12868             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12869           else
12870             # The set of available languages was given in configure.in.
12871             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12872           fi
12873           # Compute POFILES
12874           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12875           # Compute UPDATEPOFILES
12876           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12877           # Compute DUMMYPOFILES
12878           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12879           # Compute GMOFILES
12880           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12881           case "$ac_given_srcdir" in
12882             .) srcdirpre= ;;
12883             *) srcdirpre='$(srcdir)/' ;;
12884           esac
12885           POFILES=
12886           UPDATEPOFILES=
12887           DUMMYPOFILES=
12888           GMOFILES=
12889           for lang in $ALL_LINGUAS; do
12890             POFILES="$POFILES $srcdirpre$lang.po"
12891             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12892             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12893             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12894           done
12895           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12896           # environment variable.
12897           INST_LINGUAS=
12898           if test -n "$ALL_LINGUAS"; then
12899             for presentlang in $ALL_LINGUAS; do
12900               useit=no
12901               if test "%UNSET%" != "$LINGUAS"; then
12902                 desiredlanguages="$LINGUAS"
12903               else
12904                 desiredlanguages="$ALL_LINGUAS"
12905               fi
12906               for desiredlang in $desiredlanguages; do
12907                 # Use the presentlang catalog if desiredlang is
12908                 #   a. equal to presentlang, or
12909                 #   b. a variant of presentlang (because in this case,
12910                 #      presentlang can be used as a fallback for messages
12911                 #      which are not translated in the desiredlang catalog).
12912                 case "$desiredlang" in
12913                   "$presentlang"*) useit=yes;;
12914                 esac
12915               done
12916               if test $useit = yes; then
12917                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12918               fi
12919             done
12920           fi
12921           CATALOGS=
12922           if test -n "$INST_LINGUAS"; then
12923             for lang in $INST_LINGUAS; do
12924               CATALOGS="$CATALOGS $lang.gmo"
12925             done
12926           fi
12927           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12928           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"
12929           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12930             if test -f "$f"; then
12931               case "$f" in
12932                 *.orig | *.bak | *~) ;;
12933                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12934               esac
12935             fi
12936           done
12937         fi
12938         ;;
12939       esac
12940     done ;;
12941
12942   esac
12943 done # for ac_tag
12944
12945
12946 as_fn_exit 0
12947 _ACEOF
12948 ac_clean_files=$ac_clean_files_save
12949
12950 test $ac_write_fail = 0 ||
12951   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12952
12953
12954 # configure is writing to config.log, and then calls config.status.
12955 # config.status does its own redirection, appending to config.log.
12956 # Unfortunately, on DOS this fails, as config.log is still kept open
12957 # by configure, so config.status won't be able to write to it; its
12958 # output is simply discarded.  So we exec the FD to /dev/null,
12959 # effectively closing config.log, so it can be properly (re)opened and
12960 # appended to by config.status.  When coming back to configure, we
12961 # need to make the FD available again.
12962 if test "$no_create" != yes; then
12963   ac_cs_success=:
12964   ac_config_status_args=
12965   test "$silent" = yes &&
12966     ac_config_status_args="$ac_config_status_args --quiet"
12967   exec 5>/dev/null
12968   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12969   exec 5>>config.log
12970   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12971   # would make configure fail if this is the last instruction.
12972   $ac_cs_success || as_fn_exit 1
12973 fi
12974 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12976 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12977 fi
12978
12979 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi