Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 BUILD_LDFLAGS
626 BUILD_CFLAGS
627 INCLUDES
628 DO_TEST_SUITE
629 ET_DIR
630 SS_DIR
631 LDFLAG_STATIC
632 root_sysconfdir
633 root_libdir
634 root_sbindir
635 root_bindir
636 root_prefix
637 UNIX_CMT
638 CYGWIN_CMT
639 LINUX_CMT
640 UNI_DIFF_OPTS
641 SEM_INIT_LIB
642 SOCKET_LIB
643 SIZEOF_OFF_T
644 SIZEOF_LONG_LONG
645 SIZEOF_LONG
646 SIZEOF_INT
647 SIZEOF_SHORT
648 BUILD_CC
649 MAKEINFO
650 STRIP
651 AR
652 LDCONFIG
653 PERL
654 SED
655 AWK
656 CHMOD
657 RM
658 CP
659 MV
660 LN_S
661 LN
662 ifNotGNUmake
663 ifGNUmake
664 BINARY_TYPE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 INTL_LIBTOOL_SUFFIX_PREFIX
670 INTLOBJS
671 GENCAT
672 INSTOBJEXT
673 DATADIRNAME
674 CATOBJEXT
675 USE_INCLUDED_LIBINTL
676 BUILD_INCLUDED_LIBINTL
677 INTLBISON
678 LTLIBICONV
679 LIBICONV
680 HAVE_WPRINTF
681 HAVE_SNPRINTF
682 HAVE_ASPRINTF
683 HAVE_POSIX_PRINTF
684 GLIBC21
685 ALLOCA
686 EGREP
687 GREP
688 RANLIB
689 MSGMERGE
690 XGETTEXT
691 GMSGFMT
692 MSGFMT
693 USE_NLS
694 MKINSTALLDIRS
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 SET_MAKE
699 VERSION
700 PACKAGE
701 GETTEXT_PACKAGE
702 UUIDD_CMT
703 E2INITRD_MAN
704 E2INITRD_PROG
705 FSCK_MAN
706 FSCK_PROG
707 DEFRAG_CMT
708 RESIZER_CMT
709 IMAGER_CMT
710 DEBUGFS_CMT
711 QUOTA_CMT
712 DEPPROFILED_LIBQUOTA
713 PROFILED_LIBQUOTA
714 DEPSTATIC_LIBQUOTA
715 STATIC_LIBQUOTA
716 DEPLIBQUOTA
717 LIBQUOTA
718 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_mmp
857 enable_bmap_stats
858 enable_bmap_stats_ops
859 enable_nls
860 with_gnu_ld
861 enable_rpath
862 with_libiconv_prefix
863 with_included_gettext
864 with_libintl_prefix
865 with_multiarch
866 '
867       ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 CPP
876 PKG_CONFIG'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931   # If the previous option needs an argument, assign it.
932   if test -n "$ac_prev"; then
933     eval $ac_prev=\$ac_option
934     ac_prev=
935     continue
936   fi
937
938   case $ac_option in
939   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940   *=)   ac_optarg= ;;
941   *)    ac_optarg=yes ;;
942   esac
943
944   # Accept the important Cygnus configure options, so we can diagnose typos.
945
946   case $ac_dashdash$ac_option in
947   --)
948     ac_dashdash=yes ;;
949
950   -bindir | --bindir | --bindi | --bind | --bin | --bi)
951     ac_prev=bindir ;;
952   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953     bindir=$ac_optarg ;;
954
955   -build | --build | --buil | --bui | --bu)
956     ac_prev=build_alias ;;
957   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958     build_alias=$ac_optarg ;;
959
960   -cache-file | --cache-file | --cache-fil | --cache-fi \
961   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962     ac_prev=cache_file ;;
963   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965     cache_file=$ac_optarg ;;
966
967   --config-cache | -C)
968     cache_file=config.cache ;;
969
970   -datadir | --datadir | --datadi | --datad)
971     ac_prev=datadir ;;
972   -datadir=* | --datadir=* | --datadi=* | --datad=*)
973     datadir=$ac_optarg ;;
974
975   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976   | --dataroo | --dataro | --datar)
977     ac_prev=datarootdir ;;
978   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980     datarootdir=$ac_optarg ;;
981
982   -disable-* | --disable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error $? "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012       as_fn_error $? "invalid feature name: $ac_useropt"
1013     ac_useropt_orig=$ac_useropt
1014     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015     case $ac_user_opts in
1016       *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020          ac_unrecognized_sep=', ';;
1021     esac
1022     eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264     ;;
1265
1266   *=*)
1267     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268     # Reject names that are not valid shell variable names.
1269     case $ac_envvar in #(
1270       '' | [0-9]* | *[!_$as_cr_alnum]* )
1271       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272     esac
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293   case $enable_option_checking in
1294     no) ;;
1295     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297   esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   # Remove trailing slashes.
1308   case $ac_val in
1309     */ )
1310       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311       eval $ac_var=\$ac_val;;
1312   esac
1313   # Be sure to have absolute directory names.
1314   case $ac_val in
1315     [\\/$]* | ?:[\\/]* )  continue;;
1316     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317   esac
1318   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330   if test "x$build_alias" = x; then
1331     cross_compiling=maybe
1332   elif test "x$build_alias" != "x$host_alias"; then
1333     cross_compiling=yes
1334   fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346   as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348   as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353   ac_srcdir_defaulted=yes
1354   # Try the directory containing this script, then the parent directory.
1355   ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357          X"$as_myself" : 'X\(//\)[^/]' \| \
1358          X"$as_myself" : 'X\(//\)$' \| \
1359          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)[^/].*/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\).*/{
1374             s//\1/
1375             q
1376           }
1377           s/.*/./; q'`
1378   srcdir=$ac_confdir
1379   if test ! -r "$srcdir/$ac_unique_file"; then
1380     srcdir=..
1381   fi
1382 else
1383   ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking ...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR            user executables [EPREFIX/bin]
1452   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR        program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR            object code libraries [EPREFIX/lib]
1458   --includedir=DIR        C header files [PREFIX/include]
1459   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR           info documentation [DATAROOTDIR/info]
1463   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR            man documentation [DATAROOTDIR/man]
1465   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1466   --htmldir=DIR           html documentation [DOCDIR]
1467   --dvidir=DIR            dvi documentation [DOCDIR]
1468   --pdfdir=DIR            pdf documentation [DOCDIR]
1469   --psdir=DIR             ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --enable-maintainer-mode enable makefile rules useful for maintainers
1489   --enable-symlink-install use symlinks when installing instead of hard links
1490   --enable-relative-symlinks use relative symlinks when installing
1491
1492   --enable-symlink-build  use symlinks while building instead of hard links
1493   --enable-verbose-makecmds enable verbose make command output
1494   --enable-compression    enable EXPERIMENTAL compression support
1495   --enable-htree          enable EXPERIMENTAL htree directory support
1496   --enable-elf-shlibs     select ELF shared libraries
1497   --enable-bsd-shlibs     select BSD shared libraries
1498   --enable-profile        build profiling libraries
1499   --enable-gcov           build for coverage testing using gcov
1500   --enable-checker        build checker libraries
1501   --enable-jbd-debug      enable journal debugging
1502   --enable-blkid-debug    enable blkid debugging
1503   --disable-testio-debug  disable the use of the test I/O manager for debugging
1504   --disable-libuuid       do not build private uuid library
1505   --disable-libblkid      do not build private blkid library
1506   --enable-quota          enable quota support
1507   --disable-backtrace     disable use backtrace
1508   --disable-debugfs       disable support of debugfs program
1509   --disable-imager        disable support of e2image program
1510   --disable-resizer       disable support of e2resize program
1511   --disable-defrag        disable support of e4defrag program
1512   --enable-fsck           build fsck wrapper program
1513   --enable-e2initrd-helper build e2initrd-helper program
1514   --disable-tls           disable use of thread local support
1515   --disable-uuidd         disable building the uuid daemon
1516   --disable-mmp           disable support mmp, Multi Mount Protection
1517   --disable-bmap-stats    disable collection of bitmap stats.
1518   --enable-bmap-stats-ops enable collection of additional bitmap stats
1519   --disable-nls           do not use Native Language Support
1520   --disable-rpath         do not hardcode runtime library paths
1521
1522 Optional Packages:
1523   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525   --with-diet-libc        use diet libc
1526   --with-cc               no longer supported, use CC= instead
1527   --with-ccopts           no longer supported, use CFLAGS= instead
1528   --with-ldopts           no longer supported, use LDFLAGS= instead
1529   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1530   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1531   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1532   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1533   --with-included-gettext use the GNU gettext library included here
1534   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1535   --without-libintl-prefix     don't search for libintl in includedir and libdir
1536   --with-multiarch=ARCH specify the multiarch triplet
1537
1538 Some influential environment variables:
1539   CC          C compiler command
1540   CFLAGS      C compiler flags
1541   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542               nonstandard directory <lib dir>
1543   LIBS        libraries to pass to the linker, e.g. -l<library>
1544   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545               you have headers in a nonstandard directory <include dir>
1546   CPP         C preprocessor
1547   PKG_CONFIG  path to pkg-config utility
1548
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1551
1552 Report bugs to the package provider.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558   # If there are subdirs, report their specific --help.
1559   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560     test -d "$ac_dir" ||
1561       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562       continue
1563     ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569   # A ".." for each directory in $ac_dir_suffix.
1570   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571   case $ac_top_builddir_sub in
1572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574   esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582   .)  # We are building in place.
1583     ac_srcdir=.
1584     ac_top_srcdir=$ac_top_builddir_sub
1585     ac_abs_top_srcdir=$ac_pwd ;;
1586   [\\/]* | ?:[\\/]* )  # Absolute name.
1587     ac_srcdir=$srcdir$ac_dir_suffix;
1588     ac_top_srcdir=$srcdir
1589     ac_abs_top_srcdir=$srcdir ;;
1590   *) # Relative name.
1591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592     ac_top_srcdir=$ac_top_build_prefix$srcdir
1593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597     cd "$ac_dir" || { ac_status=$?; continue; }
1598     # Check for guested configure.
1599     if test -f "$ac_srcdir/configure.gnu"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602     elif test -f "$ac_srcdir/configure"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure" --help=recursive
1605     else
1606       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607     fi || ac_status=$?
1608     cd "$ac_pwd" || { ac_status=$?; break; }
1609   done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614   cat <<\_ACEOF
1615 configure
1616 generated by GNU Autoconf 2.69
1617
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622   exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext
1636   if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_compile") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest.$ac_objext; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext conftest$ac_exeext
1674   if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_link") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest$ac_exeext && {
1693          test "$cross_compiling" = yes ||
1694          test -x conftest$ac_exeext
1695        }; then :
1696   ac_retval=0
1697 else
1698   $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701         ac_retval=1
1702 fi
1703   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705   # interfere with the next link command; also delete a directory that is
1706   # left behind by Apple's compiler.  We do this before executing the actions.
1707   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_link
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } > conftest.i && {
1735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743     ac_retval=1
1744 fi
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_link") 2>&5
1765   ac_status=$?
1766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768   { { case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_try") 2>&5
1775   ac_status=$?
1776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; }; }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: program exited with status $ac_status" >&5
1781        $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784        ac_retval=$ac_status
1785 fi
1786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_run
1791
1792 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1793 # -------------------------------------------
1794 # Tests whether TYPE exists after having included INCLUDES, setting cache
1795 # variable VAR accordingly.
1796 ac_fn_c_check_type ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802   $as_echo_n "(cached) " >&6
1803 else
1804   eval "$3=no"
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 $4
1808 int
1809 main ()
1810 {
1811 if (sizeof ($2))
1812          return 0;
1813   ;
1814   return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 $4
1821 int
1822 main ()
1823 {
1824 if (sizeof (($2)))
1825             return 0;
1826   ;
1827   return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831
1832 else
1833   eval "$3=yes"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_type
1845
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856   $as_echo_n "(cached) " >&6
1857 else
1858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h.  */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864   eval "$3=yes"
1865 else
1866   eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_header_compile
1876
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895     which can conflict with char $2 (); below.
1896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897     <limits.h> exists even on freestanding compilers.  */
1898
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1904
1905 #undef $2
1906
1907 /* Override any GCC internal prototype to avoid an error.
1908    Use char because int might match the return type of a GCC
1909    builtin and then its argument prototype would still apply.  */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915     to always fail with ENOSYS.  Some functions are actually named
1916     something starting with __ and the normal name is an alias.  */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1920
1921 int
1922 main ()
1923 {
1924 return $2 ();
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext \
1935     conftest$ac_exeext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_func
1943
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1948 # accordingly.
1949 ac_fn_c_check_header_mongrel ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   if eval \${$3+:} false; then :
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 else
1962   # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 $4
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_header_compiler=yes
1972 else
1973   ac_header_compiler=no
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1978
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987   ac_header_preproc=yes
1988 else
1989   ac_header_preproc=no
1990 fi
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1994
1995 # So?  What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997   yes:no: )
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002     ;;
2003   no:yes:* )
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014     ;;
2015 esac
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   eval "$3=\$ac_header_compiler"
2022 fi
2023 eval ac_res=\$$3
2024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 fi
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_header_mongrel
2030
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 # computed
2036 ac_fn_c_compute_int ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   if test "$cross_compiling" = yes; then
2040     # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2048 test_array [0] = 0;
2049 return test_array [0];
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056   ac_lo=0 ac_mid=0
2057   while :; do
2058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0;
2066 return test_array [0];
2067
2068   ;
2069   return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073   ac_hi=$ac_mid; break
2074 else
2075   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2076                         if test $ac_lo -le $ac_mid; then
2077                           ac_lo= ac_hi=
2078                           break
2079                         fi
2080                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083   done
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 int
2089 main ()
2090 {
2091 static int test_array [1 - 2 * !(($2) < 0)];
2092 test_array [0] = 0;
2093 return test_array [0];
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100   ac_hi=-1 ac_mid=-1
2101   while :; do
2102     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h.  */
2104 $4
2105 int
2106 main ()
2107 {
2108 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2109 test_array [0] = 0;
2110 return test_array [0];
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_lo=$ac_mid; break
2118 else
2119   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120                         if test $ac_mid -le $ac_hi; then
2121                           ac_lo= ac_hi=
2122                           break
2123                         fi
2124                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127   done
2128 else
2129   ac_lo= ac_hi=
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0;
2145 return test_array [0];
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152   ac_hi=$ac_mid
2153 else
2154   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158 case $ac_lo in #((
2159 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2160 '') ac_retval=1 ;;
2161 esac
2162   else
2163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 static long int longval () { return $2; }
2167 static unsigned long int ulongval () { return $2; }
2168 #include <stdio.h>
2169 #include <stdlib.h>
2170 int
2171 main ()
2172 {
2173
2174   FILE *f = fopen ("conftest.val", "w");
2175   if (! f)
2176     return 1;
2177   if (($2) < 0)
2178     {
2179       long int i = longval ();
2180       if (i != ($2))
2181         return 1;
2182       fprintf (f, "%ld", i);
2183     }
2184   else
2185     {
2186       unsigned long int i = ulongval ();
2187       if (i != ($2))
2188         return 1;
2189       fprintf (f, "%lu", i);
2190     }
2191   /* Do not output a trailing newline, as this causes \r\n confusion
2192      on some platforms.  */
2193   return ferror (f) || fclose (f) != 0;
2194
2195   ;
2196   return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_run "$LINENO"; then :
2200   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2201 else
2202   ac_retval=1
2203 fi
2204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2205   conftest.$ac_objext conftest.beam conftest.$ac_ext
2206 rm -f conftest.val
2207
2208   fi
2209   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210   as_fn_set_status $ac_retval
2211
2212 } # ac_fn_c_compute_int
2213
2214 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2215 # ----------------------------------------------------
2216 # Tries to find if the field MEMBER exists in type AGGR, after including
2217 # INCLUDES, setting cache variable VAR accordingly.
2218 ac_fn_c_check_member ()
2219 {
2220   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2222 $as_echo_n "checking for $2.$3... " >&6; }
2223 if eval \${$4+:} false; then :
2224   $as_echo_n "(cached) " >&6
2225 else
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $5
2229 int
2230 main ()
2231 {
2232 static $2 ac_aggr;
2233 if (ac_aggr.$3)
2234 return 0;
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240   eval "$4=yes"
2241 else
2242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h.  */
2244 $5
2245 int
2246 main ()
2247 {
2248 static $2 ac_aggr;
2249 if (sizeof ac_aggr.$3)
2250 return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256   eval "$4=yes"
2257 else
2258   eval "$4=no"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$4
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_check_member
2270
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_check_decl ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   as_decl_name=`echo $2|sed 's/ *(.*//'`
2279   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \${$3+:} false; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 #ifndef $as_decl_name
2292 #ifdef __cplusplus
2293   (void) $as_decl_use;
2294 #else
2295   (void) $as_decl_name;
2296 #endif
2297 #endif
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   eval "$3=yes"
2305 else
2306   eval "$3=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 eval ac_res=\$$3
2311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314
2315 } # ac_fn_c_check_decl
2316 cat >config.log <<_ACEOF
2317 This file contains any messages produced by compilers while
2318 running configure, to aid debugging if configure makes a mistake.
2319
2320 It was created by $as_me, which was
2321 generated by GNU Autoconf 2.69.  Invocation command line was
2322
2323   $ $0 $@
2324
2325 _ACEOF
2326 exec 5>>config.log
2327 {
2328 cat <<_ASUNAME
2329 ## --------- ##
2330 ## Platform. ##
2331 ## --------- ##
2332
2333 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2334 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2335 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2336 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2337 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2338
2339 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2340 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2341
2342 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2343 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2344 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2345 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2346 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2347 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2348 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2349
2350 _ASUNAME
2351
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357     $as_echo "PATH: $as_dir"
2358   done
2359 IFS=$as_save_IFS
2360
2361 } >&5
2362
2363 cat >&5 <<_ACEOF
2364
2365
2366 ## ----------- ##
2367 ## Core tests. ##
2368 ## ----------- ##
2369
2370 _ACEOF
2371
2372
2373 # Keep a trace of the command line.
2374 # Strip out --no-create and --no-recursion so they do not pile up.
2375 # Strip out --silent because we don't want to record it for future runs.
2376 # Also quote any args containing shell meta-characters.
2377 # Make two passes to allow for proper duplicate-argument suppression.
2378 ac_configure_args=
2379 ac_configure_args0=
2380 ac_configure_args1=
2381 ac_must_keep_next=false
2382 for ac_pass in 1 2
2383 do
2384   for ac_arg
2385   do
2386     case $ac_arg in
2387     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2388     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2389     | -silent | --silent | --silen | --sile | --sil)
2390       continue ;;
2391     *\'*)
2392       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2393     esac
2394     case $ac_pass in
2395     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2396     2)
2397       as_fn_append ac_configure_args1 " '$ac_arg'"
2398       if test $ac_must_keep_next = true; then
2399         ac_must_keep_next=false # Got value, back to normal.
2400       else
2401         case $ac_arg in
2402           *=* | --config-cache | -C | -disable-* | --disable-* \
2403           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2404           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2405           | -with-* | --with-* | -without-* | --without-* | --x)
2406             case "$ac_configure_args0 " in
2407               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2408             esac
2409             ;;
2410           -* ) ac_must_keep_next=true ;;
2411         esac
2412       fi
2413       as_fn_append ac_configure_args " '$ac_arg'"
2414       ;;
2415     esac
2416   done
2417 done
2418 { ac_configure_args0=; unset ac_configure_args0;}
2419 { ac_configure_args1=; unset ac_configure_args1;}
2420
2421 # When interrupted or exit'd, cleanup temporary files, and complete
2422 # config.log.  We remove comments because anyway the quotes in there
2423 # would cause problems or look ugly.
2424 # WARNING: Use '\'' to represent an apostrophe within the trap.
2425 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2426 trap 'exit_status=$?
2427   # Save into config.log some information that might help in debugging.
2428   {
2429     echo
2430
2431     $as_echo "## ---------------- ##
2432 ## Cache variables. ##
2433 ## ---------------- ##"
2434     echo
2435     # The following way of writing the cache mishandles newlines in values,
2436 (
2437   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2438     eval ac_val=\$$ac_var
2439     case $ac_val in #(
2440     *${as_nl}*)
2441       case $ac_var in #(
2442       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2444       esac
2445       case $ac_var in #(
2446       _ | IFS | as_nl) ;; #(
2447       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2448       *) { eval $ac_var=; unset $ac_var;} ;;
2449       esac ;;
2450     esac
2451   done
2452   (set) 2>&1 |
2453     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2454     *${as_nl}ac_space=\ *)
2455       sed -n \
2456         "s/'\''/'\''\\\\'\'''\''/g;
2457           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2458       ;; #(
2459     *)
2460       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461       ;;
2462     esac |
2463     sort
2464 )
2465     echo
2466
2467     $as_echo "## ----------------- ##
2468 ## Output variables. ##
2469 ## ----------------- ##"
2470     echo
2471     for ac_var in $ac_subst_vars
2472     do
2473       eval ac_val=\$$ac_var
2474       case $ac_val in
2475       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476       esac
2477       $as_echo "$ac_var='\''$ac_val'\''"
2478     done | sort
2479     echo
2480
2481     if test -n "$ac_subst_files"; then
2482       $as_echo "## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##"
2485       echo
2486       for ac_var in $ac_subst_files
2487       do
2488         eval ac_val=\$$ac_var
2489         case $ac_val in
2490         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491         esac
2492         $as_echo "$ac_var='\''$ac_val'\''"
2493       done | sort
2494       echo
2495     fi
2496
2497     if test -s confdefs.h; then
2498       $as_echo "## ----------- ##
2499 ## confdefs.h. ##
2500 ## ----------- ##"
2501       echo
2502       cat confdefs.h
2503       echo
2504     fi
2505     test "$ac_signal" != 0 &&
2506       $as_echo "$as_me: caught signal $ac_signal"
2507     $as_echo "$as_me: exit $exit_status"
2508   } >&5
2509   rm -f core *.core core.conftest.* &&
2510     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2511     exit $exit_status
2512 ' 0
2513 for ac_signal in 1 2 13 15; do
2514   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 done
2516 ac_signal=0
2517
2518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2519 rm -f -r conftest* confdefs.h
2520
2521 $as_echo "/* confdefs.h */" > confdefs.h
2522
2523 # Predefined preprocessor variables.
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_NAME "$PACKAGE_NAME"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2535 _ACEOF
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_STRING "$PACKAGE_STRING"
2539 _ACEOF
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_URL "$PACKAGE_URL"
2547 _ACEOF
2548
2549
2550 # Let the site file select an alternate cache file if it wants to.
2551 # Prefer an explicitly selected file to automatically selected ones.
2552 ac_site_file1=NONE
2553 ac_site_file2=NONE
2554 if test -n "$CONFIG_SITE"; then
2555   # We do not want a PATH search for config.site.
2556   case $CONFIG_SITE in #((
2557     -*)  ac_site_file1=./$CONFIG_SITE;;
2558     */*) ac_site_file1=$CONFIG_SITE;;
2559     *)   ac_site_file1=./$CONFIG_SITE;;
2560   esac
2561 elif test "x$prefix" != xNONE; then
2562   ac_site_file1=$prefix/share/config.site
2563   ac_site_file2=$prefix/etc/config.site
2564 else
2565   ac_site_file1=$ac_default_prefix/share/config.site
2566   ac_site_file2=$ac_default_prefix/etc/config.site
2567 fi
2568 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2569 do
2570   test "x$ac_site_file" = xNONE && continue
2571   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2572     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2573 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2574     sed 's/^/| /' "$ac_site_file" >&5
2575     . "$ac_site_file" \
2576       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578 as_fn_error $? "failed to load site script $ac_site_file
2579 See \`config.log' for more details" "$LINENO" 5; }
2580   fi
2581 done
2582
2583 if test -r "$cache_file"; then
2584   # Some versions of bash will fail to source /dev/null (special files
2585   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2586   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2587     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2588 $as_echo "$as_me: loading cache $cache_file" >&6;}
2589     case $cache_file in
2590       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2591       *)                      . "./$cache_file";;
2592     esac
2593   fi
2594 else
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2596 $as_echo "$as_me: creating cache $cache_file" >&6;}
2597   >$cache_file
2598 fi
2599
2600 as_fn_append ac_header_list " stdlib.h"
2601 as_fn_append ac_header_list " unistd.h"
2602 as_fn_append ac_header_list " sys/param.h"
2603 # Check that the precious variables saved in the cache have kept the same
2604 # value.
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608   eval ac_new_set=\$ac_env_${ac_var}_set
2609   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610   eval ac_new_val=\$ac_env_${ac_var}_value
2611   case $ac_old_set,$ac_new_set in
2612     set,)
2613       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615       ac_cache_corrupted=: ;;
2616     ,set)
2617       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619       ac_cache_corrupted=: ;;
2620     ,);;
2621     *)
2622       if test "x$ac_old_val" != "x$ac_new_val"; then
2623         # differences in whitespace do not lead to failure.
2624         ac_old_val_w=`echo x $ac_old_val`
2625         ac_new_val_w=`echo x $ac_new_val`
2626         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629           ac_cache_corrupted=:
2630         else
2631           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633           eval $ac_var=\$ac_old_val
2634         fi
2635         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2636 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2637         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2639       fi;;
2640   esac
2641   # Pass precious variables to config.status.
2642   if test "$ac_new_set" = set; then
2643     case $ac_new_val in
2644     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645     *) ac_arg=$ac_var=$ac_new_val ;;
2646     esac
2647     case " $ac_configure_args " in
2648       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2649       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650     esac
2651   fi
2652 done
2653 if $ac_cache_corrupted; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659 fi
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2663
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
2670
2671
2672 ac_aux_dir=
2673 for ac_dir in config "$srcdir"/config; do
2674   if test -f "$ac_dir/install-sh"; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/install-sh -c"
2677     break
2678   elif test -f "$ac_dir/install.sh"; then
2679     ac_aux_dir=$ac_dir
2680     ac_install_sh="$ac_aux_dir/install.sh -c"
2681     break
2682   elif test -f "$ac_dir/shtool"; then
2683     ac_aux_dir=$ac_dir
2684     ac_install_sh="$ac_aux_dir/shtool install -c"
2685     break
2686   fi
2687 done
2688 if test -z "$ac_aux_dir"; then
2689   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2690 fi
2691
2692 # These three variables are undocumented and unsupported,
2693 # and are intended to be withdrawn in a future Autoconf release.
2694 # They can cause serious problems if a builder's source tree is in a directory
2695 # whose full name contains unusual characters.
2696 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2697 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2698 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2699
2700
2701 ac_config_headers="$ac_config_headers lib/config.h"
2702
2703
2704 MCONFIG=./MCONFIG
2705
2706 BINARY_TYPE=bin
2707 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2708         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2709 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2710         | tr \" " "`
2711 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2712 MONTH=`echo $DATE | awk -F- '{print $2}'`
2713 YEAR=`echo $DATE | awk -F- '{print $3}'`
2714
2715 if expr $YEAR ">" 1900 > /dev/null ; then
2716         E2FSPROGS_YEAR=$YEAR
2717 elif expr $YEAR ">" 90 >/dev/null ; then
2718         E2FSPROGS_YEAR=19$YEAR
2719 else
2720         E2FSPROGS_YEAR=20$YEAR
2721 fi
2722
2723 case $MONTH in
2724 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2725 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2726 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2727 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2728 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2729 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2730 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2731 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2732 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2733 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2734 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2735 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2736 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2737 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2738 esac
2739
2740 base_ver=`echo $E2FSPROGS_VERSION | \
2741                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2742
2743 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2744
2745 case $E2FSPROGS_VERSION in
2746 *-WIP|pre-*)
2747         E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2748         ;;
2749 *)
2750         E2FSPROGS_PKGVER="$base_ver"
2751         ;;
2752 esac
2753
2754 unset DATE MONTH YEAR base_ver pre_vers date_spec
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2756 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2758 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2759
2760
2761
2762
2763
2764 WITH_DIET_LIBC=
2765
2766 # Check whether --with-diet-libc was given.
2767 if test "${with_diet_libc+set}" = set; then :
2768   withval=$with_diet_libc; CC="diet cc -nostdinc"
2769 WITH_DIET_LIBC=yes
2770 if test -z "$LIBS"
2771 then
2772         LIBS="-lcompat"
2773 else
2774         LIBS="$LIBS -lcompat"
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2777 $as_echo "CC=$CC" >&6; }
2778 fi
2779 # Make sure we can run config.sub.
2780 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2781   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2784 $as_echo_n "checking build system type... " >&6; }
2785 if ${ac_cv_build+:} false; then :
2786   $as_echo_n "(cached) " >&6
2787 else
2788   ac_build_alias=$build_alias
2789 test "x$ac_build_alias" = x &&
2790   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2791 test "x$ac_build_alias" = x &&
2792   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2793 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2794   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2795
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2798 $as_echo "$ac_cv_build" >&6; }
2799 case $ac_cv_build in
2800 *-*-*) ;;
2801 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2802 esac
2803 build=$ac_cv_build
2804 ac_save_IFS=$IFS; IFS='-'
2805 set x $ac_cv_build
2806 shift
2807 build_cpu=$1
2808 build_vendor=$2
2809 shift; shift
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2812 build_os=$*
2813 IFS=$ac_save_IFS
2814 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2815
2816
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2818 $as_echo_n "checking host system type... " >&6; }
2819 if ${ac_cv_host+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test "x$host_alias" = x; then
2823   ac_cv_host=$ac_cv_build
2824 else
2825   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2826     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2827 fi
2828
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2831 $as_echo "$ac_cv_host" >&6; }
2832 case $ac_cv_host in
2833 *-*-*) ;;
2834 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2835 esac
2836 host=$ac_cv_host
2837 ac_save_IFS=$IFS; IFS='-'
2838 set x $ac_cv_host
2839 shift
2840 host_cpu=$1
2841 host_vendor=$2
2842 shift; shift
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2845 host_os=$*
2846 IFS=$ac_save_IFS
2847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2848
2849
2850 DLOPEN_LIB=''
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 if test -n "$ac_tool_prefix"; then
2857   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test -n "$CC"; then
2865   ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_exec_ext in '' $ac_executable_extensions; do
2873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879   done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 fi
2895 if test -z "$ac_cv_prog_CC"; then
2896   ac_ct_CC=$CC
2897   # Extract the first word of "gcc", so it can be a program name with args.
2898 set dummy gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2902   $as_echo_n "(cached) " >&6
2903 else
2904   if test -n "$ac_ct_CC"; then
2905   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912     for ac_exec_ext in '' $ac_executable_extensions; do
2913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914     ac_cv_prog_ac_ct_CC="gcc"
2915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919   done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2927 $as_echo "$ac_ct_CC" >&6; }
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933   if test "x$ac_ct_CC" = x; then
2934     CC=""
2935   else
2936     case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942     CC=$ac_ct_CC
2943   fi
2944 else
2945   CC="$ac_cv_prog_CC"
2946 fi
2947
2948 if test -z "$CC"; then
2949           if test -n "$ac_tool_prefix"; then
2950     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}cc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CC+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   if test -n "$CC"; then
2958   ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965     for ac_exec_ext in '' $ac_executable_extensions; do
2966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967     ac_cv_prog_CC="${ac_tool_prefix}cc"
2968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972   done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2981 else
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987   fi
2988 fi
2989 if test -z "$CC"; then
2990   # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   if test -n "$CC"; then
2998   ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000   ac_prog_rejected=no
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006     for ac_exec_ext in '' $ac_executable_extensions; do
3007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3009        ac_prog_rejected=yes
3010        continue
3011      fi
3012     ac_cv_prog_CC="cc"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 if test $ac_prog_rejected = yes; then
3021   # We found a bogon in the path, so make sure we never use it.
3022   set dummy $ac_cv_prog_CC
3023   shift
3024   if test $# != 0; then
3025     # We chose a different compiler from the bogus one.
3026     # However, it has the same basename, so the bogon will be chosen
3027     # first if we set CC to just the basename; use the full file name.
3028     shift
3029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3030   fi
3031 fi
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 fi
3045 if test -z "$CC"; then
3046   if test -n "$ac_tool_prefix"; then
3047   for ac_prog in cl.exe
3048   do
3049     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$CC"; then
3057   ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086     test -n "$CC" && break
3087   done
3088 fi
3089 if test -z "$CC"; then
3090   ac_ct_CC=$CC
3091   for ac_prog in cl.exe
3092 do
3093   # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$ac_ct_CC"; then
3101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     ac_cv_prog_ac_ct_CC="$ac_prog"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130   test -n "$ac_ct_CC" && break
3131 done
3132
3133   if test "x$ac_ct_CC" = x; then
3134     CC=""
3135   else
3136     case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142     CC=$ac_ct_CC
3143   fi
3144 fi
3145
3146 fi
3147
3148
3149 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details" "$LINENO" 5; }
3153
3154 # Provide some information about the compiler.
3155 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3156 set X $ac_compile
3157 ac_compiler=$2
3158 for ac_option in --version -v -V -qversion; do
3159   { { ac_try="$ac_compiler $ac_option >&5"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3167   ac_status=$?
3168   if test -s conftest.err; then
3169     sed '10a\
3170 ... rest of stderr output deleted ...
3171          10q' conftest.err >conftest.er1
3172     cat conftest.er1 >&5
3173   fi
3174   rm -f conftest.er1 conftest.err
3175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176   test $ac_status = 0; }
3177 done
3178
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 ac_clean_files_save=$ac_clean_files
3191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3192 # Try to create an executable without -o first, disregard a.out.
3193 # It will help us diagnose broken compilers, and finding out an intuition
3194 # of exeext.
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3196 $as_echo_n "checking whether the C compiler works... " >&6; }
3197 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3198
3199 # The possible output files:
3200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201
3202 ac_rmfiles=
3203 for ac_file in $ac_files
3204 do
3205   case $ac_file in
3206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3208   esac
3209 done
3210 rm -f $ac_rmfiles
3211
3212 if { { ac_try="$ac_link_default"
3213 case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_link_default") 2>&5
3220   ac_status=$?
3221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222   test $ac_status = 0; }; then :
3223   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3226 # so that the user can short-circuit this test for compilers unknown to
3227 # Autoconf.
3228 for ac_file in $ac_files ''
3229 do
3230   test -f "$ac_file" || continue
3231   case $ac_file in
3232     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233         ;;
3234     [ab].out )
3235         # We found the default executable, but exeext='' is most
3236         # certainly right.
3237         break;;
3238     *.* )
3239         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3240         then :; else
3241            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242         fi
3243         # We set ac_cv_exeext here because the later test for it is not
3244         # safe: cross compilers may not add the suffix if given an `-o'
3245         # argument, so we may need to know it at that point already.
3246         # Even if this section looks crufty: it has the advantage of
3247         # actually working.
3248         break;;
3249     * )
3250         break;;
3251   esac
3252 done
3253 test "$ac_cv_exeext" = no && ac_cv_exeext=
3254
3255 else
3256   ac_file=''
3257 fi
3258 if test -z "$ac_file"; then :
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error 77 "C compiler cannot create executables
3267 See \`config.log' for more details" "$LINENO" 5; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3275 $as_echo "$ac_file" >&6; }
3276 ac_exeext=$ac_cv_exeext
3277
3278 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3281 $as_echo_n "checking for suffix of executables... " >&6; }
3282 if { { ac_try="$ac_link"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289   (eval "$ac_link") 2>&5
3290   ac_status=$?
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }; then :
3293   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3295 # work properly (i.e., refer to `conftest.exe'), while it won't with
3296 # `rm'.
3297 for ac_file in conftest.exe conftest conftest.*; do
3298   test -f "$ac_file" || continue
3299   case $ac_file in
3300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302           break;;
3303     * ) break;;
3304   esac
3305 done
3306 else
3307   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details" "$LINENO" 5; }
3311 fi
3312 rm -f conftest conftest$ac_cv_exeext
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3314 $as_echo "$ac_cv_exeext" >&6; }
3315
3316 rm -f conftest.$ac_ext
3317 EXEEXT=$ac_cv_exeext
3318 ac_exeext=$EXEEXT
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h.  */
3321 #include <stdio.h>
3322 int
3323 main ()
3324 {
3325 FILE *f = fopen ("conftest.out", "w");
3326  return ferror (f) || fclose (f) != 0;
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 ac_clean_files="$ac_clean_files conftest.out"
3333 # Check that the compiler produces executables we can run.  If not, either
3334 # the compiler is broken, or we cross compile.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3336 $as_echo_n "checking whether we are cross compiling... " >&6; }
3337 if test "$cross_compiling" != yes; then
3338   { { ac_try="$ac_link"
3339 case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345   (eval "$ac_link") 2>&5
3346   ac_status=$?
3347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348   test $ac_status = 0; }
3349   if { ac_try='./conftest$ac_cv_exeext'
3350   { { case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359   test $ac_status = 0; }; }; then
3360     cross_compiling=no
3361   else
3362     if test "$cross_compiling" = maybe; then
3363         cross_compiling=yes
3364     else
3365         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot run C compiled programs.
3368 If you meant to cross compile, use \`--host'.
3369 See \`config.log' for more details" "$LINENO" 5; }
3370     fi
3371   fi
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3374 $as_echo "$cross_compiling" >&6; }
3375
3376 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3377 ac_clean_files=$ac_clean_files_save
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3379 $as_echo_n "checking for suffix of object files... " >&6; }
3380 if ${ac_cv_objext+:} false; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385
3386 int
3387 main ()
3388 {
3389
3390   ;
3391   return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.o conftest.obj
3395 if { { ac_try="$ac_compile"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_compile") 2>&5
3403   ac_status=$?
3404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405   test $ac_status = 0; }; then :
3406   for ac_file in conftest.o conftest.obj conftest.*; do
3407   test -f "$ac_file" || continue;
3408   case $ac_file in
3409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3411        break;;
3412   esac
3413 done
3414 else
3415   $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of object files: cannot compile
3421 See \`config.log' for more details" "$LINENO" 5; }
3422 fi
3423 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3424 fi
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3426 $as_echo "$ac_cv_objext" >&6; }
3427 OBJEXT=$ac_cv_objext
3428 ac_objext=$OBJEXT
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3430 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3431 if ${ac_cv_c_compiler_gnu+:} false; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440 #ifndef __GNUC__
3441        choke me
3442 #endif
3443
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449   ac_compiler_gnu=yes
3450 else
3451   ac_compiler_gnu=no
3452 fi
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3458 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3459 if test $ac_compiler_gnu = yes; then
3460   GCC=yes
3461 else
3462   GCC=
3463 fi
3464 ac_test_CFLAGS=${CFLAGS+set}
3465 ac_save_CFLAGS=$CFLAGS
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3467 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3468 if ${ac_cv_prog_cc_g+:} false; then :
3469   $as_echo_n "(cached) " >&6
3470 else
3471   ac_save_c_werror_flag=$ac_c_werror_flag
3472    ac_c_werror_flag=yes
3473    ac_cv_prog_cc_g=no
3474    CFLAGS="-g"
3475    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h.  */
3477
3478 int
3479 main ()
3480 {
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"; then :
3487   ac_cv_prog_cc_g=yes
3488 else
3489   CFLAGS=""
3490       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502
3503 else
3504   ac_c_werror_flag=$ac_save_c_werror_flag
3505          CFLAGS="-g"
3506          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_cv_prog_cc_g=yes
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 fi
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525    ac_c_werror_flag=$ac_save_c_werror_flag
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528 $as_echo "$ac_cv_prog_cc_g" >&6; }
3529 if test "$ac_test_CFLAGS" = set; then
3530   CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532   if test "$GCC" = yes; then
3533     CFLAGS="-g -O2"
3534   else
3535     CFLAGS="-g"
3536   fi
3537 else
3538   if test "$GCC" = yes; then
3539     CFLAGS="-O2"
3540   else
3541     CFLAGS=
3542   fi
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3546 if ${ac_cv_prog_cc_c89+:} false; then :
3547   $as_echo_n "(cached) " >&6
3548 else
3549   ac_cv_prog_cc_c89=no
3550 ac_save_CC=$CC
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553 #include <stdarg.h>
3554 #include <stdio.h>
3555 struct stat;
3556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3557 struct buf { int x; };
3558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559 static char *e (p, i)
3560      char **p;
3561      int i;
3562 {
3563   return p[i];
3564 }
3565 static char *f (char * (*g) (char **, int), char **p, ...)
3566 {
3567   char *s;
3568   va_list v;
3569   va_start (v,p);
3570   s = g (p, va_arg (v,int));
3571   va_end (v);
3572   return s;
3573 }
3574
3575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3576    function prototypes and stuff, but not '\xHH' hex character constants.
3577    These don't provoke an error unfortunately, instead are silently treated
3578    as 'x'.  The following induces an error, until -std is added to get
3579    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3580    array size at least.  It's necessary to write '\x00'==0 to get something
3581    that's true only with -std.  */
3582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3583
3584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3585    inside strings and character constants.  */
3586 #define FOO(x) 'x'
3587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3588
3589 int test (int i, double x);
3590 struct s1 {int (*f) (int a);};
3591 struct s2 {int (*f) (double a);};
3592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3593 int argc;
3594 char **argv;
3595 int
3596 main ()
3597 {
3598 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3604         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3605 do
3606   CC="$ac_save_CC $ac_arg"
3607   if ac_fn_c_try_compile "$LINENO"; then :
3608   ac_cv_prog_cc_c89=$ac_arg
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext
3611   test "x$ac_cv_prog_cc_c89" != "xno" && break
3612 done
3613 rm -f conftest.$ac_ext
3614 CC=$ac_save_CC
3615
3616 fi
3617 # AC_CACHE_VAL
3618 case "x$ac_cv_prog_cc_c89" in
3619   x)
3620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621 $as_echo "none needed" >&6; } ;;
3622   xno)
3623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624 $as_echo "unsupported" >&6; } ;;
3625   *)
3626     CC="$CC $ac_cv_prog_cc_c89"
3627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3629 esac
3630 if test "x$ac_cv_prog_cc_c89" != xno; then :
3631
3632 fi
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3643 if ${ac_cv_lib_dl_dlopen+:} false; then :
3644   $as_echo_n "(cached) " >&6
3645 else
3646   ac_check_lib_save_LIBS=$LIBS
3647 LIBS="-ldl  $LIBS"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 /* Override any GCC internal prototype to avoid an error.
3652    Use char because int might match the return type of a GCC
3653    builtin and then its argument prototype would still apply.  */
3654 #ifdef __cplusplus
3655 extern "C"
3656 #endif
3657 char dlopen ();
3658 int
3659 main ()
3660 {
3661 return dlopen ();
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_link "$LINENO"; then :
3667   ac_cv_lib_dl_dlopen=yes
3668 else
3669   ac_cv_lib_dl_dlopen=no
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext \
3672     conftest$ac_exeext conftest.$ac_ext
3673 LIBS=$ac_check_lib_save_LIBS
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3677 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3678   DLOPEN_LIB=-ldl
3679
3680 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3681
3682 fi
3683
3684
3685
3686 # Check whether --with-cc was given.
3687 if test "${with_cc+set}" = set; then :
3688   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3689 fi
3690
3691
3692 # Check whether --with-ccopts was given.
3693 if test "${with_ccopts+set}" = set; then :
3694   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3695 fi
3696
3697
3698 # Check whether --with-ldopts was given.
3699 if test "${with_ldopts+set}" = set; then :
3700   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3701 fi
3702
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC+:} false; then :
3714   $as_echo_n "(cached) " >&6
3715 else
3716   if test -n "$CC"; then
3717   ac_cv_prog_CC="$CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731   done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 CC=$ac_cv_prog_CC
3737 if test -n "$CC"; then
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746 fi
3747 if test -z "$ac_cv_prog_CC"; then
3748   ac_ct_CC=$CC
3749   # Extract the first word of "gcc", so it can be a program name with args.
3750 set dummy gcc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$ac_ct_CC"; then
3757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766     ac_cv_prog_ac_ct_CC="gcc"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785   if test "x$ac_ct_CC" = x; then
3786     CC=""
3787   else
3788     case $cross_compiling:$ac_tool_warned in
3789 yes:)
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned=yes ;;
3793 esac
3794     CC=$ac_ct_CC
3795   fi
3796 else
3797   CC="$ac_cv_prog_CC"
3798 fi
3799
3800 if test -z "$CC"; then
3801           if test -n "$ac_tool_prefix"; then
3802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3803 set dummy ${ac_tool_prefix}cc; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if ${ac_cv_prog_CC+:} false; then :
3807   $as_echo_n "(cached) " >&6
3808 else
3809   if test -n "$CC"; then
3810   ac_cv_prog_CC="$CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817     for ac_exec_ext in '' $ac_executable_extensions; do
3818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819     ac_cv_prog_CC="${ac_tool_prefix}cc"
3820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821     break 2
3822   fi
3823 done
3824   done
3825 IFS=$as_save_IFS
3826
3827 fi
3828 fi
3829 CC=$ac_cv_prog_CC
3830 if test -n "$CC"; then
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 $as_echo "$CC" >&6; }
3833 else
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 fi
3837
3838
3839   fi
3840 fi
3841 if test -z "$CC"; then
3842   # Extract the first word of "cc", so it can be a program name with args.
3843 set dummy cc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -n "$CC"; then
3850   ac_cv_prog_CC="$CC" # Let the user override the test.
3851 else
3852   ac_prog_rejected=no
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858     for ac_exec_ext in '' $ac_executable_extensions; do
3859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3861        ac_prog_rejected=yes
3862        continue
3863      fi
3864     ac_cv_prog_CC="cc"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 if test $ac_prog_rejected = yes; then
3873   # We found a bogon in the path, so make sure we never use it.
3874   set dummy $ac_cv_prog_CC
3875   shift
3876   if test $# != 0; then
3877     # We chose a different compiler from the bogus one.
3878     # However, it has the same basename, so the bogon will be chosen
3879     # first if we set CC to just the basename; use the full file name.
3880     shift
3881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3882   fi
3883 fi
3884 fi
3885 fi
3886 CC=$ac_cv_prog_CC
3887 if test -n "$CC"; then
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3889 $as_echo "$CC" >&6; }
3890 else
3891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3893 fi
3894
3895
3896 fi
3897 if test -z "$CC"; then
3898   if test -n "$ac_tool_prefix"; then
3899   for ac_prog in cl.exe
3900   do
3901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_CC+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   if test -n "$CC"; then
3909   ac_cv_prog_CC="$CC" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     for ac_exec_ext in '' $ac_executable_extensions; do
3917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920     break 2
3921   fi
3922 done
3923   done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 CC=$ac_cv_prog_CC
3929 if test -n "$CC"; then
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3932 else
3933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937
3938     test -n "$CC" && break
3939   done
3940 fi
3941 if test -z "$CC"; then
3942   ac_ct_CC=$CC
3943   for ac_prog in cl.exe
3944 do
3945   # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$ac_ct_CC"; then
3953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_ac_ct_CC="$ac_prog"
3963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967   done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973 if test -n "$ac_ct_CC"; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975 $as_echo "$ac_ct_CC" >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982   test -n "$ac_ct_CC" && break
3983 done
3984
3985   if test "x$ac_ct_CC" = x; then
3986     CC=""
3987   else
3988     case $cross_compiling:$ac_tool_warned in
3989 yes:)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3992 ac_tool_warned=yes ;;
3993 esac
3994     CC=$ac_ct_CC
3995   fi
3996 fi
3997
3998 fi
3999
4000
4001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "no acceptable C compiler found in \$PATH
4004 See \`config.log' for more details" "$LINENO" 5; }
4005
4006 # Provide some information about the compiler.
4007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4008 set X $ac_compile
4009 ac_compiler=$2
4010 for ac_option in --version -v -V -qversion; do
4011   { { ac_try="$ac_compiler $ac_option >&5"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4019   ac_status=$?
4020   if test -s conftest.err; then
4021     sed '10a\
4022 ... rest of stderr output deleted ...
4023          10q' conftest.err >conftest.er1
4024     cat conftest.er1 >&5
4025   fi
4026   rm -f conftest.er1 conftest.err
4027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028   test $ac_status = 0; }
4029 done
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038
4039 int
4040 main ()
4041 {
4042 #ifndef __GNUC__
4043        choke me
4044 #endif
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_compiler_gnu=yes
4052 else
4053   ac_compiler_gnu=no
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062   GCC=yes
4063 else
4064   GCC=
4065 fi
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   ac_save_c_werror_flag=$ac_c_werror_flag
4074    ac_c_werror_flag=yes
4075    ac_cv_prog_cc_g=no
4076    CFLAGS="-g"
4077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089   ac_cv_prog_cc_g=yes
4090 else
4091   CFLAGS=""
4092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104
4105 else
4106   ac_c_werror_flag=$ac_save_c_werror_flag
4107          CFLAGS="-g"
4108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   ac_cv_prog_cc_g=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127    ac_c_werror_flag=$ac_save_c_werror_flag
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132   CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134   if test "$GCC" = yes; then
4135     CFLAGS="-g -O2"
4136   else
4137     CFLAGS="-g"
4138   fi
4139 else
4140   if test "$GCC" = yes; then
4141     CFLAGS="-O2"
4142   else
4143     CFLAGS=
4144   fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h.  */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 struct stat;
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4162      char **p;
4163      int i;
4164 {
4165   return p[i];
4166 }
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4168 {
4169   char *s;
4170   va_list v;
4171   va_start (v,p);
4172   s = g (p, va_arg (v,int));
4173   va_end (v);
4174   return s;
4175 }
4176
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4178    function prototypes and stuff, but not '\xHH' hex character constants.
4179    These don't provoke an error unfortunately, instead are silently treated
4180    as 'x'.  The following induces an error, until -std is added to get
4181    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4182    array size at least.  It's necessary to write '\x00'==0 to get something
4183    that's true only with -std.  */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187    inside strings and character constants.  */
4188 #define FOO(x) 'x'
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 int argc;
4196 char **argv;
4197 int
4198 main ()
4199 {
4200 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 do
4208   CC="$ac_save_CC $ac_arg"
4209   if ac_fn_c_try_compile "$LINENO"; then :
4210   ac_cv_prog_cc_c89=$ac_arg
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext
4213   test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4217
4218 fi
4219 # AC_CACHE_VAL
4220 case "x$ac_cv_prog_cc_c89" in
4221   x)
4222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4224   xno)
4225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4227   *)
4228     CC="$CC $ac_cv_prog_cc_c89"
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 esac
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4233
4234 fi
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 if test "$GCC" = yes; then
4243    RDYNAMIC="-rdynamic"
4244
4245 fi
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4252 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4253 # On Suns, sometimes $CPP names a directory.
4254 if test -n "$CPP" && test -d "$CPP"; then
4255   CPP=
4256 fi
4257 if test -z "$CPP"; then
4258   if ${ac_cv_prog_CPP+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261       # Double quotes because CPP needs to be expanded
4262     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4263     do
4264       ac_preproc_ok=false
4265 for ac_c_preproc_warn_flag in '' yes
4266 do
4267   # Use a header file that comes with gcc, so configuring glibc
4268   # with a fresh cross-compiler works.
4269   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4270   # <limits.h> exists even on freestanding compilers.
4271   # On the NeXT, cc -E runs the code through the compiler's parser,
4272   # not just through cpp. "Syntax error" is here to catch this case.
4273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h.  */
4275 #ifdef __STDC__
4276 # include <limits.h>
4277 #else
4278 # include <assert.h>
4279 #endif
4280                      Syntax error
4281 _ACEOF
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283
4284 else
4285   # Broken: fails on valid input.
4286 continue
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290   # OK, works on sane cases.  Now check whether nonexistent headers
4291   # can be detected and how.
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h.  */
4294 #include <ac_nonexistent.h>
4295 _ACEOF
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4297   # Broken: success on invalid input.
4298 continue
4299 else
4300   # Passes both tests.
4301 ac_preproc_ok=:
4302 break
4303 fi
4304 rm -f conftest.err conftest.i conftest.$ac_ext
4305
4306 done
4307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4308 rm -f conftest.i conftest.err conftest.$ac_ext
4309 if $ac_preproc_ok; then :
4310   break
4311 fi
4312
4313     done
4314     ac_cv_prog_CPP=$CPP
4315
4316 fi
4317   CPP=$ac_cv_prog_CPP
4318 else
4319   ac_cv_prog_CPP=$CPP
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4322 $as_echo "$CPP" >&6; }
4323 ac_preproc_ok=false
4324 for ac_c_preproc_warn_flag in '' yes
4325 do
4326   # Use a header file that comes with gcc, so configuring glibc
4327   # with a fresh cross-compiler works.
4328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329   # <limits.h> exists even on freestanding compilers.
4330   # On the NeXT, cc -E runs the code through the compiler's parser,
4331   # not just through cpp. "Syntax error" is here to catch this case.
4332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334 #ifdef __STDC__
4335 # include <limits.h>
4336 #else
4337 # include <assert.h>
4338 #endif
4339                      Syntax error
4340 _ACEOF
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4342
4343 else
4344   # Broken: fails on valid input.
4345 continue
4346 fi
4347 rm -f conftest.err conftest.i conftest.$ac_ext
4348
4349   # OK, works on sane cases.  Now check whether nonexistent headers
4350   # can be detected and how.
4351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h.  */
4353 #include <ac_nonexistent.h>
4354 _ACEOF
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356   # Broken: success on invalid input.
4357 continue
4358 else
4359   # Passes both tests.
4360 ac_preproc_ok=:
4361 break
4362 fi
4363 rm -f conftest.err conftest.i conftest.$ac_ext
4364
4365 done
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.i conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then :
4369
4370 else
4371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log' for more details" "$LINENO" 5; }
4375 fi
4376
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4384 $as_echo_n "checking for additional special compiler flags... " >&6; }
4385 if test "$GCC" = yes
4386 then
4387     case "$host_cpu" in
4388         alpha)          addcflags="-mieee" ;;
4389     esac
4390 fi
4391 if test "x$addcflags" != x
4392 then
4393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4394 $as_echo "$addcflags" >&6; }
4395     CFLAGS="$addcflags $CFLAGS"
4396 else
4397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4398 $as_echo "(none)" >&6; }
4399 fi
4400 LIB_EXT=.a
4401 STATIC_LIB_EXT=.a
4402 PROFILED_LIB_EXT=.a
4403
4404 # Check whether --with-root-prefix was given.
4405 if test "${with_root_prefix+set}" = set; then :
4406   withval=$with_root_prefix; root_prefix=$withval
4407 else
4408   root_prefix=NONE
4409 fi
4410 # Check whether --enable-maintainer-mode was given.
4411 if test "${enable_maintainer_mode+set}" = set; then :
4412   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4413 then
4414         MAINTAINER_CMT=#
4415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4416 $as_echo "Disabling maintainer mode" >&6; }
4417 else
4418         MAINTAINER_CMT=
4419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4420 $as_echo "Enabling maintainer mode" >&6; }
4421 fi
4422
4423 else
4424   MAINTAINER_CMT=#
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4426 $as_echo "Disabling maintainer mode by default" >&6; }
4427
4428 fi
4429
4430
4431 # Check whether --enable-symlink-install was given.
4432 if test "${enable_symlink_install+set}" = set; then :
4433   enableval=$enable_symlink_install; if test "$enableval" = "no"
4434 then
4435         LINK_INSTALL_FLAGS=-f
4436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4437 $as_echo "Disabling symlinks for install" >&6; }
4438 else
4439         LINK_INSTALL_FLAGS=-sf
4440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4441 $as_echo "Enabling symlinks for install" >&6; }
4442 fi
4443
4444 else
4445   LINK_INSTALL_FLAGS=-f
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4447 $as_echo "Disabling symlinks for install by default" >&6; }
4448
4449 fi
4450
4451
4452 relative_symlink_defined=
4453 # Check whether --enable-relative-symlinks was given.
4454 if test "${enable_relative_symlinks+set}" = set; then :
4455   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4456 then
4457         SYMLINK_RELATIVE=
4458         relative_symlink_defined=yes
4459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4460 $as_echo "Disabling relative symlinks for install" >&6; }
4461 else
4462         SYMLINK_RELATIVE=--relative
4463         relative_symlink_defined=yes
4464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4465 $as_echo "Enabling relative symlinks for install" >&6; }
4466 fi
4467 fi
4468
4469 # Check whether --enable-symlink-relative-symlinks was given.
4470 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4471   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4472 then
4473         SYMLINK_RELATIVE=yes
4474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4475 $as_echo "Disabling relative symlinks for install" >&6; }
4476 else
4477         SYMLINK_RELATIVE=--relative
4478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4479 $as_echo "Enabling relative symlinks for install" >&6; }
4480 fi
4481
4482 else
4483   if test -z "$relative_symlink_defined"
4484 then
4485         SYMLINK_RELATIVE=
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4487 $as_echo "Disabling relative symlinks for install by default" >&6; }
4488 fi
4489
4490 fi
4491
4492
4493 # Check whether --enable-symlink-build was given.
4494 if test "${enable_symlink_build+set}" = set; then :
4495   enableval=$enable_symlink_build; if test "$enableval" = "no"
4496 then
4497         LINK_BUILD_FLAGS=
4498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4499 $as_echo "Disabling symlinks for build" >&6; }
4500 else
4501         LINK_BUILD_FLAGS=-s
4502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4503 $as_echo "Enabling symlinks for build" >&6; }
4504 fi
4505
4506 else
4507   LINK_BUILD_FLAGS=
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4509 $as_echo "Disabling symlinks for build by default" >&6; }
4510
4511 fi
4512
4513
4514 # Check whether --enable-verbose-makecmds was given.
4515 if test "${enable_verbose_makecmds+set}" = set; then :
4516   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4517 then
4518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4519 $as_echo "Disabling verbose make commands" >&6; }
4520         E=@echo
4521         ES=echo
4522         Q=@
4523 else
4524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4525 $as_echo "Enabling verbose make commands" >&6; }
4526         E=@\\#
4527         ES=\\#
4528         Q=
4529 fi
4530
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4533 $as_echo "Disabling verbose make commands" >&6; }
4534 E=@echo
4535 ES=echo
4536 Q=@
4537
4538 fi
4539
4540
4541
4542
4543 # Check whether --enable-compression was given.
4544 if test "${enable_compression+set}" = set; then :
4545   enableval=$enable_compression; if test "$enableval" = "no"
4546 then
4547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4548 $as_echo "Disabling compression support" >&6; }
4549 else
4550
4551 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4552
4553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4554 $as_echo "Enabling compression support" >&6; }
4555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4556 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4557 fi
4558
4559 else
4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4561 $as_echo "Disabling compression support by default" >&6; }
4562
4563 fi
4564
4565
4566 # Check whether --enable-htree was given.
4567 if test "${enable_htree+set}" = set; then :
4568   enableval=$enable_htree; if test "$enableval" = "no"
4569 then
4570         HTREE_CMT=#
4571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4572 $as_echo "Disabling htree directory support" >&6; }
4573 else
4574         HTREE_CMT=
4575         $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4576
4577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4578 $as_echo "Enabling htree directory support" >&6; }
4579 fi
4580
4581 else
4582   HTREE_CMT=
4583 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4586 $as_echo "Enabling htree directory support by default" >&6; }
4587
4588 fi
4589
4590
4591 E2_PKG_CONFIG_STATIC=--static
4592 LDFLAG_DYNAMIC=
4593 PRIVATE_LIBS_CMT=
4594 # Check whether --enable-elf-shlibs was given.
4595 if test "${enable_elf_shlibs+set}" = set; then :
4596   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4597 then
4598         ELF_CMT=#
4599         MAKEFILE_ELF=/dev/null
4600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4601 $as_echo "Disabling ELF shared libraries" >&6; }
4602 else
4603         E2_PKG_CONFIG_STATIC=
4604         ELF_CMT=
4605         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4606         case "$host_os" in
4607         solaris2.*)
4608                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4609         ;;
4610         esac
4611         BINARY_TYPE=elfbin
4612         LIB_EXT=.so
4613         PRIVATE_LIBS_CMT=#
4614         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4616 $as_echo "Enabling ELF shared libraries" >&6; }
4617 fi
4618
4619 else
4620   MAKEFILE_ELF=/dev/null
4621 ELF_CMT=#
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4623 $as_echo "Disabling ELF shared libraries by default" >&6; }
4624
4625 fi
4626
4627
4628
4629 # Check whether --enable-bsd-shlibs was given.
4630 if test "${enable_bsd_shlibs+set}" = set; then :
4631   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4632 then
4633         BSDLIB_CMT=#
4634         MAKEFILE_BSDLIB=/dev/null
4635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4636 $as_echo "Disabling BSD shared libraries" >&6; }
4637 else
4638         E2_PKG_CONFIG_STATIC=
4639         BSDLIB_CMT=
4640         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4641         LIB_EXT=.so
4642         case "$host_os" in
4643         darwin*)
4644                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4645                 LIB_EXT=.dylib
4646         ;;
4647         esac
4648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4649 $as_echo "Enabling BSD shared libraries" >&6; }
4650 fi
4651
4652 else
4653   MAKEFILE_BSDLIB=/dev/null
4654 BSDLIB_CMT=#
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4656 $as_echo "Disabling BSD shared libraries by default" >&6; }
4657
4658 fi
4659
4660
4661
4662 # Check whether --enable-profile was given.
4663 if test "${enable_profile+set}" = set; then :
4664   enableval=$enable_profile; if test "$enableval" = "no"
4665 then
4666         PROFILE_CMT=#
4667         MAKEFILE_PROFILE=/dev/null
4668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4669 $as_echo "Disabling profiling libraries" >&6; }
4670 else
4671         PROFILE_CMT=
4672         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4673         PROFILED_LIB_EXT=_p.a
4674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4675 $as_echo "Building profiling libraries" >&6; }
4676 fi
4677
4678 else
4679   PROFILE_CMT=#
4680 MAKEFILE_PROFILE=/dev/null
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4682 $as_echo "Disabling profiling libraries by default" >&6; }
4683
4684 fi
4685
4686
4687
4688 # Check whether --enable-gcov was given.
4689 if test "${enable_gcov+set}" = set; then :
4690   enableval=$enable_gcov; if test "$enableval" = "yes"
4691 then
4692         CFLAGS="-g -fprofile-arcs -ftest-coverage"
4693         LDFLAGS="-fprofile-arcs -ftest-coverage"
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4695 $as_echo "Enabling gcov support" >&6; }
4696 fi
4697
4698 fi
4699
4700 # Check whether --enable-checker was given.
4701 if test "${enable_checker+set}" = set; then :
4702   enableval=$enable_checker; if test "$enableval" = "no"
4703 then
4704         CHECKER_CMT=#
4705         MAKEFILE_CHECKER=/dev/null
4706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4707 $as_echo "Disabling checker libraries" >&6; }
4708 else
4709         CHECKER_CMT=
4710         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4712 $as_echo "Building checker libraries" >&6; }
4713 fi
4714
4715 else
4716   CHECKER_CMT=#
4717 MAKEFILE_CHECKER=/dev/null
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4719 $as_echo "Disabling checker libraries by default" >&6; }
4720
4721 fi
4722
4723
4724
4725
4726
4727
4728
4729
4730 # Check whether --enable-jbd-debug was given.
4731 if test "${enable_jbd_debug+set}" = set; then :
4732   enableval=$enable_jbd_debug; if test "$enableval" = "no"
4733 then
4734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4735 $as_echo "Disabling journal debugging" >&6; }
4736 else
4737
4738 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4739
4740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4741 $as_echo "Enabling journal debugging" >&6; }
4742 fi
4743
4744 else
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4746 $as_echo "Disabling journal debugging by default" >&6; }
4747
4748 fi
4749
4750 # Check whether --enable-blkid-debug was given.
4751 if test "${enable_blkid_debug+set}" = set; then :
4752   enableval=$enable_blkid_debug; if test "$enableval" = "no"
4753 then
4754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4755 $as_echo "Disabling blkid debugging" >&6; }
4756 else
4757
4758 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4759
4760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4761 $as_echo "Enabling blkid debugging" >&6; }
4762 fi
4763
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4766 $as_echo "Disabling blkid debugging by default" >&6; }
4767
4768 fi
4769
4770 # Check whether --enable-testio-debug was given.
4771 if test "${enable_testio_debug+set}" = set; then :
4772   enableval=$enable_testio_debug;
4773 if test "$enableval" = "no"
4774 then
4775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4776 $as_echo "Disabling testio debugging" >&6; }
4777         TEST_IO_CMT="#"
4778 else
4779         TEST_IO_CMT=
4780         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4781
4782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4783 $as_echo "Enabling testio debugging" >&6; }
4784 fi
4785
4786 else
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4788 $as_echo "Enabling testio debugging by default" >&6; }
4789 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4790
4791 TEST_IO_CMT=
4792
4793 fi
4794
4795
4796
4797
4798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4799         if test -n "$ac_tool_prefix"; then
4800   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   case $PKG_CONFIG in
4808   [\\/]* | ?:[\\/]*)
4809   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4810   ;;
4811   *)
4812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815   IFS=$as_save_IFS
4816   test -z "$as_dir" && as_dir=.
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821     break 2
4822   fi
4823 done
4824   done
4825 IFS=$as_save_IFS
4826
4827   ;;
4828 esac
4829 fi
4830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4831 if test -n "$PKG_CONFIG"; then
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4833 $as_echo "$PKG_CONFIG" >&6; }
4834 else
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 fi
4841 if test -z "$ac_cv_path_PKG_CONFIG"; then
4842   ac_pt_PKG_CONFIG=$PKG_CONFIG
4843   # Extract the first word of "pkg-config", so it can be a program name with args.
4844 set dummy pkg-config; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   case $ac_pt_PKG_CONFIG in
4851   [\\/]* | ?:[\\/]*)
4852   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4853   ;;
4854   *)
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     for ac_exec_ext in '' $ac_executable_extensions; do
4861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867   done
4868 IFS=$as_save_IFS
4869
4870   ;;
4871 esac
4872 fi
4873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4874 if test -n "$ac_pt_PKG_CONFIG"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882   if test "x$ac_pt_PKG_CONFIG" = x; then
4883     PKG_CONFIG=""
4884   else
4885     case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891     PKG_CONFIG=$ac_pt_PKG_CONFIG
4892   fi
4893 else
4894   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4895 fi
4896
4897 fi
4898 if test -n "$PKG_CONFIG"; then
4899         _pkg_min_version=0.9.0
4900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4902         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4903                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }
4905         else
4906                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908                 PKG_CONFIG=""
4909         fi
4910
4911 fi
4912 LIBUUID=
4913 DEPLIBUUID=
4914 STATIC_LIBUUID=
4915 DEPSTATIC_LIBUUID=
4916 PROFILED_LIBUUID=
4917 DEPPROFILED_LIBUUID=
4918 UUID_CMT=
4919 # Check whether --enable-libuuid was given.
4920 if test "${enable_libuuid+set}" = set; then :
4921   enableval=$enable_libuuid; if test "$enableval" = "no"
4922 then
4923         if test -z "$PKG_CONFIG"; then
4924                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4925         fi
4926
4927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4928 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4929 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-luuid $LIBUUID $LIBS"
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h.  */
4936
4937 /* Override any GCC internal prototype to avoid an error.
4938    Use char because int might match the return type of a GCC
4939    builtin and then its argument prototype would still apply.  */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 char uuid_generate ();
4944 int
4945 main ()
4946 {
4947 return uuid_generate ();
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_link "$LINENO"; then :
4953   ac_cv_lib_uuid_uuid_generate=yes
4954 else
4955   ac_cv_lib_uuid_uuid_generate=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext \
4958     conftest$ac_exeext conftest.$ac_ext
4959 LIBS=$ac_check_lib_save_LIBS
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4962 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4963 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4964   LIBUUID=`$PKG_CONFIG --libs uuid`;
4965                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4966 else
4967   as_fn_error $? "external uuid library not found" "$LINENO" 5
4968 fi
4969
4970         UUID_CMT=#
4971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4972 $as_echo "Disabling private uuid library" >&6; }
4973 else
4974         LIBUUID='$(LIB)/libuuid'$LIB_EXT
4975         DEPLIBUUID=$LIBUUID
4976         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4977         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4978         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4979         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4981 $as_echo "Enabling private uuid library" >&6; }
4982 fi
4983
4984 else
4985   LIBUUID='$(LIB)/libuuid'$LIB_EXT
4986 DEPLIBUUID=$LIBUUID
4987 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4988 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4989 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4990 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4992 $as_echo "Enabling private uuid library by default" >&6; }
4993
4994 fi
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5006         if test -n "$ac_tool_prefix"; then
5007   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   case $PKG_CONFIG in
5015   [\\/]* | ?:[\\/]*)
5016   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5017   ;;
5018   *)
5019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031   done
5032 IFS=$as_save_IFS
5033
5034   ;;
5035 esac
5036 fi
5037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5038 if test -n "$PKG_CONFIG"; then
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5040 $as_echo "$PKG_CONFIG" >&6; }
5041 else
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 fi
5048 if test -z "$ac_cv_path_PKG_CONFIG"; then
5049   ac_pt_PKG_CONFIG=$PKG_CONFIG
5050   # Extract the first word of "pkg-config", so it can be a program name with args.
5051 set dummy pkg-config; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   case $ac_pt_PKG_CONFIG in
5058   [\\/]* | ?:[\\/]*)
5059   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5060   ;;
5061   *)
5062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074   done
5075 IFS=$as_save_IFS
5076
5077   ;;
5078 esac
5079 fi
5080 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5081 if test -n "$ac_pt_PKG_CONFIG"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5083 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089   if test "x$ac_pt_PKG_CONFIG" = x; then
5090     PKG_CONFIG=""
5091   else
5092     case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098     PKG_CONFIG=$ac_pt_PKG_CONFIG
5099   fi
5100 else
5101   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5102 fi
5103
5104 fi
5105 if test -n "$PKG_CONFIG"; then
5106         _pkg_min_version=0.9.0
5107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5108 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5109         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5110                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5111 $as_echo "yes" >&6; }
5112         else
5113                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115                 PKG_CONFIG=""
5116         fi
5117
5118 fi
5119 LIBBLKID=
5120 DEPLIBBLKID=
5121 STATIC_LIBBLKID=
5122 DEPSTATIC_LIBBLKID=
5123 PROFILED_LIBBLKID=
5124 DEPPROFILED_LIBBLKID=
5125 BLKID_CMT=
5126
5127 # Check whether --enable-libblkid was given.
5128 if test "${enable_libblkid+set}" = set; then :
5129   enableval=$enable_libblkid; if test "$enableval" = "no"
5130 then
5131         if test -z "$PKG_CONFIG"; then
5132                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5133         fi
5134
5135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5136 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5137 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-lblkid $LIBBLKID $LIBS"
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144
5145 /* Override any GCC internal prototype to avoid an error.
5146    Use char because int might match the return type of a GCC
5147    builtin and then its argument prototype would still apply.  */
5148 #ifdef __cplusplus
5149 extern "C"
5150 #endif
5151 char blkid_get_cache ();
5152 int
5153 main ()
5154 {
5155 return blkid_get_cache ();
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 if ac_fn_c_try_link "$LINENO"; then :
5161   ac_cv_lib_blkid_blkid_get_cache=yes
5162 else
5163   ac_cv_lib_blkid_blkid_get_cache=no
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext \
5166     conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5170 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5171 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5172   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5173                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5174 else
5175   as_fn_error $? "external blkid library not found" "$LINENO" 5
5176 fi
5177
5178         BLKID_CMT=#
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5180 $as_echo "Disabling private blkid library" >&6; }
5181 else
5182         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5183         DEPLIBBLKID=$LIBBLKID
5184         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5185         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5186         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5187         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5188         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5189
5190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5191 $as_echo "Enabling private blkid library" >&6; }
5192 fi
5193
5194 else
5195   LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5196 DEPLIBBLKID=$LIBBLKID
5197 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5198 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5199 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5200 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5201 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5204 $as_echo "Enabling private blkid library by default" >&6; }
5205
5206 fi
5207
5208
5209
5210
5211
5212
5213
5214
5215 QUOTA_MAN_COMMENT='.\"'
5216 QUOTA_CMT=
5217
5218
5219
5220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5221         if test -n "$ac_tool_prefix"; then
5222   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   case $PKG_CONFIG in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248
5249   ;;
5250 esac
5251 fi
5252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5253 if test -n "$PKG_CONFIG"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5255 $as_echo "$PKG_CONFIG" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 fi
5263 if test -z "$ac_cv_path_PKG_CONFIG"; then
5264   ac_pt_PKG_CONFIG=$PKG_CONFIG
5265   # Extract the first word of "pkg-config", so it can be a program name with args.
5266 set dummy pkg-config; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   case $ac_pt_PKG_CONFIG in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292   ;;
5293 esac
5294 fi
5295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5296 if test -n "$ac_pt_PKG_CONFIG"; then
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5298 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5299 else
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303
5304   if test "x$ac_pt_PKG_CONFIG" = x; then
5305     PKG_CONFIG=""
5306   else
5307     case $cross_compiling:$ac_tool_warned in
5308 yes:)
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311 ac_tool_warned=yes ;;
5312 esac
5313     PKG_CONFIG=$ac_pt_PKG_CONFIG
5314   fi
5315 else
5316   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5317 fi
5318
5319 fi
5320 if test -n "$PKG_CONFIG"; then
5321         _pkg_min_version=0.9.0
5322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5323 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5324         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5325                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5327         else
5328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330                 PKG_CONFIG=""
5331         fi
5332
5333 fi
5334
5335 # Check whether --enable-quota was given.
5336 if test "${enable_quota+set}" = set; then :
5337   enableval=$enable_quota; if test "$enableval" = "no"
5338 then
5339         QUOTA_CMT=#
5340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5341 $as_echo "Disabling quota support" >&6; }
5342 else
5343         QUOTA_CMT=
5344         $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5345
5346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5347 $as_echo "Enabling quota support" >&6; }
5348         QUOTA_MAN_COMMENT=""
5349
5350 fi
5351
5352 else
5353   QUOTA_CMT=#
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5355 $as_echo "Disabling quota support by default" >&6; }
5356
5357 fi
5358
5359 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5360 DEPLIBQUOTA=$LIBQUOTA
5361 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5363 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5365
5366
5367
5368
5369
5370
5371
5372
5373 # Check whether --enable-backtrace was given.
5374 if test "${enable_backtrace+set}" = set; then :
5375   enableval=$enable_backtrace; if test "$enableval" = "no"
5376 then
5377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5378 $as_echo "Disabling use of backtrace" >&6; }
5379         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5380
5381 else
5382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5383 $as_echo "Enabling use of backtrace" >&6; }
5384 fi
5385
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5388 $as_echo "Enabling use of backtrace by default" >&6; }
5389
5390 fi
5391
5392 # Check whether --enable-debugfs was given.
5393 if test "${enable_debugfs+set}" = set; then :
5394   enableval=$enable_debugfs; if test "$enableval" = "no"
5395 then
5396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5397 $as_echo "Disabling debugfs support" >&6; }
5398         DEBUGFS_CMT="#"
5399 else
5400         DEBUGFS_CMT=
5401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5402 $as_echo "Enabling debugfs support" >&6; }
5403 fi
5404
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5407 $as_echo "Enabling debugfs support by default" >&6; }
5408 DEBUGFS_CMT=
5409
5410 fi
5411
5412
5413 # Check whether --enable-imager was given.
5414 if test "${enable_imager+set}" = set; then :
5415   enableval=$enable_imager; if test "$enableval" = "no"
5416 then
5417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5418 $as_echo "Disabling e2image support" >&6; }
5419         IMAGER_CMT="#"
5420 else
5421         IMAGER_CMT=
5422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5423 $as_echo "Enabling e2image support" >&6; }
5424 fi
5425
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5428 $as_echo "Enabling e2image support by default" >&6; }
5429 IMAGER_CMT=
5430
5431 fi
5432
5433
5434 # Check whether --enable-resizer was given.
5435 if test "${enable_resizer+set}" = set; then :
5436   enableval=$enable_resizer; if test "$enableval" = "no"
5437 then
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5439 $as_echo "Disabling e2resize support" >&6; }
5440         RESIZER_CMT="#"
5441 else
5442         RESIZER_CMT=
5443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5444 $as_echo "Enabling e2resize support" >&6; }
5445 fi
5446
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5449 $as_echo "Enabling e2resize support by default" >&6; }
5450 RESIZER_CMT=
5451
5452 fi
5453
5454
5455 # Check whether --enable-defrag was given.
5456 if test "${enable_defrag+set}" = set; then :
5457   enableval=$enable_defrag; if test "$enableval" = "no"
5458 then
5459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5460 $as_echo "Disabling e4defrag support" >&6; }
5461         DEFRAG_CMT="#"
5462 else
5463         DEFRAG_CMT=
5464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5465 $as_echo "Enabling e4defrag support" >&6; }
5466 fi
5467
5468 else
5469   if test -z "$WITH_DIET_LIBC"
5470 then
5471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5472 $as_echo "Enabling e4defrag support by default" >&6; }
5473         DEFRAG_CMT=
5474 else
5475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5476 $as_echo "Disabling e4defrag support by default" >&6; }
5477         DEFRAG_CMT="#"
5478 fi
5479
5480 fi
5481
5482
5483 # Check whether --enable-fsck was given.
5484 if test "${enable_fsck+set}" = set; then :
5485   enableval=$enable_fsck; if test "$enableval" = "no"
5486 then
5487         FSCK_PROG='' FSCK_MAN=''
5488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5489 $as_echo "Not building fsck wrapper" >&6; }
5490 else
5491         FSCK_PROG=fsck FSCK_MAN=fsck.8
5492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5493 $as_echo "Building fsck wrapper" >&6; }
5494 fi
5495
5496 else
5497   case "$host_os" in
5498   gnu*)
5499     FSCK_PROG='' FSCK_MAN=''
5500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5501 $as_echo "Not building fsck wrapper by default" >&6; }
5502     ;;
5503   *)
5504     FSCK_PROG=fsck FSCK_MAN=fsck.8
5505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5506 $as_echo "Building fsck wrapper by default" >&6; }
5507 esac
5508
5509 fi
5510
5511
5512
5513 # Check whether --enable-e2initrd-helper was given.
5514 if test "${enable_e2initrd_helper+set}" = set; then :
5515   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5516 then
5517         E2INITRD_PROG='' E2INITRD_MAN=''
5518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5519 $as_echo "Not building e2initrd helper" >&6; }
5520 else
5521         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5523 $as_echo "Building e2initrd helper" >&6; }
5524 fi
5525
5526 else
5527   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5529 $as_echo "Building e2initrd helper by default" >&6; }
5530
5531 fi
5532
5533
5534
5535 # Check whether --enable-tls was given.
5536 if test "${enable_tls+set}" = set; then :
5537   enableval=$enable_tls; if test "$enableval" = "no"
5538 then
5539         try_tls=""
5540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5541 $as_echo "Disabling thread local support" >&6; }
5542 else
5543         try_tls="yes"
5544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5545 $as_echo "Enabling thread local support" >&6; }
5546 fi
5547
5548 else
5549   if test -n "$WITH_DIET_LIBC"
5550 then
5551         try_tls=""
5552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5553 $as_echo "Diet libc does not support thread local support" >&6; }
5554 else
5555         try_tls="yes"
5556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5557 $as_echo "Try using thread local support by default" >&6; }
5558 fi
5559
5560 fi
5561
5562 if test "$try_tls" = "yes"
5563 then
5564
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5566 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5567   if ${ac_cv_tls+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570
5571     ax_tls_keywords="__thread __declspec(thread) none"
5572     for ax_tls_keyword in $ax_tls_keywords; do
5573        case $ax_tls_keyword in
5574           none) ac_cv_tls=none ; break ;;
5575           *)
5576              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h.  */
5578 #include <stdlib.h>
5579                  static void
5580                  foo(void) {
5581                  static  $ax_tls_keyword  int bar;
5582                  exit(1);
5583                  }
5584 int
5585 main ()
5586 {
5587
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593   ac_cv_tls=$ax_tls_keyword ; break
5594 else
5595   ac_cv_tls=none
5596
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599           esac
5600     done
5601
5602 fi
5603
5604
5605   if test "$ac_cv_tls" != "none"; then
5606
5607 cat >>confdefs.h <<_ACEOF
5608 #define TLS $ac_cv_tls
5609 _ACEOF
5610
5611   fi
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5613 $as_echo "$ac_cv_tls" >&6; }
5614
5615 fi
5616
5617 # Check whether --enable-uuidd was given.
5618 if test "${enable_uuidd+set}" = set; then :
5619   enableval=$enable_uuidd; if test "$enableval" = "no"
5620 then
5621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5622 $as_echo "Not building uuidd" >&6; }
5623         UUIDD_CMT="#"
5624 else
5625         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5626
5627         UUIDD_CMT=""
5628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5629 $as_echo "Building uuidd" >&6; }
5630 fi
5631
5632 else
5633   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5634
5635 UUIDD_CMT=""
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5637 $as_echo "Building uuidd by default" >&6; }
5638
5639 fi
5640
5641
5642
5643 # Check whether --enable-mmp was given.
5644 if test "${enable_mmp+set}" = set; then :
5645   enableval=$enable_mmp; if test "$enableval" = "no"
5646 then
5647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5648 $as_echo "Disabling mmp support" >&6; }
5649 else
5650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5651 $as_echo "Enabling mmp support" >&6; }
5652         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5653
5654 fi
5655
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5658 $as_echo "Enabling mmp support by default" >&6; }
5659 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5660
5661
5662 fi
5663
5664
5665 # Check whether --enable-bmap-stats was given.
5666 if test "${enable_bmap_stats+set}" = set; then :
5667   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5668 then
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5670 $as_echo "Disabling bitmap statistics support" >&6; }
5671 else
5672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5673 $as_echo "Enabling bitmap statistics support" >&6; }
5674         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5675
5676 fi
5677
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5680 $as_echo "Enabling bitmap statistics support by default" >&6; }
5681 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5682
5683
5684 fi
5685
5686
5687 # Check whether --enable-bmap-stats-ops was given.
5688 if test "${enable_bmap_stats_ops+set}" = set; then :
5689   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5690 then
5691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5692 $as_echo "Disabling additional bitmap statistics" >&6; }
5693 else
5694                 if test "x${enable_bmap_stats}" = "xno"; then :
5695   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5697 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5698 See \`config.log' for more details" "$LINENO" 5; }
5699 fi
5700
5701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5702 $as_echo "Enabling additional bitmap statistics" >&6; }
5703         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5704
5705 fi
5706
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5709 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5710
5711 fi
5712
5713 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5714
5715 GETTEXT_PACKAGE=e2fsprogs
5716 PACKAGE=e2fsprogs
5717 VERSION="$E2FSPROGS_VERSION"
5718 VERSION=0.14.1
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define PACKAGE "$PACKAGE"
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define VERSION "$VERSION"
5727 _ACEOF
5728
5729
5730
5731
5732
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5735 set x ${MAKE-make}
5736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   cat >conftest.make <<\_ACEOF
5741 SHELL = /bin/sh
5742 all:
5743         @echo '@@@%%%=$(MAKE)=@@@%%%'
5744 _ACEOF
5745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5747   *@@@%%%=?*=@@@%%%*)
5748     eval ac_cv_prog_make_${ac_make}_set=yes;;
5749   *)
5750     eval ac_cv_prog_make_${ac_make}_set=no;;
5751 esac
5752 rm -f conftest.make
5753 fi
5754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5757   SET_MAKE=
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761   SET_MAKE="MAKE=${MAKE-make}"
5762 fi
5763
5764 # Find a good install program.  We prefer a C program (faster),
5765 # so one script is as good as another.  But avoid the broken or
5766 # incompatible versions:
5767 # SysV /etc/install, /usr/sbin/install
5768 # SunOS /usr/etc/install
5769 # IRIX /sbin/install
5770 # AIX /bin/install
5771 # AmigaOS /C/install, which installs bootblocks on floppy discs
5772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5775 # OS/2's system install, which has a completely different semantic
5776 # ./install, which can be erroneously created by make from ./install.sh.
5777 # Reject install programs that cannot install multiple files.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5779 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5780 if test -z "$INSTALL"; then
5781 if ${ac_cv_path_install+:} false; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     # Account for people who put trailing slashes in PATH elements.
5790 case $as_dir/ in #((
5791   ./ | .// | /[cC]/* | \
5792   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5793   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5794   /usr/ucb/* ) ;;
5795   *)
5796     # OSF1 and SCO ODT 3.0 have their own names for install.
5797     # Don't use installbsd from OSF since it installs stuff as root
5798     # by default.
5799     for ac_prog in ginstall scoinst install; do
5800       for ac_exec_ext in '' $ac_executable_extensions; do
5801         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5802           if test $ac_prog = install &&
5803             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5804             # AIX install.  It has an incompatible calling convention.
5805             :
5806           elif test $ac_prog = install &&
5807             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5808             # program-specific install script used by HP pwplus--don't use.
5809             :
5810           else
5811             rm -rf conftest.one conftest.two conftest.dir
5812             echo one > conftest.one
5813             echo two > conftest.two
5814             mkdir conftest.dir
5815             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5816               test -s conftest.one && test -s conftest.two &&
5817               test -s conftest.dir/conftest.one &&
5818               test -s conftest.dir/conftest.two
5819             then
5820               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5821               break 3
5822             fi
5823           fi
5824         fi
5825       done
5826     done
5827     ;;
5828 esac
5829
5830   done
5831 IFS=$as_save_IFS
5832
5833 rm -rf conftest.one conftest.two conftest.dir
5834
5835 fi
5836   if test "${ac_cv_path_install+set}" = set; then
5837     INSTALL=$ac_cv_path_install
5838   else
5839     # As a last resort, use the slow shell script.  Don't cache a
5840     # value for INSTALL within a source directory, because that will
5841     # break other packages using the cache if that directory is
5842     # removed, or if the value is a relative name.
5843     INSTALL=$ac_install_sh
5844   fi
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5847 $as_echo "$INSTALL" >&6; }
5848
5849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5850 # It thinks the first close brace ends the variable substitution.
5851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5852
5853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5854
5855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5856
5857
5858         MKINSTALLDIRS=
5859   if test -n "$ac_aux_dir"; then
5860     case "$ac_aux_dir" in
5861       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5862       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5863     esac
5864   fi
5865   if test -z "$MKINSTALLDIRS"; then
5866     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5867   fi
5868
5869
5870
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5872 $as_echo_n "checking whether NLS is requested... " >&6; }
5873     # Check whether --enable-nls was given.
5874 if test "${enable_nls+set}" = set; then :
5875   enableval=$enable_nls; USE_NLS=$enableval
5876 else
5877   USE_NLS=yes
5878 fi
5879
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5881 $as_echo "$USE_NLS" >&6; }
5882
5883
5884
5885
5886
5887
5888 # Prepare PATH_SEPARATOR.
5889 # The user is always right.
5890 if test "${PATH_SEPARATOR+set}" != set; then
5891   echo "#! /bin/sh" >conf$$.sh
5892   echo  "exit 0"   >>conf$$.sh
5893   chmod +x conf$$.sh
5894   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5895     PATH_SEPARATOR=';'
5896   else
5897     PATH_SEPARATOR=:
5898   fi
5899   rm -f conf$$.sh
5900 fi
5901
5902 # Find out how to test for executable files. Don't use a zero-byte file,
5903 # as systems may use methods other than mode bits to determine executability.
5904 cat >conf$$.file <<_ASEOF
5905 #! /bin/sh
5906 exit 0
5907 _ASEOF
5908 chmod +x conf$$.file
5909 if test -x conf$$.file >/dev/null 2>&1; then
5910   ac_executable_p="test -x"
5911 else
5912   ac_executable_p="test -f"
5913 fi
5914 rm -f conf$$.file
5915
5916 # Extract the first word of "msgfmt", so it can be a program name with args.
5917 set dummy msgfmt; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_path_MSGFMT+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   case "$MSGFMT" in
5924   [\\/]* | ?:[\\/]*)
5925     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5926     ;;
5927   *)
5928     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5929     for ac_dir in $PATH; do
5930       IFS="$ac_save_IFS"
5931       test -z "$ac_dir" && ac_dir=.
5932       for ac_exec_ext in '' $ac_executable_extensions; do
5933         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5934           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5935      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5936             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5937             break 2
5938           fi
5939         fi
5940       done
5941     done
5942     IFS="$ac_save_IFS"
5943   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5944     ;;
5945 esac
5946 fi
5947 MSGFMT="$ac_cv_path_MSGFMT"
5948 if test "$MSGFMT" != ":"; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5950 $as_echo "$MSGFMT" >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5957 set dummy gmsgfmt; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_path_GMSGFMT+:} false; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   case $GMSGFMT in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973     for ac_exec_ext in '' $ac_executable_extensions; do
5974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980   done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5984   ;;
5985 esac
5986 fi
5987 GMSGFMT=$ac_cv_path_GMSGFMT
5988 if test -n "$GMSGFMT"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5990 $as_echo "$GMSGFMT" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997
5998
5999 # Prepare PATH_SEPARATOR.
6000 # The user is always right.
6001 if test "${PATH_SEPARATOR+set}" != set; then
6002   echo "#! /bin/sh" >conf$$.sh
6003   echo  "exit 0"   >>conf$$.sh
6004   chmod +x conf$$.sh
6005   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6006     PATH_SEPARATOR=';'
6007   else
6008     PATH_SEPARATOR=:
6009   fi
6010   rm -f conf$$.sh
6011 fi
6012
6013 # Find out how to test for executable files. Don't use a zero-byte file,
6014 # as systems may use methods other than mode bits to determine executability.
6015 cat >conf$$.file <<_ASEOF
6016 #! /bin/sh
6017 exit 0
6018 _ASEOF
6019 chmod +x conf$$.file
6020 if test -x conf$$.file >/dev/null 2>&1; then
6021   ac_executable_p="test -x"
6022 else
6023   ac_executable_p="test -f"
6024 fi
6025 rm -f conf$$.file
6026
6027 # Extract the first word of "xgettext", so it can be a program name with args.
6028 set dummy xgettext; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_path_XGETTEXT+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   case "$XGETTEXT" in
6035   [\\/]* | ?:[\\/]*)
6036     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6037     ;;
6038   *)
6039     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6040     for ac_dir in $PATH; do
6041       IFS="$ac_save_IFS"
6042       test -z "$ac_dir" && ac_dir=.
6043       for ac_exec_ext in '' $ac_executable_extensions; do
6044         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6045           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6046      (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
6047             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6048             break 2
6049           fi
6050         fi
6051       done
6052     done
6053     IFS="$ac_save_IFS"
6054   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6055     ;;
6056 esac
6057 fi
6058 XGETTEXT="$ac_cv_path_XGETTEXT"
6059 if test "$XGETTEXT" != ":"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6061 $as_echo "$XGETTEXT" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067     rm -f messages.po
6068
6069
6070 # Prepare PATH_SEPARATOR.
6071 # The user is always right.
6072 if test "${PATH_SEPARATOR+set}" != set; then
6073   echo "#! /bin/sh" >conf$$.sh
6074   echo  "exit 0"   >>conf$$.sh
6075   chmod +x conf$$.sh
6076   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6077     PATH_SEPARATOR=';'
6078   else
6079     PATH_SEPARATOR=:
6080   fi
6081   rm -f conf$$.sh
6082 fi
6083
6084 # Find out how to test for executable files. Don't use a zero-byte file,
6085 # as systems may use methods other than mode bits to determine executability.
6086 cat >conf$$.file <<_ASEOF
6087 #! /bin/sh
6088 exit 0
6089 _ASEOF
6090 chmod +x conf$$.file
6091 if test -x conf$$.file >/dev/null 2>&1; then
6092   ac_executable_p="test -x"
6093 else
6094   ac_executable_p="test -f"
6095 fi
6096 rm -f conf$$.file
6097
6098 # Extract the first word of "msgmerge", so it can be a program name with args.
6099 set dummy msgmerge; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_path_MSGMERGE+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   case "$MSGMERGE" in
6106   [\\/]* | ?:[\\/]*)
6107     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6108     ;;
6109   *)
6110     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6111     for ac_dir in $PATH; do
6112       IFS="$ac_save_IFS"
6113       test -z "$ac_dir" && ac_dir=.
6114       for ac_exec_ext in '' $ac_executable_extensions; do
6115         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6116           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6117             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6118             break 2
6119           fi
6120         fi
6121       done
6122     done
6123     IFS="$ac_save_IFS"
6124   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6125     ;;
6126 esac
6127 fi
6128 MSGMERGE="$ac_cv_path_MSGMERGE"
6129 if test "$MSGMERGE" != ":"; then
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6131 $as_echo "$MSGMERGE" >&6; }
6132 else
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137
6138       if test "$GMSGFMT" != ":"; then
6139             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6140        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6141       : ;
6142     else
6143       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6146       GMSGFMT=":"
6147     fi
6148   fi
6149
6150       if test "$XGETTEXT" != ":"; then
6151             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6152        (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
6153       : ;
6154     else
6155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6157       XGETTEXT=":"
6158     fi
6159         rm -f messages.po
6160   fi
6161
6162   ac_config_commands="$ac_config_commands default-1"
6163
6164
6165 if test -n "$ac_tool_prefix"; then
6166   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_RANLIB+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$RANLIB"; then
6174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 RANLIB=$ac_cv_prog_RANLIB
6194 if test -n "$RANLIB"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196 $as_echo "$RANLIB" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_RANLIB"; then
6205   ac_ct_RANLIB=$RANLIB
6206   # Extract the first word of "ranlib", so it can be a program name with args.
6207 set dummy ranlib; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   if test -n "$ac_ct_RANLIB"; then
6214   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223     ac_cv_prog_ac_ct_RANLIB="ranlib"
6224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228   done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234 if test -n "$ac_ct_RANLIB"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236 $as_echo "$ac_ct_RANLIB" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242   if test "x$ac_ct_RANLIB" = x; then
6243     RANLIB=":"
6244   else
6245     case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251     RANLIB=$ac_ct_RANLIB
6252   fi
6253 else
6254   RANLIB="$ac_cv_prog_RANLIB"
6255 fi
6256
6257
6258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6259 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6260 if ${ac_cv_lib_cposix_strerror+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   ac_check_lib_save_LIBS=$LIBS
6264 LIBS="-lcposix  $LIBS"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h.  */
6267
6268 /* Override any GCC internal prototype to avoid an error.
6269    Use char because int might match the return type of a GCC
6270    builtin and then its argument prototype would still apply.  */
6271 #ifdef __cplusplus
6272 extern "C"
6273 #endif
6274 char strerror ();
6275 int
6276 main ()
6277 {
6278 return strerror ();
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"; then :
6284   ac_cv_lib_cposix_strerror=yes
6285 else
6286   ac_cv_lib_cposix_strerror=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext \
6289     conftest$ac_exeext conftest.$ac_ext
6290 LIBS=$ac_check_lib_save_LIBS
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6293 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6294 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6295   LIBS="$LIBS -lcposix"
6296 fi
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6303 if ${ac_cv_path_GREP+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -z "$GREP"; then
6307   ac_path_GREP_found=false
6308   # Loop through the user's path and test for each of PROGNAME-LIST
6309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_prog in grep ggrep; do
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6317       as_fn_executable_p "$ac_path_GREP" || continue
6318 # Check for GNU ac_path_GREP and select it if it is found.
6319   # Check for GNU $ac_path_GREP
6320 case `"$ac_path_GREP" --version 2>&1` in
6321 *GNU*)
6322   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6323 *)
6324   ac_count=0
6325   $as_echo_n 0123456789 >"conftest.in"
6326   while :
6327   do
6328     cat "conftest.in" "conftest.in" >"conftest.tmp"
6329     mv "conftest.tmp" "conftest.in"
6330     cp "conftest.in" "conftest.nl"
6331     $as_echo 'GREP' >> "conftest.nl"
6332     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6334     as_fn_arith $ac_count + 1 && ac_count=$as_val
6335     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6336       # Best one so far, save it but keep looking for a better one
6337       ac_cv_path_GREP="$ac_path_GREP"
6338       ac_path_GREP_max=$ac_count
6339     fi
6340     # 10*(2^10) chars as input seems more than enough
6341     test $ac_count -gt 10 && break
6342   done
6343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6344 esac
6345
6346       $ac_path_GREP_found && break 3
6347     done
6348   done
6349   done
6350 IFS=$as_save_IFS
6351   if test -z "$ac_cv_path_GREP"; then
6352     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6353   fi
6354 else
6355   ac_cv_path_GREP=$GREP
6356 fi
6357
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6360 $as_echo "$ac_cv_path_GREP" >&6; }
6361  GREP="$ac_cv_path_GREP"
6362
6363
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6365 $as_echo_n "checking for egrep... " >&6; }
6366 if ${ac_cv_path_EGREP+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6370    then ac_cv_path_EGREP="$GREP -E"
6371    else
6372      if test -z "$EGREP"; then
6373   ac_path_EGREP_found=false
6374   # Loop through the user's path and test for each of PROGNAME-LIST
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380     for ac_prog in egrep; do
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6383       as_fn_executable_p "$ac_path_EGREP" || continue
6384 # Check for GNU ac_path_EGREP and select it if it is found.
6385   # Check for GNU $ac_path_EGREP
6386 case `"$ac_path_EGREP" --version 2>&1` in
6387 *GNU*)
6388   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6389 *)
6390   ac_count=0
6391   $as_echo_n 0123456789 >"conftest.in"
6392   while :
6393   do
6394     cat "conftest.in" "conftest.in" >"conftest.tmp"
6395     mv "conftest.tmp" "conftest.in"
6396     cp "conftest.in" "conftest.nl"
6397     $as_echo 'EGREP' >> "conftest.nl"
6398     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6399     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6400     as_fn_arith $ac_count + 1 && ac_count=$as_val
6401     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6402       # Best one so far, save it but keep looking for a better one
6403       ac_cv_path_EGREP="$ac_path_EGREP"
6404       ac_path_EGREP_max=$ac_count
6405     fi
6406     # 10*(2^10) chars as input seems more than enough
6407     test $ac_count -gt 10 && break
6408   done
6409   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6410 esac
6411
6412       $ac_path_EGREP_found && break 3
6413     done
6414   done
6415   done
6416 IFS=$as_save_IFS
6417   if test -z "$ac_cv_path_EGREP"; then
6418     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6419   fi
6420 else
6421   ac_cv_path_EGREP=$EGREP
6422 fi
6423
6424    fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6427 $as_echo "$ac_cv_path_EGREP" >&6; }
6428  EGREP="$ac_cv_path_EGREP"
6429
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6432 $as_echo_n "checking for ANSI C header files... " >&6; }
6433 if ${ac_cv_header_stdc+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h.  */
6438 #include <stdlib.h>
6439 #include <stdarg.h>
6440 #include <string.h>
6441 #include <float.h>
6442
6443 int
6444 main ()
6445 {
6446
6447   ;
6448   return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452   ac_cv_header_stdc=yes
6453 else
6454   ac_cv_header_stdc=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457
6458 if test $ac_cv_header_stdc = yes; then
6459   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h.  */
6462 #include <string.h>
6463
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466   $EGREP "memchr" >/dev/null 2>&1; then :
6467
6468 else
6469   ac_cv_header_stdc=no
6470 fi
6471 rm -f conftest*
6472
6473 fi
6474
6475 if test $ac_cv_header_stdc = yes; then
6476   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h.  */
6479 #include <stdlib.h>
6480
6481 _ACEOF
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483   $EGREP "free" >/dev/null 2>&1; then :
6484
6485 else
6486   ac_cv_header_stdc=no
6487 fi
6488 rm -f conftest*
6489
6490 fi
6491
6492 if test $ac_cv_header_stdc = yes; then
6493   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494   if test "$cross_compiling" = yes; then :
6495   :
6496 else
6497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h.  */
6499 #include <ctype.h>
6500 #include <stdlib.h>
6501 #if ((' ' & 0x0FF) == 0x020)
6502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6504 #else
6505 # define ISLOWER(c) \
6506                    (('a' <= (c) && (c) <= 'i') \
6507                      || ('j' <= (c) && (c) <= 'r') \
6508                      || ('s' <= (c) && (c) <= 'z'))
6509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6510 #endif
6511
6512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6513 int
6514 main ()
6515 {
6516   int i;
6517   for (i = 0; i < 256; i++)
6518     if (XOR (islower (i), ISLOWER (i))
6519         || toupper (i) != TOUPPER (i))
6520       return 2;
6521   return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_run "$LINENO"; then :
6525
6526 else
6527   ac_cv_header_stdc=no
6528 fi
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530   conftest.$ac_objext conftest.beam conftest.$ac_ext
6531 fi
6532
6533 fi
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6536 $as_echo "$ac_cv_header_stdc" >&6; }
6537 if test $ac_cv_header_stdc = yes; then
6538
6539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6540
6541 fi
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6544 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6545 if ${ac_cv_c_const+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h.  */
6550
6551 int
6552 main ()
6553 {
6554
6555 #ifndef __cplusplus
6556   /* Ultrix mips cc rejects this sort of thing.  */
6557   typedef int charset[2];
6558   const charset cs = { 0, 0 };
6559   /* SunOS 4.1.1 cc rejects this.  */
6560   char const *const *pcpcc;
6561   char **ppc;
6562   /* NEC SVR4.0.2 mips cc rejects this.  */
6563   struct point {int x, y;};
6564   static struct point const zero = {0,0};
6565   /* AIX XL C 1.02.0.0 rejects this.
6566      It does not let you subtract one const X* pointer from another in
6567      an arm of an if-expression whose if-part is not a constant
6568      expression */
6569   const char *g = "string";
6570   pcpcc = &g + (g ? g-g : 0);
6571   /* HPUX 7.0 cc rejects these. */
6572   ++pcpcc;
6573   ppc = (char**) pcpcc;
6574   pcpcc = (char const *const *) ppc;
6575   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6576     char tx;
6577     char *t = &tx;
6578     char const *s = 0 ? (char *) 0 : (char const *) 0;
6579
6580     *t++ = 0;
6581     if (s) return 0;
6582   }
6583   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6584     int x[] = {25, 17};
6585     const int *foo = &x[0];
6586     ++foo;
6587   }
6588   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6589     typedef const int *iptr;
6590     iptr p = 0;
6591     ++p;
6592   }
6593   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6594        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6595     struct s { int j; const int *ap[3]; } bx;
6596     struct s *b = &bx; b->j = 5;
6597   }
6598   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6599     const int foo = 10;
6600     if (!foo) return 0;
6601   }
6602   return !cs[0] && !zero.x;
6603 #endif
6604
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610   ac_cv_c_const=yes
6611 else
6612   ac_cv_c_const=no
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6617 $as_echo "$ac_cv_c_const" >&6; }
6618 if test $ac_cv_c_const = no; then
6619
6620 $as_echo "#define const /**/" >>confdefs.h
6621
6622 fi
6623
6624
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6626 $as_echo_n "checking for signed... " >&6; }
6627 if ${bh_cv_c_signed+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632
6633 int
6634 main ()
6635 {
6636 signed char x;
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_compile "$LINENO"; then :
6642   bh_cv_c_signed=yes
6643 else
6644   bh_cv_c_signed=no
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 fi
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6649 $as_echo "$bh_cv_c_signed" >&6; }
6650   if test $bh_cv_c_signed = no; then
6651
6652 $as_echo "#define signed /**/" >>confdefs.h
6653
6654   fi
6655
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6657 $as_echo_n "checking for inline... " >&6; }
6658 if ${ac_cv_c_inline+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   ac_cv_c_inline=no
6662 for ac_kw in inline __inline__ __inline; do
6663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h.  */
6665 #ifndef __cplusplus
6666 typedef int foo_t;
6667 static $ac_kw foo_t static_foo () {return 0; }
6668 $ac_kw foo_t foo () {return 0; }
6669 #endif
6670
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673   ac_cv_c_inline=$ac_kw
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676   test "$ac_cv_c_inline" != no && break
6677 done
6678
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6681 $as_echo "$ac_cv_c_inline" >&6; }
6682
6683 case $ac_cv_c_inline in
6684   inline | yes) ;;
6685   *)
6686     case $ac_cv_c_inline in
6687       no) ac_val=;;
6688       *) ac_val=$ac_cv_c_inline;;
6689     esac
6690     cat >>confdefs.h <<_ACEOF
6691 #ifndef __cplusplus
6692 #define inline $ac_val
6693 #endif
6694 _ACEOF
6695     ;;
6696 esac
6697
6698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6700                   inttypes.h stdint.h unistd.h
6701 do :
6702   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6704 "
6705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6706   cat >>confdefs.h <<_ACEOF
6707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708 _ACEOF
6709
6710 fi
6711
6712 done
6713
6714
6715 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6716 if test "x$ac_cv_type_off_t" = xyes; then :
6717
6718 else
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define off_t long int
6722 _ACEOF
6723
6724 fi
6725
6726 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6727 if test "x$ac_cv_type_size_t" = xyes; then :
6728
6729 else
6730
6731 cat >>confdefs.h <<_ACEOF
6732 #define size_t unsigned int
6733 _ACEOF
6734
6735 fi
6736
6737
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6739 $as_echo_n "checking for long long... " >&6; }
6740 if ${ac_cv_type_long_long+:} false; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h.  */
6745 long long ll = 1LL; int i = 63;
6746 int
6747 main ()
6748 {
6749 long long llmax = (long long) -1;
6750      return ll << i | ll >> i | llmax / ll | llmax % ll;
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"; then :
6756   ac_cv_type_long_long=yes
6757 else
6758   ac_cv_type_long_long=no
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761     conftest$ac_exeext conftest.$ac_ext
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6764 $as_echo "$ac_cv_type_long_long" >&6; }
6765   if test $ac_cv_type_long_long = yes; then
6766
6767 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6768
6769   fi
6770
6771
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6773 $as_echo_n "checking for long double... " >&6; }
6774 if ${gt_cv_c_long_double+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   if test "$GCC" = yes; then
6778        gt_cv_c_long_double=yes
6779      else
6780        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782
6783          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
6784          long double foo = 0.0;
6785          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
6786          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6787
6788 int
6789 main ()
6790 {
6791
6792   ;
6793   return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797   gt_cv_c_long_double=yes
6798 else
6799   gt_cv_c_long_double=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802      fi
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6805 $as_echo "$gt_cv_c_long_double" >&6; }
6806   if test $gt_cv_c_long_double = yes; then
6807
6808 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6809
6810   fi
6811
6812
6813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6814 $as_echo_n "checking for wchar_t... " >&6; }
6815 if ${gt_cv_c_wchar_t+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820 #include <stddef.h>
6821        wchar_t foo = (wchar_t)'\0';
6822 int
6823 main ()
6824 {
6825
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831   gt_cv_c_wchar_t=yes
6832 else
6833   gt_cv_c_wchar_t=no
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6838 $as_echo "$gt_cv_c_wchar_t" >&6; }
6839   if test $gt_cv_c_wchar_t = yes; then
6840
6841 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6842
6843   fi
6844
6845
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6847 $as_echo_n "checking for wint_t... " >&6; }
6848 if ${gt_cv_c_wint_t+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h.  */
6853 #include <wchar.h>
6854        wint_t foo = (wchar_t)'\0';
6855 int
6856 main ()
6857 {
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864   gt_cv_c_wint_t=yes
6865 else
6866   gt_cv_c_wint_t=no
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6871 $as_echo "$gt_cv_c_wint_t" >&6; }
6872   if test $gt_cv_c_wint_t = yes; then
6873
6874 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6875
6876   fi
6877
6878
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6880 $as_echo_n "checking for inttypes.h... " >&6; }
6881 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h.  */
6886 #include <sys/types.h>
6887 #include <inttypes.h>
6888 int
6889 main ()
6890 {
6891 uintmax_t i = (uintmax_t) -1;
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897   jm_ac_cv_header_inttypes_h=yes
6898 else
6899   jm_ac_cv_header_inttypes_h=no
6900 fi
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6904 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6905   if test $jm_ac_cv_header_inttypes_h = yes; then
6906
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6909 _ACEOF
6910
6911   fi
6912
6913
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6915 $as_echo_n "checking for stdint.h... " >&6; }
6916 if ${jm_ac_cv_header_stdint_h+:} false; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h.  */
6921 #include <sys/types.h>
6922 #include <stdint.h>
6923 int
6924 main ()
6925 {
6926 uintmax_t i = (uintmax_t) -1;
6927   ;
6928   return 0;
6929 }
6930 _ACEOF
6931 if ac_fn_c_try_compile "$LINENO"; then :
6932   jm_ac_cv_header_stdint_h=yes
6933 else
6934   jm_ac_cv_header_stdint_h=no
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6939 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6940   if test $jm_ac_cv_header_stdint_h = yes; then
6941
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_STDINT_H_WITH_UINTMAX 1
6944 _ACEOF
6945
6946   fi
6947
6948
6949
6950
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6952 $as_echo_n "checking for intmax_t... " >&6; }
6953 if ${gt_cv_c_intmax_t+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958
6959 #include <stddef.h>
6960 #include <stdlib.h>
6961 #if HAVE_STDINT_H_WITH_UINTMAX
6962 #include <stdint.h>
6963 #endif
6964 #if HAVE_INTTYPES_H_WITH_UINTMAX
6965 #include <inttypes.h>
6966 #endif
6967
6968 int
6969 main ()
6970 {
6971 intmax_t x = -1;
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977   gt_cv_c_intmax_t=yes
6978 else
6979   gt_cv_c_intmax_t=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6984 $as_echo "$gt_cv_c_intmax_t" >&6; }
6985   if test $gt_cv_c_intmax_t = yes; then
6986
6987 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6988
6989   fi
6990
6991
6992
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6994 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6995 if ${gt_cv_func_printf_posix+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998
6999       if test "$cross_compiling" = yes; then :
7000
7001         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003
7004 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7005   notposix
7006 #endif
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010   $EGREP "notposix" >/dev/null 2>&1; then :
7011   gt_cv_func_printf_posix="guessing no"
7012 else
7013   gt_cv_func_printf_posix="guessing yes"
7014 fi
7015 rm -f conftest*
7016
7017
7018 else
7019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h.  */
7021
7022 #include <stdio.h>
7023 #include <string.h>
7024 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7025    dollar expansion (possibly an autoconf bug).  */
7026 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7027 static char buf[100];
7028 int main ()
7029 {
7030   sprintf (buf, format, 33, 55);
7031   return (strcmp (buf, "55 33") != 0);
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_run "$LINENO"; then :
7035   gt_cv_func_printf_posix=yes
7036 else
7037   gt_cv_func_printf_posix=no
7038 fi
7039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7040   conftest.$ac_objext conftest.beam conftest.$ac_ext
7041 fi
7042
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7046 $as_echo "$gt_cv_func_printf_posix" >&6; }
7047   case $gt_cv_func_printf_posix in
7048     *yes)
7049
7050 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7051
7052       ;;
7053   esac
7054
7055 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7056 # for constant arguments.  Useless!
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7058 $as_echo_n "checking for working alloca.h... " >&6; }
7059 if ${ac_cv_working_alloca_h+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064 #include <alloca.h>
7065 int
7066 main ()
7067 {
7068 char *p = (char *) alloca (2 * sizeof (int));
7069                           if (p) return 0;
7070   ;
7071   return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_link "$LINENO"; then :
7075   ac_cv_working_alloca_h=yes
7076 else
7077   ac_cv_working_alloca_h=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext \
7080     conftest$ac_exeext conftest.$ac_ext
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7083 $as_echo "$ac_cv_working_alloca_h" >&6; }
7084 if test $ac_cv_working_alloca_h = yes; then
7085
7086 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7087
7088 fi
7089
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7091 $as_echo_n "checking for alloca... " >&6; }
7092 if ${ac_cv_func_alloca_works+:} false; then :
7093   $as_echo_n "(cached) " >&6
7094 else
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #ifdef __GNUC__
7098 # define alloca __builtin_alloca
7099 #else
7100 # ifdef _MSC_VER
7101 #  include <malloc.h>
7102 #  define alloca _alloca
7103 # else
7104 #  ifdef HAVE_ALLOCA_H
7105 #   include <alloca.h>
7106 #  else
7107 #   ifdef _AIX
7108  #pragma alloca
7109 #   else
7110 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7111 void *alloca (size_t);
7112 #    endif
7113 #   endif
7114 #  endif
7115 # endif
7116 #endif
7117
7118 int
7119 main ()
7120 {
7121 char *p = (char *) alloca (1);
7122                                     if (p) return 0;
7123   ;
7124   return 0;
7125 }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128   ac_cv_func_alloca_works=yes
7129 else
7130   ac_cv_func_alloca_works=no
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext \
7133     conftest$ac_exeext conftest.$ac_ext
7134 fi
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7136 $as_echo "$ac_cv_func_alloca_works" >&6; }
7137
7138 if test $ac_cv_func_alloca_works = yes; then
7139
7140 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7141
7142 else
7143   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7144 # that cause trouble.  Some versions do not even contain alloca or
7145 # contain a buggy version.  If you still want to use their alloca,
7146 # use ar to extract alloca.o from them instead of compiling alloca.c.
7147
7148 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7149
7150 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7151
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7154 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7155 if ${ac_cv_os_cray+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 #if defined CRAY && ! defined CRAY2
7161 webecray
7162 #else
7163 wenotbecray
7164 #endif
7165
7166 _ACEOF
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168   $EGREP "webecray" >/dev/null 2>&1; then :
7169   ac_cv_os_cray=yes
7170 else
7171   ac_cv_os_cray=no
7172 fi
7173 rm -f conftest*
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7177 $as_echo "$ac_cv_os_cray" >&6; }
7178 if test $ac_cv_os_cray = yes; then
7179   for ac_func in _getb67 GETB67 getb67; do
7180     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7182 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7183
7184 cat >>confdefs.h <<_ACEOF
7185 #define CRAY_STACKSEG_END $ac_func
7186 _ACEOF
7187
7188     break
7189 fi
7190
7191   done
7192 fi
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7195 $as_echo_n "checking stack direction for C alloca... " >&6; }
7196 if ${ac_cv_c_stack_direction+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if test "$cross_compiling" = yes; then :
7200   ac_cv_c_stack_direction=0
7201 else
7202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h.  */
7204 $ac_includes_default
7205 int
7206 find_stack_direction (int *addr, int depth)
7207 {
7208   int dir, dummy = 0;
7209   if (! addr)
7210     addr = &dummy;
7211   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7212   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7213   return dir + dummy;
7214 }
7215
7216 int
7217 main (int argc, char **argv)
7218 {
7219   return find_stack_direction (0, argc + !argv + 20) < 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_run "$LINENO"; then :
7223   ac_cv_c_stack_direction=1
7224 else
7225   ac_cv_c_stack_direction=-1
7226 fi
7227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7228   conftest.$ac_objext conftest.beam conftest.$ac_ext
7229 fi
7230
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7233 $as_echo "$ac_cv_c_stack_direction" >&6; }
7234 cat >>confdefs.h <<_ACEOF
7235 #define STACK_DIRECTION $ac_cv_c_stack_direction
7236 _ACEOF
7237
7238
7239 fi
7240
7241
7242
7243
7244   for ac_header in $ac_header_list
7245 do :
7246   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7248 "
7249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7250   cat >>confdefs.h <<_ACEOF
7251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252 _ACEOF
7253
7254 fi
7255
7256 done
7257
7258
7259
7260
7261
7262
7263
7264
7265 for ac_func in getpagesize
7266 do :
7267   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7268 if test "x$ac_cv_func_getpagesize" = xyes; then :
7269   cat >>confdefs.h <<_ACEOF
7270 #define HAVE_GETPAGESIZE 1
7271 _ACEOF
7272
7273 fi
7274 done
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7277 $as_echo_n "checking for working mmap... " >&6; }
7278 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   if test "$cross_compiling" = yes; then :
7282   ac_cv_func_mmap_fixed_mapped=no
7283 else
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 $ac_includes_default
7287 /* malloc might have been renamed as rpl_malloc. */
7288 #undef malloc
7289
7290 /* Thanks to Mike Haertel and Jim Avera for this test.
7291    Here is a matrix of mmap possibilities:
7292         mmap private not fixed
7293         mmap private fixed at somewhere currently unmapped
7294         mmap private fixed at somewhere already mapped
7295         mmap shared not fixed
7296         mmap shared fixed at somewhere currently unmapped
7297         mmap shared fixed at somewhere already mapped
7298    For private mappings, we should verify that changes cannot be read()
7299    back from the file, nor mmap's back from the file at a different
7300    address.  (There have been systems where private was not correctly
7301    implemented like the infamous i386 svr4.0, and systems where the
7302    VM page cache was not coherent with the file system buffer cache
7303    like early versions of FreeBSD and possibly contemporary NetBSD.)
7304    For shared mappings, we should conversely verify that changes get
7305    propagated back to all the places they're supposed to be.
7306
7307    Grep wants private fixed already mapped.
7308    The main things grep needs to know about mmap are:
7309    * does it exist and is it safe to write into the mmap'd area
7310    * how to use it (BSD variants)  */
7311
7312 #include <fcntl.h>
7313 #include <sys/mman.h>
7314
7315 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7316 char *malloc ();
7317 #endif
7318
7319 /* This mess was copied from the GNU getpagesize.h.  */
7320 #ifndef HAVE_GETPAGESIZE
7321 # ifdef _SC_PAGESIZE
7322 #  define getpagesize() sysconf(_SC_PAGESIZE)
7323 # else /* no _SC_PAGESIZE */
7324 #  ifdef HAVE_SYS_PARAM_H
7325 #   include <sys/param.h>
7326 #   ifdef EXEC_PAGESIZE
7327 #    define getpagesize() EXEC_PAGESIZE
7328 #   else /* no EXEC_PAGESIZE */
7329 #    ifdef NBPG
7330 #     define getpagesize() NBPG * CLSIZE
7331 #     ifndef CLSIZE
7332 #      define CLSIZE 1
7333 #     endif /* no CLSIZE */
7334 #    else /* no NBPG */
7335 #     ifdef NBPC
7336 #      define getpagesize() NBPC
7337 #     else /* no NBPC */
7338 #      ifdef PAGESIZE
7339 #       define getpagesize() PAGESIZE
7340 #      endif /* PAGESIZE */
7341 #     endif /* no NBPC */
7342 #    endif /* no NBPG */
7343 #   endif /* no EXEC_PAGESIZE */
7344 #  else /* no HAVE_SYS_PARAM_H */
7345 #   define getpagesize() 8192   /* punt totally */
7346 #  endif /* no HAVE_SYS_PARAM_H */
7347 # endif /* no _SC_PAGESIZE */
7348
7349 #endif /* no HAVE_GETPAGESIZE */
7350
7351 int
7352 main ()
7353 {
7354   char *data, *data2, *data3;
7355   const char *cdata2;
7356   int i, pagesize;
7357   int fd, fd2;
7358
7359   pagesize = getpagesize ();
7360
7361   /* First, make a file with some known garbage in it. */
7362   data = (char *) malloc (pagesize);
7363   if (!data)
7364     return 1;
7365   for (i = 0; i < pagesize; ++i)
7366     *(data + i) = rand ();
7367   umask (0);
7368   fd = creat ("conftest.mmap", 0600);
7369   if (fd < 0)
7370     return 2;
7371   if (write (fd, data, pagesize) != pagesize)
7372     return 3;
7373   close (fd);
7374
7375   /* Next, check that the tail of a page is zero-filled.  File must have
7376      non-zero length, otherwise we risk SIGBUS for entire page.  */
7377   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7378   if (fd2 < 0)
7379     return 4;
7380   cdata2 = "";
7381   if (write (fd2, cdata2, 1) != 1)
7382     return 5;
7383   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7384   if (data2 == MAP_FAILED)
7385     return 6;
7386   for (i = 0; i < pagesize; ++i)
7387     if (*(data2 + i))
7388       return 7;
7389   close (fd2);
7390   if (munmap (data2, pagesize))
7391     return 8;
7392
7393   /* Next, try to mmap the file at a fixed address which already has
7394      something else allocated at it.  If we can, also make sure that
7395      we see the same garbage.  */
7396   fd = open ("conftest.mmap", O_RDWR);
7397   if (fd < 0)
7398     return 9;
7399   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7400                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7401     return 10;
7402   for (i = 0; i < pagesize; ++i)
7403     if (*(data + i) != *(data2 + i))
7404       return 11;
7405
7406   /* Finally, make sure that changes to the mapped area do not
7407      percolate back to the file as seen by read().  (This is a bug on
7408      some variants of i386 svr4.0.)  */
7409   for (i = 0; i < pagesize; ++i)
7410     *(data2 + i) = *(data2 + i) + 1;
7411   data3 = (char *) malloc (pagesize);
7412   if (!data3)
7413     return 12;
7414   if (read (fd, data3, pagesize) != pagesize)
7415     return 13;
7416   for (i = 0; i < pagesize; ++i)
7417     if (*(data + i) != *(data3 + i))
7418       return 14;
7419   close (fd);
7420   return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_run "$LINENO"; then :
7424   ac_cv_func_mmap_fixed_mapped=yes
7425 else
7426   ac_cv_func_mmap_fixed_mapped=no
7427 fi
7428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7429   conftest.$ac_objext conftest.beam conftest.$ac_ext
7430 fi
7431
7432 fi
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7434 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7436
7437 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7438
7439 fi
7440 rm -f conftest.mmap conftest.txt
7441
7442
7443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7444 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7445 if ${ac_cv_gnu_library_2_1+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h.  */
7450
7451 #include <features.h>
7452 #ifdef __GNU_LIBRARY__
7453  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7454   Lucky GNU user
7455  #endif
7456 #endif
7457
7458 _ACEOF
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7461   ac_cv_gnu_library_2_1=yes
7462 else
7463   ac_cv_gnu_library_2_1=no
7464 fi
7465 rm -f conftest*
7466
7467
7468
7469 fi
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7471 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7472
7473     GLIBC21="$ac_cv_gnu_library_2_1"
7474
7475
7476
7477
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7479 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7480 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483
7484       if test "$cross_compiling" = yes; then :
7485
7486           # Guess based on the CPU.
7487           case "$host_cpu" in
7488             alpha* | i3456786 | m68k | s390*)
7489               gt_cv_int_divbyzero_sigfpe="guessing yes";;
7490             *)
7491               gt_cv_int_divbyzero_sigfpe="guessing no";;
7492           esac
7493
7494 else
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497
7498 #include <stdlib.h>
7499 #include <signal.h>
7500
7501 static void
7502 #ifdef __cplusplus
7503 sigfpe_handler (int sig)
7504 #else
7505 sigfpe_handler (sig) int sig;
7506 #endif
7507 {
7508   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7509   exit (sig != SIGFPE);
7510 }
7511
7512 int x = 1;
7513 int y = 0;
7514 int z;
7515 int nan;
7516
7517 int main ()
7518 {
7519   signal (SIGFPE, sigfpe_handler);
7520 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7521 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7522   signal (SIGTRAP, sigfpe_handler);
7523 #endif
7524 /* Linux/SPARC yields signal SIGILL.  */
7525 #if defined (__sparc__) && defined (__linux__)
7526   signal (SIGILL, sigfpe_handler);
7527 #endif
7528
7529   z = x / y;
7530   nan = y / y;
7531   exit (1);
7532 }
7533
7534 _ACEOF
7535 if ac_fn_c_try_run "$LINENO"; then :
7536   gt_cv_int_divbyzero_sigfpe=yes
7537 else
7538   gt_cv_int_divbyzero_sigfpe=no
7539 fi
7540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7541   conftest.$ac_objext conftest.beam conftest.$ac_ext
7542 fi
7543
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7547 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7548   case "$gt_cv_int_divbyzero_sigfpe" in
7549     *yes) value=1;;
7550     *) value=0;;
7551   esac
7552
7553 cat >>confdefs.h <<_ACEOF
7554 #define INTDIV0_RAISES_SIGFPE $value
7555 _ACEOF
7556
7557
7558
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7560 $as_echo_n "checking for unsigned long long... " >&6; }
7561 if ${ac_cv_type_unsigned_long_long+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h.  */
7566 unsigned long long ull = 1ULL; int i = 63;
7567 int
7568 main ()
7569 {
7570 unsigned long long ullmax = (unsigned long long) -1;
7571      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"; then :
7577   ac_cv_type_unsigned_long_long=yes
7578 else
7579   ac_cv_type_unsigned_long_long=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext \
7582     conftest$ac_exeext conftest.$ac_ext
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7585 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7586   if test $ac_cv_type_unsigned_long_long = yes; then
7587
7588 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7589
7590   fi
7591
7592
7593
7594
7595   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7596
7597     test $ac_cv_type_unsigned_long_long = yes \
7598       && ac_type='unsigned long long' \
7599       || ac_type='unsigned long'
7600
7601 cat >>confdefs.h <<_ACEOF
7602 #define uintmax_t $ac_type
7603 _ACEOF
7604
7605   else
7606
7607 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7608
7609   fi
7610
7611
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7613 $as_echo_n "checking for inttypes.h... " >&6; }
7614 if ${gt_cv_header_inttypes_h+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617
7618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620 #include <sys/types.h>
7621 #include <inttypes.h>
7622 int
7623 main ()
7624 {
7625
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631   gt_cv_header_inttypes_h=yes
7632 else
7633   gt_cv_header_inttypes_h=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7639 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7640   if test $gt_cv_header_inttypes_h = yes; then
7641
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_INTTYPES_H 1
7644 _ACEOF
7645
7646   fi
7647
7648
7649
7650   if test $gt_cv_header_inttypes_h = yes; then
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7652 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7653 if ${gt_cv_inttypes_pri_broken+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656
7657         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h.  */
7659 #include <inttypes.h>
7660 #ifdef PRId32
7661 char *p = PRId32;
7662 #endif
7663
7664 int
7665 main ()
7666 {
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673   gt_cv_inttypes_pri_broken=no
7674 else
7675   gt_cv_inttypes_pri_broken=yes
7676 fi
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7681 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7682   fi
7683   if test "$gt_cv_inttypes_pri_broken" = yes; then
7684
7685 cat >>confdefs.h <<_ACEOF
7686 #define PRI_MACROS_BROKEN 1
7687 _ACEOF
7688
7689   fi
7690
7691
7692   for ac_header in stdint.h
7693 do :
7694   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7695 if test "x$ac_cv_header_stdint_h" = xyes; then :
7696   cat >>confdefs.h <<_ACEOF
7697 #define HAVE_STDINT_H 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7705 $as_echo_n "checking for SIZE_MAX... " >&6; }
7706   result=
7707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h.  */
7709
7710 #include <limits.h>
7711 #if HAVE_STDINT_H
7712 #include <stdint.h>
7713 #endif
7714 #ifdef SIZE_MAX
7715 Found it
7716 #endif
7717
7718 _ACEOF
7719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7720   $EGREP "Found it" >/dev/null 2>&1; then :
7721   result=yes
7722 fi
7723 rm -f conftest*
7724
7725   if test -z "$result"; then
7726                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
7727
7728 else
7729   result=?
7730 fi
7731
7732
7733     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
7734
7735 else
7736   result=?
7737 fi
7738
7739
7740     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
7741
7742 else
7743   result=?
7744 fi
7745
7746
7747     if test "$fits_in_uint" = 1; then
7748                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750 #include <stddef.h>
7751         extern size_t foo;
7752         extern unsigned long foo;
7753
7754 int
7755 main ()
7756 {
7757
7758   ;
7759   return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763   fits_in_uint=0
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766     fi
7767     if test -z "$result"; then
7768       if test "$fits_in_uint" = 1; then
7769         result="$res_hi$res_lo"U
7770       else
7771         result="$res_hi$res_lo"UL
7772       fi
7773     else
7774             result='~(size_t)0'
7775     fi
7776   fi
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7778 $as_echo "$result" >&6; }
7779   if test "$result" != yes; then
7780
7781 cat >>confdefs.h <<_ACEOF
7782 #define SIZE_MAX $result
7783 _ACEOF
7784
7785   fi
7786
7787
7788
7789   for ac_header in stdint.h
7790 do :
7791   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7792 if test "x$ac_cv_header_stdint_h" = xyes; then :
7793   cat >>confdefs.h <<_ACEOF
7794 #define HAVE_STDINT_H 1
7795 _ACEOF
7796
7797 fi
7798
7799 done
7800
7801
7802
7803       if test "X$prefix" = "XNONE"; then
7804     acl_final_prefix="$ac_default_prefix"
7805   else
7806     acl_final_prefix="$prefix"
7807   fi
7808   if test "X$exec_prefix" = "XNONE"; then
7809     acl_final_exec_prefix='${prefix}'
7810   else
7811     acl_final_exec_prefix="$exec_prefix"
7812   fi
7813   acl_save_prefix="$prefix"
7814   prefix="$acl_final_prefix"
7815   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7816   prefix="$acl_save_prefix"
7817
7818
7819 # Check whether --with-gnu-ld was given.
7820 if test "${with_gnu_ld+set}" = set; then :
7821   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7822 else
7823   with_gnu_ld=no
7824 fi
7825
7826 # Prepare PATH_SEPARATOR.
7827 # The user is always right.
7828 if test "${PATH_SEPARATOR+set}" != set; then
7829   echo "#! /bin/sh" >conf$$.sh
7830   echo  "exit 0"   >>conf$$.sh
7831   chmod +x conf$$.sh
7832   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7833     PATH_SEPARATOR=';'
7834   else
7835     PATH_SEPARATOR=:
7836   fi
7837   rm -f conf$$.sh
7838 fi
7839 ac_prog=ld
7840 if test "$GCC" = yes; then
7841   # Check if gcc -print-prog-name=ld gives a path.
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7843 $as_echo_n "checking for ld used by GCC... " >&6; }
7844   case $host in
7845   *-*-mingw*)
7846     # gcc leaves a trailing carriage return which upsets mingw
7847     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7848   *)
7849     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7850   esac
7851   case $ac_prog in
7852     # Accept absolute paths.
7853     [\\/]* | [A-Za-z]:[\\/]*)
7854       re_direlt='/[^/][^/]*/\.\./'
7855       # Canonicalize the path of ld
7856       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7857       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7858         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7859       done
7860       test -z "$LD" && LD="$ac_prog"
7861       ;;
7862   "")
7863     # If it fails, then pretend we aren't using GCC.
7864     ac_prog=ld
7865     ;;
7866   *)
7867     # If it is relative, then search for the first ld in PATH.
7868     with_gnu_ld=unknown
7869     ;;
7870   esac
7871 elif test "$with_gnu_ld" = yes; then
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7873 $as_echo_n "checking for GNU ld... " >&6; }
7874 else
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7876 $as_echo_n "checking for non-GNU ld... " >&6; }
7877 fi
7878 if ${acl_cv_path_LD+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   if test -z "$LD"; then
7882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7883   for ac_dir in $PATH; do
7884     test -z "$ac_dir" && ac_dir=.
7885     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7886       acl_cv_path_LD="$ac_dir/$ac_prog"
7887       # Check to see if the program is GNU ld.  I'd rather use --version,
7888       # but apparently some GNU ld's only accept -v.
7889       # Break only if it was the GNU/non-GNU ld that we prefer.
7890       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7891       *GNU* | *'with BFD'*)
7892         test "$with_gnu_ld" != no && break ;;
7893       *)
7894         test "$with_gnu_ld" != yes && break ;;
7895       esac
7896     fi
7897   done
7898   IFS="$ac_save_ifs"
7899 else
7900   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7901 fi
7902 fi
7903
7904 LD="$acl_cv_path_LD"
7905 if test -n "$LD"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7907 $as_echo "$LD" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7915 if ${acl_cv_prog_gnu_ld+:} false; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7919 case `$LD -v 2>&1 </dev/null` in
7920 *GNU* | *'with BFD'*)
7921   acl_cv_prog_gnu_ld=yes ;;
7922 *)
7923   acl_cv_prog_gnu_ld=no ;;
7924 esac
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7927 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7928 with_gnu_ld=$acl_cv_prog_gnu_ld
7929
7930
7931
7932                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7933 $as_echo_n "checking for shared library run path origin... " >&6; }
7934 if ${acl_cv_rpath+:} false; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937
7938     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7939     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7940     . ./conftest.sh
7941     rm -f ./conftest.sh
7942     acl_cv_rpath=done
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7946 $as_echo "$acl_cv_rpath" >&6; }
7947   wl="$acl_cv_wl"
7948   libext="$acl_cv_libext"
7949   shlibext="$acl_cv_shlibext"
7950   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7951   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7952   hardcode_direct="$acl_cv_hardcode_direct"
7953   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7954     # Check whether --enable-rpath was given.
7955 if test "${enable_rpath+set}" = set; then :
7956   enableval=$enable_rpath; :
7957 else
7958   enable_rpath=yes
7959 fi
7960
7961
7962
7963
7964
7965
7966
7967
7968     use_additional=yes
7969
7970   acl_save_prefix="$prefix"
7971   prefix="$acl_final_prefix"
7972   acl_save_exec_prefix="$exec_prefix"
7973   exec_prefix="$acl_final_exec_prefix"
7974
7975     eval additional_includedir=\"$includedir\"
7976     eval additional_libdir=\"$libdir\"
7977
7978   exec_prefix="$acl_save_exec_prefix"
7979   prefix="$acl_save_prefix"
7980
7981
7982 # Check whether --with-libiconv-prefix was given.
7983 if test "${with_libiconv_prefix+set}" = set; then :
7984   withval=$with_libiconv_prefix;
7985     if test "X$withval" = "Xno"; then
7986       use_additional=no
7987     else
7988       if test "X$withval" = "X"; then
7989
7990   acl_save_prefix="$prefix"
7991   prefix="$acl_final_prefix"
7992   acl_save_exec_prefix="$exec_prefix"
7993   exec_prefix="$acl_final_exec_prefix"
7994
7995           eval additional_includedir=\"$includedir\"
7996           eval additional_libdir=\"$libdir\"
7997
7998   exec_prefix="$acl_save_exec_prefix"
7999   prefix="$acl_save_prefix"
8000
8001       else
8002         additional_includedir="$withval/include"
8003         additional_libdir="$withval/lib"
8004       fi
8005     fi
8006
8007 fi
8008
8009       LIBICONV=
8010   LTLIBICONV=
8011   INCICONV=
8012   rpathdirs=
8013   ltrpathdirs=
8014   names_already_handled=
8015   names_next_round='iconv '
8016   while test -n "$names_next_round"; do
8017     names_this_round="$names_next_round"
8018     names_next_round=
8019     for name in $names_this_round; do
8020       already_handled=
8021       for n in $names_already_handled; do
8022         if test "$n" = "$name"; then
8023           already_handled=yes
8024           break
8025         fi
8026       done
8027       if test -z "$already_handled"; then
8028         names_already_handled="$names_already_handled $name"
8029                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8030         eval value=\"\$HAVE_LIB$uppername\"
8031         if test -n "$value"; then
8032           if test "$value" = yes; then
8033             eval value=\"\$LIB$uppername\"
8034             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8035             eval value=\"\$LTLIB$uppername\"
8036             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8037           else
8038                                     :
8039           fi
8040         else
8041                               found_dir=
8042           found_la=
8043           found_so=
8044           found_a=
8045           if test $use_additional = yes; then
8046             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8047               found_dir="$additional_libdir"
8048               found_so="$additional_libdir/lib$name.$shlibext"
8049               if test -f "$additional_libdir/lib$name.la"; then
8050                 found_la="$additional_libdir/lib$name.la"
8051               fi
8052             else
8053               if test -f "$additional_libdir/lib$name.$libext"; then
8054                 found_dir="$additional_libdir"
8055                 found_a="$additional_libdir/lib$name.$libext"
8056                 if test -f "$additional_libdir/lib$name.la"; then
8057                   found_la="$additional_libdir/lib$name.la"
8058                 fi
8059               fi
8060             fi
8061           fi
8062           if test "X$found_dir" = "X"; then
8063             for x in $LDFLAGS $LTLIBICONV; do
8064
8065   acl_save_prefix="$prefix"
8066   prefix="$acl_final_prefix"
8067   acl_save_exec_prefix="$exec_prefix"
8068   exec_prefix="$acl_final_exec_prefix"
8069   eval x=\"$x\"
8070   exec_prefix="$acl_save_exec_prefix"
8071   prefix="$acl_save_prefix"
8072
8073               case "$x" in
8074                 -L*)
8075                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8076                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8077                     found_dir="$dir"
8078                     found_so="$dir/lib$name.$shlibext"
8079                     if test -f "$dir/lib$name.la"; then
8080                       found_la="$dir/lib$name.la"
8081                     fi
8082                   else
8083                     if test -f "$dir/lib$name.$libext"; then
8084                       found_dir="$dir"
8085                       found_a="$dir/lib$name.$libext"
8086                       if test -f "$dir/lib$name.la"; then
8087                         found_la="$dir/lib$name.la"
8088                       fi
8089                     fi
8090                   fi
8091                   ;;
8092               esac
8093               if test "X$found_dir" != "X"; then
8094                 break
8095               fi
8096             done
8097           fi
8098           if test "X$found_dir" != "X"; then
8099                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8100             if test "X$found_so" != "X"; then
8101                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8102                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8103               else
8104                                                                                 haveit=
8105                 for x in $ltrpathdirs; do
8106                   if test "X$x" = "X$found_dir"; then
8107                     haveit=yes
8108                     break
8109                   fi
8110                 done
8111                 if test -z "$haveit"; then
8112                   ltrpathdirs="$ltrpathdirs $found_dir"
8113                 fi
8114                                 if test "$hardcode_direct" = yes; then
8115                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8116                 else
8117                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8118                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8119                                                             haveit=
8120                     for x in $rpathdirs; do
8121                       if test "X$x" = "X$found_dir"; then
8122                         haveit=yes
8123                         break
8124                       fi
8125                     done
8126                     if test -z "$haveit"; then
8127                       rpathdirs="$rpathdirs $found_dir"
8128                     fi
8129                   else
8130                                                                                 haveit=
8131                     for x in $LDFLAGS $LIBICONV; do
8132
8133   acl_save_prefix="$prefix"
8134   prefix="$acl_final_prefix"
8135   acl_save_exec_prefix="$exec_prefix"
8136   exec_prefix="$acl_final_exec_prefix"
8137   eval x=\"$x\"
8138   exec_prefix="$acl_save_exec_prefix"
8139   prefix="$acl_save_prefix"
8140
8141                       if test "X$x" = "X-L$found_dir"; then
8142                         haveit=yes
8143                         break
8144                       fi
8145                     done
8146                     if test -z "$haveit"; then
8147                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8148                     fi
8149                     if test "$hardcode_minus_L" != no; then
8150                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8151                     else
8152                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8153                     fi
8154                   fi
8155                 fi
8156               fi
8157             else
8158               if test "X$found_a" != "X"; then
8159                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8160               else
8161                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8162               fi
8163             fi
8164                         additional_includedir=
8165             case "$found_dir" in
8166               */lib | */lib/)
8167                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8168                 additional_includedir="$basedir/include"
8169                 ;;
8170             esac
8171             if test "X$additional_includedir" != "X"; then
8172                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8173                 haveit=
8174                 if test "X$additional_includedir" = "X/usr/local/include"; then
8175                   if test -n "$GCC"; then
8176                     case $host_os in
8177                       linux*) haveit=yes;;
8178                     esac
8179                   fi
8180                 fi
8181                 if test -z "$haveit"; then
8182                   for x in $CPPFLAGS $INCICONV; do
8183
8184   acl_save_prefix="$prefix"
8185   prefix="$acl_final_prefix"
8186   acl_save_exec_prefix="$exec_prefix"
8187   exec_prefix="$acl_final_exec_prefix"
8188   eval x=\"$x\"
8189   exec_prefix="$acl_save_exec_prefix"
8190   prefix="$acl_save_prefix"
8191
8192                     if test "X$x" = "X-I$additional_includedir"; then
8193                       haveit=yes
8194                       break
8195                     fi
8196                   done
8197                   if test -z "$haveit"; then
8198                     if test -d "$additional_includedir"; then
8199                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8200                     fi
8201                   fi
8202                 fi
8203               fi
8204             fi
8205                         if test -n "$found_la"; then
8206                                                         save_libdir="$libdir"
8207               case "$found_la" in
8208                 */* | *\\*) . "$found_la" ;;
8209                 *) . "./$found_la" ;;
8210               esac
8211               libdir="$save_libdir"
8212                             for dep in $dependency_libs; do
8213                 case "$dep" in
8214                   -L*)
8215                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8216                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8217                       haveit=
8218                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8219                         if test -n "$GCC"; then
8220                           case $host_os in
8221                             linux*) haveit=yes;;
8222                           esac
8223                         fi
8224                       fi
8225                       if test -z "$haveit"; then
8226                         haveit=
8227                         for x in $LDFLAGS $LIBICONV; do
8228
8229   acl_save_prefix="$prefix"
8230   prefix="$acl_final_prefix"
8231   acl_save_exec_prefix="$exec_prefix"
8232   exec_prefix="$acl_final_exec_prefix"
8233   eval x=\"$x\"
8234   exec_prefix="$acl_save_exec_prefix"
8235   prefix="$acl_save_prefix"
8236
8237                           if test "X$x" = "X-L$additional_libdir"; then
8238                             haveit=yes
8239                             break
8240                           fi
8241                         done
8242                         if test -z "$haveit"; then
8243                           if test -d "$additional_libdir"; then
8244                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8245                           fi
8246                         fi
8247                         haveit=
8248                         for x in $LDFLAGS $LTLIBICONV; do
8249
8250   acl_save_prefix="$prefix"
8251   prefix="$acl_final_prefix"
8252   acl_save_exec_prefix="$exec_prefix"
8253   exec_prefix="$acl_final_exec_prefix"
8254   eval x=\"$x\"
8255   exec_prefix="$acl_save_exec_prefix"
8256   prefix="$acl_save_prefix"
8257
8258                           if test "X$x" = "X-L$additional_libdir"; then
8259                             haveit=yes
8260                             break
8261                           fi
8262                         done
8263                         if test -z "$haveit"; then
8264                           if test -d "$additional_libdir"; then
8265                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8266                           fi
8267                         fi
8268                       fi
8269                     fi
8270                     ;;
8271                   -R*)
8272                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8273                     if test "$enable_rpath" != no; then
8274                                                                   haveit=
8275                       for x in $rpathdirs; do
8276                         if test "X$x" = "X$dir"; then
8277                           haveit=yes
8278                           break
8279                         fi
8280                       done
8281                       if test -z "$haveit"; then
8282                         rpathdirs="$rpathdirs $dir"
8283                       fi
8284                                                                   haveit=
8285                       for x in $ltrpathdirs; do
8286                         if test "X$x" = "X$dir"; then
8287                           haveit=yes
8288                           break
8289                         fi
8290                       done
8291                       if test -z "$haveit"; then
8292                         ltrpathdirs="$ltrpathdirs $dir"
8293                       fi
8294                     fi
8295                     ;;
8296                   -l*)
8297                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8298                     ;;
8299                   *.la)
8300                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8301                     ;;
8302                   *)
8303                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8304                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8305                     ;;
8306                 esac
8307               done
8308             fi
8309           else
8310                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8311             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8312           fi
8313         fi
8314       fi
8315     done
8316   done
8317   if test "X$rpathdirs" != "X"; then
8318     if test -n "$hardcode_libdir_separator"; then
8319                         alldirs=
8320       for found_dir in $rpathdirs; do
8321         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8322       done
8323             acl_save_libdir="$libdir"
8324       libdir="$alldirs"
8325       eval flag=\"$hardcode_libdir_flag_spec\"
8326       libdir="$acl_save_libdir"
8327       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8328     else
8329             for found_dir in $rpathdirs; do
8330         acl_save_libdir="$libdir"
8331         libdir="$found_dir"
8332         eval flag=\"$hardcode_libdir_flag_spec\"
8333         libdir="$acl_save_libdir"
8334         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8335       done
8336     fi
8337   fi
8338   if test "X$ltrpathdirs" != "X"; then
8339             for found_dir in $ltrpathdirs; do
8340       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8341     done
8342   fi
8343
8344
8345
8346
8347
8348
8349
8350
8351   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8352 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8353
8354 else
8355
8356 $as_echo "#define ptrdiff_t long" >>confdefs.h
8357
8358
8359 fi
8360
8361   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8362 stdlib.h string.h unistd.h sys/param.h
8363 do :
8364   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8367   cat >>confdefs.h <<_ACEOF
8368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8369 _ACEOF
8370
8371 fi
8372
8373 done
8374
8375   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8376 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8377 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8378 __fsetlocking
8379 do :
8380   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8383   cat >>confdefs.h <<_ACEOF
8384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8385 _ACEOF
8386
8387 fi
8388 done
8389
8390
8391
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8393 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8394 if ${ac_cv_have_decl__snprintf+:} false; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #include <stdio.h>
8400 int
8401 main ()
8402 {
8403
8404 #ifndef _snprintf
8405   char *p = (char *) _snprintf;
8406 #endif
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413   ac_cv_have_decl__snprintf=yes
8414 else
8415   ac_cv_have_decl__snprintf=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8420 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8421   if test $ac_cv_have_decl__snprintf = yes; then
8422     gt_value=1
8423   else
8424     gt_value=0
8425   fi
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL__SNPRINTF $gt_value
8429 _ACEOF
8430
8431
8432
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8434 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8435 if ${ac_cv_have_decl__snwprintf+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h.  */
8440 #include <stdio.h>
8441 int
8442 main ()
8443 {
8444
8445 #ifndef _snwprintf
8446   char *p = (char *) _snwprintf;
8447 #endif
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454   ac_cv_have_decl__snwprintf=yes
8455 else
8456   ac_cv_have_decl__snwprintf=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8461 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8462   if test $ac_cv_have_decl__snwprintf = yes; then
8463     gt_value=1
8464   else
8465     gt_value=0
8466   fi
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_DECL__SNWPRINTF $gt_value
8470 _ACEOF
8471
8472
8473
8474
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8476 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8477 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h.  */
8482 #include <stdio.h>
8483 int
8484 main ()
8485 {
8486
8487 #ifndef feof_unlocked
8488   char *p = (char *) feof_unlocked;
8489 #endif
8490
8491   ;
8492   return 0;
8493 }
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496   ac_cv_have_decl_feof_unlocked=yes
8497 else
8498   ac_cv_have_decl_feof_unlocked=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8503 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8504   if test $ac_cv_have_decl_feof_unlocked = yes; then
8505     gt_value=1
8506   else
8507     gt_value=0
8508   fi
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8512 _ACEOF
8513
8514
8515
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8517 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8518 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8519   $as_echo_n "(cached) " >&6
8520 else
8521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h.  */
8523 #include <stdio.h>
8524 int
8525 main ()
8526 {
8527
8528 #ifndef fgets_unlocked
8529   char *p = (char *) fgets_unlocked;
8530 #endif
8531
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537   ac_cv_have_decl_fgets_unlocked=yes
8538 else
8539   ac_cv_have_decl_fgets_unlocked=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8544 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8545   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8546     gt_value=1
8547   else
8548     gt_value=0
8549   fi
8550
8551 cat >>confdefs.h <<_ACEOF
8552 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8553 _ACEOF
8554
8555
8556
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8558 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8559 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h.  */
8564 #include <stdio.h>
8565 int
8566 main ()
8567 {
8568
8569 #ifndef getc_unlocked
8570   char *p = (char *) getc_unlocked;
8571 #endif
8572
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578   ac_cv_have_decl_getc_unlocked=yes
8579 else
8580   ac_cv_have_decl_getc_unlocked=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8585 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8586   if test $ac_cv_have_decl_getc_unlocked = yes; then
8587     gt_value=1
8588   else
8589     gt_value=0
8590   fi
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8594 _ACEOF
8595
8596
8597
8598   case $gt_cv_func_printf_posix in
8599     *yes) HAVE_POSIX_PRINTF=1 ;;
8600     *) HAVE_POSIX_PRINTF=0 ;;
8601   esac
8602
8603   if test "$ac_cv_func_asprintf" = yes; then
8604     HAVE_ASPRINTF=1
8605   else
8606     HAVE_ASPRINTF=0
8607   fi
8608
8609   if test "$ac_cv_func_snprintf" = yes; then
8610     HAVE_SNPRINTF=1
8611   else
8612     HAVE_SNPRINTF=0
8613   fi
8614
8615   if test "$ac_cv_func_wprintf" = yes; then
8616     HAVE_WPRINTF=1
8617   else
8618     HAVE_WPRINTF=0
8619   fi
8620
8621
8622
8623
8624
8625
8626
8627           am_save_CPPFLAGS="$CPPFLAGS"
8628
8629   for element in $INCICONV; do
8630     haveit=
8631     for x in $CPPFLAGS; do
8632
8633   acl_save_prefix="$prefix"
8634   prefix="$acl_final_prefix"
8635   acl_save_exec_prefix="$exec_prefix"
8636   exec_prefix="$acl_final_exec_prefix"
8637   eval x=\"$x\"
8638   exec_prefix="$acl_save_exec_prefix"
8639   prefix="$acl_save_prefix"
8640
8641       if test "X$x" = "X$element"; then
8642         haveit=yes
8643         break
8644       fi
8645     done
8646     if test -z "$haveit"; then
8647       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8648     fi
8649   done
8650
8651
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8653 $as_echo_n "checking for iconv... " >&6; }
8654 if ${am_cv_func_iconv+:} false; then :
8655   $as_echo_n "(cached) " >&6
8656 else
8657
8658     am_cv_func_iconv="no, consider installing GNU libiconv"
8659     am_cv_lib_iconv=no
8660     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h.  */
8662 #include <stdlib.h>
8663 #include <iconv.h>
8664 int
8665 main ()
8666 {
8667 iconv_t cd = iconv_open("","");
8668        iconv(cd,NULL,NULL,NULL,NULL);
8669        iconv_close(cd);
8670   ;
8671   return 0;
8672 }
8673 _ACEOF
8674 if ac_fn_c_try_link "$LINENO"; then :
8675   am_cv_func_iconv=yes
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext \
8678     conftest$ac_exeext conftest.$ac_ext
8679     if test "$am_cv_func_iconv" != yes; then
8680       am_save_LIBS="$LIBS"
8681       LIBS="$LIBS $LIBICONV"
8682       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h.  */
8684 #include <stdlib.h>
8685 #include <iconv.h>
8686 int
8687 main ()
8688 {
8689 iconv_t cd = iconv_open("","");
8690          iconv(cd,NULL,NULL,NULL,NULL);
8691          iconv_close(cd);
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_link "$LINENO"; then :
8697   am_cv_lib_iconv=yes
8698         am_cv_func_iconv=yes
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701     conftest$ac_exeext conftest.$ac_ext
8702       LIBS="$am_save_LIBS"
8703     fi
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8707 $as_echo "$am_cv_func_iconv" >&6; }
8708   if test "$am_cv_func_iconv" = yes; then
8709
8710 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8711
8712   fi
8713   if test "$am_cv_lib_iconv" = yes; then
8714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8715 $as_echo_n "checking how to link with libiconv... " >&6; }
8716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8717 $as_echo "$LIBICONV" >&6; }
8718   else
8719             CPPFLAGS="$am_save_CPPFLAGS"
8720     LIBICONV=
8721     LTLIBICONV=
8722   fi
8723
8724
8725
8726   if test "$am_cv_func_iconv" = yes; then
8727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8728 $as_echo_n "checking for iconv declaration... " >&6; }
8729     if ${am_cv_proto_iconv+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732
8733       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h.  */
8735
8736 #include <stdlib.h>
8737 #include <iconv.h>
8738 extern
8739 #ifdef __cplusplus
8740 "C"
8741 #endif
8742 #if defined(__STDC__) || defined(__cplusplus)
8743 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8744 #else
8745 size_t iconv();
8746 #endif
8747
8748 int
8749 main ()
8750 {
8751
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"; then :
8757   am_cv_proto_iconv_arg1=""
8758 else
8759   am_cv_proto_iconv_arg1="const"
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762       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);"
8763 fi
8764
8765     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8767          }$am_cv_proto_iconv" >&5
8768 $as_echo "${ac_t:-
8769          }$am_cv_proto_iconv" >&6; }
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define ICONV_CONST $am_cv_proto_iconv_arg1
8773 _ACEOF
8774
8775   fi
8776
8777
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8779 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8780 if ${am_cv_langinfo_codeset+:} false; then :
8781   $as_echo_n "(cached) " >&6
8782 else
8783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h.  */
8785 #include <langinfo.h>
8786 int
8787 main ()
8788 {
8789 char* cs = nl_langinfo(CODESET);
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795   am_cv_langinfo_codeset=yes
8796 else
8797   am_cv_langinfo_codeset=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext \
8800     conftest$ac_exeext conftest.$ac_ext
8801
8802 fi
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8804 $as_echo "$am_cv_langinfo_codeset" >&6; }
8805   if test $am_cv_langinfo_codeset = yes; then
8806
8807 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8808
8809   fi
8810
8811   if test $ac_cv_header_locale_h = yes; then
8812
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8814 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8815 if ${am_cv_val_LC_MESSAGES+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h.  */
8820 #include <locale.h>
8821 int
8822 main ()
8823 {
8824 return LC_MESSAGES
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_link "$LINENO"; then :
8830   am_cv_val_LC_MESSAGES=yes
8831 else
8832   am_cv_val_LC_MESSAGES=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835     conftest$ac_exeext conftest.$ac_ext
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8838 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8839   if test $am_cv_val_LC_MESSAGES = yes; then
8840
8841 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8842
8843   fi
8844
8845   fi
8846
8847                       for ac_prog in bison
8848 do
8849   # Extract the first word of "$ac_prog", so it can be a program name with args.
8850 set dummy $ac_prog; ac_word=$2
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 $as_echo_n "checking for $ac_word... " >&6; }
8853 if ${ac_cv_prog_INTLBISON+:} false; then :
8854   $as_echo_n "(cached) " >&6
8855 else
8856   if test -n "$INTLBISON"; then
8857   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8858 else
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862   IFS=$as_save_IFS
8863   test -z "$as_dir" && as_dir=.
8864     for ac_exec_ext in '' $ac_executable_extensions; do
8865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866     ac_cv_prog_INTLBISON="$ac_prog"
8867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868     break 2
8869   fi
8870 done
8871   done
8872 IFS=$as_save_IFS
8873
8874 fi
8875 fi
8876 INTLBISON=$ac_cv_prog_INTLBISON
8877 if test -n "$INTLBISON"; then
8878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8879 $as_echo "$INTLBISON" >&6; }
8880 else
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8883 fi
8884
8885
8886   test -n "$INTLBISON" && break
8887 done
8888
8889   if test -z "$INTLBISON"; then
8890     ac_verc_fail=yes
8891   else
8892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8893 $as_echo_n "checking version of bison... " >&6; }
8894     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8895     case $ac_prog_version in
8896       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8897       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8898          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8899       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8900     esac
8901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8902 $as_echo "$ac_prog_version" >&6; }
8903   fi
8904   if test $ac_verc_fail = yes; then
8905     INTLBISON=:
8906   fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8924 $as_echo_n "checking whether NLS is requested... " >&6; }
8925     # Check whether --enable-nls was given.
8926 if test "${enable_nls+set}" = set; then :
8927   enableval=$enable_nls; USE_NLS=$enableval
8928 else
8929   USE_NLS=yes
8930 fi
8931
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8933 $as_echo "$USE_NLS" >&6; }
8934
8935
8936
8937
8938     BUILD_INCLUDED_LIBINTL=no
8939     USE_INCLUDED_LIBINTL=no
8940
8941   LIBINTL=
8942   LTLIBINTL=
8943   POSUB=
8944
8945     if test "$USE_NLS" = "yes"; then
8946     gt_use_preinstalled_gnugettext=no
8947
8948       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8949 $as_echo_n "checking whether included gettext is requested... " >&6; }
8950
8951 # Check whether --with-included-gettext was given.
8952 if test "${with_included_gettext+set}" = set; then :
8953   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8954 else
8955   nls_cv_force_use_gnu_gettext=no
8956 fi
8957
8958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8959 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8960
8961       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8962       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8963
8964
8965
8966
8967
8968
8969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8970 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8971 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #include <libintl.h>
8977 extern int _nl_msg_cat_cntr;
8978 extern int *_nl_domain_bindings;
8979 int
8980 main ()
8981 {
8982 bindtextdomain ("", "");
8983 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 if ac_fn_c_try_link "$LINENO"; then :
8989   gt_cv_func_gnugettext1_libc=yes
8990 else
8991   gt_cv_func_gnugettext1_libc=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext \
8994     conftest$ac_exeext conftest.$ac_ext
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8997 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8998
8999         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9000
9001
9002
9003     use_additional=yes
9004
9005   acl_save_prefix="$prefix"
9006   prefix="$acl_final_prefix"
9007   acl_save_exec_prefix="$exec_prefix"
9008   exec_prefix="$acl_final_exec_prefix"
9009
9010     eval additional_includedir=\"$includedir\"
9011     eval additional_libdir=\"$libdir\"
9012
9013   exec_prefix="$acl_save_exec_prefix"
9014   prefix="$acl_save_prefix"
9015
9016
9017 # Check whether --with-libintl-prefix was given.
9018 if test "${with_libintl_prefix+set}" = set; then :
9019   withval=$with_libintl_prefix;
9020     if test "X$withval" = "Xno"; then
9021       use_additional=no
9022     else
9023       if test "X$withval" = "X"; then
9024
9025   acl_save_prefix="$prefix"
9026   prefix="$acl_final_prefix"
9027   acl_save_exec_prefix="$exec_prefix"
9028   exec_prefix="$acl_final_exec_prefix"
9029
9030           eval additional_includedir=\"$includedir\"
9031           eval additional_libdir=\"$libdir\"
9032
9033   exec_prefix="$acl_save_exec_prefix"
9034   prefix="$acl_save_prefix"
9035
9036       else
9037         additional_includedir="$withval/include"
9038         additional_libdir="$withval/lib"
9039       fi
9040     fi
9041
9042 fi
9043
9044       LIBINTL=
9045   LTLIBINTL=
9046   INCINTL=
9047   rpathdirs=
9048   ltrpathdirs=
9049   names_already_handled=
9050   names_next_round='intl '
9051   while test -n "$names_next_round"; do
9052     names_this_round="$names_next_round"
9053     names_next_round=
9054     for name in $names_this_round; do
9055       already_handled=
9056       for n in $names_already_handled; do
9057         if test "$n" = "$name"; then
9058           already_handled=yes
9059           break
9060         fi
9061       done
9062       if test -z "$already_handled"; then
9063         names_already_handled="$names_already_handled $name"
9064                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9065         eval value=\"\$HAVE_LIB$uppername\"
9066         if test -n "$value"; then
9067           if test "$value" = yes; then
9068             eval value=\"\$LIB$uppername\"
9069             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9070             eval value=\"\$LTLIB$uppername\"
9071             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9072           else
9073                                     :
9074           fi
9075         else
9076                               found_dir=
9077           found_la=
9078           found_so=
9079           found_a=
9080           if test $use_additional = yes; then
9081             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9082               found_dir="$additional_libdir"
9083               found_so="$additional_libdir/lib$name.$shlibext"
9084               if test -f "$additional_libdir/lib$name.la"; then
9085                 found_la="$additional_libdir/lib$name.la"
9086               fi
9087             else
9088               if test -f "$additional_libdir/lib$name.$libext"; then
9089                 found_dir="$additional_libdir"
9090                 found_a="$additional_libdir/lib$name.$libext"
9091                 if test -f "$additional_libdir/lib$name.la"; then
9092                   found_la="$additional_libdir/lib$name.la"
9093                 fi
9094               fi
9095             fi
9096           fi
9097           if test "X$found_dir" = "X"; then
9098             for x in $LDFLAGS $LTLIBINTL; do
9099
9100   acl_save_prefix="$prefix"
9101   prefix="$acl_final_prefix"
9102   acl_save_exec_prefix="$exec_prefix"
9103   exec_prefix="$acl_final_exec_prefix"
9104   eval x=\"$x\"
9105   exec_prefix="$acl_save_exec_prefix"
9106   prefix="$acl_save_prefix"
9107
9108               case "$x" in
9109                 -L*)
9110                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9111                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9112                     found_dir="$dir"
9113                     found_so="$dir/lib$name.$shlibext"
9114                     if test -f "$dir/lib$name.la"; then
9115                       found_la="$dir/lib$name.la"
9116                     fi
9117                   else
9118                     if test -f "$dir/lib$name.$libext"; then
9119                       found_dir="$dir"
9120                       found_a="$dir/lib$name.$libext"
9121                       if test -f "$dir/lib$name.la"; then
9122                         found_la="$dir/lib$name.la"
9123                       fi
9124                     fi
9125                   fi
9126                   ;;
9127               esac
9128               if test "X$found_dir" != "X"; then
9129                 break
9130               fi
9131             done
9132           fi
9133           if test "X$found_dir" != "X"; then
9134                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9135             if test "X$found_so" != "X"; then
9136                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9137                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9138               else
9139                                                                                 haveit=
9140                 for x in $ltrpathdirs; do
9141                   if test "X$x" = "X$found_dir"; then
9142                     haveit=yes
9143                     break
9144                   fi
9145                 done
9146                 if test -z "$haveit"; then
9147                   ltrpathdirs="$ltrpathdirs $found_dir"
9148                 fi
9149                                 if test "$hardcode_direct" = yes; then
9150                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9151                 else
9152                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9153                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9154                                                             haveit=
9155                     for x in $rpathdirs; do
9156                       if test "X$x" = "X$found_dir"; then
9157                         haveit=yes
9158                         break
9159                       fi
9160                     done
9161                     if test -z "$haveit"; then
9162                       rpathdirs="$rpathdirs $found_dir"
9163                     fi
9164                   else
9165                                                                                 haveit=
9166                     for x in $LDFLAGS $LIBINTL; do
9167
9168   acl_save_prefix="$prefix"
9169   prefix="$acl_final_prefix"
9170   acl_save_exec_prefix="$exec_prefix"
9171   exec_prefix="$acl_final_exec_prefix"
9172   eval x=\"$x\"
9173   exec_prefix="$acl_save_exec_prefix"
9174   prefix="$acl_save_prefix"
9175
9176                       if test "X$x" = "X-L$found_dir"; then
9177                         haveit=yes
9178                         break
9179                       fi
9180                     done
9181                     if test -z "$haveit"; then
9182                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9183                     fi
9184                     if test "$hardcode_minus_L" != no; then
9185                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9186                     else
9187                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9188                     fi
9189                   fi
9190                 fi
9191               fi
9192             else
9193               if test "X$found_a" != "X"; then
9194                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9195               else
9196                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9197               fi
9198             fi
9199                         additional_includedir=
9200             case "$found_dir" in
9201               */lib | */lib/)
9202                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9203                 additional_includedir="$basedir/include"
9204                 ;;
9205             esac
9206             if test "X$additional_includedir" != "X"; then
9207                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9208                 haveit=
9209                 if test "X$additional_includedir" = "X/usr/local/include"; then
9210                   if test -n "$GCC"; then
9211                     case $host_os in
9212                       linux*) haveit=yes;;
9213                     esac
9214                   fi
9215                 fi
9216                 if test -z "$haveit"; then
9217                   for x in $CPPFLAGS $INCINTL; do
9218
9219   acl_save_prefix="$prefix"
9220   prefix="$acl_final_prefix"
9221   acl_save_exec_prefix="$exec_prefix"
9222   exec_prefix="$acl_final_exec_prefix"
9223   eval x=\"$x\"
9224   exec_prefix="$acl_save_exec_prefix"
9225   prefix="$acl_save_prefix"
9226
9227                     if test "X$x" = "X-I$additional_includedir"; then
9228                       haveit=yes
9229                       break
9230                     fi
9231                   done
9232                   if test -z "$haveit"; then
9233                     if test -d "$additional_includedir"; then
9234                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9235                     fi
9236                   fi
9237                 fi
9238               fi
9239             fi
9240                         if test -n "$found_la"; then
9241                                                         save_libdir="$libdir"
9242               case "$found_la" in
9243                 */* | *\\*) . "$found_la" ;;
9244                 *) . "./$found_la" ;;
9245               esac
9246               libdir="$save_libdir"
9247                             for dep in $dependency_libs; do
9248                 case "$dep" in
9249                   -L*)
9250                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9251                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9252                       haveit=
9253                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9254                         if test -n "$GCC"; then
9255                           case $host_os in
9256                             linux*) haveit=yes;;
9257                           esac
9258                         fi
9259                       fi
9260                       if test -z "$haveit"; then
9261                         haveit=
9262                         for x in $LDFLAGS $LIBINTL; do
9263
9264   acl_save_prefix="$prefix"
9265   prefix="$acl_final_prefix"
9266   acl_save_exec_prefix="$exec_prefix"
9267   exec_prefix="$acl_final_exec_prefix"
9268   eval x=\"$x\"
9269   exec_prefix="$acl_save_exec_prefix"
9270   prefix="$acl_save_prefix"
9271
9272                           if test "X$x" = "X-L$additional_libdir"; then
9273                             haveit=yes
9274                             break
9275                           fi
9276                         done
9277                         if test -z "$haveit"; then
9278                           if test -d "$additional_libdir"; then
9279                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9280                           fi
9281                         fi
9282                         haveit=
9283                         for x in $LDFLAGS $LTLIBINTL; do
9284
9285   acl_save_prefix="$prefix"
9286   prefix="$acl_final_prefix"
9287   acl_save_exec_prefix="$exec_prefix"
9288   exec_prefix="$acl_final_exec_prefix"
9289   eval x=\"$x\"
9290   exec_prefix="$acl_save_exec_prefix"
9291   prefix="$acl_save_prefix"
9292
9293                           if test "X$x" = "X-L$additional_libdir"; then
9294                             haveit=yes
9295                             break
9296                           fi
9297                         done
9298                         if test -z "$haveit"; then
9299                           if test -d "$additional_libdir"; then
9300                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9301                           fi
9302                         fi
9303                       fi
9304                     fi
9305                     ;;
9306                   -R*)
9307                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9308                     if test "$enable_rpath" != no; then
9309                                                                   haveit=
9310                       for x in $rpathdirs; do
9311                         if test "X$x" = "X$dir"; then
9312                           haveit=yes
9313                           break
9314                         fi
9315                       done
9316                       if test -z "$haveit"; then
9317                         rpathdirs="$rpathdirs $dir"
9318                       fi
9319                                                                   haveit=
9320                       for x in $ltrpathdirs; do
9321                         if test "X$x" = "X$dir"; then
9322                           haveit=yes
9323                           break
9324                         fi
9325                       done
9326                       if test -z "$haveit"; then
9327                         ltrpathdirs="$ltrpathdirs $dir"
9328                       fi
9329                     fi
9330                     ;;
9331                   -l*)
9332                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9333                     ;;
9334                   *.la)
9335                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9336                     ;;
9337                   *)
9338                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9339                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9340                     ;;
9341                 esac
9342               done
9343             fi
9344           else
9345                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9346             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9347           fi
9348         fi
9349       fi
9350     done
9351   done
9352   if test "X$rpathdirs" != "X"; then
9353     if test -n "$hardcode_libdir_separator"; then
9354                         alldirs=
9355       for found_dir in $rpathdirs; do
9356         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9357       done
9358             acl_save_libdir="$libdir"
9359       libdir="$alldirs"
9360       eval flag=\"$hardcode_libdir_flag_spec\"
9361       libdir="$acl_save_libdir"
9362       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9363     else
9364             for found_dir in $rpathdirs; do
9365         acl_save_libdir="$libdir"
9366         libdir="$found_dir"
9367         eval flag=\"$hardcode_libdir_flag_spec\"
9368         libdir="$acl_save_libdir"
9369         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9370       done
9371     fi
9372   fi
9373   if test "X$ltrpathdirs" != "X"; then
9374             for found_dir in $ltrpathdirs; do
9375       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9376     done
9377   fi
9378
9379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9380 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9381 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   gt_save_CPPFLAGS="$CPPFLAGS"
9385             CPPFLAGS="$CPPFLAGS $INCINTL"
9386             gt_save_LIBS="$LIBS"
9387             LIBS="$LIBS $LIBINTL"
9388                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h.  */
9390 #include <libintl.h>
9391 extern int _nl_msg_cat_cntr;
9392 extern
9393 #ifdef __cplusplus
9394 "C"
9395 #endif
9396 const char *_nl_expand_alias ();
9397 int
9398 main ()
9399 {
9400 bindtextdomain ("", "");
9401 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9402   ;
9403   return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_link "$LINENO"; then :
9407   gt_cv_func_gnugettext1_libintl=yes
9408 else
9409   gt_cv_func_gnugettext1_libintl=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext \
9412     conftest$ac_exeext conftest.$ac_ext
9413                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9414               LIBS="$LIBS $LIBICONV"
9415               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h.  */
9417 #include <libintl.h>
9418 extern int _nl_msg_cat_cntr;
9419 extern
9420 #ifdef __cplusplus
9421 "C"
9422 #endif
9423 const char *_nl_expand_alias ();
9424 int
9425 main ()
9426 {
9427 bindtextdomain ("", "");
9428 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434   LIBINTL="$LIBINTL $LIBICONV"
9435                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9436                 gt_cv_func_gnugettext1_libintl=yes
9437
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext \
9440     conftest$ac_exeext conftest.$ac_ext
9441             fi
9442             CPPFLAGS="$gt_save_CPPFLAGS"
9443             LIBS="$gt_save_LIBS"
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9446 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9447         fi
9448
9449                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9450            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9451                 && test "$PACKAGE" != gettext-runtime \
9452                 && test "$PACKAGE" != gettext-tools; }; then
9453           gt_use_preinstalled_gnugettext=yes
9454         else
9455                     LIBINTL=
9456           LTLIBINTL=
9457           INCINTL=
9458         fi
9459
9460
9461         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9462                               nls_cv_use_gnu_gettext=yes
9463         fi
9464       fi
9465
9466       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9467                 BUILD_INCLUDED_LIBINTL=yes
9468         USE_INCLUDED_LIBINTL=yes
9469         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9470         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9471         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9472       fi
9473
9474       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9475          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9476                 CATOBJEXT=.gmo
9477       fi
9478
9479
9480     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9481        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9482
9483 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9484
9485     else
9486       USE_NLS=no
9487     fi
9488   fi
9489
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9491 $as_echo_n "checking whether to use NLS... " >&6; }
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9493 $as_echo "$USE_NLS" >&6; }
9494   if test "$USE_NLS" = "yes"; then
9495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9496 $as_echo_n "checking where the gettext function comes from... " >&6; }
9497     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9498       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9499         gt_source="external libintl"
9500       else
9501         gt_source="libc"
9502       fi
9503     else
9504       gt_source="included intl directory"
9505     fi
9506     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9507 $as_echo "$gt_source" >&6; }
9508   fi
9509
9510   if test "$USE_NLS" = "yes"; then
9511
9512     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9513       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9515 $as_echo_n "checking how to link with libintl... " >&6; }
9516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9517 $as_echo "$LIBINTL" >&6; }
9518
9519   for element in $INCINTL; do
9520     haveit=
9521     for x in $CPPFLAGS; do
9522
9523   acl_save_prefix="$prefix"
9524   prefix="$acl_final_prefix"
9525   acl_save_exec_prefix="$exec_prefix"
9526   exec_prefix="$acl_final_exec_prefix"
9527   eval x=\"$x\"
9528   exec_prefix="$acl_save_exec_prefix"
9529   prefix="$acl_save_prefix"
9530
9531       if test "X$x" = "X$element"; then
9532         haveit=yes
9533         break
9534       fi
9535     done
9536     if test -z "$haveit"; then
9537       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9538     fi
9539   done
9540
9541       fi
9542
9543
9544 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9545
9546
9547 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9548
9549     fi
9550
9551         POSUB=po
9552   fi
9553
9554
9555             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9556       BUILD_INCLUDED_LIBINTL=yes
9557     fi
9558
9559
9560
9561
9562
9563         nls_cv_header_intl=
9564     nls_cv_header_libgt=
9565
9566         DATADIRNAME=share
9567
9568
9569         INSTOBJEXT=.mo
9570
9571
9572         GENCAT=gencat
9573
9574
9575         if test "$USE_INCLUDED_LIBINTL" = yes; then
9576       INTLOBJS="\$(GETTOBJS)"
9577     fi
9578
9579
9580         INTL_LIBTOOL_SUFFIX_PREFIX=
9581
9582
9583
9584     INTLLIBS="$LIBINTL"
9585
9586
9587
9588
9589
9590
9591
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9594 set x ${MAKE-make}
9595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   cat >conftest.make <<\_ACEOF
9600 SHELL = /bin/sh
9601 all:
9602         @echo '@@@%%%=$(MAKE)=@@@%%%'
9603 _ACEOF
9604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9606   *@@@%%%=?*=@@@%%%*)
9607     eval ac_cv_prog_make_${ac_make}_set=yes;;
9608   *)
9609     eval ac_cv_prog_make_${ac_make}_set=no;;
9610 esac
9611 rm -f conftest.make
9612 fi
9613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9615 $as_echo "yes" >&6; }
9616   SET_MAKE=
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620   SET_MAKE="MAKE=${MAKE-make}"
9621 fi
9622
9623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9624 $as_echo_n "checking for GNU make... " >&6; }
9625 if ${_cv_gnu_make_command+:} false; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   _cv_gnu_make_command='' ;
9629                 for a in "$MAKE" make gmake gnumake ; do
9630                         if test -z "$a" ; then continue ; fi ;
9631                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
9632                                 _cv_gnu_make_command=$a ;
9633                                 break;
9634                         fi
9635                 done ;
9636
9637 fi
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9639 $as_echo "$_cv_gnu_make_command" >&6; } ;
9640         if test  "x$_cv_gnu_make_command" != "x"  ; then
9641                 ifGNUmake='' ;
9642                 ifNotGNUmake='#' ;
9643         else
9644                 ifGNUmake='#' ;
9645                 ifNotGNUmake='' ;
9646                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9647 $as_echo "\"Not found\"" >&6; };
9648         fi
9649
9650
9651
9652 # Extract the first word of "ln", so it can be a program name with args.
9653 set dummy ln; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if ${ac_cv_path_LN+:} false; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   case $LN in
9660   [\\/]* | ?:[\\/]*)
9661   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9662   ;;
9663   *)
9664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667   IFS=$as_save_IFS
9668   test -z "$as_dir" && as_dir=.
9669     for ac_exec_ext in '' $ac_executable_extensions; do
9670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673     break 2
9674   fi
9675 done
9676   done
9677 IFS=$as_save_IFS
9678
9679   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9680   ;;
9681 esac
9682 fi
9683 LN=$ac_cv_path_LN
9684 if test -n "$LN"; then
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9686 $as_echo "$LN" >&6; }
9687 else
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9690 fi
9691
9692
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9694 $as_echo_n "checking whether ln -s works... " >&6; }
9695 LN_S=$as_ln_s
9696 if test "$LN_S" = "ln -s"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9701 $as_echo "no, using $LN_S" >&6; }
9702 fi
9703
9704 # Extract the first word of "mv", so it can be a program name with args.
9705 set dummy mv; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if ${ac_cv_path_MV+:} false; then :
9709   $as_echo_n "(cached) " >&6
9710 else
9711   case $MV in
9712   [\\/]* | ?:[\\/]*)
9713   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9714   ;;
9715   *)
9716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 for as_dir in $PATH
9718 do
9719   IFS=$as_save_IFS
9720   test -z "$as_dir" && as_dir=.
9721     for ac_exec_ext in '' $ac_executable_extensions; do
9722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9725     break 2
9726   fi
9727 done
9728   done
9729 IFS=$as_save_IFS
9730
9731   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9732   ;;
9733 esac
9734 fi
9735 MV=$ac_cv_path_MV
9736 if test -n "$MV"; then
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9738 $as_echo "$MV" >&6; }
9739 else
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743
9744
9745 # Extract the first word of "cp", so it can be a program name with args.
9746 set dummy cp; ac_word=$2
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748 $as_echo_n "checking for $ac_word... " >&6; }
9749 if ${ac_cv_path_CP+:} false; then :
9750   $as_echo_n "(cached) " >&6
9751 else
9752   case $CP in
9753   [\\/]* | ?:[\\/]*)
9754   ac_cv_path_CP="$CP" # Let the user override the test with a path.
9755   ;;
9756   *)
9757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758 for as_dir in $PATH
9759 do
9760   IFS=$as_save_IFS
9761   test -z "$as_dir" && as_dir=.
9762     for ac_exec_ext in '' $ac_executable_extensions; do
9763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9764     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766     break 2
9767   fi
9768 done
9769   done
9770 IFS=$as_save_IFS
9771
9772   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9773   ;;
9774 esac
9775 fi
9776 CP=$ac_cv_path_CP
9777 if test -n "$CP"; then
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9779 $as_echo "$CP" >&6; }
9780 else
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784
9785
9786 # Extract the first word of "rm", so it can be a program name with args.
9787 set dummy rm; ac_word=$2
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789 $as_echo_n "checking for $ac_word... " >&6; }
9790 if ${ac_cv_path_RM+:} false; then :
9791   $as_echo_n "(cached) " >&6
9792 else
9793   case $RM in
9794   [\\/]* | ?:[\\/]*)
9795   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9796   ;;
9797   *)
9798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9800 do
9801   IFS=$as_save_IFS
9802   test -z "$as_dir" && as_dir=.
9803     for ac_exec_ext in '' $ac_executable_extensions; do
9804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807     break 2
9808   fi
9809 done
9810   done
9811 IFS=$as_save_IFS
9812
9813   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9814   ;;
9815 esac
9816 fi
9817 RM=$ac_cv_path_RM
9818 if test -n "$RM"; then
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9820 $as_echo "$RM" >&6; }
9821 else
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9824 fi
9825
9826
9827 # Extract the first word of "chmod", so it can be a program name with args.
9828 set dummy chmod; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if ${ac_cv_path_CHMOD+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   case $CHMOD in
9835   [\\/]* | ?:[\\/]*)
9836   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9837   ;;
9838   *)
9839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 for as_dir in $PATH
9841 do
9842   IFS=$as_save_IFS
9843   test -z "$as_dir" && as_dir=.
9844     for ac_exec_ext in '' $ac_executable_extensions; do
9845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9846     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848     break 2
9849   fi
9850 done
9851   done
9852 IFS=$as_save_IFS
9853
9854   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9855   ;;
9856 esac
9857 fi
9858 CHMOD=$ac_cv_path_CHMOD
9859 if test -n "$CHMOD"; then
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9861 $as_echo "$CHMOD" >&6; }
9862 else
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866
9867
9868 for ac_prog in gawk mawk nawk awk
9869 do
9870   # Extract the first word of "$ac_prog", so it can be a program name with args.
9871 set dummy $ac_prog; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_prog_AWK+:} false; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   if test -n "$AWK"; then
9878   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885     for ac_exec_ext in '' $ac_executable_extensions; do
9886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887     ac_cv_prog_AWK="$ac_prog"
9888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892   done
9893 IFS=$as_save_IFS
9894
9895 fi
9896 fi
9897 AWK=$ac_cv_prog_AWK
9898 if test -n "$AWK"; then
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9900 $as_echo "$AWK" >&6; }
9901 else
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9904 fi
9905
9906
9907   test -n "$AWK" && break
9908 done
9909
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9911 $as_echo_n "checking for egrep... " >&6; }
9912 if ${ac_cv_path_EGREP+:} false; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9916    then ac_cv_path_EGREP="$GREP -E"
9917    else
9918      if test -z "$EGREP"; then
9919   ac_path_EGREP_found=false
9920   # Loop through the user's path and test for each of PROGNAME-LIST
9921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926     for ac_prog in egrep; do
9927     for ac_exec_ext in '' $ac_executable_extensions; do
9928       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9929       as_fn_executable_p "$ac_path_EGREP" || continue
9930 # Check for GNU ac_path_EGREP and select it if it is found.
9931   # Check for GNU $ac_path_EGREP
9932 case `"$ac_path_EGREP" --version 2>&1` in
9933 *GNU*)
9934   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9935 *)
9936   ac_count=0
9937   $as_echo_n 0123456789 >"conftest.in"
9938   while :
9939   do
9940     cat "conftest.in" "conftest.in" >"conftest.tmp"
9941     mv "conftest.tmp" "conftest.in"
9942     cp "conftest.in" "conftest.nl"
9943     $as_echo 'EGREP' >> "conftest.nl"
9944     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9946     as_fn_arith $ac_count + 1 && ac_count=$as_val
9947     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9948       # Best one so far, save it but keep looking for a better one
9949       ac_cv_path_EGREP="$ac_path_EGREP"
9950       ac_path_EGREP_max=$ac_count
9951     fi
9952     # 10*(2^10) chars as input seems more than enough
9953     test $ac_count -gt 10 && break
9954   done
9955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9956 esac
9957
9958       $ac_path_EGREP_found && break 3
9959     done
9960   done
9961   done
9962 IFS=$as_save_IFS
9963   if test -z "$ac_cv_path_EGREP"; then
9964     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9965   fi
9966 else
9967   ac_cv_path_EGREP=$EGREP
9968 fi
9969
9970    fi
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9973 $as_echo "$ac_cv_path_EGREP" >&6; }
9974  EGREP="$ac_cv_path_EGREP"
9975
9976
9977 # Extract the first word of "sed", so it can be a program name with args.
9978 set dummy sed; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_path_SED+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   case $SED in
9985   [\\/]* | ?:[\\/]*)
9986   ac_cv_path_SED="$SED" # Let the user override the test with a path.
9987   ;;
9988   *)
9989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9991 do
9992   IFS=$as_save_IFS
9993   test -z "$as_dir" && as_dir=.
9994     for ac_exec_ext in '' $ac_executable_extensions; do
9995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998     break 2
9999   fi
10000 done
10001   done
10002 IFS=$as_save_IFS
10003
10004   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10005   ;;
10006 esac
10007 fi
10008 SED=$ac_cv_path_SED
10009 if test -n "$SED"; then
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
10011 $as_echo "$SED" >&6; }
10012 else
10013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10015 fi
10016
10017
10018 # Extract the first word of "perl", so it can be a program name with args.
10019 set dummy perl; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_path_PERL+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   case $PERL in
10026   [\\/]* | ?:[\\/]*)
10027   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10028   ;;
10029   *)
10030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033   IFS=$as_save_IFS
10034   test -z "$as_dir" && as_dir=.
10035     for ac_exec_ext in '' $ac_executable_extensions; do
10036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039     break 2
10040   fi
10041 done
10042   done
10043 IFS=$as_save_IFS
10044
10045   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10046   ;;
10047 esac
10048 fi
10049 PERL=$ac_cv_path_PERL
10050 if test -n "$PERL"; then
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10052 $as_echo "$PERL" >&6; }
10053 else
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058
10059 # Extract the first word of "ldconfig", so it can be a program name with args.
10060 set dummy ldconfig; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if ${ac_cv_path_LDCONFIG+:} false; then :
10064   $as_echo_n "(cached) " >&6
10065 else
10066   case $LDCONFIG in
10067   [\\/]* | ?:[\\/]*)
10068   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10069   ;;
10070   *)
10071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10073 do
10074   IFS=$as_save_IFS
10075   test -z "$as_dir" && as_dir=.
10076     for ac_exec_ext in '' $ac_executable_extensions; do
10077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10080     break 2
10081   fi
10082 done
10083   done
10084 IFS=$as_save_IFS
10085
10086   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10087   ;;
10088 esac
10089 fi
10090 LDCONFIG=$ac_cv_path_LDCONFIG
10091 if test -n "$LDCONFIG"; then
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10093 $as_echo "$LDCONFIG" >&6; }
10094 else
10095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10097 fi
10098
10099
10100 if test -n "$ac_tool_prefix"; then
10101   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}ar; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_prog_AR+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   if test -n "$AR"; then
10109   ac_cv_prog_AR="$AR" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10113 do
10114   IFS=$as_save_IFS
10115   test -z "$as_dir" && as_dir=.
10116     for ac_exec_ext in '' $ac_executable_extensions; do
10117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118     ac_cv_prog_AR="${ac_tool_prefix}ar"
10119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120     break 2
10121   fi
10122 done
10123   done
10124 IFS=$as_save_IFS
10125
10126 fi
10127 fi
10128 AR=$ac_cv_prog_AR
10129 if test -n "$AR"; then
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10131 $as_echo "$AR" >&6; }
10132 else
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10135 fi
10136
10137
10138 fi
10139 if test -z "$ac_cv_prog_AR"; then
10140   ac_ct_AR=$AR
10141   # Extract the first word of "ar", so it can be a program name with args.
10142 set dummy ar; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   if test -n "$ac_ct_AR"; then
10149   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154   IFS=$as_save_IFS
10155   test -z "$as_dir" && as_dir=.
10156     for ac_exec_ext in '' $ac_executable_extensions; do
10157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158     ac_cv_prog_ac_ct_AR="ar"
10159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163   done
10164 IFS=$as_save_IFS
10165
10166 fi
10167 fi
10168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10169 if test -n "$ac_ct_AR"; then
10170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10171 $as_echo "$ac_ct_AR" >&6; }
10172 else
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 fi
10176
10177   if test "x$ac_ct_AR" = x; then
10178     AR="ar"
10179   else
10180     case $cross_compiling:$ac_tool_warned in
10181 yes:)
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10184 ac_tool_warned=yes ;;
10185 esac
10186     AR=$ac_ct_AR
10187   fi
10188 else
10189   AR="$ac_cv_prog_AR"
10190 fi
10191
10192 if test -n "$ac_tool_prefix"; then
10193   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if ${ac_cv_prog_RANLIB+:} false; then :
10198   $as_echo_n "(cached) " >&6
10199 else
10200   if test -n "$RANLIB"; then
10201   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206   IFS=$as_save_IFS
10207   test -z "$as_dir" && as_dir=.
10208     for ac_exec_ext in '' $ac_executable_extensions; do
10209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212     break 2
10213   fi
10214 done
10215   done
10216 IFS=$as_save_IFS
10217
10218 fi
10219 fi
10220 RANLIB=$ac_cv_prog_RANLIB
10221 if test -n "$RANLIB"; then
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10223 $as_echo "$RANLIB" >&6; }
10224 else
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10227 fi
10228
10229
10230 fi
10231 if test -z "$ac_cv_prog_RANLIB"; then
10232   ac_ct_RANLIB=$RANLIB
10233   # Extract the first word of "ranlib", so it can be a program name with args.
10234 set dummy ranlib; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10238   $as_echo_n "(cached) " >&6
10239 else
10240   if test -n "$ac_ct_RANLIB"; then
10241   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246   IFS=$as_save_IFS
10247   test -z "$as_dir" && as_dir=.
10248     for ac_exec_ext in '' $ac_executable_extensions; do
10249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250     ac_cv_prog_ac_ct_RANLIB="ranlib"
10251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252     break 2
10253   fi
10254 done
10255   done
10256 IFS=$as_save_IFS
10257
10258 fi
10259 fi
10260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10261 if test -n "$ac_ct_RANLIB"; then
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10263 $as_echo "$ac_ct_RANLIB" >&6; }
10264 else
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268
10269   if test "x$ac_ct_RANLIB" = x; then
10270     RANLIB=":"
10271   else
10272     case $cross_compiling:$ac_tool_warned in
10273 yes:)
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10276 ac_tool_warned=yes ;;
10277 esac
10278     RANLIB=$ac_ct_RANLIB
10279   fi
10280 else
10281   RANLIB="$ac_cv_prog_RANLIB"
10282 fi
10283
10284 if test -n "$ac_tool_prefix"; then
10285   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10286 set dummy ${ac_tool_prefix}strip; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_STRIP+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$STRIP"; then
10293   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 STRIP=$ac_cv_prog_STRIP
10313 if test -n "$STRIP"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10315 $as_echo "$STRIP" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321
10322 fi
10323 if test -z "$ac_cv_prog_STRIP"; then
10324   ac_ct_STRIP=$STRIP
10325   # Extract the first word of "strip", so it can be a program name with args.
10326 set dummy strip; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10330   $as_echo_n "(cached) " >&6
10331 else
10332   if test -n "$ac_ct_STRIP"; then
10333   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340     for ac_exec_ext in '' $ac_executable_extensions; do
10341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342     ac_cv_prog_ac_ct_STRIP="strip"
10343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347   done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10353 if test -n "$ac_ct_STRIP"; then
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10355 $as_echo "$ac_ct_STRIP" >&6; }
10356 else
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361   if test "x$ac_ct_STRIP" = x; then
10362     STRIP=":"
10363   else
10364     case $cross_compiling:$ac_tool_warned in
10365 yes:)
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10368 ac_tool_warned=yes ;;
10369 esac
10370     STRIP=$ac_ct_STRIP
10371   fi
10372 else
10373   STRIP="$ac_cv_prog_STRIP"
10374 fi
10375
10376 # Extract the first word of "makeinfo", so it can be a program name with args.
10377 set dummy makeinfo; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_prog_MAKEINFO+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   if test -n "$MAKEINFO"; then
10384   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10385 else
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10388 do
10389   IFS=$as_save_IFS
10390   test -z "$as_dir" && as_dir=.
10391     for ac_exec_ext in '' $ac_executable_extensions; do
10392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393     ac_cv_prog_MAKEINFO="makeinfo"
10394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395     break 2
10396   fi
10397 done
10398   done
10399 IFS=$as_save_IFS
10400
10401 fi
10402 fi
10403 MAKEINFO=$ac_cv_prog_MAKEINFO
10404 if test -n "$MAKEINFO"; then
10405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10406 $as_echo "$MAKEINFO" >&6; }
10407 else
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10410 fi
10411
10412
10413 if test "_$MAKEINFO" = "_"; then
10414     MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10415 else
10416     case "$MAKEINFO" in
10417       */missing.*)
10418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10419 *** Makeinfo is missing. Info documentation will not be built." >&5
10420 $as_echo "$as_me: WARNING:
10421 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10422         ;;
10423       *)
10424         ;;
10425     esac
10426 fi
10427
10428
10429 # See if we need a separate native compiler.
10430 if test $cross_compiling = no; then
10431   BUILD_CC="$CC"
10432
10433 else
10434   for ac_prog in gcc cc
10435 do
10436   # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_prog_BUILD_CC+:} false; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   if test -n "$BUILD_CC"; then
10444   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10445 else
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10448 do
10449   IFS=$as_save_IFS
10450   test -z "$as_dir" && as_dir=.
10451     for ac_exec_ext in '' $ac_executable_extensions; do
10452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453     ac_cv_prog_BUILD_CC="$ac_prog"
10454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455     break 2
10456   fi
10457 done
10458   done
10459 IFS=$as_save_IFS
10460
10461 fi
10462 fi
10463 BUILD_CC=$ac_cv_prog_BUILD_CC
10464 if test -n "$BUILD_CC"; then
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10466 $as_echo "$BUILD_CC" >&6; }
10467 else
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10470 fi
10471
10472
10473   test -n "$BUILD_CC" && break
10474 done
10475
10476 fi
10477 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
10478 do :
10479   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10482   cat >>confdefs.h <<_ACEOF
10483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10484 _ACEOF
10485
10486 fi
10487
10488 done
10489
10490 for ac_header in sys/disk.h sys/mount.h
10491 do :
10492   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10494 #if HAVE_SYS_QUEUE_H
10495 #include <sys/queue.h>
10496 #endif
10497
10498 "
10499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10500   cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10502 _ACEOF
10503
10504 fi
10505
10506 done
10507
10508 for ac_header in net/if.h
10509 do :
10510   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10511 #if HAVE_SYS_TYPES_H
10512 #include <sys/types.h>
10513 #endif
10514 #if HAVE_SYS_SOCKET
10515 #include <sys/socket.h>
10516 #endif
10517
10518 "
10519 if test "x$ac_cv_header_net_if_h" = xyes; then :
10520   cat >>confdefs.h <<_ACEOF
10521 #define HAVE_NET_IF_H 1
10522 _ACEOF
10523
10524 fi
10525
10526 done
10527
10528 for ac_func in vprintf
10529 do :
10530   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10531 if test "x$ac_cv_func_vprintf" = xyes; then :
10532   cat >>confdefs.h <<_ACEOF
10533 #define HAVE_VPRINTF 1
10534 _ACEOF
10535
10536 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10537 if test "x$ac_cv_func__doprnt" = xyes; then :
10538
10539 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10540
10541 fi
10542
10543 fi
10544 done
10545
10546
10547 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10548 "
10549 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10550
10551 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10552
10553 fi
10554
10555 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10556 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10557
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_STRUCT_STAT_ST_ATIM 1
10560 _ACEOF
10561
10562
10563 fi
10564
10565 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10566 "
10567 if test "x$ac_cv_type_ssize_t" = xyes; then :
10568
10569 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10570
10571 fi
10572
10573 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10574 "
10575 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10576
10577 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10578
10579 fi
10580
10581 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10582                  #define _LARGEFILE64_SOURCE
10583                  #include <unistd.h>
10584 "
10585 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10586
10587 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10588
10589 fi
10590
10591 # The cast to long int works around a bug in the HP C Compiler
10592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10594 # This bug is HP SR number 8606223364.
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10596 $as_echo_n "checking size of short... " >&6; }
10597 if ${ac_cv_sizeof_short+:} false; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10601
10602 else
10603   if test "$ac_cv_type_short" = yes; then
10604      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10606 as_fn_error 77 "cannot compute sizeof (short)
10607 See \`config.log' for more details" "$LINENO" 5; }
10608    else
10609      ac_cv_sizeof_short=0
10610    fi
10611 fi
10612
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10615 $as_echo "$ac_cv_sizeof_short" >&6; }
10616
10617
10618
10619 cat >>confdefs.h <<_ACEOF
10620 #define SIZEOF_SHORT $ac_cv_sizeof_short
10621 _ACEOF
10622
10623
10624 # The cast to long int works around a bug in the HP C Compiler
10625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10627 # This bug is HP SR number 8606223364.
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10629 $as_echo_n "checking size of int... " >&6; }
10630 if ${ac_cv_sizeof_int+:} false; then :
10631   $as_echo_n "(cached) " >&6
10632 else
10633   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10634
10635 else
10636   if test "$ac_cv_type_int" = yes; then
10637      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10639 as_fn_error 77 "cannot compute sizeof (int)
10640 See \`config.log' for more details" "$LINENO" 5; }
10641    else
10642      ac_cv_sizeof_int=0
10643    fi
10644 fi
10645
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10648 $as_echo "$ac_cv_sizeof_int" >&6; }
10649
10650
10651
10652 cat >>confdefs.h <<_ACEOF
10653 #define SIZEOF_INT $ac_cv_sizeof_int
10654 _ACEOF
10655
10656
10657 # The cast to long int works around a bug in the HP C Compiler
10658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10660 # This bug is HP SR number 8606223364.
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10662 $as_echo_n "checking size of long... " >&6; }
10663 if ${ac_cv_sizeof_long+:} false; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
10667
10668 else
10669   if test "$ac_cv_type_long" = yes; then
10670      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10672 as_fn_error 77 "cannot compute sizeof (long)
10673 See \`config.log' for more details" "$LINENO" 5; }
10674    else
10675      ac_cv_sizeof_long=0
10676    fi
10677 fi
10678
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10681 $as_echo "$ac_cv_sizeof_long" >&6; }
10682
10683
10684
10685 cat >>confdefs.h <<_ACEOF
10686 #define SIZEOF_LONG $ac_cv_sizeof_long
10687 _ACEOF
10688
10689
10690 # The cast to long int works around a bug in the HP C Compiler
10691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10693 # This bug is HP SR number 8606223364.
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10695 $as_echo_n "checking size of long long... " >&6; }
10696 if ${ac_cv_sizeof_long_long+:} false; then :
10697   $as_echo_n "(cached) " >&6
10698 else
10699   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10700
10701 else
10702   if test "$ac_cv_type_long_long" = yes; then
10703      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10705 as_fn_error 77 "cannot compute sizeof (long long)
10706 See \`config.log' for more details" "$LINENO" 5; }
10707    else
10708      ac_cv_sizeof_long_long=0
10709    fi
10710 fi
10711
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10714 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10715
10716
10717
10718 cat >>confdefs.h <<_ACEOF
10719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10720 _ACEOF
10721
10722
10723 # The cast to long int works around a bug in the HP C Compiler
10724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10726 # This bug is HP SR number 8606223364.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10728 $as_echo_n "checking size of off_t... " >&6; }
10729 if ${ac_cv_sizeof_off_t+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
10733
10734 else
10735   if test "$ac_cv_type_off_t" = yes; then
10736      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10738 as_fn_error 77 "cannot compute sizeof (off_t)
10739 See \`config.log' for more details" "$LINENO" 5; }
10740    else
10741      ac_cv_sizeof_off_t=0
10742    fi
10743 fi
10744
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10747 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10748
10749
10750
10751 cat >>confdefs.h <<_ACEOF
10752 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10753 _ACEOF
10754
10755
10756 SIZEOF_SHORT=$ac_cv_sizeof_short
10757 SIZEOF_INT=$ac_cv_sizeof_int
10758 SIZEOF_LONG=$ac_cv_sizeof_long
10759 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10760 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10761
10762
10763
10764
10765
10766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10767 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10768 if ${ac_cv_c_bigendian+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   ac_cv_c_bigendian=unknown
10772     # See if we're dealing with a universal compiler.
10773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h.  */
10775 #ifndef __APPLE_CC__
10776                not a universal capable compiler
10777              #endif
10778              typedef int dummy;
10779
10780 _ACEOF
10781 if ac_fn_c_try_compile "$LINENO"; then :
10782
10783         # Check for potential -arch flags.  It is not universal unless
10784         # there are at least two -arch flags with different values.
10785         ac_arch=
10786         ac_prev=
10787         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10788          if test -n "$ac_prev"; then
10789            case $ac_word in
10790              i?86 | x86_64 | ppc | ppc64)
10791                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10792                  ac_arch=$ac_word
10793                else
10794                  ac_cv_c_bigendian=universal
10795                  break
10796                fi
10797                ;;
10798            esac
10799            ac_prev=
10800          elif test "x$ac_word" = "x-arch"; then
10801            ac_prev=arch
10802          fi
10803        done
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806     if test $ac_cv_c_bigendian = unknown; then
10807       # See if sys/param.h defines the BYTE_ORDER macro.
10808       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h.  */
10810 #include <sys/types.h>
10811              #include <sys/param.h>
10812
10813 int
10814 main ()
10815 {
10816 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10817                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10818                      && LITTLE_ENDIAN)
10819               bogus endian macros
10820              #endif
10821
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827   # It does; now see whether it defined to BIG_ENDIAN or not.
10828          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h.  */
10830 #include <sys/types.h>
10831                 #include <sys/param.h>
10832
10833 int
10834 main ()
10835 {
10836 #if BYTE_ORDER != BIG_ENDIAN
10837                  not big endian
10838                 #endif
10839
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845   ac_cv_c_bigendian=yes
10846 else
10847   ac_cv_c_bigendian=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852     fi
10853     if test $ac_cv_c_bigendian = unknown; then
10854       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h.  */
10857 #include <limits.h>
10858
10859 int
10860 main ()
10861 {
10862 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10863               bogus endian macros
10864              #endif
10865
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_compile "$LINENO"; then :
10871   # It does; now see whether it defined to _BIG_ENDIAN or not.
10872          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h.  */
10874 #include <limits.h>
10875
10876 int
10877 main ()
10878 {
10879 #ifndef _BIG_ENDIAN
10880                  not big endian
10881                 #endif
10882
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 if ac_fn_c_try_compile "$LINENO"; then :
10888   ac_cv_c_bigendian=yes
10889 else
10890   ac_cv_c_bigendian=no
10891 fi
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895     fi
10896     if test $ac_cv_c_bigendian = unknown; then
10897       # Compile a test program.
10898       if test "$cross_compiling" = yes; then :
10899   # Try to guess by grepping values from an object file.
10900          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h.  */
10902 short int ascii_mm[] =
10903                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10904                 short int ascii_ii[] =
10905                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10906                 int use_ascii (int i) {
10907                   return ascii_mm[i] + ascii_ii[i];
10908                 }
10909                 short int ebcdic_ii[] =
10910                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10911                 short int ebcdic_mm[] =
10912                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10913                 int use_ebcdic (int i) {
10914                   return ebcdic_mm[i] + ebcdic_ii[i];
10915                 }
10916                 extern int foo;
10917
10918 int
10919 main ()
10920 {
10921 return use_ascii (foo) == use_ebcdic (foo);
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10928               ac_cv_c_bigendian=yes
10929             fi
10930             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10931               if test "$ac_cv_c_bigendian" = unknown; then
10932                 ac_cv_c_bigendian=no
10933               else
10934                 # finding both strings is unlikely to happen, but who knows?
10935                 ac_cv_c_bigendian=unknown
10936               fi
10937             fi
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 else
10941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943 $ac_includes_default
10944 int
10945 main ()
10946 {
10947
10948              /* Are we little or big endian?  From Harbison&Steele.  */
10949              union
10950              {
10951                long int l;
10952                char c[sizeof (long int)];
10953              } u;
10954              u.l = 1;
10955              return u.c[sizeof (long int) - 1] == 1;
10956
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 if ac_fn_c_try_run "$LINENO"; then :
10962   ac_cv_c_bigendian=no
10963 else
10964   ac_cv_c_bigendian=yes
10965 fi
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10967   conftest.$ac_objext conftest.beam conftest.$ac_ext
10968 fi
10969
10970     fi
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10973 $as_echo "$ac_cv_c_bigendian" >&6; }
10974  case $ac_cv_c_bigendian in #(
10975    yes)
10976      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10977 ;; #(
10978    no)
10979       ;; #(
10980    universal)
10981
10982 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10983
10984      ;; #(
10985    *)
10986      as_fn_error $? "unknown endianness
10987  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10988  esac
10989
10990 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10991 ASM_TYPES_HEADER=./asm_types.h
10992
10993 echo "/* These defines are needed for the public ext2fs.h header file */" \
10994      > public_config.h
10995 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10996   uniq tmp_config.$$ >> public_config.h
10997 else
10998   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10999 fi
11000 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11001   uniq tmp_config.$$ >> public_config.h
11002 else
11003   echo "#undef WORDS_BIGENDIAN" >> public_config.h
11004 fi
11005 rm -f tmp_config.$$
11006 PUBLIC_CONFIG_HEADER=./public_config.h
11007
11008 for ac_header in inttypes.h
11009 do :
11010   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11011 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11012   cat >>confdefs.h <<_ACEOF
11013 #define HAVE_INTTYPES_H 1
11014 _ACEOF
11015
11016 fi
11017
11018 done
11019
11020 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11021 if test "x$ac_cv_type_intptr_t" = xyes; then :
11022
11023 cat >>confdefs.h <<_ACEOF
11024 #define HAVE_INTPTR_T 1
11025 _ACEOF
11026
11027
11028 fi
11029
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11031 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11032 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037 #include <sys/stat.h>
11038 int
11039 main ()
11040 {
11041 struct stat stat; stat.st_flags = 0;
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_compile "$LINENO"; then :
11047   e2fsprogs_cv_struct_st_flags=yes
11048 else
11049   e2fsprogs_cv_struct_st_flags=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 fi
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11055 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11056 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11058 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11059   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11060   $as_echo_n "(cached) " >&6
11061 else
11062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h.  */
11064 #include <sys/stat.h>
11065 int
11066 main ()
11067 {
11068 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074   e2fsprogs_cv_struct_st_flags_immut=yes
11075 else
11076   e2fsprogs_cv_struct_st_flags_immut=no
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 fi
11080
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11082 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11083   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11084
11085 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11086
11087   fi
11088 fi
11089 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11090          #include <sys/socket.h>
11091 "
11092 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11093
11094 cat >>confdefs.h <<_ACEOF
11095 #define HAVE_SA_LEN 1
11096 _ACEOF
11097
11098 fi
11099
11100 if test -n "$BLKID_CMT"; then
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11102 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11103 if ${ac_cv_search_blkid_probe_all+:} false; then :
11104   $as_echo_n "(cached) " >&6
11105 else
11106   ac_func_search_save_LIBS=$LIBS
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h.  */
11109
11110 /* Override any GCC internal prototype to avoid an error.
11111    Use char because int might match the return type of a GCC
11112    builtin and then its argument prototype would still apply.  */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char blkid_probe_all ();
11117 int
11118 main ()
11119 {
11120 return blkid_probe_all ();
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 for ac_lib in '' blkid; do
11126   if test -z "$ac_lib"; then
11127     ac_res="none required"
11128   else
11129     ac_res=-l$ac_lib
11130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11131   fi
11132   if ac_fn_c_try_link "$LINENO"; then :
11133   ac_cv_search_blkid_probe_all=$ac_res
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136     conftest$ac_exeext
11137   if ${ac_cv_search_blkid_probe_all+:} false; then :
11138   break
11139 fi
11140 done
11141 if ${ac_cv_search_blkid_probe_all+:} false; then :
11142
11143 else
11144   ac_cv_search_blkid_probe_all=no
11145 fi
11146 rm conftest.$ac_ext
11147 LIBS=$ac_func_search_save_LIBS
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11150 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11151 ac_res=$ac_cv_search_blkid_probe_all
11152 if test "$ac_res" != no; then :
11153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11154
11155 fi
11156
11157 fi
11158 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
11159 do :
11160   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11163   cat >>confdefs.h <<_ACEOF
11164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11165 _ACEOF
11166
11167 fi
11168 done
11169
11170 SOCKET_LIB=''
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11172 $as_echo_n "checking for socket in -lsocket... " >&6; }
11173 if ${ac_cv_lib_socket_socket+:} false; then :
11174   $as_echo_n "(cached) " >&6
11175 else
11176   ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lsocket  $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h.  */
11180
11181 /* Override any GCC internal prototype to avoid an error.
11182    Use char because int might match the return type of a GCC
11183    builtin and then its argument prototype would still apply.  */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char socket ();
11188 int
11189 main ()
11190 {
11191 return socket ();
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197   ac_cv_lib_socket_socket=yes
11198 else
11199   ac_cv_lib_socket_socket=no
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11204 fi
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11206 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11207 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11208   SOCKET_LIB=-lsocket
11209 fi
11210
11211
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11213 $as_echo_n "checking for optreset... " >&6; }
11214 if ${ac_cv_have_optreset+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h.  */
11219 #include <unistd.h>
11220
11221 _ACEOF
11222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11223   $EGREP "optreset" >/dev/null 2>&1; then :
11224   ac_cv_have_optreset=yes
11225 else
11226   ac_cv_have_optreset=no
11227 fi
11228 rm -f conftest*
11229
11230 fi
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11232 $as_echo "$ac_cv_have_optreset" >&6; }
11233 if test $ac_cv_have_optreset = yes; then
11234
11235 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11236
11237 fi
11238
11239 SEM_INIT_LIB=''
11240 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11241 if test "x$ac_cv_func_sem_init" = xyes; then :
11242
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11245 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11246 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11247   $as_echo_n "(cached) " >&6
11248 else
11249   ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-lpthread  $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255    Use char because int might match the return type of a GCC
11256    builtin and then its argument prototype would still apply.  */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char sem_init ();
11261 int
11262 main ()
11263 {
11264 return sem_init ();
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270   ac_cv_lib_pthread_sem_init=yes
11271 else
11272   ac_cv_lib_pthread_sem_init=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11279 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11280 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11281   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11282
11283         SEM_INIT_LIB=-lpthread
11284 else
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11286 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11287 if ${ac_cv_lib_rt_sem_init+:} false; then :
11288   $as_echo_n "(cached) " >&6
11289 else
11290   ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-lrt  $LIBS"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h.  */
11294
11295 /* Override any GCC internal prototype to avoid an error.
11296    Use char because int might match the return type of a GCC
11297    builtin and then its argument prototype would still apply.  */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 char sem_init ();
11302 int
11303 main ()
11304 {
11305 return sem_init ();
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311   ac_cv_lib_rt_sem_init=yes
11312 else
11313   ac_cv_lib_rt_sem_init=no
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext \
11316     conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11320 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11321 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11322   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11323
11324         SEM_INIT_LIB=-lrt
11325 else
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11327 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11328 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lposix4  $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h.  */
11335
11336 /* Override any GCC internal prototype to avoid an error.
11337    Use char because int might match the return type of a GCC
11338    builtin and then its argument prototype would still apply.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char sem_init ();
11343 int
11344 main ()
11345 {
11346 return sem_init ();
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352   ac_cv_lib_posix4_sem_init=yes
11353 else
11354   ac_cv_lib_posix4_sem_init=no
11355 fi
11356 rm -f core conftest.err conftest.$ac_objext \
11357     conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11361 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11362 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11363   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11364
11365         SEM_INIT_LIB=-lposix4
11366 fi
11367
11368 fi
11369
11370 fi
11371
11372 fi
11373
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11375 $as_echo_n "checking for unified diff option... " >&6; }
11376 if diff -u $0 $0 > /dev/null 2>&1 ; then
11377    UNI_DIFF_OPTS=-u
11378 else
11379    UNI_DIFF_OPTS=-c
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11382 $as_echo "$UNI_DIFF_OPTS" >&6; }
11383
11384 case "$host_os" in
11385 linux*)
11386
11387 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11388
11389         ;;
11390 esac
11391 LINUX_CMT="#"
11392 CYGWIN_CMT="#"
11393 UNIX_CMT=
11394 case "$host_os" in
11395 linux*)
11396         LINUX_CMT=
11397         ;;
11398 cygwin)
11399         CYGWIN_CMT=
11400         UNIX_CMT="#"
11401         ;;
11402 esac
11403
11404
11405
11406 case "$host_os" in
11407 linux* | gnu* | k*bsd*-gnu)
11408         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11409                 root_prefix="";
11410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11411 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11412         fi
11413         ;;
11414 esac
11415 case "$host_os" in
11416 linux* | gnu* | k*bsd*-gnu)
11417         if test "$prefix" = NONE ; then
11418                 prefix="/usr";
11419                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11420 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11421                 if test "$mandir" = '${prefix}/man' ; then
11422                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11423 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11424                         mandir=/usr/share/man
11425                 fi
11426         fi
11427 ;;
11428 esac
11429 if test "$root_prefix" = NONE ; then
11430         if test "$prefix" = NONE ; then
11431                 root_prefix="$ac_default_prefix"
11432         else
11433                 root_prefix="$prefix"
11434         fi
11435         root_bindir=$bindir
11436         root_sbindir=$sbindir
11437         root_libdir=$libdir
11438         root_sysconfdir=$sysconfdir
11439 else
11440         root_bindir='${root_prefix}/bin'
11441         root_sbindir='${root_prefix}/sbin'
11442         root_libdir='${root_prefix}/lib'
11443         root_sysconfdir='${root_prefix}/etc'
11444 fi
11445 if test "$bindir" != '${exec_prefix}/bin'; then
11446     root_bindir=$bindir
11447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11448 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11449 fi
11450 if test "$sbindir" != '${exec_prefix}/sbin'; then
11451     root_sbindir=$sbindir
11452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11453 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11454 fi
11455 if test "$libdir" != '${exec_prefix}/lib'; then
11456     root_libdir=$libdir
11457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11458 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11459 fi
11460 if test "$sysconfdir" != '${prefix}/etc'; then
11461     root_sysconfdir=$sysconfdir
11462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11463 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11464 fi
11465
11466
11467
11468
11469
11470
11471 # Check whether --with-multiarch was given.
11472 if test "${with_multiarch+set}" = set; then :
11473   withval=$with_multiarch; if test "$withval" = "lib64"; then
11474     libdir=/usr/lib64
11475     root_libdir=/lib64
11476 else
11477     libdir=$libdir/$withval
11478     root_libdir=$root_libdir/$withval
11479 fi
11480
11481 fi
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11483 $as_echo_n "checking whether we can link with -static... " >&6; }
11484 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h.  */
11490 #include <stdio.h>
11491 int
11492 main ()
11493 {
11494 fflush(stdout);
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500   ac_cv_e2fsprogs_use_static=yes
11501 else
11502   ac_cv_e2fsprogs_use_static=no
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505     conftest$ac_exeext conftest.$ac_ext
11506 LDFLAGS=$SAVE_LDFLAGS
11507 fi
11508
11509 case "$host_os" in
11510 solaris2.*)
11511         ac_cv_e2fsprogs_use_static=no
11512 ;;
11513 esac
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11515 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11516 LDFLAG_STATIC=
11517 if test $ac_cv_e2fsprogs_use_static = yes; then
11518         LDFLAG_STATIC=-static
11519 fi
11520
11521 case "$host_os" in
11522 darwin*)
11523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11524 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11525
11526 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11527
11528         ;;
11529 esac
11530 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11531 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11532
11533
11534 if test "$cross_compiling" = yes ; then
11535   DO_TEST_SUITE=
11536 else
11537   DO_TEST_SUITE=check
11538 fi
11539
11540 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11541 if test -n "$CPPFLAGS" ; then
11542         INCLUDES="$INCLUDES $CPPFLAGS"
11543 fi
11544 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11545         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11546 fi
11547 if test -n "$WITH_DIET_LIBC" ; then
11548         INCLUDES="$INCLUDES -D_REENTRANT"
11549 fi
11550
11551 if test $cross_compiling = no; then
11552    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11553    BUILD_LDFLAGS="$LDFLAGS"
11554 else
11555    BUILD_CFLAGS=
11556    BUILD_LDFLAGS=
11557 fi
11558
11559
11560 test -d lib || mkdir lib
11561 test -d include || mkdir include
11562 test -d include/linux || mkdir include/linux
11563 test -d include/asm || mkdir include/asm
11564 for i in MCONFIG Makefile e2fsprogs.spec \
11565         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11566         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11567         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11568         lib/uuid/Makefile lib/uuid/uuid_types.h \
11569         lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11570         lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11571         lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11572         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11573         debugfs/Makefile tests/Makefile tests/progs/Makefile \
11574         resize/Makefile doc/Makefile intl/Makefile \
11575         intl/libgnuintl.h po/Makefile.in ; do
11576         if test -d `dirname ${srcdir}/$i` ; then
11577                 outlist="$outlist $i"
11578         fi
11579 done
11580 ac_config_files="$ac_config_files $outlist"
11581
11582 cat >confcache <<\_ACEOF
11583 # This file is a shell script that caches the results of configure
11584 # tests run on this system so they can be shared between configure
11585 # scripts and configure runs, see configure's option --config-cache.
11586 # It is not useful on other systems.  If it contains results you don't
11587 # want to keep, you may remove or edit it.
11588 #
11589 # config.status only pays attention to the cache file if you give it
11590 # the --recheck option to rerun configure.
11591 #
11592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11594 # following values.
11595
11596 _ACEOF
11597
11598 # The following way of writing the cache mishandles newlines in values,
11599 # but we know of no workaround that is simple, portable, and efficient.
11600 # So, we kill variables containing newlines.
11601 # Ultrix sh set writes to stderr and can't be redirected directly,
11602 # and sets the high bit in the cache file unless we assign to the vars.
11603 (
11604   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11605     eval ac_val=\$$ac_var
11606     case $ac_val in #(
11607     *${as_nl}*)
11608       case $ac_var in #(
11609       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11611       esac
11612       case $ac_var in #(
11613       _ | IFS | as_nl) ;; #(
11614       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11615       *) { eval $ac_var=; unset $ac_var;} ;;
11616       esac ;;
11617     esac
11618   done
11619
11620   (set) 2>&1 |
11621     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11622     *${as_nl}ac_space=\ *)
11623       # `set' does not quote correctly, so add quotes: double-quote
11624       # substitution turns \\\\ into \\, and sed turns \\ into \.
11625       sed -n \
11626         "s/'/'\\\\''/g;
11627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11628       ;; #(
11629     *)
11630       # `set' quotes correctly as required by POSIX, so do not add quotes.
11631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11632       ;;
11633     esac |
11634     sort
11635 ) |
11636   sed '
11637      /^ac_cv_env_/b end
11638      t clear
11639      :clear
11640      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11641      t end
11642      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11643      :end' >>confcache
11644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11645   if test -w "$cache_file"; then
11646     if test "x$cache_file" != "x/dev/null"; then
11647       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11648 $as_echo "$as_me: updating cache $cache_file" >&6;}
11649       if test ! -f "$cache_file" || test -h "$cache_file"; then
11650         cat confcache >"$cache_file"
11651       else
11652         case $cache_file in #(
11653         */* | ?:*)
11654           mv -f confcache "$cache_file"$$ &&
11655           mv -f "$cache_file"$$ "$cache_file" ;; #(
11656         *)
11657           mv -f confcache "$cache_file" ;;
11658         esac
11659       fi
11660     fi
11661   else
11662     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11663 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11664   fi
11665 fi
11666 rm -f confcache
11667
11668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11669 # Let make expand exec_prefix.
11670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11671
11672 DEFS=-DHAVE_CONFIG_H
11673
11674 ac_libobjs=
11675 ac_ltlibobjs=
11676 U=
11677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11678   # 1. Remove the extension, and $U if already installed.
11679   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11680   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11681   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11682   #    will be set to the directory where LIBOBJS objects are built.
11683   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11684   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11685 done
11686 LIBOBJS=$ac_libobjs
11687
11688 LTLIBOBJS=$ac_ltlibobjs
11689
11690
11691
11692
11693 : "${CONFIG_STATUS=./config.status}"
11694 ac_write_fail=0
11695 ac_clean_files_save=$ac_clean_files
11696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11699 as_write_fail=0
11700 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11701 #! $SHELL
11702 # Generated by $as_me.
11703 # Run this file to recreate the current configuration.
11704 # Compiler output produced by configure, useful for debugging
11705 # configure, is in config.log if it exists.
11706
11707 debug=false
11708 ac_cs_recheck=false
11709 ac_cs_silent=false
11710
11711 SHELL=\${CONFIG_SHELL-$SHELL}
11712 export SHELL
11713 _ASEOF
11714 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11715 ## -------------------- ##
11716 ## M4sh Initialization. ##
11717 ## -------------------- ##
11718
11719 # Be more Bourne compatible
11720 DUALCASE=1; export DUALCASE # for MKS sh
11721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11722   emulate sh
11723   NULLCMD=:
11724   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11725   # is contrary to our usage.  Disable this feature.
11726   alias -g '${1+"$@"}'='"$@"'
11727   setopt NO_GLOB_SUBST
11728 else
11729   case `(set -o) 2>/dev/null` in #(
11730   *posix*) :
11731     set -o posix ;; #(
11732   *) :
11733      ;;
11734 esac
11735 fi
11736
11737
11738 as_nl='
11739 '
11740 export as_nl
11741 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11742 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11745 # Prefer a ksh shell builtin over an external printf program on Solaris,
11746 # but without wasting forks for bash or zsh.
11747 if test -z "$BASH_VERSION$ZSH_VERSION" \
11748     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11749   as_echo='print -r --'
11750   as_echo_n='print -rn --'
11751 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11752   as_echo='printf %s\n'
11753   as_echo_n='printf %s'
11754 else
11755   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11756     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11757     as_echo_n='/usr/ucb/echo -n'
11758   else
11759     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11760     as_echo_n_body='eval
11761       arg=$1;
11762       case $arg in #(
11763       *"$as_nl"*)
11764         expr "X$arg" : "X\\(.*\\)$as_nl";
11765         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11766       esac;
11767       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11768     '
11769     export as_echo_n_body
11770     as_echo_n='sh -c $as_echo_n_body as_echo'
11771   fi
11772   export as_echo_body
11773   as_echo='sh -c $as_echo_body as_echo'
11774 fi
11775
11776 # The user is always right.
11777 if test "${PATH_SEPARATOR+set}" != set; then
11778   PATH_SEPARATOR=:
11779   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11780     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11781       PATH_SEPARATOR=';'
11782   }
11783 fi
11784
11785
11786 # IFS
11787 # We need space, tab and new line, in precisely that order.  Quoting is
11788 # there to prevent editors from complaining about space-tab.
11789 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11790 # splitting by setting IFS to empty value.)
11791 IFS=" ""        $as_nl"
11792
11793 # Find who we are.  Look in the path if we contain no directory separator.
11794 as_myself=
11795 case $0 in #((
11796   *[\\/]* ) as_myself=$0 ;;
11797   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11799 do
11800   IFS=$as_save_IFS
11801   test -z "$as_dir" && as_dir=.
11802     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11803   done
11804 IFS=$as_save_IFS
11805
11806      ;;
11807 esac
11808 # We did not find ourselves, most probably we were run as `sh COMMAND'
11809 # in which case we are not to be found in the path.
11810 if test "x$as_myself" = x; then
11811   as_myself=$0
11812 fi
11813 if test ! -f "$as_myself"; then
11814   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11815   exit 1
11816 fi
11817
11818 # Unset variables that we do not need and which cause bugs (e.g. in
11819 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11820 # suppresses any "Segmentation fault" message there.  '((' could
11821 # trigger a bug in pdksh 5.2.14.
11822 for as_var in BASH_ENV ENV MAIL MAILPATH
11823 do eval test x\${$as_var+set} = xset \
11824   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11825 done
11826 PS1='$ '
11827 PS2='> '
11828 PS4='+ '
11829
11830 # NLS nuisances.
11831 LC_ALL=C
11832 export LC_ALL
11833 LANGUAGE=C
11834 export LANGUAGE
11835
11836 # CDPATH.
11837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11838
11839
11840 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11841 # ----------------------------------------
11842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11844 # script with STATUS, using 1 if that was 0.
11845 as_fn_error ()
11846 {
11847   as_status=$1; test $as_status -eq 0 && as_status=1
11848   if test "$4"; then
11849     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11850     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11851   fi
11852   $as_echo "$as_me: error: $2" >&2
11853   as_fn_exit $as_status
11854 } # as_fn_error
11855
11856
11857 # as_fn_set_status STATUS
11858 # -----------------------
11859 # Set $? to STATUS, without forking.
11860 as_fn_set_status ()
11861 {
11862   return $1
11863 } # as_fn_set_status
11864
11865 # as_fn_exit STATUS
11866 # -----------------
11867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11868 as_fn_exit ()
11869 {
11870   set +e
11871   as_fn_set_status $1
11872   exit $1
11873 } # as_fn_exit
11874
11875 # as_fn_unset VAR
11876 # ---------------
11877 # Portably unset VAR.
11878 as_fn_unset ()
11879 {
11880   { eval $1=; unset $1;}
11881 }
11882 as_unset=as_fn_unset
11883 # as_fn_append VAR VALUE
11884 # ----------------------
11885 # Append the text in VALUE to the end of the definition contained in VAR. Take
11886 # advantage of any shell optimizations that allow amortized linear growth over
11887 # repeated appends, instead of the typical quadratic growth present in naive
11888 # implementations.
11889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11890   eval 'as_fn_append ()
11891   {
11892     eval $1+=\$2
11893   }'
11894 else
11895   as_fn_append ()
11896   {
11897     eval $1=\$$1\$2
11898   }
11899 fi # as_fn_append
11900
11901 # as_fn_arith ARG...
11902 # ------------------
11903 # Perform arithmetic evaluation on the ARGs, and store the result in the
11904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11905 # must be portable across $(()) and expr.
11906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11907   eval 'as_fn_arith ()
11908   {
11909     as_val=$(( $* ))
11910   }'
11911 else
11912   as_fn_arith ()
11913   {
11914     as_val=`expr "$@" || test $? -eq 1`
11915   }
11916 fi # as_fn_arith
11917
11918
11919 if expr a : '\(a\)' >/dev/null 2>&1 &&
11920    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11921   as_expr=expr
11922 else
11923   as_expr=false
11924 fi
11925
11926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11927   as_basename=basename
11928 else
11929   as_basename=false
11930 fi
11931
11932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11933   as_dirname=dirname
11934 else
11935   as_dirname=false
11936 fi
11937
11938 as_me=`$as_basename -- "$0" ||
11939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11940          X"$0" : 'X\(//\)$' \| \
11941          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11942 $as_echo X/"$0" |
11943     sed '/^.*\/\([^/][^/]*\)\/*$/{
11944             s//\1/
11945             q
11946           }
11947           /^X\/\(\/\/\)$/{
11948             s//\1/
11949             q
11950           }
11951           /^X\/\(\/\).*/{
11952             s//\1/
11953             q
11954           }
11955           s/.*/./; q'`
11956
11957 # Avoid depending upon Character Ranges.
11958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11961 as_cr_digits='0123456789'
11962 as_cr_alnum=$as_cr_Letters$as_cr_digits
11963
11964 ECHO_C= ECHO_N= ECHO_T=
11965 case `echo -n x` in #(((((
11966 -n*)
11967   case `echo 'xy\c'` in
11968   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11969   xy)  ECHO_C='\c';;
11970   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11971        ECHO_T=' ';;
11972   esac;;
11973 *)
11974   ECHO_N='-n';;
11975 esac
11976
11977 rm -f conf$$ conf$$.exe conf$$.file
11978 if test -d conf$$.dir; then
11979   rm -f conf$$.dir/conf$$.file
11980 else
11981   rm -f conf$$.dir
11982   mkdir conf$$.dir 2>/dev/null
11983 fi
11984 if (echo >conf$$.file) 2>/dev/null; then
11985   if ln -s conf$$.file conf$$ 2>/dev/null; then
11986     as_ln_s='ln -s'
11987     # ... but there are two gotchas:
11988     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11989     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11990     # In both cases, we have to default to `cp -pR'.
11991     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11992       as_ln_s='cp -pR'
11993   elif ln conf$$.file conf$$ 2>/dev/null; then
11994     as_ln_s=ln
11995   else
11996     as_ln_s='cp -pR'
11997   fi
11998 else
11999   as_ln_s='cp -pR'
12000 fi
12001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12002 rmdir conf$$.dir 2>/dev/null
12003
12004
12005 # as_fn_mkdir_p
12006 # -------------
12007 # Create "$as_dir" as a directory, including parents if necessary.
12008 as_fn_mkdir_p ()
12009 {
12010
12011   case $as_dir in #(
12012   -*) as_dir=./$as_dir;;
12013   esac
12014   test -d "$as_dir" || eval $as_mkdir_p || {
12015     as_dirs=
12016     while :; do
12017       case $as_dir in #(
12018       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12019       *) as_qdir=$as_dir;;
12020       esac
12021       as_dirs="'$as_qdir' $as_dirs"
12022       as_dir=`$as_dirname -- "$as_dir" ||
12023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12024          X"$as_dir" : 'X\(//\)[^/]' \| \
12025          X"$as_dir" : 'X\(//\)$' \| \
12026          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12027 $as_echo X"$as_dir" |
12028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12029             s//\1/
12030             q
12031           }
12032           /^X\(\/\/\)[^/].*/{
12033             s//\1/
12034             q
12035           }
12036           /^X\(\/\/\)$/{
12037             s//\1/
12038             q
12039           }
12040           /^X\(\/\).*/{
12041             s//\1/
12042             q
12043           }
12044           s/.*/./; q'`
12045       test -d "$as_dir" && break
12046     done
12047     test -z "$as_dirs" || eval "mkdir $as_dirs"
12048   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12049
12050
12051 } # as_fn_mkdir_p
12052 if mkdir -p . 2>/dev/null; then
12053   as_mkdir_p='mkdir -p "$as_dir"'
12054 else
12055   test -d ./-p && rmdir ./-p
12056   as_mkdir_p=false
12057 fi
12058
12059
12060 # as_fn_executable_p FILE
12061 # -----------------------
12062 # Test if FILE is an executable regular file.
12063 as_fn_executable_p ()
12064 {
12065   test -f "$1" && test -x "$1"
12066 } # as_fn_executable_p
12067 as_test_x='test -x'
12068 as_executable_p=as_fn_executable_p
12069
12070 # Sed expression to map a string onto a valid CPP name.
12071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12072
12073 # Sed expression to map a string onto a valid variable name.
12074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12075
12076
12077 exec 6>&1
12078 ## ----------------------------------- ##
12079 ## Main body of $CONFIG_STATUS script. ##
12080 ## ----------------------------------- ##
12081 _ASEOF
12082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12083
12084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085 # Save the log message, to keep $0 and so on meaningful, and to
12086 # report actual input values of CONFIG_FILES etc. instead of their
12087 # values after options handling.
12088 ac_log="
12089 This file was extended by $as_me, which was
12090 generated by GNU Autoconf 2.69.  Invocation command line was
12091
12092   CONFIG_FILES    = $CONFIG_FILES
12093   CONFIG_HEADERS  = $CONFIG_HEADERS
12094   CONFIG_LINKS    = $CONFIG_LINKS
12095   CONFIG_COMMANDS = $CONFIG_COMMANDS
12096   $ $0 $@
12097
12098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12099 "
12100
12101 _ACEOF
12102
12103 case $ac_config_files in *"
12104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12105 esac
12106
12107 case $ac_config_headers in *"
12108 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12109 esac
12110
12111
12112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 # Files that config.status was made for.
12114 config_files="$ac_config_files"
12115 config_headers="$ac_config_headers"
12116 config_commands="$ac_config_commands"
12117
12118 _ACEOF
12119
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121 ac_cs_usage="\
12122 \`$as_me' instantiates files and other configuration actions
12123 from templates according to the current configuration.  Unless the files
12124 and actions are specified as TAGs, all are instantiated by default.
12125
12126 Usage: $0 [OPTION]... [TAG]...
12127
12128   -h, --help       print this help, then exit
12129   -V, --version    print version number and configuration settings, then exit
12130       --config     print configuration, then exit
12131   -q, --quiet, --silent
12132                    do not print progress messages
12133   -d, --debug      don't remove temporary files
12134       --recheck    update $as_me by reconfiguring in the same conditions
12135       --file=FILE[:TEMPLATE]
12136                    instantiate the configuration file FILE
12137       --header=FILE[:TEMPLATE]
12138                    instantiate the configuration header FILE
12139
12140 Configuration files:
12141 $config_files
12142
12143 Configuration headers:
12144 $config_headers
12145
12146 Configuration commands:
12147 $config_commands
12148
12149 Report bugs to the package provider."
12150
12151 _ACEOF
12152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12153 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12154 ac_cs_version="\\
12155 config.status
12156 configured by $0, generated by GNU Autoconf 2.69,
12157   with options \\"\$ac_cs_config\\"
12158
12159 Copyright (C) 2012 Free Software Foundation, Inc.
12160 This config.status script is free software; the Free Software Foundation
12161 gives unlimited permission to copy, distribute and modify it."
12162
12163 ac_pwd='$ac_pwd'
12164 srcdir='$srcdir'
12165 INSTALL='$INSTALL'
12166 AWK='$AWK'
12167 test -n "\$AWK" || AWK=awk
12168 _ACEOF
12169
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171 # The default lists apply if the user does not specify any file.
12172 ac_need_defaults=:
12173 while test $# != 0
12174 do
12175   case $1 in
12176   --*=?*)
12177     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12178     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12179     ac_shift=:
12180     ;;
12181   --*=)
12182     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12183     ac_optarg=
12184     ac_shift=:
12185     ;;
12186   *)
12187     ac_option=$1
12188     ac_optarg=$2
12189     ac_shift=shift
12190     ;;
12191   esac
12192
12193   case $ac_option in
12194   # Handling of the options.
12195   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12196     ac_cs_recheck=: ;;
12197   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12198     $as_echo "$ac_cs_version"; exit ;;
12199   --config | --confi | --conf | --con | --co | --c )
12200     $as_echo "$ac_cs_config"; exit ;;
12201   --debug | --debu | --deb | --de | --d | -d )
12202     debug=: ;;
12203   --file | --fil | --fi | --f )
12204     $ac_shift
12205     case $ac_optarg in
12206     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12207     '') as_fn_error $? "missing file argument" ;;
12208     esac
12209     as_fn_append CONFIG_FILES " '$ac_optarg'"
12210     ac_need_defaults=false;;
12211   --header | --heade | --head | --hea )
12212     $ac_shift
12213     case $ac_optarg in
12214     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12215     esac
12216     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12217     ac_need_defaults=false;;
12218   --he | --h)
12219     # Conflict between --help and --header
12220     as_fn_error $? "ambiguous option: \`$1'
12221 Try \`$0 --help' for more information.";;
12222   --help | --hel | -h )
12223     $as_echo "$ac_cs_usage"; exit ;;
12224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12225   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12226     ac_cs_silent=: ;;
12227
12228   # This is an error.
12229   -*) as_fn_error $? "unrecognized option: \`$1'
12230 Try \`$0 --help' for more information." ;;
12231
12232   *) as_fn_append ac_config_targets " $1"
12233      ac_need_defaults=false ;;
12234
12235   esac
12236   shift
12237 done
12238
12239 ac_configure_extra_args=
12240
12241 if $ac_cs_silent; then
12242   exec 6>/dev/null
12243   ac_configure_extra_args="$ac_configure_extra_args --silent"
12244 fi
12245
12246 _ACEOF
12247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12248 if \$ac_cs_recheck; then
12249   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12250   shift
12251   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12252   CONFIG_SHELL='$SHELL'
12253   export CONFIG_SHELL
12254   exec "\$@"
12255 fi
12256
12257 _ACEOF
12258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12259 exec 5>>config.log
12260 {
12261   echo
12262   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12263 ## Running $as_me. ##
12264 _ASBOX
12265   $as_echo "$ac_log"
12266 } >&5
12267
12268 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 #
12271 # INIT-COMMANDS
12272 #
12273 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12274     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12275     # from automake.
12276     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12277     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12278     LINGUAS="${LINGUAS-%UNSET%}"
12279
12280
12281 _ACEOF
12282
12283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12284
12285 # Handling of arguments.
12286 for ac_config_target in $ac_config_targets
12287 do
12288   case $ac_config_target in
12289     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12290     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12291     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12292
12293   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12294   esac
12295 done
12296
12297
12298 # If the user did not use the arguments to specify the items to instantiate,
12299 # then the envvar interface is used.  Set only those that are not.
12300 # We use the long form for the default assignment because of an extremely
12301 # bizarre bug on SunOS 4.1.3.
12302 if $ac_need_defaults; then
12303   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12304   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12305   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12306 fi
12307
12308 # Have a temporary directory for convenience.  Make it in the build tree
12309 # simply because there is no reason against having it here, and in addition,
12310 # creating and moving files from /tmp can sometimes cause problems.
12311 # Hook for its removal unless debugging.
12312 # Note that there is a small window in which the directory will not be cleaned:
12313 # after its creation but before its name has been assigned to `$tmp'.
12314 $debug ||
12315 {
12316   tmp= ac_tmp=
12317   trap 'exit_status=$?
12318   : "${ac_tmp:=$tmp}"
12319   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12320 ' 0
12321   trap 'as_fn_exit 1' 1 2 13 15
12322 }
12323 # Create a (secure) tmp directory for tmp files.
12324
12325 {
12326   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12327   test -d "$tmp"
12328 }  ||
12329 {
12330   tmp=./conf$$-$RANDOM
12331   (umask 077 && mkdir "$tmp")
12332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12333 ac_tmp=$tmp
12334
12335 # Set up the scripts for CONFIG_FILES section.
12336 # No need to generate them if there are no CONFIG_FILES.
12337 # This happens for instance with `./config.status config.h'.
12338 if test -n "$CONFIG_FILES"; then
12339
12340 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12341   ac_cs_awk_getline=:
12342   ac_cs_awk_pipe_init=
12343   ac_cs_awk_read_file='
12344       while ((getline aline < (F[key])) > 0)
12345         print(aline)
12346       close(F[key])'
12347   ac_cs_awk_pipe_fini=
12348 else
12349   ac_cs_awk_getline=false
12350   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12351   ac_cs_awk_read_file='
12352       print "|#_!!_#|"
12353       print "cat " F[key] " &&"
12354       '$ac_cs_awk_pipe_init
12355   # The final `:' finishes the AND list.
12356   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12357 fi
12358 ac_cr=`echo X | tr X '\015'`
12359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12360 # But we know of no other shell where ac_cr would be empty at this
12361 # point, so we can use a bashism as a fallback.
12362 if test "x$ac_cr" = x; then
12363   eval ac_cr=\$\'\\r\'
12364 fi
12365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12367   ac_cs_awk_cr='\\r'
12368 else
12369   ac_cs_awk_cr=$ac_cr
12370 fi
12371
12372 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12373 _ACEOF
12374
12375 # Create commands to substitute file output variables.
12376 {
12377   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12378   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12379   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12380   echo "_ACAWK" &&
12381   echo "_ACEOF"
12382 } >conf$$files.sh &&
12383 . ./conf$$files.sh ||
12384   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12385 rm -f conf$$files.sh
12386
12387 {
12388   echo "cat >conf$$subs.awk <<_ACEOF" &&
12389   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12390   echo "_ACEOF"
12391 } >conf$$subs.sh ||
12392   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12394 ac_delim='%!_!# '
12395 for ac_last_try in false false false false false :; do
12396   . ./conf$$subs.sh ||
12397     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12398
12399   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12400   if test $ac_delim_n = $ac_delim_num; then
12401     break
12402   elif $ac_last_try; then
12403     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12404   else
12405     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12406   fi
12407 done
12408 rm -f conf$$subs.sh
12409
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12412 _ACEOF
12413 sed -n '
12414 h
12415 s/^/S["/; s/!.*/"]=/
12416 p
12417 g
12418 s/^[^!]*!//
12419 :repl
12420 t repl
12421 s/'"$ac_delim"'$//
12422 t delim
12423 :nl
12424 h
12425 s/\(.\{148\}\)..*/\1/
12426 t more1
12427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12428 p
12429 n
12430 b repl
12431 :more1
12432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12433 p
12434 g
12435 s/.\{148\}//
12436 t nl
12437 :delim
12438 h
12439 s/\(.\{148\}\)..*/\1/
12440 t more2
12441 s/["\\]/\\&/g; s/^/"/; s/$/"/
12442 p
12443 b
12444 :more2
12445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12446 p
12447 g
12448 s/.\{148\}//
12449 t delim
12450 ' <conf$$subs.awk | sed '
12451 /^[^""]/{
12452   N
12453   s/\n//
12454 }
12455 ' >>$CONFIG_STATUS || ac_write_fail=1
12456 rm -f conf$$subs.awk
12457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12458 _ACAWK
12459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12460   for (key in S) S_is_set[key] = 1
12461   FS = "\a"
12462   \$ac_cs_awk_pipe_init
12463 }
12464 {
12465   line = $ 0
12466   nfields = split(line, field, "@")
12467   substed = 0
12468   len = length(field[1])
12469   for (i = 2; i < nfields; i++) {
12470     key = field[i]
12471     keylen = length(key)
12472     if (S_is_set[key]) {
12473       value = S[key]
12474       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12475       len += length(value) + length(field[++i])
12476       substed = 1
12477     } else
12478       len += 1 + keylen
12479   }
12480   if (nfields == 3 && !substed) {
12481     key = field[2]
12482     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12483       \$ac_cs_awk_read_file
12484       next
12485     }
12486   }
12487   print line
12488 }
12489 \$ac_cs_awk_pipe_fini
12490 _ACAWK
12491 _ACEOF
12492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12494   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12495 else
12496   cat
12497 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12498   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12499 _ACEOF
12500
12501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12503 # trailing colons and then remove the whole line if VPATH becomes empty
12504 # (actually we leave an empty line to preserve line numbers).
12505 if test "x$srcdir" = x.; then
12506   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12507 h
12508 s///
12509 s/^/:/
12510 s/[      ]*$/:/
12511 s/:\$(srcdir):/:/g
12512 s/:\${srcdir}:/:/g
12513 s/:@srcdir@:/:/g
12514 s/^:*//
12515 s/:*$//
12516 x
12517 s/\(=[   ]*\).*/\1/
12518 G
12519 s/\n//
12520 s/^[^=]*=[       ]*$//
12521 }'
12522 fi
12523
12524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525 fi # test -n "$CONFIG_FILES"
12526
12527 # Set up the scripts for CONFIG_HEADERS section.
12528 # No need to generate them if there are no CONFIG_HEADERS.
12529 # This happens for instance with `./config.status Makefile'.
12530 if test -n "$CONFIG_HEADERS"; then
12531 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12532 BEGIN {
12533 _ACEOF
12534
12535 # Transform confdefs.h into an awk script `defines.awk', embedded as
12536 # here-document in config.status, that substitutes the proper values into
12537 # config.h.in to produce config.h.
12538
12539 # Create a delimiter string that does not exist in confdefs.h, to ease
12540 # handling of long lines.
12541 ac_delim='%!_!# '
12542 for ac_last_try in false false :; do
12543   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12544   if test -z "$ac_tt"; then
12545     break
12546   elif $ac_last_try; then
12547     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12548   else
12549     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12550   fi
12551 done
12552
12553 # For the awk script, D is an array of macro values keyed by name,
12554 # likewise P contains macro parameters if any.  Preserve backslash
12555 # newline sequences.
12556
12557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12558 sed -n '
12559 s/.\{148\}/&'"$ac_delim"'/g
12560 t rset
12561 :rset
12562 s/^[     ]*#[    ]*define[       ][      ]*/ /
12563 t def
12564 d
12565 :def
12566 s/\\$//
12567 t bsnl
12568 s/["\\]/\\&/g
12569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12570 D["\1"]=" \3"/p
12571 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12572 d
12573 :bsnl
12574 s/["\\]/\\&/g
12575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12576 D["\1"]=" \3\\\\\\n"\\/p
12577 t cont
12578 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12579 t cont
12580 d
12581 :cont
12582 n
12583 s/.\{148\}/&'"$ac_delim"'/g
12584 t clear
12585 :clear
12586 s/\\$//
12587 t bsnlc
12588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12589 d
12590 :bsnlc
12591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12592 b cont
12593 ' <confdefs.h | sed '
12594 s/'"$ac_delim"'/"\\\
12595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12596
12597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12598   for (key in D) D_is_set[key] = 1
12599   FS = "\a"
12600 }
12601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12602   line = \$ 0
12603   split(line, arg, " ")
12604   if (arg[1] == "#") {
12605     defundef = arg[2]
12606     mac1 = arg[3]
12607   } else {
12608     defundef = substr(arg[1], 2)
12609     mac1 = arg[2]
12610   }
12611   split(mac1, mac2, "(") #)
12612   macro = mac2[1]
12613   prefix = substr(line, 1, index(line, defundef) - 1)
12614   if (D_is_set[macro]) {
12615     # Preserve the white space surrounding the "#".
12616     print prefix "define", macro P[macro] D[macro]
12617     next
12618   } else {
12619     # Replace #undef with comments.  This is necessary, for example,
12620     # in the case of _POSIX_SOURCE, which is predefined and required
12621     # on some systems where configure will not decide to define it.
12622     if (defundef == "undef") {
12623       print "/*", prefix defundef, macro, "*/"
12624       next
12625     }
12626   }
12627 }
12628 { print }
12629 _ACAWK
12630 _ACEOF
12631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12632   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12633 fi # test -n "$CONFIG_HEADERS"
12634
12635
12636 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12637 shift
12638 for ac_tag
12639 do
12640   case $ac_tag in
12641   :[FHLC]) ac_mode=$ac_tag; continue;;
12642   esac
12643   case $ac_mode$ac_tag in
12644   :[FHL]*:*);;
12645   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12646   :[FH]-) ac_tag=-:-;;
12647   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12648   esac
12649   ac_save_IFS=$IFS
12650   IFS=:
12651   set x $ac_tag
12652   IFS=$ac_save_IFS
12653   shift
12654   ac_file=$1
12655   shift
12656
12657   case $ac_mode in
12658   :L) ac_source=$1;;
12659   :[FH])
12660     ac_file_inputs=
12661     for ac_f
12662     do
12663       case $ac_f in
12664       -) ac_f="$ac_tmp/stdin";;
12665       *) # Look for the file first in the build tree, then in the source tree
12666          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12667          # because $ac_f cannot contain `:'.
12668          test -f "$ac_f" ||
12669            case $ac_f in
12670            [\\/$]*) false;;
12671            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12672            esac ||
12673            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12674       esac
12675       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12676       as_fn_append ac_file_inputs " '$ac_f'"
12677     done
12678
12679     # Let's still pretend it is `configure' which instantiates (i.e., don't
12680     # use $as_me), people would be surprised to read:
12681     #    /* config.h.  Generated by config.status.  */
12682     configure_input='Generated from '`
12683           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12684         `' by configure.'
12685     if test x"$ac_file" != x-; then
12686       configure_input="$ac_file.  $configure_input"
12687       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12688 $as_echo "$as_me: creating $ac_file" >&6;}
12689     fi
12690     # Neutralize special characters interpreted by sed in replacement strings.
12691     case $configure_input in #(
12692     *\&* | *\|* | *\\* )
12693        ac_sed_conf_input=`$as_echo "$configure_input" |
12694        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12695     *) ac_sed_conf_input=$configure_input;;
12696     esac
12697
12698     case $ac_tag in
12699     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12700       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12701     esac
12702     ;;
12703   esac
12704
12705   ac_dir=`$as_dirname -- "$ac_file" ||
12706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12707          X"$ac_file" : 'X\(//\)[^/]' \| \
12708          X"$ac_file" : 'X\(//\)$' \| \
12709          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12710 $as_echo X"$ac_file" |
12711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12712             s//\1/
12713             q
12714           }
12715           /^X\(\/\/\)[^/].*/{
12716             s//\1/
12717             q
12718           }
12719           /^X\(\/\/\)$/{
12720             s//\1/
12721             q
12722           }
12723           /^X\(\/\).*/{
12724             s//\1/
12725             q
12726           }
12727           s/.*/./; q'`
12728   as_dir="$ac_dir"; as_fn_mkdir_p
12729   ac_builddir=.
12730
12731 case "$ac_dir" in
12732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12733 *)
12734   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12735   # A ".." for each directory in $ac_dir_suffix.
12736   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12737   case $ac_top_builddir_sub in
12738   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12739   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12740   esac ;;
12741 esac
12742 ac_abs_top_builddir=$ac_pwd
12743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12744 # for backward compatibility:
12745 ac_top_builddir=$ac_top_build_prefix
12746
12747 case $srcdir in
12748   .)  # We are building in place.
12749     ac_srcdir=.
12750     ac_top_srcdir=$ac_top_builddir_sub
12751     ac_abs_top_srcdir=$ac_pwd ;;
12752   [\\/]* | ?:[\\/]* )  # Absolute name.
12753     ac_srcdir=$srcdir$ac_dir_suffix;
12754     ac_top_srcdir=$srcdir
12755     ac_abs_top_srcdir=$srcdir ;;
12756   *) # Relative name.
12757     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12758     ac_top_srcdir=$ac_top_build_prefix$srcdir
12759     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12760 esac
12761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12762
12763
12764   case $ac_mode in
12765   :F)
12766   #
12767   # CONFIG_FILE
12768   #
12769
12770   case $INSTALL in
12771   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12772   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12773   esac
12774 _ACEOF
12775
12776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12777 # If the template does not know about datarootdir, expand it.
12778 # FIXME: This hack should be removed a few years after 2.60.
12779 ac_datarootdir_hack=; ac_datarootdir_seen=
12780 ac_sed_dataroot='
12781 /datarootdir/ {
12782   p
12783   q
12784 }
12785 /@datadir@/p
12786 /@docdir@/p
12787 /@infodir@/p
12788 /@localedir@/p
12789 /@mandir@/p'
12790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12791 *datarootdir*) ac_datarootdir_seen=yes;;
12792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12795 _ACEOF
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797   ac_datarootdir_hack='
12798   s&@datadir@&$datadir&g
12799   s&@docdir@&$docdir&g
12800   s&@infodir@&$infodir&g
12801   s&@localedir@&$localedir&g
12802   s&@mandir@&$mandir&g
12803   s&\\\${datarootdir}&$datarootdir&g' ;;
12804 esac
12805 _ACEOF
12806
12807 # Neutralize VPATH when `$srcdir' = `.'.
12808 # Shell code in configure.ac might set extrasub.
12809 # FIXME: do we really want to maintain this feature?
12810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12811 ac_sed_extra="$ac_vpsub
12812 $extrasub
12813 _ACEOF
12814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815 :t
12816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12817 s|@configure_input@|$ac_sed_conf_input|;t t
12818 s&@top_builddir@&$ac_top_builddir_sub&;t t
12819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12820 s&@srcdir@&$ac_srcdir&;t t
12821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12822 s&@top_srcdir@&$ac_top_srcdir&;t t
12823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12824 s&@builddir@&$ac_builddir&;t t
12825 s&@abs_builddir@&$ac_abs_builddir&;t t
12826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12827 s&@INSTALL@&$ac_INSTALL&;t t
12828 $ac_datarootdir_hack
12829 "
12830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12831 if $ac_cs_awk_getline; then
12832   $AWK -f "$ac_tmp/subs.awk"
12833 else
12834   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12835 fi \
12836   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12837
12838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12839   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12840   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12841       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12842   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12843 which seems to be undefined.  Please make sure it is defined" >&5
12844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12845 which seems to be undefined.  Please make sure it is defined" >&2;}
12846
12847   rm -f "$ac_tmp/stdin"
12848   case $ac_file in
12849   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12850   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12851   esac \
12852   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12853  ;;
12854   :H)
12855   #
12856   # CONFIG_HEADER
12857   #
12858   if test x"$ac_file" != x-; then
12859     {
12860       $as_echo "/* $configure_input  */" \
12861       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12862     } >"$ac_tmp/config.h" \
12863       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12864     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12865       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12866 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12867     else
12868       rm -f "$ac_file"
12869       mv "$ac_tmp/config.h" "$ac_file" \
12870         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12871     fi
12872   else
12873     $as_echo "/* $configure_input  */" \
12874       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12875       || as_fn_error $? "could not create -" "$LINENO" 5
12876   fi
12877  ;;
12878
12879   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12880 $as_echo "$as_me: executing $ac_file commands" >&6;}
12881  ;;
12882   esac
12883
12884
12885   case $ac_file$ac_mode in
12886     "default-1":C)
12887     for ac_file in $CONFIG_FILES; do
12888       # Support "outfile[:infile[:infile...]]"
12889       case "$ac_file" in
12890         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12891       esac
12892       # PO directories have a Makefile.in generated from Makefile.in.in.
12893       case "$ac_file" in */Makefile.in)
12894         # Adjust a relative srcdir.
12895         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12896         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12897         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12898         # In autoconf-2.13 it is called $ac_given_srcdir.
12899         # In autoconf-2.50 it is called $srcdir.
12900         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12901         case "$ac_given_srcdir" in
12902           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12903           /*) top_srcdir="$ac_given_srcdir" ;;
12904           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12905         esac
12906         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12907           rm -f "$ac_dir/POTFILES"
12908           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12909           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12910           POMAKEFILEDEPS="POTFILES.in"
12911           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12912           # on $ac_dir but don't depend on user-specified configuration
12913           # parameters.
12914           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12915             # The LINGUAS file contains the set of available languages.
12916             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12917               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12918             fi
12919             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12920             # Hide the ALL_LINGUAS assigment from automake.
12921             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12922             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12923           else
12924             # The set of available languages was given in configure.in.
12925             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12926           fi
12927           # Compute POFILES
12928           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12929           # Compute UPDATEPOFILES
12930           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12931           # Compute DUMMYPOFILES
12932           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12933           # Compute GMOFILES
12934           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12935           case "$ac_given_srcdir" in
12936             .) srcdirpre= ;;
12937             *) srcdirpre='$(srcdir)/' ;;
12938           esac
12939           POFILES=
12940           UPDATEPOFILES=
12941           DUMMYPOFILES=
12942           GMOFILES=
12943           for lang in $ALL_LINGUAS; do
12944             POFILES="$POFILES $srcdirpre$lang.po"
12945             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12946             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12947             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12948           done
12949           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12950           # environment variable.
12951           INST_LINGUAS=
12952           if test -n "$ALL_LINGUAS"; then
12953             for presentlang in $ALL_LINGUAS; do
12954               useit=no
12955               if test "%UNSET%" != "$LINGUAS"; then
12956                 desiredlanguages="$LINGUAS"
12957               else
12958                 desiredlanguages="$ALL_LINGUAS"
12959               fi
12960               for desiredlang in $desiredlanguages; do
12961                 # Use the presentlang catalog if desiredlang is
12962                 #   a. equal to presentlang, or
12963                 #   b. a variant of presentlang (because in this case,
12964                 #      presentlang can be used as a fallback for messages
12965                 #      which are not translated in the desiredlang catalog).
12966                 case "$desiredlang" in
12967                   "$presentlang"*) useit=yes;;
12968                 esac
12969               done
12970               if test $useit = yes; then
12971                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12972               fi
12973             done
12974           fi
12975           CATALOGS=
12976           if test -n "$INST_LINGUAS"; then
12977             for lang in $INST_LINGUAS; do
12978               CATALOGS="$CATALOGS $lang.gmo"
12979             done
12980           fi
12981           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12982           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"
12983           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12984             if test -f "$f"; then
12985               case "$f" in
12986                 *.orig | *.bak | *~) ;;
12987                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12988               esac
12989             fi
12990           done
12991         fi
12992         ;;
12993       esac
12994     done ;;
12995
12996   esac
12997 done # for ac_tag
12998
12999
13000 as_fn_exit 0
13001 _ACEOF
13002 ac_clean_files=$ac_clean_files_save
13003
13004 test $ac_write_fail = 0 ||
13005   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13006
13007
13008 # configure is writing to config.log, and then calls config.status.
13009 # config.status does its own redirection, appending to config.log.
13010 # Unfortunately, on DOS this fails, as config.log is still kept open
13011 # by configure, so config.status won't be able to write to it; its
13012 # output is simply discarded.  So we exec the FD to /dev/null,
13013 # effectively closing config.log, so it can be properly (re)opened and
13014 # appended to by config.status.  When coming back to configure, we
13015 # need to make the FD available again.
13016 if test "$no_create" != yes; then
13017   ac_cs_success=:
13018   ac_config_status_args=
13019   test "$silent" = yes &&
13020     ac_config_status_args="$ac_config_status_args --quiet"
13021   exec 5>/dev/null
13022   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13023   exec 5>>config.log
13024   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13025   # would make configure fail if this is the last instruction.
13026   $ac_cs_success || as_fn_exit 1
13027 fi
13028 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13030 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13031 fi
13032
13033 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi