Whamcloud - gitweb
Add coverage testing using gcov
[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 QUOTA_MAN_COMMENT
719 BLKID_CMT
720 DEPPROFILED_LIBBLKID
721 PROFILED_LIBBLKID
722 DEPSTATIC_LIBBLKID
723 STATIC_LIBBLKID
724 DEPLIBBLKID
725 LIBBLKID
726 UUID_CMT
727 DEPPROFILED_LIBUUID
728 PROFILED_LIBUUID
729 DEPSTATIC_LIBUUID
730 STATIC_LIBUUID
731 DEPLIBUUID
732 LIBUUID
733 PKG_CONFIG
734 TEST_IO_CMT
735 PRIVATE_LIBS_CMT
736 LDFLAG_DYNAMIC
737 PROFILED_LIB_EXT
738 STATIC_LIB_EXT
739 LIB_EXT
740 CHECKER_CMT
741 PROFILE_CMT
742 BSDLIB_CMT
743 ELF_CMT
744 HTREE_CMT
745 Q
746 ES
747 E
748 LINK_BUILD_FLAGS
749 SYMLINK_RELATIVE
750 LINK_INSTALL_FLAGS
751 MAINTAINER_CMT
752 CPP
753 RDYNAMIC
754 DLOPEN_LIB
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 E2FSPROGS_PKGVER
771 E2FSPROGS_VERSION
772 E2FSPROGS_DAY
773 E2FSPROGS_MONTH
774 E2FSPROGS_YEAR
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files='MCONFIG
814 MAKEFILE_ELF
815 MAKEFILE_BSDLIB
816 MAKEFILE_PROFILE
817 MAKEFILE_CHECKER
818 MAKEFILE_LIBRARY
819 ASM_TYPES_HEADER
820 PUBLIC_CONFIG_HEADER'
821 ac_user_opts='
822 enable_option_checking
823 with_diet_libc
824 with_cc
825 with_ccopts
826 with_ldopts
827 with_root_prefix
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
832 enable_symlink_build
833 enable_verbose_makecmds
834 enable_compression
835 enable_htree
836 enable_elf_shlibs
837 enable_bsd_shlibs
838 enable_profile
839 enable_gcov
840 enable_checker
841 enable_jbd_debug
842 enable_blkid_debug
843 enable_testio_debug
844 enable_libuuid
845 enable_libblkid
846 enable_quota
847 enable_backtrace
848 enable_debugfs
849 enable_imager
850 enable_resizer
851 enable_defrag
852 enable_fsck
853 enable_e2initrd_helper
854 enable_tls
855 enable_uuidd
856 enable_nls
857 with_gnu_ld
858 enable_rpath
859 with_libiconv_prefix
860 with_included_gettext
861 with_libintl_prefix
862 with_multiarch
863 '
864       ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CPP
873 PKG_CONFIG'
874
875
876 # Initialize some variables set by options.
877 ac_init_help=
878 ac_init_version=false
879 ac_unrecognized_opts=
880 ac_unrecognized_sep=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *=)   ac_optarg= ;;
938   *)    ac_optarg=yes ;;
939   esac
940
941   # Accept the important Cygnus configure options, so we can diagnose typos.
942
943   case $ac_dashdash$ac_option in
944   --)
945     ac_dashdash=yes ;;
946
947   -bindir | --bindir | --bindi | --bind | --bin | --bi)
948     ac_prev=bindir ;;
949   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950     bindir=$ac_optarg ;;
951
952   -build | --build | --buil | --bui | --bu)
953     ac_prev=build_alias ;;
954   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955     build_alias=$ac_optarg ;;
956
957   -cache-file | --cache-file | --cache-fil | --cache-fi \
958   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959     ac_prev=cache_file ;;
960   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962     cache_file=$ac_optarg ;;
963
964   --config-cache | -C)
965     cache_file=config.cache ;;
966
967   -datadir | --datadir | --datadi | --datad)
968     ac_prev=datadir ;;
969   -datadir=* | --datadir=* | --datadi=* | --datad=*)
970     datadir=$ac_optarg ;;
971
972   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973   | --dataroo | --dataro | --datar)
974     ac_prev=datarootdir ;;
975   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977     datarootdir=$ac_optarg ;;
978
979   -disable-* | --disable-*)
980     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981     # Reject names that are not valid shell variable names.
982     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983       as_fn_error $? "invalid feature name: $ac_useropt"
984     ac_useropt_orig=$ac_useropt
985     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986     case $ac_user_opts in
987       *"
988 "enable_$ac_useropt"
989 "*) ;;
990       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991          ac_unrecognized_sep=', ';;
992     esac
993     eval enable_$ac_useropt=no ;;
994
995   -docdir | --docdir | --docdi | --doc | --do)
996     ac_prev=docdir ;;
997   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998     docdir=$ac_optarg ;;
999
1000   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001     ac_prev=dvidir ;;
1002   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003     dvidir=$ac_optarg ;;
1004
1005   -enable-* | --enable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261     ;;
1262
1263   *=*)
1264     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265     # Reject names that are not valid shell variable names.
1266     case $ac_envvar in #(
1267       '' | [0-9]* | *[!_$as_cr_alnum]* )
1268       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269     esac
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290   case $enable_option_checking in
1291     no) ;;
1292     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294   esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir
1302 do
1303   eval ac_val=\$$ac_var
1304   # Remove trailing slashes.
1305   case $ac_val in
1306     */ )
1307       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308       eval $ac_var=\$ac_val;;
1309   esac
1310   # Be sure to have absolute directory names.
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures this package to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking ...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-option-checking  ignore unrecognized --enable/--with options
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --enable-maintainer-mode enable makefile rules useful for maintainers
1486   --enable-symlink-install use symlinks when installing instead of hard links
1487   --enable-relative-symlinks use relative symlinks when installing
1488
1489   --enable-symlink-build  use symlinks while building instead of hard links
1490   --enable-verbose-makecmds enable verbose make command output
1491   --enable-compression    enable EXPERIMENTAL compression support
1492   --enable-htree          enable EXPERIMENTAL htree directory support
1493   --enable-elf-shlibs     select ELF shared libraries
1494   --enable-bsd-shlibs     select BSD shared libraries
1495   --enable-profile        build profiling libraries
1496   --enable-gcov           build for coverage testing using gcov
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-nls           do not use Native Language Support
1514   --disable-rpath         do not hardcode runtime library paths
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-diet-libc        use diet libc
1520   --with-cc               no longer supported, use CC= instead
1521   --with-ccopts           no longer supported, use CFLAGS= instead
1522   --with-ldopts           no longer supported, use LDFLAGS= instead
1523   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1524   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1525   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1526   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1527   --with-included-gettext use the GNU gettext library included here
1528   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1529   --without-libintl-prefix     don't search for libintl in includedir and libdir
1530   --with-multiarch=ARCH specify the multiarch triplet
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CPP         C preprocessor
1541   PKG_CONFIG  path to pkg-config utility
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to the package provider.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552   # If there are subdirs, report their specific --help.
1553   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554     test -d "$ac_dir" ||
1555       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556       continue
1557     ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563   # A ".." for each directory in $ac_dir_suffix.
1564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565   case $ac_top_builddir_sub in
1566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568   esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576   .)  # We are building in place.
1577     ac_srcdir=.
1578     ac_top_srcdir=$ac_top_builddir_sub
1579     ac_abs_top_srcdir=$ac_pwd ;;
1580   [\\/]* | ?:[\\/]* )  # Absolute name.
1581     ac_srcdir=$srcdir$ac_dir_suffix;
1582     ac_top_srcdir=$srcdir
1583     ac_abs_top_srcdir=$srcdir ;;
1584   *) # Relative name.
1585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586     ac_top_srcdir=$ac_top_build_prefix$srcdir
1587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591     cd "$ac_dir" || { ac_status=$?; continue; }
1592     # Check for guested configure.
1593     if test -f "$ac_srcdir/configure.gnu"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596     elif test -f "$ac_srcdir/configure"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure" --help=recursive
1599     else
1600       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601     fi || ac_status=$?
1602     cd "$ac_pwd" || { ac_status=$?; break; }
1603   done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608   cat <<\_ACEOF
1609 configure
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616   exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext
1630   if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_compile") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && {
1646          test -z "$ac_c_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest.$ac_objext; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654         ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext conftest$ac_exeext
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest$ac_exeext && {
1687          test "$cross_compiling" = yes ||
1688          test -x conftest$ac_exeext
1689        }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699   # interfere with the next link command; also delete a directory that is
1700   # left behind by Apple's compiler.  We do this before executing the actions.
1701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } > conftest.i && {
1729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737     ac_retval=1
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740   as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_cpp
1743
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_link") 2>&5
1759   ac_status=$?
1760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762   { { case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_try") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; }; }; then :
1772   ac_retval=0
1773 else
1774   $as_echo "$as_me: program exited with status $ac_status" >&5
1775        $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778        ac_retval=$ac_status
1779 fi
1780   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   eval "$3=no"
1799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h.  */
1801 $4
1802 int
1803 main ()
1804 {
1805 if (sizeof ($2))
1806          return 0;
1807   ;
1808   return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 int
1816 main ()
1817 {
1818 if (sizeof (($2)))
1819             return 0;
1820   ;
1821   return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825
1826 else
1827   eval "$3=yes"
1828 fi
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_type
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1942 # accordingly.
1943 ac_fn_c_check_header_mongrel ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if eval \${$3+:} false; then :
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950   $as_echo_n "(cached) " >&6
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 else
1956   # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965   ac_header_compiler=yes
1966 else
1967   ac_header_compiler=no
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1972
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981   ac_header_preproc=yes
1982 else
1983   ac_header_preproc=no
1984 fi
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1988
1989 # So?  What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991   yes:no: )
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996     ;;
1997   no:yes:* )
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008     ;;
2009 esac
2010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013   $as_echo_n "(cached) " >&6
2014 else
2015   eval "$3=\$ac_header_compiler"
2016 fi
2017 eval ac_res=\$$3
2018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 fi
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_header_mongrel
2024
2025 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2026 # --------------------------------------------
2027 # Tries to find the compile-time value of EXPR in a program that includes
2028 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2029 # computed
2030 ac_fn_c_compute_int ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   if test "$cross_compiling" = yes; then
2034     # Depending upon the size, compute the lo and hi bounds.
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 static int test_array [1 - 2 * !(($2) >= 0)];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   ac_lo=0 ac_mid=0
2051   while :; do
2052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   ac_hi=$ac_mid; break
2068 else
2069   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070                         if test $ac_lo -le $ac_mid; then
2071                           ac_lo= ac_hi=
2072                           break
2073                         fi
2074                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077   done
2078 else
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) < 0)];
2086 test_array [0] = 0;
2087 return test_array [0];
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_hi=-1 ac_mid=-1
2095   while :; do
2096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2103 test_array [0] = 0;
2104 return test_array [0];
2105
2106   ;
2107   return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111   ac_lo=$ac_mid; break
2112 else
2113   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2114                         if test $ac_mid -le $ac_hi; then
2115                           ac_lo= ac_hi=
2116                           break
2117                         fi
2118                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121   done
2122 else
2123   ac_lo= ac_hi=
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 # Binary search between lo and hi bounds.
2129 while test "x$ac_lo" != "x$ac_hi"; do
2130   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 int
2135 main ()
2136 {
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2138 test_array [0] = 0;
2139 return test_array [0];
2140
2141   ;
2142   return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146   ac_hi=$ac_mid
2147 else
2148   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 done
2152 case $ac_lo in #((
2153 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2154 '') ac_retval=1 ;;
2155 esac
2156   else
2157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h.  */
2159 $4
2160 static long int longval () { return $2; }
2161 static unsigned long int ulongval () { return $2; }
2162 #include <stdio.h>
2163 #include <stdlib.h>
2164 int
2165 main ()
2166 {
2167
2168   FILE *f = fopen ("conftest.val", "w");
2169   if (! f)
2170     return 1;
2171   if (($2) < 0)
2172     {
2173       long int i = longval ();
2174       if (i != ($2))
2175         return 1;
2176       fprintf (f, "%ld", i);
2177     }
2178   else
2179     {
2180       unsigned long int i = ulongval ();
2181       if (i != ($2))
2182         return 1;
2183       fprintf (f, "%lu", i);
2184     }
2185   /* Do not output a trailing newline, as this causes \r\n confusion
2186      on some platforms.  */
2187   return ferror (f) || fclose (f) != 0;
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_run "$LINENO"; then :
2194   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2195 else
2196   ac_retval=1
2197 fi
2198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199   conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 rm -f conftest.val
2201
2202   fi
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204   as_fn_set_status $ac_retval
2205
2206 } # ac_fn_c_compute_int
2207
2208 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209 # ----------------------------------------------------
2210 # Tries to find if the field MEMBER exists in type AGGR, after including
2211 # INCLUDES, setting cache variable VAR accordingly.
2212 ac_fn_c_check_member ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216 $as_echo_n "checking for $2.$3... " >&6; }
2217 if eval \${$4+:} false; then :
2218   $as_echo_n "(cached) " >&6
2219 else
2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $5
2223 int
2224 main ()
2225 {
2226 static $2 ac_aggr;
2227 if (ac_aggr.$3)
2228 return 0;
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234   eval "$4=yes"
2235 else
2236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h.  */
2238 $5
2239 int
2240 main ()
2241 {
2242 static $2 ac_aggr;
2243 if (sizeof ac_aggr.$3)
2244 return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   eval "$4=yes"
2251 else
2252   eval "$4=no"
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 eval ac_res=\$$4
2259                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262
2263 } # ac_fn_c_check_member
2264
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266 # ---------------------------------------------
2267 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2268 # accordingly.
2269 ac_fn_c_check_decl ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   as_decl_name=`echo $2|sed 's/ *(.*//'`
2273   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276 if eval \${$3+:} false; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 #ifndef $as_decl_name
2286 #ifdef __cplusplus
2287   (void) $as_decl_use;
2288 #else
2289   (void) $as_decl_name;
2290 #endif
2291 #endif
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298   eval "$3=yes"
2299 else
2300   eval "$3=no"
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 eval ac_res=\$$3
2305                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308
2309 } # ac_fn_c_check_decl
2310 cat >config.log <<_ACEOF
2311 This file contains any messages produced by compilers while
2312 running configure, to aid debugging if configure makes a mistake.
2313
2314 It was created by $as_me, which was
2315 generated by GNU Autoconf 2.69.  Invocation command line was
2316
2317   $ $0 $@
2318
2319 _ACEOF
2320 exec 5>>config.log
2321 {
2322 cat <<_ASUNAME
2323 ## --------- ##
2324 ## Platform. ##
2325 ## --------- ##
2326
2327 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2332
2333 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2335
2336 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2337 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2338 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2340 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2341 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2342 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2343
2344 _ASUNAME
2345
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351     $as_echo "PATH: $as_dir"
2352   done
2353 IFS=$as_save_IFS
2354
2355 } >&5
2356
2357 cat >&5 <<_ACEOF
2358
2359
2360 ## ----------- ##
2361 ## Core tests. ##
2362 ## ----------- ##
2363
2364 _ACEOF
2365
2366
2367 # Keep a trace of the command line.
2368 # Strip out --no-create and --no-recursion so they do not pile up.
2369 # Strip out --silent because we don't want to record it for future runs.
2370 # Also quote any args containing shell meta-characters.
2371 # Make two passes to allow for proper duplicate-argument suppression.
2372 ac_configure_args=
2373 ac_configure_args0=
2374 ac_configure_args1=
2375 ac_must_keep_next=false
2376 for ac_pass in 1 2
2377 do
2378   for ac_arg
2379   do
2380     case $ac_arg in
2381     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383     | -silent | --silent | --silen | --sile | --sil)
2384       continue ;;
2385     *\'*)
2386       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2387     esac
2388     case $ac_pass in
2389     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2390     2)
2391       as_fn_append ac_configure_args1 " '$ac_arg'"
2392       if test $ac_must_keep_next = true; then
2393         ac_must_keep_next=false # Got value, back to normal.
2394       else
2395         case $ac_arg in
2396           *=* | --config-cache | -C | -disable-* | --disable-* \
2397           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399           | -with-* | --with-* | -without-* | --without-* | --x)
2400             case "$ac_configure_args0 " in
2401               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2402             esac
2403             ;;
2404           -* ) ac_must_keep_next=true ;;
2405         esac
2406       fi
2407       as_fn_append ac_configure_args " '$ac_arg'"
2408       ;;
2409     esac
2410   done
2411 done
2412 { ac_configure_args0=; unset ac_configure_args0;}
2413 { ac_configure_args1=; unset ac_configure_args1;}
2414
2415 # When interrupted or exit'd, cleanup temporary files, and complete
2416 # config.log.  We remove comments because anyway the quotes in there
2417 # would cause problems or look ugly.
2418 # WARNING: Use '\'' to represent an apostrophe within the trap.
2419 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420 trap 'exit_status=$?
2421   # Save into config.log some information that might help in debugging.
2422   {
2423     echo
2424
2425     $as_echo "## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##"
2428     echo
2429     # The following way of writing the cache mishandles newlines in values,
2430 (
2431   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432     eval ac_val=\$$ac_var
2433     case $ac_val in #(
2434     *${as_nl}*)
2435       case $ac_var in #(
2436       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438       esac
2439       case $ac_var in #(
2440       _ | IFS | as_nl) ;; #(
2441       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442       *) { eval $ac_var=; unset $ac_var;} ;;
2443       esac ;;
2444     esac
2445   done
2446   (set) 2>&1 |
2447     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448     *${as_nl}ac_space=\ *)
2449       sed -n \
2450         "s/'\''/'\''\\\\'\'''\''/g;
2451           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452       ;; #(
2453     *)
2454       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455       ;;
2456     esac |
2457     sort
2458 )
2459     echo
2460
2461     $as_echo "## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##"
2464     echo
2465     for ac_var in $ac_subst_vars
2466     do
2467       eval ac_val=\$$ac_var
2468       case $ac_val in
2469       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470       esac
2471       $as_echo "$ac_var='\''$ac_val'\''"
2472     done | sort
2473     echo
2474
2475     if test -n "$ac_subst_files"; then
2476       $as_echo "## ------------------- ##
2477 ## File substitutions. ##
2478 ## ------------------- ##"
2479       echo
2480       for ac_var in $ac_subst_files
2481       do
2482         eval ac_val=\$$ac_var
2483         case $ac_val in
2484         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485         esac
2486         $as_echo "$ac_var='\''$ac_val'\''"
2487       done | sort
2488       echo
2489     fi
2490
2491     if test -s confdefs.h; then
2492       $as_echo "## ----------- ##
2493 ## confdefs.h. ##
2494 ## ----------- ##"
2495       echo
2496       cat confdefs.h
2497       echo
2498     fi
2499     test "$ac_signal" != 0 &&
2500       $as_echo "$as_me: caught signal $ac_signal"
2501     $as_echo "$as_me: exit $exit_status"
2502   } >&5
2503   rm -f core *.core core.conftest.* &&
2504     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2505     exit $exit_status
2506 ' 0
2507 for ac_signal in 1 2 13 15; do
2508   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2509 done
2510 ac_signal=0
2511
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2514
2515 $as_echo "/* confdefs.h */" > confdefs.h
2516
2517 # Predefined preprocessor variables.
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2521 _ACEOF
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2541 _ACEOF
2542
2543
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2546 ac_site_file1=NONE
2547 ac_site_file2=NONE
2548 if test -n "$CONFIG_SITE"; then
2549   # We do not want a PATH search for config.site.
2550   case $CONFIG_SITE in #((
2551     -*)  ac_site_file1=./$CONFIG_SITE;;
2552     */*) ac_site_file1=$CONFIG_SITE;;
2553     *)   ac_site_file1=./$CONFIG_SITE;;
2554   esac
2555 elif test "x$prefix" != xNONE; then
2556   ac_site_file1=$prefix/share/config.site
2557   ac_site_file2=$prefix/etc/config.site
2558 else
2559   ac_site_file1=$ac_default_prefix/share/config.site
2560   ac_site_file2=$ac_default_prefix/etc/config.site
2561 fi
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2563 do
2564   test "x$ac_site_file" = xNONE && continue
2565   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568     sed 's/^/| /' "$ac_site_file" >&5
2569     . "$ac_site_file" \
2570       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error $? "failed to load site script $ac_site_file
2573 See \`config.log' for more details" "$LINENO" 5; }
2574   fi
2575 done
2576
2577 if test -r "$cache_file"; then
2578   # Some versions of bash will fail to source /dev/null (special files
2579   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2580   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583     case $cache_file in
2584       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585       *)                      . "./$cache_file";;
2586     esac
2587   fi
2588 else
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591   >$cache_file
2592 fi
2593
2594 as_fn_append ac_header_list " stdlib.h"
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/param.h"
2597 # Check that the precious variables saved in the cache have kept the same
2598 # value.
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602   eval ac_new_set=\$ac_env_${ac_var}_set
2603   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604   eval ac_new_val=\$ac_env_${ac_var}_value
2605   case $ac_old_set,$ac_new_set in
2606     set,)
2607       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609       ac_cache_corrupted=: ;;
2610     ,set)
2611       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613       ac_cache_corrupted=: ;;
2614     ,);;
2615     *)
2616       if test "x$ac_old_val" != "x$ac_new_val"; then
2617         # differences in whitespace do not lead to failure.
2618         ac_old_val_w=`echo x $ac_old_val`
2619         ac_new_val_w=`echo x $ac_new_val`
2620         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623           ac_cache_corrupted=:
2624         else
2625           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627           eval $ac_var=\$ac_old_val
2628         fi
2629         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2630 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2631         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2633       fi;;
2634   esac
2635   # Pass precious variables to config.status.
2636   if test "$ac_new_set" = set; then
2637     case $ac_new_val in
2638     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639     *) ac_arg=$ac_var=$ac_new_val ;;
2640     esac
2641     case " $ac_configure_args " in
2642       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2643       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644     esac
2645   fi
2646 done
2647 if $ac_cache_corrupted; then
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2653 fi
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2657
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663
2664
2665
2666 ac_aux_dir=
2667 for ac_dir in config "$srcdir"/config; do
2668   if test -f "$ac_dir/install-sh"; then
2669     ac_aux_dir=$ac_dir
2670     ac_install_sh="$ac_aux_dir/install-sh -c"
2671     break
2672   elif test -f "$ac_dir/install.sh"; then
2673     ac_aux_dir=$ac_dir
2674     ac_install_sh="$ac_aux_dir/install.sh -c"
2675     break
2676   elif test -f "$ac_dir/shtool"; then
2677     ac_aux_dir=$ac_dir
2678     ac_install_sh="$ac_aux_dir/shtool install -c"
2679     break
2680   fi
2681 done
2682 if test -z "$ac_aux_dir"; then
2683   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2684 fi
2685
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2693
2694
2695 ac_config_headers="$ac_config_headers lib/config.h"
2696
2697
2698 MCONFIG=./MCONFIG
2699
2700 BINARY_TYPE=bin
2701 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2702         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2703 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2704         | tr \" " "`
2705 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2706 MONTH=`echo $DATE | awk -F- '{print $2}'`
2707 YEAR=`echo $DATE | awk -F- '{print $3}'`
2708
2709 if expr $YEAR ">" 1900 > /dev/null ; then
2710         E2FSPROGS_YEAR=$YEAR
2711 elif expr $YEAR ">" 90 >/dev/null ; then
2712         E2FSPROGS_YEAR=19$YEAR
2713 else
2714         E2FSPROGS_YEAR=20$YEAR
2715 fi
2716
2717 case $MONTH in
2718 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2719 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2720 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2721 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2722 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2723 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2724 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2725 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2726 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2727 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2728 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2729 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2730 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2731 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2732 esac
2733
2734 base_ver=`echo $E2FSPROGS_VERSION | \
2735                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2736
2737 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2738
2739 case $E2FSPROGS_VERSION in
2740 *-WIP|pre-*)
2741         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2742         ;;
2743 *)
2744         E2FSPROGS_PKGVER="$base_ver"
2745         ;;
2746 esac
2747
2748 unset DATE MONTH YEAR base_ver pre_vers date_spec
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2750 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2752 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2753
2754
2755
2756
2757
2758 WITH_DIET_LIBC=
2759
2760 # Check whether --with-diet-libc was given.
2761 if test "${with_diet_libc+set}" = set; then :
2762   withval=$with_diet_libc; CC="diet cc -nostdinc"
2763 WITH_DIET_LIBC=yes
2764 if test -z "$LIBS"
2765 then
2766         LIBS="-lcompat"
2767 else
2768         LIBS="$LIBS -lcompat"
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2771 $as_echo "CC=$CC" >&6; }
2772 fi
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 esac
2797 build=$ac_cv_build
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_build
2800 shift
2801 build_cpu=$1
2802 build_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 build_os=$*
2807 IFS=$ac_save_IFS
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2812 $as_echo_n "checking host system type... " >&6; }
2813 if ${ac_cv_host+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   if test "x$host_alias" = x; then
2817   ac_cv_host=$ac_cv_build
2818 else
2819   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2821 fi
2822
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2825 $as_echo "$ac_cv_host" >&6; }
2826 case $ac_cv_host in
2827 *-*-*) ;;
2828 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829 esac
2830 host=$ac_cv_host
2831 ac_save_IFS=$IFS; IFS='-'
2832 set x $ac_cv_host
2833 shift
2834 host_cpu=$1
2835 host_vendor=$2
2836 shift; shift
2837 # Remember, the first character of IFS is used to create $*,
2838 # except with old shells:
2839 host_os=$*
2840 IFS=$ac_save_IFS
2841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2842
2843
2844 DLOPEN_LIB=''
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test -n "$ac_tool_prefix"; then
2851   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$CC"; then
2859   ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866     for ac_exec_ext in '' $ac_executable_extensions; do
2867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873   done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887
2888 fi
2889 if test -z "$ac_cv_prog_CC"; then
2890   ac_ct_CC=$CC
2891   # Extract the first word of "gcc", so it can be a program name with args.
2892 set dummy gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test -n "$ac_ct_CC"; then
2899   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906     for ac_exec_ext in '' $ac_executable_extensions; do
2907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908     ac_cv_prog_ac_ct_CC="gcc"
2909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913   done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 $as_echo "$ac_ct_CC" >&6; }
2922 else
2923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927   if test "x$ac_ct_CC" = x; then
2928     CC=""
2929   else
2930     case $cross_compiling:$ac_tool_warned in
2931 yes:)
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2935 esac
2936     CC=$ac_ct_CC
2937   fi
2938 else
2939   CC="$ac_cv_prog_CC"
2940 fi
2941
2942 if test -z "$CC"; then
2943           if test -n "$ac_tool_prefix"; then
2944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CC+:} false; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$CC"; then
2952   ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     for ac_exec_ext in '' $ac_executable_extensions; do
2960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961     ac_cv_prog_CC="${ac_tool_prefix}cc"
2962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980
2981   fi
2982 fi
2983 if test -z "$CC"; then
2984   # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994   ac_prog_rejected=no
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003        ac_prog_rejected=yes
3004        continue
3005      fi
3006     ac_cv_prog_CC="cc"
3007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008     break 2
3009   fi
3010 done
3011   done
3012 IFS=$as_save_IFS
3013
3014 if test $ac_prog_rejected = yes; then
3015   # We found a bogon in the path, so make sure we never use it.
3016   set dummy $ac_cv_prog_CC
3017   shift
3018   if test $# != 0; then
3019     # We chose a different compiler from the bogus one.
3020     # However, it has the same basename, so the bogon will be chosen
3021     # first if we set CC to just the basename; use the full file name.
3022     shift
3023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024   fi
3025 fi
3026 fi
3027 fi
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$CC"; then
3040   if test -n "$ac_tool_prefix"; then
3041   for ac_prog in cl.exe
3042   do
3043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058     for ac_exec_ext in '' $ac_executable_extensions; do
3059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062     break 2
3063   fi
3064 done
3065   done
3066 IFS=$as_save_IFS
3067
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080     test -n "$CC" && break
3081   done
3082 fi
3083 if test -z "$CC"; then
3084   ac_ct_CC=$CC
3085   for ac_prog in cl.exe
3086 do
3087   # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$ac_ct_CC"; then
3095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_exec_ext in '' $ac_executable_extensions; do
3103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104     ac_cv_prog_ac_ct_CC="$ac_prog"
3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109   done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 $as_echo "$ac_ct_CC" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124   test -n "$ac_ct_CC" && break
3125 done
3126
3127   if test "x$ac_ct_CC" = x; then
3128     CC=""
3129   else
3130     case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136     CC=$ac_ct_CC
3137   fi
3138 fi
3139
3140 fi
3141
3142
3143 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "no acceptable C compiler found in \$PATH
3146 See \`config.log' for more details" "$LINENO" 5; }
3147
3148 # Provide some information about the compiler.
3149 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3150 set X $ac_compile
3151 ac_compiler=$2
3152 for ac_option in --version -v -V -qversion; do
3153   { { ac_try="$ac_compiler $ac_option >&5"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3161   ac_status=$?
3162   if test -s conftest.err; then
3163     sed '10a\
3164 ... rest of stderr output deleted ...
3165          10q' conftest.err >conftest.er1
3166     cat conftest.er1 >&5
3167   fi
3168   rm -f conftest.er1 conftest.err
3169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170   test $ac_status = 0; }
3171 done
3172
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 ac_clean_files_save=$ac_clean_files
3185 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3186 # Try to create an executable without -o first, disregard a.out.
3187 # It will help us diagnose broken compilers, and finding out an intuition
3188 # of exeext.
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3190 $as_echo_n "checking whether the C compiler works... " >&6; }
3191 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3192
3193 # The possible output files:
3194 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195
3196 ac_rmfiles=
3197 for ac_file in $ac_files
3198 do
3199   case $ac_file in
3200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3201     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202   esac
3203 done
3204 rm -f $ac_rmfiles
3205
3206 if { { ac_try="$ac_link_default"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213   (eval "$ac_link_default") 2>&5
3214   ac_status=$?
3215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216   test $ac_status = 0; }; then :
3217   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3219 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3220 # so that the user can short-circuit this test for compilers unknown to
3221 # Autoconf.
3222 for ac_file in $ac_files ''
3223 do
3224   test -f "$ac_file" || continue
3225   case $ac_file in
3226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227         ;;
3228     [ab].out )
3229         # We found the default executable, but exeext='' is most
3230         # certainly right.
3231         break;;
3232     *.* )
3233         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3234         then :; else
3235            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236         fi
3237         # We set ac_cv_exeext here because the later test for it is not
3238         # safe: cross compilers may not add the suffix if given an `-o'
3239         # argument, so we may need to know it at that point already.
3240         # Even if this section looks crufty: it has the advantage of
3241         # actually working.
3242         break;;
3243     * )
3244         break;;
3245   esac
3246 done
3247 test "$ac_cv_exeext" = no && ac_cv_exeext=
3248
3249 else
3250   ac_file=''
3251 fi
3252 if test -z "$ac_file"; then :
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error 77 "C compiler cannot create executables
3261 See \`config.log' for more details" "$LINENO" 5; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267 $as_echo_n "checking for C compiler default output file name... " >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3269 $as_echo "$ac_file" >&6; }
3270 ac_exeext=$ac_cv_exeext
3271
3272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3273 ac_clean_files=$ac_clean_files_save
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3275 $as_echo_n "checking for suffix of executables... " >&6; }
3276 if { { ac_try="$ac_link"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283   (eval "$ac_link") 2>&5
3284   ac_status=$?
3285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286   test $ac_status = 0; }; then :
3287   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3288 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3289 # work properly (i.e., refer to `conftest.exe'), while it won't with
3290 # `rm'.
3291 for ac_file in conftest.exe conftest conftest.*; do
3292   test -f "$ac_file" || continue
3293   case $ac_file in
3294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296           break;;
3297     * ) break;;
3298   esac
3299 done
3300 else
3301   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3304 See \`config.log' for more details" "$LINENO" 5; }
3305 fi
3306 rm -f conftest conftest$ac_cv_exeext
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3309
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3312 ac_exeext=$EXEEXT
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h.  */
3315 #include <stdio.h>
3316 int
3317 main ()
3318 {
3319 FILE *f = fopen ("conftest.out", "w");
3320  return ferror (f) || fclose (f) != 0;
3321
3322   ;
3323   return 0;
3324 }
3325 _ACEOF
3326 ac_clean_files="$ac_clean_files conftest.out"
3327 # Check that the compiler produces executables we can run.  If not, either
3328 # the compiler is broken, or we cross compile.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3330 $as_echo_n "checking whether we are cross compiling... " >&6; }
3331 if test "$cross_compiling" != yes; then
3332   { { ac_try="$ac_link"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339   (eval "$ac_link") 2>&5
3340   ac_status=$?
3341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342   test $ac_status = 0; }
3343   if { ac_try='./conftest$ac_cv_exeext'
3344   { { case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350   (eval "$ac_try") 2>&5
3351   ac_status=$?
3352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353   test $ac_status = 0; }; }; then
3354     cross_compiling=no
3355   else
3356     if test "$cross_compiling" = maybe; then
3357         cross_compiling=yes
3358     else
3359         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details" "$LINENO" 5; }
3364     fi
3365   fi
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3368 $as_echo "$cross_compiling" >&6; }
3369
3370 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3371 ac_clean_files=$ac_clean_files_save
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3373 $as_echo_n "checking for suffix of object files... " >&6; }
3374 if ${ac_cv_objext+:} false; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h.  */
3379
3380 int
3381 main ()
3382 {
3383
3384   ;
3385   return 0;
3386 }
3387 _ACEOF
3388 rm -f conftest.o conftest.obj
3389 if { { ac_try="$ac_compile"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396   (eval "$ac_compile") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399   test $ac_status = 0; }; then :
3400   for ac_file in conftest.o conftest.obj conftest.*; do
3401   test -f "$ac_file" || continue;
3402   case $ac_file in
3403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3404     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3405        break;;
3406   esac
3407 done
3408 else
3409   $as_echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of object files: cannot compile
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 fi
3417 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3420 $as_echo "$ac_cv_objext" >&6; }
3421 OBJEXT=$ac_cv_objext
3422 ac_objext=$OBJEXT
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3424 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3425 if ${ac_cv_c_compiler_gnu+:} false; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434 #ifndef __GNUC__
3435        choke me
3436 #endif
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"; then :
3443   ac_compiler_gnu=yes
3444 else
3445   ac_compiler_gnu=no
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3452 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3453 if test $ac_compiler_gnu = yes; then
3454   GCC=yes
3455 else
3456   GCC=
3457 fi
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3461 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3462 if ${ac_cv_prog_cc_g+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   ac_save_c_werror_flag=$ac_c_werror_flag
3466    ac_c_werror_flag=yes
3467    ac_cv_prog_cc_g=no
3468    CFLAGS="-g"
3469    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481   ac_cv_prog_cc_g=yes
3482 else
3483   CFLAGS=""
3484       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496
3497 else
3498   ac_c_werror_flag=$ac_save_c_werror_flag
3499          CFLAGS="-g"
3500          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512   ac_cv_prog_cc_g=yes
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519    ac_c_werror_flag=$ac_save_c_werror_flag
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3522 $as_echo "$ac_cv_prog_cc_g" >&6; }
3523 if test "$ac_test_CFLAGS" = set; then
3524   CFLAGS=$ac_save_CFLAGS
3525 elif test $ac_cv_prog_cc_g = yes; then
3526   if test "$GCC" = yes; then
3527     CFLAGS="-g -O2"
3528   else
3529     CFLAGS="-g"
3530   fi
3531 else
3532   if test "$GCC" = yes; then
3533     CFLAGS="-O2"
3534   else
3535     CFLAGS=
3536   fi
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3539 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3540 if ${ac_cv_prog_cc_c89+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   ac_cv_prog_cc_c89=no
3544 ac_save_CC=$CC
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547 #include <stdarg.h>
3548 #include <stdio.h>
3549 struct stat;
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3554      char **p;
3555      int i;
3556 {
3557   return p[i];
3558 }
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3560 {
3561   char *s;
3562   va_list v;
3563   va_start (v,p);
3564   s = g (p, va_arg (v,int));
3565   va_end (v);
3566   return s;
3567 }
3568
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3570    function prototypes and stuff, but not '\xHH' hex character constants.
3571    These don't provoke an error unfortunately, instead are silently treated
3572    as 'x'.  The following induces an error, until -std is added to get
3573    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3574    array size at least.  It's necessary to write '\x00'==0 to get something
3575    that's true only with -std.  */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579    inside strings and character constants.  */
3580 #define FOO(x) 'x'
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 int argc;
3588 char **argv;
3589 int
3590 main ()
3591 {
3592 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 do
3600   CC="$ac_save_CC $ac_arg"
3601   if ac_fn_c_try_compile "$LINENO"; then :
3602   ac_cv_prog_cc_c89=$ac_arg
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext
3605   test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC
3609
3610 fi
3611 # AC_CACHE_VAL
3612 case "x$ac_cv_prog_cc_c89" in
3613   x)
3614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615 $as_echo "none needed" >&6; } ;;
3616   xno)
3617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618 $as_echo "unsupported" >&6; } ;;
3619   *)
3620     CC="$CC $ac_cv_prog_cc_c89"
3621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3623 esac
3624 if test "x$ac_cv_prog_cc_c89" != xno; then :
3625
3626 fi
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3637 if ${ac_cv_lib_dl_dlopen+:} false; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   ac_check_lib_save_LIBS=$LIBS
3641 LIBS="-ldl  $LIBS"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644
3645 /* Override any GCC internal prototype to avoid an error.
3646    Use char because int might match the return type of a GCC
3647    builtin and then its argument prototype would still apply.  */
3648 #ifdef __cplusplus
3649 extern "C"
3650 #endif
3651 char dlopen ();
3652 int
3653 main ()
3654 {
3655 return dlopen ();
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_link "$LINENO"; then :
3661   ac_cv_lib_dl_dlopen=yes
3662 else
3663   ac_cv_lib_dl_dlopen=no
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext \
3666     conftest$ac_exeext conftest.$ac_ext
3667 LIBS=$ac_check_lib_save_LIBS
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3672   DLOPEN_LIB=-ldl
3673
3674 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3675
3676 fi
3677
3678
3679
3680 # Check whether --with-cc was given.
3681 if test "${with_cc+set}" = set; then :
3682   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3683 fi
3684
3685
3686 # Check whether --with-ccopts was given.
3687 if test "${with_ccopts+set}" = set; then :
3688   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3689 fi
3690
3691
3692 # Check whether --with-ldopts was given.
3693 if test "${with_ldopts+set}" = set; then :
3694   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3695 fi
3696
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_CC+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -n "$CC"; then
3711   ac_cv_prog_CC="$CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_exec_ext in '' $ac_executable_extensions; do
3719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722     break 2
3723   fi
3724 done
3725   done
3726 IFS=$as_save_IFS
3727
3728 fi
3729 fi
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 fi
3738
3739
3740 fi
3741 if test -z "$ac_cv_prog_CC"; then
3742   ac_ct_CC=$CC
3743   # Extract the first word of "gcc", so it can be a program name with args.
3744 set dummy gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$ac_ct_CC"; then
3751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760     ac_cv_prog_ac_ct_CC="gcc"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779   if test "x$ac_ct_CC" = x; then
3780     CC=""
3781   else
3782     case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788     CC=$ac_ct_CC
3789   fi
3790 else
3791   CC="$ac_cv_prog_CC"
3792 fi
3793
3794 if test -z "$CC"; then
3795           if test -n "$ac_tool_prefix"; then
3796     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}cc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811     for ac_exec_ext in '' $ac_executable_extensions; do
3812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_prog_CC="${ac_tool_prefix}cc"
3814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818   done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 CC=$ac_cv_prog_CC
3824 if test -n "$CC"; then
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3827 else
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832
3833   fi
3834 fi
3835 if test -z "$CC"; then
3836   # Extract the first word of "cc", so it can be a program name with args.
3837 set dummy cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   if test -n "$CC"; then
3844   ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846   ac_prog_rejected=no
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852     for ac_exec_ext in '' $ac_executable_extensions; do
3853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3855        ac_prog_rejected=yes
3856        continue
3857      fi
3858     ac_cv_prog_CC="cc"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865
3866 if test $ac_prog_rejected = yes; then
3867   # We found a bogon in the path, so make sure we never use it.
3868   set dummy $ac_cv_prog_CC
3869   shift
3870   if test $# != 0; then
3871     # We chose a different compiler from the bogus one.
3872     # However, it has the same basename, so the bogon will be chosen
3873     # first if we set CC to just the basename; use the full file name.
3874     shift
3875     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3876   fi
3877 fi
3878 fi
3879 fi
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889
3890 fi
3891 if test -z "$CC"; then
3892   if test -n "$ac_tool_prefix"; then
3893   for ac_prog in cl.exe
3894   do
3895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   if test -n "$CC"; then
3903   ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910     for ac_exec_ext in '' $ac_executable_extensions; do
3911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914     break 2
3915   fi
3916 done
3917   done
3918 IFS=$as_save_IFS
3919
3920 fi
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3926 else
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 fi
3930
3931
3932     test -n "$CC" && break
3933   done
3934 fi
3935 if test -z "$CC"; then
3936   ac_ct_CC=$CC
3937   for ac_prog in cl.exe
3938 do
3939   # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   if test -n "$ac_ct_CC"; then
3947   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956     ac_cv_prog_ac_ct_CC="$ac_prog"
3957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3969 $as_echo "$ac_ct_CC" >&6; }
3970 else
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976   test -n "$ac_ct_CC" && break
3977 done
3978
3979   if test "x$ac_ct_CC" = x; then
3980     CC=""
3981   else
3982     case $cross_compiling:$ac_tool_warned in
3983 yes:)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3987 esac
3988     CC=$ac_ct_CC
3989   fi
3990 fi
3991
3992 fi
3993
3994
3995 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "no acceptable C compiler found in \$PATH
3998 See \`config.log' for more details" "$LINENO" 5; }
3999
4000 # Provide some information about the compiler.
4001 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002 set X $ac_compile
4003 ac_compiler=$2
4004 for ac_option in --version -v -V -qversion; do
4005   { { ac_try="$ac_compiler $ac_option >&5"
4006 case "(($ac_try" in
4007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008   *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013   ac_status=$?
4014   if test -s conftest.err; then
4015     sed '10a\
4016 ... rest of stderr output deleted ...
4017          10q' conftest.err >conftest.er1
4018     cat conftest.er1 >&5
4019   fi
4020   rm -f conftest.er1 conftest.err
4021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022   test $ac_status = 0; }
4023 done
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4027 if ${ac_cv_c_compiler_gnu+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032
4033 int
4034 main ()
4035 {
4036 #ifndef __GNUC__
4037        choke me
4038 #endif
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045   ac_compiler_gnu=yes
4046 else
4047   ac_compiler_gnu=no
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055 if test $ac_compiler_gnu = yes; then
4056   GCC=yes
4057 else
4058   GCC=
4059 fi
4060 ac_test_CFLAGS=${CFLAGS+set}
4061 ac_save_CFLAGS=$CFLAGS
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4064 if ${ac_cv_prog_cc_g+:} false; then :
4065   $as_echo_n "(cached) " >&6
4066 else
4067   ac_save_c_werror_flag=$ac_c_werror_flag
4068    ac_c_werror_flag=yes
4069    ac_cv_prog_cc_g=no
4070    CFLAGS="-g"
4071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_prog_cc_g=yes
4084 else
4085   CFLAGS=""
4086       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 int
4090 main ()
4091 {
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098
4099 else
4100   ac_c_werror_flag=$ac_save_c_werror_flag
4101          CFLAGS="-g"
4102          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114   ac_cv_prog_cc_g=yes
4115 fi
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121    ac_c_werror_flag=$ac_save_c_werror_flag
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124 $as_echo "$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126   CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128   if test "$GCC" = yes; then
4129     CFLAGS="-g -O2"
4130   else
4131     CFLAGS="-g"
4132   fi
4133 else
4134   if test "$GCC" = yes; then
4135     CFLAGS="-O2"
4136   else
4137     CFLAGS=
4138   fi
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142 if ${ac_cv_prog_cc_c89+:} false; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   ac_cv_prog_cc_c89=no
4146 ac_save_CC=$CC
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h.  */
4149 #include <stdarg.h>
4150 #include <stdio.h>
4151 struct stat;
4152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4153 struct buf { int x; };
4154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4155 static char *e (p, i)
4156      char **p;
4157      int i;
4158 {
4159   return p[i];
4160 }
4161 static char *f (char * (*g) (char **, int), char **p, ...)
4162 {
4163   char *s;
4164   va_list v;
4165   va_start (v,p);
4166   s = g (p, va_arg (v,int));
4167   va_end (v);
4168   return s;
4169 }
4170
4171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4172    function prototypes and stuff, but not '\xHH' hex character constants.
4173    These don't provoke an error unfortunately, instead are silently treated
4174    as 'x'.  The following induces an error, until -std is added to get
4175    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4176    array size at least.  It's necessary to write '\x00'==0 to get something
4177    that's true only with -std.  */
4178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4179
4180 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4181    inside strings and character constants.  */
4182 #define FOO(x) 'x'
4183 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4184
4185 int test (int i, double x);
4186 struct s1 {int (*f) (int a);};
4187 struct s2 {int (*f) (double a);};
4188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4189 int argc;
4190 char **argv;
4191 int
4192 main ()
4193 {
4194 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4200         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4201 do
4202   CC="$ac_save_CC $ac_arg"
4203   if ac_fn_c_try_compile "$LINENO"; then :
4204   ac_cv_prog_cc_c89=$ac_arg
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext
4207   test "x$ac_cv_prog_cc_c89" != "xno" && break
4208 done
4209 rm -f conftest.$ac_ext
4210 CC=$ac_save_CC
4211
4212 fi
4213 # AC_CACHE_VAL
4214 case "x$ac_cv_prog_cc_c89" in
4215   x)
4216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4217 $as_echo "none needed" >&6; } ;;
4218   xno)
4219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4220 $as_echo "unsupported" >&6; } ;;
4221   *)
4222     CC="$CC $ac_cv_prog_cc_c89"
4223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4224 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4225 esac
4226 if test "x$ac_cv_prog_cc_c89" != xno; then :
4227
4228 fi
4229
4230 ac_ext=c
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236 if test "$GCC" = yes; then
4237    RDYNAMIC="-rdynamic"
4238
4239 fi
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4249   CPP=
4250 fi
4251 if test -z "$CPP"; then
4252   if ${ac_cv_prog_CPP+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255       # Double quotes because CPP needs to be expanded
4256     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257     do
4258       ac_preproc_ok=false
4259 for ac_c_preproc_warn_flag in '' yes
4260 do
4261   # Use a header file that comes with gcc, so configuring glibc
4262   # with a fresh cross-compiler works.
4263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264   # <limits.h> exists even on freestanding compilers.
4265   # On the NeXT, cc -E runs the code through the compiler's parser,
4266   # not just through cpp. "Syntax error" is here to catch this case.
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269 #ifdef __STDC__
4270 # include <limits.h>
4271 #else
4272 # include <assert.h>
4273 #endif
4274                      Syntax error
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277
4278 else
4279   # Broken: fails on valid input.
4280 continue
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284   # OK, works on sane cases.  Now check whether nonexistent headers
4285   # can be detected and how.
4286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h.  */
4288 #include <ac_nonexistent.h>
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291   # Broken: success on invalid input.
4292 continue
4293 else
4294   # Passes both tests.
4295 ac_preproc_ok=:
4296 break
4297 fi
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4299
4300 done
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4304   break
4305 fi
4306
4307     done
4308     ac_cv_prog_CPP=$CPP
4309
4310 fi
4311   CPP=$ac_cv_prog_CPP
4312 else
4313   ac_cv_prog_CPP=$CPP
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4317 ac_preproc_ok=false
4318 for ac_c_preproc_warn_flag in '' yes
4319 do
4320   # Use a header file that comes with gcc, so configuring glibc
4321   # with a fresh cross-compiler works.
4322   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323   # <limits.h> exists even on freestanding compilers.
4324   # On the NeXT, cc -E runs the code through the compiler's parser,
4325   # not just through cpp. "Syntax error" is here to catch this case.
4326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333                      Syntax error
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336
4337 else
4338   # Broken: fails on valid input.
4339 continue
4340 fi
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4342
4343   # OK, works on sane cases.  Now check whether nonexistent headers
4344   # can be detected and how.
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347 #include <ac_nonexistent.h>
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350   # Broken: success on invalid input.
4351 continue
4352 else
4353   # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4358
4359 done
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4363
4364 else
4365   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5; }
4369 fi
4370
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4378 $as_echo_n "checking for additional special compiler flags... " >&6; }
4379 if test "$GCC" = yes
4380 then
4381     case "$host_cpu" in
4382         alpha)          addcflags="-mieee" ;;
4383     esac
4384 fi
4385 if test "x$addcflags" != x
4386 then
4387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4388 $as_echo "$addcflags" >&6; }
4389     CFLAGS="$addcflags $CFLAGS"
4390 else
4391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4392 $as_echo "(none)" >&6; }
4393 fi
4394 LIB_EXT=.a
4395 STATIC_LIB_EXT=.a
4396 PROFILED_LIB_EXT=.a
4397
4398 # Check whether --with-root-prefix was given.
4399 if test "${with_root_prefix+set}" = set; then :
4400   withval=$with_root_prefix; root_prefix=$withval
4401 else
4402   root_prefix=NONE
4403 fi
4404 # Check whether --enable-maintainer-mode was given.
4405 if test "${enable_maintainer_mode+set}" = set; then :
4406   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4407 then
4408         MAINTAINER_CMT=#
4409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4410 $as_echo "Disabling maintainer mode" >&6; }
4411 else
4412         MAINTAINER_CMT=
4413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4414 $as_echo "Enabling maintainer mode" >&6; }
4415 fi
4416
4417 else
4418   MAINTAINER_CMT=#
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4420 $as_echo "Disabling maintainer mode by default" >&6; }
4421
4422 fi
4423
4424
4425 # Check whether --enable-symlink-install was given.
4426 if test "${enable_symlink_install+set}" = set; then :
4427   enableval=$enable_symlink_install; if test "$enableval" = "no"
4428 then
4429         LINK_INSTALL_FLAGS=-f
4430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4431 $as_echo "Disabling symlinks for install" >&6; }
4432 else
4433         LINK_INSTALL_FLAGS=-sf
4434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4435 $as_echo "Enabling symlinks for install" >&6; }
4436 fi
4437
4438 else
4439   LINK_INSTALL_FLAGS=-f
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4441 $as_echo "Disabling symlinks for install by default" >&6; }
4442
4443 fi
4444
4445
4446 relative_symlink_defined=
4447 # Check whether --enable-relative-symlinks was given.
4448 if test "${enable_relative_symlinks+set}" = set; then :
4449   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4450 then
4451         SYMLINK_RELATIVE=
4452         relative_symlink_defined=yes
4453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4454 $as_echo "Disabling relative symlinks for install" >&6; }
4455 else
4456         SYMLINK_RELATIVE=--relative
4457         relative_symlink_defined=yes
4458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4459 $as_echo "Enabling relative symlinks for install" >&6; }
4460 fi
4461 fi
4462
4463 # Check whether --enable-symlink-relative-symlinks was given.
4464 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4465   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4466 then
4467         SYMLINK_RELATIVE=yes
4468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4469 $as_echo "Disabling relative symlinks for install" >&6; }
4470 else
4471         SYMLINK_RELATIVE=--relative
4472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4473 $as_echo "Enabling relative symlinks for install" >&6; }
4474 fi
4475
4476 else
4477   if test -z "$relative_symlink_defined"
4478 then
4479         SYMLINK_RELATIVE=
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4481 $as_echo "Disabling relative symlinks for install by default" >&6; }
4482 fi
4483
4484 fi
4485
4486
4487 # Check whether --enable-symlink-build was given.
4488 if test "${enable_symlink_build+set}" = set; then :
4489   enableval=$enable_symlink_build; if test "$enableval" = "no"
4490 then
4491         LINK_BUILD_FLAGS=
4492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4493 $as_echo "Disabling symlinks for build" >&6; }
4494 else
4495         LINK_BUILD_FLAGS=-s
4496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4497 $as_echo "Enabling symlinks for build" >&6; }
4498 fi
4499
4500 else
4501   LINK_BUILD_FLAGS=
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4503 $as_echo "Disabling symlinks for build by default" >&6; }
4504
4505 fi
4506
4507
4508 # Check whether --enable-verbose-makecmds was given.
4509 if test "${enable_verbose_makecmds+set}" = set; then :
4510   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4511 then
4512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4513 $as_echo "Disabling verbose make commands" >&6; }
4514         E=@echo
4515         ES=echo
4516         Q=@
4517 else
4518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4519 $as_echo "Enabling verbose make commands" >&6; }
4520         E=@\\#
4521         ES=\\#
4522         Q=
4523 fi
4524
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4527 $as_echo "Disabling verbose make commands" >&6; }
4528 E=@echo
4529 ES=echo
4530 Q=@
4531
4532 fi
4533
4534
4535
4536
4537 # Check whether --enable-compression was given.
4538 if test "${enable_compression+set}" = set; then :
4539   enableval=$enable_compression; if test "$enableval" = "no"
4540 then
4541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4542 $as_echo "Disabling compression support" >&6; }
4543 else
4544
4545 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4546
4547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4548 $as_echo "Enabling compression support" >&6; }
4549         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4550 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4551 fi
4552
4553 else
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4555 $as_echo "Disabling compression support by default" >&6; }
4556
4557 fi
4558
4559
4560 # Check whether --enable-htree was given.
4561 if test "${enable_htree+set}" = set; then :
4562   enableval=$enable_htree; if test "$enableval" = "no"
4563 then
4564         HTREE_CMT=#
4565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4566 $as_echo "Disabling htree directory support" >&6; }
4567 else
4568         HTREE_CMT=
4569         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4570
4571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4572 $as_echo "Enabling htree directory support" >&6; }
4573 fi
4574
4575 else
4576   HTREE_CMT=
4577 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4580 $as_echo "Enabling htree directory support by default" >&6; }
4581
4582 fi
4583
4584
4585 E2_PKG_CONFIG_STATIC=--static
4586 LDFLAG_DYNAMIC=
4587 PRIVATE_LIBS_CMT=
4588 # Check whether --enable-elf-shlibs was given.
4589 if test "${enable_elf_shlibs+set}" = set; then :
4590   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4591 then
4592         ELF_CMT=#
4593         MAKEFILE_ELF=/dev/null
4594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4595 $as_echo "Disabling ELF shared libraries" >&6; }
4596 else
4597         E2_PKG_CONFIG_STATIC=
4598         ELF_CMT=
4599         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4600         case "$host_os" in
4601         solaris2.*)
4602                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4603         ;;
4604         esac
4605         BINARY_TYPE=elfbin
4606         LIB_EXT=.so
4607         PRIVATE_LIBS_CMT=#
4608         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4610 $as_echo "Enabling ELF shared libraries" >&6; }
4611 fi
4612
4613 else
4614   MAKEFILE_ELF=/dev/null
4615 ELF_CMT=#
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4617 $as_echo "Disabling ELF shared libraries by default" >&6; }
4618
4619 fi
4620
4621
4622
4623 # Check whether --enable-bsd-shlibs was given.
4624 if test "${enable_bsd_shlibs+set}" = set; then :
4625   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4626 then
4627         BSDLIB_CMT=#
4628         MAKEFILE_BSDLIB=/dev/null
4629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4630 $as_echo "Disabling BSD shared libraries" >&6; }
4631 else
4632         E2_PKG_CONFIG_STATIC=
4633         BSDLIB_CMT=
4634         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4635         LIB_EXT=.so
4636         case "$host_os" in
4637         darwin*)
4638                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4639                 LIB_EXT=.dylib
4640         ;;
4641         esac
4642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4643 $as_echo "Enabling BSD shared libraries" >&6; }
4644 fi
4645
4646 else
4647   MAKEFILE_BSDLIB=/dev/null
4648 BSDLIB_CMT=#
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4650 $as_echo "Disabling BSD shared libraries by default" >&6; }
4651
4652 fi
4653
4654
4655
4656 # Check whether --enable-profile was given.
4657 if test "${enable_profile+set}" = set; then :
4658   enableval=$enable_profile; if test "$enableval" = "no"
4659 then
4660         PROFILE_CMT=#
4661         MAKEFILE_PROFILE=/dev/null
4662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4663 $as_echo "Disabling profiling libraries" >&6; }
4664 else
4665         PROFILE_CMT=
4666         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4667         PROFILED_LIB_EXT=_p.a
4668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4669 $as_echo "Building profiling libraries" >&6; }
4670 fi
4671
4672 else
4673   PROFILE_CMT=#
4674 MAKEFILE_PROFILE=/dev/null
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4676 $as_echo "Disabling profiling libraries by default" >&6; }
4677
4678 fi
4679
4680
4681
4682 # Check whether --enable-gcov was given.
4683 if test "${enable_gcov+set}" = set; then :
4684   enableval=$enable_gcov; if test "$enableval" = "yes"
4685 then
4686         CFLAGS="-g -fprofile-arcs -ftest-coverage"
4687         LDFLAGS="-fprofile-arcs -ftest-coverage"
4688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4689 $as_echo "Enabling gcov support" >&6; }
4690 fi
4691
4692 fi
4693
4694 # Check whether --enable-checker was given.
4695 if test "${enable_checker+set}" = set; then :
4696   enableval=$enable_checker; if test "$enableval" = "no"
4697 then
4698         CHECKER_CMT=#
4699         MAKEFILE_CHECKER=/dev/null
4700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4701 $as_echo "Disabling checker libraries" >&6; }
4702 else
4703         CHECKER_CMT=
4704         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4706 $as_echo "Building checker libraries" >&6; }
4707 fi
4708
4709 else
4710   CHECKER_CMT=#
4711 MAKEFILE_CHECKER=/dev/null
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4713 $as_echo "Disabling checker libraries by default" >&6; }
4714
4715 fi
4716
4717
4718
4719
4720
4721
4722
4723
4724 # Check whether --enable-jbd-debug was given.
4725 if test "${enable_jbd_debug+set}" = set; then :
4726   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4727 then
4728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4729 $as_echo "Disabling journal debugging" >&6; }
4730 else
4731
4732 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4733
4734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4735 $as_echo "Enabling journal debugging" >&6; }
4736 fi
4737
4738 else
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4740 $as_echo "Disabling journal debugging by default" >&6; }
4741
4742 fi
4743
4744 # Check whether --enable-blkid-debug was given.
4745 if test "${enable_blkid_debug+set}" = set; then :
4746   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4747 then
4748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4749 $as_echo "Disabling blkid debugging" >&6; }
4750 else
4751
4752 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4753
4754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4755 $as_echo "Enabling blkid debugging" >&6; }
4756 fi
4757
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4760 $as_echo "Disabling blkid debugging by default" >&6; }
4761
4762 fi
4763
4764 # Check whether --enable-testio-debug was given.
4765 if test "${enable_testio_debug+set}" = set; then :
4766   enableval=$enable_testio_debug;
4767 if test "$enableval" = "no"
4768 then
4769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4770 $as_echo "Disabling testio debugging" >&6; }
4771         TEST_IO_CMT="#"
4772 else
4773         TEST_IO_CMT=
4774         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4775
4776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4777 $as_echo "Enabling testio debugging" >&6; }
4778 fi
4779
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4782 $as_echo "Enabling testio debugging by default" >&6; }
4783 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4784
4785 TEST_IO_CMT=
4786
4787 fi
4788
4789
4790
4791
4792 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4793         if test -n "$ac_tool_prefix"; then
4794   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   case $PKG_CONFIG in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818   done
4819 IFS=$as_save_IFS
4820
4821   ;;
4822 esac
4823 fi
4824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4825 if test -n "$PKG_CONFIG"; then
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4827 $as_echo "$PKG_CONFIG" >&6; }
4828 else
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 fi
4835 if test -z "$ac_cv_path_PKG_CONFIG"; then
4836   ac_pt_PKG_CONFIG=$PKG_CONFIG
4837   # Extract the first word of "pkg-config", so it can be a program name with args.
4838 set dummy pkg-config; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   case $ac_pt_PKG_CONFIG in
4845   [\\/]* | ?:[\\/]*)
4846   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4847   ;;
4848   *)
4849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864   ;;
4865 esac
4866 fi
4867 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4868 if test -n "$ac_pt_PKG_CONFIG"; then
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4870 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876   if test "x$ac_pt_PKG_CONFIG" = x; then
4877     PKG_CONFIG=""
4878   else
4879     case $cross_compiling:$ac_tool_warned in
4880 yes:)
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883 ac_tool_warned=yes ;;
4884 esac
4885     PKG_CONFIG=$ac_pt_PKG_CONFIG
4886   fi
4887 else
4888   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4889 fi
4890
4891 fi
4892 if test -n "$PKG_CONFIG"; then
4893         _pkg_min_version=0.9.0
4894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4895 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4896         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4897                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 $as_echo "yes" >&6; }
4899         else
4900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902                 PKG_CONFIG=""
4903         fi
4904
4905 fi
4906 LIBUUID=
4907 DEPLIBUUID=
4908 STATIC_LIBUUID=
4909 DEPSTATIC_LIBUUID=
4910 PROFILED_LIBUUID=
4911 DEPPROFILED_LIBUUID=
4912 UUID_CMT=
4913 # Check whether --enable-libuuid was given.
4914 if test "${enable_libuuid+set}" = set; then :
4915   enableval=$enable_libuuid; if test "$enableval" = "no"
4916 then
4917         if test -z "$PKG_CONFIG"; then
4918                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4919         fi
4920
4921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4922 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4923 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   ac_check_lib_save_LIBS=$LIBS
4927 LIBS="-luuid $LIBUUID $LIBS"
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930
4931 /* Override any GCC internal prototype to avoid an error.
4932    Use char because int might match the return type of a GCC
4933    builtin and then its argument prototype would still apply.  */
4934 #ifdef __cplusplus
4935 extern "C"
4936 #endif
4937 char uuid_generate ();
4938 int
4939 main ()
4940 {
4941 return uuid_generate ();
4942   ;
4943   return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_link "$LINENO"; then :
4947   ac_cv_lib_uuid_uuid_generate=yes
4948 else
4949   ac_cv_lib_uuid_uuid_generate=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext \
4952     conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4956 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4957 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4958   LIBUUID=`$PKG_CONFIG --libs uuid`;
4959                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4960 else
4961   as_fn_error $? "external uuid library not found" "$LINENO" 5
4962 fi
4963
4964         UUID_CMT=#
4965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4966 $as_echo "Disabling private uuid library" >&6; }
4967 else
4968         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4969         DEPLIBUUID=$LIBUUID
4970         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4971         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4972         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4973         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4975 $as_echo "Enabling private uuid library" >&6; }
4976 fi
4977
4978 else
4979   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4980 DEPLIBUUID=$LIBUUID
4981 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4982 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4983 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4984 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4986 $as_echo "Enabling private uuid library by default" >&6; }
4987
4988 fi
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5000         if test -n "$ac_tool_prefix"; then
5001   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   case $PKG_CONFIG in
5009   [\\/]* | ?:[\\/]*)
5010   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5011   ;;
5012   *)
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018     for ac_exec_ext in '' $ac_executable_extensions; do
5019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025   done
5026 IFS=$as_save_IFS
5027
5028   ;;
5029 esac
5030 fi
5031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5032 if test -n "$PKG_CONFIG"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5034 $as_echo "$PKG_CONFIG" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040
5041 fi
5042 if test -z "$ac_cv_path_PKG_CONFIG"; then
5043   ac_pt_PKG_CONFIG=$PKG_CONFIG
5044   # Extract the first word of "pkg-config", so it can be a program name with args.
5045 set dummy pkg-config; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   case $ac_pt_PKG_CONFIG in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071   ;;
5072 esac
5073 fi
5074 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5075 if test -n "$ac_pt_PKG_CONFIG"; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5077 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083   if test "x$ac_pt_PKG_CONFIG" = x; then
5084     PKG_CONFIG=""
5085   else
5086     case $cross_compiling:$ac_tool_warned in
5087 yes:)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5091 esac
5092     PKG_CONFIG=$ac_pt_PKG_CONFIG
5093   fi
5094 else
5095   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5096 fi
5097
5098 fi
5099 if test -n "$PKG_CONFIG"; then
5100         _pkg_min_version=0.9.0
5101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5102 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5103         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5104                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105 $as_echo "yes" >&6; }
5106         else
5107                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109                 PKG_CONFIG=""
5110         fi
5111
5112 fi
5113 LIBBLKID=
5114 DEPLIBBLKID=
5115 STATIC_LIBBLKID=
5116 DEPSTATIC_LIBBLKID=
5117 PROFILED_LIBBLKID=
5118 DEPPROFILED_LIBBLKID=
5119 BLKID_CMT=
5120
5121 # Check whether --enable-libblkid was given.
5122 if test "${enable_libblkid+set}" = set; then :
5123   enableval=$enable_libblkid; if test "$enableval" = "no"
5124 then
5125         if test -z "$PKG_CONFIG"; then
5126                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5127         fi
5128
5129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5130 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5131 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   ac_check_lib_save_LIBS=$LIBS
5135 LIBS="-lblkid $LIBBLKID $LIBS"
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h.  */
5138
5139 /* Override any GCC internal prototype to avoid an error.
5140    Use char because int might match the return type of a GCC
5141    builtin and then its argument prototype would still apply.  */
5142 #ifdef __cplusplus
5143 extern "C"
5144 #endif
5145 char blkid_get_cache ();
5146 int
5147 main ()
5148 {
5149 return blkid_get_cache ();
5150   ;
5151   return 0;
5152 }
5153 _ACEOF
5154 if ac_fn_c_try_link "$LINENO"; then :
5155   ac_cv_lib_blkid_blkid_get_cache=yes
5156 else
5157   ac_cv_lib_blkid_blkid_get_cache=no
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext \
5160     conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5162 fi
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5164 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5165 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5166   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5167                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5168 else
5169   as_fn_error $? "external blkid library not found" "$LINENO" 5
5170 fi
5171
5172         BLKID_CMT=#
5173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5174 $as_echo "Disabling private blkid library" >&6; }
5175 else
5176         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5177         DEPLIBBLKID=$LIBBLKID
5178         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5179         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5180         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5181         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5182         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5183
5184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5185 $as_echo "Enabling private blkid library" >&6; }
5186 fi
5187
5188 else
5189   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5190 DEPLIBBLKID=$LIBBLKID
5191 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5192 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5193 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5194 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5195 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5198 $as_echo "Enabling private blkid library by default" >&6; }
5199
5200 fi
5201
5202
5203
5204
5205
5206
5207
5208
5209 QUOTA_MAN_COMMENT='.\"'
5210 QUOTA_CMT=
5211
5212
5213
5214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5215         if test -n "$ac_tool_prefix"; then
5216   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   case $PKG_CONFIG in
5224   [\\/]* | ?:[\\/]*)
5225   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5226   ;;
5227   *)
5228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243   ;;
5244 esac
5245 fi
5246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5247 if test -n "$PKG_CONFIG"; then
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5249 $as_echo "$PKG_CONFIG" >&6; }
5250 else
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255
5256 fi
5257 if test -z "$ac_cv_path_PKG_CONFIG"; then
5258   ac_pt_PKG_CONFIG=$PKG_CONFIG
5259   # Extract the first word of "pkg-config", so it can be a program name with args.
5260 set dummy pkg-config; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   case $ac_pt_PKG_CONFIG in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286   ;;
5287 esac
5288 fi
5289 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5290 if test -n "$ac_pt_PKG_CONFIG"; then
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5292 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5293 else
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298   if test "x$ac_pt_PKG_CONFIG" = x; then
5299     PKG_CONFIG=""
5300   else
5301     case $cross_compiling:$ac_tool_warned in
5302 yes:)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305 ac_tool_warned=yes ;;
5306 esac
5307     PKG_CONFIG=$ac_pt_PKG_CONFIG
5308   fi
5309 else
5310   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5311 fi
5312
5313 fi
5314 if test -n "$PKG_CONFIG"; then
5315         _pkg_min_version=0.9.0
5316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5317 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5318         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5319                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5321         else
5322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324                 PKG_CONFIG=""
5325         fi
5326
5327 fi
5328
5329 # Check whether --enable-quota was given.
5330 if test "${enable_quota+set}" = set; then :
5331   enableval=$enable_quota; if test "$enableval" = "no"
5332 then
5333         QUOTA_CMT=#
5334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5335 $as_echo "Disabling quota support" >&6; }
5336 else
5337         QUOTA_CMT=
5338         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5339
5340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5341 $as_echo "Enabling quota support" >&6; }
5342         QUOTA_MAN_COMMENT=""
5343
5344 fi
5345
5346 else
5347   QUOTA_CMT=#
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5349 $as_echo "Disabling quota support by default" >&6; }
5350
5351 fi
5352
5353 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5354 DEPLIBQUOTA=$LIBQUOTA
5355 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5356 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5357 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5358 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5359
5360
5361
5362
5363
5364
5365
5366
5367 # Check whether --enable-backtrace was given.
5368 if test "${enable_backtrace+set}" = set; then :
5369   enableval=$enable_backtrace; if test "$enableval" = "no"
5370 then
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5372 $as_echo "Disabling use of backtrace" >&6; }
5373         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5374
5375 else
5376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5377 $as_echo "Enabling use of backtrace" >&6; }
5378 fi
5379
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5382 $as_echo "Enabling use of backtrace by default" >&6; }
5383
5384 fi
5385
5386 # Check whether --enable-debugfs was given.
5387 if test "${enable_debugfs+set}" = set; then :
5388   enableval=$enable_debugfs; if test "$enableval" = "no"
5389 then
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5391 $as_echo "Disabling debugfs support" >&6; }
5392         DEBUGFS_CMT="#"
5393 else
5394         DEBUGFS_CMT=
5395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5396 $as_echo "Enabling debugfs support" >&6; }
5397 fi
5398
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5401 $as_echo "Enabling debugfs support by default" >&6; }
5402 DEBUGFS_CMT=
5403
5404 fi
5405
5406
5407 # Check whether --enable-imager was given.
5408 if test "${enable_imager+set}" = set; then :
5409   enableval=$enable_imager; if test "$enableval" = "no"
5410 then
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5412 $as_echo "Disabling e2image support" >&6; }
5413         IMAGER_CMT="#"
5414 else
5415         IMAGER_CMT=
5416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5417 $as_echo "Enabling e2image support" >&6; }
5418 fi
5419
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5422 $as_echo "Enabling e2image support by default" >&6; }
5423 IMAGER_CMT=
5424
5425 fi
5426
5427
5428 # Check whether --enable-resizer was given.
5429 if test "${enable_resizer+set}" = set; then :
5430   enableval=$enable_resizer; if test "$enableval" = "no"
5431 then
5432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5433 $as_echo "Disabling e2resize support" >&6; }
5434         RESIZER_CMT="#"
5435 else
5436         RESIZER_CMT=
5437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5438 $as_echo "Enabling e2resize support" >&6; }
5439 fi
5440
5441 else
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5443 $as_echo "Enabling e2resize support by default" >&6; }
5444 RESIZER_CMT=
5445
5446 fi
5447
5448
5449 # Check whether --enable-defrag was given.
5450 if test "${enable_defrag+set}" = set; then :
5451   enableval=$enable_defrag; if test "$enableval" = "no"
5452 then
5453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5454 $as_echo "Disabling e4defrag support" >&6; }
5455         DEFRAG_CMT="#"
5456 else
5457         DEFRAG_CMT=
5458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5459 $as_echo "Enabling e4defrag support" >&6; }
5460 fi
5461
5462 else
5463   if test -z "$WITH_DIET_LIBC"
5464 then
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5466 $as_echo "Enabling e4defrag support by default" >&6; }
5467         DEFRAG_CMT=
5468 else
5469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5470 $as_echo "Disabling e4defrag support by default" >&6; }
5471         DEFRAG_CMT="#"
5472 fi
5473
5474 fi
5475
5476
5477 # Check whether --enable-fsck was given.
5478 if test "${enable_fsck+set}" = set; then :
5479   enableval=$enable_fsck; if test "$enableval" = "no"
5480 then
5481         FSCK_PROG='' FSCK_MAN=''
5482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5483 $as_echo "Not building fsck wrapper" >&6; }
5484 else
5485         FSCK_PROG=fsck FSCK_MAN=fsck.8
5486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5487 $as_echo "Building fsck wrapper" >&6; }
5488 fi
5489
5490 else
5491   case "$host_os" in
5492   gnu*)
5493     FSCK_PROG='' FSCK_MAN=''
5494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5495 $as_echo "Not building fsck wrapper by default" >&6; }
5496     ;;
5497   *)
5498     FSCK_PROG=fsck FSCK_MAN=fsck.8
5499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5500 $as_echo "Building fsck wrapper by default" >&6; }
5501 esac
5502
5503 fi
5504
5505
5506
5507 # Check whether --enable-e2initrd-helper was given.
5508 if test "${enable_e2initrd_helper+set}" = set; then :
5509   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5510 then
5511         E2INITRD_PROG='' E2INITRD_MAN=''
5512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5513 $as_echo "Not building e2initrd helper" >&6; }
5514 else
5515         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5517 $as_echo "Building e2initrd helper" >&6; }
5518 fi
5519
5520 else
5521   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5523 $as_echo "Building e2initrd helper by default" >&6; }
5524
5525 fi
5526
5527
5528
5529 # Check whether --enable-tls was given.
5530 if test "${enable_tls+set}" = set; then :
5531   enableval=$enable_tls; if test "$enableval" = "no"
5532 then
5533         try_tls=""
5534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5535 $as_echo "Disabling thread local support" >&6; }
5536 else
5537         try_tls="yes"
5538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5539 $as_echo "Enabling thread local support" >&6; }
5540 fi
5541
5542 else
5543   if test -n "$WITH_DIET_LIBC"
5544 then
5545         try_tls=""
5546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5547 $as_echo "Diet libc does not support thread local support" >&6; }
5548 else
5549         try_tls="yes"
5550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5551 $as_echo "Try using thread local support by default" >&6; }
5552 fi
5553
5554 fi
5555
5556 if test "$try_tls" = "yes"
5557 then
5558
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5560 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5561   if ${ac_cv_tls+:} false; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564
5565     ax_tls_keywords="__thread __declspec(thread) none"
5566     for ax_tls_keyword in $ax_tls_keywords; do
5567        case $ax_tls_keyword in
5568           none) ac_cv_tls=none ; break ;;
5569           *)
5570              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h.  */
5572 #include <stdlib.h>
5573                  static void
5574                  foo(void) {
5575                  static  $ax_tls_keyword  int bar;
5576                  exit(1);
5577                  }
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587   ac_cv_tls=$ax_tls_keyword ; break
5588 else
5589   ac_cv_tls=none
5590
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593           esac
5594     done
5595
5596 fi
5597
5598
5599   if test "$ac_cv_tls" != "none"; then
5600
5601 cat >>confdefs.h <<_ACEOF
5602 #define TLS $ac_cv_tls
5603 _ACEOF
5604
5605   fi
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5607 $as_echo "$ac_cv_tls" >&6; }
5608
5609 fi
5610
5611 # Check whether --enable-uuidd was given.
5612 if test "${enable_uuidd+set}" = set; then :
5613   enableval=$enable_uuidd; if test "$enableval" = "no"
5614 then
5615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5616 $as_echo "Not building uuidd" >&6; }
5617         UUIDD_CMT="#"
5618 else
5619         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5620
5621         UUIDD_CMT=""
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5623 $as_echo "Building uuidd" >&6; }
5624 fi
5625
5626 else
5627   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5628
5629 UUIDD_CMT=""
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5631 $as_echo "Building uuidd by default" >&6; }
5632
5633 fi
5634
5635
5636 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5637
5638 GETTEXT_PACKAGE=e2fsprogs
5639 PACKAGE=e2fsprogs
5640 VERSION="$E2FSPROGS_VERSION"
5641 VERSION=0.14.1
5642
5643 cat >>confdefs.h <<_ACEOF
5644 #define PACKAGE "$PACKAGE"
5645 _ACEOF
5646
5647
5648 cat >>confdefs.h <<_ACEOF
5649 #define VERSION "$VERSION"
5650 _ACEOF
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5657 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5658 set x ${MAKE-make}
5659 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5660 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   cat >conftest.make <<\_ACEOF
5664 SHELL = /bin/sh
5665 all:
5666         @echo '@@@%%%=$(MAKE)=@@@%%%'
5667 _ACEOF
5668 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5669 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5670   *@@@%%%=?*=@@@%%%*)
5671     eval ac_cv_prog_make_${ac_make}_set=yes;;
5672   *)
5673     eval ac_cv_prog_make_${ac_make}_set=no;;
5674 esac
5675 rm -f conftest.make
5676 fi
5677 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679 $as_echo "yes" >&6; }
5680   SET_MAKE=
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684   SET_MAKE="MAKE=${MAKE-make}"
5685 fi
5686
5687 # Find a good install program.  We prefer a C program (faster),
5688 # so one script is as good as another.  But avoid the broken or
5689 # incompatible versions:
5690 # SysV /etc/install, /usr/sbin/install
5691 # SunOS /usr/etc/install
5692 # IRIX /sbin/install
5693 # AIX /bin/install
5694 # AmigaOS /C/install, which installs bootblocks on floppy discs
5695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5698 # OS/2's system install, which has a completely different semantic
5699 # ./install, which can be erroneously created by make from ./install.sh.
5700 # Reject install programs that cannot install multiple files.
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5703 if test -z "$INSTALL"; then
5704 if ${ac_cv_path_install+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     # Account for people who put trailing slashes in PATH elements.
5713 case $as_dir/ in #((
5714   ./ | .// | /[cC]/* | \
5715   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5716   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5717   /usr/ucb/* ) ;;
5718   *)
5719     # OSF1 and SCO ODT 3.0 have their own names for install.
5720     # Don't use installbsd from OSF since it installs stuff as root
5721     # by default.
5722     for ac_prog in ginstall scoinst install; do
5723       for ac_exec_ext in '' $ac_executable_extensions; do
5724         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5725           if test $ac_prog = install &&
5726             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5727             # AIX install.  It has an incompatible calling convention.
5728             :
5729           elif test $ac_prog = install &&
5730             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5731             # program-specific install script used by HP pwplus--don't use.
5732             :
5733           else
5734             rm -rf conftest.one conftest.two conftest.dir
5735             echo one > conftest.one
5736             echo two > conftest.two
5737             mkdir conftest.dir
5738             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5739               test -s conftest.one && test -s conftest.two &&
5740               test -s conftest.dir/conftest.one &&
5741               test -s conftest.dir/conftest.two
5742             then
5743               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5744               break 3
5745             fi
5746           fi
5747         fi
5748       done
5749     done
5750     ;;
5751 esac
5752
5753   done
5754 IFS=$as_save_IFS
5755
5756 rm -rf conftest.one conftest.two conftest.dir
5757
5758 fi
5759   if test "${ac_cv_path_install+set}" = set; then
5760     INSTALL=$ac_cv_path_install
5761   else
5762     # As a last resort, use the slow shell script.  Don't cache a
5763     # value for INSTALL within a source directory, because that will
5764     # break other packages using the cache if that directory is
5765     # removed, or if the value is a relative name.
5766     INSTALL=$ac_install_sh
5767   fi
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5770 $as_echo "$INSTALL" >&6; }
5771
5772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5773 # It thinks the first close brace ends the variable substitution.
5774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5775
5776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5777
5778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5779
5780
5781         MKINSTALLDIRS=
5782   if test -n "$ac_aux_dir"; then
5783     case "$ac_aux_dir" in
5784       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5785       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5786     esac
5787   fi
5788   if test -z "$MKINSTALLDIRS"; then
5789     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5790   fi
5791
5792
5793
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5795 $as_echo_n "checking whether NLS is requested... " >&6; }
5796     # Check whether --enable-nls was given.
5797 if test "${enable_nls+set}" = set; then :
5798   enableval=$enable_nls; USE_NLS=$enableval
5799 else
5800   USE_NLS=yes
5801 fi
5802
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5804 $as_echo "$USE_NLS" >&6; }
5805
5806
5807
5808
5809
5810
5811 # Prepare PATH_SEPARATOR.
5812 # The user is always right.
5813 if test "${PATH_SEPARATOR+set}" != set; then
5814   echo "#! /bin/sh" >conf$$.sh
5815   echo  "exit 0"   >>conf$$.sh
5816   chmod +x conf$$.sh
5817   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5818     PATH_SEPARATOR=';'
5819   else
5820     PATH_SEPARATOR=:
5821   fi
5822   rm -f conf$$.sh
5823 fi
5824
5825 # Find out how to test for executable files. Don't use a zero-byte file,
5826 # as systems may use methods other than mode bits to determine executability.
5827 cat >conf$$.file <<_ASEOF
5828 #! /bin/sh
5829 exit 0
5830 _ASEOF
5831 chmod +x conf$$.file
5832 if test -x conf$$.file >/dev/null 2>&1; then
5833   ac_executable_p="test -x"
5834 else
5835   ac_executable_p="test -f"
5836 fi
5837 rm -f conf$$.file
5838
5839 # Extract the first word of "msgfmt", so it can be a program name with args.
5840 set dummy msgfmt; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_path_MSGFMT+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   case "$MSGFMT" in
5847   [\\/]* | ?:[\\/]*)
5848     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5849     ;;
5850   *)
5851     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5852     for ac_dir in $PATH; do
5853       IFS="$ac_save_IFS"
5854       test -z "$ac_dir" && ac_dir=.
5855       for ac_exec_ext in '' $ac_executable_extensions; do
5856         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5857           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5858      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5859             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5860             break 2
5861           fi
5862         fi
5863       done
5864     done
5865     IFS="$ac_save_IFS"
5866   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5867     ;;
5868 esac
5869 fi
5870 MSGFMT="$ac_cv_path_MSGFMT"
5871 if test "$MSGFMT" != ":"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5873 $as_echo "$MSGFMT" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5880 set dummy gmsgfmt; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_path_GMSGFMT+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   case $GMSGFMT in
5887   [\\/]* | ?:[\\/]*)
5888   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5889   ;;
5890   *)
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5907   ;;
5908 esac
5909 fi
5910 GMSGFMT=$ac_cv_path_GMSGFMT
5911 if test -n "$GMSGFMT"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5913 $as_echo "$GMSGFMT" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920
5921
5922 # Prepare PATH_SEPARATOR.
5923 # The user is always right.
5924 if test "${PATH_SEPARATOR+set}" != set; then
5925   echo "#! /bin/sh" >conf$$.sh
5926   echo  "exit 0"   >>conf$$.sh
5927   chmod +x conf$$.sh
5928   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5929     PATH_SEPARATOR=';'
5930   else
5931     PATH_SEPARATOR=:
5932   fi
5933   rm -f conf$$.sh
5934 fi
5935
5936 # Find out how to test for executable files. Don't use a zero-byte file,
5937 # as systems may use methods other than mode bits to determine executability.
5938 cat >conf$$.file <<_ASEOF
5939 #! /bin/sh
5940 exit 0
5941 _ASEOF
5942 chmod +x conf$$.file
5943 if test -x conf$$.file >/dev/null 2>&1; then
5944   ac_executable_p="test -x"
5945 else
5946   ac_executable_p="test -f"
5947 fi
5948 rm -f conf$$.file
5949
5950 # Extract the first word of "xgettext", so it can be a program name with args.
5951 set dummy xgettext; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_path_XGETTEXT+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   case "$XGETTEXT" in
5958   [\\/]* | ?:[\\/]*)
5959     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5960     ;;
5961   *)
5962     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5963     for ac_dir in $PATH; do
5964       IFS="$ac_save_IFS"
5965       test -z "$ac_dir" && ac_dir=.
5966       for ac_exec_ext in '' $ac_executable_extensions; do
5967         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5968           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5969      (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
5970             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5971             break 2
5972           fi
5973         fi
5974       done
5975     done
5976     IFS="$ac_save_IFS"
5977   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5978     ;;
5979 esac
5980 fi
5981 XGETTEXT="$ac_cv_path_XGETTEXT"
5982 if test "$XGETTEXT" != ":"; then
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5984 $as_echo "$XGETTEXT" >&6; }
5985 else
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990     rm -f messages.po
5991
5992
5993 # Prepare PATH_SEPARATOR.
5994 # The user is always right.
5995 if test "${PATH_SEPARATOR+set}" != set; then
5996   echo "#! /bin/sh" >conf$$.sh
5997   echo  "exit 0"   >>conf$$.sh
5998   chmod +x conf$$.sh
5999   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6000     PATH_SEPARATOR=';'
6001   else
6002     PATH_SEPARATOR=:
6003   fi
6004   rm -f conf$$.sh
6005 fi
6006
6007 # Find out how to test for executable files. Don't use a zero-byte file,
6008 # as systems may use methods other than mode bits to determine executability.
6009 cat >conf$$.file <<_ASEOF
6010 #! /bin/sh
6011 exit 0
6012 _ASEOF
6013 chmod +x conf$$.file
6014 if test -x conf$$.file >/dev/null 2>&1; then
6015   ac_executable_p="test -x"
6016 else
6017   ac_executable_p="test -f"
6018 fi
6019 rm -f conf$$.file
6020
6021 # Extract the first word of "msgmerge", so it can be a program name with args.
6022 set dummy msgmerge; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_path_MSGMERGE+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   case "$MSGMERGE" in
6029   [\\/]* | ?:[\\/]*)
6030     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6031     ;;
6032   *)
6033     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6034     for ac_dir in $PATH; do
6035       IFS="$ac_save_IFS"
6036       test -z "$ac_dir" && ac_dir=.
6037       for ac_exec_ext in '' $ac_executable_extensions; do
6038         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6039           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6040             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6041             break 2
6042           fi
6043         fi
6044       done
6045     done
6046     IFS="$ac_save_IFS"
6047   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6048     ;;
6049 esac
6050 fi
6051 MSGMERGE="$ac_cv_path_MSGMERGE"
6052 if test "$MSGMERGE" != ":"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6054 $as_echo "$MSGMERGE" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060
6061       if test "$GMSGFMT" != ":"; then
6062             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6063        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6064       : ;
6065     else
6066       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6068 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6069       GMSGFMT=":"
6070     fi
6071   fi
6072
6073       if test "$XGETTEXT" != ":"; then
6074             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6075        (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
6076       : ;
6077     else
6078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6079 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6080       XGETTEXT=":"
6081     fi
6082         rm -f messages.po
6083   fi
6084
6085   ac_config_commands="$ac_config_commands default-1"
6086
6087
6088 if test -n "$ac_tool_prefix"; then
6089   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_RANLIB+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   if test -n "$RANLIB"; then
6097   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104     for ac_exec_ext in '' $ac_executable_extensions; do
6105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111   done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6119 $as_echo "$RANLIB" >&6; }
6120 else
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128   ac_ct_RANLIB=$RANLIB
6129   # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   if test -n "$ac_ct_RANLIB"; then
6137   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144     for ac_exec_ext in '' $ac_executable_extensions; do
6145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146     ac_cv_prog_ac_ct_RANLIB="ranlib"
6147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151   done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6159 $as_echo "$ac_ct_RANLIB" >&6; }
6160 else
6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6163 fi
6164
6165   if test "x$ac_ct_RANLIB" = x; then
6166     RANLIB=":"
6167   else
6168     case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174     RANLIB=$ac_ct_RANLIB
6175   fi
6176 else
6177   RANLIB="$ac_cv_prog_RANLIB"
6178 fi
6179
6180
6181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6182 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6183 if ${ac_cv_lib_cposix_strerror+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   ac_check_lib_save_LIBS=$LIBS
6187 LIBS="-lcposix  $LIBS"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h.  */
6190
6191 /* Override any GCC internal prototype to avoid an error.
6192    Use char because int might match the return type of a GCC
6193    builtin and then its argument prototype would still apply.  */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char strerror ();
6198 int
6199 main ()
6200 {
6201 return strerror ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_link "$LINENO"; then :
6207   ac_cv_lib_cposix_strerror=yes
6208 else
6209   ac_cv_lib_cposix_strerror=no
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext \
6212     conftest$ac_exeext conftest.$ac_ext
6213 LIBS=$ac_check_lib_save_LIBS
6214 fi
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6216 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6217 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6218   LIBS="$LIBS -lcposix"
6219 fi
6220
6221
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6226 if ${ac_cv_path_GREP+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -z "$GREP"; then
6230   ac_path_GREP_found=false
6231   # Loop through the user's path and test for each of PROGNAME-LIST
6232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237     for ac_prog in grep ggrep; do
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6240       as_fn_executable_p "$ac_path_GREP" || continue
6241 # Check for GNU ac_path_GREP and select it if it is found.
6242   # Check for GNU $ac_path_GREP
6243 case `"$ac_path_GREP" --version 2>&1` in
6244 *GNU*)
6245   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6246 *)
6247   ac_count=0
6248   $as_echo_n 0123456789 >"conftest.in"
6249   while :
6250   do
6251     cat "conftest.in" "conftest.in" >"conftest.tmp"
6252     mv "conftest.tmp" "conftest.in"
6253     cp "conftest.in" "conftest.nl"
6254     $as_echo 'GREP' >> "conftest.nl"
6255     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257     as_fn_arith $ac_count + 1 && ac_count=$as_val
6258     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6259       # Best one so far, save it but keep looking for a better one
6260       ac_cv_path_GREP="$ac_path_GREP"
6261       ac_path_GREP_max=$ac_count
6262     fi
6263     # 10*(2^10) chars as input seems more than enough
6264     test $ac_count -gt 10 && break
6265   done
6266   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267 esac
6268
6269       $ac_path_GREP_found && break 3
6270     done
6271   done
6272   done
6273 IFS=$as_save_IFS
6274   if test -z "$ac_cv_path_GREP"; then
6275     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6276   fi
6277 else
6278   ac_cv_path_GREP=$GREP
6279 fi
6280
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6283 $as_echo "$ac_cv_path_GREP" >&6; }
6284  GREP="$ac_cv_path_GREP"
6285
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6288 $as_echo_n "checking for egrep... " >&6; }
6289 if ${ac_cv_path_EGREP+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293    then ac_cv_path_EGREP="$GREP -E"
6294    else
6295      if test -z "$EGREP"; then
6296   ac_path_EGREP_found=false
6297   # Loop through the user's path and test for each of PROGNAME-LIST
6298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_prog in egrep; do
6304     for ac_exec_ext in '' $ac_executable_extensions; do
6305       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6306       as_fn_executable_p "$ac_path_EGREP" || continue
6307 # Check for GNU ac_path_EGREP and select it if it is found.
6308   # Check for GNU $ac_path_EGREP
6309 case `"$ac_path_EGREP" --version 2>&1` in
6310 *GNU*)
6311   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6312 *)
6313   ac_count=0
6314   $as_echo_n 0123456789 >"conftest.in"
6315   while :
6316   do
6317     cat "conftest.in" "conftest.in" >"conftest.tmp"
6318     mv "conftest.tmp" "conftest.in"
6319     cp "conftest.in" "conftest.nl"
6320     $as_echo 'EGREP' >> "conftest.nl"
6321     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323     as_fn_arith $ac_count + 1 && ac_count=$as_val
6324     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325       # Best one so far, save it but keep looking for a better one
6326       ac_cv_path_EGREP="$ac_path_EGREP"
6327       ac_path_EGREP_max=$ac_count
6328     fi
6329     # 10*(2^10) chars as input seems more than enough
6330     test $ac_count -gt 10 && break
6331   done
6332   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333 esac
6334
6335       $ac_path_EGREP_found && break 3
6336     done
6337   done
6338   done
6339 IFS=$as_save_IFS
6340   if test -z "$ac_cv_path_EGREP"; then
6341     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6342   fi
6343 else
6344   ac_cv_path_EGREP=$EGREP
6345 fi
6346
6347    fi
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6350 $as_echo "$ac_cv_path_EGREP" >&6; }
6351  EGREP="$ac_cv_path_EGREP"
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6355 $as_echo_n "checking for ANSI C header files... " >&6; }
6356 if ${ac_cv_header_stdc+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h.  */
6361 #include <stdlib.h>
6362 #include <stdarg.h>
6363 #include <string.h>
6364 #include <float.h>
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375   ac_cv_header_stdc=yes
6376 else
6377   ac_cv_header_stdc=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380
6381 if test $ac_cv_header_stdc = yes; then
6382   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h.  */
6385 #include <string.h>
6386
6387 _ACEOF
6388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389   $EGREP "memchr" >/dev/null 2>&1; then :
6390
6391 else
6392   ac_cv_header_stdc=no
6393 fi
6394 rm -f conftest*
6395
6396 fi
6397
6398 if test $ac_cv_header_stdc = yes; then
6399   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h.  */
6402 #include <stdlib.h>
6403
6404 _ACEOF
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406   $EGREP "free" >/dev/null 2>&1; then :
6407
6408 else
6409   ac_cv_header_stdc=no
6410 fi
6411 rm -f conftest*
6412
6413 fi
6414
6415 if test $ac_cv_header_stdc = yes; then
6416   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417   if test "$cross_compiling" = yes; then :
6418   :
6419 else
6420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h.  */
6422 #include <ctype.h>
6423 #include <stdlib.h>
6424 #if ((' ' & 0x0FF) == 0x020)
6425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6427 #else
6428 # define ISLOWER(c) \
6429                    (('a' <= (c) && (c) <= 'i') \
6430                      || ('j' <= (c) && (c) <= 'r') \
6431                      || ('s' <= (c) && (c) <= 'z'))
6432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6433 #endif
6434
6435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6436 int
6437 main ()
6438 {
6439   int i;
6440   for (i = 0; i < 256; i++)
6441     if (XOR (islower (i), ISLOWER (i))
6442         || toupper (i) != TOUPPER (i))
6443       return 2;
6444   return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_run "$LINENO"; then :
6448
6449 else
6450   ac_cv_header_stdc=no
6451 fi
6452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453   conftest.$ac_objext conftest.beam conftest.$ac_ext
6454 fi
6455
6456 fi
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6459 $as_echo "$ac_cv_header_stdc" >&6; }
6460 if test $ac_cv_header_stdc = yes; then
6461
6462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6463
6464 fi
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6468 if ${ac_cv_c_const+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h.  */
6473
6474 int
6475 main ()
6476 {
6477
6478 #ifndef __cplusplus
6479   /* Ultrix mips cc rejects this sort of thing.  */
6480   typedef int charset[2];
6481   const charset cs = { 0, 0 };
6482   /* SunOS 4.1.1 cc rejects this.  */
6483   char const *const *pcpcc;
6484   char **ppc;
6485   /* NEC SVR4.0.2 mips cc rejects this.  */
6486   struct point {int x, y;};
6487   static struct point const zero = {0,0};
6488   /* AIX XL C 1.02.0.0 rejects this.
6489      It does not let you subtract one const X* pointer from another in
6490      an arm of an if-expression whose if-part is not a constant
6491      expression */
6492   const char *g = "string";
6493   pcpcc = &g + (g ? g-g : 0);
6494   /* HPUX 7.0 cc rejects these. */
6495   ++pcpcc;
6496   ppc = (char**) pcpcc;
6497   pcpcc = (char const *const *) ppc;
6498   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6499     char tx;
6500     char *t = &tx;
6501     char const *s = 0 ? (char *) 0 : (char const *) 0;
6502
6503     *t++ = 0;
6504     if (s) return 0;
6505   }
6506   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6507     int x[] = {25, 17};
6508     const int *foo = &x[0];
6509     ++foo;
6510   }
6511   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6512     typedef const int *iptr;
6513     iptr p = 0;
6514     ++p;
6515   }
6516   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6517        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6518     struct s { int j; const int *ap[3]; } bx;
6519     struct s *b = &bx; b->j = 5;
6520   }
6521   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6522     const int foo = 10;
6523     if (!foo) return 0;
6524   }
6525   return !cs[0] && !zero.x;
6526 #endif
6527
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533   ac_cv_c_const=yes
6534 else
6535   ac_cv_c_const=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6540 $as_echo "$ac_cv_c_const" >&6; }
6541 if test $ac_cv_c_const = no; then
6542
6543 $as_echo "#define const /**/" >>confdefs.h
6544
6545 fi
6546
6547
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6549 $as_echo_n "checking for signed... " >&6; }
6550 if ${bh_cv_c_signed+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h.  */
6555
6556 int
6557 main ()
6558 {
6559 signed char x;
6560   ;
6561   return 0;
6562 }
6563 _ACEOF
6564 if ac_fn_c_try_compile "$LINENO"; then :
6565   bh_cv_c_signed=yes
6566 else
6567   bh_cv_c_signed=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6572 $as_echo "$bh_cv_c_signed" >&6; }
6573   if test $bh_cv_c_signed = no; then
6574
6575 $as_echo "#define signed /**/" >>confdefs.h
6576
6577   fi
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6580 $as_echo_n "checking for inline... " >&6; }
6581 if ${ac_cv_c_inline+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   ac_cv_c_inline=no
6585 for ac_kw in inline __inline__ __inline; do
6586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h.  */
6588 #ifndef __cplusplus
6589 typedef int foo_t;
6590 static $ac_kw foo_t static_foo () {return 0; }
6591 $ac_kw foo_t foo () {return 0; }
6592 #endif
6593
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596   ac_cv_c_inline=$ac_kw
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599   test "$ac_cv_c_inline" != no && break
6600 done
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6604 $as_echo "$ac_cv_c_inline" >&6; }
6605
6606 case $ac_cv_c_inline in
6607   inline | yes) ;;
6608   *)
6609     case $ac_cv_c_inline in
6610       no) ac_val=;;
6611       *) ac_val=$ac_cv_c_inline;;
6612     esac
6613     cat >>confdefs.h <<_ACEOF
6614 #ifndef __cplusplus
6615 #define inline $ac_val
6616 #endif
6617 _ACEOF
6618     ;;
6619 esac
6620
6621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6623                   inttypes.h stdint.h unistd.h
6624 do :
6625   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6627 "
6628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6629   cat >>confdefs.h <<_ACEOF
6630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 _ACEOF
6632
6633 fi
6634
6635 done
6636
6637
6638 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6639 if test "x$ac_cv_type_off_t" = xyes; then :
6640
6641 else
6642
6643 cat >>confdefs.h <<_ACEOF
6644 #define off_t long int
6645 _ACEOF
6646
6647 fi
6648
6649 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6650 if test "x$ac_cv_type_size_t" = xyes; then :
6651
6652 else
6653
6654 cat >>confdefs.h <<_ACEOF
6655 #define size_t unsigned int
6656 _ACEOF
6657
6658 fi
6659
6660
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6662 $as_echo_n "checking for long long... " >&6; }
6663 if ${ac_cv_type_long_long+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h.  */
6668 long long ll = 1LL; int i = 63;
6669 int
6670 main ()
6671 {
6672 long long llmax = (long long) -1;
6673      return ll << i | ll >> i | llmax / ll | llmax % ll;
6674   ;
6675   return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_link "$LINENO"; then :
6679   ac_cv_type_long_long=yes
6680 else
6681   ac_cv_type_long_long=no
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext \
6684     conftest$ac_exeext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6687 $as_echo "$ac_cv_type_long_long" >&6; }
6688   if test $ac_cv_type_long_long = yes; then
6689
6690 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6691
6692   fi
6693
6694
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6696 $as_echo_n "checking for long double... " >&6; }
6697 if ${gt_cv_c_long_double+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test "$GCC" = yes; then
6701        gt_cv_c_long_double=yes
6702      else
6703        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h.  */
6705
6706          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6707          long double foo = 0.0;
6708          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6709          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720   gt_cv_c_long_double=yes
6721 else
6722   gt_cv_c_long_double=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725      fi
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6728 $as_echo "$gt_cv_c_long_double" >&6; }
6729   if test $gt_cv_c_long_double = yes; then
6730
6731 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6732
6733   fi
6734
6735
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6737 $as_echo_n "checking for wchar_t... " >&6; }
6738 if ${gt_cv_c_wchar_t+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743 #include <stddef.h>
6744        wchar_t foo = (wchar_t)'\0';
6745 int
6746 main ()
6747 {
6748
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_compile "$LINENO"; then :
6754   gt_cv_c_wchar_t=yes
6755 else
6756   gt_cv_c_wchar_t=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 fi
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6761 $as_echo "$gt_cv_c_wchar_t" >&6; }
6762   if test $gt_cv_c_wchar_t = yes; then
6763
6764 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6765
6766   fi
6767
6768
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6770 $as_echo_n "checking for wint_t... " >&6; }
6771 if ${gt_cv_c_wint_t+:} false; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h.  */
6776 #include <wchar.h>
6777        wint_t foo = (wchar_t)'\0';
6778 int
6779 main ()
6780 {
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787   gt_cv_c_wint_t=yes
6788 else
6789   gt_cv_c_wint_t=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6794 $as_echo "$gt_cv_c_wint_t" >&6; }
6795   if test $gt_cv_c_wint_t = yes; then
6796
6797 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6798
6799   fi
6800
6801
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6803 $as_echo_n "checking for inttypes.h... " >&6; }
6804 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 #include <sys/types.h>
6810 #include <inttypes.h>
6811 int
6812 main ()
6813 {
6814 uintmax_t i = (uintmax_t) -1;
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820   jm_ac_cv_header_inttypes_h=yes
6821 else
6822   jm_ac_cv_header_inttypes_h=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6827 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6828   if test $jm_ac_cv_header_inttypes_h = yes; then
6829
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6832 _ACEOF
6833
6834   fi
6835
6836
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6838 $as_echo_n "checking for stdint.h... " >&6; }
6839 if ${jm_ac_cv_header_stdint_h+:} false; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844 #include <sys/types.h>
6845 #include <stdint.h>
6846 int
6847 main ()
6848 {
6849 uintmax_t i = (uintmax_t) -1;
6850   ;
6851   return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855   jm_ac_cv_header_stdint_h=yes
6856 else
6857   jm_ac_cv_header_stdint_h=no
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6862 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6863   if test $jm_ac_cv_header_stdint_h = yes; then
6864
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_STDINT_H_WITH_UINTMAX 1
6867 _ACEOF
6868
6869   fi
6870
6871
6872
6873
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6875 $as_echo_n "checking for intmax_t... " >&6; }
6876 if ${gt_cv_c_intmax_t+:} false; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h.  */
6881
6882 #include <stddef.h>
6883 #include <stdlib.h>
6884 #if HAVE_STDINT_H_WITH_UINTMAX
6885 #include <stdint.h>
6886 #endif
6887 #if HAVE_INTTYPES_H_WITH_UINTMAX
6888 #include <inttypes.h>
6889 #endif
6890
6891 int
6892 main ()
6893 {
6894 intmax_t x = -1;
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900   gt_cv_c_intmax_t=yes
6901 else
6902   gt_cv_c_intmax_t=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6907 $as_echo "$gt_cv_c_intmax_t" >&6; }
6908   if test $gt_cv_c_intmax_t = yes; then
6909
6910 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6911
6912   fi
6913
6914
6915
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6917 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6918 if ${gt_cv_func_printf_posix+:} false; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921
6922       if test "$cross_compiling" = yes; then :
6923
6924         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926
6927 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6928   notposix
6929 #endif
6930
6931 _ACEOF
6932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933   $EGREP "notposix" >/dev/null 2>&1; then :
6934   gt_cv_func_printf_posix="guessing no"
6935 else
6936   gt_cv_func_printf_posix="guessing yes"
6937 fi
6938 rm -f conftest*
6939
6940
6941 else
6942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h.  */
6944
6945 #include <stdio.h>
6946 #include <string.h>
6947 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6948    dollar expansion (possibly an autoconf bug).  */
6949 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6950 static char buf[100];
6951 int main ()
6952 {
6953   sprintf (buf, format, 33, 55);
6954   return (strcmp (buf, "55 33") != 0);
6955 }
6956 _ACEOF
6957 if ac_fn_c_try_run "$LINENO"; then :
6958   gt_cv_func_printf_posix=yes
6959 else
6960   gt_cv_func_printf_posix=no
6961 fi
6962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6963   conftest.$ac_objext conftest.beam conftest.$ac_ext
6964 fi
6965
6966
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6969 $as_echo "$gt_cv_func_printf_posix" >&6; }
6970   case $gt_cv_func_printf_posix in
6971     *yes)
6972
6973 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6974
6975       ;;
6976   esac
6977
6978 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6979 # for constant arguments.  Useless!
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6981 $as_echo_n "checking for working alloca.h... " >&6; }
6982 if ${ac_cv_working_alloca_h+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h.  */
6987 #include <alloca.h>
6988 int
6989 main ()
6990 {
6991 char *p = (char *) alloca (2 * sizeof (int));
6992                           if (p) return 0;
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 if ac_fn_c_try_link "$LINENO"; then :
6998   ac_cv_working_alloca_h=yes
6999 else
7000   ac_cv_working_alloca_h=no
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext \
7003     conftest$ac_exeext conftest.$ac_ext
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7006 $as_echo "$ac_cv_working_alloca_h" >&6; }
7007 if test $ac_cv_working_alloca_h = yes; then
7008
7009 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7010
7011 fi
7012
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7014 $as_echo_n "checking for alloca... " >&6; }
7015 if ${ac_cv_func_alloca_works+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h.  */
7020 #ifdef __GNUC__
7021 # define alloca __builtin_alloca
7022 #else
7023 # ifdef _MSC_VER
7024 #  include <malloc.h>
7025 #  define alloca _alloca
7026 # else
7027 #  ifdef HAVE_ALLOCA_H
7028 #   include <alloca.h>
7029 #  else
7030 #   ifdef _AIX
7031  #pragma alloca
7032 #   else
7033 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7034 void *alloca (size_t);
7035 #    endif
7036 #   endif
7037 #  endif
7038 # endif
7039 #endif
7040
7041 int
7042 main ()
7043 {
7044 char *p = (char *) alloca (1);
7045                                     if (p) return 0;
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051   ac_cv_func_alloca_works=yes
7052 else
7053   ac_cv_func_alloca_works=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056     conftest$ac_exeext conftest.$ac_ext
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7059 $as_echo "$ac_cv_func_alloca_works" >&6; }
7060
7061 if test $ac_cv_func_alloca_works = yes; then
7062
7063 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7064
7065 else
7066   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7067 # that cause trouble.  Some versions do not even contain alloca or
7068 # contain a buggy version.  If you still want to use their alloca,
7069 # use ar to extract alloca.o from them instead of compiling alloca.c.
7070
7071 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7072
7073 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7074
7075
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7077 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7078 if ${ac_cv_os_cray+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h.  */
7083 #if defined CRAY && ! defined CRAY2
7084 webecray
7085 #else
7086 wenotbecray
7087 #endif
7088
7089 _ACEOF
7090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091   $EGREP "webecray" >/dev/null 2>&1; then :
7092   ac_cv_os_cray=yes
7093 else
7094   ac_cv_os_cray=no
7095 fi
7096 rm -f conftest*
7097
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7100 $as_echo "$ac_cv_os_cray" >&6; }
7101 if test $ac_cv_os_cray = yes; then
7102   for ac_func in _getb67 GETB67 getb67; do
7103     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7105 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7106
7107 cat >>confdefs.h <<_ACEOF
7108 #define CRAY_STACKSEG_END $ac_func
7109 _ACEOF
7110
7111     break
7112 fi
7113
7114   done
7115 fi
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7118 $as_echo_n "checking stack direction for C alloca... " >&6; }
7119 if ${ac_cv_c_stack_direction+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test "$cross_compiling" = yes; then :
7123   ac_cv_c_stack_direction=0
7124 else
7125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h.  */
7127 $ac_includes_default
7128 int
7129 find_stack_direction (int *addr, int depth)
7130 {
7131   int dir, dummy = 0;
7132   if (! addr)
7133     addr = &dummy;
7134   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7135   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7136   return dir + dummy;
7137 }
7138
7139 int
7140 main (int argc, char **argv)
7141 {
7142   return find_stack_direction (0, argc + !argv + 20) < 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_run "$LINENO"; then :
7146   ac_cv_c_stack_direction=1
7147 else
7148   ac_cv_c_stack_direction=-1
7149 fi
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151   conftest.$ac_objext conftest.beam conftest.$ac_ext
7152 fi
7153
7154 fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7156 $as_echo "$ac_cv_c_stack_direction" >&6; }
7157 cat >>confdefs.h <<_ACEOF
7158 #define STACK_DIRECTION $ac_cv_c_stack_direction
7159 _ACEOF
7160
7161
7162 fi
7163
7164
7165
7166
7167   for ac_header in $ac_header_list
7168 do :
7169   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7170 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7171 "
7172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7173   cat >>confdefs.h <<_ACEOF
7174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 _ACEOF
7176
7177 fi
7178
7179 done
7180
7181
7182
7183
7184
7185
7186
7187
7188 for ac_func in getpagesize
7189 do :
7190   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7191 if test "x$ac_cv_func_getpagesize" = xyes; then :
7192   cat >>confdefs.h <<_ACEOF
7193 #define HAVE_GETPAGESIZE 1
7194 _ACEOF
7195
7196 fi
7197 done
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7200 $as_echo_n "checking for working mmap... " >&6; }
7201 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   if test "$cross_compiling" = yes; then :
7205   ac_cv_func_mmap_fixed_mapped=no
7206 else
7207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h.  */
7209 $ac_includes_default
7210 /* malloc might have been renamed as rpl_malloc. */
7211 #undef malloc
7212
7213 /* Thanks to Mike Haertel and Jim Avera for this test.
7214    Here is a matrix of mmap possibilities:
7215         mmap private not fixed
7216         mmap private fixed at somewhere currently unmapped
7217         mmap private fixed at somewhere already mapped
7218         mmap shared not fixed
7219         mmap shared fixed at somewhere currently unmapped
7220         mmap shared fixed at somewhere already mapped
7221    For private mappings, we should verify that changes cannot be read()
7222    back from the file, nor mmap's back from the file at a different
7223    address.  (There have been systems where private was not correctly
7224    implemented like the infamous i386 svr4.0, and systems where the
7225    VM page cache was not coherent with the file system buffer cache
7226    like early versions of FreeBSD and possibly contemporary NetBSD.)
7227    For shared mappings, we should conversely verify that changes get
7228    propagated back to all the places they're supposed to be.
7229
7230    Grep wants private fixed already mapped.
7231    The main things grep needs to know about mmap are:
7232    * does it exist and is it safe to write into the mmap'd area
7233    * how to use it (BSD variants)  */
7234
7235 #include <fcntl.h>
7236 #include <sys/mman.h>
7237
7238 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7239 char *malloc ();
7240 #endif
7241
7242 /* This mess was copied from the GNU getpagesize.h.  */
7243 #ifndef HAVE_GETPAGESIZE
7244 # ifdef _SC_PAGESIZE
7245 #  define getpagesize() sysconf(_SC_PAGESIZE)
7246 # else /* no _SC_PAGESIZE */
7247 #  ifdef HAVE_SYS_PARAM_H
7248 #   include <sys/param.h>
7249 #   ifdef EXEC_PAGESIZE
7250 #    define getpagesize() EXEC_PAGESIZE
7251 #   else /* no EXEC_PAGESIZE */
7252 #    ifdef NBPG
7253 #     define getpagesize() NBPG * CLSIZE
7254 #     ifndef CLSIZE
7255 #      define CLSIZE 1
7256 #     endif /* no CLSIZE */
7257 #    else /* no NBPG */
7258 #     ifdef NBPC
7259 #      define getpagesize() NBPC
7260 #     else /* no NBPC */
7261 #      ifdef PAGESIZE
7262 #       define getpagesize() PAGESIZE
7263 #      endif /* PAGESIZE */
7264 #     endif /* no NBPC */
7265 #    endif /* no NBPG */
7266 #   endif /* no EXEC_PAGESIZE */
7267 #  else /* no HAVE_SYS_PARAM_H */
7268 #   define getpagesize() 8192   /* punt totally */
7269 #  endif /* no HAVE_SYS_PARAM_H */
7270 # endif /* no _SC_PAGESIZE */
7271
7272 #endif /* no HAVE_GETPAGESIZE */
7273
7274 int
7275 main ()
7276 {
7277   char *data, *data2, *data3;
7278   const char *cdata2;
7279   int i, pagesize;
7280   int fd, fd2;
7281
7282   pagesize = getpagesize ();
7283
7284   /* First, make a file with some known garbage in it. */
7285   data = (char *) malloc (pagesize);
7286   if (!data)
7287     return 1;
7288   for (i = 0; i < pagesize; ++i)
7289     *(data + i) = rand ();
7290   umask (0);
7291   fd = creat ("conftest.mmap", 0600);
7292   if (fd < 0)
7293     return 2;
7294   if (write (fd, data, pagesize) != pagesize)
7295     return 3;
7296   close (fd);
7297
7298   /* Next, check that the tail of a page is zero-filled.  File must have
7299      non-zero length, otherwise we risk SIGBUS for entire page.  */
7300   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7301   if (fd2 < 0)
7302     return 4;
7303   cdata2 = "";
7304   if (write (fd2, cdata2, 1) != 1)
7305     return 5;
7306   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7307   if (data2 == MAP_FAILED)
7308     return 6;
7309   for (i = 0; i < pagesize; ++i)
7310     if (*(data2 + i))
7311       return 7;
7312   close (fd2);
7313   if (munmap (data2, pagesize))
7314     return 8;
7315
7316   /* Next, try to mmap the file at a fixed address which already has
7317      something else allocated at it.  If we can, also make sure that
7318      we see the same garbage.  */
7319   fd = open ("conftest.mmap", O_RDWR);
7320   if (fd < 0)
7321     return 9;
7322   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7323                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7324     return 10;
7325   for (i = 0; i < pagesize; ++i)
7326     if (*(data + i) != *(data2 + i))
7327       return 11;
7328
7329   /* Finally, make sure that changes to the mapped area do not
7330      percolate back to the file as seen by read().  (This is a bug on
7331      some variants of i386 svr4.0.)  */
7332   for (i = 0; i < pagesize; ++i)
7333     *(data2 + i) = *(data2 + i) + 1;
7334   data3 = (char *) malloc (pagesize);
7335   if (!data3)
7336     return 12;
7337   if (read (fd, data3, pagesize) != pagesize)
7338     return 13;
7339   for (i = 0; i < pagesize; ++i)
7340     if (*(data + i) != *(data3 + i))
7341       return 14;
7342   close (fd);
7343   return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_run "$LINENO"; then :
7347   ac_cv_func_mmap_fixed_mapped=yes
7348 else
7349   ac_cv_func_mmap_fixed_mapped=no
7350 fi
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352   conftest.$ac_objext conftest.beam conftest.$ac_ext
7353 fi
7354
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7357 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7359
7360 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7361
7362 fi
7363 rm -f conftest.mmap conftest.txt
7364
7365
7366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7367 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7368 if ${ac_cv_gnu_library_2_1+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h.  */
7373
7374 #include <features.h>
7375 #ifdef __GNU_LIBRARY__
7376  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7377   Lucky GNU user
7378  #endif
7379 #endif
7380
7381 _ACEOF
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7384   ac_cv_gnu_library_2_1=yes
7385 else
7386   ac_cv_gnu_library_2_1=no
7387 fi
7388 rm -f conftest*
7389
7390
7391
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7394 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7395
7396     GLIBC21="$ac_cv_gnu_library_2_1"
7397
7398
7399
7400
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7402 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7403 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406
7407       if test "$cross_compiling" = yes; then :
7408
7409           # Guess based on the CPU.
7410           case "$host_cpu" in
7411             alpha* | i3456786 | m68k | s390*)
7412               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7413             *)
7414               gt_cv_int_divbyzero_sigfpe="guessing no";;
7415           esac
7416
7417 else
7418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h.  */
7420
7421 #include <stdlib.h>
7422 #include <signal.h>
7423
7424 static void
7425 #ifdef __cplusplus
7426 sigfpe_handler (int sig)
7427 #else
7428 sigfpe_handler (sig) int sig;
7429 #endif
7430 {
7431   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7432   exit (sig != SIGFPE);
7433 }
7434
7435 int x = 1;
7436 int y = 0;
7437 int z;
7438 int nan;
7439
7440 int main ()
7441 {
7442   signal (SIGFPE, sigfpe_handler);
7443 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7444 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7445   signal (SIGTRAP, sigfpe_handler);
7446 #endif
7447 /* Linux/SPARC yields signal SIGILL.  */
7448 #if defined (__sparc__) && defined (__linux__)
7449   signal (SIGILL, sigfpe_handler);
7450 #endif
7451
7452   z = x / y;
7453   nan = y / y;
7454   exit (1);
7455 }
7456
7457 _ACEOF
7458 if ac_fn_c_try_run "$LINENO"; then :
7459   gt_cv_int_divbyzero_sigfpe=yes
7460 else
7461   gt_cv_int_divbyzero_sigfpe=no
7462 fi
7463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7464   conftest.$ac_objext conftest.beam conftest.$ac_ext
7465 fi
7466
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7470 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7471   case "$gt_cv_int_divbyzero_sigfpe" in
7472     *yes) value=1;;
7473     *) value=0;;
7474   esac
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define INTDIV0_RAISES_SIGFPE $value
7478 _ACEOF
7479
7480
7481
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7483 $as_echo_n "checking for unsigned long long... " >&6; }
7484 if ${ac_cv_type_unsigned_long_long+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489 unsigned long long ull = 1ULL; int i = 63;
7490 int
7491 main ()
7492 {
7493 unsigned long long ullmax = (unsigned long long) -1;
7494      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7500   ac_cv_type_unsigned_long_long=yes
7501 else
7502   ac_cv_type_unsigned_long_long=no
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext \
7505     conftest$ac_exeext conftest.$ac_ext
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7508 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7509   if test $ac_cv_type_unsigned_long_long = yes; then
7510
7511 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7512
7513   fi
7514
7515
7516
7517
7518   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7519
7520     test $ac_cv_type_unsigned_long_long = yes \
7521       && ac_type='unsigned long long' \
7522       || ac_type='unsigned long'
7523
7524 cat >>confdefs.h <<_ACEOF
7525 #define uintmax_t $ac_type
7526 _ACEOF
7527
7528   else
7529
7530 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7531
7532   fi
7533
7534
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7536 $as_echo_n "checking for inttypes.h... " >&6; }
7537 if ${gt_cv_header_inttypes_h+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540
7541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543 #include <sys/types.h>
7544 #include <inttypes.h>
7545 int
7546 main ()
7547 {
7548
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554   gt_cv_header_inttypes_h=yes
7555 else
7556   gt_cv_header_inttypes_h=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7562 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7563   if test $gt_cv_header_inttypes_h = yes; then
7564
7565 cat >>confdefs.h <<_ACEOF
7566 #define HAVE_INTTYPES_H 1
7567 _ACEOF
7568
7569   fi
7570
7571
7572
7573   if test $gt_cv_header_inttypes_h = yes; then
7574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7575 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7576 if ${gt_cv_inttypes_pri_broken+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579
7580         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h.  */
7582 #include <inttypes.h>
7583 #ifdef PRId32
7584 char *p = PRId32;
7585 #endif
7586
7587 int
7588 main ()
7589 {
7590
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596   gt_cv_inttypes_pri_broken=no
7597 else
7598   gt_cv_inttypes_pri_broken=yes
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7604 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7605   fi
7606   if test "$gt_cv_inttypes_pri_broken" = yes; then
7607
7608 cat >>confdefs.h <<_ACEOF
7609 #define PRI_MACROS_BROKEN 1
7610 _ACEOF
7611
7612   fi
7613
7614
7615   for ac_header in stdint.h
7616 do :
7617   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_stdint_h" = xyes; then :
7619   cat >>confdefs.h <<_ACEOF
7620 #define HAVE_STDINT_H 1
7621 _ACEOF
7622
7623 fi
7624
7625 done
7626
7627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7628 $as_echo_n "checking for SIZE_MAX... " >&6; }
7629   result=
7630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h.  */
7632
7633 #include <limits.h>
7634 #if HAVE_STDINT_H
7635 #include <stdint.h>
7636 #endif
7637 #ifdef SIZE_MAX
7638 Found it
7639 #endif
7640
7641 _ACEOF
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643   $EGREP "Found it" >/dev/null 2>&1; then :
7644   result=yes
7645 fi
7646 rm -f conftest*
7647
7648   if test -z "$result"; then
7649                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7650
7651 else
7652   result=?
7653 fi
7654
7655
7656     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7657
7658 else
7659   result=?
7660 fi
7661
7662
7663     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7664
7665 else
7666   result=?
7667 fi
7668
7669
7670     if test "$fits_in_uint" = 1; then
7671                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h.  */
7673 #include <stddef.h>
7674         extern size_t foo;
7675         extern unsigned long foo;
7676
7677 int
7678 main ()
7679 {
7680
7681   ;
7682   return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686   fits_in_uint=0
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689     fi
7690     if test -z "$result"; then
7691       if test "$fits_in_uint" = 1; then
7692         result="$res_hi$res_lo"U
7693       else
7694         result="$res_hi$res_lo"UL
7695       fi
7696     else
7697             result='~(size_t)0'
7698     fi
7699   fi
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7701 $as_echo "$result" >&6; }
7702   if test "$result" != yes; then
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define SIZE_MAX $result
7706 _ACEOF
7707
7708   fi
7709
7710
7711
7712   for ac_header in stdint.h
7713 do :
7714   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7715 if test "x$ac_cv_header_stdint_h" = xyes; then :
7716   cat >>confdefs.h <<_ACEOF
7717 #define HAVE_STDINT_H 1
7718 _ACEOF
7719
7720 fi
7721
7722 done
7723
7724
7725
7726       if test "X$prefix" = "XNONE"; then
7727     acl_final_prefix="$ac_default_prefix"
7728   else
7729     acl_final_prefix="$prefix"
7730   fi
7731   if test "X$exec_prefix" = "XNONE"; then
7732     acl_final_exec_prefix='${prefix}'
7733   else
7734     acl_final_exec_prefix="$exec_prefix"
7735   fi
7736   acl_save_prefix="$prefix"
7737   prefix="$acl_final_prefix"
7738   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7739   prefix="$acl_save_prefix"
7740
7741
7742 # Check whether --with-gnu-ld was given.
7743 if test "${with_gnu_ld+set}" = set; then :
7744   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7745 else
7746   with_gnu_ld=no
7747 fi
7748
7749 # Prepare PATH_SEPARATOR.
7750 # The user is always right.
7751 if test "${PATH_SEPARATOR+set}" != set; then
7752   echo "#! /bin/sh" >conf$$.sh
7753   echo  "exit 0"   >>conf$$.sh
7754   chmod +x conf$$.sh
7755   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7756     PATH_SEPARATOR=';'
7757   else
7758     PATH_SEPARATOR=:
7759   fi
7760   rm -f conf$$.sh
7761 fi
7762 ac_prog=ld
7763 if test "$GCC" = yes; then
7764   # Check if gcc -print-prog-name=ld gives a path.
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7766 $as_echo_n "checking for ld used by GCC... " >&6; }
7767   case $host in
7768   *-*-mingw*)
7769     # gcc leaves a trailing carriage return which upsets mingw
7770     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7771   *)
7772     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7773   esac
7774   case $ac_prog in
7775     # Accept absolute paths.
7776     [\\/]* | [A-Za-z]:[\\/]*)
7777       re_direlt='/[^/][^/]*/\.\./'
7778       # Canonicalize the path of ld
7779       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7780       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7781         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7782       done
7783       test -z "$LD" && LD="$ac_prog"
7784       ;;
7785   "")
7786     # If it fails, then pretend we aren't using GCC.
7787     ac_prog=ld
7788     ;;
7789   *)
7790     # If it is relative, then search for the first ld in PATH.
7791     with_gnu_ld=unknown
7792     ;;
7793   esac
7794 elif test "$with_gnu_ld" = yes; then
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7796 $as_echo_n "checking for GNU ld... " >&6; }
7797 else
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7799 $as_echo_n "checking for non-GNU ld... " >&6; }
7800 fi
7801 if ${acl_cv_path_LD+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -z "$LD"; then
7805   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7806   for ac_dir in $PATH; do
7807     test -z "$ac_dir" && ac_dir=.
7808     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7809       acl_cv_path_LD="$ac_dir/$ac_prog"
7810       # Check to see if the program is GNU ld.  I'd rather use --version,
7811       # but apparently some GNU ld's only accept -v.
7812       # Break only if it was the GNU/non-GNU ld that we prefer.
7813       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7814       *GNU* | *'with BFD'*)
7815         test "$with_gnu_ld" != no && break ;;
7816       *)
7817         test "$with_gnu_ld" != yes && break ;;
7818       esac
7819     fi
7820   done
7821   IFS="$ac_save_ifs"
7822 else
7823   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7824 fi
7825 fi
7826
7827 LD="$acl_cv_path_LD"
7828 if test -n "$LD"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7830 $as_echo "$LD" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7838 if ${acl_cv_prog_gnu_ld+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7842 case `$LD -v 2>&1 </dev/null` in
7843 *GNU* | *'with BFD'*)
7844   acl_cv_prog_gnu_ld=yes ;;
7845 *)
7846   acl_cv_prog_gnu_ld=no ;;
7847 esac
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7850 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7851 with_gnu_ld=$acl_cv_prog_gnu_ld
7852
7853
7854
7855                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7856 $as_echo_n "checking for shared library run path origin... " >&6; }
7857 if ${acl_cv_rpath+:} false; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860
7861     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7862     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7863     . ./conftest.sh
7864     rm -f ./conftest.sh
7865     acl_cv_rpath=done
7866
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7869 $as_echo "$acl_cv_rpath" >&6; }
7870   wl="$acl_cv_wl"
7871   libext="$acl_cv_libext"
7872   shlibext="$acl_cv_shlibext"
7873   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7874   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7875   hardcode_direct="$acl_cv_hardcode_direct"
7876   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7877     # Check whether --enable-rpath was given.
7878 if test "${enable_rpath+set}" = set; then :
7879   enableval=$enable_rpath; :
7880 else
7881   enable_rpath=yes
7882 fi
7883
7884
7885
7886
7887
7888
7889
7890
7891     use_additional=yes
7892
7893   acl_save_prefix="$prefix"
7894   prefix="$acl_final_prefix"
7895   acl_save_exec_prefix="$exec_prefix"
7896   exec_prefix="$acl_final_exec_prefix"
7897
7898     eval additional_includedir=\"$includedir\"
7899     eval additional_libdir=\"$libdir\"
7900
7901   exec_prefix="$acl_save_exec_prefix"
7902   prefix="$acl_save_prefix"
7903
7904
7905 # Check whether --with-libiconv-prefix was given.
7906 if test "${with_libiconv_prefix+set}" = set; then :
7907   withval=$with_libiconv_prefix;
7908     if test "X$withval" = "Xno"; then
7909       use_additional=no
7910     else
7911       if test "X$withval" = "X"; then
7912
7913   acl_save_prefix="$prefix"
7914   prefix="$acl_final_prefix"
7915   acl_save_exec_prefix="$exec_prefix"
7916   exec_prefix="$acl_final_exec_prefix"
7917
7918           eval additional_includedir=\"$includedir\"
7919           eval additional_libdir=\"$libdir\"
7920
7921   exec_prefix="$acl_save_exec_prefix"
7922   prefix="$acl_save_prefix"
7923
7924       else
7925         additional_includedir="$withval/include"
7926         additional_libdir="$withval/lib"
7927       fi
7928     fi
7929
7930 fi
7931
7932       LIBICONV=
7933   LTLIBICONV=
7934   INCICONV=
7935   rpathdirs=
7936   ltrpathdirs=
7937   names_already_handled=
7938   names_next_round='iconv '
7939   while test -n "$names_next_round"; do
7940     names_this_round="$names_next_round"
7941     names_next_round=
7942     for name in $names_this_round; do
7943       already_handled=
7944       for n in $names_already_handled; do
7945         if test "$n" = "$name"; then
7946           already_handled=yes
7947           break
7948         fi
7949       done
7950       if test -z "$already_handled"; then
7951         names_already_handled="$names_already_handled $name"
7952                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7953         eval value=\"\$HAVE_LIB$uppername\"
7954         if test -n "$value"; then
7955           if test "$value" = yes; then
7956             eval value=\"\$LIB$uppername\"
7957             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7958             eval value=\"\$LTLIB$uppername\"
7959             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7960           else
7961                                     :
7962           fi
7963         else
7964                               found_dir=
7965           found_la=
7966           found_so=
7967           found_a=
7968           if test $use_additional = yes; then
7969             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7970               found_dir="$additional_libdir"
7971               found_so="$additional_libdir/lib$name.$shlibext"
7972               if test -f "$additional_libdir/lib$name.la"; then
7973                 found_la="$additional_libdir/lib$name.la"
7974               fi
7975             else
7976               if test -f "$additional_libdir/lib$name.$libext"; then
7977                 found_dir="$additional_libdir"
7978                 found_a="$additional_libdir/lib$name.$libext"
7979                 if test -f "$additional_libdir/lib$name.la"; then
7980                   found_la="$additional_libdir/lib$name.la"
7981                 fi
7982               fi
7983             fi
7984           fi
7985           if test "X$found_dir" = "X"; then
7986             for x in $LDFLAGS $LTLIBICONV; do
7987
7988   acl_save_prefix="$prefix"
7989   prefix="$acl_final_prefix"
7990   acl_save_exec_prefix="$exec_prefix"
7991   exec_prefix="$acl_final_exec_prefix"
7992   eval x=\"$x\"
7993   exec_prefix="$acl_save_exec_prefix"
7994   prefix="$acl_save_prefix"
7995
7996               case "$x" in
7997                 -L*)
7998                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7999                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8000                     found_dir="$dir"
8001                     found_so="$dir/lib$name.$shlibext"
8002                     if test -f "$dir/lib$name.la"; then
8003                       found_la="$dir/lib$name.la"
8004                     fi
8005                   else
8006                     if test -f "$dir/lib$name.$libext"; then
8007                       found_dir="$dir"
8008                       found_a="$dir/lib$name.$libext"
8009                       if test -f "$dir/lib$name.la"; then
8010                         found_la="$dir/lib$name.la"
8011                       fi
8012                     fi
8013                   fi
8014                   ;;
8015               esac
8016               if test "X$found_dir" != "X"; then
8017                 break
8018               fi
8019             done
8020           fi
8021           if test "X$found_dir" != "X"; then
8022                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8023             if test "X$found_so" != "X"; then
8024                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8025                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8026               else
8027                                                                                 haveit=
8028                 for x in $ltrpathdirs; do
8029                   if test "X$x" = "X$found_dir"; then
8030                     haveit=yes
8031                     break
8032                   fi
8033                 done
8034                 if test -z "$haveit"; then
8035                   ltrpathdirs="$ltrpathdirs $found_dir"
8036                 fi
8037                                 if test "$hardcode_direct" = yes; then
8038                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8039                 else
8040                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8041                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8042                                                             haveit=
8043                     for x in $rpathdirs; do
8044                       if test "X$x" = "X$found_dir"; then
8045                         haveit=yes
8046                         break
8047                       fi
8048                     done
8049                     if test -z "$haveit"; then
8050                       rpathdirs="$rpathdirs $found_dir"
8051                     fi
8052                   else
8053                                                                                 haveit=
8054                     for x in $LDFLAGS $LIBICONV; do
8055
8056   acl_save_prefix="$prefix"
8057   prefix="$acl_final_prefix"
8058   acl_save_exec_prefix="$exec_prefix"
8059   exec_prefix="$acl_final_exec_prefix"
8060   eval x=\"$x\"
8061   exec_prefix="$acl_save_exec_prefix"
8062   prefix="$acl_save_prefix"
8063
8064                       if test "X$x" = "X-L$found_dir"; then
8065                         haveit=yes
8066                         break
8067                       fi
8068                     done
8069                     if test -z "$haveit"; then
8070                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8071                     fi
8072                     if test "$hardcode_minus_L" != no; then
8073                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8074                     else
8075                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8076                     fi
8077                   fi
8078                 fi
8079               fi
8080             else
8081               if test "X$found_a" != "X"; then
8082                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8083               else
8084                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8085               fi
8086             fi
8087                         additional_includedir=
8088             case "$found_dir" in
8089               */lib | */lib/)
8090                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8091                 additional_includedir="$basedir/include"
8092                 ;;
8093             esac
8094             if test "X$additional_includedir" != "X"; then
8095                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8096                 haveit=
8097                 if test "X$additional_includedir" = "X/usr/local/include"; then
8098                   if test -n "$GCC"; then
8099                     case $host_os in
8100                       linux*) haveit=yes;;
8101                     esac
8102                   fi
8103                 fi
8104                 if test -z "$haveit"; then
8105                   for x in $CPPFLAGS $INCICONV; do
8106
8107   acl_save_prefix="$prefix"
8108   prefix="$acl_final_prefix"
8109   acl_save_exec_prefix="$exec_prefix"
8110   exec_prefix="$acl_final_exec_prefix"
8111   eval x=\"$x\"
8112   exec_prefix="$acl_save_exec_prefix"
8113   prefix="$acl_save_prefix"
8114
8115                     if test "X$x" = "X-I$additional_includedir"; then
8116                       haveit=yes
8117                       break
8118                     fi
8119                   done
8120                   if test -z "$haveit"; then
8121                     if test -d "$additional_includedir"; then
8122                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8123                     fi
8124                   fi
8125                 fi
8126               fi
8127             fi
8128                         if test -n "$found_la"; then
8129                                                         save_libdir="$libdir"
8130               case "$found_la" in
8131                 */* | *\\*) . "$found_la" ;;
8132                 *) . "./$found_la" ;;
8133               esac
8134               libdir="$save_libdir"
8135                             for dep in $dependency_libs; do
8136                 case "$dep" in
8137                   -L*)
8138                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8139                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8140                       haveit=
8141                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8142                         if test -n "$GCC"; then
8143                           case $host_os in
8144                             linux*) haveit=yes;;
8145                           esac
8146                         fi
8147                       fi
8148                       if test -z "$haveit"; then
8149                         haveit=
8150                         for x in $LDFLAGS $LIBICONV; do
8151
8152   acl_save_prefix="$prefix"
8153   prefix="$acl_final_prefix"
8154   acl_save_exec_prefix="$exec_prefix"
8155   exec_prefix="$acl_final_exec_prefix"
8156   eval x=\"$x\"
8157   exec_prefix="$acl_save_exec_prefix"
8158   prefix="$acl_save_prefix"
8159
8160                           if test "X$x" = "X-L$additional_libdir"; then
8161                             haveit=yes
8162                             break
8163                           fi
8164                         done
8165                         if test -z "$haveit"; then
8166                           if test -d "$additional_libdir"; then
8167                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8168                           fi
8169                         fi
8170                         haveit=
8171                         for x in $LDFLAGS $LTLIBICONV; do
8172
8173   acl_save_prefix="$prefix"
8174   prefix="$acl_final_prefix"
8175   acl_save_exec_prefix="$exec_prefix"
8176   exec_prefix="$acl_final_exec_prefix"
8177   eval x=\"$x\"
8178   exec_prefix="$acl_save_exec_prefix"
8179   prefix="$acl_save_prefix"
8180
8181                           if test "X$x" = "X-L$additional_libdir"; then
8182                             haveit=yes
8183                             break
8184                           fi
8185                         done
8186                         if test -z "$haveit"; then
8187                           if test -d "$additional_libdir"; then
8188                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8189                           fi
8190                         fi
8191                       fi
8192                     fi
8193                     ;;
8194                   -R*)
8195                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8196                     if test "$enable_rpath" != no; then
8197                                                                   haveit=
8198                       for x in $rpathdirs; do
8199                         if test "X$x" = "X$dir"; then
8200                           haveit=yes
8201                           break
8202                         fi
8203                       done
8204                       if test -z "$haveit"; then
8205                         rpathdirs="$rpathdirs $dir"
8206                       fi
8207                                                                   haveit=
8208                       for x in $ltrpathdirs; do
8209                         if test "X$x" = "X$dir"; then
8210                           haveit=yes
8211                           break
8212                         fi
8213                       done
8214                       if test -z "$haveit"; then
8215                         ltrpathdirs="$ltrpathdirs $dir"
8216                       fi
8217                     fi
8218                     ;;
8219                   -l*)
8220                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8221                     ;;
8222                   *.la)
8223                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8224                     ;;
8225                   *)
8226                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8227                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8228                     ;;
8229                 esac
8230               done
8231             fi
8232           else
8233                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8234             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8235           fi
8236         fi
8237       fi
8238     done
8239   done
8240   if test "X$rpathdirs" != "X"; then
8241     if test -n "$hardcode_libdir_separator"; then
8242                         alldirs=
8243       for found_dir in $rpathdirs; do
8244         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8245       done
8246             acl_save_libdir="$libdir"
8247       libdir="$alldirs"
8248       eval flag=\"$hardcode_libdir_flag_spec\"
8249       libdir="$acl_save_libdir"
8250       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8251     else
8252             for found_dir in $rpathdirs; do
8253         acl_save_libdir="$libdir"
8254         libdir="$found_dir"
8255         eval flag=\"$hardcode_libdir_flag_spec\"
8256         libdir="$acl_save_libdir"
8257         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8258       done
8259     fi
8260   fi
8261   if test "X$ltrpathdirs" != "X"; then
8262             for found_dir in $ltrpathdirs; do
8263       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8264     done
8265   fi
8266
8267
8268
8269
8270
8271
8272
8273
8274   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8275 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8276
8277 else
8278
8279 $as_echo "#define ptrdiff_t long" >>confdefs.h
8280
8281
8282 fi
8283
8284   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8285 stdlib.h string.h unistd.h sys/param.h
8286 do :
8287   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8290   cat >>confdefs.h <<_ACEOF
8291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8292 _ACEOF
8293
8294 fi
8295
8296 done
8297
8298   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8299 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8300 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8301 __fsetlocking
8302 do :
8303   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8306   cat >>confdefs.h <<_ACEOF
8307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8308 _ACEOF
8309
8310 fi
8311 done
8312
8313
8314
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8316 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8317 if ${ac_cv_have_decl__snprintf+:} false; then :
8318   $as_echo_n "(cached) " >&6
8319 else
8320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322 #include <stdio.h>
8323 int
8324 main ()
8325 {
8326
8327 #ifndef _snprintf
8328   char *p = (char *) _snprintf;
8329 #endif
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336   ac_cv_have_decl__snprintf=yes
8337 else
8338   ac_cv_have_decl__snprintf=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8343 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8344   if test $ac_cv_have_decl__snprintf = yes; then
8345     gt_value=1
8346   else
8347     gt_value=0
8348   fi
8349
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DECL__SNPRINTF $gt_value
8352 _ACEOF
8353
8354
8355
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8357 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8358 if ${ac_cv_have_decl__snwprintf+:} 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 _snwprintf
8369   char *p = (char *) _snwprintf;
8370 #endif
8371
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377   ac_cv_have_decl__snwprintf=yes
8378 else
8379   ac_cv_have_decl__snwprintf=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__snwprintf" >&5
8384 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8385   if test $ac_cv_have_decl__snwprintf = yes; then
8386     gt_value=1
8387   else
8388     gt_value=0
8389   fi
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL__SNWPRINTF $gt_value
8393 _ACEOF
8394
8395
8396
8397
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8399 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8400 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h.  */
8405 #include <stdio.h>
8406 int
8407 main ()
8408 {
8409
8410 #ifndef feof_unlocked
8411   char *p = (char *) feof_unlocked;
8412 #endif
8413
8414   ;
8415   return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"; then :
8419   ac_cv_have_decl_feof_unlocked=yes
8420 else
8421   ac_cv_have_decl_feof_unlocked=no
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8426 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8427   if test $ac_cv_have_decl_feof_unlocked = yes; then
8428     gt_value=1
8429   else
8430     gt_value=0
8431   fi
8432
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8435 _ACEOF
8436
8437
8438
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8440 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8441 if ${ac_cv_have_decl_fgets_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 fgets_unlocked
8452   char *p = (char *) fgets_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_fgets_unlocked=yes
8461 else
8462   ac_cv_have_decl_fgets_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_fgets_unlocked" >&5
8467 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8468   if test $ac_cv_have_decl_fgets_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_FGETS_UNLOCKED $gt_value
8476 _ACEOF
8477
8478
8479
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8481 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8482 if ${ac_cv_have_decl_getc_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 getc_unlocked
8493   char *p = (char *) getc_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_getc_unlocked=yes
8502 else
8503   ac_cv_have_decl_getc_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_getc_unlocked" >&5
8508 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8509   if test $ac_cv_have_decl_getc_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_GETC_UNLOCKED $gt_value
8517 _ACEOF
8518
8519
8520
8521   case $gt_cv_func_printf_posix in
8522     *yes) HAVE_POSIX_PRINTF=1 ;;
8523     *) HAVE_POSIX_PRINTF=0 ;;
8524   esac
8525
8526   if test "$ac_cv_func_asprintf" = yes; then
8527     HAVE_ASPRINTF=1
8528   else
8529     HAVE_ASPRINTF=0
8530   fi
8531
8532   if test "$ac_cv_func_snprintf" = yes; then
8533     HAVE_SNPRINTF=1
8534   else
8535     HAVE_SNPRINTF=0
8536   fi
8537
8538   if test "$ac_cv_func_wprintf" = yes; then
8539     HAVE_WPRINTF=1
8540   else
8541     HAVE_WPRINTF=0
8542   fi
8543
8544
8545
8546
8547
8548
8549
8550           am_save_CPPFLAGS="$CPPFLAGS"
8551
8552   for element in $INCICONV; do
8553     haveit=
8554     for x in $CPPFLAGS; do
8555
8556   acl_save_prefix="$prefix"
8557   prefix="$acl_final_prefix"
8558   acl_save_exec_prefix="$exec_prefix"
8559   exec_prefix="$acl_final_exec_prefix"
8560   eval x=\"$x\"
8561   exec_prefix="$acl_save_exec_prefix"
8562   prefix="$acl_save_prefix"
8563
8564       if test "X$x" = "X$element"; then
8565         haveit=yes
8566         break
8567       fi
8568     done
8569     if test -z "$haveit"; then
8570       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8571     fi
8572   done
8573
8574
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8576 $as_echo_n "checking for iconv... " >&6; }
8577 if ${am_cv_func_iconv+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580
8581     am_cv_func_iconv="no, consider installing GNU libiconv"
8582     am_cv_lib_iconv=no
8583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h.  */
8585 #include <stdlib.h>
8586 #include <iconv.h>
8587 int
8588 main ()
8589 {
8590 iconv_t cd = iconv_open("","");
8591        iconv(cd,NULL,NULL,NULL,NULL);
8592        iconv_close(cd);
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_c_try_link "$LINENO"; then :
8598   am_cv_func_iconv=yes
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext \
8601     conftest$ac_exeext conftest.$ac_ext
8602     if test "$am_cv_func_iconv" != yes; then
8603       am_save_LIBS="$LIBS"
8604       LIBS="$LIBS $LIBICONV"
8605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h.  */
8607 #include <stdlib.h>
8608 #include <iconv.h>
8609 int
8610 main ()
8611 {
8612 iconv_t cd = iconv_open("","");
8613          iconv(cd,NULL,NULL,NULL,NULL);
8614          iconv_close(cd);
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8620   am_cv_lib_iconv=yes
8621         am_cv_func_iconv=yes
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext \
8624     conftest$ac_exeext conftest.$ac_ext
8625       LIBS="$am_save_LIBS"
8626     fi
8627
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8630 $as_echo "$am_cv_func_iconv" >&6; }
8631   if test "$am_cv_func_iconv" = yes; then
8632
8633 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8634
8635   fi
8636   if test "$am_cv_lib_iconv" = yes; then
8637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8638 $as_echo_n "checking how to link with libiconv... " >&6; }
8639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8640 $as_echo "$LIBICONV" >&6; }
8641   else
8642             CPPFLAGS="$am_save_CPPFLAGS"
8643     LIBICONV=
8644     LTLIBICONV=
8645   fi
8646
8647
8648
8649   if test "$am_cv_func_iconv" = yes; then
8650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8651 $as_echo_n "checking for iconv declaration... " >&6; }
8652     if ${am_cv_proto_iconv+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655
8656       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h.  */
8658
8659 #include <stdlib.h>
8660 #include <iconv.h>
8661 extern
8662 #ifdef __cplusplus
8663 "C"
8664 #endif
8665 #if defined(__STDC__) || defined(__cplusplus)
8666 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8667 #else
8668 size_t iconv();
8669 #endif
8670
8671 int
8672 main ()
8673 {
8674
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680   am_cv_proto_iconv_arg1=""
8681 else
8682   am_cv_proto_iconv_arg1="const"
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685       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);"
8686 fi
8687
8688     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8690          }$am_cv_proto_iconv" >&5
8691 $as_echo "${ac_t:-
8692          }$am_cv_proto_iconv" >&6; }
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define ICONV_CONST $am_cv_proto_iconv_arg1
8696 _ACEOF
8697
8698   fi
8699
8700
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8702 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8703 if ${am_cv_langinfo_codeset+:} false; then :
8704   $as_echo_n "(cached) " >&6
8705 else
8706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h.  */
8708 #include <langinfo.h>
8709 int
8710 main ()
8711 {
8712 char* cs = nl_langinfo(CODESET);
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"; then :
8718   am_cv_langinfo_codeset=yes
8719 else
8720   am_cv_langinfo_codeset=no
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext \
8723     conftest$ac_exeext conftest.$ac_ext
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8727 $as_echo "$am_cv_langinfo_codeset" >&6; }
8728   if test $am_cv_langinfo_codeset = yes; then
8729
8730 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8731
8732   fi
8733
8734   if test $ac_cv_header_locale_h = yes; then
8735
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8737 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8738 if ${am_cv_val_LC_MESSAGES+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h.  */
8743 #include <locale.h>
8744 int
8745 main ()
8746 {
8747 return LC_MESSAGES
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753   am_cv_val_LC_MESSAGES=yes
8754 else
8755   am_cv_val_LC_MESSAGES=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758     conftest$ac_exeext conftest.$ac_ext
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8761 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8762   if test $am_cv_val_LC_MESSAGES = yes; then
8763
8764 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8765
8766   fi
8767
8768   fi
8769
8770                       for ac_prog in bison
8771 do
8772   # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_INTLBISON+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   if test -n "$INTLBISON"; then
8780   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8784 do
8785   IFS=$as_save_IFS
8786   test -z "$as_dir" && as_dir=.
8787     for ac_exec_ext in '' $ac_executable_extensions; do
8788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789     ac_cv_prog_INTLBISON="$ac_prog"
8790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791     break 2
8792   fi
8793 done
8794   done
8795 IFS=$as_save_IFS
8796
8797 fi
8798 fi
8799 INTLBISON=$ac_cv_prog_INTLBISON
8800 if test -n "$INTLBISON"; then
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8802 $as_echo "$INTLBISON" >&6; }
8803 else
8804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 fi
8807
8808
8809   test -n "$INTLBISON" && break
8810 done
8811
8812   if test -z "$INTLBISON"; then
8813     ac_verc_fail=yes
8814   else
8815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8816 $as_echo_n "checking version of bison... " >&6; }
8817     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8818     case $ac_prog_version in
8819       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8820       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8821          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8822       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8823     esac
8824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8825 $as_echo "$ac_prog_version" >&6; }
8826   fi
8827   if test $ac_verc_fail = yes; then
8828     INTLBISON=:
8829   fi
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8847 $as_echo_n "checking whether NLS is requested... " >&6; }
8848     # Check whether --enable-nls was given.
8849 if test "${enable_nls+set}" = set; then :
8850   enableval=$enable_nls; USE_NLS=$enableval
8851 else
8852   USE_NLS=yes
8853 fi
8854
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8856 $as_echo "$USE_NLS" >&6; }
8857
8858
8859
8860
8861     BUILD_INCLUDED_LIBINTL=no
8862     USE_INCLUDED_LIBINTL=no
8863
8864   LIBINTL=
8865   LTLIBINTL=
8866   POSUB=
8867
8868     if test "$USE_NLS" = "yes"; then
8869     gt_use_preinstalled_gnugettext=no
8870
8871       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8872 $as_echo_n "checking whether included gettext is requested... " >&6; }
8873
8874 # Check whether --with-included-gettext was given.
8875 if test "${with_included_gettext+set}" = set; then :
8876   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8877 else
8878   nls_cv_force_use_gnu_gettext=no
8879 fi
8880
8881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8882 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8883
8884       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8885       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8886
8887
8888
8889
8890
8891
8892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8893 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8894 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8895   $as_echo_n "(cached) " >&6
8896 else
8897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h.  */
8899 #include <libintl.h>
8900 extern int _nl_msg_cat_cntr;
8901 extern int *_nl_domain_bindings;
8902 int
8903 main ()
8904 {
8905 bindtextdomain ("", "");
8906 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912   gt_cv_func_gnugettext1_libc=yes
8913 else
8914   gt_cv_func_gnugettext1_libc=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext \
8917     conftest$ac_exeext conftest.$ac_ext
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8920 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8921
8922         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8923
8924
8925
8926     use_additional=yes
8927
8928   acl_save_prefix="$prefix"
8929   prefix="$acl_final_prefix"
8930   acl_save_exec_prefix="$exec_prefix"
8931   exec_prefix="$acl_final_exec_prefix"
8932
8933     eval additional_includedir=\"$includedir\"
8934     eval additional_libdir=\"$libdir\"
8935
8936   exec_prefix="$acl_save_exec_prefix"
8937   prefix="$acl_save_prefix"
8938
8939
8940 # Check whether --with-libintl-prefix was given.
8941 if test "${with_libintl_prefix+set}" = set; then :
8942   withval=$with_libintl_prefix;
8943     if test "X$withval" = "Xno"; then
8944       use_additional=no
8945     else
8946       if test "X$withval" = "X"; then
8947
8948   acl_save_prefix="$prefix"
8949   prefix="$acl_final_prefix"
8950   acl_save_exec_prefix="$exec_prefix"
8951   exec_prefix="$acl_final_exec_prefix"
8952
8953           eval additional_includedir=\"$includedir\"
8954           eval additional_libdir=\"$libdir\"
8955
8956   exec_prefix="$acl_save_exec_prefix"
8957   prefix="$acl_save_prefix"
8958
8959       else
8960         additional_includedir="$withval/include"
8961         additional_libdir="$withval/lib"
8962       fi
8963     fi
8964
8965 fi
8966
8967       LIBINTL=
8968   LTLIBINTL=
8969   INCINTL=
8970   rpathdirs=
8971   ltrpathdirs=
8972   names_already_handled=
8973   names_next_round='intl '
8974   while test -n "$names_next_round"; do
8975     names_this_round="$names_next_round"
8976     names_next_round=
8977     for name in $names_this_round; do
8978       already_handled=
8979       for n in $names_already_handled; do
8980         if test "$n" = "$name"; then
8981           already_handled=yes
8982           break
8983         fi
8984       done
8985       if test -z "$already_handled"; then
8986         names_already_handled="$names_already_handled $name"
8987                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8988         eval value=\"\$HAVE_LIB$uppername\"
8989         if test -n "$value"; then
8990           if test "$value" = yes; then
8991             eval value=\"\$LIB$uppername\"
8992             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8993             eval value=\"\$LTLIB$uppername\"
8994             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8995           else
8996                                     :
8997           fi
8998         else
8999                               found_dir=
9000           found_la=
9001           found_so=
9002           found_a=
9003           if test $use_additional = yes; then
9004             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9005               found_dir="$additional_libdir"
9006               found_so="$additional_libdir/lib$name.$shlibext"
9007               if test -f "$additional_libdir/lib$name.la"; then
9008                 found_la="$additional_libdir/lib$name.la"
9009               fi
9010             else
9011               if test -f "$additional_libdir/lib$name.$libext"; then
9012                 found_dir="$additional_libdir"
9013                 found_a="$additional_libdir/lib$name.$libext"
9014                 if test -f "$additional_libdir/lib$name.la"; then
9015                   found_la="$additional_libdir/lib$name.la"
9016                 fi
9017               fi
9018             fi
9019           fi
9020           if test "X$found_dir" = "X"; then
9021             for x in $LDFLAGS $LTLIBINTL; do
9022
9023   acl_save_prefix="$prefix"
9024   prefix="$acl_final_prefix"
9025   acl_save_exec_prefix="$exec_prefix"
9026   exec_prefix="$acl_final_exec_prefix"
9027   eval x=\"$x\"
9028   exec_prefix="$acl_save_exec_prefix"
9029   prefix="$acl_save_prefix"
9030
9031               case "$x" in
9032                 -L*)
9033                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9034                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9035                     found_dir="$dir"
9036                     found_so="$dir/lib$name.$shlibext"
9037                     if test -f "$dir/lib$name.la"; then
9038                       found_la="$dir/lib$name.la"
9039                     fi
9040                   else
9041                     if test -f "$dir/lib$name.$libext"; then
9042                       found_dir="$dir"
9043                       found_a="$dir/lib$name.$libext"
9044                       if test -f "$dir/lib$name.la"; then
9045                         found_la="$dir/lib$name.la"
9046                       fi
9047                     fi
9048                   fi
9049                   ;;
9050               esac
9051               if test "X$found_dir" != "X"; then
9052                 break
9053               fi
9054             done
9055           fi
9056           if test "X$found_dir" != "X"; then
9057                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9058             if test "X$found_so" != "X"; then
9059                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9060                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9061               else
9062                                                                                 haveit=
9063                 for x in $ltrpathdirs; do
9064                   if test "X$x" = "X$found_dir"; then
9065                     haveit=yes
9066                     break
9067                   fi
9068                 done
9069                 if test -z "$haveit"; then
9070                   ltrpathdirs="$ltrpathdirs $found_dir"
9071                 fi
9072                                 if test "$hardcode_direct" = yes; then
9073                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9074                 else
9075                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9076                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9077                                                             haveit=
9078                     for x in $rpathdirs; do
9079                       if test "X$x" = "X$found_dir"; then
9080                         haveit=yes
9081                         break
9082                       fi
9083                     done
9084                     if test -z "$haveit"; then
9085                       rpathdirs="$rpathdirs $found_dir"
9086                     fi
9087                   else
9088                                                                                 haveit=
9089                     for x in $LDFLAGS $LIBINTL; do
9090
9091   acl_save_prefix="$prefix"
9092   prefix="$acl_final_prefix"
9093   acl_save_exec_prefix="$exec_prefix"
9094   exec_prefix="$acl_final_exec_prefix"
9095   eval x=\"$x\"
9096   exec_prefix="$acl_save_exec_prefix"
9097   prefix="$acl_save_prefix"
9098
9099                       if test "X$x" = "X-L$found_dir"; then
9100                         haveit=yes
9101                         break
9102                       fi
9103                     done
9104                     if test -z "$haveit"; then
9105                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9106                     fi
9107                     if test "$hardcode_minus_L" != no; then
9108                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9109                     else
9110                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9111                     fi
9112                   fi
9113                 fi
9114               fi
9115             else
9116               if test "X$found_a" != "X"; then
9117                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9118               else
9119                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9120               fi
9121             fi
9122                         additional_includedir=
9123             case "$found_dir" in
9124               */lib | */lib/)
9125                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9126                 additional_includedir="$basedir/include"
9127                 ;;
9128             esac
9129             if test "X$additional_includedir" != "X"; then
9130                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9131                 haveit=
9132                 if test "X$additional_includedir" = "X/usr/local/include"; then
9133                   if test -n "$GCC"; then
9134                     case $host_os in
9135                       linux*) haveit=yes;;
9136                     esac
9137                   fi
9138                 fi
9139                 if test -z "$haveit"; then
9140                   for x in $CPPFLAGS $INCINTL; do
9141
9142   acl_save_prefix="$prefix"
9143   prefix="$acl_final_prefix"
9144   acl_save_exec_prefix="$exec_prefix"
9145   exec_prefix="$acl_final_exec_prefix"
9146   eval x=\"$x\"
9147   exec_prefix="$acl_save_exec_prefix"
9148   prefix="$acl_save_prefix"
9149
9150                     if test "X$x" = "X-I$additional_includedir"; then
9151                       haveit=yes
9152                       break
9153                     fi
9154                   done
9155                   if test -z "$haveit"; then
9156                     if test -d "$additional_includedir"; then
9157                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9158                     fi
9159                   fi
9160                 fi
9161               fi
9162             fi
9163                         if test -n "$found_la"; then
9164                                                         save_libdir="$libdir"
9165               case "$found_la" in
9166                 */* | *\\*) . "$found_la" ;;
9167                 *) . "./$found_la" ;;
9168               esac
9169               libdir="$save_libdir"
9170                             for dep in $dependency_libs; do
9171                 case "$dep" in
9172                   -L*)
9173                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9174                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9175                       haveit=
9176                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9177                         if test -n "$GCC"; then
9178                           case $host_os in
9179                             linux*) haveit=yes;;
9180                           esac
9181                         fi
9182                       fi
9183                       if test -z "$haveit"; then
9184                         haveit=
9185                         for x in $LDFLAGS $LIBINTL; do
9186
9187   acl_save_prefix="$prefix"
9188   prefix="$acl_final_prefix"
9189   acl_save_exec_prefix="$exec_prefix"
9190   exec_prefix="$acl_final_exec_prefix"
9191   eval x=\"$x\"
9192   exec_prefix="$acl_save_exec_prefix"
9193   prefix="$acl_save_prefix"
9194
9195                           if test "X$x" = "X-L$additional_libdir"; then
9196                             haveit=yes
9197                             break
9198                           fi
9199                         done
9200                         if test -z "$haveit"; then
9201                           if test -d "$additional_libdir"; then
9202                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9203                           fi
9204                         fi
9205                         haveit=
9206                         for x in $LDFLAGS $LTLIBINTL; do
9207
9208   acl_save_prefix="$prefix"
9209   prefix="$acl_final_prefix"
9210   acl_save_exec_prefix="$exec_prefix"
9211   exec_prefix="$acl_final_exec_prefix"
9212   eval x=\"$x\"
9213   exec_prefix="$acl_save_exec_prefix"
9214   prefix="$acl_save_prefix"
9215
9216                           if test "X$x" = "X-L$additional_libdir"; then
9217                             haveit=yes
9218                             break
9219                           fi
9220                         done
9221                         if test -z "$haveit"; then
9222                           if test -d "$additional_libdir"; then
9223                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9224                           fi
9225                         fi
9226                       fi
9227                     fi
9228                     ;;
9229                   -R*)
9230                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9231                     if test "$enable_rpath" != no; then
9232                                                                   haveit=
9233                       for x in $rpathdirs; do
9234                         if test "X$x" = "X$dir"; then
9235                           haveit=yes
9236                           break
9237                         fi
9238                       done
9239                       if test -z "$haveit"; then
9240                         rpathdirs="$rpathdirs $dir"
9241                       fi
9242                                                                   haveit=
9243                       for x in $ltrpathdirs; do
9244                         if test "X$x" = "X$dir"; then
9245                           haveit=yes
9246                           break
9247                         fi
9248                       done
9249                       if test -z "$haveit"; then
9250                         ltrpathdirs="$ltrpathdirs $dir"
9251                       fi
9252                     fi
9253                     ;;
9254                   -l*)
9255                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9256                     ;;
9257                   *.la)
9258                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9259                     ;;
9260                   *)
9261                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9262                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9263                     ;;
9264                 esac
9265               done
9266             fi
9267           else
9268                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9269             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9270           fi
9271         fi
9272       fi
9273     done
9274   done
9275   if test "X$rpathdirs" != "X"; then
9276     if test -n "$hardcode_libdir_separator"; then
9277                         alldirs=
9278       for found_dir in $rpathdirs; do
9279         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9280       done
9281             acl_save_libdir="$libdir"
9282       libdir="$alldirs"
9283       eval flag=\"$hardcode_libdir_flag_spec\"
9284       libdir="$acl_save_libdir"
9285       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9286     else
9287             for found_dir in $rpathdirs; do
9288         acl_save_libdir="$libdir"
9289         libdir="$found_dir"
9290         eval flag=\"$hardcode_libdir_flag_spec\"
9291         libdir="$acl_save_libdir"
9292         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9293       done
9294     fi
9295   fi
9296   if test "X$ltrpathdirs" != "X"; then
9297             for found_dir in $ltrpathdirs; do
9298       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9299     done
9300   fi
9301
9302           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9303 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9304 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9305   $as_echo_n "(cached) " >&6
9306 else
9307   gt_save_CPPFLAGS="$CPPFLAGS"
9308             CPPFLAGS="$CPPFLAGS $INCINTL"
9309             gt_save_LIBS="$LIBS"
9310             LIBS="$LIBS $LIBINTL"
9311                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h.  */
9313 #include <libintl.h>
9314 extern int _nl_msg_cat_cntr;
9315 extern
9316 #ifdef __cplusplus
9317 "C"
9318 #endif
9319 const char *_nl_expand_alias ();
9320 int
9321 main ()
9322 {
9323 bindtextdomain ("", "");
9324 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9325   ;
9326   return 0;
9327 }
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330   gt_cv_func_gnugettext1_libintl=yes
9331 else
9332   gt_cv_func_gnugettext1_libintl=no
9333 fi
9334 rm -f core conftest.err conftest.$ac_objext \
9335     conftest$ac_exeext conftest.$ac_ext
9336                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9337               LIBS="$LIBS $LIBICONV"
9338               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h.  */
9340 #include <libintl.h>
9341 extern int _nl_msg_cat_cntr;
9342 extern
9343 #ifdef __cplusplus
9344 "C"
9345 #endif
9346 const char *_nl_expand_alias ();
9347 int
9348 main ()
9349 {
9350 bindtextdomain ("", "");
9351 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9352   ;
9353   return 0;
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_link "$LINENO"; then :
9357   LIBINTL="$LIBINTL $LIBICONV"
9358                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9359                 gt_cv_func_gnugettext1_libintl=yes
9360
9361 fi
9362 rm -f core conftest.err conftest.$ac_objext \
9363     conftest$ac_exeext conftest.$ac_ext
9364             fi
9365             CPPFLAGS="$gt_save_CPPFLAGS"
9366             LIBS="$gt_save_LIBS"
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9369 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9370         fi
9371
9372                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9373            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9374                 && test "$PACKAGE" != gettext-runtime \
9375                 && test "$PACKAGE" != gettext-tools; }; then
9376           gt_use_preinstalled_gnugettext=yes
9377         else
9378                     LIBINTL=
9379           LTLIBINTL=
9380           INCINTL=
9381         fi
9382
9383
9384         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9385                               nls_cv_use_gnu_gettext=yes
9386         fi
9387       fi
9388
9389       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9390                 BUILD_INCLUDED_LIBINTL=yes
9391         USE_INCLUDED_LIBINTL=yes
9392         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9393         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9394         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9395       fi
9396
9397       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9398          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9399                 CATOBJEXT=.gmo
9400       fi
9401
9402
9403     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9404        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9405
9406 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9407
9408     else
9409       USE_NLS=no
9410     fi
9411   fi
9412
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9414 $as_echo_n "checking whether to use NLS... " >&6; }
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9416 $as_echo "$USE_NLS" >&6; }
9417   if test "$USE_NLS" = "yes"; then
9418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9419 $as_echo_n "checking where the gettext function comes from... " >&6; }
9420     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9421       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9422         gt_source="external libintl"
9423       else
9424         gt_source="libc"
9425       fi
9426     else
9427       gt_source="included intl directory"
9428     fi
9429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9430 $as_echo "$gt_source" >&6; }
9431   fi
9432
9433   if test "$USE_NLS" = "yes"; then
9434
9435     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9436       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9438 $as_echo_n "checking how to link with libintl... " >&6; }
9439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9440 $as_echo "$LIBINTL" >&6; }
9441
9442   for element in $INCINTL; do
9443     haveit=
9444     for x in $CPPFLAGS; do
9445
9446   acl_save_prefix="$prefix"
9447   prefix="$acl_final_prefix"
9448   acl_save_exec_prefix="$exec_prefix"
9449   exec_prefix="$acl_final_exec_prefix"
9450   eval x=\"$x\"
9451   exec_prefix="$acl_save_exec_prefix"
9452   prefix="$acl_save_prefix"
9453
9454       if test "X$x" = "X$element"; then
9455         haveit=yes
9456         break
9457       fi
9458     done
9459     if test -z "$haveit"; then
9460       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9461     fi
9462   done
9463
9464       fi
9465
9466
9467 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9468
9469
9470 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9471
9472     fi
9473
9474         POSUB=po
9475   fi
9476
9477
9478             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9479       BUILD_INCLUDED_LIBINTL=yes
9480     fi
9481
9482
9483
9484
9485
9486         nls_cv_header_intl=
9487     nls_cv_header_libgt=
9488
9489         DATADIRNAME=share
9490
9491
9492         INSTOBJEXT=.mo
9493
9494
9495         GENCAT=gencat
9496
9497
9498         if test "$USE_INCLUDED_LIBINTL" = yes; then
9499       INTLOBJS="\$(GETTOBJS)"
9500     fi
9501
9502
9503         INTL_LIBTOOL_SUFFIX_PREFIX=
9504
9505
9506
9507     INTLLIBS="$LIBINTL"
9508
9509
9510
9511
9512
9513
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9517 set x ${MAKE-make}
9518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   cat >conftest.make <<\_ACEOF
9523 SHELL = /bin/sh
9524 all:
9525         @echo '@@@%%%=$(MAKE)=@@@%%%'
9526 _ACEOF
9527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9529   *@@@%%%=?*=@@@%%%*)
9530     eval ac_cv_prog_make_${ac_make}_set=yes;;
9531   *)
9532     eval ac_cv_prog_make_${ac_make}_set=no;;
9533 esac
9534 rm -f conftest.make
9535 fi
9536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9538 $as_echo "yes" >&6; }
9539   SET_MAKE=
9540 else
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543   SET_MAKE="MAKE=${MAKE-make}"
9544 fi
9545
9546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9547 $as_echo_n "checking for GNU make... " >&6; }
9548 if ${_cv_gnu_make_command+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   _cv_gnu_make_command='' ;
9552                 for a in "$MAKE" make gmake gnumake ; do
9553                         if test -z "$a" ; then continue ; fi ;
9554                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9555                                 _cv_gnu_make_command=$a ;
9556                                 break;
9557                         fi
9558                 done ;
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9562 $as_echo "$_cv_gnu_make_command" >&6; } ;
9563         if test  "x$_cv_gnu_make_command" != "x"  ; then
9564                 ifGNUmake='' ;
9565                 ifNotGNUmake='#' ;
9566         else
9567                 ifGNUmake='#' ;
9568                 ifNotGNUmake='' ;
9569                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9570 $as_echo "\"Not found\"" >&6; };
9571         fi
9572
9573
9574
9575 # Extract the first word of "ln", so it can be a program name with args.
9576 set dummy ln; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_path_LN+:} false; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582   case $LN in
9583   [\\/]* | ?:[\\/]*)
9584   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9585   ;;
9586   *)
9587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9589 do
9590   IFS=$as_save_IFS
9591   test -z "$as_dir" && as_dir=.
9592     for ac_exec_ext in '' $ac_executable_extensions; do
9593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596     break 2
9597   fi
9598 done
9599   done
9600 IFS=$as_save_IFS
9601
9602   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9603   ;;
9604 esac
9605 fi
9606 LN=$ac_cv_path_LN
9607 if test -n "$LN"; then
9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9609 $as_echo "$LN" >&6; }
9610 else
9611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9613 fi
9614
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9617 $as_echo_n "checking whether ln -s works... " >&6; }
9618 LN_S=$as_ln_s
9619 if test "$LN_S" = "ln -s"; then
9620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9621 $as_echo "yes" >&6; }
9622 else
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9624 $as_echo "no, using $LN_S" >&6; }
9625 fi
9626
9627 # Extract the first word of "mv", so it can be a program name with args.
9628 set dummy mv; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_path_MV+:} false; then :
9632   $as_echo_n "(cached) " >&6
9633 else
9634   case $MV in
9635   [\\/]* | ?:[\\/]*)
9636   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9637   ;;
9638   *)
9639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9641 do
9642   IFS=$as_save_IFS
9643   test -z "$as_dir" && as_dir=.
9644     for ac_exec_ext in '' $ac_executable_extensions; do
9645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9646     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648     break 2
9649   fi
9650 done
9651   done
9652 IFS=$as_save_IFS
9653
9654   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9655   ;;
9656 esac
9657 fi
9658 MV=$ac_cv_path_MV
9659 if test -n "$MV"; then
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9661 $as_echo "$MV" >&6; }
9662 else
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 fi
9666
9667
9668 # Extract the first word of "cp", so it can be a program name with args.
9669 set dummy cp; 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_CP+:} false; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   case $CP in
9676   [\\/]* | ?:[\\/]*)
9677   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
9696   ;;
9697 esac
9698 fi
9699 CP=$ac_cv_path_CP
9700 if test -n "$CP"; then
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9702 $as_echo "$CP" >&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 "rm", so it can be a program name with args.
9710 set dummy rm; 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_RM+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   case $RM in
9717   [\\/]* | ?:[\\/]*)
9718   ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
9737   ;;
9738 esac
9739 fi
9740 RM=$ac_cv_path_RM
9741 if test -n "$RM"; then
9742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9743 $as_echo "$RM" >&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 "chmod", so it can be a program name with args.
9751 set dummy chmod; 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_CHMOD+:} false; then :
9755   $as_echo_n "(cached) " >&6
9756 else
9757   case $CHMOD in
9758   [\\/]* | ?:[\\/]*)
9759   ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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_CHMOD" && ac_cv_path_CHMOD=":"
9778   ;;
9779 esac
9780 fi
9781 CHMOD=$ac_cv_path_CHMOD
9782 if test -n "$CHMOD"; then
9783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9784 $as_echo "$CHMOD" >&6; }
9785 else
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 fi
9789
9790
9791 for ac_prog in gawk mawk nawk awk
9792 do
9793   # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_AWK+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   if test -n "$AWK"; then
9801   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9802 else
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_prog_AWK="$ac_prog"
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 fi
9819 fi
9820 AWK=$ac_cv_prog_AWK
9821 if test -n "$AWK"; then
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9823 $as_echo "$AWK" >&6; }
9824 else
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829
9830   test -n "$AWK" && break
9831 done
9832
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9834 $as_echo_n "checking for egrep... " >&6; }
9835 if ${ac_cv_path_EGREP+:} false; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9839    then ac_cv_path_EGREP="$GREP -E"
9840    else
9841      if test -z "$EGREP"; then
9842   ac_path_EGREP_found=false
9843   # Loop through the user's path and test for each of PROGNAME-LIST
9844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9846 do
9847   IFS=$as_save_IFS
9848   test -z "$as_dir" && as_dir=.
9849     for ac_prog in egrep; do
9850     for ac_exec_ext in '' $ac_executable_extensions; do
9851       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9852       as_fn_executable_p "$ac_path_EGREP" || continue
9853 # Check for GNU ac_path_EGREP and select it if it is found.
9854   # Check for GNU $ac_path_EGREP
9855 case `"$ac_path_EGREP" --version 2>&1` in
9856 *GNU*)
9857   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9858 *)
9859   ac_count=0
9860   $as_echo_n 0123456789 >"conftest.in"
9861   while :
9862   do
9863     cat "conftest.in" "conftest.in" >"conftest.tmp"
9864     mv "conftest.tmp" "conftest.in"
9865     cp "conftest.in" "conftest.nl"
9866     $as_echo 'EGREP' >> "conftest.nl"
9867     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9868     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9869     as_fn_arith $ac_count + 1 && ac_count=$as_val
9870     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9871       # Best one so far, save it but keep looking for a better one
9872       ac_cv_path_EGREP="$ac_path_EGREP"
9873       ac_path_EGREP_max=$ac_count
9874     fi
9875     # 10*(2^10) chars as input seems more than enough
9876     test $ac_count -gt 10 && break
9877   done
9878   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9879 esac
9880
9881       $ac_path_EGREP_found && break 3
9882     done
9883   done
9884   done
9885 IFS=$as_save_IFS
9886   if test -z "$ac_cv_path_EGREP"; then
9887     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9888   fi
9889 else
9890   ac_cv_path_EGREP=$EGREP
9891 fi
9892
9893    fi
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9896 $as_echo "$ac_cv_path_EGREP" >&6; }
9897  EGREP="$ac_cv_path_EGREP"
9898
9899
9900 # Extract the first word of "sed", so it can be a program name with args.
9901 set dummy sed; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_SED+:} false; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   case $SED in
9908   [\\/]* | ?:[\\/]*)
9909   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9910   ;;
9911   *)
9912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9914 do
9915   IFS=$as_save_IFS
9916   test -z "$as_dir" && as_dir=.
9917     for ac_exec_ext in '' $ac_executable_extensions; do
9918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921     break 2
9922   fi
9923 done
9924   done
9925 IFS=$as_save_IFS
9926
9927   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9928   ;;
9929 esac
9930 fi
9931 SED=$ac_cv_path_SED
9932 if test -n "$SED"; then
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9934 $as_echo "$SED" >&6; }
9935 else
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938 fi
9939
9940
9941 # Extract the first word of "perl", so it can be a program name with args.
9942 set dummy perl; 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_PERL+:} false; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   case $PERL in
9949   [\\/]* | ?:[\\/]*)
9950   ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="perl"
9969   ;;
9970 esac
9971 fi
9972 PERL=$ac_cv_path_PERL
9973 if test -n "$PERL"; then
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9975 $as_echo "$PERL" >&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 "ldconfig", so it can be a program name with args.
9983 set dummy ldconfig; 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_LDCONFIG+:} false; then :
9987   $as_echo_n "(cached) " >&6
9988 else
9989   case $LDCONFIG in
9990   [\\/]* | ?:[\\/]*)
9991   ac_cv_path_LDCONFIG="$LDCONFIG" # 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_LDCONFIG="$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_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10010   ;;
10011 esac
10012 fi
10013 LDCONFIG=$ac_cv_path_LDCONFIG
10014 if test -n "$LDCONFIG"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10016 $as_echo "$LDCONFIG" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021
10022
10023 if test -n "$ac_tool_prefix"; then
10024   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10025 set dummy ${ac_tool_prefix}ar; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_prog_AR+:} false; then :
10029   $as_echo_n "(cached) " >&6
10030 else
10031   if test -n "$AR"; then
10032   ac_cv_prog_AR="$AR" # Let the user override the test.
10033 else
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10036 do
10037   IFS=$as_save_IFS
10038   test -z "$as_dir" && as_dir=.
10039     for ac_exec_ext in '' $ac_executable_extensions; do
10040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041     ac_cv_prog_AR="${ac_tool_prefix}ar"
10042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043     break 2
10044   fi
10045 done
10046   done
10047 IFS=$as_save_IFS
10048
10049 fi
10050 fi
10051 AR=$ac_cv_prog_AR
10052 if test -n "$AR"; then
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10054 $as_echo "$AR" >&6; }
10055 else
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10058 fi
10059
10060
10061 fi
10062 if test -z "$ac_cv_prog_AR"; then
10063   ac_ct_AR=$AR
10064   # Extract the first word of "ar", so it can be a program name with args.
10065 set dummy ar; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10069   $as_echo_n "(cached) " >&6
10070 else
10071   if test -n "$ac_ct_AR"; then
10072   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10073 else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079     for ac_exec_ext in '' $ac_executable_extensions; do
10080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081     ac_cv_prog_ac_ct_AR="ar"
10082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083     break 2
10084   fi
10085 done
10086   done
10087 IFS=$as_save_IFS
10088
10089 fi
10090 fi
10091 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10092 if test -n "$ac_ct_AR"; then
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10094 $as_echo "$ac_ct_AR" >&6; }
10095 else
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098 fi
10099
10100   if test "x$ac_ct_AR" = x; then
10101     AR="ar"
10102   else
10103     case $cross_compiling:$ac_tool_warned in
10104 yes:)
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10107 ac_tool_warned=yes ;;
10108 esac
10109     AR=$ac_ct_AR
10110   fi
10111 else
10112   AR="$ac_cv_prog_AR"
10113 fi
10114
10115 if test -n "$ac_tool_prefix"; then
10116   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if ${ac_cv_prog_RANLIB+:} false; then :
10121   $as_echo_n "(cached) " >&6
10122 else
10123   if test -n "$RANLIB"; then
10124   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129   IFS=$as_save_IFS
10130   test -z "$as_dir" && as_dir=.
10131     for ac_exec_ext in '' $ac_executable_extensions; do
10132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135     break 2
10136   fi
10137 done
10138   done
10139 IFS=$as_save_IFS
10140
10141 fi
10142 fi
10143 RANLIB=$ac_cv_prog_RANLIB
10144 if test -n "$RANLIB"; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10146 $as_echo "$RANLIB" >&6; }
10147 else
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151
10152
10153 fi
10154 if test -z "$ac_cv_prog_RANLIB"; then
10155   ac_ct_RANLIB=$RANLIB
10156   # Extract the first word of "ranlib", so it can be a program name with args.
10157 set dummy ranlib; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   if test -n "$ac_ct_RANLIB"; then
10164   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10165 else
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171     for ac_exec_ext in '' $ac_executable_extensions; do
10172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173     ac_cv_prog_ac_ct_RANLIB="ranlib"
10174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178   done
10179 IFS=$as_save_IFS
10180
10181 fi
10182 fi
10183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10184 if test -n "$ac_ct_RANLIB"; then
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10186 $as_echo "$ac_ct_RANLIB" >&6; }
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191
10192   if test "x$ac_ct_RANLIB" = x; then
10193     RANLIB=":"
10194   else
10195     case $cross_compiling:$ac_tool_warned in
10196 yes:)
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10199 ac_tool_warned=yes ;;
10200 esac
10201     RANLIB=$ac_ct_RANLIB
10202   fi
10203 else
10204   RANLIB="$ac_cv_prog_RANLIB"
10205 fi
10206
10207 if test -n "$ac_tool_prefix"; then
10208   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10209 set dummy ${ac_tool_prefix}strip; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_prog_STRIP+:} false; then :
10213   $as_echo_n "(cached) " >&6
10214 else
10215   if test -n "$STRIP"; then
10216   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10217 else
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10220 do
10221   IFS=$as_save_IFS
10222   test -z "$as_dir" && as_dir=.
10223     for ac_exec_ext in '' $ac_executable_extensions; do
10224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227     break 2
10228   fi
10229 done
10230   done
10231 IFS=$as_save_IFS
10232
10233 fi
10234 fi
10235 STRIP=$ac_cv_prog_STRIP
10236 if test -n "$STRIP"; then
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10238 $as_echo "$STRIP" >&6; }
10239 else
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10242 fi
10243
10244
10245 fi
10246 if test -z "$ac_cv_prog_STRIP"; then
10247   ac_ct_STRIP=$STRIP
10248   # Extract the first word of "strip", so it can be a program name with args.
10249 set dummy strip; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   if test -n "$ac_ct_STRIP"; then
10256   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261   IFS=$as_save_IFS
10262   test -z "$as_dir" && as_dir=.
10263     for ac_exec_ext in '' $ac_executable_extensions; do
10264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265     ac_cv_prog_ac_ct_STRIP="strip"
10266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267     break 2
10268   fi
10269 done
10270   done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10276 if test -n "$ac_ct_STRIP"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10278 $as_echo "$ac_ct_STRIP" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284   if test "x$ac_ct_STRIP" = x; then
10285     STRIP=":"
10286   else
10287     case $cross_compiling:$ac_tool_warned in
10288 yes:)
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291 ac_tool_warned=yes ;;
10292 esac
10293     STRIP=$ac_ct_STRIP
10294   fi
10295 else
10296   STRIP="$ac_cv_prog_STRIP"
10297 fi
10298
10299 # Extract the first word of "makeinfo", so it can be a program name with args.
10300 set dummy makeinfo; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_prog_MAKEINFO+:} false; then :
10304   $as_echo_n "(cached) " >&6
10305 else
10306   if test -n "$MAKEINFO"; then
10307   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314     for ac_exec_ext in '' $ac_executable_extensions; do
10315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316     ac_cv_prog_MAKEINFO="makeinfo"
10317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321   done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 MAKEINFO=$ac_cv_prog_MAKEINFO
10327 if test -n "$MAKEINFO"; then
10328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10329 $as_echo "$MAKEINFO" >&6; }
10330 else
10331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10333 fi
10334
10335
10336 if test "_$MAKEINFO" = "_"; then
10337     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10338 else
10339     case "$MAKEINFO" in
10340       */missing.*)
10341         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10342 *** Makeinfo is missing. Info documentation will not be built." >&5
10343 $as_echo "$as_me: WARNING:
10344 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10345         ;;
10346       *)
10347         ;;
10348     esac
10349 fi
10350
10351
10352 # See if we need a separate native compiler.
10353 if test $cross_compiling = no; then
10354   BUILD_CC="$CC"
10355
10356 else
10357   for ac_prog in gcc cc
10358 do
10359   # Extract the first word of "$ac_prog", so it can be a program name with args.
10360 set dummy $ac_prog; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_prog_BUILD_CC+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   if test -n "$BUILD_CC"; then
10367   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10368 else
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10371 do
10372   IFS=$as_save_IFS
10373   test -z "$as_dir" && as_dir=.
10374     for ac_exec_ext in '' $ac_executable_extensions; do
10375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376     ac_cv_prog_BUILD_CC="$ac_prog"
10377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378     break 2
10379   fi
10380 done
10381   done
10382 IFS=$as_save_IFS
10383
10384 fi
10385 fi
10386 BUILD_CC=$ac_cv_prog_BUILD_CC
10387 if test -n "$BUILD_CC"; then
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10389 $as_echo "$BUILD_CC" >&6; }
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10393 fi
10394
10395
10396   test -n "$BUILD_CC" && break
10397 done
10398
10399 fi
10400 for ac_header in        dirent.h        errno.h         execinfo.h      getopt.h        malloc.h        mntent.h        paths.h         semaphore.h     setjmp.h        signal.h        stdarg.h        stdint.h        stdlib.h        termios.h       termio.h        unistd.h        utime.h         linux/falloc.h  linux/fd.h      linux/major.h   linux/loop.h    net/if_dl.h     netinet/in.h    sys/disklabel.h         sys/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
10401 do :
10402   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10405   cat >>confdefs.h <<_ACEOF
10406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10407 _ACEOF
10408
10409 fi
10410
10411 done
10412
10413 for ac_header in sys/disk.h sys/mount.h
10414 do :
10415   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10417 #if HAVE_SYS_QUEUE_H
10418 #include <sys/queue.h>
10419 #endif
10420
10421 "
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431 for ac_header in net/if.h
10432 do :
10433   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10434 #if HAVE_SYS_TYPES_H
10435 #include <sys/types.h>
10436 #endif
10437 #if HAVE_SYS_SOCKET
10438 #include <sys/socket.h>
10439 #endif
10440
10441 "
10442 if test "x$ac_cv_header_net_if_h" = xyes; then :
10443   cat >>confdefs.h <<_ACEOF
10444 #define HAVE_NET_IF_H 1
10445 _ACEOF
10446
10447 fi
10448
10449 done
10450
10451 for ac_func in vprintf
10452 do :
10453   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10454 if test "x$ac_cv_func_vprintf" = xyes; then :
10455   cat >>confdefs.h <<_ACEOF
10456 #define HAVE_VPRINTF 1
10457 _ACEOF
10458
10459 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10460 if test "x$ac_cv_func__doprnt" = xyes; then :
10461
10462 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10463
10464 fi
10465
10466 fi
10467 done
10468
10469
10470 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10471 "
10472 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10473
10474 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10475
10476 fi
10477
10478 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10479 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10480
10481 cat >>confdefs.h <<_ACEOF
10482 #define HAVE_STRUCT_STAT_ST_ATIM 1
10483 _ACEOF
10484
10485
10486 fi
10487
10488 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10489 "
10490 if test "x$ac_cv_type_ssize_t" = xyes; then :
10491
10492 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10493
10494 fi
10495
10496 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10497 "
10498 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10499
10500 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10501
10502 fi
10503
10504 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10505                  #define _LARGEFILE64_SOURCE
10506                  #include <unistd.h>
10507 "
10508 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10509
10510 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10511
10512 fi
10513
10514 # The cast to long int works around a bug in the HP C Compiler
10515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10517 # This bug is HP SR number 8606223364.
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10519 $as_echo_n "checking size of short... " >&6; }
10520 if ${ac_cv_sizeof_short+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10524
10525 else
10526   if test "$ac_cv_type_short" = yes; then
10527      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10529 as_fn_error 77 "cannot compute sizeof (short)
10530 See \`config.log' for more details" "$LINENO" 5; }
10531    else
10532      ac_cv_sizeof_short=0
10533    fi
10534 fi
10535
10536 fi
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10538 $as_echo "$ac_cv_sizeof_short" >&6; }
10539
10540
10541
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZEOF_SHORT $ac_cv_sizeof_short
10544 _ACEOF
10545
10546
10547 # The cast to long int works around a bug in the HP C Compiler
10548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10550 # This bug is HP SR number 8606223364.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10552 $as_echo_n "checking size of int... " >&6; }
10553 if ${ac_cv_sizeof_int+:} false; then :
10554   $as_echo_n "(cached) " >&6
10555 else
10556   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10557
10558 else
10559   if test "$ac_cv_type_int" = yes; then
10560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10562 as_fn_error 77 "cannot compute sizeof (int)
10563 See \`config.log' for more details" "$LINENO" 5; }
10564    else
10565      ac_cv_sizeof_int=0
10566    fi
10567 fi
10568
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10571 $as_echo "$ac_cv_sizeof_int" >&6; }
10572
10573
10574
10575 cat >>confdefs.h <<_ACEOF
10576 #define SIZEOF_INT $ac_cv_sizeof_int
10577 _ACEOF
10578
10579
10580 # The cast to long int works around a bug in the HP C Compiler
10581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10583 # This bug is HP SR number 8606223364.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10585 $as_echo_n "checking size of long... " >&6; }
10586 if ${ac_cv_sizeof_long+:} false; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10590
10591 else
10592   if test "$ac_cv_type_long" = yes; then
10593      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10595 as_fn_error 77 "cannot compute sizeof (long)
10596 See \`config.log' for more details" "$LINENO" 5; }
10597    else
10598      ac_cv_sizeof_long=0
10599    fi
10600 fi
10601
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10604 $as_echo "$ac_cv_sizeof_long" >&6; }
10605
10606
10607
10608 cat >>confdefs.h <<_ACEOF
10609 #define SIZEOF_LONG $ac_cv_sizeof_long
10610 _ACEOF
10611
10612
10613 # The cast to long int works around a bug in the HP C Compiler
10614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10616 # This bug is HP SR number 8606223364.
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10618 $as_echo_n "checking size of long long... " >&6; }
10619 if ${ac_cv_sizeof_long_long+:} false; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10623
10624 else
10625   if test "$ac_cv_type_long_long" = yes; then
10626      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10628 as_fn_error 77 "cannot compute sizeof (long long)
10629 See \`config.log' for more details" "$LINENO" 5; }
10630    else
10631      ac_cv_sizeof_long_long=0
10632    fi
10633 fi
10634
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10637 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10638
10639
10640
10641 cat >>confdefs.h <<_ACEOF
10642 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10643 _ACEOF
10644
10645
10646 # The cast to long int works around a bug in the HP C Compiler
10647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10649 # This bug is HP SR number 8606223364.
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10651 $as_echo_n "checking size of off_t... " >&6; }
10652 if ${ac_cv_sizeof_off_t+:} false; then :
10653   $as_echo_n "(cached) " >&6
10654 else
10655   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10656
10657 else
10658   if test "$ac_cv_type_off_t" = yes; then
10659      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10661 as_fn_error 77 "cannot compute sizeof (off_t)
10662 See \`config.log' for more details" "$LINENO" 5; }
10663    else
10664      ac_cv_sizeof_off_t=0
10665    fi
10666 fi
10667
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10670 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10671
10672
10673
10674 cat >>confdefs.h <<_ACEOF
10675 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10676 _ACEOF
10677
10678
10679 SIZEOF_SHORT=$ac_cv_sizeof_short
10680 SIZEOF_INT=$ac_cv_sizeof_int
10681 SIZEOF_LONG=$ac_cv_sizeof_long
10682 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10683 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10684
10685
10686
10687
10688
10689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10690 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10691 if ${ac_cv_c_bigendian+:} false; then :
10692   $as_echo_n "(cached) " >&6
10693 else
10694   ac_cv_c_bigendian=unknown
10695     # See if we're dealing with a universal compiler.
10696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h.  */
10698 #ifndef __APPLE_CC__
10699                not a universal capable compiler
10700              #endif
10701              typedef int dummy;
10702
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"; then :
10705
10706         # Check for potential -arch flags.  It is not universal unless
10707         # there are at least two -arch flags with different values.
10708         ac_arch=
10709         ac_prev=
10710         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10711          if test -n "$ac_prev"; then
10712            case $ac_word in
10713              i?86 | x86_64 | ppc | ppc64)
10714                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10715                  ac_arch=$ac_word
10716                else
10717                  ac_cv_c_bigendian=universal
10718                  break
10719                fi
10720                ;;
10721            esac
10722            ac_prev=
10723          elif test "x$ac_word" = "x-arch"; then
10724            ac_prev=arch
10725          fi
10726        done
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729     if test $ac_cv_c_bigendian = unknown; then
10730       # See if sys/param.h defines the BYTE_ORDER macro.
10731       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h.  */
10733 #include <sys/types.h>
10734              #include <sys/param.h>
10735
10736 int
10737 main ()
10738 {
10739 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10740                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10741                      && LITTLE_ENDIAN)
10742               bogus endian macros
10743              #endif
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_compile "$LINENO"; then :
10750   # It does; now see whether it defined to BIG_ENDIAN or not.
10751          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753 #include <sys/types.h>
10754                 #include <sys/param.h>
10755
10756 int
10757 main ()
10758 {
10759 #if BYTE_ORDER != BIG_ENDIAN
10760                  not big endian
10761                 #endif
10762
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768   ac_cv_c_bigendian=yes
10769 else
10770   ac_cv_c_bigendian=no
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775     fi
10776     if test $ac_cv_c_bigendian = unknown; then
10777       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10778       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h.  */
10780 #include <limits.h>
10781
10782 int
10783 main ()
10784 {
10785 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10786               bogus endian macros
10787              #endif
10788
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_compile "$LINENO"; then :
10794   # It does; now see whether it defined to _BIG_ENDIAN or not.
10795          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h.  */
10797 #include <limits.h>
10798
10799 int
10800 main ()
10801 {
10802 #ifndef _BIG_ENDIAN
10803                  not big endian
10804                 #endif
10805
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811   ac_cv_c_bigendian=yes
10812 else
10813   ac_cv_c_bigendian=no
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818     fi
10819     if test $ac_cv_c_bigendian = unknown; then
10820       # Compile a test program.
10821       if test "$cross_compiling" = yes; then :
10822   # Try to guess by grepping values from an object file.
10823          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825 short int ascii_mm[] =
10826                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10827                 short int ascii_ii[] =
10828                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10829                 int use_ascii (int i) {
10830                   return ascii_mm[i] + ascii_ii[i];
10831                 }
10832                 short int ebcdic_ii[] =
10833                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10834                 short int ebcdic_mm[] =
10835                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10836                 int use_ebcdic (int i) {
10837                   return ebcdic_mm[i] + ebcdic_ii[i];
10838                 }
10839                 extern int foo;
10840
10841 int
10842 main ()
10843 {
10844 return use_ascii (foo) == use_ebcdic (foo);
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10851               ac_cv_c_bigendian=yes
10852             fi
10853             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10854               if test "$ac_cv_c_bigendian" = unknown; then
10855                 ac_cv_c_bigendian=no
10856               else
10857                 # finding both strings is unlikely to happen, but who knows?
10858                 ac_cv_c_bigendian=unknown
10859               fi
10860             fi
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 else
10864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h.  */
10866 $ac_includes_default
10867 int
10868 main ()
10869 {
10870
10871              /* Are we little or big endian?  From Harbison&Steele.  */
10872              union
10873              {
10874                long int l;
10875                char c[sizeof (long int)];
10876              } u;
10877              u.l = 1;
10878              return u.c[sizeof (long int) - 1] == 1;
10879
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_run "$LINENO"; then :
10885   ac_cv_c_bigendian=no
10886 else
10887   ac_cv_c_bigendian=yes
10888 fi
10889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10890   conftest.$ac_objext conftest.beam conftest.$ac_ext
10891 fi
10892
10893     fi
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10896 $as_echo "$ac_cv_c_bigendian" >&6; }
10897  case $ac_cv_c_bigendian in #(
10898    yes)
10899      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10900 ;; #(
10901    no)
10902       ;; #(
10903    universal)
10904
10905 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10906
10907      ;; #(
10908    *)
10909      as_fn_error $? "unknown endianness
10910  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10911  esac
10912
10913 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10914 ASM_TYPES_HEADER=./asm_types.h
10915
10916 echo "/* These defines are needed for the public ext2fs.h header file */" \
10917      > public_config.h
10918 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10919   uniq tmp_config.$$ >> public_config.h
10920 else
10921   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10922 fi
10923 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10924   uniq tmp_config.$$ >> public_config.h
10925 else
10926   echo "#undef WORDS_BIGENDIAN" >> public_config.h
10927 fi
10928 rm -f tmp_config.$$
10929 PUBLIC_CONFIG_HEADER=./public_config.h
10930
10931 for ac_header in inttypes.h
10932 do :
10933   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10934 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10935   cat >>confdefs.h <<_ACEOF
10936 #define HAVE_INTTYPES_H 1
10937 _ACEOF
10938
10939 fi
10940
10941 done
10942
10943 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10944 if test "x$ac_cv_type_intptr_t" = xyes; then :
10945
10946 cat >>confdefs.h <<_ACEOF
10947 #define HAVE_INTPTR_T 1
10948 _ACEOF
10949
10950
10951 fi
10952
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10954 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10955 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h.  */
10960 #include <sys/stat.h>
10961 int
10962 main ()
10963 {
10964 struct stat stat; stat.st_flags = 0;
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970   e2fsprogs_cv_struct_st_flags=yes
10971 else
10972   e2fsprogs_cv_struct_st_flags=no
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 fi
10976
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10978 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10979 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10981 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10982   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10983   $as_echo_n "(cached) " >&6
10984 else
10985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h.  */
10987 #include <sys/stat.h>
10988 int
10989 main ()
10990 {
10991 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 if ac_fn_c_try_compile "$LINENO"; then :
10997   e2fsprogs_cv_struct_st_flags_immut=yes
10998 else
10999   e2fsprogs_cv_struct_st_flags_immut=no
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 fi
11003
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11005 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11006   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11007
11008 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11009
11010   fi
11011 fi
11012 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11013          #include <sys/socket.h>
11014 "
11015 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11016
11017 cat >>confdefs.h <<_ACEOF
11018 #define HAVE_SA_LEN 1
11019 _ACEOF
11020
11021 fi
11022
11023 if test -n "$BLKID_CMT"; then
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11025 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11026 if ${ac_cv_search_blkid_probe_all+:} false; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   ac_func_search_save_LIBS=$LIBS
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h.  */
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034    Use char because int might match the return type of a GCC
11035    builtin and then its argument prototype would still apply.  */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char blkid_probe_all ();
11040 int
11041 main ()
11042 {
11043 return blkid_probe_all ();
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 for ac_lib in '' blkid; do
11049   if test -z "$ac_lib"; then
11050     ac_res="none required"
11051   else
11052     ac_res=-l$ac_lib
11053     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11054   fi
11055   if ac_fn_c_try_link "$LINENO"; then :
11056   ac_cv_search_blkid_probe_all=$ac_res
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext \
11059     conftest$ac_exeext
11060   if ${ac_cv_search_blkid_probe_all+:} false; then :
11061   break
11062 fi
11063 done
11064 if ${ac_cv_search_blkid_probe_all+:} false; then :
11065
11066 else
11067   ac_cv_search_blkid_probe_all=no
11068 fi
11069 rm conftest.$ac_ext
11070 LIBS=$ac_func_search_save_LIBS
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11073 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11074 ac_res=$ac_cv_search_blkid_probe_all
11075 if test "$ac_res" != no; then :
11076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11077
11078 fi
11079
11080 fi
11081 for ac_func in          __secure_getenv         backtrace       blkid_probe_get_topology        chflags         fadvise64       fallocate       fallocate64     fchown  fdatasync       fstat64         ftruncate64     futimes         getcwd  getdtablesize   getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   secure_getenv   setmntent       setresgid       setresuid       srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   valloc
11082 do :
11083   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11086   cat >>confdefs.h <<_ACEOF
11087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11088 _ACEOF
11089
11090 fi
11091 done
11092
11093 SOCKET_LIB=''
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11095 $as_echo_n "checking for socket in -lsocket... " >&6; }
11096 if ${ac_cv_lib_socket_socket+:} false; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099   ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lsocket  $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105    Use char because int might match the return type of a GCC
11106    builtin and then its argument prototype would still apply.  */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char socket ();
11111 int
11112 main ()
11113 {
11114 return socket ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120   ac_cv_lib_socket_socket=yes
11121 else
11122   ac_cv_lib_socket_socket=no
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125     conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11129 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11130 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11131   SOCKET_LIB=-lsocket
11132 fi
11133
11134
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11136 $as_echo_n "checking for optreset... " >&6; }
11137 if ${ac_cv_have_optreset+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h.  */
11142 #include <unistd.h>
11143
11144 _ACEOF
11145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11146   $EGREP "optreset" >/dev/null 2>&1; then :
11147   ac_cv_have_optreset=yes
11148 else
11149   ac_cv_have_optreset=no
11150 fi
11151 rm -f conftest*
11152
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11155 $as_echo "$ac_cv_have_optreset" >&6; }
11156 if test $ac_cv_have_optreset = yes; then
11157
11158 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11159
11160 fi
11161
11162 SEM_INIT_LIB=''
11163 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11164 if test "x$ac_cv_func_sem_init" = xyes; then :
11165
11166 else
11167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11168 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11169 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-lpthread  $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h.  */
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178    Use char because int might match the return type of a GCC
11179    builtin and then its argument prototype would still apply.  */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char sem_init ();
11184 int
11185 main ()
11186 {
11187 return sem_init ();
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193   ac_cv_lib_pthread_sem_init=yes
11194 else
11195   ac_cv_lib_pthread_sem_init=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext \
11198     conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11202 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11203 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11204   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11205
11206         SEM_INIT_LIB=-lpthread
11207 else
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11209 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11210 if ${ac_cv_lib_rt_sem_init+:} false; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-lrt  $LIBS"
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h.  */
11217
11218 /* Override any GCC internal prototype to avoid an error.
11219    Use char because int might match the return type of a GCC
11220    builtin and then its argument prototype would still apply.  */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 char sem_init ();
11225 int
11226 main ()
11227 {
11228 return sem_init ();
11229   ;
11230   return 0;
11231 }
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"; then :
11234   ac_cv_lib_rt_sem_init=yes
11235 else
11236   ac_cv_lib_rt_sem_init=no
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239     conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11243 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11244 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11245   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11246
11247         SEM_INIT_LIB=-lrt
11248 else
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11250 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11251 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11252   $as_echo_n "(cached) " >&6
11253 else
11254   ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-lposix4  $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h.  */
11258
11259 /* Override any GCC internal prototype to avoid an error.
11260    Use char because int might match the return type of a GCC
11261    builtin and then its argument prototype would still apply.  */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 char sem_init ();
11266 int
11267 main ()
11268 {
11269 return sem_init ();
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275   ac_cv_lib_posix4_sem_init=yes
11276 else
11277   ac_cv_lib_posix4_sem_init=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11284 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11285 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11286   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11287
11288         SEM_INIT_LIB=-lposix4
11289 fi
11290
11291 fi
11292
11293 fi
11294
11295 fi
11296
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11298 $as_echo_n "checking for unified diff option... " >&6; }
11299 if diff -u $0 $0 > /dev/null 2>&1 ; then
11300    UNI_DIFF_OPTS=-u
11301 else
11302    UNI_DIFF_OPTS=-c
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11305 $as_echo "$UNI_DIFF_OPTS" >&6; }
11306
11307 case "$host_os" in
11308 linux*)
11309
11310 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11311
11312         ;;
11313 esac
11314 LINUX_CMT="#"
11315 CYGWIN_CMT="#"
11316 UNIX_CMT=
11317 case "$host_os" in
11318 linux*)
11319         LINUX_CMT=
11320         ;;
11321 cygwin)
11322         CYGWIN_CMT=
11323         UNIX_CMT="#"
11324         ;;
11325 esac
11326
11327
11328
11329 case "$host_os" in
11330 linux* | gnu* | k*bsd*-gnu)
11331         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11332                 root_prefix="";
11333                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11334 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11335         fi
11336         ;;
11337 esac
11338 case "$host_os" in
11339 linux* | gnu* | k*bsd*-gnu)
11340         if test "$prefix" = NONE ; then
11341                 prefix="/usr";
11342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11343 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11344                 if test "$mandir" = '${prefix}/man' ; then
11345                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11346 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11347                         mandir=/usr/share/man
11348                 fi
11349         fi
11350 ;;
11351 esac
11352 if test "$root_prefix" = NONE ; then
11353         if test "$prefix" = NONE ; then
11354                 root_prefix="$ac_default_prefix"
11355         else
11356                 root_prefix="$prefix"
11357         fi
11358         root_bindir=$bindir
11359         root_sbindir=$sbindir
11360         root_libdir=$libdir
11361         root_sysconfdir=$sysconfdir
11362 else
11363         root_bindir='${root_prefix}/bin'
11364         root_sbindir='${root_prefix}/sbin'
11365         root_libdir='${root_prefix}/lib'
11366         root_sysconfdir='${root_prefix}/etc'
11367 fi
11368 if test "$bindir" != '${exec_prefix}/bin'; then
11369     root_bindir=$bindir
11370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11371 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11372 fi
11373 if test "$sbindir" != '${exec_prefix}/sbin'; then
11374     root_sbindir=$sbindir
11375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11376 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11377 fi
11378 if test "$libdir" != '${exec_prefix}/lib'; then
11379     root_libdir=$libdir
11380     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11381 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11382 fi
11383 if test "$sysconfdir" != '${prefix}/etc'; then
11384     root_sysconfdir=$sysconfdir
11385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11386 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11387 fi
11388
11389
11390
11391
11392
11393
11394 # Check whether --with-multiarch was given.
11395 if test "${with_multiarch+set}" = set; then :
11396   withval=$with_multiarch; if test "$withval" = "lib64"; then
11397     libdir=/usr/lib64
11398     root_libdir=/lib64
11399 else
11400     libdir=$libdir/$withval
11401     root_libdir=$root_libdir/$withval
11402 fi
11403
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11406 $as_echo_n "checking whether we can link with -static... " >&6; }
11407 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h.  */
11413 #include <stdio.h>
11414 int
11415 main ()
11416 {
11417 fflush(stdout);
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423   ac_cv_e2fsprogs_use_static=yes
11424 else
11425   ac_cv_e2fsprogs_use_static=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428     conftest$ac_exeext conftest.$ac_ext
11429 LDFLAGS=$SAVE_LDFLAGS
11430 fi
11431
11432 case "$host_os" in
11433 solaris2.*)
11434         ac_cv_e2fsprogs_use_static=no
11435 ;;
11436 esac
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11438 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11439 LDFLAG_STATIC=
11440 if test $ac_cv_e2fsprogs_use_static = yes; then
11441         LDFLAG_STATIC=-static
11442 fi
11443
11444 case "$host_os" in
11445 darwin*)
11446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11447 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11448
11449 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11450
11451         ;;
11452 esac
11453 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11454 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11455
11456
11457 if test "$cross_compiling" = yes ; then
11458   DO_TEST_SUITE=
11459 else
11460   DO_TEST_SUITE=check
11461 fi
11462
11463 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11464 if test -n "$CPPFLAGS" ; then
11465         INCLUDES="$INCLUDES $CPPFLAGS"
11466 fi
11467 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11468         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11469 fi
11470 if test -n "$WITH_DIET_LIBC" ; then
11471         INCLUDES="$INCLUDES -D_REENTRANT"
11472 fi
11473
11474 if test $cross_compiling = no; then
11475    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11476    BUILD_LDFLAGS="$LDFLAGS"
11477 else
11478    BUILD_CFLAGS=
11479    BUILD_LDFLAGS=
11480 fi
11481
11482
11483 test -d lib || mkdir lib
11484 test -d include || mkdir include
11485 test -d include/linux || mkdir include/linux
11486 test -d include/asm || mkdir include/asm
11487 for i in MCONFIG Makefile e2fsprogs.spec \
11488         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11489         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11490         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11491         lib/uuid/Makefile lib/uuid/uuid_types.h \
11492         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11493         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11494         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11495         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11496         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11497         resize/Makefile doc/Makefile intl/Makefile \
11498         intl/libgnuintl.h po/Makefile.in ; do
11499         if test -d `dirname ${srcdir}/$i` ; then
11500                 outlist="$outlist $i"
11501         fi
11502 done
11503 ac_config_files="$ac_config_files $outlist"
11504
11505 cat >confcache <<\_ACEOF
11506 # This file is a shell script that caches the results of configure
11507 # tests run on this system so they can be shared between configure
11508 # scripts and configure runs, see configure's option --config-cache.
11509 # It is not useful on other systems.  If it contains results you don't
11510 # want to keep, you may remove or edit it.
11511 #
11512 # config.status only pays attention to the cache file if you give it
11513 # the --recheck option to rerun configure.
11514 #
11515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11517 # following values.
11518
11519 _ACEOF
11520
11521 # The following way of writing the cache mishandles newlines in values,
11522 # but we know of no workaround that is simple, portable, and efficient.
11523 # So, we kill variables containing newlines.
11524 # Ultrix sh set writes to stderr and can't be redirected directly,
11525 # and sets the high bit in the cache file unless we assign to the vars.
11526 (
11527   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11528     eval ac_val=\$$ac_var
11529     case $ac_val in #(
11530     *${as_nl}*)
11531       case $ac_var in #(
11532       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11534       esac
11535       case $ac_var in #(
11536       _ | IFS | as_nl) ;; #(
11537       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11538       *) { eval $ac_var=; unset $ac_var;} ;;
11539       esac ;;
11540     esac
11541   done
11542
11543   (set) 2>&1 |
11544     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11545     *${as_nl}ac_space=\ *)
11546       # `set' does not quote correctly, so add quotes: double-quote
11547       # substitution turns \\\\ into \\, and sed turns \\ into \.
11548       sed -n \
11549         "s/'/'\\\\''/g;
11550           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11551       ;; #(
11552     *)
11553       # `set' quotes correctly as required by POSIX, so do not add quotes.
11554       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11555       ;;
11556     esac |
11557     sort
11558 ) |
11559   sed '
11560      /^ac_cv_env_/b end
11561      t clear
11562      :clear
11563      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11564      t end
11565      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11566      :end' >>confcache
11567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11568   if test -w "$cache_file"; then
11569     if test "x$cache_file" != "x/dev/null"; then
11570       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11571 $as_echo "$as_me: updating cache $cache_file" >&6;}
11572       if test ! -f "$cache_file" || test -h "$cache_file"; then
11573         cat confcache >"$cache_file"
11574       else
11575         case $cache_file in #(
11576         */* | ?:*)
11577           mv -f confcache "$cache_file"$$ &&
11578           mv -f "$cache_file"$$ "$cache_file" ;; #(
11579         *)
11580           mv -f confcache "$cache_file" ;;
11581         esac
11582       fi
11583     fi
11584   else
11585     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11587   fi
11588 fi
11589 rm -f confcache
11590
11591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11592 # Let make expand exec_prefix.
11593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11594
11595 DEFS=-DHAVE_CONFIG_H
11596
11597 ac_libobjs=
11598 ac_ltlibobjs=
11599 U=
11600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11601   # 1. Remove the extension, and $U if already installed.
11602   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11603   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11604   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11605   #    will be set to the directory where LIBOBJS objects are built.
11606   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11607   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11608 done
11609 LIBOBJS=$ac_libobjs
11610
11611 LTLIBOBJS=$ac_ltlibobjs
11612
11613
11614
11615
11616 : "${CONFIG_STATUS=./config.status}"
11617 ac_write_fail=0
11618 ac_clean_files_save=$ac_clean_files
11619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11622 as_write_fail=0
11623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11624 #! $SHELL
11625 # Generated by $as_me.
11626 # Run this file to recreate the current configuration.
11627 # Compiler output produced by configure, useful for debugging
11628 # configure, is in config.log if it exists.
11629
11630 debug=false
11631 ac_cs_recheck=false
11632 ac_cs_silent=false
11633
11634 SHELL=\${CONFIG_SHELL-$SHELL}
11635 export SHELL
11636 _ASEOF
11637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11638 ## -------------------- ##
11639 ## M4sh Initialization. ##
11640 ## -------------------- ##
11641
11642 # Be more Bourne compatible
11643 DUALCASE=1; export DUALCASE # for MKS sh
11644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11645   emulate sh
11646   NULLCMD=:
11647   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11648   # is contrary to our usage.  Disable this feature.
11649   alias -g '${1+"$@"}'='"$@"'
11650   setopt NO_GLOB_SUBST
11651 else
11652   case `(set -o) 2>/dev/null` in #(
11653   *posix*) :
11654     set -o posix ;; #(
11655   *) :
11656      ;;
11657 esac
11658 fi
11659
11660
11661 as_nl='
11662 '
11663 export as_nl
11664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11668 # Prefer a ksh shell builtin over an external printf program on Solaris,
11669 # but without wasting forks for bash or zsh.
11670 if test -z "$BASH_VERSION$ZSH_VERSION" \
11671     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11672   as_echo='print -r --'
11673   as_echo_n='print -rn --'
11674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11675   as_echo='printf %s\n'
11676   as_echo_n='printf %s'
11677 else
11678   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11679     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11680     as_echo_n='/usr/ucb/echo -n'
11681   else
11682     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11683     as_echo_n_body='eval
11684       arg=$1;
11685       case $arg in #(
11686       *"$as_nl"*)
11687         expr "X$arg" : "X\\(.*\\)$as_nl";
11688         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11689       esac;
11690       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11691     '
11692     export as_echo_n_body
11693     as_echo_n='sh -c $as_echo_n_body as_echo'
11694   fi
11695   export as_echo_body
11696   as_echo='sh -c $as_echo_body as_echo'
11697 fi
11698
11699 # The user is always right.
11700 if test "${PATH_SEPARATOR+set}" != set; then
11701   PATH_SEPARATOR=:
11702   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11703     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11704       PATH_SEPARATOR=';'
11705   }
11706 fi
11707
11708
11709 # IFS
11710 # We need space, tab and new line, in precisely that order.  Quoting is
11711 # there to prevent editors from complaining about space-tab.
11712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11713 # splitting by setting IFS to empty value.)
11714 IFS=" ""        $as_nl"
11715
11716 # Find who we are.  Look in the path if we contain no directory separator.
11717 as_myself=
11718 case $0 in #((
11719   *[\\/]* ) as_myself=$0 ;;
11720   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723   IFS=$as_save_IFS
11724   test -z "$as_dir" && as_dir=.
11725     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11726   done
11727 IFS=$as_save_IFS
11728
11729      ;;
11730 esac
11731 # We did not find ourselves, most probably we were run as `sh COMMAND'
11732 # in which case we are not to be found in the path.
11733 if test "x$as_myself" = x; then
11734   as_myself=$0
11735 fi
11736 if test ! -f "$as_myself"; then
11737   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11738   exit 1
11739 fi
11740
11741 # Unset variables that we do not need and which cause bugs (e.g. in
11742 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11743 # suppresses any "Segmentation fault" message there.  '((' could
11744 # trigger a bug in pdksh 5.2.14.
11745 for as_var in BASH_ENV ENV MAIL MAILPATH
11746 do eval test x\${$as_var+set} = xset \
11747   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11748 done
11749 PS1='$ '
11750 PS2='> '
11751 PS4='+ '
11752
11753 # NLS nuisances.
11754 LC_ALL=C
11755 export LC_ALL
11756 LANGUAGE=C
11757 export LANGUAGE
11758
11759 # CDPATH.
11760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11761
11762
11763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11764 # ----------------------------------------
11765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11767 # script with STATUS, using 1 if that was 0.
11768 as_fn_error ()
11769 {
11770   as_status=$1; test $as_status -eq 0 && as_status=1
11771   if test "$4"; then
11772     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11773     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11774   fi
11775   $as_echo "$as_me: error: $2" >&2
11776   as_fn_exit $as_status
11777 } # as_fn_error
11778
11779
11780 # as_fn_set_status STATUS
11781 # -----------------------
11782 # Set $? to STATUS, without forking.
11783 as_fn_set_status ()
11784 {
11785   return $1
11786 } # as_fn_set_status
11787
11788 # as_fn_exit STATUS
11789 # -----------------
11790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11791 as_fn_exit ()
11792 {
11793   set +e
11794   as_fn_set_status $1
11795   exit $1
11796 } # as_fn_exit
11797
11798 # as_fn_unset VAR
11799 # ---------------
11800 # Portably unset VAR.
11801 as_fn_unset ()
11802 {
11803   { eval $1=; unset $1;}
11804 }
11805 as_unset=as_fn_unset
11806 # as_fn_append VAR VALUE
11807 # ----------------------
11808 # Append the text in VALUE to the end of the definition contained in VAR. Take
11809 # advantage of any shell optimizations that allow amortized linear growth over
11810 # repeated appends, instead of the typical quadratic growth present in naive
11811 # implementations.
11812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11813   eval 'as_fn_append ()
11814   {
11815     eval $1+=\$2
11816   }'
11817 else
11818   as_fn_append ()
11819   {
11820     eval $1=\$$1\$2
11821   }
11822 fi # as_fn_append
11823
11824 # as_fn_arith ARG...
11825 # ------------------
11826 # Perform arithmetic evaluation on the ARGs, and store the result in the
11827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11828 # must be portable across $(()) and expr.
11829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11830   eval 'as_fn_arith ()
11831   {
11832     as_val=$(( $* ))
11833   }'
11834 else
11835   as_fn_arith ()
11836   {
11837     as_val=`expr "$@" || test $? -eq 1`
11838   }
11839 fi # as_fn_arith
11840
11841
11842 if expr a : '\(a\)' >/dev/null 2>&1 &&
11843    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11844   as_expr=expr
11845 else
11846   as_expr=false
11847 fi
11848
11849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11850   as_basename=basename
11851 else
11852   as_basename=false
11853 fi
11854
11855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11856   as_dirname=dirname
11857 else
11858   as_dirname=false
11859 fi
11860
11861 as_me=`$as_basename -- "$0" ||
11862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11863          X"$0" : 'X\(//\)$' \| \
11864          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11865 $as_echo X/"$0" |
11866     sed '/^.*\/\([^/][^/]*\)\/*$/{
11867             s//\1/
11868             q
11869           }
11870           /^X\/\(\/\/\)$/{
11871             s//\1/
11872             q
11873           }
11874           /^X\/\(\/\).*/{
11875             s//\1/
11876             q
11877           }
11878           s/.*/./; q'`
11879
11880 # Avoid depending upon Character Ranges.
11881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11884 as_cr_digits='0123456789'
11885 as_cr_alnum=$as_cr_Letters$as_cr_digits
11886
11887 ECHO_C= ECHO_N= ECHO_T=
11888 case `echo -n x` in #(((((
11889 -n*)
11890   case `echo 'xy\c'` in
11891   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11892   xy)  ECHO_C='\c';;
11893   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11894        ECHO_T=' ';;
11895   esac;;
11896 *)
11897   ECHO_N='-n';;
11898 esac
11899
11900 rm -f conf$$ conf$$.exe conf$$.file
11901 if test -d conf$$.dir; then
11902   rm -f conf$$.dir/conf$$.file
11903 else
11904   rm -f conf$$.dir
11905   mkdir conf$$.dir 2>/dev/null
11906 fi
11907 if (echo >conf$$.file) 2>/dev/null; then
11908   if ln -s conf$$.file conf$$ 2>/dev/null; then
11909     as_ln_s='ln -s'
11910     # ... but there are two gotchas:
11911     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11912     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11913     # In both cases, we have to default to `cp -pR'.
11914     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11915       as_ln_s='cp -pR'
11916   elif ln conf$$.file conf$$ 2>/dev/null; then
11917     as_ln_s=ln
11918   else
11919     as_ln_s='cp -pR'
11920   fi
11921 else
11922   as_ln_s='cp -pR'
11923 fi
11924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11925 rmdir conf$$.dir 2>/dev/null
11926
11927
11928 # as_fn_mkdir_p
11929 # -------------
11930 # Create "$as_dir" as a directory, including parents if necessary.
11931 as_fn_mkdir_p ()
11932 {
11933
11934   case $as_dir in #(
11935   -*) as_dir=./$as_dir;;
11936   esac
11937   test -d "$as_dir" || eval $as_mkdir_p || {
11938     as_dirs=
11939     while :; do
11940       case $as_dir in #(
11941       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11942       *) as_qdir=$as_dir;;
11943       esac
11944       as_dirs="'$as_qdir' $as_dirs"
11945       as_dir=`$as_dirname -- "$as_dir" ||
11946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11947          X"$as_dir" : 'X\(//\)[^/]' \| \
11948          X"$as_dir" : 'X\(//\)$' \| \
11949          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11950 $as_echo X"$as_dir" |
11951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11952             s//\1/
11953             q
11954           }
11955           /^X\(\/\/\)[^/].*/{
11956             s//\1/
11957             q
11958           }
11959           /^X\(\/\/\)$/{
11960             s//\1/
11961             q
11962           }
11963           /^X\(\/\).*/{
11964             s//\1/
11965             q
11966           }
11967           s/.*/./; q'`
11968       test -d "$as_dir" && break
11969     done
11970     test -z "$as_dirs" || eval "mkdir $as_dirs"
11971   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11972
11973
11974 } # as_fn_mkdir_p
11975 if mkdir -p . 2>/dev/null; then
11976   as_mkdir_p='mkdir -p "$as_dir"'
11977 else
11978   test -d ./-p && rmdir ./-p
11979   as_mkdir_p=false
11980 fi
11981
11982
11983 # as_fn_executable_p FILE
11984 # -----------------------
11985 # Test if FILE is an executable regular file.
11986 as_fn_executable_p ()
11987 {
11988   test -f "$1" && test -x "$1"
11989 } # as_fn_executable_p
11990 as_test_x='test -x'
11991 as_executable_p=as_fn_executable_p
11992
11993 # Sed expression to map a string onto a valid CPP name.
11994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11995
11996 # Sed expression to map a string onto a valid variable name.
11997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11998
11999
12000 exec 6>&1
12001 ## ----------------------------------- ##
12002 ## Main body of $CONFIG_STATUS script. ##
12003 ## ----------------------------------- ##
12004 _ASEOF
12005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12006
12007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008 # Save the log message, to keep $0 and so on meaningful, and to
12009 # report actual input values of CONFIG_FILES etc. instead of their
12010 # values after options handling.
12011 ac_log="
12012 This file was extended by $as_me, which was
12013 generated by GNU Autoconf 2.69.  Invocation command line was
12014
12015   CONFIG_FILES    = $CONFIG_FILES
12016   CONFIG_HEADERS  = $CONFIG_HEADERS
12017   CONFIG_LINKS    = $CONFIG_LINKS
12018   CONFIG_COMMANDS = $CONFIG_COMMANDS
12019   $ $0 $@
12020
12021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12022 "
12023
12024 _ACEOF
12025
12026 case $ac_config_files in *"
12027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12028 esac
12029
12030 case $ac_config_headers in *"
12031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12032 esac
12033
12034
12035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 # Files that config.status was made for.
12037 config_files="$ac_config_files"
12038 config_headers="$ac_config_headers"
12039 config_commands="$ac_config_commands"
12040
12041 _ACEOF
12042
12043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12044 ac_cs_usage="\
12045 \`$as_me' instantiates files and other configuration actions
12046 from templates according to the current configuration.  Unless the files
12047 and actions are specified as TAGs, all are instantiated by default.
12048
12049 Usage: $0 [OPTION]... [TAG]...
12050
12051   -h, --help       print this help, then exit
12052   -V, --version    print version number and configuration settings, then exit
12053       --config     print configuration, then exit
12054   -q, --quiet, --silent
12055                    do not print progress messages
12056   -d, --debug      don't remove temporary files
12057       --recheck    update $as_me by reconfiguring in the same conditions
12058       --file=FILE[:TEMPLATE]
12059                    instantiate the configuration file FILE
12060       --header=FILE[:TEMPLATE]
12061                    instantiate the configuration header FILE
12062
12063 Configuration files:
12064 $config_files
12065
12066 Configuration headers:
12067 $config_headers
12068
12069 Configuration commands:
12070 $config_commands
12071
12072 Report bugs to the package provider."
12073
12074 _ACEOF
12075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12077 ac_cs_version="\\
12078 config.status
12079 configured by $0, generated by GNU Autoconf 2.69,
12080   with options \\"\$ac_cs_config\\"
12081
12082 Copyright (C) 2012 Free Software Foundation, Inc.
12083 This config.status script is free software; the Free Software Foundation
12084 gives unlimited permission to copy, distribute and modify it."
12085
12086 ac_pwd='$ac_pwd'
12087 srcdir='$srcdir'
12088 INSTALL='$INSTALL'
12089 AWK='$AWK'
12090 test -n "\$AWK" || AWK=awk
12091 _ACEOF
12092
12093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12094 # The default lists apply if the user does not specify any file.
12095 ac_need_defaults=:
12096 while test $# != 0
12097 do
12098   case $1 in
12099   --*=?*)
12100     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12101     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12102     ac_shift=:
12103     ;;
12104   --*=)
12105     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12106     ac_optarg=
12107     ac_shift=:
12108     ;;
12109   *)
12110     ac_option=$1
12111     ac_optarg=$2
12112     ac_shift=shift
12113     ;;
12114   esac
12115
12116   case $ac_option in
12117   # Handling of the options.
12118   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12119     ac_cs_recheck=: ;;
12120   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12121     $as_echo "$ac_cs_version"; exit ;;
12122   --config | --confi | --conf | --con | --co | --c )
12123     $as_echo "$ac_cs_config"; exit ;;
12124   --debug | --debu | --deb | --de | --d | -d )
12125     debug=: ;;
12126   --file | --fil | --fi | --f )
12127     $ac_shift
12128     case $ac_optarg in
12129     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12130     '') as_fn_error $? "missing file argument" ;;
12131     esac
12132     as_fn_append CONFIG_FILES " '$ac_optarg'"
12133     ac_need_defaults=false;;
12134   --header | --heade | --head | --hea )
12135     $ac_shift
12136     case $ac_optarg in
12137     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12138     esac
12139     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12140     ac_need_defaults=false;;
12141   --he | --h)
12142     # Conflict between --help and --header
12143     as_fn_error $? "ambiguous option: \`$1'
12144 Try \`$0 --help' for more information.";;
12145   --help | --hel | -h )
12146     $as_echo "$ac_cs_usage"; exit ;;
12147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12149     ac_cs_silent=: ;;
12150
12151   # This is an error.
12152   -*) as_fn_error $? "unrecognized option: \`$1'
12153 Try \`$0 --help' for more information." ;;
12154
12155   *) as_fn_append ac_config_targets " $1"
12156      ac_need_defaults=false ;;
12157
12158   esac
12159   shift
12160 done
12161
12162 ac_configure_extra_args=
12163
12164 if $ac_cs_silent; then
12165   exec 6>/dev/null
12166   ac_configure_extra_args="$ac_configure_extra_args --silent"
12167 fi
12168
12169 _ACEOF
12170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12171 if \$ac_cs_recheck; then
12172   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12173   shift
12174   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12175   CONFIG_SHELL='$SHELL'
12176   export CONFIG_SHELL
12177   exec "\$@"
12178 fi
12179
12180 _ACEOF
12181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12182 exec 5>>config.log
12183 {
12184   echo
12185   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12186 ## Running $as_me. ##
12187 _ASBOX
12188   $as_echo "$ac_log"
12189 } >&5
12190
12191 _ACEOF
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193 #
12194 # INIT-COMMANDS
12195 #
12196 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12197     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12198     # from automake.
12199     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12200     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12201     LINGUAS="${LINGUAS-%UNSET%}"
12202
12203
12204 _ACEOF
12205
12206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12207
12208 # Handling of arguments.
12209 for ac_config_target in $ac_config_targets
12210 do
12211   case $ac_config_target in
12212     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12213     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12214     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12215
12216   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12217   esac
12218 done
12219
12220
12221 # If the user did not use the arguments to specify the items to instantiate,
12222 # then the envvar interface is used.  Set only those that are not.
12223 # We use the long form for the default assignment because of an extremely
12224 # bizarre bug on SunOS 4.1.3.
12225 if $ac_need_defaults; then
12226   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12227   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12228   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12229 fi
12230
12231 # Have a temporary directory for convenience.  Make it in the build tree
12232 # simply because there is no reason against having it here, and in addition,
12233 # creating and moving files from /tmp can sometimes cause problems.
12234 # Hook for its removal unless debugging.
12235 # Note that there is a small window in which the directory will not be cleaned:
12236 # after its creation but before its name has been assigned to `$tmp'.
12237 $debug ||
12238 {
12239   tmp= ac_tmp=
12240   trap 'exit_status=$?
12241   : "${ac_tmp:=$tmp}"
12242   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12243 ' 0
12244   trap 'as_fn_exit 1' 1 2 13 15
12245 }
12246 # Create a (secure) tmp directory for tmp files.
12247
12248 {
12249   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12250   test -d "$tmp"
12251 }  ||
12252 {
12253   tmp=./conf$$-$RANDOM
12254   (umask 077 && mkdir "$tmp")
12255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12256 ac_tmp=$tmp
12257
12258 # Set up the scripts for CONFIG_FILES section.
12259 # No need to generate them if there are no CONFIG_FILES.
12260 # This happens for instance with `./config.status config.h'.
12261 if test -n "$CONFIG_FILES"; then
12262
12263 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12264   ac_cs_awk_getline=:
12265   ac_cs_awk_pipe_init=
12266   ac_cs_awk_read_file='
12267       while ((getline aline < (F[key])) > 0)
12268         print(aline)
12269       close(F[key])'
12270   ac_cs_awk_pipe_fini=
12271 else
12272   ac_cs_awk_getline=false
12273   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12274   ac_cs_awk_read_file='
12275       print "|#_!!_#|"
12276       print "cat " F[key] " &&"
12277       '$ac_cs_awk_pipe_init
12278   # The final `:' finishes the AND list.
12279   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12280 fi
12281 ac_cr=`echo X | tr X '\015'`
12282 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12283 # But we know of no other shell where ac_cr would be empty at this
12284 # point, so we can use a bashism as a fallback.
12285 if test "x$ac_cr" = x; then
12286   eval ac_cr=\$\'\\r\'
12287 fi
12288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12290   ac_cs_awk_cr='\\r'
12291 else
12292   ac_cs_awk_cr=$ac_cr
12293 fi
12294
12295 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12296 _ACEOF
12297
12298 # Create commands to substitute file output variables.
12299 {
12300   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12301   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12302   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12303   echo "_ACAWK" &&
12304   echo "_ACEOF"
12305 } >conf$$files.sh &&
12306 . ./conf$$files.sh ||
12307   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12308 rm -f conf$$files.sh
12309
12310 {
12311   echo "cat >conf$$subs.awk <<_ACEOF" &&
12312   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12313   echo "_ACEOF"
12314 } >conf$$subs.sh ||
12315   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12317 ac_delim='%!_!# '
12318 for ac_last_try in false false false false false :; do
12319   . ./conf$$subs.sh ||
12320     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12321
12322   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12323   if test $ac_delim_n = $ac_delim_num; then
12324     break
12325   elif $ac_last_try; then
12326     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12327   else
12328     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12329   fi
12330 done
12331 rm -f conf$$subs.sh
12332
12333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12335 _ACEOF
12336 sed -n '
12337 h
12338 s/^/S["/; s/!.*/"]=/
12339 p
12340 g
12341 s/^[^!]*!//
12342 :repl
12343 t repl
12344 s/'"$ac_delim"'$//
12345 t delim
12346 :nl
12347 h
12348 s/\(.\{148\}\)..*/\1/
12349 t more1
12350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12351 p
12352 n
12353 b repl
12354 :more1
12355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12356 p
12357 g
12358 s/.\{148\}//
12359 t nl
12360 :delim
12361 h
12362 s/\(.\{148\}\)..*/\1/
12363 t more2
12364 s/["\\]/\\&/g; s/^/"/; s/$/"/
12365 p
12366 b
12367 :more2
12368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12369 p
12370 g
12371 s/.\{148\}//
12372 t delim
12373 ' <conf$$subs.awk | sed '
12374 /^[^""]/{
12375   N
12376   s/\n//
12377 }
12378 ' >>$CONFIG_STATUS || ac_write_fail=1
12379 rm -f conf$$subs.awk
12380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12381 _ACAWK
12382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12383   for (key in S) S_is_set[key] = 1
12384   FS = "\a"
12385   \$ac_cs_awk_pipe_init
12386 }
12387 {
12388   line = $ 0
12389   nfields = split(line, field, "@")
12390   substed = 0
12391   len = length(field[1])
12392   for (i = 2; i < nfields; i++) {
12393     key = field[i]
12394     keylen = length(key)
12395     if (S_is_set[key]) {
12396       value = S[key]
12397       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12398       len += length(value) + length(field[++i])
12399       substed = 1
12400     } else
12401       len += 1 + keylen
12402   }
12403   if (nfields == 3 && !substed) {
12404     key = field[2]
12405     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12406       \$ac_cs_awk_read_file
12407       next
12408     }
12409   }
12410   print line
12411 }
12412 \$ac_cs_awk_pipe_fini
12413 _ACAWK
12414 _ACEOF
12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12417   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12418 else
12419   cat
12420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12421   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12422 _ACEOF
12423
12424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12426 # trailing colons and then remove the whole line if VPATH becomes empty
12427 # (actually we leave an empty line to preserve line numbers).
12428 if test "x$srcdir" = x.; then
12429   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12430 h
12431 s///
12432 s/^/:/
12433 s/[      ]*$/:/
12434 s/:\$(srcdir):/:/g
12435 s/:\${srcdir}:/:/g
12436 s/:@srcdir@:/:/g
12437 s/^:*//
12438 s/:*$//
12439 x
12440 s/\(=[   ]*\).*/\1/
12441 G
12442 s/\n//
12443 s/^[^=]*=[       ]*$//
12444 }'
12445 fi
12446
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448 fi # test -n "$CONFIG_FILES"
12449
12450 # Set up the scripts for CONFIG_HEADERS section.
12451 # No need to generate them if there are no CONFIG_HEADERS.
12452 # This happens for instance with `./config.status Makefile'.
12453 if test -n "$CONFIG_HEADERS"; then
12454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12455 BEGIN {
12456 _ACEOF
12457
12458 # Transform confdefs.h into an awk script `defines.awk', embedded as
12459 # here-document in config.status, that substitutes the proper values into
12460 # config.h.in to produce config.h.
12461
12462 # Create a delimiter string that does not exist in confdefs.h, to ease
12463 # handling of long lines.
12464 ac_delim='%!_!# '
12465 for ac_last_try in false false :; do
12466   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12467   if test -z "$ac_tt"; then
12468     break
12469   elif $ac_last_try; then
12470     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12471   else
12472     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12473   fi
12474 done
12475
12476 # For the awk script, D is an array of macro values keyed by name,
12477 # likewise P contains macro parameters if any.  Preserve backslash
12478 # newline sequences.
12479
12480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12481 sed -n '
12482 s/.\{148\}/&'"$ac_delim"'/g
12483 t rset
12484 :rset
12485 s/^[     ]*#[    ]*define[       ][      ]*/ /
12486 t def
12487 d
12488 :def
12489 s/\\$//
12490 t bsnl
12491 s/["\\]/\\&/g
12492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12493 D["\1"]=" \3"/p
12494 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12495 d
12496 :bsnl
12497 s/["\\]/\\&/g
12498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12499 D["\1"]=" \3\\\\\\n"\\/p
12500 t cont
12501 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12502 t cont
12503 d
12504 :cont
12505 n
12506 s/.\{148\}/&'"$ac_delim"'/g
12507 t clear
12508 :clear
12509 s/\\$//
12510 t bsnlc
12511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12512 d
12513 :bsnlc
12514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12515 b cont
12516 ' <confdefs.h | sed '
12517 s/'"$ac_delim"'/"\\\
12518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12519
12520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521   for (key in D) D_is_set[key] = 1
12522   FS = "\a"
12523 }
12524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12525   line = \$ 0
12526   split(line, arg, " ")
12527   if (arg[1] == "#") {
12528     defundef = arg[2]
12529     mac1 = arg[3]
12530   } else {
12531     defundef = substr(arg[1], 2)
12532     mac1 = arg[2]
12533   }
12534   split(mac1, mac2, "(") #)
12535   macro = mac2[1]
12536   prefix = substr(line, 1, index(line, defundef) - 1)
12537   if (D_is_set[macro]) {
12538     # Preserve the white space surrounding the "#".
12539     print prefix "define", macro P[macro] D[macro]
12540     next
12541   } else {
12542     # Replace #undef with comments.  This is necessary, for example,
12543     # in the case of _POSIX_SOURCE, which is predefined and required
12544     # on some systems where configure will not decide to define it.
12545     if (defundef == "undef") {
12546       print "/*", prefix defundef, macro, "*/"
12547       next
12548     }
12549   }
12550 }
12551 { print }
12552 _ACAWK
12553 _ACEOF
12554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12555   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12556 fi # test -n "$CONFIG_HEADERS"
12557
12558
12559 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12560 shift
12561 for ac_tag
12562 do
12563   case $ac_tag in
12564   :[FHLC]) ac_mode=$ac_tag; continue;;
12565   esac
12566   case $ac_mode$ac_tag in
12567   :[FHL]*:*);;
12568   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12569   :[FH]-) ac_tag=-:-;;
12570   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12571   esac
12572   ac_save_IFS=$IFS
12573   IFS=:
12574   set x $ac_tag
12575   IFS=$ac_save_IFS
12576   shift
12577   ac_file=$1
12578   shift
12579
12580   case $ac_mode in
12581   :L) ac_source=$1;;
12582   :[FH])
12583     ac_file_inputs=
12584     for ac_f
12585     do
12586       case $ac_f in
12587       -) ac_f="$ac_tmp/stdin";;
12588       *) # Look for the file first in the build tree, then in the source tree
12589          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12590          # because $ac_f cannot contain `:'.
12591          test -f "$ac_f" ||
12592            case $ac_f in
12593            [\\/$]*) false;;
12594            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12595            esac ||
12596            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12597       esac
12598       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12599       as_fn_append ac_file_inputs " '$ac_f'"
12600     done
12601
12602     # Let's still pretend it is `configure' which instantiates (i.e., don't
12603     # use $as_me), people would be surprised to read:
12604     #    /* config.h.  Generated by config.status.  */
12605     configure_input='Generated from '`
12606           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12607         `' by configure.'
12608     if test x"$ac_file" != x-; then
12609       configure_input="$ac_file.  $configure_input"
12610       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12611 $as_echo "$as_me: creating $ac_file" >&6;}
12612     fi
12613     # Neutralize special characters interpreted by sed in replacement strings.
12614     case $configure_input in #(
12615     *\&* | *\|* | *\\* )
12616        ac_sed_conf_input=`$as_echo "$configure_input" |
12617        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12618     *) ac_sed_conf_input=$configure_input;;
12619     esac
12620
12621     case $ac_tag in
12622     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12623       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12624     esac
12625     ;;
12626   esac
12627
12628   ac_dir=`$as_dirname -- "$ac_file" ||
12629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12630          X"$ac_file" : 'X\(//\)[^/]' \| \
12631          X"$ac_file" : 'X\(//\)$' \| \
12632          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12633 $as_echo X"$ac_file" |
12634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12635             s//\1/
12636             q
12637           }
12638           /^X\(\/\/\)[^/].*/{
12639             s//\1/
12640             q
12641           }
12642           /^X\(\/\/\)$/{
12643             s//\1/
12644             q
12645           }
12646           /^X\(\/\).*/{
12647             s//\1/
12648             q
12649           }
12650           s/.*/./; q'`
12651   as_dir="$ac_dir"; as_fn_mkdir_p
12652   ac_builddir=.
12653
12654 case "$ac_dir" in
12655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12656 *)
12657   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12658   # A ".." for each directory in $ac_dir_suffix.
12659   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12660   case $ac_top_builddir_sub in
12661   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12662   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12663   esac ;;
12664 esac
12665 ac_abs_top_builddir=$ac_pwd
12666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12667 # for backward compatibility:
12668 ac_top_builddir=$ac_top_build_prefix
12669
12670 case $srcdir in
12671   .)  # We are building in place.
12672     ac_srcdir=.
12673     ac_top_srcdir=$ac_top_builddir_sub
12674     ac_abs_top_srcdir=$ac_pwd ;;
12675   [\\/]* | ?:[\\/]* )  # Absolute name.
12676     ac_srcdir=$srcdir$ac_dir_suffix;
12677     ac_top_srcdir=$srcdir
12678     ac_abs_top_srcdir=$srcdir ;;
12679   *) # Relative name.
12680     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12681     ac_top_srcdir=$ac_top_build_prefix$srcdir
12682     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12683 esac
12684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12685
12686
12687   case $ac_mode in
12688   :F)
12689   #
12690   # CONFIG_FILE
12691   #
12692
12693   case $INSTALL in
12694   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12695   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12696   esac
12697 _ACEOF
12698
12699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700 # If the template does not know about datarootdir, expand it.
12701 # FIXME: This hack should be removed a few years after 2.60.
12702 ac_datarootdir_hack=; ac_datarootdir_seen=
12703 ac_sed_dataroot='
12704 /datarootdir/ {
12705   p
12706   q
12707 }
12708 /@datadir@/p
12709 /@docdir@/p
12710 /@infodir@/p
12711 /@localedir@/p
12712 /@mandir@/p'
12713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12714 *datarootdir*) ac_datarootdir_seen=yes;;
12715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12718 _ACEOF
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720   ac_datarootdir_hack='
12721   s&@datadir@&$datadir&g
12722   s&@docdir@&$docdir&g
12723   s&@infodir@&$infodir&g
12724   s&@localedir@&$localedir&g
12725   s&@mandir@&$mandir&g
12726   s&\\\${datarootdir}&$datarootdir&g' ;;
12727 esac
12728 _ACEOF
12729
12730 # Neutralize VPATH when `$srcdir' = `.'.
12731 # Shell code in configure.ac might set extrasub.
12732 # FIXME: do we really want to maintain this feature?
12733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734 ac_sed_extra="$ac_vpsub
12735 $extrasub
12736 _ACEOF
12737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12738 :t
12739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12740 s|@configure_input@|$ac_sed_conf_input|;t t
12741 s&@top_builddir@&$ac_top_builddir_sub&;t t
12742 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12743 s&@srcdir@&$ac_srcdir&;t t
12744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12745 s&@top_srcdir@&$ac_top_srcdir&;t t
12746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12747 s&@builddir@&$ac_builddir&;t t
12748 s&@abs_builddir@&$ac_abs_builddir&;t t
12749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12750 s&@INSTALL@&$ac_INSTALL&;t t
12751 $ac_datarootdir_hack
12752 "
12753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12754 if $ac_cs_awk_getline; then
12755   $AWK -f "$ac_tmp/subs.awk"
12756 else
12757   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12758 fi \
12759   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12760
12761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12762   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12763   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12764       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12766 which seems to be undefined.  Please make sure it is defined" >&5
12767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12768 which seems to be undefined.  Please make sure it is defined" >&2;}
12769
12770   rm -f "$ac_tmp/stdin"
12771   case $ac_file in
12772   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12773   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12774   esac \
12775   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12776  ;;
12777   :H)
12778   #
12779   # CONFIG_HEADER
12780   #
12781   if test x"$ac_file" != x-; then
12782     {
12783       $as_echo "/* $configure_input  */" \
12784       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12785     } >"$ac_tmp/config.h" \
12786       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12787     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12788       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12790     else
12791       rm -f "$ac_file"
12792       mv "$ac_tmp/config.h" "$ac_file" \
12793         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12794     fi
12795   else
12796     $as_echo "/* $configure_input  */" \
12797       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12798       || as_fn_error $? "could not create -" "$LINENO" 5
12799   fi
12800  ;;
12801
12802   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12803 $as_echo "$as_me: executing $ac_file commands" >&6;}
12804  ;;
12805   esac
12806
12807
12808   case $ac_file$ac_mode in
12809     "default-1":C)
12810     for ac_file in $CONFIG_FILES; do
12811       # Support "outfile[:infile[:infile...]]"
12812       case "$ac_file" in
12813         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12814       esac
12815       # PO directories have a Makefile.in generated from Makefile.in.in.
12816       case "$ac_file" in */Makefile.in)
12817         # Adjust a relative srcdir.
12818         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12819         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12820         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12821         # In autoconf-2.13 it is called $ac_given_srcdir.
12822         # In autoconf-2.50 it is called $srcdir.
12823         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12824         case "$ac_given_srcdir" in
12825           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12826           /*) top_srcdir="$ac_given_srcdir" ;;
12827           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12828         esac
12829         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12830           rm -f "$ac_dir/POTFILES"
12831           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12832           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12833           POMAKEFILEDEPS="POTFILES.in"
12834           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12835           # on $ac_dir but don't depend on user-specified configuration
12836           # parameters.
12837           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12838             # The LINGUAS file contains the set of available languages.
12839             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12840               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12841             fi
12842             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12843             # Hide the ALL_LINGUAS assigment from automake.
12844             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12845             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12846           else
12847             # The set of available languages was given in configure.in.
12848             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12849           fi
12850           # Compute POFILES
12851           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12852           # Compute UPDATEPOFILES
12853           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12854           # Compute DUMMYPOFILES
12855           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12856           # Compute GMOFILES
12857           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12858           case "$ac_given_srcdir" in
12859             .) srcdirpre= ;;
12860             *) srcdirpre='$(srcdir)/' ;;
12861           esac
12862           POFILES=
12863           UPDATEPOFILES=
12864           DUMMYPOFILES=
12865           GMOFILES=
12866           for lang in $ALL_LINGUAS; do
12867             POFILES="$POFILES $srcdirpre$lang.po"
12868             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12869             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12870             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12871           done
12872           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12873           # environment variable.
12874           INST_LINGUAS=
12875           if test -n "$ALL_LINGUAS"; then
12876             for presentlang in $ALL_LINGUAS; do
12877               useit=no
12878               if test "%UNSET%" != "$LINGUAS"; then
12879                 desiredlanguages="$LINGUAS"
12880               else
12881                 desiredlanguages="$ALL_LINGUAS"
12882               fi
12883               for desiredlang in $desiredlanguages; do
12884                 # Use the presentlang catalog if desiredlang is
12885                 #   a. equal to presentlang, or
12886                 #   b. a variant of presentlang (because in this case,
12887                 #      presentlang can be used as a fallback for messages
12888                 #      which are not translated in the desiredlang catalog).
12889                 case "$desiredlang" in
12890                   "$presentlang"*) useit=yes;;
12891                 esac
12892               done
12893               if test $useit = yes; then
12894                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12895               fi
12896             done
12897           fi
12898           CATALOGS=
12899           if test -n "$INST_LINGUAS"; then
12900             for lang in $INST_LINGUAS; do
12901               CATALOGS="$CATALOGS $lang.gmo"
12902             done
12903           fi
12904           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12905           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"
12906           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12907             if test -f "$f"; then
12908               case "$f" in
12909                 *.orig | *.bak | *~) ;;
12910                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12911               esac
12912             fi
12913           done
12914         fi
12915         ;;
12916       esac
12917     done ;;
12918
12919   esac
12920 done # for ac_tag
12921
12922
12923 as_fn_exit 0
12924 _ACEOF
12925 ac_clean_files=$ac_clean_files_save
12926
12927 test $ac_write_fail = 0 ||
12928   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12929
12930
12931 # configure is writing to config.log, and then calls config.status.
12932 # config.status does its own redirection, appending to config.log.
12933 # Unfortunately, on DOS this fails, as config.log is still kept open
12934 # by configure, so config.status won't be able to write to it; its
12935 # output is simply discarded.  So we exec the FD to /dev/null,
12936 # effectively closing config.log, so it can be properly (re)opened and
12937 # appended to by config.status.  When coming back to configure, we
12938 # need to make the FD available again.
12939 if test "$no_create" != yes; then
12940   ac_cs_success=:
12941   ac_config_status_args=
12942   test "$silent" = yes &&
12943     ac_config_status_args="$ac_config_status_args --quiet"
12944   exec 5>/dev/null
12945   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12946   exec 5>>config.log
12947   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12948   # would make configure fail if this is the last instruction.
12949   $ac_cs_success || as_fn_exit 1
12950 fi
12951 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12953 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12954 fi
12955
12956 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi