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 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 systemd_system_unit_dir
629 have_systemd
630 systemd_LIBS
631 systemd_CFLAGS
632 crond_dir
633 have_crond
634 pkg_udev_rules_dir
635 have_udev
636 udev_LIBS
637 udev_CFLAGS
638 LDFLAGS_SHLIB
639 CFLAGS_STLIB
640 CFLAGS_SHLIB
641 BUILD_LDFLAGS
642 BUILD_CFLAGS
643 INCLUDES
644 DO_TEST_SUITE
645 LDFLAGS_STATIC
646 root_sysconfdir
647 root_libdir
648 root_sbindir
649 root_bindir
650 root_prefix
651 E2SCRUB_CMT
652 UNIX_CMT
653 CYGWIN_CMT
654 LINUX_CMT
655 threadsan_ldflags
656 threadsan_cflags
657 have_threadsan
658 addrsan_ldflags
659 addrsan_cflags
660 have_addrsan
661 ubsan_ldflags
662 ubsan_cflags
663 have_ubsan
664 lto_ldflags
665 lto_cflags
666 have_lto
667 gcc_ranlib
668 gcc_ar
669 UNI_DIFF_OPTS
670 SEM_INIT_LIB
671 FUSE_CMT
672 FUSE_LIB
673 CLOCK_GETTIME_LIB
674 MAGIC_LIB
675 SOCKET_LIB
676 SIZEOF_TIME_T
677 SIZEOF_OFF_T
678 SIZEOF_LONG_LONG
679 SIZEOF_LONG
680 SIZEOF_INT
681 SIZEOF_SHORT
682 DD
683 BUILD_CC
684 MAKEINFO
685 STRIP
686 AR
687 LDCONFIG
688 PERL
689 AWK
690 CHMOD
691 RM
692 CP
693 MV
694 LN_S
695 LN
696 ifNotGNUmake
697 ifGNUmake
698 BINARY_TYPE
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 INTL_LIBTOOL_SUFFIX_PREFIX
704 INTLOBJS
705 GENCAT
706 INSTOBJEXT
707 DATADIRNAME
708 CATOBJEXT
709 USE_INCLUDED_LIBINTL
710 BUILD_INCLUDED_LIBINTL
711 LTLIBC
712 WINDRES
713 WOE32
714 WOE32DLL
715 HAVE_WPRINTF
716 HAVE_NEWLOCALE
717 HAVE_SNPRINTF
718 HAVE_ASPRINTF
719 HAVE_POSIX_PRINTF
720 INTL_DEFAULT_VERBOSITY
721 INTL_MACOSX_LIBS
722 GLIBC21
723 INTLBISON
724 LTLIBICONV
725 LIBICONV
726 LTLIBMULTITHREAD
727 LIBMULTITHREAD
728 LTLIBTHREAD
729 LIBTHREAD
730 LIBPTH_PREFIX
731 LTLIBPTH
732 LIBPTH
733 PRI_MACROS_BROKEN
734 ALLOCA
735 HAVE_VISIBILITY
736 CFLAG_VISIBILITY
737 RANLIB
738 GLIBC2
739 XGETTEXT_EXTRA_OPTIONS
740 MSGMERGE
741 XGETTEXT_015
742 XGETTEXT
743 GMSGFMT_015
744 MSGFMT_015
745 GMSGFMT
746 MSGFMT
747 GETTEXT_MACRO_VERSION
748 USE_NLS
749 SED
750 MKDIR_P
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 SET_MAKE
755 VERSION
756 PACKAGE
757 GETTEXT_PACKAGE
758 TDB_MAN_COMMENT
759 TDB_CMT
760 UUIDD_CMT
761 E2INITRD_MAN
762 E2INITRD_PROG
763 FSCK_MAN
764 FSCK_PROG
765 DEFRAG_CMT
766 RESIZER_CMT
767 IMAGER_CMT
768 DEBUGFS_CMT
769 ALL_CMT
770 BLKID_CMT
771 DEPPROFILED_LIBBLKID
772 PROFILED_LIBBLKID
773 DEPSTATIC_LIBBLKID
774 STATIC_LIBBLKID
775 DEPLIBBLKID
776 LIBBLKID
777 UUID_CMT
778 DEPPROFILED_LIBUUID
779 PROFILED_LIBUUID
780 DEPSTATIC_LIBUUID
781 STATIC_LIBUUID
782 DEPLIBUUID
783 LIBUUID
784 PKG_CONFIG_LIBDIR
785 PKG_CONFIG_PATH
786 PKG_CONFIG
787 TEST_IO_CMT
788 PRIVATE_LIBS_CMT
789 LDFLAG_DYNAMIC
790 PROFILED_LIB_EXT
791 STATIC_LIB_EXT
792 LIB_EXT
793 PROFILE_CMT
794 BSDLIB_CMT
795 ELF_CMT
796 Q
797 ES
798 E
799 LINK_BUILD_FLAGS
800 SYMLINK_RELATIVE
801 LINK_INSTALL_FLAGS
802 MAINTAINER_CMT
803 EGREP
804 GREP
805 CPP
806 RDYNAMIC
807 DLOPEN_LIB
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 E2FSPROGS_DATE
824 E2FSPROGS_PKGVER
825 E2FSPROGS_VERSION
826 E2FSPROGS_DAY
827 E2FSPROGS_MONTH
828 E2FSPROGS_YEAR
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 runstatedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files='MCONFIG
869 MAKEFILE_ELF
870 MAKEFILE_BSDLIB
871 MAKEFILE_PROFILE
872 MAKEFILE_LIBRARY
873 ASM_TYPES_HEADER
874 PUBLIC_CONFIG_HEADER'
875 ac_user_opts='
876 enable_option_checking
877 with_diet_libc
878 with_cc
879 with_ccopts
880 with_ldopts
881 with_root_prefix
882 enable_maintainer_mode
883 enable_symlink_install
884 enable_relative_symlinks
885 enable_symlink_relative_symlinks
886 enable_symlink_build
887 enable_verbose_makecmds
888 enable_elf_shlibs
889 enable_bsd_shlibs
890 enable_profile
891 enable_gcov
892 enable_hardening
893 enable_jbd_debug
894 enable_blkid_debug
895 enable_testio_debug
896 enable_libuuid
897 enable_libblkid
898 enable_subset
899 enable_backtrace
900 enable_debugfs
901 enable_imager
902 enable_resizer
903 enable_defrag
904 enable_fsck
905 enable_e2initrd_helper
906 enable_tls
907 enable_uuidd
908 enable_mmp
909 enable_tdb
910 enable_bmap_stats
911 enable_bmap_stats_ops
912 enable_nls
913 enable_threads
914 with_gnu_ld
915 enable_rpath
916 with_libpth_prefix
917 with_libiconv_prefix
918 with_included_gettext
919 with_libintl_prefix
920 enable_fuse2fs
921 enable_lto
922 enable_ubsan
923 enable_addrsan
924 enable_threadsan
925 with_multiarch
926 with_udev_rules_dir
927 with_crond_dir
928 with_systemd_unit_dir
929 '
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CPP
939 PKG_CONFIG
940 PKG_CONFIG_PATH
941 PKG_CONFIG_LIBDIR
942 udev_CFLAGS
943 udev_LIBS
944 systemd_CFLAGS
945 systemd_LIBS'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *=)   ac_optarg= ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082       as_fn_error $? "invalid feature name: $ac_useropt"
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096   | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100   | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102
1103   -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106
1107   -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113
1114   -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116   -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118
1119   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122   | --ht=*)
1123     htmldir=$ac_optarg ;;
1124
1125   -includedir | --includedir | --includedi | --included | --include \
1126   | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129   | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131
1132   -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136
1137   -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141
1142   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143   | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146   | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148
1149   -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153
1154   -localstatedir | --localstatedir | --localstatedi | --localstated \
1155   | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160
1161   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165
1166   -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169
1170   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171   | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173
1174   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177
1178   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180   | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186
1187   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191
1192   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193   | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198
1199   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200   | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205
1206   -program-transform-name | --program-transform-name \
1207   | --program-transform-nam | --program-transform-na \
1208   | --program-transform-n | --program-transform- \
1209   | --program-transform | --program-transfor \
1210   | --program-transfo | --program-transf \
1211   | --program-trans | --program-tran \
1212   | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214   -program-transform-name=* | --program-transform-name=* \
1215   | --program-transform-nam=* | --program-transform-na=* \
1216   | --program-transform-n=* | --program-transform-=* \
1217   | --program-transform=* | --program-transfor=* \
1218   | --program-transfo=* | --program-transf=* \
1219   | --program-trans=* | --program-tran=* \
1220   | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222
1223   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227
1228   -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232
1233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234   | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236
1237   -runstatedir | --runstatedir | --runstatedi | --runstated \
1238   | --runstate | --runstat | --runsta | --runst | --runs \
1239   | --run | --ru | --r)
1240     ac_prev=runstatedir ;;
1241   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243   | --run=* | --ru=* | --r=*)
1244     runstatedir=$ac_optarg ;;
1245
1246   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247     ac_prev=sbindir ;;
1248   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249   | --sbi=* | --sb=*)
1250     sbindir=$ac_optarg ;;
1251
1252   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254   | --sharedst | --shareds | --shared | --share | --shar \
1255   | --sha | --sh)
1256     ac_prev=sharedstatedir ;;
1257   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260   | --sha=* | --sh=*)
1261     sharedstatedir=$ac_optarg ;;
1262
1263   -site | --site | --sit)
1264     ac_prev=site ;;
1265   -site=* | --site=* | --sit=*)
1266     site=$ac_optarg ;;
1267
1268   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269     ac_prev=srcdir ;;
1270   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271     srcdir=$ac_optarg ;;
1272
1273   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274   | --syscon | --sysco | --sysc | --sys | --sy)
1275     ac_prev=sysconfdir ;;
1276   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278     sysconfdir=$ac_optarg ;;
1279
1280   -target | --target | --targe | --targ | --tar | --ta | --t)
1281     ac_prev=target_alias ;;
1282   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283     target_alias=$ac_optarg ;;
1284
1285   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286     verbose=yes ;;
1287
1288   -version | --version | --versio | --versi | --vers | -V)
1289     ac_init_version=: ;;
1290
1291   -with-* | --with-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error $? "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=\$ac_optarg ;;
1306
1307   -without-* | --without-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid package name: $ac_useropt"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval with_$ac_useropt=no ;;
1322
1323   --x)
1324     # Obsolete; use --with-x.
1325     with_x=yes ;;
1326
1327   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328   | --x-incl | --x-inc | --x-in | --x-i)
1329     ac_prev=x_includes ;;
1330   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332     x_includes=$ac_optarg ;;
1333
1334   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336     ac_prev=x_libraries ;;
1337   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339     x_libraries=$ac_optarg ;;
1340
1341   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1343     ;;
1344
1345   *=*)
1346     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347     # Reject names that are not valid shell variable names.
1348     case $ac_envvar in #(
1349       '' | [0-9]* | *[!_$as_cr_alnum]* )
1350       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351     esac
1352     eval $ac_envvar=\$ac_optarg
1353     export $ac_envvar ;;
1354
1355   *)
1356     # FIXME: should be removed in autoconf 3.0.
1357     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361     ;;
1362
1363   esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368   as_fn_error $? "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372   case $enable_option_checking in
1373     no) ;;
1374     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376   esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381                 datadir sysconfdir sharedstatedir localstatedir includedir \
1382                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383                 libdir localedir mandir runstatedir
1384 do
1385   eval ac_val=\$$ac_var
1386   # Remove trailing slashes.
1387   case $ac_val in
1388     */ )
1389       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390       eval $ac_var=\$ac_val;;
1391   esac
1392   # Be sure to have absolute directory names.
1393   case $ac_val in
1394     [\\/$]* | ?:[\\/]* )  continue;;
1395     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396   esac
1397   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409   if test "x$build_alias" = x; then
1410     cross_compiling=maybe
1411   elif test "x$build_alias" != "x$host_alias"; then
1412     cross_compiling=yes
1413   fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425   as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427   as_fn_error $? "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432   ac_srcdir_defaulted=yes
1433   # Try the directory containing this script, then the parent directory.
1434   ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436          X"$as_myself" : 'X\(//\)[^/]' \| \
1437          X"$as_myself" : 'X\(//\)$' \| \
1438          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)[^/].*/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)$/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\).*/{
1453             s//\1/
1454             q
1455           }
1456           s/.*/./; q'`
1457   srcdir=$ac_confdir
1458   if test ! -r "$srcdir/$ac_unique_file"; then
1459     srcdir=..
1460   fi
1461 else
1462   ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471         pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474   srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_env_${ac_var}_value=\$${ac_var}
1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493   # Omit some internal or obsolete options to make the list less imposing.
1494   # This message is too long to be a string in the A/UX 3.1 sh.
1495   cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506   -h, --help              display this help and exit
1507       --help=short        display options specific to this package
1508       --help=recursive    display the short help of all the included packages
1509   -V, --version           display version information and exit
1510   -q, --quiet, --silent   do not print \`checking ...' messages
1511       --cache-file=FILE   cache test results in FILE [disabled]
1512   -C, --config-cache      alias for \`--cache-file=config.cache'
1513   -n, --no-create         do not create output files
1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517   --prefix=PREFIX         install architecture-independent files in PREFIX
1518                           [$ac_default_prefix]
1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                           [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530   --bindir=DIR            user executables [EPREFIX/bin]
1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1537   --libdir=DIR            object code libraries [EPREFIX/lib]
1538   --includedir=DIR        C header files [PREFIX/include]
1539   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542   --infodir=DIR           info documentation [DATAROOTDIR/info]
1543   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544   --mandir=DIR            man documentation [DATAROOTDIR/man]
1545   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1546   --htmldir=DIR           html documentation [DOCDIR]
1547   --dvidir=DIR            dvi documentation [DOCDIR]
1548   --pdfdir=DIR            pdf documentation [DOCDIR]
1549   --psdir=DIR             ps documentation [DOCDIR]
1550 _ACEOF
1551
1552   cat <<\_ACEOF
1553
1554 System types:
1555   --build=BUILD     configure for building on BUILD [guessed]
1556   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561
1562   cat <<\_ACEOF
1563
1564 Optional Features:
1565   --disable-option-checking  ignore unrecognized --enable/--with options
1566   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568   --enable-maintainer-mode enable makefile rules useful for maintainers
1569   --enable-symlink-install use symlinks when installing instead of hard links
1570   --enable-relative-symlinks use relative symlinks when installing
1571
1572   --enable-symlink-build  use symlinks while building instead of hard links
1573   --enable-verbose-makecmds enable verbose make command output
1574   --enable-elf-shlibs     select ELF shared libraries
1575   --enable-bsd-shlibs     select BSD shared libraries
1576   --enable-profile        build profiling libraries
1577   --enable-gcov           build for coverage testing using gcov
1578   --enable-hardening              build for coverage testing using gcov
1579   --enable-jbd-debug      enable journal debugging
1580   --enable-blkid-debug    enable blkid debugging
1581   --disable-testio-debug  disable the use of the test I/O manager for debugging
1582   --enable-libuuid        build and use private uuid library
1583   --enable-libblkid       build and use private blkid library
1584   --enable-subset         enable subset-only build
1585   --disable-backtrace     disable use backtrace
1586   --disable-debugfs       disable support of debugfs program
1587   --disable-imager        disable support of e2image program
1588   --disable-resizer       disable support of e2resize program
1589   --disable-defrag        disable support of e4defrag program
1590   --enable-fsck           build fsck wrapper program
1591   --enable-e2initrd-helper build e2initrd-helper program
1592   --disable-tls           disable use of thread local support
1593   --disable-uuidd         disable building the uuid daemon
1594   --disable-mmp           disable support mmp, Multi Mount Protection
1595   --disable-tdb           disable tdb support
1596   --disable-bmap-stats    disable collection of bitmap stats.
1597   --enable-bmap-stats-ops enable collection of additional bitmap stats
1598   --disable-nls           do not use Native Language Support
1599   --enable-threads={posix|solaris|pth|windows}
1600                           specify multithreading API
1601   --disable-threads       build without multithread safety
1602   --disable-rpath         do not hardcode runtime library paths
1603   --disable-fuse2fs       do not build fuse2fs
1604   --enable-lto            enable link time optimization
1605   --enable-ubsan          enable undefined behavior sanitizer
1606   --enable-addrsan        enable address sanitizer
1607   --enable-threadsan      enable thread sanitizer
1608
1609 Optional Packages:
1610   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612   --with-diet-libc        use diet libc
1613   --with-cc               no longer supported, use CC= instead
1614   --with-ccopts           no longer supported, use CFLAGS= instead
1615   --with-ldopts           no longer supported, use LDFLAGS= instead
1616   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1617   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1619   --without-libpth-prefix     don't search for libpth in includedir and libdir
1620   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1621   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1622   --with-included-gettext use the GNU gettext library included here
1623   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1624   --without-libintl-prefix     don't search for libintl in includedir and libdir
1625   --with-multiarch=ARCH specify the multiarch triplet
1626   --with-udev-rules-dir[=DIR]
1627                           Install udev rules into DIR.
1628   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1629   --with-systemd-unit-dir[=DIR]
1630                           Install systemd system units into DIR.
1631
1632 Some influential environment variables:
1633   CC          C compiler command
1634   CFLAGS      C compiler flags
1635   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636               nonstandard directory <lib dir>
1637   LIBS        libraries to pass to the linker, e.g. -l<library>
1638   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639               you have headers in a nonstandard directory <include dir>
1640   CPP         C preprocessor
1641   PKG_CONFIG  path to pkg-config utility
1642   PKG_CONFIG_PATH
1643               directories to add to pkg-config's search path
1644   PKG_CONFIG_LIBDIR
1645               path overriding pkg-config's built-in search path
1646   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1647   udev_LIBS   linker flags for udev, overriding pkg-config
1648   systemd_CFLAGS
1649               C compiler flags for systemd, overriding pkg-config
1650   systemd_LIBS
1651               linker flags for systemd, overriding pkg-config
1652
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1655
1656 Report bugs to the package provider.
1657 _ACEOF
1658 ac_status=$?
1659 fi
1660
1661 if test "$ac_init_help" = "recursive"; then
1662   # If there are subdirs, report their specific --help.
1663   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664     test -d "$ac_dir" ||
1665       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666       continue
1667     ac_builddir=.
1668
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *)
1672   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673   # A ".." for each directory in $ac_dir_suffix.
1674   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675   case $ac_top_builddir_sub in
1676   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678   esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1684
1685 case $srcdir in
1686   .)  # We are building in place.
1687     ac_srcdir=.
1688     ac_top_srcdir=$ac_top_builddir_sub
1689     ac_abs_top_srcdir=$ac_pwd ;;
1690   [\\/]* | ?:[\\/]* )  # Absolute name.
1691     ac_srcdir=$srcdir$ac_dir_suffix;
1692     ac_top_srcdir=$srcdir
1693     ac_abs_top_srcdir=$srcdir ;;
1694   *) # Relative name.
1695     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696     ac_top_srcdir=$ac_top_build_prefix$srcdir
1697     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701     cd "$ac_dir" || { ac_status=$?; continue; }
1702     # Check for guested configure.
1703     if test -f "$ac_srcdir/configure.gnu"; then
1704       echo &&
1705       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706     elif test -f "$ac_srcdir/configure"; then
1707       echo &&
1708       $SHELL "$ac_srcdir/configure" --help=recursive
1709     else
1710       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711     fi || ac_status=$?
1712     cd "$ac_pwd" || { ac_status=$?; break; }
1713   done
1714 fi
1715
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1718   cat <<\_ACEOF
1719 configure
1720 generated by GNU Autoconf 2.69
1721
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1725 _ACEOF
1726   exit
1727 fi
1728
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1732
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   rm -f conftest.$ac_objext
1740   if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_compile") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && {
1756          test -z "$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        } && test -s conftest.$ac_objext; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_compile
1770
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext conftest$ac_exeext
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest$ac_exeext && {
1797          test "$cross_compiling" = yes ||
1798          test -x conftest$ac_exeext
1799        }; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805         ac_retval=1
1806 fi
1807   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809   # interfere with the next link command; also delete a directory that is
1810   # left behind by Apple's compiler.  We do this before executing the actions.
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_link
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } > conftest.i && {
1839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        }; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847     ac_retval=1
1848 fi
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1857 # the include files in INCLUDES and setting the cache variable VAR
1858 # accordingly.
1859 ac_fn_c_check_header_mongrel ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   if eval \${$3+:} false; then :
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866   $as_echo_n "(cached) " >&6
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 else
1872   # Is the header compilable?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1874 $as_echo_n "checking $2 usability... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $4
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   ac_header_compiler=yes
1882 else
1883   ac_header_compiler=no
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1887 $as_echo "$ac_header_compiler" >&6; }
1888
1889 # Is the header present?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1891 $as_echo_n "checking $2 presence... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_cpp "$LINENO"; then :
1897   ac_header_preproc=yes
1898 else
1899   ac_header_preproc=no
1900 fi
1901 rm -f conftest.err conftest.i conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1903 $as_echo "$ac_header_preproc" >&6; }
1904
1905 # So?  What about this header?
1906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1907   yes:no: )
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1909 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912     ;;
1913   no:yes:* )
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1915 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1917 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1919 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1921 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924     ;;
1925 esac
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   eval "$3=\$ac_header_compiler"
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 fi
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_header_mongrel
1940
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1944 # that executables *can* be run.
1945 ac_fn_c_try_run ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951   *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955   (eval "$ac_link") 2>&5
1956   ac_status=$?
1957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1959   { { case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_try") 2>&5
1966   ac_status=$?
1967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968   test $ac_status = 0; }; }; then :
1969   ac_retval=0
1970 else
1971   $as_echo "$as_me: program exited with status $ac_status" >&5
1972        $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975        ac_retval=$ac_status
1976 fi
1977   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979   as_fn_set_status $ac_retval
1980
1981 } # ac_fn_c_try_run
1982
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001   eval "$3=yes"
2002 else
2003   eval "$3=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$3
2008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_check_header_compile
2013
2014 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2015 # -------------------------------------------
2016 # Tests whether TYPE exists after having included INCLUDES, setting cache
2017 # variable VAR accordingly.
2018 ac_fn_c_check_type ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024   $as_echo_n "(cached) " >&6
2025 else
2026   eval "$3=no"
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 if (sizeof ($2))
2034          return 0;
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 if (sizeof (($2)))
2047             return 0;
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053
2054 else
2055   eval "$3=yes"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$3
2062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_type
2067
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2072 {
2073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077   $as_echo_n "(cached) " >&6
2078 else
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2083 #define $2 innocuous_$2
2084
2085 /* System header to define __stub macros and hopefully few prototypes,
2086     which can conflict with char $2 (); below.
2087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088     <limits.h> exists even on freestanding compilers.  */
2089
2090 #ifdef __STDC__
2091 # include <limits.h>
2092 #else
2093 # include <assert.h>
2094 #endif
2095
2096 #undef $2
2097
2098 /* Override any GCC internal prototype to avoid an error.
2099    Use char because int might match the return type of a GCC
2100    builtin and then its argument prototype would still apply.  */
2101 #ifdef __cplusplus
2102 extern "C"
2103 #endif
2104 char $2 ();
2105 /* The GNU C library defines this for functions which it implements
2106     to always fail with ENOSYS.  Some functions are actually named
2107     something starting with __ and the normal name is an alias.  */
2108 #if defined __stub_$2 || defined __stub___$2
2109 choke me
2110 #endif
2111
2112 int
2113 main ()
2114 {
2115 return $2 ();
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_link "$LINENO"; then :
2121   eval "$3=yes"
2122 else
2123   eval "$3=no"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext \
2126     conftest$ac_exeext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_func
2134
2135 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2136 # ---------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2138 # accordingly.
2139 ac_fn_c_check_decl ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   as_decl_name=`echo $2|sed 's/ *(.*//'`
2143   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2145 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2146 if eval \${$3+:} false; then :
2147   $as_echo_n "(cached) " >&6
2148 else
2149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 int
2153 main ()
2154 {
2155 #ifndef $as_decl_name
2156 #ifdef __cplusplus
2157   (void) $as_decl_use;
2158 #else
2159   (void) $as_decl_name;
2160 #endif
2161 #endif
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168   eval "$3=yes"
2169 else
2170   eval "$3=no"
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 fi
2174 eval ac_res=\$$3
2175                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179 } # ac_fn_c_check_decl
2180
2181 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2182 # --------------------------------------------
2183 # Tries to find the compile-time value of EXPR in a program that includes
2184 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 # computed
2186 ac_fn_c_compute_int ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   if test "$cross_compiling" = yes; then
2190     # Depending upon the size, compute the lo and hi bounds.
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) >= 0)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_lo=0 ac_mid=0
2207   while :; do
2208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2215 test_array [0] = 0;
2216 return test_array [0];
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223   ac_hi=$ac_mid; break
2224 else
2225   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2226                         if test $ac_lo -le $ac_mid; then
2227                           ac_lo= ac_hi=
2228                           break
2229                         fi
2230                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233   done
2234 else
2235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) < 0)];
2242 test_array [0] = 0;
2243 return test_array [0];
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   ac_hi=-1 ac_mid=-1
2251   while :; do
2252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2259 test_array [0] = 0;
2260 return test_array [0];
2261
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267   ac_lo=$ac_mid; break
2268 else
2269   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2270                         if test $ac_mid -le $ac_hi; then
2271                           ac_lo= ac_hi=
2272                           break
2273                         fi
2274                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277   done
2278 else
2279   ac_lo= ac_hi=
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 # Binary search between lo and hi bounds.
2285 while test "x$ac_lo" != "x$ac_hi"; do
2286   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int
2291 main ()
2292 {
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 test_array [0] = 0;
2295 return test_array [0];
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   ac_hi=$ac_mid
2303 else
2304   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 done
2308 case $ac_lo in #((
2309 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2310 '') ac_retval=1 ;;
2311 esac
2312   else
2313     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h.  */
2315 $4
2316 static long int longval () { return $2; }
2317 static unsigned long int ulongval () { return $2; }
2318 #include <stdio.h>
2319 #include <stdlib.h>
2320 int
2321 main ()
2322 {
2323
2324   FILE *f = fopen ("conftest.val", "w");
2325   if (! f)
2326     return 1;
2327   if (($2) < 0)
2328     {
2329       long int i = longval ();
2330       if (i != ($2))
2331         return 1;
2332       fprintf (f, "%ld", i);
2333     }
2334   else
2335     {
2336       unsigned long int i = ulongval ();
2337       if (i != ($2))
2338         return 1;
2339       fprintf (f, "%lu", i);
2340     }
2341   /* Do not output a trailing newline, as this causes \r\n confusion
2342      on some platforms.  */
2343   return ferror (f) || fclose (f) != 0;
2344
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_c_try_run "$LINENO"; then :
2350   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2351 else
2352   ac_retval=1
2353 fi
2354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2355   conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 rm -f conftest.val
2357
2358   fi
2359   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360   as_fn_set_status $ac_retval
2361
2362 } # ac_fn_c_compute_int
2363
2364 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2365 # ----------------------------------------------------
2366 # Tries to find if the field MEMBER exists in type AGGR, after including
2367 # INCLUDES, setting cache variable VAR accordingly.
2368 ac_fn_c_check_member ()
2369 {
2370   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2372 $as_echo_n "checking for $2.$3... " >&6; }
2373 if eval \${$4+:} false; then :
2374   $as_echo_n "(cached) " >&6
2375 else
2376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h.  */
2378 $5
2379 int
2380 main ()
2381 {
2382 static $2 ac_aggr;
2383 if (ac_aggr.$3)
2384 return 0;
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390   eval "$4=yes"
2391 else
2392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h.  */
2394 $5
2395 int
2396 main ()
2397 {
2398 static $2 ac_aggr;
2399 if (sizeof ac_aggr.$3)
2400 return 0;
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406   eval "$4=yes"
2407 else
2408   eval "$4=no"
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 eval ac_res=\$$4
2415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2416 $as_echo "$ac_res" >&6; }
2417   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2418
2419 } # ac_fn_c_check_member
2420 cat >config.log <<_ACEOF
2421 This file contains any messages produced by compilers while
2422 running configure, to aid debugging if configure makes a mistake.
2423
2424 It was created by $as_me, which was
2425 generated by GNU Autoconf 2.69.  Invocation command line was
2426
2427   $ $0 $@
2428
2429 _ACEOF
2430 exec 5>>config.log
2431 {
2432 cat <<_ASUNAME
2433 ## --------- ##
2434 ## Platform. ##
2435 ## --------- ##
2436
2437 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2438 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2439 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2440 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2441 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2442
2443 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2444 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2445
2446 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2447 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2448 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2449 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2450 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2451 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2452 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2453
2454 _ASUNAME
2455
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461     $as_echo "PATH: $as_dir"
2462   done
2463 IFS=$as_save_IFS
2464
2465 } >&5
2466
2467 cat >&5 <<_ACEOF
2468
2469
2470 ## ----------- ##
2471 ## Core tests. ##
2472 ## ----------- ##
2473
2474 _ACEOF
2475
2476
2477 # Keep a trace of the command line.
2478 # Strip out --no-create and --no-recursion so they do not pile up.
2479 # Strip out --silent because we don't want to record it for future runs.
2480 # Also quote any args containing shell meta-characters.
2481 # Make two passes to allow for proper duplicate-argument suppression.
2482 ac_configure_args=
2483 ac_configure_args0=
2484 ac_configure_args1=
2485 ac_must_keep_next=false
2486 for ac_pass in 1 2
2487 do
2488   for ac_arg
2489   do
2490     case $ac_arg in
2491     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2492     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2493     | -silent | --silent | --silen | --sile | --sil)
2494       continue ;;
2495     *\'*)
2496       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2497     esac
2498     case $ac_pass in
2499     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2500     2)
2501       as_fn_append ac_configure_args1 " '$ac_arg'"
2502       if test $ac_must_keep_next = true; then
2503         ac_must_keep_next=false # Got value, back to normal.
2504       else
2505         case $ac_arg in
2506           *=* | --config-cache | -C | -disable-* | --disable-* \
2507           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2508           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2509           | -with-* | --with-* | -without-* | --without-* | --x)
2510             case "$ac_configure_args0 " in
2511               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2512             esac
2513             ;;
2514           -* ) ac_must_keep_next=true ;;
2515         esac
2516       fi
2517       as_fn_append ac_configure_args " '$ac_arg'"
2518       ;;
2519     esac
2520   done
2521 done
2522 { ac_configure_args0=; unset ac_configure_args0;}
2523 { ac_configure_args1=; unset ac_configure_args1;}
2524
2525 # When interrupted or exit'd, cleanup temporary files, and complete
2526 # config.log.  We remove comments because anyway the quotes in there
2527 # would cause problems or look ugly.
2528 # WARNING: Use '\'' to represent an apostrophe within the trap.
2529 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2530 trap 'exit_status=$?
2531   # Save into config.log some information that might help in debugging.
2532   {
2533     echo
2534
2535     $as_echo "## ---------------- ##
2536 ## Cache variables. ##
2537 ## ---------------- ##"
2538     echo
2539     # The following way of writing the cache mishandles newlines in values,
2540 (
2541   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2542     eval ac_val=\$$ac_var
2543     case $ac_val in #(
2544     *${as_nl}*)
2545       case $ac_var in #(
2546       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2548       esac
2549       case $ac_var in #(
2550       _ | IFS | as_nl) ;; #(
2551       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2552       *) { eval $ac_var=; unset $ac_var;} ;;
2553       esac ;;
2554     esac
2555   done
2556   (set) 2>&1 |
2557     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2558     *${as_nl}ac_space=\ *)
2559       sed -n \
2560         "s/'\''/'\''\\\\'\'''\''/g;
2561           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2562       ;; #(
2563     *)
2564       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2565       ;;
2566     esac |
2567     sort
2568 )
2569     echo
2570
2571     $as_echo "## ----------------- ##
2572 ## Output variables. ##
2573 ## ----------------- ##"
2574     echo
2575     for ac_var in $ac_subst_vars
2576     do
2577       eval ac_val=\$$ac_var
2578       case $ac_val in
2579       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2580       esac
2581       $as_echo "$ac_var='\''$ac_val'\''"
2582     done | sort
2583     echo
2584
2585     if test -n "$ac_subst_files"; then
2586       $as_echo "## ------------------- ##
2587 ## File substitutions. ##
2588 ## ------------------- ##"
2589       echo
2590       for ac_var in $ac_subst_files
2591       do
2592         eval ac_val=\$$ac_var
2593         case $ac_val in
2594         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595         esac
2596         $as_echo "$ac_var='\''$ac_val'\''"
2597       done | sort
2598       echo
2599     fi
2600
2601     if test -s confdefs.h; then
2602       $as_echo "## ----------- ##
2603 ## confdefs.h. ##
2604 ## ----------- ##"
2605       echo
2606       cat confdefs.h
2607       echo
2608     fi
2609     test "$ac_signal" != 0 &&
2610       $as_echo "$as_me: caught signal $ac_signal"
2611     $as_echo "$as_me: exit $exit_status"
2612   } >&5
2613   rm -f core *.core core.conftest.* &&
2614     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2615     exit $exit_status
2616 ' 0
2617 for ac_signal in 1 2 13 15; do
2618   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2619 done
2620 ac_signal=0
2621
2622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2623 rm -f -r conftest* confdefs.h
2624
2625 $as_echo "/* confdefs.h */" > confdefs.h
2626
2627 # Predefined preprocessor variables.
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_NAME "$PACKAGE_NAME"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2639 _ACEOF
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_STRING "$PACKAGE_STRING"
2643 _ACEOF
2644
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2647 _ACEOF
2648
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_URL "$PACKAGE_URL"
2651 _ACEOF
2652
2653
2654 # Let the site file select an alternate cache file if it wants to.
2655 # Prefer an explicitly selected file to automatically selected ones.
2656 ac_site_file1=NONE
2657 ac_site_file2=NONE
2658 if test -n "$CONFIG_SITE"; then
2659   # We do not want a PATH search for config.site.
2660   case $CONFIG_SITE in #((
2661     -*)  ac_site_file1=./$CONFIG_SITE;;
2662     */*) ac_site_file1=$CONFIG_SITE;;
2663     *)   ac_site_file1=./$CONFIG_SITE;;
2664   esac
2665 elif test "x$prefix" != xNONE; then
2666   ac_site_file1=$prefix/share/config.site
2667   ac_site_file2=$prefix/etc/config.site
2668 else
2669   ac_site_file1=$ac_default_prefix/share/config.site
2670   ac_site_file2=$ac_default_prefix/etc/config.site
2671 fi
2672 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2673 do
2674   test "x$ac_site_file" = xNONE && continue
2675   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2676     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2677 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2678     sed 's/^/| /' "$ac_site_file" >&5
2679     . "$ac_site_file" \
2680       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682 as_fn_error $? "failed to load site script $ac_site_file
2683 See \`config.log' for more details" "$LINENO" 5; }
2684   fi
2685 done
2686
2687 if test -r "$cache_file"; then
2688   # Some versions of bash will fail to source /dev/null (special files
2689   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2690   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2691     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2692 $as_echo "$as_me: loading cache $cache_file" >&6;}
2693     case $cache_file in
2694       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2695       *)                      . "./$cache_file";;
2696     esac
2697   fi
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2700 $as_echo "$as_me: creating cache $cache_file" >&6;}
2701   >$cache_file
2702 fi
2703
2704 gt_needs="$gt_needs "
2705 as_fn_append ac_header_list " stdlib.h"
2706 as_fn_append ac_header_list " unistd.h"
2707 as_fn_append ac_header_list " sys/param.h"
2708 as_fn_append ac_func_list " symlink"
2709 # Check that the precious variables saved in the cache have kept the same
2710 # value.
2711 ac_cache_corrupted=false
2712 for ac_var in $ac_precious_vars; do
2713   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2714   eval ac_new_set=\$ac_env_${ac_var}_set
2715   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2716   eval ac_new_val=\$ac_env_${ac_var}_value
2717   case $ac_old_set,$ac_new_set in
2718     set,)
2719       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2720 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2721       ac_cache_corrupted=: ;;
2722     ,set)
2723       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2725       ac_cache_corrupted=: ;;
2726     ,);;
2727     *)
2728       if test "x$ac_old_val" != "x$ac_new_val"; then
2729         # differences in whitespace do not lead to failure.
2730         ac_old_val_w=`echo x $ac_old_val`
2731         ac_new_val_w=`echo x $ac_new_val`
2732         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2733           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2734 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2735           ac_cache_corrupted=:
2736         else
2737           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2738 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2739           eval $ac_var=\$ac_old_val
2740         fi
2741         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2742 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2743         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2744 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2745       fi;;
2746   esac
2747   # Pass precious variables to config.status.
2748   if test "$ac_new_set" = set; then
2749     case $ac_new_val in
2750     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2751     *) ac_arg=$ac_var=$ac_new_val ;;
2752     esac
2753     case " $ac_configure_args " in
2754       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2755       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756     esac
2757   fi
2758 done
2759 if $ac_cache_corrupted; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2763 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2764   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2765 fi
2766 ## -------------------- ##
2767 ## Main body of script. ##
2768 ## -------------------- ##
2769
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775
2776
2777
2778 ac_aux_dir=
2779 for ac_dir in config "$srcdir"/config; do
2780   if test -f "$ac_dir/install-sh"; then
2781     ac_aux_dir=$ac_dir
2782     ac_install_sh="$ac_aux_dir/install-sh -c"
2783     break
2784   elif test -f "$ac_dir/install.sh"; then
2785     ac_aux_dir=$ac_dir
2786     ac_install_sh="$ac_aux_dir/install.sh -c"
2787     break
2788   elif test -f "$ac_dir/shtool"; then
2789     ac_aux_dir=$ac_dir
2790     ac_install_sh="$ac_aux_dir/shtool install -c"
2791     break
2792   fi
2793 done
2794 if test -z "$ac_aux_dir"; then
2795   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2796 fi
2797
2798 # These three variables are undocumented and unsupported,
2799 # and are intended to be withdrawn in a future Autoconf release.
2800 # They can cause serious problems if a builder's source tree is in a directory
2801 # whose full name contains unusual characters.
2802 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2803 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2804 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2805
2806
2807 ac_config_headers="$ac_config_headers lib/config.h"
2808
2809
2810 MCONFIG=./MCONFIG
2811
2812 BINARY_TYPE=bin
2813 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2814         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2815 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2816         | tr \" " " | awk '{print $1}'`
2817 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2818 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2819 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2820
2821 if expr $YEAR ">" 1900 > /dev/null ; then
2822         E2FSPROGS_YEAR=$YEAR
2823 elif expr $YEAR ">" 90 >/dev/null ; then
2824         E2FSPROGS_YEAR=19$YEAR
2825 else
2826         E2FSPROGS_YEAR=20$YEAR
2827 fi
2828
2829 case $MONTH in
2830 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2831 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2832 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2833 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2834 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2835 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2836 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2837 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2838 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2839 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2840 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2841 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2842 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2843 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2844 esac
2845
2846 base_ver=`echo $E2FSPROGS_VERSION | \
2847                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2848
2849 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2850
2851 case $E2FSPROGS_VERSION in
2852 *-WIP|pre-*)
2853         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2854         ;;
2855 *)
2856         E2FSPROGS_PKGVER="$base_ver"
2857         ;;
2858 esac
2859
2860 unset DATE MONTH YEAR base_ver pre_vers date_spec
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2862 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2864 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2865
2866
2867
2868
2869
2870
2871 WITH_DIET_LIBC=
2872
2873 # Check whether --with-diet-libc was given.
2874 if test "${with_diet_libc+set}" = set; then :
2875   withval=$with_diet_libc; CC="diet cc -nostdinc"
2876 WITH_DIET_LIBC=yes
2877 if test -z "$LIBS"
2878 then
2879         LIBS="-lcompat"
2880 else
2881         LIBS="$LIBS -lcompat"
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2884 $as_echo "CC=$CC" >&6; }
2885 fi
2886 # Make sure we can run config.sub.
2887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2888   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2891 $as_echo_n "checking build system type... " >&6; }
2892 if ${ac_cv_build+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   ac_build_alias=$build_alias
2896 test "x$ac_build_alias" = x &&
2897   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2898 test "x$ac_build_alias" = x &&
2899   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2900 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2901   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2902
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2905 $as_echo "$ac_cv_build" >&6; }
2906 case $ac_cv_build in
2907 *-*-*) ;;
2908 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2909 esac
2910 build=$ac_cv_build
2911 ac_save_IFS=$IFS; IFS='-'
2912 set x $ac_cv_build
2913 shift
2914 build_cpu=$1
2915 build_vendor=$2
2916 shift; shift
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2919 build_os=$*
2920 IFS=$ac_save_IFS
2921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2922
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925 $as_echo_n "checking host system type... " >&6; }
2926 if ${ac_cv_host+:} false; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test "x$host_alias" = x; then
2930   ac_cv_host=$ac_cv_build
2931 else
2932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2933     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 fi
2935
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938 $as_echo "$ac_cv_host" >&6; }
2939 case $ac_cv_host in
2940 *-*-*) ;;
2941 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2942 esac
2943 host=$ac_cv_host
2944 ac_save_IFS=$IFS; IFS='-'
2945 set x $ac_cv_host
2946 shift
2947 host_cpu=$1
2948 host_vendor=$2
2949 shift; shift
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2952 host_os=$*
2953 IFS=$ac_save_IFS
2954 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2955
2956
2957 DLOPEN_LIB=''
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969   $as_echo_n "(cached) " >&6
2970 else
2971   if test -n "$CC"; then
2972   ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979     for ac_exec_ext in '' $ac_executable_extensions; do
2980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986   done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 if test -z "$ac_cv_prog_CC"; then
3003   ac_ct_CC=$CC
3004   # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   if test -n "$ac_ct_CC"; then
3012   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017   IFS=$as_save_IFS
3018   test -z "$as_dir" && as_dir=.
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021     ac_cv_prog_ac_ct_CC="gcc"
3022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023     break 2
3024   fi
3025 done
3026   done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040   if test "x$ac_ct_CC" = x; then
3041     CC=""
3042   else
3043     case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049     CC=$ac_ct_CC
3050   fi
3051 else
3052   CC="$ac_cv_prog_CC"
3053 fi
3054
3055 if test -z "$CC"; then
3056           if test -n "$ac_tool_prefix"; then
3057     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_CC+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$CC"; then
3065   ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_CC="${ac_tool_prefix}cc"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094   fi
3095 fi
3096 if test -z "$CC"; then
3097   # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$CC"; then
3105   ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107   ac_prog_rejected=no
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116        ac_prog_rejected=yes
3117        continue
3118      fi
3119     ac_cv_prog_CC="cc"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 if test $ac_prog_rejected = yes; then
3128   # We found a bogon in the path, so make sure we never use it.
3129   set dummy $ac_cv_prog_CC
3130   shift
3131   if test $# != 0; then
3132     # We chose a different compiler from the bogus one.
3133     # However, it has the same basename, so the bogon will be chosen
3134     # first if we set CC to just the basename; use the full file name.
3135     shift
3136     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137   fi
3138 fi
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$CC"; then
3153   if test -n "$ac_tool_prefix"; then
3154   for ac_prog in cl.exe
3155   do
3156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_CC+:} false; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test -n "$CC"; then
3164   ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171     for ac_exec_ext in '' $ac_executable_extensions; do
3172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193     test -n "$CC" && break
3194   done
3195 fi
3196 if test -z "$CC"; then
3197   ac_ct_CC=$CC
3198   for ac_prog in cl.exe
3199 do
3200   # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if test -n "$ac_ct_CC"; then
3208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217     ac_cv_prog_ac_ct_CC="$ac_prog"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237   test -n "$ac_ct_CC" && break
3238 done
3239
3240   if test "x$ac_ct_CC" = x; then
3241     CC=""
3242   else
3243     case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249     CC=$ac_ct_CC
3250   fi
3251 fi
3252
3253 fi
3254
3255
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details" "$LINENO" 5; }
3260
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 for ac_option in --version -v -V -qversion; do
3266   { { ac_try="$ac_compiler $ac_option >&5"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274   ac_status=$?
3275   if test -s conftest.err; then
3276     sed '10a\
3277 ... rest of stderr output deleted ...
3278          10q' conftest.err >conftest.er1
3279     cat conftest.er1 >&5
3280   fi
3281   rm -f conftest.er1 conftest.err
3282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283   test $ac_status = 0; }
3284 done
3285
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315   esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { { ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326   (eval "$ac_link_default") 2>&5
3327   ac_status=$?
3328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329   test $ac_status = 0; }; then :
3330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3336 do
3337   test -f "$ac_file" || continue
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340         ;;
3341     [ab].out )
3342         # We found the default executable, but exeext='' is most
3343         # certainly right.
3344         break;;
3345     *.* )
3346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347         then :; else
3348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349         fi
3350         # We set ac_cv_exeext here because the later test for it is not
3351         # safe: cross compilers may not add the suffix if given an `-o'
3352         # argument, so we may need to know it at that point already.
3353         # Even if this section looks crufty: it has the advantage of
3354         # actually working.
3355         break;;
3356     * )
3357         break;;
3358   esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362 else
3363   ac_file=''
3364 fi
3365 if test -z "$ac_file"; then :
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error 77 "C compiler cannot create executables
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3380 $as_echo_n "checking for C compiler default output file name... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3382 $as_echo "$ac_file" >&6; }
3383 ac_exeext=$ac_cv_exeext
3384
3385 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3386 ac_clean_files=$ac_clean_files_save
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3388 $as_echo_n "checking for suffix of executables... " >&6; }
3389 if { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396   (eval "$ac_link") 2>&5
3397   ac_status=$?
3398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399   test $ac_status = 0; }; then :
3400   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3401 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3402 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 # `rm'.
3404 for ac_file in conftest.exe conftest conftest.*; do
3405   test -f "$ac_file" || continue
3406   case $ac_file in
3407     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3408     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409           break;;
3410     * ) break;;
3411   esac
3412 done
3413 else
3414   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3417 See \`config.log' for more details" "$LINENO" 5; }
3418 fi
3419 rm -f conftest conftest$ac_cv_exeext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3421 $as_echo "$ac_cv_exeext" >&6; }
3422
3423 rm -f conftest.$ac_ext
3424 EXEEXT=$ac_cv_exeext
3425 ac_exeext=$EXEEXT
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428 #include <stdio.h>
3429 int
3430 main ()
3431 {
3432 FILE *f = fopen ("conftest.out", "w");
3433  return ferror (f) || fclose (f) != 0;
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 ac_clean_files="$ac_clean_files conftest.out"
3440 # Check that the compiler produces executables we can run.  If not, either
3441 # the compiler is broken, or we cross compile.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3443 $as_echo_n "checking whether we are cross compiling... " >&6; }
3444 if test "$cross_compiling" != yes; then
3445   { { ac_try="$ac_link"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452   (eval "$ac_link") 2>&5
3453   ac_status=$?
3454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455   test $ac_status = 0; }
3456   if { ac_try='./conftest$ac_cv_exeext'
3457   { { case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463   (eval "$ac_try") 2>&5
3464   ac_status=$?
3465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466   test $ac_status = 0; }; }; then
3467     cross_compiling=no
3468   else
3469     if test "$cross_compiling" = maybe; then
3470         cross_compiling=yes
3471     else
3472         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details" "$LINENO" 5; }
3477     fi
3478   fi
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3481 $as_echo "$cross_compiling" >&6; }
3482
3483 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3484 ac_clean_files=$ac_clean_files_save
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3486 $as_echo_n "checking for suffix of object files... " >&6; }
3487 if ${ac_cv_objext+:} false; then :
3488   $as_echo_n "(cached) " >&6
3489 else
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 rm -f conftest.o conftest.obj
3502 if { { ac_try="$ac_compile"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_compile") 2>&5
3510   ac_status=$?
3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512   test $ac_status = 0; }; then :
3513   for ac_file in conftest.o conftest.obj conftest.*; do
3514   test -f "$ac_file" || continue;
3515   case $ac_file in
3516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3518        break;;
3519   esac
3520 done
3521 else
3522   $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of object files: cannot compile
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3535 ac_objext=$OBJEXT
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3538 if ${ac_cv_c_compiler_gnu+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547 #ifndef __GNUC__
3548        choke me
3549 #endif
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556   ac_compiler_gnu=yes
3557 else
3558   ac_compiler_gnu=no
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3566 if test $ac_compiler_gnu = yes; then
3567   GCC=yes
3568 else
3569   GCC=
3570 fi
3571 ac_test_CFLAGS=${CFLAGS+set}
3572 ac_save_CFLAGS=$CFLAGS
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3575 if ${ac_cv_prog_cc_g+:} false; then :
3576   $as_echo_n "(cached) " >&6
3577 else
3578   ac_save_c_werror_flag=$ac_c_werror_flag
3579    ac_c_werror_flag=yes
3580    ac_cv_prog_cc_g=no
3581    CFLAGS="-g"
3582    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584
3585 int
3586 main ()
3587 {
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594   ac_cv_prog_cc_g=yes
3595 else
3596   CFLAGS=""
3597       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609
3610 else
3611   ac_c_werror_flag=$ac_save_c_werror_flag
3612          CFLAGS="-g"
3613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615
3616 int
3617 main ()
3618 {
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625   ac_cv_prog_cc_g=yes
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632    ac_c_werror_flag=$ac_save_c_werror_flag
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3635 $as_echo "$ac_cv_prog_cc_g" >&6; }
3636 if test "$ac_test_CFLAGS" = set; then
3637   CFLAGS=$ac_save_CFLAGS
3638 elif test $ac_cv_prog_cc_g = yes; then
3639   if test "$GCC" = yes; then
3640     CFLAGS="-g -O2"
3641   else
3642     CFLAGS="-g"
3643   fi
3644 else
3645   if test "$GCC" = yes; then
3646     CFLAGS="-O2"
3647   else
3648     CFLAGS=
3649   fi
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3653 if ${ac_cv_prog_cc_c89+:} false; then :
3654   $as_echo_n "(cached) " >&6
3655 else
3656   ac_cv_prog_cc_c89=no
3657 ac_save_CC=$CC
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660 #include <stdarg.h>
3661 #include <stdio.h>
3662 struct stat;
3663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3664 struct buf { int x; };
3665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666 static char *e (p, i)
3667      char **p;
3668      int i;
3669 {
3670   return p[i];
3671 }
3672 static char *f (char * (*g) (char **, int), char **p, ...)
3673 {
3674   char *s;
3675   va_list v;
3676   va_start (v,p);
3677   s = g (p, va_arg (v,int));
3678   va_end (v);
3679   return s;
3680 }
3681
3682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3683    function prototypes and stuff, but not '\xHH' hex character constants.
3684    These don't provoke an error unfortunately, instead are silently treated
3685    as 'x'.  The following induces an error, until -std is added to get
3686    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3687    array size at least.  It's necessary to write '\x00'==0 to get something
3688    that's true only with -std.  */
3689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690
3691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692    inside strings and character constants.  */
3693 #define FOO(x) 'x'
3694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 int argc;
3701 char **argv;
3702 int
3703 main ()
3704 {
3705 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 do
3713   CC="$ac_save_CC $ac_arg"
3714   if ac_fn_c_try_compile "$LINENO"; then :
3715   ac_cv_prog_cc_c89=$ac_arg
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext
3718   test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 done
3720 rm -f conftest.$ac_ext
3721 CC=$ac_save_CC
3722
3723 fi
3724 # AC_CACHE_VAL
3725 case "x$ac_cv_prog_cc_c89" in
3726   x)
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 $as_echo "none needed" >&6; } ;;
3729   xno)
3730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731 $as_echo "unsupported" >&6; } ;;
3732   *)
3733     CC="$CC $ac_cv_prog_cc_c89"
3734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 esac
3737 if test "x$ac_cv_prog_cc_c89" != xno; then :
3738
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3749 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3750 if ${ac_cv_lib_dl_dlopen+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   ac_check_lib_save_LIBS=$LIBS
3754 LIBS="-ldl  $LIBS"
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 /* Override any GCC internal prototype to avoid an error.
3759    Use char because int might match the return type of a GCC
3760    builtin and then its argument prototype would still apply.  */
3761 #ifdef __cplusplus
3762 extern "C"
3763 #endif
3764 char dlopen ();
3765 int
3766 main ()
3767 {
3768 return dlopen ();
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_link "$LINENO"; then :
3774   ac_cv_lib_dl_dlopen=yes
3775 else
3776   ac_cv_lib_dl_dlopen=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext \
3779     conftest$ac_exeext conftest.$ac_ext
3780 LIBS=$ac_check_lib_save_LIBS
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3783 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3784 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3785   DLOPEN_LIB=-ldl
3786 fi
3787
3788
3789
3790 # Check whether --with-cc was given.
3791 if test "${with_cc+set}" = set; then :
3792   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3793 fi
3794
3795
3796 # Check whether --with-ccopts was given.
3797 if test "${with_ccopts+set}" = set; then :
3798   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3799 fi
3800
3801
3802 # Check whether --with-ldopts was given.
3803 if test "${with_ldopts+set}" = set; then :
3804   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3805 fi
3806
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 if test -n "$ac_tool_prefix"; then
3813   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 $as_echo_n "checking for $ac_word... " >&6; }
3817 if ${ac_cv_prog_CC+:} false; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820   if test -n "$CC"; then
3821   ac_cv_prog_CC="$CC" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3825 do
3826   IFS=$as_save_IFS
3827   test -z "$as_dir" && as_dir=.
3828     for ac_exec_ext in '' $ac_executable_extensions; do
3829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832     break 2
3833   fi
3834 done
3835   done
3836 IFS=$as_save_IFS
3837
3838 fi
3839 fi
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3844 else
3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3847 fi
3848
3849
3850 fi
3851 if test -z "$ac_cv_prog_CC"; then
3852   ac_ct_CC=$CC
3853   # Extract the first word of "gcc", so it can be a program name with args.
3854 set dummy gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   if test -n "$ac_ct_CC"; then
3861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     ac_cv_prog_ac_ct_CC="gcc"
3871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872     break 2
3873   fi
3874 done
3875   done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 $as_echo "$ac_ct_CC" >&6; }
3884 else
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 fi
3888
3889   if test "x$ac_ct_CC" = x; then
3890     CC=""
3891   else
3892     case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898     CC=$ac_ct_CC
3899   fi
3900 else
3901   CC="$ac_cv_prog_CC"
3902 fi
3903
3904 if test -z "$CC"; then
3905           if test -n "$ac_tool_prefix"; then
3906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}cc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if ${ac_cv_prog_CC+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   if test -n "$CC"; then
3914   ac_cv_prog_CC="$CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     for ac_exec_ext in '' $ac_executable_extensions; do
3922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923     ac_cv_prog_CC="${ac_tool_prefix}cc"
3924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925     break 2
3926   fi
3927 done
3928   done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943   fi
3944 fi
3945 if test -z "$CC"; then
3946   # Extract the first word of "cc", so it can be a program name with args.
3947 set dummy cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if test -n "$CC"; then
3954   ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956   ac_prog_rejected=no
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962     for ac_exec_ext in '' $ac_executable_extensions; do
3963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3965        ac_prog_rejected=yes
3966        continue
3967      fi
3968     ac_cv_prog_CC="cc"
3969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973   done
3974 IFS=$as_save_IFS
3975
3976 if test $ac_prog_rejected = yes; then
3977   # We found a bogon in the path, so make sure we never use it.
3978   set dummy $ac_cv_prog_CC
3979   shift
3980   if test $# != 0; then
3981     # We chose a different compiler from the bogus one.
3982     # However, it has the same basename, so the bogon will be chosen
3983     # first if we set CC to just the basename; use the full file name.
3984     shift
3985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3986   fi
3987 fi
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$CC"; then
4002   if test -n "$ac_tool_prefix"; then
4003   for ac_prog in cl.exe
4004   do
4005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_prog_CC+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   if test -n "$CC"; then
4013   ac_cv_prog_CC="$CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020     for ac_exec_ext in '' $ac_executable_extensions; do
4021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027   done
4028 IFS=$as_save_IFS
4029
4030 fi
4031 fi
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 $as_echo "$CC" >&6; }
4036 else
4037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4039 fi
4040
4041
4042     test -n "$CC" && break
4043   done
4044 fi
4045 if test -z "$CC"; then
4046   ac_ct_CC=$CC
4047   for ac_prog in cl.exe
4048 do
4049   # Extract the first word of "$ac_prog", so it can be a program name with args.
4050 set dummy $ac_prog; ac_word=$2
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 $as_echo_n "checking for $ac_word... " >&6; }
4053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   if test -n "$ac_ct_CC"; then
4057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064     for ac_exec_ext in '' $ac_executable_extensions; do
4065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066     ac_cv_prog_ac_ct_CC="$ac_prog"
4067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068     break 2
4069   fi
4070 done
4071   done
4072 IFS=$as_save_IFS
4073
4074 fi
4075 fi
4076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4077 if test -n "$ac_ct_CC"; then
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4079 $as_echo "$ac_ct_CC" >&6; }
4080 else
4081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4083 fi
4084
4085
4086   test -n "$ac_ct_CC" && break
4087 done
4088
4089   if test "x$ac_ct_CC" = x; then
4090     CC=""
4091   else
4092     case $cross_compiling:$ac_tool_warned in
4093 yes:)
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096 ac_tool_warned=yes ;;
4097 esac
4098     CC=$ac_ct_CC
4099   fi
4100 fi
4101
4102 fi
4103
4104
4105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "no acceptable C compiler found in \$PATH
4108 See \`config.log' for more details" "$LINENO" 5; }
4109
4110 # Provide some information about the compiler.
4111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4112 set X $ac_compile
4113 ac_compiler=$2
4114 for ac_option in --version -v -V -qversion; do
4115   { { ac_try="$ac_compiler $ac_option >&5"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4123   ac_status=$?
4124   if test -s conftest.err; then
4125     sed '10a\
4126 ... rest of stderr output deleted ...
4127          10q' conftest.err >conftest.er1
4128     cat conftest.er1 >&5
4129   fi
4130   rm -f conftest.er1 conftest.err
4131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132   test $ac_status = 0; }
4133 done
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4137 if ${ac_cv_c_compiler_gnu+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146 #ifndef __GNUC__
4147        choke me
4148 #endif
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155   ac_compiler_gnu=yes
4156 else
4157   ac_compiler_gnu=no
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4161
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4165 if test $ac_compiler_gnu = yes; then
4166   GCC=yes
4167 else
4168   GCC=
4169 fi
4170 ac_test_CFLAGS=${CFLAGS+set}
4171 ac_save_CFLAGS=$CFLAGS
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4174 if ${ac_cv_prog_cc_g+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   ac_save_c_werror_flag=$ac_c_werror_flag
4178    ac_c_werror_flag=yes
4179    ac_cv_prog_cc_g=no
4180    CFLAGS="-g"
4181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183
4184 int
4185 main ()
4186 {
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193   ac_cv_prog_cc_g=yes
4194 else
4195   CFLAGS=""
4196       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208
4209 else
4210   ac_c_werror_flag=$ac_save_c_werror_flag
4211          CFLAGS="-g"
4212          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h.  */
4214
4215 int
4216 main ()
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224   ac_cv_prog_cc_g=yes
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231    ac_c_werror_flag=$ac_save_c_werror_flag
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4234 $as_echo "$ac_cv_prog_cc_g" >&6; }
4235 if test "$ac_test_CFLAGS" = set; then
4236   CFLAGS=$ac_save_CFLAGS
4237 elif test $ac_cv_prog_cc_g = yes; then
4238   if test "$GCC" = yes; then
4239     CFLAGS="-g -O2"
4240   else
4241     CFLAGS="-g"
4242   fi
4243 else
4244   if test "$GCC" = yes; then
4245     CFLAGS="-O2"
4246   else
4247     CFLAGS=
4248   fi
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if ${ac_cv_prog_cc_c89+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255   ac_cv_prog_cc_c89=no
4256 ac_save_CC=$CC
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259 #include <stdarg.h>
4260 #include <stdio.h>
4261 struct stat;
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4266      char **p;
4267      int i;
4268 {
4269   return p[i];
4270 }
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4272 {
4273   char *s;
4274   va_list v;
4275   va_start (v,p);
4276   s = g (p, va_arg (v,int));
4277   va_end (v);
4278   return s;
4279 }
4280
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4282    function prototypes and stuff, but not '\xHH' hex character constants.
4283    These don't provoke an error unfortunately, instead are silently treated
4284    as 'x'.  The following induces an error, until -std is added to get
4285    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4286    array size at least.  It's necessary to write '\x00'==0 to get something
4287    that's true only with -std.  */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291    inside strings and character constants.  */
4292 #define FOO(x) 'x'
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299 int argc;
4300 char **argv;
4301 int
4302 main ()
4303 {
4304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4305   ;
4306   return 0;
4307 }
4308 _ACEOF
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 do
4312   CC="$ac_save_CC $ac_arg"
4313   if ac_fn_c_try_compile "$LINENO"; then :
4314   ac_cv_prog_cc_c89=$ac_arg
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext
4317   test "x$ac_cv_prog_cc_c89" != "xno" && break
4318 done
4319 rm -f conftest.$ac_ext
4320 CC=$ac_save_CC
4321
4322 fi
4323 # AC_CACHE_VAL
4324 case "x$ac_cv_prog_cc_c89" in
4325   x)
4326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4328   xno)
4329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4331   *)
4332     CC="$CC $ac_cv_prog_cc_c89"
4333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335 esac
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4337
4338 fi
4339
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
4346 if test "$GCC" = yes; then
4347    RDYNAMIC="-rdynamic"
4348
4349 fi
4350 ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4359   CPP=
4360 fi
4361 if test -z "$CPP"; then
4362   if ${ac_cv_prog_CPP+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365       # Double quotes because CPP needs to be expanded
4366     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4367     do
4368       ac_preproc_ok=false
4369 for ac_c_preproc_warn_flag in '' yes
4370 do
4371   # Use a header file that comes with gcc, so configuring glibc
4372   # with a fresh cross-compiler works.
4373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374   # <limits.h> exists even on freestanding compilers.
4375   # On the NeXT, cc -E runs the code through the compiler's parser,
4376   # not just through cpp. "Syntax error" is here to catch this case.
4377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379 #ifdef __STDC__
4380 # include <limits.h>
4381 #else
4382 # include <assert.h>
4383 #endif
4384                      Syntax error
4385 _ACEOF
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4387
4388 else
4389   # Broken: fails on valid input.
4390 continue
4391 fi
4392 rm -f conftest.err conftest.i conftest.$ac_ext
4393
4394   # OK, works on sane cases.  Now check whether nonexistent headers
4395   # can be detected and how.
4396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h.  */
4398 #include <ac_nonexistent.h>
4399 _ACEOF
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401   # Broken: success on invalid input.
4402 continue
4403 else
4404   # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4407 fi
4408 rm -f conftest.err conftest.i conftest.$ac_ext
4409
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.i conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then :
4414   break
4415 fi
4416
4417     done
4418     ac_cv_prog_CPP=$CPP
4419
4420 fi
4421   CPP=$ac_cv_prog_CPP
4422 else
4423   ac_cv_prog_CPP=$CPP
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #ifdef __STDC__
4439 # include <limits.h>
4440 #else
4441 # include <assert.h>
4442 #endif
4443                      Syntax error
4444 _ACEOF
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4446
4447 else
4448   # Broken: fails on valid input.
4449 continue
4450 fi
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453   # OK, works on sane cases.  Now check whether nonexistent headers
4454   # can be detected and how.
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457 #include <ac_nonexistent.h>
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460   # Broken: success on invalid input.
4461 continue
4462 else
4463   # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4466 fi
4467 rm -f conftest.err conftest.i conftest.$ac_ext
4468
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.i conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4473
4474 else
4475   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details" "$LINENO" 5; }
4479 fi
4480
4481 ac_ext=c
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4488 $as_echo_n "checking for additional special compiler flags... " >&6; }
4489 if test "$GCC" = yes
4490 then
4491     case "$host_cpu" in
4492         alpha)          addcflags="-mieee" ;;
4493     esac
4494 fi
4495 if test "x$addcflags" != x
4496 then
4497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4498 $as_echo "$addcflags" >&6; }
4499     CFLAGS="$addcflags $CFLAGS"
4500 else
4501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4502 $as_echo "(none)" >&6; }
4503 fi
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4506 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4507 if ${ac_cv_path_GREP+:} false; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   if test -z "$GREP"; then
4511   ac_path_GREP_found=false
4512   # Loop through the user's path and test for each of PROGNAME-LIST
4513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518     for ac_prog in grep ggrep; do
4519     for ac_exec_ext in '' $ac_executable_extensions; do
4520       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4521       as_fn_executable_p "$ac_path_GREP" || continue
4522 # Check for GNU ac_path_GREP and select it if it is found.
4523   # Check for GNU $ac_path_GREP
4524 case `"$ac_path_GREP" --version 2>&1` in
4525 *GNU*)
4526   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4527 *)
4528   ac_count=0
4529   $as_echo_n 0123456789 >"conftest.in"
4530   while :
4531   do
4532     cat "conftest.in" "conftest.in" >"conftest.tmp"
4533     mv "conftest.tmp" "conftest.in"
4534     cp "conftest.in" "conftest.nl"
4535     $as_echo 'GREP' >> "conftest.nl"
4536     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538     as_fn_arith $ac_count + 1 && ac_count=$as_val
4539     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4540       # Best one so far, save it but keep looking for a better one
4541       ac_cv_path_GREP="$ac_path_GREP"
4542       ac_path_GREP_max=$ac_count
4543     fi
4544     # 10*(2^10) chars as input seems more than enough
4545     test $ac_count -gt 10 && break
4546   done
4547   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 esac
4549
4550       $ac_path_GREP_found && break 3
4551     done
4552   done
4553   done
4554 IFS=$as_save_IFS
4555   if test -z "$ac_cv_path_GREP"; then
4556     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557   fi
4558 else
4559   ac_cv_path_GREP=$GREP
4560 fi
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4564 $as_echo "$ac_cv_path_GREP" >&6; }
4565  GREP="$ac_cv_path_GREP"
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4569 $as_echo_n "checking for egrep... " >&6; }
4570 if ${ac_cv_path_EGREP+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4574    then ac_cv_path_EGREP="$GREP -E"
4575    else
4576      if test -z "$EGREP"; then
4577   ac_path_EGREP_found=false
4578   # Loop through the user's path and test for each of PROGNAME-LIST
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584     for ac_prog in egrep; do
4585     for ac_exec_ext in '' $ac_executable_extensions; do
4586       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4587       as_fn_executable_p "$ac_path_EGREP" || continue
4588 # Check for GNU ac_path_EGREP and select it if it is found.
4589   # Check for GNU $ac_path_EGREP
4590 case `"$ac_path_EGREP" --version 2>&1` in
4591 *GNU*)
4592   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4593 *)
4594   ac_count=0
4595   $as_echo_n 0123456789 >"conftest.in"
4596   while :
4597   do
4598     cat "conftest.in" "conftest.in" >"conftest.tmp"
4599     mv "conftest.tmp" "conftest.in"
4600     cp "conftest.in" "conftest.nl"
4601     $as_echo 'EGREP' >> "conftest.nl"
4602     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604     as_fn_arith $ac_count + 1 && ac_count=$as_val
4605     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4606       # Best one so far, save it but keep looking for a better one
4607       ac_cv_path_EGREP="$ac_path_EGREP"
4608       ac_path_EGREP_max=$ac_count
4609     fi
4610     # 10*(2^10) chars as input seems more than enough
4611     test $ac_count -gt 10 && break
4612   done
4613   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4615
4616       $ac_path_EGREP_found && break 3
4617     done
4618   done
4619   done
4620 IFS=$as_save_IFS
4621   if test -z "$ac_cv_path_EGREP"; then
4622     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623   fi
4624 else
4625   ac_cv_path_EGREP=$EGREP
4626 fi
4627
4628    fi
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4631 $as_echo "$ac_cv_path_EGREP" >&6; }
4632  EGREP="$ac_cv_path_EGREP"
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4636 $as_echo_n "checking for ANSI C header files... " >&6; }
4637 if ${ac_cv_header_stdc+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642 #include <stdlib.h>
4643 #include <stdarg.h>
4644 #include <string.h>
4645 #include <float.h>
4646
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656   ac_cv_header_stdc=yes
4657 else
4658   ac_cv_header_stdc=no
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661
4662 if test $ac_cv_header_stdc = yes; then
4663   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <string.h>
4667
4668 _ACEOF
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670   $EGREP "memchr" >/dev/null 2>&1; then :
4671
4672 else
4673   ac_cv_header_stdc=no
4674 fi
4675 rm -f conftest*
4676
4677 fi
4678
4679 if test $ac_cv_header_stdc = yes; then
4680   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h.  */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "free" >/dev/null 2>&1; then :
4688
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698   if test "$cross_compiling" = yes; then :
4699   :
4700 else
4701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h.  */
4703 #include <ctype.h>
4704 #include <stdlib.h>
4705 #if ((' ' & 0x0FF) == 0x020)
4706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4708 #else
4709 # define ISLOWER(c) \
4710                    (('a' <= (c) && (c) <= 'i') \
4711                      || ('j' <= (c) && (c) <= 'r') \
4712                      || ('s' <= (c) && (c) <= 'z'))
4713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4714 #endif
4715
4716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4717 int
4718 main ()
4719 {
4720   int i;
4721   for (i = 0; i < 256; i++)
4722     if (XOR (islower (i), ISLOWER (i))
4723         || toupper (i) != TOUPPER (i))
4724       return 2;
4725   return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_run "$LINENO"; then :
4729
4730 else
4731   ac_cv_header_stdc=no
4732 fi
4733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4734   conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 fi
4736
4737 fi
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4740 $as_echo "$ac_cv_header_stdc" >&6; }
4741 if test $ac_cv_header_stdc = yes; then
4742
4743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4744
4745 fi
4746
4747 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749                   inttypes.h stdint.h unistd.h
4750 do :
4751   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4753 "
4754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4755   cat >>confdefs.h <<_ACEOF
4756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4757 _ACEOF
4758
4759 fi
4760
4761 done
4762
4763
4764
4765   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4766 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4767   MINIX=yes
4768 else
4769   MINIX=
4770 fi
4771
4772
4773   if test "$MINIX" = yes; then
4774
4775 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4776
4777
4778 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4779
4780
4781 $as_echo "#define _MINIX 1" >>confdefs.h
4782
4783   fi
4784
4785
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4787 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4788 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793
4794 #         define __EXTENSIONS__ 1
4795           $ac_includes_default
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805   ac_cv_safe_to_define___extensions__=yes
4806 else
4807   ac_cv_safe_to_define___extensions__=no
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4812 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4813   test $ac_cv_safe_to_define___extensions__ = yes &&
4814     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4815
4816   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4817
4818   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4819
4820   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4821
4822   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4823
4824
4825 LIB_EXT=.a
4826 STATIC_LIB_EXT=.a
4827 PROFILED_LIB_EXT=.a
4828
4829 # Check whether --with-root-prefix was given.
4830 if test "${with_root_prefix+set}" = set; then :
4831   withval=$with_root_prefix; root_prefix=$withval
4832 else
4833   root_prefix=NONE
4834 fi
4835 # Check whether --enable-maintainer-mode was given.
4836 if test "${enable_maintainer_mode+set}" = set; then :
4837   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4838 then
4839         MAINTAINER_CMT=#
4840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4841 $as_echo "Disabling maintainer mode" >&6; }
4842 else
4843         MAINTAINER_CMT=
4844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4845 $as_echo "Enabling maintainer mode" >&6; }
4846 fi
4847
4848 else
4849   MAINTAINER_CMT=#
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4851 $as_echo "Disabling maintainer mode by default" >&6; }
4852
4853 fi
4854
4855
4856 # Check whether --enable-symlink-install was given.
4857 if test "${enable_symlink_install+set}" = set; then :
4858   enableval=$enable_symlink_install; if test "$enableval" = "no"
4859 then
4860         LINK_INSTALL_FLAGS=-f
4861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4862 $as_echo "Disabling symlinks for install" >&6; }
4863 else
4864         LINK_INSTALL_FLAGS=-sf
4865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4866 $as_echo "Enabling symlinks for install" >&6; }
4867 fi
4868
4869 else
4870   LINK_INSTALL_FLAGS=-f
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4872 $as_echo "Disabling symlinks for install by default" >&6; }
4873
4874 fi
4875
4876
4877 relative_symlink_defined=
4878 # Check whether --enable-relative-symlinks was given.
4879 if test "${enable_relative_symlinks+set}" = set; then :
4880   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4881 then
4882         SYMLINK_RELATIVE=
4883         relative_symlink_defined=yes
4884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4885 $as_echo "Disabling relative symlinks for install" >&6; }
4886 else
4887         SYMLINK_RELATIVE=--relative
4888         relative_symlink_defined=yes
4889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4890 $as_echo "Enabling relative symlinks for install" >&6; }
4891 fi
4892 fi
4893
4894 # Check whether --enable-symlink-relative-symlinks was given.
4895 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4896   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4897 then
4898         SYMLINK_RELATIVE=yes
4899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4900 $as_echo "Disabling relative symlinks for install" >&6; }
4901 else
4902         SYMLINK_RELATIVE=--relative
4903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4904 $as_echo "Enabling relative symlinks for install" >&6; }
4905 fi
4906
4907 else
4908   if test -z "$relative_symlink_defined"
4909 then
4910         SYMLINK_RELATIVE=
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4912 $as_echo "Disabling relative symlinks for install by default" >&6; }
4913 fi
4914
4915 fi
4916
4917
4918 # Check whether --enable-symlink-build was given.
4919 if test "${enable_symlink_build+set}" = set; then :
4920   enableval=$enable_symlink_build; if test "$enableval" = "no"
4921 then
4922         LINK_BUILD_FLAGS=
4923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4924 $as_echo "Disabling symlinks for build" >&6; }
4925 else
4926         LINK_BUILD_FLAGS=-s
4927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4928 $as_echo "Enabling symlinks for build" >&6; }
4929 fi
4930
4931 else
4932   LINK_BUILD_FLAGS=
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4934 $as_echo "Disabling symlinks for build by default" >&6; }
4935
4936 fi
4937
4938
4939 # Check whether --enable-verbose-makecmds was given.
4940 if test "${enable_verbose_makecmds+set}" = set; then :
4941   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4942 then
4943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4944 $as_echo "Disabling verbose make commands" >&6; }
4945         E=@echo
4946         ES=echo
4947         Q=@
4948 else
4949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4950 $as_echo "Enabling verbose make commands" >&6; }
4951         E=@\\#
4952         ES=\\#
4953         Q=
4954 fi
4955
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4958 $as_echo "Disabling verbose make commands" >&6; }
4959 E=@echo
4960 ES=echo
4961 Q=@
4962
4963 fi
4964
4965
4966
4967
4968 E2_PKG_CONFIG_STATIC=--static
4969 LDFLAG_DYNAMIC=
4970 PRIVATE_LIBS_CMT=
4971 # Check whether --enable-elf-shlibs was given.
4972 if test "${enable_elf_shlibs+set}" = set; then :
4973   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4974 then
4975         ELF_CMT=#
4976         MAKEFILE_ELF=/dev/null
4977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4978 $as_echo "Disabling ELF shared libraries" >&6; }
4979 else
4980         E2_PKG_CONFIG_STATIC=
4981         ELF_CMT=
4982         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4983         case "$host_os" in
4984         solaris2.*)
4985                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4986         ;;
4987         esac
4988         BINARY_TYPE=elfbin
4989         LIB_EXT=.so
4990         PRIVATE_LIBS_CMT=#
4991         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4993 $as_echo "Enabling ELF shared libraries" >&6; }
4994 fi
4995
4996 else
4997   MAKEFILE_ELF=/dev/null
4998 ELF_CMT=#
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5000 $as_echo "Disabling ELF shared libraries by default" >&6; }
5001
5002 fi
5003
5004
5005
5006 # Check whether --enable-bsd-shlibs was given.
5007 if test "${enable_bsd_shlibs+set}" = set; then :
5008   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5009 then
5010         BSDLIB_CMT=#
5011         MAKEFILE_BSDLIB=/dev/null
5012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5013 $as_echo "Disabling BSD shared libraries" >&6; }
5014 else
5015         E2_PKG_CONFIG_STATIC=
5016         BSDLIB_CMT=
5017         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5018         LIB_EXT=.so
5019         case "$host_os" in
5020         darwin*)
5021                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5022                 LIB_EXT=.dylib
5023         ;;
5024         esac
5025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5026 $as_echo "Enabling BSD shared libraries" >&6; }
5027 fi
5028
5029 else
5030   MAKEFILE_BSDLIB=/dev/null
5031 BSDLIB_CMT=#
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5033 $as_echo "Disabling BSD shared libraries by default" >&6; }
5034
5035 fi
5036
5037
5038
5039 # Check whether --enable-profile was given.
5040 if test "${enable_profile+set}" = set; then :
5041   enableval=$enable_profile; if test "$enableval" = "no"
5042 then
5043         PROFILE_CMT=#
5044         MAKEFILE_PROFILE=/dev/null
5045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5046 $as_echo "Disabling profiling libraries" >&6; }
5047 else
5048         PROFILE_CMT=
5049         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5050         PROFILED_LIB_EXT=_p.a
5051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5052 $as_echo "Building profiling libraries" >&6; }
5053 fi
5054
5055 else
5056   PROFILE_CMT=#
5057 MAKEFILE_PROFILE=/dev/null
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5059 $as_echo "Disabling profiling libraries by default" >&6; }
5060
5061 fi
5062
5063
5064
5065 # Check whether --enable-gcov was given.
5066 if test "${enable_gcov+set}" = set; then :
5067   enableval=$enable_gcov; if test "$enableval" = "yes"
5068 then
5069         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5070         LDFLAGS="-fprofile-arcs -ftest-coverage"
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5072 $as_echo "Enabling gcov support" >&6; }
5073 fi
5074
5075 fi
5076
5077 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5078 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5079 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5080 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5081 # Check whether --enable-hardening was given.
5082 if test "${enable_hardening+set}" = set; then :
5083   enableval=$enable_hardening; if test "$enableval" = "yes"
5084 then
5085         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5086         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5087         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5088         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5089         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5090         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5091         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5092         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5094 $as_echo "Enabling hardening support" >&6; }
5095 fi
5096
5097 fi
5098
5099
5100
5101
5102
5103
5104 # Check whether --enable-jbd-debug was given.
5105 if test "${enable_jbd_debug+set}" = set; then :
5106   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5107 then
5108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5109 $as_echo "Disabling journal debugging" >&6; }
5110 else
5111
5112 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5113
5114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5115 $as_echo "Enabling journal debugging" >&6; }
5116 fi
5117
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5120 $as_echo "Disabling journal debugging by default" >&6; }
5121
5122 fi
5123
5124 # Check whether --enable-blkid-debug was given.
5125 if test "${enable_blkid_debug+set}" = set; then :
5126   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5127 then
5128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5129 $as_echo "Disabling blkid debugging" >&6; }
5130 else
5131
5132 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5133
5134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5135 $as_echo "Enabling blkid debugging" >&6; }
5136 fi
5137
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5140 $as_echo "Disabling blkid debugging by default" >&6; }
5141
5142 fi
5143
5144 # Check whether --enable-testio-debug was given.
5145 if test "${enable_testio_debug+set}" = set; then :
5146   enableval=$enable_testio_debug;
5147 if test "$enableval" = "no"
5148 then
5149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5150 $as_echo "Disabling testio debugging" >&6; }
5151         TEST_IO_CMT="#"
5152 else
5153         TEST_IO_CMT=
5154         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5155
5156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5157 $as_echo "Enabling testio debugging" >&6; }
5158 fi
5159
5160 else
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5162 $as_echo "Enabling testio debugging by default" >&6; }
5163 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5164
5165 TEST_IO_CMT=
5166
5167 fi
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5178         if test -n "$ac_tool_prefix"; then
5179   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   case $PKG_CONFIG in
5187   [\\/]* | ?:[\\/]*)
5188   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5189   ;;
5190   *)
5191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH
5193 do
5194   IFS=$as_save_IFS
5195   test -z "$as_dir" && as_dir=.
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200     break 2
5201   fi
5202 done
5203   done
5204 IFS=$as_save_IFS
5205
5206   ;;
5207 esac
5208 fi
5209 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5210 if test -n "$PKG_CONFIG"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5212 $as_echo "$PKG_CONFIG" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 fi
5220 if test -z "$ac_cv_path_PKG_CONFIG"; then
5221   ac_pt_PKG_CONFIG=$PKG_CONFIG
5222   # Extract the first word of "pkg-config", so it can be a program name with args.
5223 set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   case $ac_pt_PKG_CONFIG in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5253 if test -n "$ac_pt_PKG_CONFIG"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5255 $as_echo "$ac_pt_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   if test "x$ac_pt_PKG_CONFIG" = x; then
5262     PKG_CONFIG=""
5263   else
5264     case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270     PKG_CONFIG=$ac_pt_PKG_CONFIG
5271   fi
5272 else
5273   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5274 fi
5275
5276 fi
5277 if test -n "$PKG_CONFIG"; then
5278         _pkg_min_version=0.9.0
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5280 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5281         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5282                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5283 $as_echo "yes" >&6; }
5284         else
5285                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287                 PKG_CONFIG=""
5288         fi
5289 fi
5290 LIBUUID=
5291 DEPLIBUUID=
5292 STATIC_LIBUUID=
5293 DEPSTATIC_LIBUUID=
5294 PROFILED_LIBUUID=
5295 DEPPROFILED_LIBUUID=
5296 UUID_CMT=
5297 # Check whether --enable-libuuid was given.
5298 if test "${enable_libuuid+set}" = set; then :
5299   enableval=$enable_libuuid; if test "$enableval" = "no"
5300 then
5301         if test -z "$PKG_CONFIG"; then
5302                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5303         fi
5304
5305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5306 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5307 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   ac_check_lib_save_LIBS=$LIBS
5311 LIBS="-luuid  $LIBS"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h.  */
5314
5315 /* Override any GCC internal prototype to avoid an error.
5316    Use char because int might match the return type of a GCC
5317    builtin and then its argument prototype would still apply.  */
5318 #ifdef __cplusplus
5319 extern "C"
5320 #endif
5321 char uuid_generate ();
5322 int
5323 main ()
5324 {
5325 return uuid_generate ();
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_link "$LINENO"; then :
5331   ac_cv_lib_uuid_uuid_generate=yes
5332 else
5333   ac_cv_lib_uuid_uuid_generate=no
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext \
5336     conftest$ac_exeext conftest.$ac_ext
5337 LIBS=$ac_check_lib_save_LIBS
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5340 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5341 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5342   LIBUUID=`$PKG_CONFIG --libs uuid`;
5343                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5344 else
5345   as_fn_error $? "external uuid library not found" "$LINENO" 5
5346 fi
5347
5348         PROFILED_LIBUUID=$LIBUUID
5349         UUID_CMT=#
5350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5351 $as_echo "Disabling private uuid library" >&6; }
5352 else
5353         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5354         DEPLIBUUID=$LIBUUID
5355         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5356         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5357         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5358         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5360 $as_echo "Enabling private uuid library" >&6; }
5361 fi
5362
5363 else
5364   if test -n "$PKG_CONFIG"; then
5365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5366 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5367 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   ac_check_lib_save_LIBS=$LIBS
5371 LIBS="-luuid  $LIBS"
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h.  */
5374
5375 /* Override any GCC internal prototype to avoid an error.
5376    Use char because int might match the return type of a GCC
5377    builtin and then its argument prototype would still apply.  */
5378 #ifdef __cplusplus
5379 extern "C"
5380 #endif
5381 char uuid_generate ();
5382 int
5383 main ()
5384 {
5385 return uuid_generate ();
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 if ac_fn_c_try_link "$LINENO"; then :
5391   ac_cv_lib_uuid_uuid_generate=yes
5392 else
5393   ac_cv_lib_uuid_uuid_generate=no
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext \
5396     conftest$ac_exeext conftest.$ac_ext
5397 LIBS=$ac_check_lib_save_LIBS
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5400 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5401 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5402   LIBUUID=`$PKG_CONFIG --libs uuid`;
5403                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5404 fi
5405
5406 fi
5407 if test -n "$LIBUUID"; then
5408         PROFILED_LIBUUID=$LIBUUID
5409         UUID_CMT=#
5410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5411 $as_echo "Using system uuid by default" >&6; }
5412 else
5413         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5414         DEPLIBUUID=$LIBUUID
5415         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5416         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5417         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5418         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5420 $as_echo "Enabling private uuid library by default" >&6; }
5421 fi
5422
5423 fi
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5440         if test -n "$ac_tool_prefix"; then
5441   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5442 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   case $PKG_CONFIG in
5449   [\\/]* | ?:[\\/]*)
5450   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5451   ;;
5452   *)
5453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468   ;;
5469 esac
5470 fi
5471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5472 if test -n "$PKG_CONFIG"; then
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5474 $as_echo "$PKG_CONFIG" >&6; }
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_path_PKG_CONFIG"; then
5483   ac_pt_PKG_CONFIG=$PKG_CONFIG
5484   # Extract the first word of "pkg-config", so it can be a program name with args.
5485 set dummy pkg-config; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491   case $ac_pt_PKG_CONFIG in
5492   [\\/]* | ?:[\\/]*)
5493   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5494   ;;
5495   *)
5496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_exec_ext in '' $ac_executable_extensions; do
5502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508   done
5509 IFS=$as_save_IFS
5510
5511   ;;
5512 esac
5513 fi
5514 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5515 if test -n "$ac_pt_PKG_CONFIG"; then
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5517 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5518 else
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523   if test "x$ac_pt_PKG_CONFIG" = x; then
5524     PKG_CONFIG=""
5525   else
5526     case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532     PKG_CONFIG=$ac_pt_PKG_CONFIG
5533   fi
5534 else
5535   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5536 fi
5537
5538 fi
5539 if test -n "$PKG_CONFIG"; then
5540         _pkg_min_version=0.9.0
5541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5542 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5543         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5545 $as_echo "yes" >&6; }
5546         else
5547                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549                 PKG_CONFIG=""
5550         fi
5551 fi
5552 LIBBLKID=
5553 DEPLIBBLKID=
5554 STATIC_LIBBLKID=
5555 DEPSTATIC_LIBBLKID=
5556 PROFILED_LIBBLKID=
5557 DEPPROFILED_LIBBLKID=
5558 BLKID_CMT=
5559
5560 # Check whether --enable-libblkid was given.
5561 if test "${enable_libblkid+set}" = set; then :
5562   enableval=$enable_libblkid; if test "$enableval" = "no"
5563 then
5564         if test -z "$PKG_CONFIG"; then
5565                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5566         fi
5567
5568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5569 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5570 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   ac_check_lib_save_LIBS=$LIBS
5574 LIBS="-lblkid -luuid $LIBS"
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577
5578 /* Override any GCC internal prototype to avoid an error.
5579    Use char because int might match the return type of a GCC
5580    builtin and then its argument prototype would still apply.  */
5581 #ifdef __cplusplus
5582 extern "C"
5583 #endif
5584 char blkid_get_cache ();
5585 int
5586 main ()
5587 {
5588 return blkid_get_cache ();
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_link "$LINENO"; then :
5594   ac_cv_lib_blkid_blkid_get_cache=yes
5595 else
5596   ac_cv_lib_blkid_blkid_get_cache=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext \
5599     conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5603 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5604 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5605   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5606                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5607 else
5608   as_fn_error $? "external blkid library not found" "$LINENO" 5
5609 fi
5610
5611         BLKID_CMT=#
5612         PROFILED_LIBBLKID=$LIBBLKID
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5614 $as_echo "Disabling private blkid library" >&6; }
5615 else
5616         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5617         DEPLIBBLKID=$LIBBLKID
5618         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5619         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5620         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5621         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5622         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5623
5624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5625 $as_echo "Enabling private blkid library" >&6; }
5626 fi
5627
5628 else
5629   if test -n "$PKG_CONFIG"; then
5630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5631 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5632 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   ac_check_lib_save_LIBS=$LIBS
5636 LIBS="-lblkid  $LIBS"
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h.  */
5639
5640 /* Override any GCC internal prototype to avoid an error.
5641    Use char because int might match the return type of a GCC
5642    builtin and then its argument prototype would still apply.  */
5643 #ifdef __cplusplus
5644 extern "C"
5645 #endif
5646 char blkid_get_cache ();
5647 int
5648 main ()
5649 {
5650 return blkid_get_cache ();
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_c_try_link "$LINENO"; then :
5656   ac_cv_lib_blkid_blkid_get_cache=yes
5657 else
5658   ac_cv_lib_blkid_blkid_get_cache=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext \
5661     conftest$ac_exeext conftest.$ac_ext
5662 LIBS=$ac_check_lib_save_LIBS
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5665 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5666 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5667   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5668                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5669 fi
5670
5671 fi
5672 if test -n "$LIBBLKID"; then
5673         BLKID_CMT=#
5674         PROFILED_LIBBLKID=$LIBBLKID
5675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5676 $as_echo "Using system blkid library by default" >&6; }
5677 else
5678         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5679         DEPLIBBLKID=$LIBBLKID
5680         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5681         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5682         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5683         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5684         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5685
5686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5687 $as_echo "Enabling private blkid library by default" >&6; }
5688 fi
5689
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698
5699 ALL_CMT=
5700 # Check whether --enable-subset was given.
5701 if test "${enable_subset+set}" = set; then :
5702   enableval=$enable_subset; if test "$enableval" = "no"
5703 then
5704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5705 $as_echo "Disabling subset-only build" >&6; }
5706 else
5707         ALL_CMT=#
5708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5709 $as_echo "Enabling subset-only-build" >&6; }
5710 fi
5711
5712 fi
5713
5714
5715
5716 # Check whether --enable-backtrace was given.
5717 if test "${enable_backtrace+set}" = set; then :
5718   enableval=$enable_backtrace; if test "$enableval" = "no"
5719 then
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5721 $as_echo "Disabling use of backtrace" >&6; }
5722         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5723
5724 else
5725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5726 $as_echo "Enabling use of backtrace" >&6; }
5727 fi
5728
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5731 $as_echo "Enabling use of backtrace by default" >&6; }
5732
5733 fi
5734
5735 # Check whether --enable-debugfs was given.
5736 if test "${enable_debugfs+set}" = set; then :
5737   enableval=$enable_debugfs; if test "$enableval" = "no"
5738 then
5739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5740 $as_echo "Disabling debugfs support" >&6; }
5741         DEBUGFS_CMT="#"
5742 else
5743         DEBUGFS_CMT=
5744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5745 $as_echo "Enabling debugfs support" >&6; }
5746 fi
5747
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5750 $as_echo "Enabling debugfs support by default" >&6; }
5751 DEBUGFS_CMT=
5752
5753 fi
5754
5755
5756 # Check whether --enable-imager was given.
5757 if test "${enable_imager+set}" = set; then :
5758   enableval=$enable_imager; if test "$enableval" = "no"
5759 then
5760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5761 $as_echo "Disabling e2image support" >&6; }
5762         IMAGER_CMT="#"
5763 else
5764         IMAGER_CMT=
5765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5766 $as_echo "Enabling e2image support" >&6; }
5767 fi
5768
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5771 $as_echo "Enabling e2image support by default" >&6; }
5772 IMAGER_CMT=
5773
5774 fi
5775
5776
5777 # Check whether --enable-resizer was given.
5778 if test "${enable_resizer+set}" = set; then :
5779   enableval=$enable_resizer; if test "$enableval" = "no"
5780 then
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5782 $as_echo "Disabling e2resize support" >&6; }
5783         RESIZER_CMT="#"
5784 else
5785         RESIZER_CMT=
5786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5787 $as_echo "Enabling e2resize support" >&6; }
5788 fi
5789
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5792 $as_echo "Enabling e2resize support by default" >&6; }
5793 RESIZER_CMT=
5794
5795 fi
5796
5797
5798 # Check whether --enable-defrag was given.
5799 if test "${enable_defrag+set}" = set; then :
5800   enableval=$enable_defrag; if test "$enableval" = "no"
5801 then
5802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5803 $as_echo "Disabling e4defrag support" >&6; }
5804         DEFRAG_CMT="#"
5805 else
5806         DEFRAG_CMT=
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5808 $as_echo "Enabling e4defrag support" >&6; }
5809 fi
5810
5811 else
5812   if test -z "$WITH_DIET_LIBC"
5813 then
5814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5815 $as_echo "Enabling e4defrag support by default" >&6; }
5816         DEFRAG_CMT=
5817 else
5818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5819 $as_echo "Disabling e4defrag support by default" >&6; }
5820         DEFRAG_CMT="#"
5821 fi
5822
5823 fi
5824
5825
5826 # Check whether --enable-fsck was given.
5827 if test "${enable_fsck+set}" = set; then :
5828   enableval=$enable_fsck; if test "$enableval" = "no"
5829 then
5830         FSCK_PROG='' FSCK_MAN=''
5831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5832 $as_echo "Not building fsck wrapper" >&6; }
5833 else
5834         FSCK_PROG=fsck FSCK_MAN=fsck.8
5835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5836 $as_echo "Building fsck wrapper" >&6; }
5837 fi
5838
5839 else
5840   case "$host_os" in
5841   gnu*)
5842     FSCK_PROG='' FSCK_MAN=''
5843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5844 $as_echo "Not building fsck wrapper by default" >&6; }
5845     ;;
5846   *)
5847     FSCK_PROG=fsck FSCK_MAN=fsck.8
5848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5849 $as_echo "Building fsck wrapper by default" >&6; }
5850 esac
5851
5852 fi
5853
5854
5855
5856 # Check whether --enable-e2initrd-helper was given.
5857 if test "${enable_e2initrd_helper+set}" = set; then :
5858   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5859 then
5860         E2INITRD_PROG='' E2INITRD_MAN=''
5861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5862 $as_echo "Not building e2initrd helper" >&6; }
5863 else
5864         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5866 $as_echo "Building e2initrd helper" >&6; }
5867 fi
5868
5869 else
5870   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5872 $as_echo "Building e2initrd helper by default" >&6; }
5873
5874 fi
5875
5876
5877
5878 # Check whether --enable-tls was given.
5879 if test "${enable_tls+set}" = set; then :
5880   enableval=$enable_tls; if test "$enableval" = "no"
5881 then
5882         try_tls=""
5883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5884 $as_echo "Disabling thread local support" >&6; }
5885 else
5886         try_tls="yes"
5887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5888 $as_echo "Enabling thread local support" >&6; }
5889 fi
5890
5891 else
5892   if test -n "$WITH_DIET_LIBC"
5893 then
5894         try_tls=""
5895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5896 $as_echo "Diet libc does not support thread local support" >&6; }
5897 else
5898         try_tls="yes"
5899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5900 $as_echo "Try using thread local support by default" >&6; }
5901 fi
5902
5903 fi
5904
5905 if test "$try_tls" = "yes"
5906 then
5907
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5909 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5910   if ${ac_cv_tls+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913
5914     ax_tls_keywords="__thread __declspec(thread) none"
5915     for ax_tls_keyword in $ax_tls_keywords; do
5916        case $ax_tls_keyword in
5917           none) ac_cv_tls=none ; break ;;
5918           *)
5919              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h.  */
5921 #include <stdlib.h>
5922                  static void
5923                  foo(void) {
5924                  static  $ax_tls_keyword  int bar;
5925                  exit(1);
5926                  }
5927 int
5928 main ()
5929 {
5930
5931   ;
5932   return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936   ac_cv_tls=$ax_tls_keyword ; break
5937 else
5938   ac_cv_tls=none
5939
5940 fi
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942           esac
5943     done
5944
5945 fi
5946
5947
5948   if test "$ac_cv_tls" != "none"; then
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define TLS $ac_cv_tls
5952 _ACEOF
5953
5954   fi
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5956 $as_echo "$ac_cv_tls" >&6; }
5957
5958 fi
5959
5960 # Check whether --enable-uuidd was given.
5961 if test "${enable_uuidd+set}" = set; then :
5962   enableval=$enable_uuidd; if test "$enableval" = "no"
5963 then
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5965 $as_echo "Not building uuidd" >&6; }
5966         UUIDD_CMT="#"
5967 else
5968         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5969
5970         UUIDD_CMT=""
5971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5972 $as_echo "Building uuidd" >&6; }
5973 fi
5974
5975 else
5976   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5977
5978 if test -z "$UUID_CMT"
5979 then
5980         UUIDD_CMT=""
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5982 $as_echo "Building uuidd by default" >&6; }
5983 else
5984         UUIDD_CMT="#"
5985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5986 $as_echo "Disabling uuidd by default" >&6; }
5987 fi
5988
5989 fi
5990
5991
5992
5993 # Check whether --enable-mmp was given.
5994 if test "${enable_mmp+set}" = set; then :
5995   enableval=$enable_mmp; if test "$enableval" = "no"
5996 then
5997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5998 $as_echo "Disabling mmp support" >&6; }
5999 else
6000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6001 $as_echo "Enabling mmp support" >&6; }
6002         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6003
6004 fi
6005
6006 else
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6008 $as_echo "Enabling mmp support by default" >&6; }
6009 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6010
6011
6012 fi
6013
6014
6015 # Check whether --enable-tdb was given.
6016 if test "${enable_tdb+set}" = set; then :
6017   enableval=$enable_tdb; if test "$enableval" = "no"
6018 then
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6020 $as_echo "Disabling tdb support" >&6; }
6021         TDB_CMT="#"
6022         TDB_MAN_COMMENT='.\"'
6023 else
6024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6025 $as_echo "Enabling tdb support" >&6; }
6026         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6027
6028         TDB_CMT=""
6029         TDB_MAN_COMMENT=""
6030 fi
6031
6032 else
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6034 $as_echo "Enabling mmp support by default" >&6; }
6035 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6036
6037 TDB_CMT=""
6038 TDB_MAN_COMMENT=""
6039
6040 fi
6041
6042
6043
6044
6045 # Check whether --enable-bmap-stats was given.
6046 if test "${enable_bmap_stats+set}" = set; then :
6047   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6048 then
6049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6050 $as_echo "Disabling bitmap statistics support" >&6; }
6051 else
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6053 $as_echo "Enabling bitmap statistics support" >&6; }
6054         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6055
6056 fi
6057
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6060 $as_echo "Enabling bitmap statistics support by default" >&6; }
6061 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6062
6063
6064 fi
6065
6066
6067 # Check whether --enable-bmap-stats-ops was given.
6068 if test "${enable_bmap_stats_ops+set}" = set; then :
6069   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6070 then
6071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6072 $as_echo "Disabling additional bitmap statistics" >&6; }
6073 else
6074                 if test "x${enable_bmap_stats}" = "xno"; then :
6075   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6077 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6078 See \`config.log' for more details" "$LINENO" 5; }
6079 fi
6080
6081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6082 $as_echo "Enabling additional bitmap statistics" >&6; }
6083         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6084
6085 fi
6086
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6089 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6090
6091 fi
6092
6093 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6094
6095 GETTEXT_PACKAGE=e2fsprogs
6096 PACKAGE=e2fsprogs
6097 VERSION="$E2FSPROGS_VERSION"
6098 VERSION=0.14.1
6099
6100 cat >>confdefs.h <<_ACEOF
6101 #define PACKAGE "$PACKAGE"
6102 _ACEOF
6103
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define VERSION "$VERSION"
6107 _ACEOF
6108
6109
6110
6111
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6114 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6115 set x ${MAKE-make}
6116 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6117 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   cat >conftest.make <<\_ACEOF
6121 SHELL = /bin/sh
6122 all:
6123         @echo '@@@%%%=$(MAKE)=@@@%%%'
6124 _ACEOF
6125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6126 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6127   *@@@%%%=?*=@@@%%%*)
6128     eval ac_cv_prog_make_${ac_make}_set=yes;;
6129   *)
6130     eval ac_cv_prog_make_${ac_make}_set=no;;
6131 esac
6132 rm -f conftest.make
6133 fi
6134 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6136 $as_echo "yes" >&6; }
6137   SET_MAKE=
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141   SET_MAKE="MAKE=${MAKE-make}"
6142 fi
6143
6144 # Find a good install program.  We prefer a C program (faster),
6145 # so one script is as good as another.  But avoid the broken or
6146 # incompatible versions:
6147 # SysV /etc/install, /usr/sbin/install
6148 # SunOS /usr/etc/install
6149 # IRIX /sbin/install
6150 # AIX /bin/install
6151 # AmigaOS /C/install, which installs bootblocks on floppy discs
6152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6155 # OS/2's system install, which has a completely different semantic
6156 # ./install, which can be erroneously created by make from ./install.sh.
6157 # Reject install programs that cannot install multiple files.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6160 if test -z "$INSTALL"; then
6161 if ${ac_cv_path_install+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169     # Account for people who put trailing slashes in PATH elements.
6170 case $as_dir/ in #((
6171   ./ | .// | /[cC]/* | \
6172   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6173   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6174   /usr/ucb/* ) ;;
6175   *)
6176     # OSF1 and SCO ODT 3.0 have their own names for install.
6177     # Don't use installbsd from OSF since it installs stuff as root
6178     # by default.
6179     for ac_prog in ginstall scoinst install; do
6180       for ac_exec_ext in '' $ac_executable_extensions; do
6181         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6182           if test $ac_prog = install &&
6183             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6184             # AIX install.  It has an incompatible calling convention.
6185             :
6186           elif test $ac_prog = install &&
6187             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6188             # program-specific install script used by HP pwplus--don't use.
6189             :
6190           else
6191             rm -rf conftest.one conftest.two conftest.dir
6192             echo one > conftest.one
6193             echo two > conftest.two
6194             mkdir conftest.dir
6195             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6196               test -s conftest.one && test -s conftest.two &&
6197               test -s conftest.dir/conftest.one &&
6198               test -s conftest.dir/conftest.two
6199             then
6200               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6201               break 3
6202             fi
6203           fi
6204         fi
6205       done
6206     done
6207     ;;
6208 esac
6209
6210   done
6211 IFS=$as_save_IFS
6212
6213 rm -rf conftest.one conftest.two conftest.dir
6214
6215 fi
6216   if test "${ac_cv_path_install+set}" = set; then
6217     INSTALL=$ac_cv_path_install
6218   else
6219     # As a last resort, use the slow shell script.  Don't cache a
6220     # value for INSTALL within a source directory, because that will
6221     # break other packages using the cache if that directory is
6222     # removed, or if the value is a relative name.
6223     INSTALL=$ac_install_sh
6224   fi
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6227 $as_echo "$INSTALL" >&6; }
6228
6229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6230 # It thinks the first close brace ends the variable substitution.
6231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6232
6233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6234
6235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6236
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6238 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6239 if test -z "$MKDIR_P"; then
6240   if ${ac_cv_path_mkdir+:} false; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_prog in mkdir gmkdir; do
6249          for ac_exec_ext in '' $ac_executable_extensions; do
6250            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6251            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6252              'mkdir (GNU coreutils) '* | \
6253              'mkdir (coreutils) '* | \
6254              'mkdir (fileutils) '4.1*)
6255                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6256                break 3;;
6257            esac
6258          done
6259        done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264
6265   test -d ./--version && rmdir ./--version
6266   if test "${ac_cv_path_mkdir+set}" = set; then
6267     MKDIR_P="$ac_cv_path_mkdir -p"
6268   else
6269     # As a last resort, use the slow shell script.  Don't cache a
6270     # value for MKDIR_P within a source directory, because that will
6271     # break other packages using the cache if that directory is
6272     # removed, or if the value is a relative name.
6273     MKDIR_P="$ac_install_sh -d"
6274   fi
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6277 $as_echo "$MKDIR_P" >&6; }
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6281 if ${ac_cv_path_SED+:} false; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6285      for ac_i in 1 2 3 4 5 6 7; do
6286        ac_script="$ac_script$as_nl$ac_script"
6287      done
6288      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6289      { ac_script=; unset ac_script;}
6290      if test -z "$SED"; then
6291   ac_path_SED_found=false
6292   # Loop through the user's path and test for each of PROGNAME-LIST
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_prog in sed gsed; do
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6301       as_fn_executable_p "$ac_path_SED" || continue
6302 # Check for GNU ac_path_SED and select it if it is found.
6303   # Check for GNU $ac_path_SED
6304 case `"$ac_path_SED" --version 2>&1` in
6305 *GNU*)
6306   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6307 *)
6308   ac_count=0
6309   $as_echo_n 0123456789 >"conftest.in"
6310   while :
6311   do
6312     cat "conftest.in" "conftest.in" >"conftest.tmp"
6313     mv "conftest.tmp" "conftest.in"
6314     cp "conftest.in" "conftest.nl"
6315     $as_echo '' >> "conftest.nl"
6316     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6318     as_fn_arith $ac_count + 1 && ac_count=$as_val
6319     if test $ac_count -gt ${ac_path_SED_max-0}; then
6320       # Best one so far, save it but keep looking for a better one
6321       ac_cv_path_SED="$ac_path_SED"
6322       ac_path_SED_max=$ac_count
6323     fi
6324     # 10*(2^10) chars as input seems more than enough
6325     test $ac_count -gt 10 && break
6326   done
6327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6328 esac
6329
6330       $ac_path_SED_found && break 3
6331     done
6332   done
6333   done
6334 IFS=$as_save_IFS
6335   if test -z "$ac_cv_path_SED"; then
6336     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6337   fi
6338 else
6339   ac_cv_path_SED=$SED
6340 fi
6341
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6344 $as_echo "$ac_cv_path_SED" >&6; }
6345  SED="$ac_cv_path_SED"
6346   rm -f conftest.sed
6347
6348
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6350 $as_echo_n "checking whether NLS is requested... " >&6; }
6351     # Check whether --enable-nls was given.
6352 if test "${enable_nls+set}" = set; then :
6353   enableval=$enable_nls; USE_NLS=$enableval
6354 else
6355   USE_NLS=yes
6356 fi
6357
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6359 $as_echo "$USE_NLS" >&6; }
6360
6361
6362
6363
6364       GETTEXT_MACRO_VERSION=0.18
6365
6366
6367
6368
6369 # Prepare PATH_SEPARATOR.
6370 # The user is always right.
6371 if test "${PATH_SEPARATOR+set}" != set; then
6372   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6373   # contains only /bin. Note that ksh looks also at the FPATH variable,
6374   # so we have to set that as well for the test.
6375   PATH_SEPARATOR=:
6376   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6377     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6378            || PATH_SEPARATOR=';'
6379        }
6380 fi
6381
6382 # Find out how to test for executable files. Don't use a zero-byte file,
6383 # as systems may use methods other than mode bits to determine executability.
6384 cat >conf$$.file <<_ASEOF
6385 #! /bin/sh
6386 exit 0
6387 _ASEOF
6388 chmod +x conf$$.file
6389 if test -x conf$$.file >/dev/null 2>&1; then
6390   ac_executable_p="test -x"
6391 else
6392   ac_executable_p="test -f"
6393 fi
6394 rm -f conf$$.file
6395
6396 # Extract the first word of "msgfmt", so it can be a program name with args.
6397 set dummy msgfmt; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_path_MSGFMT+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   case "$MSGFMT" in
6404   [\\/]* | ?:[\\/]*)
6405     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6406     ;;
6407   *)
6408     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6409     for ac_dir in $PATH; do
6410       IFS="$ac_save_IFS"
6411       test -z "$ac_dir" && ac_dir=.
6412       for ac_exec_ext in '' $ac_executable_extensions; do
6413         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6414           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6415           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6416      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6417             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6418             break 2
6419           fi
6420         fi
6421       done
6422     done
6423     IFS="$ac_save_IFS"
6424   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6425     ;;
6426 esac
6427 fi
6428 MSGFMT="$ac_cv_path_MSGFMT"
6429 if test "$MSGFMT" != ":"; then
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6431 $as_echo "$MSGFMT" >&6; }
6432 else
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6438 set dummy gmsgfmt; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_path_GMSGFMT+:} false; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   case $GMSGFMT in
6445   [\\/]* | ?:[\\/]*)
6446   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6447   ;;
6448   *)
6449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6465   ;;
6466 esac
6467 fi
6468 GMSGFMT=$ac_cv_path_GMSGFMT
6469 if test -n "$GMSGFMT"; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6471 $as_echo "$GMSGFMT" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478
6479     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6480     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6481     *) MSGFMT_015=$MSGFMT ;;
6482   esac
6483
6484   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6485     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6486     *) GMSGFMT_015=$GMSGFMT ;;
6487   esac
6488
6489
6490
6491 # Prepare PATH_SEPARATOR.
6492 # The user is always right.
6493 if test "${PATH_SEPARATOR+set}" != set; then
6494   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6495   # contains only /bin. Note that ksh looks also at the FPATH variable,
6496   # so we have to set that as well for the test.
6497   PATH_SEPARATOR=:
6498   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6499     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6500            || PATH_SEPARATOR=';'
6501        }
6502 fi
6503
6504 # Find out how to test for executable files. Don't use a zero-byte file,
6505 # as systems may use methods other than mode bits to determine executability.
6506 cat >conf$$.file <<_ASEOF
6507 #! /bin/sh
6508 exit 0
6509 _ASEOF
6510 chmod +x conf$$.file
6511 if test -x conf$$.file >/dev/null 2>&1; then
6512   ac_executable_p="test -x"
6513 else
6514   ac_executable_p="test -f"
6515 fi
6516 rm -f conf$$.file
6517
6518 # Extract the first word of "xgettext", so it can be a program name with args.
6519 set dummy xgettext; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_path_XGETTEXT+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   case "$XGETTEXT" in
6526   [\\/]* | ?:[\\/]*)
6527     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6528     ;;
6529   *)
6530     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6531     for ac_dir in $PATH; do
6532       IFS="$ac_save_IFS"
6533       test -z "$ac_dir" && ac_dir=.
6534       for ac_exec_ext in '' $ac_executable_extensions; do
6535         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6536           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6537           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6538      (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
6539             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6540             break 2
6541           fi
6542         fi
6543       done
6544     done
6545     IFS="$ac_save_IFS"
6546   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6547     ;;
6548 esac
6549 fi
6550 XGETTEXT="$ac_cv_path_XGETTEXT"
6551 if test "$XGETTEXT" != ":"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6553 $as_echo "$XGETTEXT" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559     rm -f messages.po
6560
6561     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6562     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6563     *) XGETTEXT_015=$XGETTEXT ;;
6564   esac
6565
6566
6567
6568 # Prepare PATH_SEPARATOR.
6569 # The user is always right.
6570 if test "${PATH_SEPARATOR+set}" != set; then
6571   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6572   # contains only /bin. Note that ksh looks also at the FPATH variable,
6573   # so we have to set that as well for the test.
6574   PATH_SEPARATOR=:
6575   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6576     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6577            || PATH_SEPARATOR=';'
6578        }
6579 fi
6580
6581 # Find out how to test for executable files. Don't use a zero-byte file,
6582 # as systems may use methods other than mode bits to determine executability.
6583 cat >conf$$.file <<_ASEOF
6584 #! /bin/sh
6585 exit 0
6586 _ASEOF
6587 chmod +x conf$$.file
6588 if test -x conf$$.file >/dev/null 2>&1; then
6589   ac_executable_p="test -x"
6590 else
6591   ac_executable_p="test -f"
6592 fi
6593 rm -f conf$$.file
6594
6595 # Extract the first word of "msgmerge", so it can be a program name with args.
6596 set dummy msgmerge; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_path_MSGMERGE+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   case "$MSGMERGE" in
6603   [\\/]* | ?:[\\/]*)
6604     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6605     ;;
6606   *)
6607     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6608     for ac_dir in $PATH; do
6609       IFS="$ac_save_IFS"
6610       test -z "$ac_dir" && ac_dir=.
6611       for ac_exec_ext in '' $ac_executable_extensions; do
6612         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6613           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6614           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6615             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6616             break 2
6617           fi
6618         fi
6619       done
6620     done
6621     IFS="$ac_save_IFS"
6622   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6623     ;;
6624 esac
6625 fi
6626 MSGMERGE="$ac_cv_path_MSGMERGE"
6627 if test "$MSGMERGE" != ":"; then
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6629 $as_echo "$MSGMERGE" >&6; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636         test -n "$localedir" || localedir='${datadir}/locale'
6637
6638
6639     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6640
6641
6642   ac_config_commands="$ac_config_commands po-directories"
6643
6644
6645
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6647 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6648 if ${ac_cv_gnu_library_2+:} false; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h.  */
6653
6654 #include <features.h>
6655 #ifdef __GNU_LIBRARY__
6656  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6657   Lucky GNU user
6658  #endif
6659 #endif
6660
6661 _ACEOF
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6664   ac_cv_gnu_library_2=yes
6665 else
6666   ac_cv_gnu_library_2=no
6667 fi
6668 rm -f conftest*
6669
6670
6671
6672 fi
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6674 $as_echo "$ac_cv_gnu_library_2" >&6; }
6675
6676     GLIBC2="$ac_cv_gnu_library_2"
6677
6678
6679 if test -n "$ac_tool_prefix"; then
6680   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_RANLIB+:} false; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$RANLIB"; then
6688   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 RANLIB=$ac_cv_prog_RANLIB
6708 if test -n "$RANLIB"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6710 $as_echo "$RANLIB" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_RANLIB"; then
6719   ac_ct_RANLIB=$RANLIB
6720   # Extract the first word of "ranlib", so it can be a program name with args.
6721 set dummy ranlib; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$ac_ct_RANLIB"; then
6728   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737     ac_cv_prog_ac_ct_RANLIB="ranlib"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6748 if test -n "$ac_ct_RANLIB"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6750 $as_echo "$ac_ct_RANLIB" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756   if test "x$ac_ct_RANLIB" = x; then
6757     RANLIB=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     RANLIB=$ac_ct_RANLIB
6766   fi
6767 else
6768   RANLIB="$ac_cv_prog_RANLIB"
6769 fi
6770
6771
6772
6773   CFLAG_VISIBILITY=
6774   HAVE_VISIBILITY=0
6775   if test -n "$GCC"; then
6776                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6777 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6778     if ${gl_cv_cc_vis_werror+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781
6782       gl_save_CFLAGS="$CFLAGS"
6783       CFLAGS="$CFLAGS -Werror"
6784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786
6787 int
6788 main ()
6789 {
6790
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796   gl_cv_cc_vis_werror=yes
6797 else
6798   gl_cv_cc_vis_werror=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801       CFLAGS="$gl_save_CFLAGS"
6802 fi
6803
6804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6805 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6807 $as_echo_n "checking for simple visibility declarations... " >&6; }
6808     if ${gl_cv_cc_visibility+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811
6812       gl_save_CFLAGS="$CFLAGS"
6813       CFLAGS="$CFLAGS -fvisibility=hidden"
6814                                     if test $gl_cv_cc_vis_werror = yes; then
6815         CFLAGS="$CFLAGS -Werror"
6816       fi
6817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h.  */
6819 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6820              extern __attribute__((__visibility__("default"))) int exportedvar;
6821              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6822              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6823              void dummyfunc (void) {}
6824
6825 int
6826 main ()
6827 {
6828
6829   ;
6830   return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834   gl_cv_cc_visibility=yes
6835 else
6836   gl_cv_cc_visibility=no
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839       CFLAGS="$gl_save_CFLAGS"
6840 fi
6841
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6843 $as_echo "$gl_cv_cc_visibility" >&6; }
6844     if test $gl_cv_cc_visibility = yes; then
6845       CFLAG_VISIBILITY="-fvisibility=hidden"
6846       HAVE_VISIBILITY=1
6847     fi
6848   fi
6849
6850
6851
6852 cat >>confdefs.h <<_ACEOF
6853 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6854 _ACEOF
6855
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6858 $as_echo_n "checking for inline... " >&6; }
6859 if ${ac_cv_c_inline+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   ac_cv_c_inline=no
6863 for ac_kw in inline __inline__ __inline; do
6864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h.  */
6866 #ifndef __cplusplus
6867 typedef int foo_t;
6868 static $ac_kw foo_t static_foo () {return 0; }
6869 $ac_kw foo_t foo () {return 0; }
6870 #endif
6871
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874   ac_cv_c_inline=$ac_kw
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877   test "$ac_cv_c_inline" != no && break
6878 done
6879
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6882 $as_echo "$ac_cv_c_inline" >&6; }
6883
6884 case $ac_cv_c_inline in
6885   inline | yes) ;;
6886   *)
6887     case $ac_cv_c_inline in
6888       no) ac_val=;;
6889       *) ac_val=$ac_cv_c_inline;;
6890     esac
6891     cat >>confdefs.h <<_ACEOF
6892 #ifndef __cplusplus
6893 #define inline $ac_val
6894 #endif
6895 _ACEOF
6896     ;;
6897 esac
6898
6899 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6900 if test "x$ac_cv_type_size_t" = xyes; then :
6901
6902 else
6903
6904 cat >>confdefs.h <<_ACEOF
6905 #define size_t unsigned int
6906 _ACEOF
6907
6908 fi
6909
6910
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6912 $as_echo_n "checking for stdint.h... " >&6; }
6913 if ${gl_cv_header_stdint_h+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h.  */
6918 #include <sys/types.h>
6919             #include <stdint.h>
6920 int
6921 main ()
6922 {
6923 uintmax_t i = (uintmax_t) -1; return !i;
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_compile "$LINENO"; then :
6929   gl_cv_header_stdint_h=yes
6930 else
6931   gl_cv_header_stdint_h=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6936 $as_echo "$gl_cv_header_stdint_h" >&6; }
6937   if test $gl_cv_header_stdint_h = yes; then
6938
6939 cat >>confdefs.h <<_ACEOF
6940 #define HAVE_STDINT_H_WITH_UINTMAX 1
6941 _ACEOF
6942
6943   fi
6944
6945 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6946 # for constant arguments.  Useless!
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6948 $as_echo_n "checking for working alloca.h... " >&6; }
6949 if ${ac_cv_working_alloca_h+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954 #include <alloca.h>
6955 int
6956 main ()
6957 {
6958 char *p = (char *) alloca (2 * sizeof (int));
6959                           if (p) return 0;
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_link "$LINENO"; then :
6965   ac_cv_working_alloca_h=yes
6966 else
6967   ac_cv_working_alloca_h=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext \
6970     conftest$ac_exeext conftest.$ac_ext
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6973 $as_echo "$ac_cv_working_alloca_h" >&6; }
6974 if test $ac_cv_working_alloca_h = yes; then
6975
6976 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6977
6978 fi
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6981 $as_echo_n "checking for alloca... " >&6; }
6982 if ${ac_cv_func_alloca_works+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h.  */
6987 #ifdef __GNUC__
6988 # define alloca __builtin_alloca
6989 #else
6990 # ifdef _MSC_VER
6991 #  include <malloc.h>
6992 #  define alloca _alloca
6993 # else
6994 #  ifdef HAVE_ALLOCA_H
6995 #   include <alloca.h>
6996 #  else
6997 #   ifdef _AIX
6998  #pragma alloca
6999 #   else
7000 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7001 void *alloca (size_t);
7002 #    endif
7003 #   endif
7004 #  endif
7005 # endif
7006 #endif
7007
7008 int
7009 main ()
7010 {
7011 char *p = (char *) alloca (1);
7012                                     if (p) return 0;
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018   ac_cv_func_alloca_works=yes
7019 else
7020   ac_cv_func_alloca_works=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023     conftest$ac_exeext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7026 $as_echo "$ac_cv_func_alloca_works" >&6; }
7027
7028 if test $ac_cv_func_alloca_works = yes; then
7029
7030 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7031
7032 else
7033   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7034 # that cause trouble.  Some versions do not even contain alloca or
7035 # contain a buggy version.  If you still want to use their alloca,
7036 # use ar to extract alloca.o from them instead of compiling alloca.c.
7037
7038 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7039
7040 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7041
7042
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7044 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7045 if ${ac_cv_os_cray+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050 #if defined CRAY && ! defined CRAY2
7051 webecray
7052 #else
7053 wenotbecray
7054 #endif
7055
7056 _ACEOF
7057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7058   $EGREP "webecray" >/dev/null 2>&1; then :
7059   ac_cv_os_cray=yes
7060 else
7061   ac_cv_os_cray=no
7062 fi
7063 rm -f conftest*
7064
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7067 $as_echo "$ac_cv_os_cray" >&6; }
7068 if test $ac_cv_os_cray = yes; then
7069   for ac_func in _getb67 GETB67 getb67; do
7070     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7071 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7072 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7073
7074 cat >>confdefs.h <<_ACEOF
7075 #define CRAY_STACKSEG_END $ac_func
7076 _ACEOF
7077
7078     break
7079 fi
7080
7081   done
7082 fi
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7085 $as_echo_n "checking stack direction for C alloca... " >&6; }
7086 if ${ac_cv_c_stack_direction+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test "$cross_compiling" = yes; then :
7090   ac_cv_c_stack_direction=0
7091 else
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 $ac_includes_default
7095 int
7096 find_stack_direction (int *addr, int depth)
7097 {
7098   int dir, dummy = 0;
7099   if (! addr)
7100     addr = &dummy;
7101   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7102   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7103   return dir + dummy;
7104 }
7105
7106 int
7107 main (int argc, char **argv)
7108 {
7109   return find_stack_direction (0, argc + !argv + 20) < 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_run "$LINENO"; then :
7113   ac_cv_c_stack_direction=1
7114 else
7115   ac_cv_c_stack_direction=-1
7116 fi
7117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7118   conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 fi
7120
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7123 $as_echo "$ac_cv_c_stack_direction" >&6; }
7124 cat >>confdefs.h <<_ACEOF
7125 #define STACK_DIRECTION $ac_cv_c_stack_direction
7126 _ACEOF
7127
7128
7129 fi
7130
7131
7132
7133
7134   for ac_header in $ac_header_list
7135 do :
7136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7138 "
7139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7140   cat >>confdefs.h <<_ACEOF
7141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7142 _ACEOF
7143
7144 fi
7145
7146 done
7147
7148
7149
7150
7151
7152
7153
7154
7155 for ac_func in getpagesize
7156 do :
7157   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7158 if test "x$ac_cv_func_getpagesize" = xyes; then :
7159   cat >>confdefs.h <<_ACEOF
7160 #define HAVE_GETPAGESIZE 1
7161 _ACEOF
7162
7163 fi
7164 done
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7167 $as_echo_n "checking for working mmap... " >&6; }
7168 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if test "$cross_compiling" = yes; then :
7172   ac_cv_func_mmap_fixed_mapped=no
7173 else
7174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h.  */
7176 $ac_includes_default
7177 /* malloc might have been renamed as rpl_malloc. */
7178 #undef malloc
7179
7180 /* Thanks to Mike Haertel and Jim Avera for this test.
7181    Here is a matrix of mmap possibilities:
7182         mmap private not fixed
7183         mmap private fixed at somewhere currently unmapped
7184         mmap private fixed at somewhere already mapped
7185         mmap shared not fixed
7186         mmap shared fixed at somewhere currently unmapped
7187         mmap shared fixed at somewhere already mapped
7188    For private mappings, we should verify that changes cannot be read()
7189    back from the file, nor mmap's back from the file at a different
7190    address.  (There have been systems where private was not correctly
7191    implemented like the infamous i386 svr4.0, and systems where the
7192    VM page cache was not coherent with the file system buffer cache
7193    like early versions of FreeBSD and possibly contemporary NetBSD.)
7194    For shared mappings, we should conversely verify that changes get
7195    propagated back to all the places they're supposed to be.
7196
7197    Grep wants private fixed already mapped.
7198    The main things grep needs to know about mmap are:
7199    * does it exist and is it safe to write into the mmap'd area
7200    * how to use it (BSD variants)  */
7201
7202 #include <fcntl.h>
7203 #include <sys/mman.h>
7204
7205 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7206 char *malloc ();
7207 #endif
7208
7209 /* This mess was copied from the GNU getpagesize.h.  */
7210 #ifndef HAVE_GETPAGESIZE
7211 # ifdef _SC_PAGESIZE
7212 #  define getpagesize() sysconf(_SC_PAGESIZE)
7213 # else /* no _SC_PAGESIZE */
7214 #  ifdef HAVE_SYS_PARAM_H
7215 #   include <sys/param.h>
7216 #   ifdef EXEC_PAGESIZE
7217 #    define getpagesize() EXEC_PAGESIZE
7218 #   else /* no EXEC_PAGESIZE */
7219 #    ifdef NBPG
7220 #     define getpagesize() NBPG * CLSIZE
7221 #     ifndef CLSIZE
7222 #      define CLSIZE 1
7223 #     endif /* no CLSIZE */
7224 #    else /* no NBPG */
7225 #     ifdef NBPC
7226 #      define getpagesize() NBPC
7227 #     else /* no NBPC */
7228 #      ifdef PAGESIZE
7229 #       define getpagesize() PAGESIZE
7230 #      endif /* PAGESIZE */
7231 #     endif /* no NBPC */
7232 #    endif /* no NBPG */
7233 #   endif /* no EXEC_PAGESIZE */
7234 #  else /* no HAVE_SYS_PARAM_H */
7235 #   define getpagesize() 8192   /* punt totally */
7236 #  endif /* no HAVE_SYS_PARAM_H */
7237 # endif /* no _SC_PAGESIZE */
7238
7239 #endif /* no HAVE_GETPAGESIZE */
7240
7241 int
7242 main ()
7243 {
7244   char *data, *data2, *data3;
7245   const char *cdata2;
7246   int i, pagesize;
7247   int fd, fd2;
7248
7249   pagesize = getpagesize ();
7250
7251   /* First, make a file with some known garbage in it. */
7252   data = (char *) malloc (pagesize);
7253   if (!data)
7254     return 1;
7255   for (i = 0; i < pagesize; ++i)
7256     *(data + i) = rand ();
7257   umask (0);
7258   fd = creat ("conftest.mmap", 0600);
7259   if (fd < 0)
7260     return 2;
7261   if (write (fd, data, pagesize) != pagesize)
7262     return 3;
7263   close (fd);
7264
7265   /* Next, check that the tail of a page is zero-filled.  File must have
7266      non-zero length, otherwise we risk SIGBUS for entire page.  */
7267   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7268   if (fd2 < 0)
7269     return 4;
7270   cdata2 = "";
7271   if (write (fd2, cdata2, 1) != 1)
7272     return 5;
7273   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7274   if (data2 == MAP_FAILED)
7275     return 6;
7276   for (i = 0; i < pagesize; ++i)
7277     if (*(data2 + i))
7278       return 7;
7279   close (fd2);
7280   if (munmap (data2, pagesize))
7281     return 8;
7282
7283   /* Next, try to mmap the file at a fixed address which already has
7284      something else allocated at it.  If we can, also make sure that
7285      we see the same garbage.  */
7286   fd = open ("conftest.mmap", O_RDWR);
7287   if (fd < 0)
7288     return 9;
7289   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7290                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7291     return 10;
7292   for (i = 0; i < pagesize; ++i)
7293     if (*(data + i) != *(data2 + i))
7294       return 11;
7295
7296   /* Finally, make sure that changes to the mapped area do not
7297      percolate back to the file as seen by read().  (This is a bug on
7298      some variants of i386 svr4.0.)  */
7299   for (i = 0; i < pagesize; ++i)
7300     *(data2 + i) = *(data2 + i) + 1;
7301   data3 = (char *) malloc (pagesize);
7302   if (!data3)
7303     return 12;
7304   if (read (fd, data3, pagesize) != pagesize)
7305     return 13;
7306   for (i = 0; i < pagesize; ++i)
7307     if (*(data + i) != *(data3 + i))
7308       return 14;
7309   close (fd);
7310   free (data);
7311   free (data3);
7312   return 0;
7313 }
7314 _ACEOF
7315 if ac_fn_c_try_run "$LINENO"; then :
7316   ac_cv_func_mmap_fixed_mapped=yes
7317 else
7318   ac_cv_func_mmap_fixed_mapped=no
7319 fi
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321   conftest.$ac_objext conftest.beam conftest.$ac_ext
7322 fi
7323
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7328
7329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7330
7331 fi
7332 rm -f conftest.mmap conftest.txt
7333
7334
7335
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7337 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7338 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341
7342       gt_cv_int_divbyzero_sigfpe=
7343       case "$host_os" in
7344         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7345           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7346           # compiling. If we were to perform the real test, 1 Crash Report
7347           # dialog window would pop up.
7348           case "$host_cpu" in
7349             i[34567]86 | x86_64)
7350               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7351           esac
7352           ;;
7353       esac
7354       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7355         if test "$cross_compiling" = yes; then :
7356
7357             # Guess based on the CPU.
7358             case "$host_cpu" in
7359               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7360                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7361               *)
7362                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7363             esac
7364
7365 else
7366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h.  */
7368
7369 #include <stdlib.h>
7370 #include <signal.h>
7371
7372 static void
7373 sigfpe_handler (int sig)
7374 {
7375   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7376   exit (sig != SIGFPE);
7377 }
7378
7379 int x = 1;
7380 int y = 0;
7381 int z;
7382 int nan;
7383
7384 int main ()
7385 {
7386   signal (SIGFPE, sigfpe_handler);
7387 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7388 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7389   signal (SIGTRAP, sigfpe_handler);
7390 #endif
7391 /* Linux/SPARC yields signal SIGILL.  */
7392 #if defined (__sparc__) && defined (__linux__)
7393   signal (SIGILL, sigfpe_handler);
7394 #endif
7395
7396   z = x / y;
7397   nan = y / y;
7398   exit (2);
7399 }
7400
7401 _ACEOF
7402 if ac_fn_c_try_run "$LINENO"; then :
7403   gt_cv_int_divbyzero_sigfpe=yes
7404 else
7405   gt_cv_int_divbyzero_sigfpe=no
7406 fi
7407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7408   conftest.$ac_objext conftest.beam conftest.$ac_ext
7409 fi
7410
7411       fi
7412
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7415 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7416   case "$gt_cv_int_divbyzero_sigfpe" in
7417     *yes) value=1;;
7418     *) value=0;;
7419   esac
7420
7421 cat >>confdefs.h <<_ACEOF
7422 #define INTDIV0_RAISES_SIGFPE $value
7423 _ACEOF
7424
7425
7426
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7428 $as_echo_n "checking for inttypes.h... " >&6; }
7429 if ${gl_cv_header_inttypes_h+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434
7435 #include <sys/types.h>
7436 #include <inttypes.h>
7437
7438 int
7439 main ()
7440 {
7441 uintmax_t i = (uintmax_t) -1; return !i;
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_compile "$LINENO"; then :
7447   gl_cv_header_inttypes_h=yes
7448 else
7449   gl_cv_header_inttypes_h=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7454 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7455   if test $gl_cv_header_inttypes_h = yes; then
7456
7457 cat >>confdefs.h <<_ACEOF
7458 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7459 _ACEOF
7460
7461   fi
7462
7463
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7465 $as_echo_n "checking for unsigned long long int... " >&6; }
7466 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   ac_cv_type_unsigned_long_long_int=yes
7470      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7471        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473
7474   /* For now, do not test the preprocessor; as of 2007 there are too many
7475          implementations with broken preprocessors.  Perhaps this can
7476          be revisited in 2012.  In the meantime, code should not expect
7477          #if to work with literals wider than 32 bits.  */
7478       /* Test literals.  */
7479       long long int ll = 9223372036854775807ll;
7480       long long int nll = -9223372036854775807LL;
7481       unsigned long long int ull = 18446744073709551615ULL;
7482       /* Test constant expressions.   */
7483       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7484                      ? 1 : -1)];
7485       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7486                      ? 1 : -1)];
7487       int i = 63;
7488 int
7489 main ()
7490 {
7491 /* Test availability of runtime routines for shift and division.  */
7492       long long int llmax = 9223372036854775807ll;
7493       unsigned long long int ullmax = 18446744073709551615ull;
7494       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7495               | (llmax / ll) | (llmax % ll)
7496               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7497               | (ullmax / ull) | (ullmax % ull));
7498   ;
7499   return 0;
7500 }
7501
7502 _ACEOF
7503 if ac_fn_c_try_link "$LINENO"; then :
7504
7505 else
7506   ac_cv_type_unsigned_long_long_int=no
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext \
7509     conftest$ac_exeext conftest.$ac_ext
7510      fi
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7513 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7514   if test $ac_cv_type_unsigned_long_long_int = yes; then
7515
7516 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7517
7518   fi
7519
7520
7521
7522
7523   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7524
7525     test $ac_cv_type_unsigned_long_long_int = yes \
7526       && ac_type='unsigned long long' \
7527       || ac_type='unsigned long'
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define uintmax_t $ac_type
7531 _ACEOF
7532
7533   else
7534
7535 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7536
7537   fi
7538
7539
7540   for ac_header in inttypes.h
7541 do :
7542   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7543 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7544   cat >>confdefs.h <<_ACEOF
7545 #define HAVE_INTTYPES_H 1
7546 _ACEOF
7547
7548 fi
7549
7550 done
7551
7552   if test $ac_cv_header_inttypes_h = yes; then
7553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7554 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7555 if ${gt_cv_inttypes_pri_broken+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558
7559         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561
7562 #include <inttypes.h>
7563 #ifdef PRId32
7564 char *p = PRId32;
7565 #endif
7566
7567 int
7568 main ()
7569 {
7570
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576   gt_cv_inttypes_pri_broken=no
7577 else
7578   gt_cv_inttypes_pri_broken=yes
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7584 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7585   fi
7586   if test "$gt_cv_inttypes_pri_broken" = yes; then
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define PRI_MACROS_BROKEN 1
7590 _ACEOF
7591
7592     PRI_MACROS_BROKEN=1
7593   else
7594     PRI_MACROS_BROKEN=0
7595   fi
7596
7597
7598
7599
7600
7601
7602
7603   # Check whether --enable-threads was given.
7604 if test "${enable_threads+set}" = set; then :
7605   enableval=$enable_threads; gl_use_threads=$enableval
7606 else
7607   if test -n "$gl_use_threads_default"; then
7608        gl_use_threads="$gl_use_threads_default"
7609      else
7610        case "$host_os" in
7611                                                                osf*) gl_use_threads=no ;;
7612          cygwin*)
7613                case `uname -r` in
7614                  1.[0-5].*) gl_use_threads=no ;;
7615                  *)         gl_use_threads=yes ;;
7616                esac
7617                ;;
7618          *)    gl_use_threads=yes ;;
7619        esac
7620      fi
7621
7622 fi
7623
7624   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7625     # For using <pthread.h>:
7626     case "$host_os" in
7627       osf*)
7628         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7629         # groks <pthread.h>. cc also understands the flag -pthread, but
7630         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7631         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7632         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7633         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7634         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7635         ;;
7636     esac
7637     # Some systems optimize for single-threaded programs by default, and
7638     # need special flags to disable these optimizations. For example, the
7639     # definition of 'errno' in <errno.h>.
7640     case "$host_os" in
7641       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7642       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7643     esac
7644   fi
7645
7646
7647
7648
7649
7650       if test "X$prefix" = "XNONE"; then
7651     acl_final_prefix="$ac_default_prefix"
7652   else
7653     acl_final_prefix="$prefix"
7654   fi
7655   if test "X$exec_prefix" = "XNONE"; then
7656     acl_final_exec_prefix='${prefix}'
7657   else
7658     acl_final_exec_prefix="$exec_prefix"
7659   fi
7660   acl_save_prefix="$prefix"
7661   prefix="$acl_final_prefix"
7662   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7663   prefix="$acl_save_prefix"
7664
7665
7666
7667 # Check whether --with-gnu-ld was given.
7668 if test "${with_gnu_ld+set}" = set; then :
7669   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7670 else
7671   with_gnu_ld=no
7672 fi
7673
7674 # Prepare PATH_SEPARATOR.
7675 # The user is always right.
7676 if test "${PATH_SEPARATOR+set}" != set; then
7677   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7678   # contains only /bin. Note that ksh looks also at the FPATH variable,
7679   # so we have to set that as well for the test.
7680   PATH_SEPARATOR=:
7681   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7682     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7683            || PATH_SEPARATOR=';'
7684        }
7685 fi
7686
7687 ac_prog=ld
7688 if test "$GCC" = yes; then
7689   # Check if gcc -print-prog-name=ld gives a path.
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7691 $as_echo_n "checking for ld used by $CC... " >&6; }
7692   case $host in
7693   *-*-mingw*)
7694     # gcc leaves a trailing carriage return which upsets mingw
7695     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7696   *)
7697     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7698   esac
7699   case $ac_prog in
7700     # Accept absolute paths.
7701     [\\/]* | ?:[\\/]*)
7702       re_direlt='/[^/][^/]*/\.\./'
7703       # Canonicalize the pathname of ld
7704       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7705       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7706         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7707       done
7708       test -z "$LD" && LD="$ac_prog"
7709       ;;
7710   "")
7711     # If it fails, then pretend we aren't using GCC.
7712     ac_prog=ld
7713     ;;
7714   *)
7715     # If it is relative, then search for the first ld in PATH.
7716     with_gnu_ld=unknown
7717     ;;
7718   esac
7719 elif test "$with_gnu_ld" = yes; then
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7721 $as_echo_n "checking for GNU ld... " >&6; }
7722 else
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7724 $as_echo_n "checking for non-GNU ld... " >&6; }
7725 fi
7726 if ${acl_cv_path_LD+:} false; then :
7727   $as_echo_n "(cached) " >&6
7728 else
7729   if test -z "$LD"; then
7730   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7731   for ac_dir in $PATH; do
7732     IFS="$acl_save_ifs"
7733     test -z "$ac_dir" && ac_dir=.
7734     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7735       acl_cv_path_LD="$ac_dir/$ac_prog"
7736       # Check to see if the program is GNU ld.  I'd rather use --version,
7737       # but apparently some variants of GNU ld only accept -v.
7738       # Break only if it was the GNU/non-GNU ld that we prefer.
7739       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7740       *GNU* | *'with BFD'*)
7741         test "$with_gnu_ld" != no && break
7742         ;;
7743       *)
7744         test "$with_gnu_ld" != yes && break
7745         ;;
7746       esac
7747     fi
7748   done
7749   IFS="$acl_save_ifs"
7750 else
7751   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7752 fi
7753 fi
7754
7755 LD="$acl_cv_path_LD"
7756 if test -n "$LD"; then
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7758 $as_echo "$LD" >&6; }
7759 else
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7765 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7766 if ${acl_cv_prog_gnu_ld+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7770 case `$LD -v 2>&1 </dev/null` in
7771 *GNU* | *'with BFD'*)
7772   acl_cv_prog_gnu_ld=yes
7773   ;;
7774 *)
7775   acl_cv_prog_gnu_ld=no
7776   ;;
7777 esac
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7780 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7781 with_gnu_ld=$acl_cv_prog_gnu_ld
7782
7783
7784
7785
7786                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7787 $as_echo_n "checking for shared library run path origin... " >&6; }
7788 if ${acl_cv_rpath+:} false; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791
7792     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7793     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7794     . ./conftest.sh
7795     rm -f ./conftest.sh
7796     acl_cv_rpath=done
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7800 $as_echo "$acl_cv_rpath" >&6; }
7801   wl="$acl_cv_wl"
7802   acl_libext="$acl_cv_libext"
7803   acl_shlibext="$acl_cv_shlibext"
7804   acl_libname_spec="$acl_cv_libname_spec"
7805   acl_library_names_spec="$acl_cv_library_names_spec"
7806   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7807   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7808   acl_hardcode_direct="$acl_cv_hardcode_direct"
7809   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7810     # Check whether --enable-rpath was given.
7811 if test "${enable_rpath+set}" = set; then :
7812   enableval=$enable_rpath; :
7813 else
7814   enable_rpath=yes
7815 fi
7816
7817
7818
7819
7820   acl_libdirstem=lib
7821   acl_libdirstem2=
7822   case "$host_os" in
7823     solaris*)
7824                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7825 $as_echo_n "checking for 64-bit host... " >&6; }
7826 if ${gl_cv_solaris_64bit+:} false; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h.  */
7831
7832 #ifdef _LP64
7833 sixtyfour bits
7834 #endif
7835
7836 _ACEOF
7837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7838   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7839   gl_cv_solaris_64bit=yes
7840 else
7841   gl_cv_solaris_64bit=no
7842 fi
7843 rm -f conftest*
7844
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7848 $as_echo "$gl_cv_solaris_64bit" >&6; }
7849       if test $gl_cv_solaris_64bit = yes; then
7850         acl_libdirstem=lib/64
7851         case "$host_cpu" in
7852           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7853           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7854         esac
7855       fi
7856       ;;
7857     *)
7858       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7859       if test -n "$searchpath"; then
7860         acl_save_IFS="${IFS=    }"; IFS=":"
7861         for searchdir in $searchpath; do
7862           if test -d "$searchdir"; then
7863             case "$searchdir" in
7864               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7865               */../ | */.. )
7866                 # Better ignore directories of this form. They are misleading.
7867                 ;;
7868               *) searchdir=`cd "$searchdir" && pwd`
7869                  case "$searchdir" in
7870                    */lib64 ) acl_libdirstem=lib64 ;;
7871                  esac ;;
7872             esac
7873           fi
7874         done
7875         IFS="$acl_save_IFS"
7876       fi
7877       ;;
7878   esac
7879   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7880
7881
7882
7883   gl_threads_api=none
7884   LIBTHREAD=
7885   LTLIBTHREAD=
7886   LIBMULTITHREAD=
7887   LTLIBMULTITHREAD=
7888   if test "$gl_use_threads" != no; then
7889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7890 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7891 if ${gl_cv_have_weak+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   gl_cv_have_weak=no
7895               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h.  */
7897 extern void xyzzy ();
7898 #pragma weak xyzzy
7899 int
7900 main ()
7901 {
7902 xyzzy();
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 if ac_fn_c_try_link "$LINENO"; then :
7908   gl_cv_have_weak=maybe
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext \
7911     conftest$ac_exeext conftest.$ac_ext
7912        if test $gl_cv_have_weak = maybe; then
7913                            if test "$cross_compiling" = yes; then :
7914                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h.  */
7916 #ifdef __ELF__
7917                Extensible Linking Format
7918                #endif
7919
7920 _ACEOF
7921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7922   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7923   gl_cv_have_weak="guessing yes"
7924 else
7925   gl_cv_have_weak="guessing no"
7926 fi
7927 rm -f conftest*
7928
7929
7930 else
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933
7934 #include <stdio.h>
7935 #pragma weak fputs
7936 int main ()
7937 {
7938   return (fputs == NULL);
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_run "$LINENO"; then :
7942   gl_cv_have_weak=yes
7943 else
7944   gl_cv_have_weak=no
7945 fi
7946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7947   conftest.$ac_objext conftest.beam conftest.$ac_ext
7948 fi
7949
7950        fi
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7954 $as_echo "$gl_cv_have_weak" >&6; }
7955     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7956       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7957       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7958       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7959 if test "x$ac_cv_header_pthread_h" = xyes; then :
7960   gl_have_pthread_h=yes
7961 else
7962   gl_have_pthread_h=no
7963 fi
7964
7965
7966       if test "$gl_have_pthread_h" = yes; then
7967         # Other possible tests:
7968         #   -lpthreads (FSU threads, PCthreads)
7969         #   -lgthreads
7970         gl_have_pthread=
7971         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7972         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7973         # the second one only in libpthread, and lock.c needs it.
7974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h.  */
7976 #include <pthread.h>
7977 int
7978 main ()
7979 {
7980 pthread_mutex_lock((pthread_mutex_t*)0);
7981                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"; then :
7987   gl_have_pthread=yes
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext \
7990     conftest$ac_exeext conftest.$ac_ext
7991         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7992         # since it is defined as a macro on OSF/1.)
7993         if test -n "$gl_have_pthread"; then
7994           # The program links fine without libpthread. But it may actually
7995           # need to link with libpthread in order to create multiple threads.
7996           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7998 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-lpthread  $LIBS"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h.  */
8005
8006 /* Override any GCC internal prototype to avoid an error.
8007    Use char because int might match the return type of a GCC
8008    builtin and then its argument prototype would still apply.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char pthread_kill ();
8013 int
8014 main ()
8015 {
8016 return pthread_kill ();
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022   ac_cv_lib_pthread_pthread_kill=yes
8023 else
8024   ac_cv_lib_pthread_pthread_kill=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext \
8027     conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8032 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8033   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8034              # On Solaris and HP-UX, most pthread functions exist also in libc.
8035              # Therefore pthread_in_use() needs to actually try to create a
8036              # thread: pthread_create from libc will fail, whereas
8037              # pthread_create will actually create a thread.
8038              case "$host_os" in
8039                solaris* | hpux*)
8040
8041 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8042
8043              esac
8044
8045 fi
8046
8047         else
8048           # Some library is needed. Try libpthread and libc_r.
8049           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8050 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8051 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054   ac_check_lib_save_LIBS=$LIBS
8055 LIBS="-lpthread  $LIBS"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060    Use char because int might match the return type of a GCC
8061    builtin and then its argument prototype would still apply.  */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char pthread_kill ();
8066 int
8067 main ()
8068 {
8069 return pthread_kill ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075   ac_cv_lib_pthread_pthread_kill=yes
8076 else
8077   ac_cv_lib_pthread_pthread_kill=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080     conftest$ac_exeext conftest.$ac_ext
8081 LIBS=$ac_check_lib_save_LIBS
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8084 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8085 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8086   gl_have_pthread=yes
8087              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8088              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8089 fi
8090
8091           if test -z "$gl_have_pthread"; then
8092             # For FreeBSD 4.
8093             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8094 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8095 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   ac_check_lib_save_LIBS=$LIBS
8099 LIBS="-lc_r  $LIBS"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102
8103 /* Override any GCC internal prototype to avoid an error.
8104    Use char because int might match the return type of a GCC
8105    builtin and then its argument prototype would still apply.  */
8106 #ifdef __cplusplus
8107 extern "C"
8108 #endif
8109 char pthread_kill ();
8110 int
8111 main ()
8112 {
8113 return pthread_kill ();
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"; then :
8119   ac_cv_lib_c_r_pthread_kill=yes
8120 else
8121   ac_cv_lib_c_r_pthread_kill=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124     conftest$ac_exeext conftest.$ac_ext
8125 LIBS=$ac_check_lib_save_LIBS
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8128 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8129 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8130   gl_have_pthread=yes
8131                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8132                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8133 fi
8134
8135           fi
8136         fi
8137         if test -n "$gl_have_pthread"; then
8138           gl_threads_api=posix
8139
8140 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8141
8142           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8143             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8144
8145 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8146
8147               LIBTHREAD=
8148               LTLIBTHREAD=
8149             fi
8150           fi
8151         fi
8152       fi
8153     fi
8154     if test -z "$gl_have_pthread"; then
8155       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8156         gl_have_solaristhread=
8157         gl_save_LIBS="$LIBS"
8158         LIBS="$LIBS -lthread"
8159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161
8162 #include <thread.h>
8163 #include <synch.h>
8164
8165 int
8166 main ()
8167 {
8168 thr_self();
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_link "$LINENO"; then :
8174   gl_have_solaristhread=yes
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext \
8177     conftest$ac_exeext conftest.$ac_ext
8178         LIBS="$gl_save_LIBS"
8179         if test -n "$gl_have_solaristhread"; then
8180           gl_threads_api=solaris
8181           LIBTHREAD=-lthread
8182           LTLIBTHREAD=-lthread
8183           LIBMULTITHREAD="$LIBTHREAD"
8184           LTLIBMULTITHREAD="$LTLIBTHREAD"
8185
8186 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8187
8188           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8189
8190 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8191
8192             LIBTHREAD=
8193             LTLIBTHREAD=
8194           fi
8195         fi
8196       fi
8197     fi
8198     if test "$gl_use_threads" = pth; then
8199       gl_save_CPPFLAGS="$CPPFLAGS"
8200
8201
8202
8203
8204
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8206 $as_echo_n "checking how to link with libpth... " >&6; }
8207 if ${ac_cv_libpth_libs+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210
8211
8212
8213
8214
8215
8216
8217
8218     use_additional=yes
8219
8220   acl_save_prefix="$prefix"
8221   prefix="$acl_final_prefix"
8222   acl_save_exec_prefix="$exec_prefix"
8223   exec_prefix="$acl_final_exec_prefix"
8224
8225     eval additional_includedir=\"$includedir\"
8226     eval additional_libdir=\"$libdir\"
8227
8228   exec_prefix="$acl_save_exec_prefix"
8229   prefix="$acl_save_prefix"
8230
8231
8232 # Check whether --with-libpth-prefix was given.
8233 if test "${with_libpth_prefix+set}" = set; then :
8234   withval=$with_libpth_prefix;
8235     if test "X$withval" = "Xno"; then
8236       use_additional=no
8237     else
8238       if test "X$withval" = "X"; then
8239
8240   acl_save_prefix="$prefix"
8241   prefix="$acl_final_prefix"
8242   acl_save_exec_prefix="$exec_prefix"
8243   exec_prefix="$acl_final_exec_prefix"
8244
8245           eval additional_includedir=\"$includedir\"
8246           eval additional_libdir=\"$libdir\"
8247
8248   exec_prefix="$acl_save_exec_prefix"
8249   prefix="$acl_save_prefix"
8250
8251       else
8252         additional_includedir="$withval/include"
8253         additional_libdir="$withval/$acl_libdirstem"
8254         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8255            && ! test -d "$withval/$acl_libdirstem"; then
8256           additional_libdir="$withval/$acl_libdirstem2"
8257         fi
8258       fi
8259     fi
8260
8261 fi
8262
8263       LIBPTH=
8264   LTLIBPTH=
8265   INCPTH=
8266   LIBPTH_PREFIX=
8267       HAVE_LIBPTH=
8268   rpathdirs=
8269   ltrpathdirs=
8270   names_already_handled=
8271   names_next_round='pth '
8272   while test -n "$names_next_round"; do
8273     names_this_round="$names_next_round"
8274     names_next_round=
8275     for name in $names_this_round; do
8276       already_handled=
8277       for n in $names_already_handled; do
8278         if test "$n" = "$name"; then
8279           already_handled=yes
8280           break
8281         fi
8282       done
8283       if test -z "$already_handled"; then
8284         names_already_handled="$names_already_handled $name"
8285                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8286         eval value=\"\$HAVE_LIB$uppername\"
8287         if test -n "$value"; then
8288           if test "$value" = yes; then
8289             eval value=\"\$LIB$uppername\"
8290             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8291             eval value=\"\$LTLIB$uppername\"
8292             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8293           else
8294                                     :
8295           fi
8296         else
8297                               found_dir=
8298           found_la=
8299           found_so=
8300           found_a=
8301           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8302           if test -n "$acl_shlibext"; then
8303             shrext=".$acl_shlibext"             # typically: shrext=.so
8304           else
8305             shrext=
8306           fi
8307           if test $use_additional = yes; then
8308             dir="$additional_libdir"
8309                                     if test -n "$acl_shlibext"; then
8310               if test -f "$dir/$libname$shrext"; then
8311                 found_dir="$dir"
8312                 found_so="$dir/$libname$shrext"
8313               else
8314                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8315                   ver=`(cd "$dir" && \
8316                         for f in "$libname$shrext".*; do echo "$f"; done \
8317                         | sed -e "s,^$libname$shrext\\\\.,," \
8318                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8319                         | sed 1q ) 2>/dev/null`
8320                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8321                     found_dir="$dir"
8322                     found_so="$dir/$libname$shrext.$ver"
8323                   fi
8324                 else
8325                   eval library_names=\"$acl_library_names_spec\"
8326                   for f in $library_names; do
8327                     if test -f "$dir/$f"; then
8328                       found_dir="$dir"
8329                       found_so="$dir/$f"
8330                       break
8331                     fi
8332                   done
8333                 fi
8334               fi
8335             fi
8336                         if test "X$found_dir" = "X"; then
8337               if test -f "$dir/$libname.$acl_libext"; then
8338                 found_dir="$dir"
8339                 found_a="$dir/$libname.$acl_libext"
8340               fi
8341             fi
8342             if test "X$found_dir" != "X"; then
8343               if test -f "$dir/$libname.la"; then
8344                 found_la="$dir/$libname.la"
8345               fi
8346             fi
8347           fi
8348           if test "X$found_dir" = "X"; then
8349             for x in $LDFLAGS $LTLIBPTH; do
8350
8351   acl_save_prefix="$prefix"
8352   prefix="$acl_final_prefix"
8353   acl_save_exec_prefix="$exec_prefix"
8354   exec_prefix="$acl_final_exec_prefix"
8355   eval x=\"$x\"
8356   exec_prefix="$acl_save_exec_prefix"
8357   prefix="$acl_save_prefix"
8358
8359               case "$x" in
8360                 -L*)
8361                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8362                                     if test -n "$acl_shlibext"; then
8363                     if test -f "$dir/$libname$shrext"; then
8364                       found_dir="$dir"
8365                       found_so="$dir/$libname$shrext"
8366                     else
8367                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8368                         ver=`(cd "$dir" && \
8369                               for f in "$libname$shrext".*; do echo "$f"; done \
8370                               | sed -e "s,^$libname$shrext\\\\.,," \
8371                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8372                               | sed 1q ) 2>/dev/null`
8373                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8374                           found_dir="$dir"
8375                           found_so="$dir/$libname$shrext.$ver"
8376                         fi
8377                       else
8378                         eval library_names=\"$acl_library_names_spec\"
8379                         for f in $library_names; do
8380                           if test -f "$dir/$f"; then
8381                             found_dir="$dir"
8382                             found_so="$dir/$f"
8383                             break
8384                           fi
8385                         done
8386                       fi
8387                     fi
8388                   fi
8389                                     if test "X$found_dir" = "X"; then
8390                     if test -f "$dir/$libname.$acl_libext"; then
8391                       found_dir="$dir"
8392                       found_a="$dir/$libname.$acl_libext"
8393                     fi
8394                   fi
8395                   if test "X$found_dir" != "X"; then
8396                     if test -f "$dir/$libname.la"; then
8397                       found_la="$dir/$libname.la"
8398                     fi
8399                   fi
8400                   ;;
8401               esac
8402               if test "X$found_dir" != "X"; then
8403                 break
8404               fi
8405             done
8406           fi
8407           if test "X$found_dir" != "X"; then
8408                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8409             if test "X$found_so" != "X"; then
8410                                                         if test "$enable_rpath" = no \
8411                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8412                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8413                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8414               else
8415                                                                                 haveit=
8416                 for x in $ltrpathdirs; do
8417                   if test "X$x" = "X$found_dir"; then
8418                     haveit=yes
8419                     break
8420                   fi
8421                 done
8422                 if test -z "$haveit"; then
8423                   ltrpathdirs="$ltrpathdirs $found_dir"
8424                 fi
8425                                 if test "$acl_hardcode_direct" = yes; then
8426                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8427                 else
8428                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8429                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8430                                                             haveit=
8431                     for x in $rpathdirs; do
8432                       if test "X$x" = "X$found_dir"; then
8433                         haveit=yes
8434                         break
8435                       fi
8436                     done
8437                     if test -z "$haveit"; then
8438                       rpathdirs="$rpathdirs $found_dir"
8439                     fi
8440                   else
8441                                                                                 haveit=
8442                     for x in $LDFLAGS $LIBPTH; do
8443
8444   acl_save_prefix="$prefix"
8445   prefix="$acl_final_prefix"
8446   acl_save_exec_prefix="$exec_prefix"
8447   exec_prefix="$acl_final_exec_prefix"
8448   eval x=\"$x\"
8449   exec_prefix="$acl_save_exec_prefix"
8450   prefix="$acl_save_prefix"
8451
8452                       if test "X$x" = "X-L$found_dir"; then
8453                         haveit=yes
8454                         break
8455                       fi
8456                     done
8457                     if test -z "$haveit"; then
8458                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8459                     fi
8460                     if test "$acl_hardcode_minus_L" != no; then
8461                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8462                     else
8463                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8464                     fi
8465                   fi
8466                 fi
8467               fi
8468             else
8469               if test "X$found_a" != "X"; then
8470                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8471               else
8472                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8473               fi
8474             fi
8475                         additional_includedir=
8476             case "$found_dir" in
8477               */$acl_libdirstem | */$acl_libdirstem/)
8478                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8479                 if test "$name" = 'pth'; then
8480                   LIBPTH_PREFIX="$basedir"
8481                 fi
8482                 additional_includedir="$basedir/include"
8483                 ;;
8484               */$acl_libdirstem2 | */$acl_libdirstem2/)
8485                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8486                 if test "$name" = 'pth'; then
8487                   LIBPTH_PREFIX="$basedir"
8488                 fi
8489                 additional_includedir="$basedir/include"
8490                 ;;
8491             esac
8492             if test "X$additional_includedir" != "X"; then
8493                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8494                 haveit=
8495                 if test "X$additional_includedir" = "X/usr/local/include"; then
8496                   if test -n "$GCC"; then
8497                     case $host_os in
8498                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8499                     esac
8500                   fi
8501                 fi
8502                 if test -z "$haveit"; then
8503                   for x in $CPPFLAGS $INCPTH; do
8504
8505   acl_save_prefix="$prefix"
8506   prefix="$acl_final_prefix"
8507   acl_save_exec_prefix="$exec_prefix"
8508   exec_prefix="$acl_final_exec_prefix"
8509   eval x=\"$x\"
8510   exec_prefix="$acl_save_exec_prefix"
8511   prefix="$acl_save_prefix"
8512
8513                     if test "X$x" = "X-I$additional_includedir"; then
8514                       haveit=yes
8515                       break
8516                     fi
8517                   done
8518                   if test -z "$haveit"; then
8519                     if test -d "$additional_includedir"; then
8520                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8521                     fi
8522                   fi
8523                 fi
8524               fi
8525             fi
8526                         if test -n "$found_la"; then
8527                                                         save_libdir="$libdir"
8528               case "$found_la" in
8529                 */* | *\\*) . "$found_la" ;;
8530                 *) . "./$found_la" ;;
8531               esac
8532               libdir="$save_libdir"
8533                             for dep in $dependency_libs; do
8534                 case "$dep" in
8535                   -L*)
8536                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8537                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8538                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8539                       haveit=
8540                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8541                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8542                         if test -n "$GCC"; then
8543                           case $host_os in
8544                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8545                           esac
8546                         fi
8547                       fi
8548                       if test -z "$haveit"; then
8549                         haveit=
8550                         for x in $LDFLAGS $LIBPTH; do
8551
8552   acl_save_prefix="$prefix"
8553   prefix="$acl_final_prefix"
8554   acl_save_exec_prefix="$exec_prefix"
8555   exec_prefix="$acl_final_exec_prefix"
8556   eval x=\"$x\"
8557   exec_prefix="$acl_save_exec_prefix"
8558   prefix="$acl_save_prefix"
8559
8560                           if test "X$x" = "X-L$additional_libdir"; then
8561                             haveit=yes
8562                             break
8563                           fi
8564                         done
8565                         if test -z "$haveit"; then
8566                           if test -d "$additional_libdir"; then
8567                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8568                           fi
8569                         fi
8570                         haveit=
8571                         for x in $LDFLAGS $LTLIBPTH; do
8572
8573   acl_save_prefix="$prefix"
8574   prefix="$acl_final_prefix"
8575   acl_save_exec_prefix="$exec_prefix"
8576   exec_prefix="$acl_final_exec_prefix"
8577   eval x=\"$x\"
8578   exec_prefix="$acl_save_exec_prefix"
8579   prefix="$acl_save_prefix"
8580
8581                           if test "X$x" = "X-L$additional_libdir"; then
8582                             haveit=yes
8583                             break
8584                           fi
8585                         done
8586                         if test -z "$haveit"; then
8587                           if test -d "$additional_libdir"; then
8588                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8589                           fi
8590                         fi
8591                       fi
8592                     fi
8593                     ;;
8594                   -R*)
8595                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8596                     if test "$enable_rpath" != no; then
8597                                                                   haveit=
8598                       for x in $rpathdirs; do
8599                         if test "X$x" = "X$dir"; then
8600                           haveit=yes
8601                           break
8602                         fi
8603                       done
8604                       if test -z "$haveit"; then
8605                         rpathdirs="$rpathdirs $dir"
8606                       fi
8607                                                                   haveit=
8608                       for x in $ltrpathdirs; do
8609                         if test "X$x" = "X$dir"; then
8610                           haveit=yes
8611                           break
8612                         fi
8613                       done
8614                       if test -z "$haveit"; then
8615                         ltrpathdirs="$ltrpathdirs $dir"
8616                       fi
8617                     fi
8618                     ;;
8619                   -l*)
8620                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8621                     ;;
8622                   *.la)
8623                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8624                     ;;
8625                   *)
8626                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8627                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8628                     ;;
8629                 esac
8630               done
8631             fi
8632           else
8633                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8634             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8635           fi
8636         fi
8637       fi
8638     done
8639   done
8640   if test "X$rpathdirs" != "X"; then
8641     if test -n "$acl_hardcode_libdir_separator"; then
8642                         alldirs=
8643       for found_dir in $rpathdirs; do
8644         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8645       done
8646             acl_save_libdir="$libdir"
8647       libdir="$alldirs"
8648       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8649       libdir="$acl_save_libdir"
8650       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8651     else
8652             for found_dir in $rpathdirs; do
8653         acl_save_libdir="$libdir"
8654         libdir="$found_dir"
8655         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8656         libdir="$acl_save_libdir"
8657         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8658       done
8659     fi
8660   fi
8661   if test "X$ltrpathdirs" != "X"; then
8662             for found_dir in $ltrpathdirs; do
8663       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8664     done
8665   fi
8666
8667
8668
8669
8670
8671
8672     ac_cv_libpth_libs="$LIBPTH"
8673     ac_cv_libpth_ltlibs="$LTLIBPTH"
8674     ac_cv_libpth_cppflags="$INCPTH"
8675     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8676
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8679 $as_echo "$ac_cv_libpth_libs" >&6; }
8680   LIBPTH="$ac_cv_libpth_libs"
8681   LTLIBPTH="$ac_cv_libpth_ltlibs"
8682   INCPTH="$ac_cv_libpth_cppflags"
8683   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8684
8685   for element in $INCPTH; do
8686     haveit=
8687     for x in $CPPFLAGS; do
8688
8689   acl_save_prefix="$prefix"
8690   prefix="$acl_final_prefix"
8691   acl_save_exec_prefix="$exec_prefix"
8692   exec_prefix="$acl_final_exec_prefix"
8693   eval x=\"$x\"
8694   exec_prefix="$acl_save_exec_prefix"
8695   prefix="$acl_save_prefix"
8696
8697       if test "X$x" = "X$element"; then
8698         haveit=yes
8699         break
8700       fi
8701     done
8702     if test -z "$haveit"; then
8703       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8704     fi
8705   done
8706
8707
8708
8709
8710       HAVE_LIBPTH=yes
8711
8712
8713
8714       gl_have_pth=
8715       gl_save_LIBS="$LIBS"
8716       LIBS="$LIBS $LIBPTH"
8717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h.  */
8719 #include <pth.h>
8720 int
8721 main ()
8722 {
8723 pth_self();
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 if ac_fn_c_try_link "$LINENO"; then :
8729   gl_have_pth=yes
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext \
8732     conftest$ac_exeext conftest.$ac_ext
8733       LIBS="$gl_save_LIBS"
8734       if test -n "$gl_have_pth"; then
8735         gl_threads_api=pth
8736         LIBTHREAD="$LIBPTH"
8737         LTLIBTHREAD="$LTLIBPTH"
8738         LIBMULTITHREAD="$LIBTHREAD"
8739         LTLIBMULTITHREAD="$LTLIBTHREAD"
8740
8741 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8742
8743         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8744           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8745
8746 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8747
8748             LIBTHREAD=
8749             LTLIBTHREAD=
8750           fi
8751         fi
8752       else
8753         CPPFLAGS="$gl_save_CPPFLAGS"
8754       fi
8755     fi
8756     if test -z "$gl_have_pthread"; then
8757       case "$gl_use_threads" in
8758         yes | windows | win32) # The 'win32' is for backward compatibility.
8759           if { case "$host_os" in
8760                  mingw*) true;;
8761                  *) false;;
8762                esac
8763              }; then
8764             gl_threads_api=windows
8765
8766 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8767
8768           fi
8769           ;;
8770       esac
8771     fi
8772   fi
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8774 $as_echo_n "checking for multithread API to use... " >&6; }
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8776 $as_echo "$gl_threads_api" >&6; }
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788   if test "$gl_threads_api" = posix; then
8789     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8790     # pthread_rwlock_* functions.
8791     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8792 "
8793 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8794
8795 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8796
8797 fi
8798
8799     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h.  */
8802
8803       #include <pthread.h>
8804 int
8805 main ()
8806 {
8807
8808 #if __FreeBSD__ == 4
8809 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8810 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8811        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8812 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8813 #else
8814 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8815 return !x;
8816 #endif
8817
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823
8824 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8825
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828   fi
8829   :
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842     use_additional=yes
8843
8844   acl_save_prefix="$prefix"
8845   prefix="$acl_final_prefix"
8846   acl_save_exec_prefix="$exec_prefix"
8847   exec_prefix="$acl_final_exec_prefix"
8848
8849     eval additional_includedir=\"$includedir\"
8850     eval additional_libdir=\"$libdir\"
8851
8852   exec_prefix="$acl_save_exec_prefix"
8853   prefix="$acl_save_prefix"
8854
8855
8856 # Check whether --with-libiconv-prefix was given.
8857 if test "${with_libiconv_prefix+set}" = set; then :
8858   withval=$with_libiconv_prefix;
8859     if test "X$withval" = "Xno"; then
8860       use_additional=no
8861     else
8862       if test "X$withval" = "X"; then
8863
8864   acl_save_prefix="$prefix"
8865   prefix="$acl_final_prefix"
8866   acl_save_exec_prefix="$exec_prefix"
8867   exec_prefix="$acl_final_exec_prefix"
8868
8869           eval additional_includedir=\"$includedir\"
8870           eval additional_libdir=\"$libdir\"
8871
8872   exec_prefix="$acl_save_exec_prefix"
8873   prefix="$acl_save_prefix"
8874
8875       else
8876         additional_includedir="$withval/include"
8877         additional_libdir="$withval/$acl_libdirstem"
8878         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8879            && ! test -d "$withval/$acl_libdirstem"; then
8880           additional_libdir="$withval/$acl_libdirstem2"
8881         fi
8882       fi
8883     fi
8884
8885 fi
8886
8887       LIBICONV=
8888   LTLIBICONV=
8889   INCICONV=
8890   LIBICONV_PREFIX=
8891       HAVE_LIBICONV=
8892   rpathdirs=
8893   ltrpathdirs=
8894   names_already_handled=
8895   names_next_round='iconv '
8896   while test -n "$names_next_round"; do
8897     names_this_round="$names_next_round"
8898     names_next_round=
8899     for name in $names_this_round; do
8900       already_handled=
8901       for n in $names_already_handled; do
8902         if test "$n" = "$name"; then
8903           already_handled=yes
8904           break
8905         fi
8906       done
8907       if test -z "$already_handled"; then
8908         names_already_handled="$names_already_handled $name"
8909                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8910         eval value=\"\$HAVE_LIB$uppername\"
8911         if test -n "$value"; then
8912           if test "$value" = yes; then
8913             eval value=\"\$LIB$uppername\"
8914             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8915             eval value=\"\$LTLIB$uppername\"
8916             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8917           else
8918                                     :
8919           fi
8920         else
8921                               found_dir=
8922           found_la=
8923           found_so=
8924           found_a=
8925           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8926           if test -n "$acl_shlibext"; then
8927             shrext=".$acl_shlibext"             # typically: shrext=.so
8928           else
8929             shrext=
8930           fi
8931           if test $use_additional = yes; then
8932             dir="$additional_libdir"
8933                                     if test -n "$acl_shlibext"; then
8934               if test -f "$dir/$libname$shrext"; then
8935                 found_dir="$dir"
8936                 found_so="$dir/$libname$shrext"
8937               else
8938                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8939                   ver=`(cd "$dir" && \
8940                         for f in "$libname$shrext".*; do echo "$f"; done \
8941                         | sed -e "s,^$libname$shrext\\\\.,," \
8942                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8943                         | sed 1q ) 2>/dev/null`
8944                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8945                     found_dir="$dir"
8946                     found_so="$dir/$libname$shrext.$ver"
8947                   fi
8948                 else
8949                   eval library_names=\"$acl_library_names_spec\"
8950                   for f in $library_names; do
8951                     if test -f "$dir/$f"; then
8952                       found_dir="$dir"
8953                       found_so="$dir/$f"
8954                       break
8955                     fi
8956                   done
8957                 fi
8958               fi
8959             fi
8960                         if test "X$found_dir" = "X"; then
8961               if test -f "$dir/$libname.$acl_libext"; then
8962                 found_dir="$dir"
8963                 found_a="$dir/$libname.$acl_libext"
8964               fi
8965             fi
8966             if test "X$found_dir" != "X"; then
8967               if test -f "$dir/$libname.la"; then
8968                 found_la="$dir/$libname.la"
8969               fi
8970             fi
8971           fi
8972           if test "X$found_dir" = "X"; then
8973             for x in $LDFLAGS $LTLIBICONV; do
8974
8975   acl_save_prefix="$prefix"
8976   prefix="$acl_final_prefix"
8977   acl_save_exec_prefix="$exec_prefix"
8978   exec_prefix="$acl_final_exec_prefix"
8979   eval x=\"$x\"
8980   exec_prefix="$acl_save_exec_prefix"
8981   prefix="$acl_save_prefix"
8982
8983               case "$x" in
8984                 -L*)
8985                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8986                                     if test -n "$acl_shlibext"; then
8987                     if test -f "$dir/$libname$shrext"; then
8988                       found_dir="$dir"
8989                       found_so="$dir/$libname$shrext"
8990                     else
8991                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8992                         ver=`(cd "$dir" && \
8993                               for f in "$libname$shrext".*; do echo "$f"; done \
8994                               | sed -e "s,^$libname$shrext\\\\.,," \
8995                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8996                               | sed 1q ) 2>/dev/null`
8997                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8998                           found_dir="$dir"
8999                           found_so="$dir/$libname$shrext.$ver"
9000                         fi
9001                       else
9002                         eval library_names=\"$acl_library_names_spec\"
9003                         for f in $library_names; do
9004                           if test -f "$dir/$f"; then
9005                             found_dir="$dir"
9006                             found_so="$dir/$f"
9007                             break
9008                           fi
9009                         done
9010                       fi
9011                     fi
9012                   fi
9013                                     if test "X$found_dir" = "X"; then
9014                     if test -f "$dir/$libname.$acl_libext"; then
9015                       found_dir="$dir"
9016                       found_a="$dir/$libname.$acl_libext"
9017                     fi
9018                   fi
9019                   if test "X$found_dir" != "X"; then
9020                     if test -f "$dir/$libname.la"; then
9021                       found_la="$dir/$libname.la"
9022                     fi
9023                   fi
9024                   ;;
9025               esac
9026               if test "X$found_dir" != "X"; then
9027                 break
9028               fi
9029             done
9030           fi
9031           if test "X$found_dir" != "X"; then
9032                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9033             if test "X$found_so" != "X"; then
9034                                                         if test "$enable_rpath" = no \
9035                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9036                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9037                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9038               else
9039                                                                                 haveit=
9040                 for x in $ltrpathdirs; do
9041                   if test "X$x" = "X$found_dir"; then
9042                     haveit=yes
9043                     break
9044                   fi
9045                 done
9046                 if test -z "$haveit"; then
9047                   ltrpathdirs="$ltrpathdirs $found_dir"
9048                 fi
9049                                 if test "$acl_hardcode_direct" = yes; then
9050                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9051                 else
9052                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9053                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9054                                                             haveit=
9055                     for x in $rpathdirs; do
9056                       if test "X$x" = "X$found_dir"; then
9057                         haveit=yes
9058                         break
9059                       fi
9060                     done
9061                     if test -z "$haveit"; then
9062                       rpathdirs="$rpathdirs $found_dir"
9063                     fi
9064                   else
9065                                                                                 haveit=
9066                     for x in $LDFLAGS $LIBICONV; do
9067
9068   acl_save_prefix="$prefix"
9069   prefix="$acl_final_prefix"
9070   acl_save_exec_prefix="$exec_prefix"
9071   exec_prefix="$acl_final_exec_prefix"
9072   eval x=\"$x\"
9073   exec_prefix="$acl_save_exec_prefix"
9074   prefix="$acl_save_prefix"
9075
9076                       if test "X$x" = "X-L$found_dir"; then
9077                         haveit=yes
9078                         break
9079                       fi
9080                     done
9081                     if test -z "$haveit"; then
9082                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9083                     fi
9084                     if test "$acl_hardcode_minus_L" != no; then
9085                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9086                     else
9087                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9088                     fi
9089                   fi
9090                 fi
9091               fi
9092             else
9093               if test "X$found_a" != "X"; then
9094                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9095               else
9096                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9097               fi
9098             fi
9099                         additional_includedir=
9100             case "$found_dir" in
9101               */$acl_libdirstem | */$acl_libdirstem/)
9102                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9103                 if test "$name" = 'iconv'; then
9104                   LIBICONV_PREFIX="$basedir"
9105                 fi
9106                 additional_includedir="$basedir/include"
9107                 ;;
9108               */$acl_libdirstem2 | */$acl_libdirstem2/)
9109                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9110                 if test "$name" = 'iconv'; then
9111                   LIBICONV_PREFIX="$basedir"
9112                 fi
9113                 additional_includedir="$basedir/include"
9114                 ;;
9115             esac
9116             if test "X$additional_includedir" != "X"; then
9117                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9118                 haveit=
9119                 if test "X$additional_includedir" = "X/usr/local/include"; then
9120                   if test -n "$GCC"; then
9121                     case $host_os in
9122                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9123                     esac
9124                   fi
9125                 fi
9126                 if test -z "$haveit"; then
9127                   for x in $CPPFLAGS $INCICONV; do
9128
9129   acl_save_prefix="$prefix"
9130   prefix="$acl_final_prefix"
9131   acl_save_exec_prefix="$exec_prefix"
9132   exec_prefix="$acl_final_exec_prefix"
9133   eval x=\"$x\"
9134   exec_prefix="$acl_save_exec_prefix"
9135   prefix="$acl_save_prefix"
9136
9137                     if test "X$x" = "X-I$additional_includedir"; then
9138                       haveit=yes
9139                       break
9140                     fi
9141                   done
9142                   if test -z "$haveit"; then
9143                     if test -d "$additional_includedir"; then
9144                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9145                     fi
9146                   fi
9147                 fi
9148               fi
9149             fi
9150                         if test -n "$found_la"; then
9151                                                         save_libdir="$libdir"
9152               case "$found_la" in
9153                 */* | *\\*) . "$found_la" ;;
9154                 *) . "./$found_la" ;;
9155               esac
9156               libdir="$save_libdir"
9157                             for dep in $dependency_libs; do
9158                 case "$dep" in
9159                   -L*)
9160                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9161                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9162                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9163                       haveit=
9164                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9165                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9166                         if test -n "$GCC"; then
9167                           case $host_os in
9168                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9169                           esac
9170                         fi
9171                       fi
9172                       if test -z "$haveit"; then
9173                         haveit=
9174                         for x in $LDFLAGS $LIBICONV; do
9175
9176   acl_save_prefix="$prefix"
9177   prefix="$acl_final_prefix"
9178   acl_save_exec_prefix="$exec_prefix"
9179   exec_prefix="$acl_final_exec_prefix"
9180   eval x=\"$x\"
9181   exec_prefix="$acl_save_exec_prefix"
9182   prefix="$acl_save_prefix"
9183
9184                           if test "X$x" = "X-L$additional_libdir"; then
9185                             haveit=yes
9186                             break
9187                           fi
9188                         done
9189                         if test -z "$haveit"; then
9190                           if test -d "$additional_libdir"; then
9191                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9192                           fi
9193                         fi
9194                         haveit=
9195                         for x in $LDFLAGS $LTLIBICONV; do
9196
9197   acl_save_prefix="$prefix"
9198   prefix="$acl_final_prefix"
9199   acl_save_exec_prefix="$exec_prefix"
9200   exec_prefix="$acl_final_exec_prefix"
9201   eval x=\"$x\"
9202   exec_prefix="$acl_save_exec_prefix"
9203   prefix="$acl_save_prefix"
9204
9205                           if test "X$x" = "X-L$additional_libdir"; then
9206                             haveit=yes
9207                             break
9208                           fi
9209                         done
9210                         if test -z "$haveit"; then
9211                           if test -d "$additional_libdir"; then
9212                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9213                           fi
9214                         fi
9215                       fi
9216                     fi
9217                     ;;
9218                   -R*)
9219                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9220                     if test "$enable_rpath" != no; then
9221                                                                   haveit=
9222                       for x in $rpathdirs; do
9223                         if test "X$x" = "X$dir"; then
9224                           haveit=yes
9225                           break
9226                         fi
9227                       done
9228                       if test -z "$haveit"; then
9229                         rpathdirs="$rpathdirs $dir"
9230                       fi
9231                                                                   haveit=
9232                       for x in $ltrpathdirs; do
9233                         if test "X$x" = "X$dir"; then
9234                           haveit=yes
9235                           break
9236                         fi
9237                       done
9238                       if test -z "$haveit"; then
9239                         ltrpathdirs="$ltrpathdirs $dir"
9240                       fi
9241                     fi
9242                     ;;
9243                   -l*)
9244                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9245                     ;;
9246                   *.la)
9247                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9248                     ;;
9249                   *)
9250                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9251                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9252                     ;;
9253                 esac
9254               done
9255             fi
9256           else
9257                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9258             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9259           fi
9260         fi
9261       fi
9262     done
9263   done
9264   if test "X$rpathdirs" != "X"; then
9265     if test -n "$acl_hardcode_libdir_separator"; then
9266                         alldirs=
9267       for found_dir in $rpathdirs; do
9268         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9269       done
9270             acl_save_libdir="$libdir"
9271       libdir="$alldirs"
9272       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9273       libdir="$acl_save_libdir"
9274       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9275     else
9276             for found_dir in $rpathdirs; do
9277         acl_save_libdir="$libdir"
9278         libdir="$found_dir"
9279         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9280         libdir="$acl_save_libdir"
9281         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9282       done
9283     fi
9284   fi
9285   if test "X$ltrpathdirs" != "X"; then
9286             for found_dir in $ltrpathdirs; do
9287       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9288     done
9289   fi
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302           am_save_CPPFLAGS="$CPPFLAGS"
9303
9304   for element in $INCICONV; do
9305     haveit=
9306     for x in $CPPFLAGS; do
9307
9308   acl_save_prefix="$prefix"
9309   prefix="$acl_final_prefix"
9310   acl_save_exec_prefix="$exec_prefix"
9311   exec_prefix="$acl_final_exec_prefix"
9312   eval x=\"$x\"
9313   exec_prefix="$acl_save_exec_prefix"
9314   prefix="$acl_save_prefix"
9315
9316       if test "X$x" = "X$element"; then
9317         haveit=yes
9318         break
9319       fi
9320     done
9321     if test -z "$haveit"; then
9322       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9323     fi
9324   done
9325
9326
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9328 $as_echo_n "checking for iconv... " >&6; }
9329 if ${am_cv_func_iconv+:} false; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332
9333     am_cv_func_iconv="no, consider installing GNU libiconv"
9334     am_cv_lib_iconv=no
9335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h.  */
9337
9338 #include <stdlib.h>
9339 #include <iconv.h>
9340
9341 int
9342 main ()
9343 {
9344 iconv_t cd = iconv_open("","");
9345            iconv(cd,NULL,NULL,NULL,NULL);
9346            iconv_close(cd);
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352   am_cv_func_iconv=yes
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355     conftest$ac_exeext conftest.$ac_ext
9356     if test "$am_cv_func_iconv" != yes; then
9357       am_save_LIBS="$LIBS"
9358       LIBS="$LIBS $LIBICONV"
9359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h.  */
9361
9362 #include <stdlib.h>
9363 #include <iconv.h>
9364
9365 int
9366 main ()
9367 {
9368 iconv_t cd = iconv_open("","");
9369              iconv(cd,NULL,NULL,NULL,NULL);
9370              iconv_close(cd);
9371   ;
9372   return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376   am_cv_lib_iconv=yes
9377         am_cv_func_iconv=yes
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381       LIBS="$am_save_LIBS"
9382     fi
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9386 $as_echo "$am_cv_func_iconv" >&6; }
9387   if test "$am_cv_func_iconv" = yes; then
9388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9389 $as_echo_n "checking for working iconv... " >&6; }
9390 if ${am_cv_func_iconv_works+:} false; then :
9391   $as_echo_n "(cached) " >&6
9392 else
9393
9394                   am_save_LIBS="$LIBS"
9395       if test $am_cv_lib_iconv = yes; then
9396         LIBS="$LIBS $LIBICONV"
9397       fi
9398       if test "$cross_compiling" = yes; then :
9399
9400          case "$host_os" in
9401            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9402            *)            am_cv_func_iconv_works="guessing yes" ;;
9403          esac
9404
9405 else
9406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h.  */
9408
9409 #include <iconv.h>
9410 #include <string.h>
9411 int main ()
9412 {
9413   int result = 0;
9414   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9415      returns.  */
9416   {
9417     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9418     if (cd_utf8_to_88591 != (iconv_t)(-1))
9419       {
9420         static const char input[] = "\342\202\254"; /* EURO SIGN */
9421         char buf[10];
9422         const char *inptr = input;
9423         size_t inbytesleft = strlen (input);
9424         char *outptr = buf;
9425         size_t outbytesleft = sizeof (buf);
9426         size_t res = iconv (cd_utf8_to_88591,
9427                             (char **) &inptr, &inbytesleft,
9428                             &outptr, &outbytesleft);
9429         if (res == 0)
9430           result |= 1;
9431         iconv_close (cd_utf8_to_88591);
9432       }
9433   }
9434   /* Test against Solaris 10 bug: Failures are not distinguishable from
9435      successful returns.  */
9436   {
9437     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9438     if (cd_ascii_to_88591 != (iconv_t)(-1))
9439       {
9440         static const char input[] = "\263";
9441         char buf[10];
9442         const char *inptr = input;
9443         size_t inbytesleft = strlen (input);
9444         char *outptr = buf;
9445         size_t outbytesleft = sizeof (buf);
9446         size_t res = iconv (cd_ascii_to_88591,
9447                             (char **) &inptr, &inbytesleft,
9448                             &outptr, &outbytesleft);
9449         if (res == 0)
9450           result |= 2;
9451         iconv_close (cd_ascii_to_88591);
9452       }
9453   }
9454   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9455   {
9456     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9457     if (cd_88591_to_utf8 != (iconv_t)(-1))
9458       {
9459         static const char input[] = "\304";
9460         static char buf[2] = { (char)0xDE, (char)0xAD };
9461         const char *inptr = input;
9462         size_t inbytesleft = 1;
9463         char *outptr = buf;
9464         size_t outbytesleft = 1;
9465         size_t res = iconv (cd_88591_to_utf8,
9466                             (char **) &inptr, &inbytesleft,
9467                             &outptr, &outbytesleft);
9468         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9469           result |= 4;
9470         iconv_close (cd_88591_to_utf8);
9471       }
9472   }
9473 #if 0 /* This bug could be worked around by the caller.  */
9474   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9475   {
9476     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9477     if (cd_88591_to_utf8 != (iconv_t)(-1))
9478       {
9479         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9480         char buf[50];
9481         const char *inptr = input;
9482         size_t inbytesleft = strlen (input);
9483         char *outptr = buf;
9484         size_t outbytesleft = sizeof (buf);
9485         size_t res = iconv (cd_88591_to_utf8,
9486                             (char **) &inptr, &inbytesleft,
9487                             &outptr, &outbytesleft);
9488         if ((int)res > 0)
9489           result |= 8;
9490         iconv_close (cd_88591_to_utf8);
9491       }
9492   }
9493 #endif
9494   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9495      provided.  */
9496   if (/* Try standardized names.  */
9497       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9498       /* Try IRIX, OSF/1 names.  */
9499       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9500       /* Try AIX names.  */
9501       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9502       /* Try HP-UX names.  */
9503       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9504     result |= 16;
9505   return result;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_run "$LINENO"; then :
9509   am_cv_func_iconv_works=yes
9510 else
9511   am_cv_func_iconv_works=no
9512 fi
9513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9514   conftest.$ac_objext conftest.beam conftest.$ac_ext
9515 fi
9516
9517       LIBS="$am_save_LIBS"
9518
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9521 $as_echo "$am_cv_func_iconv_works" >&6; }
9522     case "$am_cv_func_iconv_works" in
9523       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9524       *)   am_func_iconv=yes ;;
9525     esac
9526   else
9527     am_func_iconv=no am_cv_lib_iconv=no
9528   fi
9529   if test "$am_func_iconv" = yes; then
9530
9531 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9532
9533   fi
9534   if test "$am_cv_lib_iconv" = yes; then
9535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9536 $as_echo_n "checking how to link with libiconv... " >&6; }
9537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9538 $as_echo "$LIBICONV" >&6; }
9539   else
9540             CPPFLAGS="$am_save_CPPFLAGS"
9541     LIBICONV=
9542     LTLIBICONV=
9543   fi
9544
9545
9546
9547   if test "$am_cv_func_iconv" = yes; then
9548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9549 $as_echo_n "checking for iconv declaration... " >&6; }
9550     if ${am_cv_proto_iconv+:} false; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553
9554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 #include <stdlib.h>
9558 #include <iconv.h>
9559 extern
9560 #ifdef __cplusplus
9561 "C"
9562 #endif
9563 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9564 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9565 #else
9566 size_t iconv();
9567 #endif
9568
9569 int
9570 main ()
9571 {
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"; then :
9578   am_cv_proto_iconv_arg1=""
9579 else
9580   am_cv_proto_iconv_arg1="const"
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583       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);"
9584 fi
9585
9586     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9587     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9588          $am_cv_proto_iconv" >&5
9589 $as_echo "
9590          $am_cv_proto_iconv" >&6; }
9591
9592 cat >>confdefs.h <<_ACEOF
9593 #define ICONV_CONST $am_cv_proto_iconv_arg1
9594 _ACEOF
9595
9596
9597   fi
9598
9599
9600
9601
9602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h.  */
9604 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9605 int
9606 main ()
9607 {
9608
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614
9615 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9616
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620
9621   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9622 do :
9623   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9626   cat >>confdefs.h <<_ACEOF
9627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9628 _ACEOF
9629
9630 fi
9631
9632 done
9633
9634   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9635     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9636     argz_stringify argz_next __fsetlocking
9637 do :
9638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9641   cat >>confdefs.h <<_ACEOF
9642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9643 _ACEOF
9644
9645 fi
9646 done
9647
9648
9649           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9650 "
9651 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9652   ac_have_decl=1
9653 else
9654   ac_have_decl=0
9655 fi
9656
9657 cat >>confdefs.h <<_ACEOF
9658 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9659 _ACEOF
9660 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9661 "
9662 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9663   ac_have_decl=1
9664 else
9665   ac_have_decl=0
9666 fi
9667
9668 cat >>confdefs.h <<_ACEOF
9669 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9670 _ACEOF
9671
9672
9673
9674
9675                       for ac_prog in bison
9676 do
9677   # Extract the first word of "$ac_prog", so it can be a program name with args.
9678 set dummy $ac_prog; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_prog_INTLBISON+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   if test -n "$INTLBISON"; then
9685   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9686 else
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9689 do
9690   IFS=$as_save_IFS
9691   test -z "$as_dir" && as_dir=.
9692     for ac_exec_ext in '' $ac_executable_extensions; do
9693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694     ac_cv_prog_INTLBISON="$ac_prog"
9695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696     break 2
9697   fi
9698 done
9699   done
9700 IFS=$as_save_IFS
9701
9702 fi
9703 fi
9704 INTLBISON=$ac_cv_prog_INTLBISON
9705 if test -n "$INTLBISON"; then
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9707 $as_echo "$INTLBISON" >&6; }
9708 else
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9711 fi
9712
9713
9714   test -n "$INTLBISON" && break
9715 done
9716
9717   if test -z "$INTLBISON"; then
9718     ac_verc_fail=yes
9719   else
9720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9721 $as_echo_n "checking version of bison... " >&6; }
9722     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9723     case $ac_prog_version in
9724       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9725       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9726          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9727       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9728     esac
9729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9730 $as_echo "$ac_prog_version" >&6; }
9731   fi
9732   if test $ac_verc_fail = yes; then
9733     INTLBISON=:
9734   fi
9735
9736
9737
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9739 $as_echo_n "checking for long long int... " >&6; }
9740 if ${ac_cv_type_long_long_int+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   ac_cv_type_long_long_int=yes
9744       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9745         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9746         if test $ac_cv_type_long_long_int = yes; then
9747                                         if test "$cross_compiling" = yes; then :
9748   :
9749 else
9750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h.  */
9752 #include <limits.h>
9753                  #ifndef LLONG_MAX
9754                  # define HALF \
9755                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9756                  # define LLONG_MAX (HALF - 1 + HALF)
9757                  #endif
9758 int
9759 main ()
9760 {
9761 long long int n = 1;
9762                  int i;
9763                  for (i = 0; ; i++)
9764                    {
9765                      long long int m = n << i;
9766                      if (m >> i != n)
9767                        return 1;
9768                      if (LLONG_MAX / 2 < m)
9769                        break;
9770                    }
9771                  return 0;
9772   ;
9773   return 0;
9774 }
9775 _ACEOF
9776 if ac_fn_c_try_run "$LINENO"; then :
9777
9778 else
9779   ac_cv_type_long_long_int=no
9780 fi
9781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9782   conftest.$ac_objext conftest.beam conftest.$ac_ext
9783 fi
9784
9785         fi
9786       fi
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9789 $as_echo "$ac_cv_type_long_long_int" >&6; }
9790   if test $ac_cv_type_long_long_int = yes; then
9791
9792 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9793
9794   fi
9795
9796
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9798 $as_echo_n "checking for wchar_t... " >&6; }
9799 if ${gt_cv_c_wchar_t+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h.  */
9804 #include <stddef.h>
9805             wchar_t foo = (wchar_t)'\0';
9806 int
9807 main ()
9808 {
9809
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 if ac_fn_c_try_compile "$LINENO"; then :
9815   gt_cv_c_wchar_t=yes
9816 else
9817   gt_cv_c_wchar_t=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9822 $as_echo "$gt_cv_c_wchar_t" >&6; }
9823   if test $gt_cv_c_wchar_t = yes; then
9824
9825 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9826
9827   fi
9828
9829
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9831 $as_echo_n "checking for wint_t... " >&6; }
9832 if ${gt_cv_c_wint_t+:} false; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h.  */
9837
9838 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9839    <wchar.h>.
9840    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9841    before <wchar.h>.  */
9842 #include <stddef.h>
9843 #include <stdio.h>
9844 #include <time.h>
9845 #include <wchar.h>
9846             wint_t foo = (wchar_t)'\0';
9847 int
9848 main ()
9849 {
9850
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_compile "$LINENO"; then :
9856   gt_cv_c_wint_t=yes
9857 else
9858   gt_cv_c_wint_t=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9863 $as_echo "$gt_cv_c_wint_t" >&6; }
9864   if test $gt_cv_c_wint_t = yes; then
9865
9866 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9867
9868   fi
9869
9870
9871
9872
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9874 $as_echo_n "checking for intmax_t... " >&6; }
9875 if ${gt_cv_c_intmax_t+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880
9881 #include <stddef.h>
9882 #include <stdlib.h>
9883 #if HAVE_STDINT_H_WITH_UINTMAX
9884 #include <stdint.h>
9885 #endif
9886 #if HAVE_INTTYPES_H_WITH_UINTMAX
9887 #include <inttypes.h>
9888 #endif
9889
9890 int
9891 main ()
9892 {
9893 intmax_t x = -1;
9894             return !x;
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_compile "$LINENO"; then :
9900   gt_cv_c_intmax_t=yes
9901 else
9902   gt_cv_c_intmax_t=no
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 fi
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9907 $as_echo "$gt_cv_c_intmax_t" >&6; }
9908   if test $gt_cv_c_intmax_t = yes; then
9909
9910 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9911
9912   fi
9913
9914
9915
9916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9917 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9918 if ${gt_cv_func_printf_posix+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921
9922       if test "$cross_compiling" = yes; then :
9923
9924           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h.  */
9926
9927 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9928   notposix
9929 #endif
9930
9931 _ACEOF
9932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9933   $EGREP "notposix" >/dev/null 2>&1; then :
9934   gt_cv_func_printf_posix="guessing no"
9935 else
9936   gt_cv_func_printf_posix="guessing yes"
9937 fi
9938 rm -f conftest*
9939
9940
9941 else
9942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h.  */
9944
9945 #include <stdio.h>
9946 #include <string.h>
9947 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9948    dollar expansion (possibly an autoconf bug).  */
9949 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9950 static char buf[100];
9951 int main ()
9952 {
9953   sprintf (buf, format, 33, 55);
9954   return (strcmp (buf, "55 33") != 0);
9955 }
9956 _ACEOF
9957 if ac_fn_c_try_run "$LINENO"; then :
9958   gt_cv_func_printf_posix=yes
9959 else
9960   gt_cv_func_printf_posix=no
9961 fi
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963   conftest.$ac_objext conftest.beam conftest.$ac_ext
9964 fi
9965
9966
9967 fi
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9969 $as_echo "$gt_cv_func_printf_posix" >&6; }
9970   case $gt_cv_func_printf_posix in
9971     *yes)
9972
9973 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9974
9975       ;;
9976   esac
9977
9978
9979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9980 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9981 if ${ac_cv_gnu_library_2_1+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h.  */
9986
9987 #include <features.h>
9988 #ifdef __GNU_LIBRARY__
9989  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9990   Lucky GNU user
9991  #endif
9992 #endif
9993 #ifdef __UCLIBC__
9994  Lucky user
9995 #endif
9996
9997 _ACEOF
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999   $EGREP "Lucky" >/dev/null 2>&1; then :
10000   ac_cv_gnu_library_2_1=yes
10001 else
10002   ac_cv_gnu_library_2_1=no
10003 fi
10004 rm -f conftest*
10005
10006
10007
10008 fi
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10010 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10011
10012     GLIBC21="$ac_cv_gnu_library_2_1"
10013
10014
10015
10016   for ac_header in stdint.h
10017 do :
10018   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10019 if test "x$ac_cv_header_stdint_h" = xyes; then :
10020   cat >>confdefs.h <<_ACEOF
10021 #define HAVE_STDINT_H 1
10022 _ACEOF
10023
10024 fi
10025
10026 done
10027
10028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10029 $as_echo_n "checking for SIZE_MAX... " >&6; }
10030 if ${gl_cv_size_max+:} false; then :
10031   $as_echo_n "(cached) " >&6
10032 else
10033
10034     gl_cv_size_max=
10035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h.  */
10037
10038 #include <limits.h>
10039 #if HAVE_STDINT_H
10040 #include <stdint.h>
10041 #endif
10042 #ifdef SIZE_MAX
10043 Found it
10044 #endif
10045
10046 _ACEOF
10047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10048   $EGREP "Found it" >/dev/null 2>&1; then :
10049   gl_cv_size_max=yes
10050 fi
10051 rm -f conftest*
10052
10053     if test -z "$gl_cv_size_max"; then
10054                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10055 #include <limits.h>"; then :
10056
10057 else
10058   size_t_bits_minus_1=
10059 fi
10060
10061       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10062
10063 else
10064   fits_in_uint=
10065 fi
10066
10067       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10068         if test $fits_in_uint = 1; then
10069                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h.  */
10071 #include <stddef.h>
10072                  extern size_t foo;
10073                  extern unsigned long foo;
10074
10075 int
10076 main ()
10077 {
10078
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084   fits_in_uint=0
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087         fi
10088                                 if test $fits_in_uint = 1; then
10089           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10090         else
10091           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10092         fi
10093       else
10094                 gl_cv_size_max='((size_t)~(size_t)0)'
10095       fi
10096     fi
10097
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10100 $as_echo "$gl_cv_size_max" >&6; }
10101   if test "$gl_cv_size_max" != yes; then
10102
10103 cat >>confdefs.h <<_ACEOF
10104 #define SIZE_MAX $gl_cv_size_max
10105 _ACEOF
10106
10107   fi
10108
10109
10110
10111
10112   for ac_header in stdint.h
10113 do :
10114   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10115 if test "x$ac_cv_header_stdint_h" = xyes; then :
10116   cat >>confdefs.h <<_ACEOF
10117 #define HAVE_STDINT_H 1
10118 _ACEOF
10119
10120 fi
10121
10122 done
10123
10124
10125
10126
10127
10128   for ac_func in $ac_func_list
10129 do :
10130   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10133   cat >>confdefs.h <<_ACEOF
10134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10135 _ACEOF
10136
10137 fi
10138 done
10139
10140
10141
10142
10143
10144
10145
10146
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10148 $as_echo_n "checking for working fcntl.h... " >&6; }
10149 if ${gl_cv_header_working_fcntl_h+:} false; then :
10150   $as_echo_n "(cached) " >&6
10151 else
10152   if test "$cross_compiling" = yes; then :
10153   gl_cv_header_working_fcntl_h=cross-compiling
10154 else
10155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h.  */
10157 #include <sys/types.h>
10158            #include <sys/stat.h>
10159            #if HAVE_UNISTD_H
10160            # include <unistd.h>
10161            #else /* on Windows with MSVC */
10162            # include <io.h>
10163            # include <stdlib.h>
10164            # defined sleep(n) _sleep ((n) * 1000)
10165            #endif
10166            #include <fcntl.h>
10167            #ifndef O_NOATIME
10168             #define O_NOATIME 0
10169            #endif
10170            #ifndef O_NOFOLLOW
10171             #define O_NOFOLLOW 0
10172            #endif
10173            static int const constants[] =
10174             {
10175               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10176               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10177             };
10178
10179 int
10180 main ()
10181 {
10182
10183             int result = !constants;
10184             #if HAVE_SYMLINK
10185             {
10186               static char const sym[] = "conftest.sym";
10187               if (symlink ("/dev/null", sym) != 0)
10188                 result |= 2;
10189               else
10190                 {
10191                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10192                   if (fd >= 0)
10193                     {
10194                       close (fd);
10195                       result |= 4;
10196                     }
10197                 }
10198               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10199                 result |= 2;
10200               else
10201                 {
10202                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10203                   if (fd >= 0)
10204                     {
10205                       close (fd);
10206                       result |= 4;
10207                     }
10208                 }
10209               unlink (sym);
10210             }
10211             #endif
10212             {
10213               static char const file[] = "confdefs.h";
10214               int fd = open (file, O_RDONLY | O_NOATIME);
10215               if (fd < 0)
10216                 result |= 8;
10217               else
10218                 {
10219                   struct stat st0;
10220                   if (fstat (fd, &st0) != 0)
10221                     result |= 16;
10222                   else
10223                     {
10224                       char c;
10225                       sleep (1);
10226                       if (read (fd, &c, 1) != 1)
10227                         result |= 24;
10228                       else
10229                         {
10230                           if (close (fd) != 0)
10231                             result |= 32;
10232                           else
10233                             {
10234                               struct stat st1;
10235                               if (stat (file, &st1) != 0)
10236                                 result |= 40;
10237                               else
10238                                 if (st0.st_atime != st1.st_atime)
10239                                   result |= 64;
10240                             }
10241                         }
10242                     }
10243                 }
10244             }
10245             return result;
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_run "$LINENO"; then :
10251   gl_cv_header_working_fcntl_h=yes
10252 else
10253   case $? in #(
10254         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10255         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10256         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10257          *) gl_cv_header_working_fcntl_h='no';;
10258         esac
10259 fi
10260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10261   conftest.$ac_objext conftest.beam conftest.$ac_ext
10262 fi
10263
10264 fi
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10266 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10267
10268   case $gl_cv_header_working_fcntl_h in #(
10269   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10270   *) ac_val=1;;
10271   esac
10272
10273 cat >>confdefs.h <<_ACEOF
10274 #define HAVE_WORKING_O_NOATIME $ac_val
10275 _ACEOF
10276
10277
10278   case $gl_cv_header_working_fcntl_h in #(
10279   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10280   *) ac_val=1;;
10281   esac
10282
10283 cat >>confdefs.h <<_ACEOF
10284 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10285 _ACEOF
10286
10287
10288
10289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10290 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10291 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294   gt_save_LIBS="$LIBS"
10295      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10296      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298 #include <CoreFoundation/CFPreferences.h>
10299 int
10300 main ()
10301 {
10302 CFPreferencesCopyAppValue(NULL, NULL)
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308   gt_cv_func_CFPreferencesCopyAppValue=yes
10309 else
10310   gt_cv_func_CFPreferencesCopyAppValue=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313     conftest$ac_exeext conftest.$ac_ext
10314      LIBS="$gt_save_LIBS"
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10317 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10318   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10319
10320 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10321
10322   fi
10323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10324 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10325 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10326   $as_echo_n "(cached) " >&6
10327 else
10328   gt_save_LIBS="$LIBS"
10329      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h.  */
10332 #include <CoreFoundation/CFLocale.h>
10333 int
10334 main ()
10335 {
10336 CFLocaleCopyCurrent();
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342   gt_cv_func_CFLocaleCopyCurrent=yes
10343 else
10344   gt_cv_func_CFLocaleCopyCurrent=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext \
10347     conftest$ac_exeext conftest.$ac_ext
10348      LIBS="$gt_save_LIBS"
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10351 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10352   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10353
10354 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10355
10356   fi
10357   INTL_MACOSX_LIBS=
10358   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10359     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10360   fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371     case "$enable_silent_rules" in
10372     yes) INTL_DEFAULT_VERBOSITY=0;;
10373     no)  INTL_DEFAULT_VERBOSITY=1;;
10374     *)   INTL_DEFAULT_VERBOSITY=1;;
10375   esac
10376
10377
10378   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10379 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10380
10381 else
10382
10383 $as_echo "#define ptrdiff_t long" >>confdefs.h
10384
10385
10386 fi
10387
10388   for ac_header in features.h stddef.h stdlib.h string.h
10389 do :
10390   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10391 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10393   cat >>confdefs.h <<_ACEOF
10394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395 _ACEOF
10396
10397 fi
10398
10399 done
10400
10401   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10402     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10403 do :
10404   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10407   cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10409 _ACEOF
10410
10411 fi
10412 done
10413
10414
10415       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10416 "
10417 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10418   ac_have_decl=1
10419 else
10420   ac_have_decl=0
10421 fi
10422
10423 cat >>confdefs.h <<_ACEOF
10424 #define HAVE_DECL__SNPRINTF $ac_have_decl
10425 _ACEOF
10426 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10427 "
10428 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10429   ac_have_decl=1
10430 else
10431   ac_have_decl=0
10432 fi
10433
10434 cat >>confdefs.h <<_ACEOF
10435 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10436 _ACEOF
10437
10438
10439           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10440 "
10441 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10442   ac_have_decl=1
10443 else
10444   ac_have_decl=0
10445 fi
10446
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10449 _ACEOF
10450
10451
10452   case $gt_cv_func_printf_posix in
10453     *yes) HAVE_POSIX_PRINTF=1 ;;
10454     *) HAVE_POSIX_PRINTF=0 ;;
10455   esac
10456
10457   if test "$ac_cv_func_asprintf" = yes; then
10458     HAVE_ASPRINTF=1
10459   else
10460     HAVE_ASPRINTF=0
10461   fi
10462
10463   if test "$ac_cv_func_snprintf" = yes; then
10464     HAVE_SNPRINTF=1
10465   else
10466     HAVE_SNPRINTF=0
10467   fi
10468
10469   if test "$ac_cv_func_newlocale" = yes; then
10470     HAVE_NEWLOCALE=1
10471   else
10472     HAVE_NEWLOCALE=0
10473   fi
10474
10475   if test "$ac_cv_func_wprintf" = yes; then
10476     HAVE_WPRINTF=1
10477   else
10478     HAVE_WPRINTF=0
10479   fi
10480
10481
10482
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10484 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10485 if ${am_cv_langinfo_codeset+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h.  */
10490 #include <langinfo.h>
10491 int
10492 main ()
10493 {
10494 char* cs = nl_langinfo(CODESET); return !cs;
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500   am_cv_langinfo_codeset=yes
10501 else
10502   am_cv_langinfo_codeset=no
10503 fi
10504 rm -f core conftest.err conftest.$ac_objext \
10505     conftest$ac_exeext conftest.$ac_ext
10506
10507 fi
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10509 $as_echo "$am_cv_langinfo_codeset" >&6; }
10510   if test $am_cv_langinfo_codeset = yes; then
10511
10512 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10513
10514   fi
10515
10516
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10518 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10519 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10520   $as_echo_n "(cached) " >&6
10521 else
10522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h.  */
10524 #include <locale.h>
10525 int
10526 main ()
10527 {
10528 return LC_MESSAGES
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534   gt_cv_val_LC_MESSAGES=yes
10535 else
10536   gt_cv_val_LC_MESSAGES=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext \
10539     conftest$ac_exeext conftest.$ac_ext
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10542 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10543   if test $gt_cv_val_LC_MESSAGES = yes; then
10544
10545 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10546
10547   fi
10548
10549
10550                 if test "$enable_shared" = yes; then
10551     case "$host_os" in
10552       mingw* | cygwin*) is_woe32dll=yes ;;
10553       *) is_woe32dll=no ;;
10554     esac
10555   else
10556     is_woe32dll=no
10557   fi
10558   WOE32DLL=$is_woe32dll
10559
10560
10561       case "$host_os" in
10562     mingw* | cygwin*) is_woe32=yes ;;
10563     *) is_woe32=no ;;
10564   esac
10565   WOE32=$is_woe32
10566
10567   if test $WOE32 = yes; then
10568         if test -n "$ac_tool_prefix"; then
10569   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10570 set dummy ${ac_tool_prefix}windres; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_WINDRES+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   if test -n "$WINDRES"; then
10577   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 WINDRES=$ac_cv_prog_WINDRES
10597 if test -n "$WINDRES"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10599 $as_echo "$WINDRES" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605
10606 fi
10607 if test -z "$ac_cv_prog_WINDRES"; then
10608   ac_ct_WINDRES=$WINDRES
10609   # Extract the first word of "windres", so it can be a program name with args.
10610 set dummy windres; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   if test -n "$ac_ct_WINDRES"; then
10617   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10618 else
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10621 do
10622   IFS=$as_save_IFS
10623   test -z "$as_dir" && as_dir=.
10624     for ac_exec_ext in '' $ac_executable_extensions; do
10625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10626     ac_cv_prog_ac_ct_WINDRES="windres"
10627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10628     break 2
10629   fi
10630 done
10631   done
10632 IFS=$as_save_IFS
10633
10634 fi
10635 fi
10636 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10637 if test -n "$ac_ct_WINDRES"; then
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10639 $as_echo "$ac_ct_WINDRES" >&6; }
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 fi
10644
10645   if test "x$ac_ct_WINDRES" = x; then
10646     WINDRES=""
10647   else
10648     case $cross_compiling:$ac_tool_warned in
10649 yes:)
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10652 ac_tool_warned=yes ;;
10653 esac
10654     WINDRES=$ac_ct_WINDRES
10655   fi
10656 else
10657   WINDRES="$ac_cv_prog_WINDRES"
10658 fi
10659
10660   fi
10661
10662               case "$host_os" in
10663     hpux*) LTLIBC="" ;;
10664     *)     LTLIBC="-lc" ;;
10665   esac
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10694 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10695 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   gt_save_LIBS="$LIBS"
10699      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10700      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h.  */
10702 #include <CoreFoundation/CFPreferences.h>
10703 int
10704 main ()
10705 {
10706 CFPreferencesCopyAppValue(NULL, NULL)
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   gt_cv_func_CFPreferencesCopyAppValue=yes
10713 else
10714   gt_cv_func_CFPreferencesCopyAppValue=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718      LIBS="$gt_save_LIBS"
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10721 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10722   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10723
10724 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10725
10726   fi
10727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10728 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10729 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   gt_save_LIBS="$LIBS"
10733      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10734      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h.  */
10736 #include <CoreFoundation/CFLocale.h>
10737 int
10738 main ()
10739 {
10740 CFLocaleCopyCurrent();
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_c_try_link "$LINENO"; then :
10746   gt_cv_func_CFLocaleCopyCurrent=yes
10747 else
10748   gt_cv_func_CFLocaleCopyCurrent=no
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext \
10751     conftest$ac_exeext conftest.$ac_ext
10752      LIBS="$gt_save_LIBS"
10753 fi
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10755 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10756   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10757
10758 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10759
10760   fi
10761   INTL_MACOSX_LIBS=
10762   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10763     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10764   fi
10765
10766
10767
10768
10769
10770
10771     BUILD_INCLUDED_LIBINTL=no
10772     USE_INCLUDED_LIBINTL=no
10773
10774   LIBINTL=
10775   LTLIBINTL=
10776   POSUB=
10777
10778     case " $gt_needs " in
10779     *" need-formatstring-macros "*) gt_api_version=3 ;;
10780     *" need-ngettext "*) gt_api_version=2 ;;
10781     *) gt_api_version=1 ;;
10782   esac
10783   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10784   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10785
10786     if test "$USE_NLS" = "yes"; then
10787     gt_use_preinstalled_gnugettext=no
10788
10789       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10790 $as_echo_n "checking whether included gettext is requested... " >&6; }
10791
10792 # Check whether --with-included-gettext was given.
10793 if test "${with_included_gettext+set}" = set; then :
10794   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10795 else
10796   nls_cv_force_use_gnu_gettext=no
10797 fi
10798
10799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10800 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10801
10802       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10803       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10804
10805
10806         if test $gt_api_version -ge 3; then
10807           gt_revision_test_code='
10808 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10809 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10810 #endif
10811 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10812 '
10813         else
10814           gt_revision_test_code=
10815         fi
10816         if test $gt_api_version -ge 2; then
10817           gt_expression_test_code=' + * ngettext ("", "", 0)'
10818         else
10819           gt_expression_test_code=
10820         fi
10821
10822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10823 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10824 if eval \${$gt_func_gnugettext_libc+:} false; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 #include <libintl.h>
10831 $gt_revision_test_code
10832 extern int _nl_msg_cat_cntr;
10833 extern int *_nl_domain_bindings;
10834
10835 int
10836 main ()
10837 {
10838
10839 bindtextdomain ("", "");
10840 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10841
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847   eval "$gt_func_gnugettext_libc=yes"
10848 else
10849   eval "$gt_func_gnugettext_libc=no"
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext \
10852     conftest$ac_exeext conftest.$ac_ext
10853 fi
10854 eval ac_res=\$$gt_func_gnugettext_libc
10855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10856 $as_echo "$ac_res" >&6; }
10857
10858         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10859
10860
10861
10862
10863
10864
10865
10866
10867     use_additional=yes
10868
10869   acl_save_prefix="$prefix"
10870   prefix="$acl_final_prefix"
10871   acl_save_exec_prefix="$exec_prefix"
10872   exec_prefix="$acl_final_exec_prefix"
10873
10874     eval additional_includedir=\"$includedir\"
10875     eval additional_libdir=\"$libdir\"
10876
10877   exec_prefix="$acl_save_exec_prefix"
10878   prefix="$acl_save_prefix"
10879
10880
10881 # Check whether --with-libintl-prefix was given.
10882 if test "${with_libintl_prefix+set}" = set; then :
10883   withval=$with_libintl_prefix;
10884     if test "X$withval" = "Xno"; then
10885       use_additional=no
10886     else
10887       if test "X$withval" = "X"; then
10888
10889   acl_save_prefix="$prefix"
10890   prefix="$acl_final_prefix"
10891   acl_save_exec_prefix="$exec_prefix"
10892   exec_prefix="$acl_final_exec_prefix"
10893
10894           eval additional_includedir=\"$includedir\"
10895           eval additional_libdir=\"$libdir\"
10896
10897   exec_prefix="$acl_save_exec_prefix"
10898   prefix="$acl_save_prefix"
10899
10900       else
10901         additional_includedir="$withval/include"
10902         additional_libdir="$withval/$acl_libdirstem"
10903         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10904            && ! test -d "$withval/$acl_libdirstem"; then
10905           additional_libdir="$withval/$acl_libdirstem2"
10906         fi
10907       fi
10908     fi
10909
10910 fi
10911
10912       LIBINTL=
10913   LTLIBINTL=
10914   INCINTL=
10915   LIBINTL_PREFIX=
10916       HAVE_LIBINTL=
10917   rpathdirs=
10918   ltrpathdirs=
10919   names_already_handled=
10920   names_next_round='intl '
10921   while test -n "$names_next_round"; do
10922     names_this_round="$names_next_round"
10923     names_next_round=
10924     for name in $names_this_round; do
10925       already_handled=
10926       for n in $names_already_handled; do
10927         if test "$n" = "$name"; then
10928           already_handled=yes
10929           break
10930         fi
10931       done
10932       if test -z "$already_handled"; then
10933         names_already_handled="$names_already_handled $name"
10934                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10935         eval value=\"\$HAVE_LIB$uppername\"
10936         if test -n "$value"; then
10937           if test "$value" = yes; then
10938             eval value=\"\$LIB$uppername\"
10939             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10940             eval value=\"\$LTLIB$uppername\"
10941             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10942           else
10943                                     :
10944           fi
10945         else
10946                               found_dir=
10947           found_la=
10948           found_so=
10949           found_a=
10950           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10951           if test -n "$acl_shlibext"; then
10952             shrext=".$acl_shlibext"             # typically: shrext=.so
10953           else
10954             shrext=
10955           fi
10956           if test $use_additional = yes; then
10957             dir="$additional_libdir"
10958                                     if test -n "$acl_shlibext"; then
10959               if test -f "$dir/$libname$shrext"; then
10960                 found_dir="$dir"
10961                 found_so="$dir/$libname$shrext"
10962               else
10963                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10964                   ver=`(cd "$dir" && \
10965                         for f in "$libname$shrext".*; do echo "$f"; done \
10966                         | sed -e "s,^$libname$shrext\\\\.,," \
10967                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10968                         | sed 1q ) 2>/dev/null`
10969                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10970                     found_dir="$dir"
10971                     found_so="$dir/$libname$shrext.$ver"
10972                   fi
10973                 else
10974                   eval library_names=\"$acl_library_names_spec\"
10975                   for f in $library_names; do
10976                     if test -f "$dir/$f"; then
10977                       found_dir="$dir"
10978                       found_so="$dir/$f"
10979                       break
10980                     fi
10981                   done
10982                 fi
10983               fi
10984             fi
10985                         if test "X$found_dir" = "X"; then
10986               if test -f "$dir/$libname.$acl_libext"; then
10987                 found_dir="$dir"
10988                 found_a="$dir/$libname.$acl_libext"
10989               fi
10990             fi
10991             if test "X$found_dir" != "X"; then
10992               if test -f "$dir/$libname.la"; then
10993                 found_la="$dir/$libname.la"
10994               fi
10995             fi
10996           fi
10997           if test "X$found_dir" = "X"; then
10998             for x in $LDFLAGS $LTLIBINTL; do
10999
11000   acl_save_prefix="$prefix"
11001   prefix="$acl_final_prefix"
11002   acl_save_exec_prefix="$exec_prefix"
11003   exec_prefix="$acl_final_exec_prefix"
11004   eval x=\"$x\"
11005   exec_prefix="$acl_save_exec_prefix"
11006   prefix="$acl_save_prefix"
11007
11008               case "$x" in
11009                 -L*)
11010                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11011                                     if test -n "$acl_shlibext"; then
11012                     if test -f "$dir/$libname$shrext"; then
11013                       found_dir="$dir"
11014                       found_so="$dir/$libname$shrext"
11015                     else
11016                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11017                         ver=`(cd "$dir" && \
11018                               for f in "$libname$shrext".*; do echo "$f"; done \
11019                               | sed -e "s,^$libname$shrext\\\\.,," \
11020                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11021                               | sed 1q ) 2>/dev/null`
11022                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11023                           found_dir="$dir"
11024                           found_so="$dir/$libname$shrext.$ver"
11025                         fi
11026                       else
11027                         eval library_names=\"$acl_library_names_spec\"
11028                         for f in $library_names; do
11029                           if test -f "$dir/$f"; then
11030                             found_dir="$dir"
11031                             found_so="$dir/$f"
11032                             break
11033                           fi
11034                         done
11035                       fi
11036                     fi
11037                   fi
11038                                     if test "X$found_dir" = "X"; then
11039                     if test -f "$dir/$libname.$acl_libext"; then
11040                       found_dir="$dir"
11041                       found_a="$dir/$libname.$acl_libext"
11042                     fi
11043                   fi
11044                   if test "X$found_dir" != "X"; then
11045                     if test -f "$dir/$libname.la"; then
11046                       found_la="$dir/$libname.la"
11047                     fi
11048                   fi
11049                   ;;
11050               esac
11051               if test "X$found_dir" != "X"; then
11052                 break
11053               fi
11054             done
11055           fi
11056           if test "X$found_dir" != "X"; then
11057                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11058             if test "X$found_so" != "X"; then
11059                                                         if test "$enable_rpath" = no \
11060                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11061                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11062                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11063               else
11064                                                                                 haveit=
11065                 for x in $ltrpathdirs; do
11066                   if test "X$x" = "X$found_dir"; then
11067                     haveit=yes
11068                     break
11069                   fi
11070                 done
11071                 if test -z "$haveit"; then
11072                   ltrpathdirs="$ltrpathdirs $found_dir"
11073                 fi
11074                                 if test "$acl_hardcode_direct" = yes; then
11075                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11076                 else
11077                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11078                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11079                                                             haveit=
11080                     for x in $rpathdirs; do
11081                       if test "X$x" = "X$found_dir"; then
11082                         haveit=yes
11083                         break
11084                       fi
11085                     done
11086                     if test -z "$haveit"; then
11087                       rpathdirs="$rpathdirs $found_dir"
11088                     fi
11089                   else
11090                                                                                 haveit=
11091                     for x in $LDFLAGS $LIBINTL; do
11092
11093   acl_save_prefix="$prefix"
11094   prefix="$acl_final_prefix"
11095   acl_save_exec_prefix="$exec_prefix"
11096   exec_prefix="$acl_final_exec_prefix"
11097   eval x=\"$x\"
11098   exec_prefix="$acl_save_exec_prefix"
11099   prefix="$acl_save_prefix"
11100
11101                       if test "X$x" = "X-L$found_dir"; then
11102                         haveit=yes
11103                         break
11104                       fi
11105                     done
11106                     if test -z "$haveit"; then
11107                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11108                     fi
11109                     if test "$acl_hardcode_minus_L" != no; then
11110                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11111                     else
11112                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11113                     fi
11114                   fi
11115                 fi
11116               fi
11117             else
11118               if test "X$found_a" != "X"; then
11119                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11120               else
11121                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11122               fi
11123             fi
11124                         additional_includedir=
11125             case "$found_dir" in
11126               */$acl_libdirstem | */$acl_libdirstem/)
11127                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11128                 if test "$name" = 'intl'; then
11129                   LIBINTL_PREFIX="$basedir"
11130                 fi
11131                 additional_includedir="$basedir/include"
11132                 ;;
11133               */$acl_libdirstem2 | */$acl_libdirstem2/)
11134                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11135                 if test "$name" = 'intl'; then
11136                   LIBINTL_PREFIX="$basedir"
11137                 fi
11138                 additional_includedir="$basedir/include"
11139                 ;;
11140             esac
11141             if test "X$additional_includedir" != "X"; then
11142                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11143                 haveit=
11144                 if test "X$additional_includedir" = "X/usr/local/include"; then
11145                   if test -n "$GCC"; then
11146                     case $host_os in
11147                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11148                     esac
11149                   fi
11150                 fi
11151                 if test -z "$haveit"; then
11152                   for x in $CPPFLAGS $INCINTL; do
11153
11154   acl_save_prefix="$prefix"
11155   prefix="$acl_final_prefix"
11156   acl_save_exec_prefix="$exec_prefix"
11157   exec_prefix="$acl_final_exec_prefix"
11158   eval x=\"$x\"
11159   exec_prefix="$acl_save_exec_prefix"
11160   prefix="$acl_save_prefix"
11161
11162                     if test "X$x" = "X-I$additional_includedir"; then
11163                       haveit=yes
11164                       break
11165                     fi
11166                   done
11167                   if test -z "$haveit"; then
11168                     if test -d "$additional_includedir"; then
11169                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11170                     fi
11171                   fi
11172                 fi
11173               fi
11174             fi
11175                         if test -n "$found_la"; then
11176                                                         save_libdir="$libdir"
11177               case "$found_la" in
11178                 */* | *\\*) . "$found_la" ;;
11179                 *) . "./$found_la" ;;
11180               esac
11181               libdir="$save_libdir"
11182                             for dep in $dependency_libs; do
11183                 case "$dep" in
11184                   -L*)
11185                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11186                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11187                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11188                       haveit=
11189                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11190                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11191                         if test -n "$GCC"; then
11192                           case $host_os in
11193                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11194                           esac
11195                         fi
11196                       fi
11197                       if test -z "$haveit"; then
11198                         haveit=
11199                         for x in $LDFLAGS $LIBINTL; do
11200
11201   acl_save_prefix="$prefix"
11202   prefix="$acl_final_prefix"
11203   acl_save_exec_prefix="$exec_prefix"
11204   exec_prefix="$acl_final_exec_prefix"
11205   eval x=\"$x\"
11206   exec_prefix="$acl_save_exec_prefix"
11207   prefix="$acl_save_prefix"
11208
11209                           if test "X$x" = "X-L$additional_libdir"; then
11210                             haveit=yes
11211                             break
11212                           fi
11213                         done
11214                         if test -z "$haveit"; then
11215                           if test -d "$additional_libdir"; then
11216                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11217                           fi
11218                         fi
11219                         haveit=
11220                         for x in $LDFLAGS $LTLIBINTL; do
11221
11222   acl_save_prefix="$prefix"
11223   prefix="$acl_final_prefix"
11224   acl_save_exec_prefix="$exec_prefix"
11225   exec_prefix="$acl_final_exec_prefix"
11226   eval x=\"$x\"
11227   exec_prefix="$acl_save_exec_prefix"
11228   prefix="$acl_save_prefix"
11229
11230                           if test "X$x" = "X-L$additional_libdir"; then
11231                             haveit=yes
11232                             break
11233                           fi
11234                         done
11235                         if test -z "$haveit"; then
11236                           if test -d "$additional_libdir"; then
11237                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11238                           fi
11239                         fi
11240                       fi
11241                     fi
11242                     ;;
11243                   -R*)
11244                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11245                     if test "$enable_rpath" != no; then
11246                                                                   haveit=
11247                       for x in $rpathdirs; do
11248                         if test "X$x" = "X$dir"; then
11249                           haveit=yes
11250                           break
11251                         fi
11252                       done
11253                       if test -z "$haveit"; then
11254                         rpathdirs="$rpathdirs $dir"
11255                       fi
11256                                                                   haveit=
11257                       for x in $ltrpathdirs; do
11258                         if test "X$x" = "X$dir"; then
11259                           haveit=yes
11260                           break
11261                         fi
11262                       done
11263                       if test -z "$haveit"; then
11264                         ltrpathdirs="$ltrpathdirs $dir"
11265                       fi
11266                     fi
11267                     ;;
11268                   -l*)
11269                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11270                     ;;
11271                   *.la)
11272                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11273                     ;;
11274                   *)
11275                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11276                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11277                     ;;
11278                 esac
11279               done
11280             fi
11281           else
11282                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11283             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11284           fi
11285         fi
11286       fi
11287     done
11288   done
11289   if test "X$rpathdirs" != "X"; then
11290     if test -n "$acl_hardcode_libdir_separator"; then
11291                         alldirs=
11292       for found_dir in $rpathdirs; do
11293         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11294       done
11295             acl_save_libdir="$libdir"
11296       libdir="$alldirs"
11297       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11298       libdir="$acl_save_libdir"
11299       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11300     else
11301             for found_dir in $rpathdirs; do
11302         acl_save_libdir="$libdir"
11303         libdir="$found_dir"
11304         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11305         libdir="$acl_save_libdir"
11306         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11307       done
11308     fi
11309   fi
11310   if test "X$ltrpathdirs" != "X"; then
11311             for found_dir in $ltrpathdirs; do
11312       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11313     done
11314   fi
11315
11316
11317
11318
11319
11320
11321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11323 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   gt_save_CPPFLAGS="$CPPFLAGS"
11327             CPPFLAGS="$CPPFLAGS $INCINTL"
11328             gt_save_LIBS="$LIBS"
11329             LIBS="$LIBS $LIBINTL"
11330                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332
11333 #include <libintl.h>
11334 $gt_revision_test_code
11335 extern int _nl_msg_cat_cntr;
11336 extern
11337 #ifdef __cplusplus
11338 "C"
11339 #endif
11340 const char *_nl_expand_alias (const char *);
11341
11342 int
11343 main ()
11344 {
11345
11346 bindtextdomain ("", "");
11347 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11348
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354   eval "$gt_func_gnugettext_libintl=yes"
11355 else
11356   eval "$gt_func_gnugettext_libintl=no"
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext \
11359     conftest$ac_exeext conftest.$ac_ext
11360                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11361               LIBS="$LIBS $LIBICONV"
11362               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h.  */
11364
11365 #include <libintl.h>
11366 $gt_revision_test_code
11367 extern int _nl_msg_cat_cntr;
11368 extern
11369 #ifdef __cplusplus
11370 "C"
11371 #endif
11372 const char *_nl_expand_alias (const char *);
11373
11374 int
11375 main ()
11376 {
11377
11378 bindtextdomain ("", "");
11379 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11380
11381   ;
11382   return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386   LIBINTL="$LIBINTL $LIBICONV"
11387                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11388                  eval "$gt_func_gnugettext_libintl=yes"
11389
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392     conftest$ac_exeext conftest.$ac_ext
11393             fi
11394             CPPFLAGS="$gt_save_CPPFLAGS"
11395             LIBS="$gt_save_LIBS"
11396 fi
11397 eval ac_res=\$$gt_func_gnugettext_libintl
11398                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11399 $as_echo "$ac_res" >&6; }
11400         fi
11401
11402                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11403            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11404                 && test "$PACKAGE" != gettext-runtime \
11405                 && test "$PACKAGE" != gettext-tools; }; then
11406           gt_use_preinstalled_gnugettext=yes
11407         else
11408                     LIBINTL=
11409           LTLIBINTL=
11410           INCINTL=
11411         fi
11412
11413
11414         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11415                               nls_cv_use_gnu_gettext=yes
11416         fi
11417       fi
11418
11419       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11420                 BUILD_INCLUDED_LIBINTL=yes
11421         USE_INCLUDED_LIBINTL=yes
11422         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11423         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11424         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11425       fi
11426
11427       CATOBJEXT=
11428       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11429          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11430                 CATOBJEXT=.gmo
11431       fi
11432
11433
11434     if test -n "$INTL_MACOSX_LIBS"; then
11435       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11436          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11437                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11438         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11439       fi
11440     fi
11441
11442     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11443        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11444
11445 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11446
11447     else
11448       USE_NLS=no
11449     fi
11450   fi
11451
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11453 $as_echo_n "checking whether to use NLS... " >&6; }
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11455 $as_echo "$USE_NLS" >&6; }
11456   if test "$USE_NLS" = "yes"; then
11457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11458 $as_echo_n "checking where the gettext function comes from... " >&6; }
11459     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11460       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11461         gt_source="external libintl"
11462       else
11463         gt_source="libc"
11464       fi
11465     else
11466       gt_source="included intl directory"
11467     fi
11468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11469 $as_echo "$gt_source" >&6; }
11470   fi
11471
11472   if test "$USE_NLS" = "yes"; then
11473
11474     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11475       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11477 $as_echo_n "checking how to link with libintl... " >&6; }
11478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11479 $as_echo "$LIBINTL" >&6; }
11480
11481   for element in $INCINTL; do
11482     haveit=
11483     for x in $CPPFLAGS; do
11484
11485   acl_save_prefix="$prefix"
11486   prefix="$acl_final_prefix"
11487   acl_save_exec_prefix="$exec_prefix"
11488   exec_prefix="$acl_final_exec_prefix"
11489   eval x=\"$x\"
11490   exec_prefix="$acl_save_exec_prefix"
11491   prefix="$acl_save_prefix"
11492
11493       if test "X$x" = "X$element"; then
11494         haveit=yes
11495         break
11496       fi
11497     done
11498     if test -z "$haveit"; then
11499       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11500     fi
11501   done
11502
11503       fi
11504
11505
11506 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11507
11508
11509 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11510
11511     fi
11512
11513         POSUB=po
11514   fi
11515
11516
11517             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11518       BUILD_INCLUDED_LIBINTL=yes
11519     fi
11520
11521
11522
11523
11524
11525         nls_cv_header_intl=
11526     nls_cv_header_libgt=
11527
11528         DATADIRNAME=share
11529
11530
11531         INSTOBJEXT=.mo
11532
11533
11534         GENCAT=gencat
11535
11536
11537         INTLOBJS=
11538     if test "$USE_INCLUDED_LIBINTL" = yes; then
11539       INTLOBJS="\$(GETTOBJS)"
11540     fi
11541
11542
11543         INTL_LIBTOOL_SUFFIX_PREFIX=
11544
11545
11546
11547     INTLLIBS="$LIBINTL"
11548
11549
11550
11551
11552
11553
11554
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11556 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11557 set x ${MAKE-make}
11558 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11559 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11560   $as_echo_n "(cached) " >&6
11561 else
11562   cat >conftest.make <<\_ACEOF
11563 SHELL = /bin/sh
11564 all:
11565         @echo '@@@%%%=$(MAKE)=@@@%%%'
11566 _ACEOF
11567 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11568 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11569   *@@@%%%=?*=@@@%%%*)
11570     eval ac_cv_prog_make_${ac_make}_set=yes;;
11571   *)
11572     eval ac_cv_prog_make_${ac_make}_set=no;;
11573 esac
11574 rm -f conftest.make
11575 fi
11576 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11579   SET_MAKE=
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583   SET_MAKE="MAKE=${MAKE-make}"
11584 fi
11585
11586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11587 $as_echo_n "checking for GNU make... " >&6; }
11588 if ${_cv_gnu_make_command+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   _cv_gnu_make_command='' ;
11592                 if test -n "$FORCE_NATIVE_MAKE" ; then
11593                    MAKES="make"
11594                 else
11595                    MAKES="make gmake gnumake"
11596                 fi
11597                 for a in "$MAKE" $MAKES ; do
11598                         if test -z "$a" ; then continue ; fi ;
11599                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11600                                 _cv_gnu_make_command=$a ;
11601                                 break;
11602                         fi
11603                 done ;
11604
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11607 $as_echo "$_cv_gnu_make_command" >&6; } ;
11608         if test  "x$_cv_gnu_make_command" != "x"  ; then
11609                 ifGNUmake='' ;
11610                 ifNotGNUmake='#' ;
11611         else
11612                 ifGNUmake='#' ;
11613                 ifNotGNUmake='' ;
11614                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11615 $as_echo "\"Not found\"" >&6; };
11616         fi
11617
11618
11619
11620 # Extract the first word of "ln", so it can be a program name with args.
11621 set dummy ln; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_LN+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   case $LN in
11628   [\\/]* | ?:[\\/]*)
11629   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11630   ;;
11631   *)
11632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635   IFS=$as_save_IFS
11636   test -z "$as_dir" && as_dir=.
11637     for ac_exec_ext in '' $ac_executable_extensions; do
11638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641     break 2
11642   fi
11643 done
11644   done
11645 IFS=$as_save_IFS
11646
11647   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11648   ;;
11649 esac
11650 fi
11651 LN=$ac_cv_path_LN
11652 if test -n "$LN"; then
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11654 $as_echo "$LN" >&6; }
11655 else
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660
11661
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11663 $as_echo_n "checking whether ln -s works... " >&6; }
11664 LN_S=$as_ln_s
11665 if test "$LN_S" = "ln -s"; then
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11667 $as_echo "yes" >&6; }
11668 else
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11670 $as_echo "no, using $LN_S" >&6; }
11671 fi
11672
11673 # Extract the first word of "mv", so it can be a program name with args.
11674 set dummy mv; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_MV+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   case $MV in
11681   [\\/]* | ?:[\\/]*)
11682   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11683   ;;
11684   *)
11685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11701   ;;
11702 esac
11703 fi
11704 MV=$ac_cv_path_MV
11705 if test -n "$MV"; then
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11707 $as_echo "$MV" >&6; }
11708 else
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713
11714 # Extract the first word of "cp", so it can be a program name with args.
11715 set dummy cp; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_CP+:} false; then :
11719   $as_echo_n "(cached) " >&6
11720 else
11721   case $CP in
11722   [\\/]* | ?:[\\/]*)
11723   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11724   ;;
11725   *)
11726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731     for ac_exec_ext in '' $ac_executable_extensions; do
11732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738   done
11739 IFS=$as_save_IFS
11740
11741   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11742   ;;
11743 esac
11744 fi
11745 CP=$ac_cv_path_CP
11746 if test -n "$CP"; then
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11748 $as_echo "$CP" >&6; }
11749 else
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
11752 fi
11753
11754
11755 # Extract the first word of "rm", so it can be a program name with args.
11756 set dummy rm; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_path_RM+:} false; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   case $RM in
11763   [\\/]* | ?:[\\/]*)
11764   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11765   ;;
11766   *)
11767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $PATH
11769 do
11770   IFS=$as_save_IFS
11771   test -z "$as_dir" && as_dir=.
11772     for ac_exec_ext in '' $ac_executable_extensions; do
11773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776     break 2
11777   fi
11778 done
11779   done
11780 IFS=$as_save_IFS
11781
11782   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11783   ;;
11784 esac
11785 fi
11786 RM=$ac_cv_path_RM
11787 if test -n "$RM"; then
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11789 $as_echo "$RM" >&6; }
11790 else
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 fi
11794
11795
11796 # Extract the first word of "chmod", so it can be a program name with args.
11797 set dummy chmod; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_path_CHMOD+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   case $CHMOD in
11804   [\\/]* | ?:[\\/]*)
11805   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11806   ;;
11807   *)
11808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11810 do
11811   IFS=$as_save_IFS
11812   test -z "$as_dir" && as_dir=.
11813     for ac_exec_ext in '' $ac_executable_extensions; do
11814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11815     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11817     break 2
11818   fi
11819 done
11820   done
11821 IFS=$as_save_IFS
11822
11823   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11824   ;;
11825 esac
11826 fi
11827 CHMOD=$ac_cv_path_CHMOD
11828 if test -n "$CHMOD"; then
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11830 $as_echo "$CHMOD" >&6; }
11831 else
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835
11836
11837 for ac_prog in gawk mawk nawk awk
11838 do
11839   # Extract the first word of "$ac_prog", so it can be a program name with args.
11840 set dummy $ac_prog; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if ${ac_cv_prog_AWK+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   if test -n "$AWK"; then
11847   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854     for ac_exec_ext in '' $ac_executable_extensions; do
11855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856     ac_cv_prog_AWK="$ac_prog"
11857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858     break 2
11859   fi
11860 done
11861   done
11862 IFS=$as_save_IFS
11863
11864 fi
11865 fi
11866 AWK=$ac_cv_prog_AWK
11867 if test -n "$AWK"; then
11868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11869 $as_echo "$AWK" >&6; }
11870 else
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 fi
11874
11875
11876   test -n "$AWK" && break
11877 done
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11880 $as_echo_n "checking for egrep... " >&6; }
11881 if ${ac_cv_path_EGREP+:} false; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11885    then ac_cv_path_EGREP="$GREP -E"
11886    else
11887      if test -z "$EGREP"; then
11888   ac_path_EGREP_found=false
11889   # Loop through the user's path and test for each of PROGNAME-LIST
11890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11892 do
11893   IFS=$as_save_IFS
11894   test -z "$as_dir" && as_dir=.
11895     for ac_prog in egrep; do
11896     for ac_exec_ext in '' $ac_executable_extensions; do
11897       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11898       as_fn_executable_p "$ac_path_EGREP" || continue
11899 # Check for GNU ac_path_EGREP and select it if it is found.
11900   # Check for GNU $ac_path_EGREP
11901 case `"$ac_path_EGREP" --version 2>&1` in
11902 *GNU*)
11903   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11904 *)
11905   ac_count=0
11906   $as_echo_n 0123456789 >"conftest.in"
11907   while :
11908   do
11909     cat "conftest.in" "conftest.in" >"conftest.tmp"
11910     mv "conftest.tmp" "conftest.in"
11911     cp "conftest.in" "conftest.nl"
11912     $as_echo 'EGREP' >> "conftest.nl"
11913     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11915     as_fn_arith $ac_count + 1 && ac_count=$as_val
11916     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11917       # Best one so far, save it but keep looking for a better one
11918       ac_cv_path_EGREP="$ac_path_EGREP"
11919       ac_path_EGREP_max=$ac_count
11920     fi
11921     # 10*(2^10) chars as input seems more than enough
11922     test $ac_count -gt 10 && break
11923   done
11924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11925 esac
11926
11927       $ac_path_EGREP_found && break 3
11928     done
11929   done
11930   done
11931 IFS=$as_save_IFS
11932   if test -z "$ac_cv_path_EGREP"; then
11933     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11934   fi
11935 else
11936   ac_cv_path_EGREP=$EGREP
11937 fi
11938
11939    fi
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11942 $as_echo "$ac_cv_path_EGREP" >&6; }
11943  EGREP="$ac_cv_path_EGREP"
11944
11945
11946 # Extract the first word of "sed", so it can be a program name with args.
11947 set dummy sed; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_path_SED+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   case $SED in
11954   [\\/]* | ?:[\\/]*)
11955   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11956   ;;
11957   *)
11958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11960 do
11961   IFS=$as_save_IFS
11962   test -z "$as_dir" && as_dir=.
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967     break 2
11968   fi
11969 done
11970   done
11971 IFS=$as_save_IFS
11972
11973   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11974   ;;
11975 esac
11976 fi
11977 SED=$ac_cv_path_SED
11978 if test -n "$SED"; then
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11980 $as_echo "$SED" >&6; }
11981 else
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 # Extract the first word of "perl", so it can be a program name with args.
11988 set dummy perl; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_PERL+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   case $PERL in
11995   [\\/]* | ?:[\\/]*)
11996   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11997   ;;
11998   *)
11999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011   done
12012 IFS=$as_save_IFS
12013
12014   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12015   ;;
12016 esac
12017 fi
12018 PERL=$ac_cv_path_PERL
12019 if test -n "$PERL"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12021 $as_echo "$PERL" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026
12027
12028 # Extract the first word of "ldconfig", so it can be a program name with args.
12029 set dummy ldconfig; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_LDCONFIG+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   case $LDCONFIG in
12036   [\\/]* | ?:[\\/]*)
12037   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12038   ;;
12039   *)
12040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052   done
12053 IFS=$as_save_IFS
12054
12055   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12056   ;;
12057 esac
12058 fi
12059 LDCONFIG=$ac_cv_path_LDCONFIG
12060 if test -n "$LDCONFIG"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12062 $as_echo "$LDCONFIG" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068
12069 if test -n "$ac_tool_prefix"; then
12070   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12071 set dummy ${ac_tool_prefix}ar; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_AR+:} false; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   if test -n "$AR"; then
12078   ac_cv_prog_AR="$AR" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085     for ac_exec_ext in '' $ac_executable_extensions; do
12086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087     ac_cv_prog_AR="${ac_tool_prefix}ar"
12088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089     break 2
12090   fi
12091 done
12092   done
12093 IFS=$as_save_IFS
12094
12095 fi
12096 fi
12097 AR=$ac_cv_prog_AR
12098 if test -n "$AR"; then
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12100 $as_echo "$AR" >&6; }
12101 else
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105
12106
12107 fi
12108 if test -z "$ac_cv_prog_AR"; then
12109   ac_ct_AR=$AR
12110   # Extract the first word of "ar", so it can be a program name with args.
12111 set dummy ar; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   if test -n "$ac_ct_AR"; then
12118   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12119 else
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12122 do
12123   IFS=$as_save_IFS
12124   test -z "$as_dir" && as_dir=.
12125     for ac_exec_ext in '' $ac_executable_extensions; do
12126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127     ac_cv_prog_ac_ct_AR="ar"
12128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129     break 2
12130   fi
12131 done
12132   done
12133 IFS=$as_save_IFS
12134
12135 fi
12136 fi
12137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12138 if test -n "$ac_ct_AR"; then
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12140 $as_echo "$ac_ct_AR" >&6; }
12141 else
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144 fi
12145
12146   if test "x$ac_ct_AR" = x; then
12147     AR="ar"
12148   else
12149     case $cross_compiling:$ac_tool_warned in
12150 yes:)
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12153 ac_tool_warned=yes ;;
12154 esac
12155     AR=$ac_ct_AR
12156   fi
12157 else
12158   AR="$ac_cv_prog_AR"
12159 fi
12160
12161 if test -n "$ac_tool_prefix"; then
12162   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_RANLIB+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   if test -n "$RANLIB"; then
12170   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12171 else
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12174 do
12175   IFS=$as_save_IFS
12176   test -z "$as_dir" && as_dir=.
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181     break 2
12182   fi
12183 done
12184   done
12185 IFS=$as_save_IFS
12186
12187 fi
12188 fi
12189 RANLIB=$ac_cv_prog_RANLIB
12190 if test -n "$RANLIB"; then
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12192 $as_echo "$RANLIB" >&6; }
12193 else
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197
12198
12199 fi
12200 if test -z "$ac_cv_prog_RANLIB"; then
12201   ac_ct_RANLIB=$RANLIB
12202   # Extract the first word of "ranlib", so it can be a program name with args.
12203 set dummy ranlib; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209   if test -n "$ac_ct_RANLIB"; then
12210   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215   IFS=$as_save_IFS
12216   test -z "$as_dir" && as_dir=.
12217     for ac_exec_ext in '' $ac_executable_extensions; do
12218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219     ac_cv_prog_ac_ct_RANLIB="ranlib"
12220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221     break 2
12222   fi
12223 done
12224   done
12225 IFS=$as_save_IFS
12226
12227 fi
12228 fi
12229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12230 if test -n "$ac_ct_RANLIB"; then
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12232 $as_echo "$ac_ct_RANLIB" >&6; }
12233 else
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236 fi
12237
12238   if test "x$ac_ct_RANLIB" = x; then
12239     RANLIB=":"
12240   else
12241     case $cross_compiling:$ac_tool_warned in
12242 yes:)
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12245 ac_tool_warned=yes ;;
12246 esac
12247     RANLIB=$ac_ct_RANLIB
12248   fi
12249 else
12250   RANLIB="$ac_cv_prog_RANLIB"
12251 fi
12252
12253 if test -n "$ac_tool_prefix"; then
12254   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12255 set dummy ${ac_tool_prefix}strip; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_STRIP+:} false; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   if test -n "$STRIP"; then
12262   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 STRIP=$ac_cv_prog_STRIP
12282 if test -n "$STRIP"; then
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12284 $as_echo "$STRIP" >&6; }
12285 else
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290
12291 fi
12292 if test -z "$ac_cv_prog_STRIP"; then
12293   ac_ct_STRIP=$STRIP
12294   # Extract the first word of "strip", so it can be a program name with args.
12295 set dummy strip; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12297 $as_echo_n "checking for $ac_word... " >&6; }
12298 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12299   $as_echo_n "(cached) " >&6
12300 else
12301   if test -n "$ac_ct_STRIP"; then
12302   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12303 else
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12306 do
12307   IFS=$as_save_IFS
12308   test -z "$as_dir" && as_dir=.
12309     for ac_exec_ext in '' $ac_executable_extensions; do
12310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311     ac_cv_prog_ac_ct_STRIP="strip"
12312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12313     break 2
12314   fi
12315 done
12316   done
12317 IFS=$as_save_IFS
12318
12319 fi
12320 fi
12321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12322 if test -n "$ac_ct_STRIP"; then
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12324 $as_echo "$ac_ct_STRIP" >&6; }
12325 else
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12328 fi
12329
12330   if test "x$ac_ct_STRIP" = x; then
12331     STRIP=":"
12332   else
12333     case $cross_compiling:$ac_tool_warned in
12334 yes:)
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12337 ac_tool_warned=yes ;;
12338 esac
12339     STRIP=$ac_ct_STRIP
12340   fi
12341 else
12342   STRIP="$ac_cv_prog_STRIP"
12343 fi
12344
12345 # Extract the first word of "makeinfo", so it can be a program name with args.
12346 set dummy makeinfo; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_MAKEINFO+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   if test -n "$MAKEINFO"; then
12353   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362     ac_cv_prog_MAKEINFO="makeinfo"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 MAKEINFO=$ac_cv_prog_MAKEINFO
12373 if test -n "$MAKEINFO"; then
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12375 $as_echo "$MAKEINFO" >&6; }
12376 else
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 fi
12380
12381
12382 if test "_$MAKEINFO" = "_"; then
12383     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12384 else
12385     case "$MAKEINFO" in
12386       */missing.*)
12387         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12388 *** Makeinfo is missing. Info documentation will not be built." >&5
12389 $as_echo "$as_me: WARNING:
12390 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12391         ;;
12392       *)
12393         ;;
12394     esac
12395 fi
12396
12397
12398 # See if we need a separate native compiler.
12399 if test $cross_compiling = no; then
12400   BUILD_CC="$CC"
12401
12402 else
12403   for ac_prog in gcc cc
12404 do
12405   # Extract the first word of "$ac_prog", so it can be a program name with args.
12406 set dummy $ac_prog; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if ${ac_cv_prog_BUILD_CC+:} false; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   if test -n "$BUILD_CC"; then
12413   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12417 do
12418   IFS=$as_save_IFS
12419   test -z "$as_dir" && as_dir=.
12420     for ac_exec_ext in '' $ac_executable_extensions; do
12421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12422     ac_cv_prog_BUILD_CC="$ac_prog"
12423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424     break 2
12425   fi
12426 done
12427   done
12428 IFS=$as_save_IFS
12429
12430 fi
12431 fi
12432 BUILD_CC=$ac_cv_prog_BUILD_CC
12433 if test -n "$BUILD_CC"; then
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12435 $as_echo "$BUILD_CC" >&6; }
12436 else
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441
12442   test -n "$BUILD_CC" && break
12443 done
12444
12445 fi
12446 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         attr/xattr.h    linux/falloc.h  linux/fd.h      linux/fsmap.h   linux/major.h   linux/loop.h    linux/types.h   net/if_dl.h     netinet/in.h    sys/acl.h       sys/disklabel.h         sys/disk.h      sys/file.h      sys/ioctl.h     sys/key.h       sys/mkdev.h     sys/mman.h      sys/mount.h     sys/prctl.h     sys/resource.h  sys/select.h    sys/socket.h    sys/sockio.h    sys/stat.h      sys/syscall.h   sys/sysctl.h    sys/sysmacros.h         sys/time.h      sys/types.h     sys/un.h        sys/wait.h      sys/xattr.h
12447 do :
12448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12451   cat >>confdefs.h <<_ACEOF
12452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12453 _ACEOF
12454
12455 fi
12456
12457 done
12458
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12460 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12461 DD=
12462 for i in dd gdd ; do
12463         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12464                 DD=$i
12465                 break
12466         fi
12467 done
12468 if test -n "$DD" ; then
12469         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12470 $as_echo "$DD" >&6; }
12471 else
12472         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12473 $as_echo "not found, using dd" >&6; }
12474         DD=dd
12475         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12476 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12477 fi
12478
12479
12480 for ac_header in net/if.h
12481 do :
12482   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12483 #if HAVE_SYS_TYPES_H
12484 #include <sys/types.h>
12485 #endif
12486 #if HAVE_SYS_SOCKET
12487 #include <sys/socket.h>
12488 #endif
12489
12490 "
12491 if test "x$ac_cv_header_net_if_h" = xyes; then :
12492   cat >>confdefs.h <<_ACEOF
12493 #define HAVE_NET_IF_H 1
12494 _ACEOF
12495
12496 fi
12497
12498 done
12499
12500 for ac_func in vprintf
12501 do :
12502   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12503 if test "x$ac_cv_func_vprintf" = xyes; then :
12504   cat >>confdefs.h <<_ACEOF
12505 #define HAVE_VPRINTF 1
12506 _ACEOF
12507
12508 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12509 if test "x$ac_cv_func__doprnt" = xyes; then :
12510
12511 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12512
12513 fi
12514
12515 fi
12516 done
12517
12518
12519 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12520 "
12521 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12522
12523 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12524
12525 fi
12526
12527 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12528 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12529
12530 cat >>confdefs.h <<_ACEOF
12531 #define HAVE_STRUCT_STAT_ST_ATIM 1
12532 _ACEOF
12533
12534
12535 fi
12536
12537 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12538 "
12539 if test "x$ac_cv_type_ssize_t" = xyes; then :
12540
12541 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12542
12543 fi
12544
12545 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12546 "
12547 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12548
12549 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12550
12551 fi
12552
12553 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12554                  #define _LARGEFILE64_SOURCE
12555                  #include <unistd.h>
12556 "
12557 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12558
12559 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12560
12561 fi
12562
12563 # The cast to long int works around a bug in the HP C Compiler
12564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566 # This bug is HP SR number 8606223364.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12568 $as_echo_n "checking size of short... " >&6; }
12569 if ${ac_cv_sizeof_short+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12573
12574 else
12575   if test "$ac_cv_type_short" = yes; then
12576      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578 as_fn_error 77 "cannot compute sizeof (short)
12579 See \`config.log' for more details" "$LINENO" 5; }
12580    else
12581      ac_cv_sizeof_short=0
12582    fi
12583 fi
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12587 $as_echo "$ac_cv_sizeof_short" >&6; }
12588
12589
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define SIZEOF_SHORT $ac_cv_sizeof_short
12593 _ACEOF
12594
12595
12596 # The cast to long int works around a bug in the HP C Compiler
12597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599 # This bug is HP SR number 8606223364.
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12601 $as_echo_n "checking size of int... " >&6; }
12602 if ${ac_cv_sizeof_int+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12606
12607 else
12608   if test "$ac_cv_type_int" = yes; then
12609      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error 77 "cannot compute sizeof (int)
12612 See \`config.log' for more details" "$LINENO" 5; }
12613    else
12614      ac_cv_sizeof_int=0
12615    fi
12616 fi
12617
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12620 $as_echo "$ac_cv_sizeof_int" >&6; }
12621
12622
12623
12624 cat >>confdefs.h <<_ACEOF
12625 #define SIZEOF_INT $ac_cv_sizeof_int
12626 _ACEOF
12627
12628
12629 # The cast to long int works around a bug in the HP C Compiler
12630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12632 # This bug is HP SR number 8606223364.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12634 $as_echo_n "checking size of long... " >&6; }
12635 if ${ac_cv_sizeof_long+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12639
12640 else
12641   if test "$ac_cv_type_long" = yes; then
12642      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644 as_fn_error 77 "cannot compute sizeof (long)
12645 See \`config.log' for more details" "$LINENO" 5; }
12646    else
12647      ac_cv_sizeof_long=0
12648    fi
12649 fi
12650
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12653 $as_echo "$ac_cv_sizeof_long" >&6; }
12654
12655
12656
12657 cat >>confdefs.h <<_ACEOF
12658 #define SIZEOF_LONG $ac_cv_sizeof_long
12659 _ACEOF
12660
12661
12662 # The cast to long int works around a bug in the HP C Compiler
12663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12665 # This bug is HP SR number 8606223364.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12667 $as_echo_n "checking size of long long... " >&6; }
12668 if ${ac_cv_sizeof_long_long+:} false; then :
12669   $as_echo_n "(cached) " >&6
12670 else
12671   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12672
12673 else
12674   if test "$ac_cv_type_long_long" = yes; then
12675      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12677 as_fn_error 77 "cannot compute sizeof (long long)
12678 See \`config.log' for more details" "$LINENO" 5; }
12679    else
12680      ac_cv_sizeof_long_long=0
12681    fi
12682 fi
12683
12684 fi
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12686 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12687
12688
12689
12690 cat >>confdefs.h <<_ACEOF
12691 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12692 _ACEOF
12693
12694
12695 # The cast to long int works around a bug in the HP C Compiler
12696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12698 # This bug is HP SR number 8606223364.
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12700 $as_echo_n "checking size of off_t... " >&6; }
12701 if ${ac_cv_sizeof_off_t+:} false; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12705
12706 else
12707   if test "$ac_cv_type_off_t" = yes; then
12708      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12710 as_fn_error 77 "cannot compute sizeof (off_t)
12711 See \`config.log' for more details" "$LINENO" 5; }
12712    else
12713      ac_cv_sizeof_off_t=0
12714    fi
12715 fi
12716
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12719 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12720
12721
12722
12723 cat >>confdefs.h <<_ACEOF
12724 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12725 _ACEOF
12726
12727
12728 # The cast to long int works around a bug in the HP C Compiler
12729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12731 # This bug is HP SR number 8606223364.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12733 $as_echo_n "checking size of time_t... " >&6; }
12734 if ${ac_cv_sizeof_time_t+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12738
12739 else
12740   if test "$ac_cv_type_time_t" = yes; then
12741      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12743 as_fn_error 77 "cannot compute sizeof (time_t)
12744 See \`config.log' for more details" "$LINENO" 5; }
12745    else
12746      ac_cv_sizeof_time_t=0
12747    fi
12748 fi
12749
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12752 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12753
12754
12755
12756 cat >>confdefs.h <<_ACEOF
12757 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12758 _ACEOF
12759
12760
12761 SIZEOF_SHORT=$ac_cv_sizeof_short
12762 SIZEOF_INT=$ac_cv_sizeof_int
12763 SIZEOF_LONG=$ac_cv_sizeof_long
12764 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12765 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12766 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12767
12768
12769
12770
12771
12772
12773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12774 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12775 if ${ac_cv_c_bigendian+:} false; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   ac_cv_c_bigendian=unknown
12779     # See if we're dealing with a universal compiler.
12780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h.  */
12782 #ifndef __APPLE_CC__
12783                not a universal capable compiler
12784              #endif
12785              typedef int dummy;
12786
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789
12790         # Check for potential -arch flags.  It is not universal unless
12791         # there are at least two -arch flags with different values.
12792         ac_arch=
12793         ac_prev=
12794         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12795          if test -n "$ac_prev"; then
12796            case $ac_word in
12797              i?86 | x86_64 | ppc | ppc64)
12798                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12799                  ac_arch=$ac_word
12800                else
12801                  ac_cv_c_bigendian=universal
12802                  break
12803                fi
12804                ;;
12805            esac
12806            ac_prev=
12807          elif test "x$ac_word" = "x-arch"; then
12808            ac_prev=arch
12809          fi
12810        done
12811 fi
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813     if test $ac_cv_c_bigendian = unknown; then
12814       # See if sys/param.h defines the BYTE_ORDER macro.
12815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h.  */
12817 #include <sys/types.h>
12818              #include <sys/param.h>
12819
12820 int
12821 main ()
12822 {
12823 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12824                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12825                      && LITTLE_ENDIAN)
12826               bogus endian macros
12827              #endif
12828
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834   # It does; now see whether it defined to BIG_ENDIAN or not.
12835          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h.  */
12837 #include <sys/types.h>
12838                 #include <sys/param.h>
12839
12840 int
12841 main ()
12842 {
12843 #if BYTE_ORDER != BIG_ENDIAN
12844                  not big endian
12845                 #endif
12846
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_compile "$LINENO"; then :
12852   ac_cv_c_bigendian=yes
12853 else
12854   ac_cv_c_bigendian=no
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859     fi
12860     if test $ac_cv_c_bigendian = unknown; then
12861       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12862       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h.  */
12864 #include <limits.h>
12865
12866 int
12867 main ()
12868 {
12869 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12870               bogus endian macros
12871              #endif
12872
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_compile "$LINENO"; then :
12878   # It does; now see whether it defined to _BIG_ENDIAN or not.
12879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h.  */
12881 #include <limits.h>
12882
12883 int
12884 main ()
12885 {
12886 #ifndef _BIG_ENDIAN
12887                  not big endian
12888                 #endif
12889
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895   ac_cv_c_bigendian=yes
12896 else
12897   ac_cv_c_bigendian=no
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902     fi
12903     if test $ac_cv_c_bigendian = unknown; then
12904       # Compile a test program.
12905       if test "$cross_compiling" = yes; then :
12906   # Try to guess by grepping values from an object file.
12907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h.  */
12909 short int ascii_mm[] =
12910                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12911                 short int ascii_ii[] =
12912                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12913                 int use_ascii (int i) {
12914                   return ascii_mm[i] + ascii_ii[i];
12915                 }
12916                 short int ebcdic_ii[] =
12917                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12918                 short int ebcdic_mm[] =
12919                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12920                 int use_ebcdic (int i) {
12921                   return ebcdic_mm[i] + ebcdic_ii[i];
12922                 }
12923                 extern int foo;
12924
12925 int
12926 main ()
12927 {
12928 return use_ascii (foo) == use_ebcdic (foo);
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12934   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12935               ac_cv_c_bigendian=yes
12936             fi
12937             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12938               if test "$ac_cv_c_bigendian" = unknown; then
12939                 ac_cv_c_bigendian=no
12940               else
12941                 # finding both strings is unlikely to happen, but who knows?
12942                 ac_cv_c_bigendian=unknown
12943               fi
12944             fi
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 else
12948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h.  */
12950 $ac_includes_default
12951 int
12952 main ()
12953 {
12954
12955              /* Are we little or big endian?  From Harbison&Steele.  */
12956              union
12957              {
12958                long int l;
12959                char c[sizeof (long int)];
12960              } u;
12961              u.l = 1;
12962              return u.c[sizeof (long int) - 1] == 1;
12963
12964   ;
12965   return 0;
12966 }
12967 _ACEOF
12968 if ac_fn_c_try_run "$LINENO"; then :
12969   ac_cv_c_bigendian=no
12970 else
12971   ac_cv_c_bigendian=yes
12972 fi
12973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12974   conftest.$ac_objext conftest.beam conftest.$ac_ext
12975 fi
12976
12977     fi
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12980 $as_echo "$ac_cv_c_bigendian" >&6; }
12981  case $ac_cv_c_bigendian in #(
12982    yes)
12983      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12984 ;; #(
12985    no)
12986       ;; #(
12987    universal)
12988
12989 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12990
12991      ;; #(
12992    *)
12993      as_fn_error $? "unknown endianness
12994  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12995  esac
12996
12997 if test $cross_compiling = no; then
12998   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12999 else
13000   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13001 fi
13002 ASM_TYPES_HEADER=./asm_types.h
13003
13004 echo "/* These defines are needed for the public ext2fs.h header file */" \
13005      > public_config.h
13006 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13007   uniq tmp_config.$$ >> public_config.h
13008 else
13009   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13010 fi
13011 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13012   uniq tmp_config.$$ >> public_config.h
13013 else
13014   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13015 fi
13016 rm -f tmp_config.$$
13017 PUBLIC_CONFIG_HEADER=./public_config.h
13018
13019 for ac_header in inttypes.h
13020 do :
13021   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13022 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13023   cat >>confdefs.h <<_ACEOF
13024 #define HAVE_INTTYPES_H 1
13025 _ACEOF
13026
13027 fi
13028
13029 done
13030
13031 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13032 if test "x$ac_cv_type_intptr_t" = xyes; then :
13033
13034 cat >>confdefs.h <<_ACEOF
13035 #define HAVE_INTPTR_T 1
13036 _ACEOF
13037
13038
13039 fi
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13042 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13043 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13044   $as_echo_n "(cached) " >&6
13045 else
13046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h.  */
13048 #include <sys/stat.h>
13049 int
13050 main ()
13051 {
13052 struct stat stat; stat.st_flags = 0;
13053   ;
13054   return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_compile "$LINENO"; then :
13058   e2fsprogs_cv_struct_st_flags=yes
13059 else
13060   e2fsprogs_cv_struct_st_flags=no
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 fi
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13066 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13067 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13069 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13070   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13071   $as_echo_n "(cached) " >&6
13072 else
13073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h.  */
13075 #include <sys/stat.h>
13076 int
13077 main ()
13078 {
13079 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 if ac_fn_c_try_compile "$LINENO"; then :
13085   e2fsprogs_cv_struct_st_flags_immut=yes
13086 else
13087   e2fsprogs_cv_struct_st_flags_immut=no
13088 fi
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 fi
13091
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13093 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13094   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13095
13096 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13097
13098   fi
13099 fi
13100 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13101          #include <sys/socket.h>
13102 "
13103 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_SA_LEN 1
13107 _ACEOF
13108
13109 fi
13110
13111 if test -n "$BLKID_CMT"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13113 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13114 if ${ac_cv_search_blkid_probe_all+:} false; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117   ac_func_search_save_LIBS=$LIBS
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120
13121 /* Override any GCC internal prototype to avoid an error.
13122    Use char because int might match the return type of a GCC
13123    builtin and then its argument prototype would still apply.  */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char blkid_probe_all ();
13128 int
13129 main ()
13130 {
13131 return blkid_probe_all ();
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 for ac_lib in '' blkid; do
13137   if test -z "$ac_lib"; then
13138     ac_res="none required"
13139   else
13140     ac_res=-l$ac_lib
13141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13142   fi
13143   if ac_fn_c_try_link "$LINENO"; then :
13144   ac_cv_search_blkid_probe_all=$ac_res
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147     conftest$ac_exeext
13148   if ${ac_cv_search_blkid_probe_all+:} false; then :
13149   break
13150 fi
13151 done
13152 if ${ac_cv_search_blkid_probe_all+:} false; then :
13153
13154 else
13155   ac_cv_search_blkid_probe_all=no
13156 fi
13157 rm conftest.$ac_ext
13158 LIBS=$ac_func_search_save_LIBS
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13161 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13162 ac_res=$ac_cv_search_blkid_probe_all
13163 if test "$ac_res" != no; then :
13164   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13165
13166 fi
13167
13168 fi
13169 if test -n "$DLOPEN_LIB" ; then
13170    ac_cv_func_dlopen=yes
13171 fi
13172 for ac_func in          __secure_getenv         add_key         backtrace       blkid_probe_get_topology        blkid_probe_enable_partitions   chflags         dlopen  fadvise64       fallocate       fallocate64     fchown  fcntl   fdatasync       fstat64         fsync   ftruncate64     futimes         getcwd  getdtablesize   gethostname     getmntinfo      getpwuid_r      getrlimit       getrusage       jrand48         keyctl  llistxattr      llseek  lseek64         mallinfo        mbstowcs        memalign        mempcpy         mmap    msync   nanosleep       open64  pathconf        posix_fadvise   posix_fadvise64         posix_memalign  prctl   pread   pwrite  pread64         pwrite64        secure_getenv   setmntent       setresgid       setresuid       snprintf        srandom         stpcpy  strcasecmp      strdup  strnlen         strptime        strtoull        sync_file_range         sysconf         usleep  utime   utimes  valloc
13173 do :
13174   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13177   cat >>confdefs.h <<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13180
13181 fi
13182 done
13183
13184 SOCKET_LIB=''
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13186 $as_echo_n "checking for socket in -lsocket... " >&6; }
13187 if ${ac_cv_lib_socket_socket+:} false; then :
13188   $as_echo_n "(cached) " >&6
13189 else
13190   ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lsocket  $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h.  */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196    Use char because int might match the return type of a GCC
13197    builtin and then its argument prototype would still apply.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char socket ();
13202 int
13203 main ()
13204 {
13205 return socket ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13211   ac_cv_lib_socket_socket=yes
13212 else
13213   ac_cv_lib_socket_socket=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext \
13216     conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13220 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13221 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13222   SOCKET_LIB=-lsocket
13223 fi
13224
13225
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13227 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13228 if ${ac_cv_lib_magic_magic_file+:} false; then :
13229   $as_echo_n "(cached) " >&6
13230 else
13231   ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lmagic  $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h.  */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237    Use char because int might match the return type of a GCC
13238    builtin and then its argument prototype would still apply.  */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char magic_file ();
13243 int
13244 main ()
13245 {
13246 return magic_file ();
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252   ac_cv_lib_magic_magic_file=yes
13253 else
13254   ac_cv_lib_magic_magic_file=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257     conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13261 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13262 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13263   MAGIC_LIB=-lmagic
13264 for ac_header in magic.h
13265 do :
13266   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13267 if test "x$ac_cv_header_magic_h" = xyes; then :
13268   cat >>confdefs.h <<_ACEOF
13269 #define HAVE_MAGIC_H 1
13270 _ACEOF
13271
13272 fi
13273
13274 done
13275
13276 fi
13277
13278 if test "$ac_cv_func_dlopen" = yes ; then
13279    MAGIC_LIB=$DLOPEN_LIB
13280 fi
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13283 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13284 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13285   $as_echo_n "(cached) " >&6
13286 else
13287   ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-lrt  $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293    Use char because int might match the return type of a GCC
13294    builtin and then its argument prototype would still apply.  */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char clock_gettime ();
13299 int
13300 main ()
13301 {
13302 return clock_gettime ();
13303   ;
13304   return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308   ac_cv_lib_rt_clock_gettime=yes
13309 else
13310   ac_cv_lib_rt_clock_gettime=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313     conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13317 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13318 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13319   CLOCK_GETTIME_LIB=-lrt
13320 fi
13321
13322
13323 FUSE_CMT=
13324 FUSE_LIB=
13325 # Check whether --enable-fuse2fs was given.
13326 if test "${enable_fuse2fs+set}" = set; then :
13327   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13328 then
13329         FUSE_CMT="#"
13330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13331 $as_echo "Disabling fuse2fs" >&6; }
13332 else
13333         for ac_header in pthread.h fuse.h
13334 do :
13335   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13336 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13337 #define FUSE_USE_VERSION 29
13338 "
13339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13340   cat >>confdefs.h <<_ACEOF
13341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13342 _ACEOF
13343
13344 else
13345   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $? "Cannot find fuse2fs headers.
13348 See \`config.log' for more details" "$LINENO" 5; }
13349 fi
13350
13351 done
13352
13353
13354         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h.  */
13356 #define FUSE_USE_VERSION 29
13357 #ifdef __linux__
13358 #include <linux/fs.h>
13359 #include <linux/falloc.h>
13360 #include <linux/xattr.h>
13361 #endif
13362
13363 int
13364 main ()
13365 {
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_cpp "$LINENO"; then :
13372
13373 else
13374   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13376 as_fn_error $? "Cannot find fuse2fs Linux headers.
13377 See \`config.log' for more details" "$LINENO" 5; }
13378 fi
13379 rm -f conftest.err conftest.i conftest.$ac_ext
13380
13381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13382 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13383 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13384   $as_echo_n "(cached) " >&6
13385 else
13386   ac_check_lib_save_LIBS=$LIBS
13387 LIBS="-losxfuse  $LIBS"
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h.  */
13390
13391 /* Override any GCC internal prototype to avoid an error.
13392    Use char because int might match the return type of a GCC
13393    builtin and then its argument prototype would still apply.  */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 char fuse_main ();
13398 int
13399 main ()
13400 {
13401 return fuse_main ();
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407   ac_cv_lib_osxfuse_fuse_main=yes
13408 else
13409   ac_cv_lib_osxfuse_fuse_main=no
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext \
13412     conftest$ac_exeext conftest.$ac_ext
13413 LIBS=$ac_check_lib_save_LIBS
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13416 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13417 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13418   FUSE_LIB=-losxfuse
13419 else
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13421 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13422 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lfuse  $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h.  */
13429
13430 /* Override any GCC internal prototype to avoid an error.
13431    Use char because int might match the return type of a GCC
13432    builtin and then its argument prototype would still apply.  */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char fuse_main ();
13437 int
13438 main ()
13439 {
13440 return fuse_main ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446   ac_cv_lib_fuse_fuse_main=yes
13447 else
13448   ac_cv_lib_fuse_fuse_main=no
13449 fi
13450 rm -f core conftest.err conftest.$ac_objext \
13451     conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13455 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13456 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13457   FUSE_LIB=-lfuse
13458 else
13459   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13461 as_fn_error $? "Cannot find fuse library.
13462 See \`config.log' for more details" "$LINENO" 5; }
13463 fi
13464
13465 fi
13466
13467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13468 $as_echo "Enabling fuse2fs" >&6; }
13469 fi
13470
13471 else
13472   for ac_header in pthread.h fuse.h
13473 do :
13474   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13476 #define FUSE_USE_VERSION 29
13477 #ifdef __linux__
13478 # include <linux/fs.h>
13479 # include <linux/falloc.h>
13480 # include <linux/xattr.h>
13481 #endif
13482 "
13483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13484   cat >>confdefs.h <<_ACEOF
13485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13486 _ACEOF
13487
13488 else
13489   FUSE_CMT="#"
13490 fi
13491
13492 done
13493
13494 if test -z "$FUSE_CMT"
13495 then
13496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13497 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13498 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-losxfuse  $LIBS"
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h.  */
13505
13506 /* Override any GCC internal prototype to avoid an error.
13507    Use char because int might match the return type of a GCC
13508    builtin and then its argument prototype would still apply.  */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char fuse_main ();
13513 int
13514 main ()
13515 {
13516 return fuse_main ();
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522   ac_cv_lib_osxfuse_fuse_main=yes
13523 else
13524   ac_cv_lib_osxfuse_fuse_main=no
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext \
13527     conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13531 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13532 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13533   FUSE_LIB=-losxfuse
13534 else
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13536 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13537 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13538   $as_echo_n "(cached) " >&6
13539 else
13540   ac_check_lib_save_LIBS=$LIBS
13541 LIBS="-lfuse  $LIBS"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544
13545 /* Override any GCC internal prototype to avoid an error.
13546    Use char because int might match the return type of a GCC
13547    builtin and then its argument prototype would still apply.  */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char fuse_main ();
13552 int
13553 main ()
13554 {
13555 return fuse_main ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561   ac_cv_lib_fuse_fuse_main=yes
13562 else
13563   ac_cv_lib_fuse_fuse_main=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext \
13566     conftest$ac_exeext conftest.$ac_ext
13567 LIBS=$ac_check_lib_save_LIBS
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13570 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13571 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13572   FUSE_LIB=-lfuse
13573 else
13574   FUSE_CMT="#"
13575 fi
13576
13577 fi
13578
13579 fi
13580 if test -z "$FUSE_CMT"
13581 then
13582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13583 $as_echo "Enabling fuse2fs by default." >&6; }
13584 fi
13585
13586 fi
13587
13588
13589
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13591 $as_echo_n "checking for optreset... " >&6; }
13592 if ${ac_cv_have_optreset+:} false; then :
13593   $as_echo_n "(cached) " >&6
13594 else
13595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h.  */
13597 #include <unistd.h>
13598
13599 _ACEOF
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601   $EGREP "optreset" >/dev/null 2>&1; then :
13602   ac_cv_have_optreset=yes
13603 else
13604   ac_cv_have_optreset=no
13605 fi
13606 rm -f conftest*
13607
13608 fi
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13610 $as_echo "$ac_cv_have_optreset" >&6; }
13611 if test $ac_cv_have_optreset = yes; then
13612
13613 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13614
13615 fi
13616
13617 SEM_INIT_LIB=''
13618 echo GL_THREADS_API: ${gl_threads_api}
13619 if test "${gl_threads_api}" != none
13620 then
13621   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13622 if test "x$ac_cv_func_sem_init" = xyes; then :
13623
13624 else
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13626 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13627 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13628   $as_echo_n "(cached) " >&6
13629 else
13630   ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lpthread  $LIBS"
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h.  */
13634
13635 /* Override any GCC internal prototype to avoid an error.
13636    Use char because int might match the return type of a GCC
13637    builtin and then its argument prototype would still apply.  */
13638 #ifdef __cplusplus
13639 extern "C"
13640 #endif
13641 char sem_init ();
13642 int
13643 main ()
13644 {
13645 return sem_init ();
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651   ac_cv_lib_pthread_sem_init=yes
13652 else
13653   ac_cv_lib_pthread_sem_init=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext \
13656     conftest$ac_exeext conftest.$ac_ext
13657 LIBS=$ac_check_lib_save_LIBS
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13660 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13661 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13662   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13663
13664         SEM_INIT_LIB=-lpthread
13665 else
13666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13667 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13668 if ${ac_cv_lib_rt_sem_init+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lrt  $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h.  */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677    Use char because int might match the return type of a GCC
13678    builtin and then its argument prototype would still apply.  */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char sem_init ();
13683 int
13684 main ()
13685 {
13686 return sem_init ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692   ac_cv_lib_rt_sem_init=yes
13693 else
13694   ac_cv_lib_rt_sem_init=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697     conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13701 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13702 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13703   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13704
13705         SEM_INIT_LIB=-lrt
13706 else
13707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13708 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13709 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13710   $as_echo_n "(cached) " >&6
13711 else
13712   ac_check_lib_save_LIBS=$LIBS
13713 LIBS="-lposix4  $LIBS"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716
13717 /* Override any GCC internal prototype to avoid an error.
13718    Use char because int might match the return type of a GCC
13719    builtin and then its argument prototype would still apply.  */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char sem_init ();
13724 int
13725 main ()
13726 {
13727 return sem_init ();
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 if ac_fn_c_try_link "$LINENO"; then :
13733   ac_cv_lib_posix4_sem_init=yes
13734 else
13735   ac_cv_lib_posix4_sem_init=no
13736 fi
13737 rm -f core conftest.err conftest.$ac_objext \
13738     conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13742 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13743 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13744   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13745
13746         SEM_INIT_LIB=-lposix4
13747 fi
13748
13749 fi
13750
13751 fi
13752
13753 fi
13754 fi
13755
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13757 $as_echo_n "checking for unified diff option... " >&6; }
13758 if diff -u $0 $0 > /dev/null 2>&1 ; then
13759    UNI_DIFF_OPTS=-u
13760 else
13761    UNI_DIFF_OPTS=-c
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13764 $as_echo "$UNI_DIFF_OPTS" >&6; }
13765
13766 case "$host_os" in
13767 linux*)
13768
13769 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13770
13771         ;;
13772 esac
13773 # Check whether --enable-lto was given.
13774 if test "${enable_lto+set}" = set; then :
13775   enableval=$enable_lto;
13776 else
13777   enable_lto=no
13778 fi
13779
13780 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13781         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13782 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13783         OLD_CFLAGS="$CFLAGS"
13784         OLD_LDFLAGS="$LDFLAGS"
13785         LTO_FLAGS="-g -flto -ffat-lto-objects"
13786         CFLAGS="$CFLAGS $LTO_FLAGS"
13787         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13788         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790
13791 int
13792 main ()
13793 {
13794
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801 $as_echo "yes" >&6; }
13802                 lto_cflags=$LTO_FLAGS
13803                 lto_ldflags=$LTO_FLAGS
13804                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13805 set dummy gcc-ar; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_path_gcc_ar+:} false; then :
13809   $as_echo_n "(cached) " >&6
13810 else
13811   case $gcc_ar in
13812   [\\/]* | ?:[\\/]*)
13813   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13814   ;;
13815   *)
13816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817 for as_dir in $PATH
13818 do
13819   IFS=$as_save_IFS
13820   test -z "$as_dir" && as_dir=.
13821     for ac_exec_ext in '' $ac_executable_extensions; do
13822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13823     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13825     break 2
13826   fi
13827 done
13828   done
13829 IFS=$as_save_IFS
13830
13831   ;;
13832 esac
13833 fi
13834 gcc_ar=$ac_cv_path_gcc_ar
13835 if test -n "$gcc_ar"; then
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13837 $as_echo "$gcc_ar" >&6; }
13838 else
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13841 fi
13842
13843
13844                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13845 set dummy gcc-ranlib; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_path_gcc_ranlib+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   case $gcc_ranlib in
13852   [\\/]* | ?:[\\/]*)
13853   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13854   ;;
13855   *)
13856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13858 do
13859   IFS=$as_save_IFS
13860   test -z "$as_dir" && as_dir=.
13861     for ac_exec_ext in '' $ac_executable_extensions; do
13862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865     break 2
13866   fi
13867 done
13868   done
13869 IFS=$as_save_IFS
13870
13871   ;;
13872 esac
13873 fi
13874 gcc_ranlib=$ac_cv_path_gcc_ranlib
13875 if test -n "$gcc_ranlib"; then
13876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13877 $as_echo "$gcc_ranlib" >&6; }
13878 else
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13881 fi
13882
13883
13884 else
13885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886 $as_echo "no" >&6; }
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext \
13889     conftest$ac_exeext conftest.$ac_ext
13890         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13891                 have_lto=yes
13892                 AR="${gcc_ar}"
13893                 RANLIB="${gcc_ranlib}"
13894         fi
13895         CFLAGS="${OLD_CFLAGS}"
13896         LDFLAGS="${OLD_LDFLAGS}"
13897
13898
13899
13900 fi
13901 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13902         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13903 fi
13904 # Check whether --enable-ubsan was given.
13905 if test "${enable_ubsan+set}" = set; then :
13906   enableval=$enable_ubsan;
13907 else
13908   enable_ubsan=no
13909 fi
13910
13911 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13913 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13914         OLD_CFLAGS="$CFLAGS"
13915         OLD_LDFLAGS="$LDFLAGS"
13916         UBSAN_FLAGS="-fsanitize=undefined"
13917         CFLAGS="$CFLAGS $UBSAN_FLAGS"
13918         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13919         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h.  */
13921
13922 int
13923 main ()
13924 {
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 if ac_fn_c_try_link "$LINENO"; then :
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13932 $as_echo "yes" >&6; }
13933                 ubsan_cflags=$UBSAN_FLAGS
13934                 ubsan_ldflags=$UBSAN_FLAGS
13935                 have_ubsan=yes
13936 else
13937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext \
13941     conftest$ac_exeext conftest.$ac_ext
13942         CFLAGS="${OLD_CFLAGS}"
13943         LDFLAGS="${OLD_LDFLAGS}"
13944
13945
13946
13947 fi
13948 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13949         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13950 fi
13951 # Check whether --enable-addrsan was given.
13952 if test "${enable_addrsan+set}" = set; then :
13953   enableval=$enable_addrsan;
13954 else
13955   enable_addrsan=no
13956 fi
13957
13958 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
13959         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13960 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13961         OLD_CFLAGS="$CFLAGS"
13962         OLD_LDFLAGS="$LDFLAGS"
13963         ADDRSAN_FLAGS="-fsanitize=address"
13964         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
13965         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
13966         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h.  */
13968
13969 int
13970 main ()
13971 {
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980                 addrsan_cflags=$ADDRSAN_FLAGS
13981                 addrsan_ldflags=$ADDRSAN_FLAGS
13982                 have_addrsan=yes
13983 else
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13986 fi
13987 rm -f core conftest.err conftest.$ac_objext \
13988     conftest$ac_exeext conftest.$ac_ext
13989         CFLAGS="${OLD_CFLAGS}"
13990         LDFLAGS="${OLD_LDFLAGS}"
13991
13992
13993
13994 fi
13995 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13996         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
13997 fi
13998 # Check whether --enable-threadsan was given.
13999 if test "${enable_threadsan+set}" = set; then :
14000   enableval=$enable_threadsan;
14001 else
14002   enable_threadsan=no
14003 fi
14004
14005 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14007 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14008         OLD_CFLAGS="$CFLAGS"
14009         OLD_LDFLAGS="$LDFLAGS"
14010         THREADSAN_FLAGS="-fsanitize=thread"
14011         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14012         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14013         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h.  */
14015
14016 int
14017 main ()
14018 {
14019
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_link "$LINENO"; then :
14025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14026 $as_echo "yes" >&6; }
14027                 threadsan_cflags=$THREADSAN_FLAGS
14028                 threadsan_ldflags=$THREADSAN_FLAGS
14029                 have_threadsan=yes
14030 else
14031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext \
14035     conftest$ac_exeext conftest.$ac_ext
14036         CFLAGS="${OLD_CFLAGS}"
14037         LDFLAGS="${OLD_LDFLAGS}"
14038
14039
14040
14041 fi
14042 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14043         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14044 fi
14045 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14047 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14048 fi
14049 LINUX_CMT="#"
14050 CYGWIN_CMT="#"
14051 UNIX_CMT=
14052 case "$host_os" in
14053 linux*)
14054         LINUX_CMT=
14055         ;;
14056 cygwin)
14057         CYGWIN_CMT=
14058         UNIX_CMT="#"
14059         ;;
14060 esac
14061
14062
14063
14064 E2SCRUB_CMT="$LINUX_CMT"
14065
14066 case "$host_os" in
14067 linux* | gnu* | k*bsd*-gnu)
14068         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14069                 root_prefix="";
14070                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14071 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14072         fi
14073         ;;
14074 esac
14075 case "$host_os" in
14076 linux* | gnu* | k*bsd*-gnu)
14077         if test "$prefix" = NONE ; then
14078                 prefix="/usr";
14079                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14080 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14081                 if test "$mandir" = '${prefix}/man' ; then
14082                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14083 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14084                         mandir=/usr/share/man
14085                 fi
14086         fi
14087 ;;
14088 esac
14089 if test "$root_prefix" = NONE ; then
14090         if test "$prefix" = NONE ; then
14091                 root_prefix="$ac_default_prefix"
14092         else
14093                 root_prefix="$prefix"
14094         fi
14095         root_bindir=$bindir
14096         root_sbindir=$sbindir
14097         root_libdir=$libdir
14098         root_sysconfdir=$sysconfdir
14099 else
14100         root_bindir='${root_prefix}/bin'
14101         root_sbindir='${root_prefix}/sbin'
14102         root_libdir='${root_prefix}/lib'
14103         root_sysconfdir='${root_prefix}/etc'
14104 fi
14105 if test "$bindir" != '${exec_prefix}/bin'; then
14106     root_bindir=$bindir
14107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14108 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14109 fi
14110 if test "$sbindir" != '${exec_prefix}/sbin'; then
14111     root_sbindir=$sbindir
14112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14113 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14114 fi
14115 if test "$libdir" != '${exec_prefix}/lib'; then
14116     root_libdir=$libdir
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14118 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14119 fi
14120 if test "$sysconfdir" != '${prefix}/etc'; then
14121     root_sysconfdir=$sysconfdir
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14123 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14124 fi
14125
14126
14127
14128
14129
14130
14131 # Check whether --with-multiarch was given.
14132 if test "${with_multiarch+set}" = set; then :
14133   withval=$with_multiarch; if test "$withval" = "lib64"; then
14134     libdir=/usr/lib64
14135     root_libdir=/lib64
14136 else
14137     libdir=$libdir/$withval
14138     root_libdir=$root_libdir/$withval
14139 fi
14140
14141 fi
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14144 $as_echo_n "checking whether we can link with -static... " >&6; }
14145 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14146   $as_echo_n "(cached) " >&6
14147 else
14148   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h.  */
14151 #include <stdio.h>
14152 int
14153 main ()
14154 {
14155 fflush(stdout);
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161   ac_cv_e2fsprogs_use_static=yes
14162 else
14163   ac_cv_e2fsprogs_use_static=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166     conftest$ac_exeext conftest.$ac_ext
14167 LDFLAGS=$SAVE_LDFLAGS
14168 fi
14169
14170 case "$host_os" in
14171 solaris2.*)
14172         ac_cv_e2fsprogs_use_static=no
14173 ;;
14174 esac
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14176 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14177 if test $ac_cv_e2fsprogs_use_static = yes; then
14178         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14179 fi
14180
14181 case "$host_os" in
14182 darwin*)
14183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14184 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14185
14186 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14187
14188         ;;
14189 esac
14190 if test "$cross_compiling" = yes ; then
14191   DO_TEST_SUITE=
14192 else
14193   DO_TEST_SUITE=check
14194 fi
14195
14196 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14197 if test -n "$CPPFLAGS" ; then
14198         INCLUDES="$INCLUDES $CPPFLAGS"
14199 fi
14200 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14201         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14202 fi
14203 if test -n "$WITH_DIET_LIBC" ; then
14204         INCLUDES="$INCLUDES -D_REENTRANT"
14205 fi
14206
14207 if test $cross_compiling = no; then
14208    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14209    BUILD_LDFLAGS="$LDFLAGS"
14210 fi
14211
14212
14213 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14214 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14215 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14216
14217
14218
14219
14220
14221 # Check whether --with-udev_rules_dir was given.
14222 if test "${with_udev_rules_dir+set}" = set; then :
14223   withval=$with_udev_rules_dir;
14224 else
14225   with_udev_rules_dir=yes
14226 fi
14227
14228 if test "x${with_udev_rules_dir}" != "xno"; then :
14229
14230         if test "x${with_udev_rules_dir}" = "xyes"; then :
14231
14232
14233 pkg_failed=no
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14235 $as_echo_n "checking for udev... " >&6; }
14236
14237 if test -n "$udev_CFLAGS"; then
14238     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14239  elif test -n "$PKG_CONFIG"; then
14240     if test -n "$PKG_CONFIG" && \
14241     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14242   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14243   ac_status=$?
14244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245   test $ac_status = 0; }; then
14246   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14247                       test "x$?" != "x0" && pkg_failed=yes
14248 else
14249   pkg_failed=yes
14250 fi
14251  else
14252     pkg_failed=untried
14253 fi
14254 if test -n "$udev_LIBS"; then
14255     pkg_cv_udev_LIBS="$udev_LIBS"
14256  elif test -n "$PKG_CONFIG"; then
14257     if test -n "$PKG_CONFIG" && \
14258     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14259   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14260   ac_status=$?
14261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14262   test $ac_status = 0; }; then
14263   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14264                       test "x$?" != "x0" && pkg_failed=yes
14265 else
14266   pkg_failed=yes
14267 fi
14268  else
14269     pkg_failed=untried
14270 fi
14271
14272
14273
14274 if test $pkg_failed = yes; then
14275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277
14278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14279         _pkg_short_errors_supported=yes
14280 else
14281         _pkg_short_errors_supported=no
14282 fi
14283         if test $_pkg_short_errors_supported = yes; then
14284                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14285         else
14286                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14287         fi
14288         # Put the nasty error message in config.log where it belongs
14289         echo "$udev_PKG_ERRORS" >&5
14290
14291
14292                         with_udev_rules_dir=""
14293
14294 elif test $pkg_failed = untried; then
14295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14297
14298                         with_udev_rules_dir=""
14299
14300 else
14301         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14302         udev_LIBS=$pkg_cv_udev_LIBS
14303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14304 $as_echo "yes" >&6; }
14305
14306                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14307
14308 fi
14309
14310 fi
14311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14312 $as_echo_n "checking for udev rules dir... " >&6; }
14313         pkg_udev_rules_dir="${with_udev_rules_dir}"
14314         if test -n "${pkg_udev_rules_dir}"; then :
14315
14316                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14317 $as_echo "${pkg_udev_rules_dir}" >&6; }
14318                 have_udev="yes"
14319
14320 else
14321
14322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14323 $as_echo "no" >&6; }
14324                 have_udev="no"
14325
14326 fi
14327
14328 else
14329
14330         have_udev="disabled"
14331
14332 fi
14333
14334
14335
14336
14337 # Check whether --with-crond_dir was given.
14338 if test "${with_crond_dir+set}" = set; then :
14339   withval=$with_crond_dir;
14340 else
14341   with_crond_dir=yes
14342 fi
14343
14344 if test "x${with_crond_dir}" != "xno"; then :
14345
14346         if test "x${with_crond_dir}" = "xyes"; then :
14347
14348                 if test -d "/etc/cron.d"; then :
14349   with_crond_dir="/etc/cron.d"
14350 fi
14351
14352 fi
14353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14354 $as_echo_n "checking for system crontab dir... " >&6; }
14355         crond_dir="${with_crond_dir}"
14356         if test -n "${crond_dir}"; then :
14357
14358                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14359 $as_echo "${crond_dir}" >&6; }
14360                 have_crond="yes"
14361
14362 else
14363
14364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14366                 have_crond="no"
14367
14368 fi
14369
14370 else
14371
14372         have_crond="disabled"
14373
14374 fi
14375
14376
14377
14378
14379 # Check whether --with-systemd_unit_dir was given.
14380 if test "${with_systemd_unit_dir+set}" = set; then :
14381   withval=$with_systemd_unit_dir;
14382 else
14383   with_systemd_unit_dir=yes
14384 fi
14385
14386 if test "x${with_systemd_unit_dir}" != "xno"; then :
14387
14388         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14389
14390
14391 pkg_failed=no
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14393 $as_echo_n "checking for systemd... " >&6; }
14394
14395 if test -n "$systemd_CFLAGS"; then
14396     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14397  elif test -n "$PKG_CONFIG"; then
14398     if test -n "$PKG_CONFIG" && \
14399     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14400   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14401   ac_status=$?
14402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403   test $ac_status = 0; }; then
14404   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14405                       test "x$?" != "x0" && pkg_failed=yes
14406 else
14407   pkg_failed=yes
14408 fi
14409  else
14410     pkg_failed=untried
14411 fi
14412 if test -n "$systemd_LIBS"; then
14413     pkg_cv_systemd_LIBS="$systemd_LIBS"
14414  elif test -n "$PKG_CONFIG"; then
14415     if test -n "$PKG_CONFIG" && \
14416     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14417   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14418   ac_status=$?
14419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420   test $ac_status = 0; }; then
14421   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14422                       test "x$?" != "x0" && pkg_failed=yes
14423 else
14424   pkg_failed=yes
14425 fi
14426  else
14427     pkg_failed=untried
14428 fi
14429
14430
14431
14432 if test $pkg_failed = yes; then
14433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14435
14436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14437         _pkg_short_errors_supported=yes
14438 else
14439         _pkg_short_errors_supported=no
14440 fi
14441         if test $_pkg_short_errors_supported = yes; then
14442                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14443         else
14444                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14445         fi
14446         # Put the nasty error message in config.log where it belongs
14447         echo "$systemd_PKG_ERRORS" >&5
14448
14449
14450                         with_systemd_unit_dir=""
14451
14452 elif test $pkg_failed = untried; then
14453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14455
14456                         with_systemd_unit_dir=""
14457
14458 else
14459         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14460         systemd_LIBS=$pkg_cv_systemd_LIBS
14461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14462 $as_echo "yes" >&6; }
14463
14464                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14465
14466 fi
14467
14468
14469 fi
14470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14471 $as_echo_n "checking for systemd system unit dir... " >&6; }
14472         systemd_system_unit_dir="${with_systemd_unit_dir}"
14473         if test -n "${systemd_system_unit_dir}"; then :
14474
14475                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14476 $as_echo "${systemd_system_unit_dir}" >&6; }
14477                 have_systemd="yes"
14478
14479 else
14480
14481                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483                 have_systemd="no"
14484
14485 fi
14486
14487 else
14488
14489         have_systemd="disabled"
14490
14491 fi
14492
14493
14494
14495 test -d lib || mkdir lib
14496 test -d include || mkdir include
14497 test -d include/linux || mkdir include/linux
14498 test -d include/asm || mkdir include/asm
14499 if test -z "$UUID_CMT" ; then
14500         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14501                 lib/uuid/uuid_types.h"
14502 fi
14503 if test -z "$BLKID_CMT" ; then
14504         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14505                 lib/blkid/blkid_types.h"
14506 fi
14507 for i in MCONFIG Makefile \
14508         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14509         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14510         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14511         $uuid_out_list $blkid_out_list lib/support/Makefile \
14512         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14513         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14514         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14515         resize/Makefile doc/Makefile intl/Makefile \
14516         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14517         if test -d `dirname ${srcdir}/$i` ; then
14518                 outlist="$outlist $i"
14519         fi
14520 done
14521 ac_config_files="$ac_config_files $outlist"
14522
14523 cat >confcache <<\_ACEOF
14524 # This file is a shell script that caches the results of configure
14525 # tests run on this system so they can be shared between configure
14526 # scripts and configure runs, see configure's option --config-cache.
14527 # It is not useful on other systems.  If it contains results you don't
14528 # want to keep, you may remove or edit it.
14529 #
14530 # config.status only pays attention to the cache file if you give it
14531 # the --recheck option to rerun configure.
14532 #
14533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14535 # following values.
14536
14537 _ACEOF
14538
14539 # The following way of writing the cache mishandles newlines in values,
14540 # but we know of no workaround that is simple, portable, and efficient.
14541 # So, we kill variables containing newlines.
14542 # Ultrix sh set writes to stderr and can't be redirected directly,
14543 # and sets the high bit in the cache file unless we assign to the vars.
14544 (
14545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14546     eval ac_val=\$$ac_var
14547     case $ac_val in #(
14548     *${as_nl}*)
14549       case $ac_var in #(
14550       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14552       esac
14553       case $ac_var in #(
14554       _ | IFS | as_nl) ;; #(
14555       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14556       *) { eval $ac_var=; unset $ac_var;} ;;
14557       esac ;;
14558     esac
14559   done
14560
14561   (set) 2>&1 |
14562     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14563     *${as_nl}ac_space=\ *)
14564       # `set' does not quote correctly, so add quotes: double-quote
14565       # substitution turns \\\\ into \\, and sed turns \\ into \.
14566       sed -n \
14567         "s/'/'\\\\''/g;
14568           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14569       ;; #(
14570     *)
14571       # `set' quotes correctly as required by POSIX, so do not add quotes.
14572       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14573       ;;
14574     esac |
14575     sort
14576 ) |
14577   sed '
14578      /^ac_cv_env_/b end
14579      t clear
14580      :clear
14581      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14582      t end
14583      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14584      :end' >>confcache
14585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14586   if test -w "$cache_file"; then
14587     if test "x$cache_file" != "x/dev/null"; then
14588       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14589 $as_echo "$as_me: updating cache $cache_file" >&6;}
14590       if test ! -f "$cache_file" || test -h "$cache_file"; then
14591         cat confcache >"$cache_file"
14592       else
14593         case $cache_file in #(
14594         */* | ?:*)
14595           mv -f confcache "$cache_file"$$ &&
14596           mv -f "$cache_file"$$ "$cache_file" ;; #(
14597         *)
14598           mv -f confcache "$cache_file" ;;
14599         esac
14600       fi
14601     fi
14602   else
14603     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14605   fi
14606 fi
14607 rm -f confcache
14608
14609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14610 # Let make expand exec_prefix.
14611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14612
14613 DEFS=-DHAVE_CONFIG_H
14614
14615 ac_libobjs=
14616 ac_ltlibobjs=
14617 U=
14618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14619   # 1. Remove the extension, and $U if already installed.
14620   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14621   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14622   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14623   #    will be set to the directory where LIBOBJS objects are built.
14624   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14625   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14626 done
14627 LIBOBJS=$ac_libobjs
14628
14629 LTLIBOBJS=$ac_ltlibobjs
14630
14631
14632
14633
14634 : "${CONFIG_STATUS=./config.status}"
14635 ac_write_fail=0
14636 ac_clean_files_save=$ac_clean_files
14637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14640 as_write_fail=0
14641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14642 #! $SHELL
14643 # Generated by $as_me.
14644 # Run this file to recreate the current configuration.
14645 # Compiler output produced by configure, useful for debugging
14646 # configure, is in config.log if it exists.
14647
14648 debug=false
14649 ac_cs_recheck=false
14650 ac_cs_silent=false
14651
14652 SHELL=\${CONFIG_SHELL-$SHELL}
14653 export SHELL
14654 _ASEOF
14655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14656 ## -------------------- ##
14657 ## M4sh Initialization. ##
14658 ## -------------------- ##
14659
14660 # Be more Bourne compatible
14661 DUALCASE=1; export DUALCASE # for MKS sh
14662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14663   emulate sh
14664   NULLCMD=:
14665   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14666   # is contrary to our usage.  Disable this feature.
14667   alias -g '${1+"$@"}'='"$@"'
14668   setopt NO_GLOB_SUBST
14669 else
14670   case `(set -o) 2>/dev/null` in #(
14671   *posix*) :
14672     set -o posix ;; #(
14673   *) :
14674      ;;
14675 esac
14676 fi
14677
14678
14679 as_nl='
14680 '
14681 export as_nl
14682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14686 # Prefer a ksh shell builtin over an external printf program on Solaris,
14687 # but without wasting forks for bash or zsh.
14688 if test -z "$BASH_VERSION$ZSH_VERSION" \
14689     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14690   as_echo='print -r --'
14691   as_echo_n='print -rn --'
14692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14693   as_echo='printf %s\n'
14694   as_echo_n='printf %s'
14695 else
14696   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14697     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14698     as_echo_n='/usr/ucb/echo -n'
14699   else
14700     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14701     as_echo_n_body='eval
14702       arg=$1;
14703       case $arg in #(
14704       *"$as_nl"*)
14705         expr "X$arg" : "X\\(.*\\)$as_nl";
14706         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14707       esac;
14708       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14709     '
14710     export as_echo_n_body
14711     as_echo_n='sh -c $as_echo_n_body as_echo'
14712   fi
14713   export as_echo_body
14714   as_echo='sh -c $as_echo_body as_echo'
14715 fi
14716
14717 # The user is always right.
14718 if test "${PATH_SEPARATOR+set}" != set; then
14719   PATH_SEPARATOR=:
14720   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14721     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14722       PATH_SEPARATOR=';'
14723   }
14724 fi
14725
14726
14727 # IFS
14728 # We need space, tab and new line, in precisely that order.  Quoting is
14729 # there to prevent editors from complaining about space-tab.
14730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14731 # splitting by setting IFS to empty value.)
14732 IFS=" ""        $as_nl"
14733
14734 # Find who we are.  Look in the path if we contain no directory separator.
14735 as_myself=
14736 case $0 in #((
14737   *[\\/]* ) as_myself=$0 ;;
14738   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14740 do
14741   IFS=$as_save_IFS
14742   test -z "$as_dir" && as_dir=.
14743     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14744   done
14745 IFS=$as_save_IFS
14746
14747      ;;
14748 esac
14749 # We did not find ourselves, most probably we were run as `sh COMMAND'
14750 # in which case we are not to be found in the path.
14751 if test "x$as_myself" = x; then
14752   as_myself=$0
14753 fi
14754 if test ! -f "$as_myself"; then
14755   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14756   exit 1
14757 fi
14758
14759 # Unset variables that we do not need and which cause bugs (e.g. in
14760 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14761 # suppresses any "Segmentation fault" message there.  '((' could
14762 # trigger a bug in pdksh 5.2.14.
14763 for as_var in BASH_ENV ENV MAIL MAILPATH
14764 do eval test x\${$as_var+set} = xset \
14765   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14766 done
14767 PS1='$ '
14768 PS2='> '
14769 PS4='+ '
14770
14771 # NLS nuisances.
14772 LC_ALL=C
14773 export LC_ALL
14774 LANGUAGE=C
14775 export LANGUAGE
14776
14777 # CDPATH.
14778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14779
14780
14781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14782 # ----------------------------------------
14783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14785 # script with STATUS, using 1 if that was 0.
14786 as_fn_error ()
14787 {
14788   as_status=$1; test $as_status -eq 0 && as_status=1
14789   if test "$4"; then
14790     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14791     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14792   fi
14793   $as_echo "$as_me: error: $2" >&2
14794   as_fn_exit $as_status
14795 } # as_fn_error
14796
14797
14798 # as_fn_set_status STATUS
14799 # -----------------------
14800 # Set $? to STATUS, without forking.
14801 as_fn_set_status ()
14802 {
14803   return $1
14804 } # as_fn_set_status
14805
14806 # as_fn_exit STATUS
14807 # -----------------
14808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14809 as_fn_exit ()
14810 {
14811   set +e
14812   as_fn_set_status $1
14813   exit $1
14814 } # as_fn_exit
14815
14816 # as_fn_unset VAR
14817 # ---------------
14818 # Portably unset VAR.
14819 as_fn_unset ()
14820 {
14821   { eval $1=; unset $1;}
14822 }
14823 as_unset=as_fn_unset
14824 # as_fn_append VAR VALUE
14825 # ----------------------
14826 # Append the text in VALUE to the end of the definition contained in VAR. Take
14827 # advantage of any shell optimizations that allow amortized linear growth over
14828 # repeated appends, instead of the typical quadratic growth present in naive
14829 # implementations.
14830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14831   eval 'as_fn_append ()
14832   {
14833     eval $1+=\$2
14834   }'
14835 else
14836   as_fn_append ()
14837   {
14838     eval $1=\$$1\$2
14839   }
14840 fi # as_fn_append
14841
14842 # as_fn_arith ARG...
14843 # ------------------
14844 # Perform arithmetic evaluation on the ARGs, and store the result in the
14845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14846 # must be portable across $(()) and expr.
14847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14848   eval 'as_fn_arith ()
14849   {
14850     as_val=$(( $* ))
14851   }'
14852 else
14853   as_fn_arith ()
14854   {
14855     as_val=`expr "$@" || test $? -eq 1`
14856   }
14857 fi # as_fn_arith
14858
14859
14860 if expr a : '\(a\)' >/dev/null 2>&1 &&
14861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14862   as_expr=expr
14863 else
14864   as_expr=false
14865 fi
14866
14867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14868   as_basename=basename
14869 else
14870   as_basename=false
14871 fi
14872
14873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14874   as_dirname=dirname
14875 else
14876   as_dirname=false
14877 fi
14878
14879 as_me=`$as_basename -- "$0" ||
14880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14881          X"$0" : 'X\(//\)$' \| \
14882          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14883 $as_echo X/"$0" |
14884     sed '/^.*\/\([^/][^/]*\)\/*$/{
14885             s//\1/
14886             q
14887           }
14888           /^X\/\(\/\/\)$/{
14889             s//\1/
14890             q
14891           }
14892           /^X\/\(\/\).*/{
14893             s//\1/
14894             q
14895           }
14896           s/.*/./; q'`
14897
14898 # Avoid depending upon Character Ranges.
14899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14902 as_cr_digits='0123456789'
14903 as_cr_alnum=$as_cr_Letters$as_cr_digits
14904
14905 ECHO_C= ECHO_N= ECHO_T=
14906 case `echo -n x` in #(((((
14907 -n*)
14908   case `echo 'xy\c'` in
14909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14910   xy)  ECHO_C='\c';;
14911   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14912        ECHO_T=' ';;
14913   esac;;
14914 *)
14915   ECHO_N='-n';;
14916 esac
14917
14918 rm -f conf$$ conf$$.exe conf$$.file
14919 if test -d conf$$.dir; then
14920   rm -f conf$$.dir/conf$$.file
14921 else
14922   rm -f conf$$.dir
14923   mkdir conf$$.dir 2>/dev/null
14924 fi
14925 if (echo >conf$$.file) 2>/dev/null; then
14926   if ln -s conf$$.file conf$$ 2>/dev/null; then
14927     as_ln_s='ln -s'
14928     # ... but there are two gotchas:
14929     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14930     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14931     # In both cases, we have to default to `cp -pR'.
14932     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14933       as_ln_s='cp -pR'
14934   elif ln conf$$.file conf$$ 2>/dev/null; then
14935     as_ln_s=ln
14936   else
14937     as_ln_s='cp -pR'
14938   fi
14939 else
14940   as_ln_s='cp -pR'
14941 fi
14942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14943 rmdir conf$$.dir 2>/dev/null
14944
14945
14946 # as_fn_mkdir_p
14947 # -------------
14948 # Create "$as_dir" as a directory, including parents if necessary.
14949 as_fn_mkdir_p ()
14950 {
14951
14952   case $as_dir in #(
14953   -*) as_dir=./$as_dir;;
14954   esac
14955   test -d "$as_dir" || eval $as_mkdir_p || {
14956     as_dirs=
14957     while :; do
14958       case $as_dir in #(
14959       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14960       *) as_qdir=$as_dir;;
14961       esac
14962       as_dirs="'$as_qdir' $as_dirs"
14963       as_dir=`$as_dirname -- "$as_dir" ||
14964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14965          X"$as_dir" : 'X\(//\)[^/]' \| \
14966          X"$as_dir" : 'X\(//\)$' \| \
14967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14968 $as_echo X"$as_dir" |
14969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14970             s//\1/
14971             q
14972           }
14973           /^X\(\/\/\)[^/].*/{
14974             s//\1/
14975             q
14976           }
14977           /^X\(\/\/\)$/{
14978             s//\1/
14979             q
14980           }
14981           /^X\(\/\).*/{
14982             s//\1/
14983             q
14984           }
14985           s/.*/./; q'`
14986       test -d "$as_dir" && break
14987     done
14988     test -z "$as_dirs" || eval "mkdir $as_dirs"
14989   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14990
14991
14992 } # as_fn_mkdir_p
14993 if mkdir -p . 2>/dev/null; then
14994   as_mkdir_p='mkdir -p "$as_dir"'
14995 else
14996   test -d ./-p && rmdir ./-p
14997   as_mkdir_p=false
14998 fi
14999
15000
15001 # as_fn_executable_p FILE
15002 # -----------------------
15003 # Test if FILE is an executable regular file.
15004 as_fn_executable_p ()
15005 {
15006   test -f "$1" && test -x "$1"
15007 } # as_fn_executable_p
15008 as_test_x='test -x'
15009 as_executable_p=as_fn_executable_p
15010
15011 # Sed expression to map a string onto a valid CPP name.
15012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15013
15014 # Sed expression to map a string onto a valid variable name.
15015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15016
15017
15018 exec 6>&1
15019 ## ----------------------------------- ##
15020 ## Main body of $CONFIG_STATUS script. ##
15021 ## ----------------------------------- ##
15022 _ASEOF
15023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15024
15025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15026 # Save the log message, to keep $0 and so on meaningful, and to
15027 # report actual input values of CONFIG_FILES etc. instead of their
15028 # values after options handling.
15029 ac_log="
15030 This file was extended by $as_me, which was
15031 generated by GNU Autoconf 2.69.  Invocation command line was
15032
15033   CONFIG_FILES    = $CONFIG_FILES
15034   CONFIG_HEADERS  = $CONFIG_HEADERS
15035   CONFIG_LINKS    = $CONFIG_LINKS
15036   CONFIG_COMMANDS = $CONFIG_COMMANDS
15037   $ $0 $@
15038
15039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15040 "
15041
15042 _ACEOF
15043
15044 case $ac_config_files in *"
15045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15046 esac
15047
15048 case $ac_config_headers in *"
15049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15050 esac
15051
15052
15053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15054 # Files that config.status was made for.
15055 config_files="$ac_config_files"
15056 config_headers="$ac_config_headers"
15057 config_commands="$ac_config_commands"
15058
15059 _ACEOF
15060
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 ac_cs_usage="\
15063 \`$as_me' instantiates files and other configuration actions
15064 from templates according to the current configuration.  Unless the files
15065 and actions are specified as TAGs, all are instantiated by default.
15066
15067 Usage: $0 [OPTION]... [TAG]...
15068
15069   -h, --help       print this help, then exit
15070   -V, --version    print version number and configuration settings, then exit
15071       --config     print configuration, then exit
15072   -q, --quiet, --silent
15073                    do not print progress messages
15074   -d, --debug      don't remove temporary files
15075       --recheck    update $as_me by reconfiguring in the same conditions
15076       --file=FILE[:TEMPLATE]
15077                    instantiate the configuration file FILE
15078       --header=FILE[:TEMPLATE]
15079                    instantiate the configuration header FILE
15080
15081 Configuration files:
15082 $config_files
15083
15084 Configuration headers:
15085 $config_headers
15086
15087 Configuration commands:
15088 $config_commands
15089
15090 Report bugs to the package provider."
15091
15092 _ACEOF
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15095 ac_cs_version="\\
15096 config.status
15097 configured by $0, generated by GNU Autoconf 2.69,
15098   with options \\"\$ac_cs_config\\"
15099
15100 Copyright (C) 2012 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15103
15104 ac_pwd='$ac_pwd'
15105 srcdir='$srcdir'
15106 INSTALL='$INSTALL'
15107 MKDIR_P='$MKDIR_P'
15108 AWK='$AWK'
15109 test -n "\$AWK" || AWK=awk
15110 _ACEOF
15111
15112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15113 # The default lists apply if the user does not specify any file.
15114 ac_need_defaults=:
15115 while test $# != 0
15116 do
15117   case $1 in
15118   --*=?*)
15119     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15120     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15121     ac_shift=:
15122     ;;
15123   --*=)
15124     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15125     ac_optarg=
15126     ac_shift=:
15127     ;;
15128   *)
15129     ac_option=$1
15130     ac_optarg=$2
15131     ac_shift=shift
15132     ;;
15133   esac
15134
15135   case $ac_option in
15136   # Handling of the options.
15137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15138     ac_cs_recheck=: ;;
15139   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15140     $as_echo "$ac_cs_version"; exit ;;
15141   --config | --confi | --conf | --con | --co | --c )
15142     $as_echo "$ac_cs_config"; exit ;;
15143   --debug | --debu | --deb | --de | --d | -d )
15144     debug=: ;;
15145   --file | --fil | --fi | --f )
15146     $ac_shift
15147     case $ac_optarg in
15148     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15149     '') as_fn_error $? "missing file argument" ;;
15150     esac
15151     as_fn_append CONFIG_FILES " '$ac_optarg'"
15152     ac_need_defaults=false;;
15153   --header | --heade | --head | --hea )
15154     $ac_shift
15155     case $ac_optarg in
15156     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15157     esac
15158     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15159     ac_need_defaults=false;;
15160   --he | --h)
15161     # Conflict between --help and --header
15162     as_fn_error $? "ambiguous option: \`$1'
15163 Try \`$0 --help' for more information.";;
15164   --help | --hel | -h )
15165     $as_echo "$ac_cs_usage"; exit ;;
15166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15167   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15168     ac_cs_silent=: ;;
15169
15170   # This is an error.
15171   -*) as_fn_error $? "unrecognized option: \`$1'
15172 Try \`$0 --help' for more information." ;;
15173
15174   *) as_fn_append ac_config_targets " $1"
15175      ac_need_defaults=false ;;
15176
15177   esac
15178   shift
15179 done
15180
15181 ac_configure_extra_args=
15182
15183 if $ac_cs_silent; then
15184   exec 6>/dev/null
15185   ac_configure_extra_args="$ac_configure_extra_args --silent"
15186 fi
15187
15188 _ACEOF
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 if \$ac_cs_recheck; then
15191   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15192   shift
15193   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15194   CONFIG_SHELL='$SHELL'
15195   export CONFIG_SHELL
15196   exec "\$@"
15197 fi
15198
15199 _ACEOF
15200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15201 exec 5>>config.log
15202 {
15203   echo
15204   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15205 ## Running $as_me. ##
15206 _ASBOX
15207   $as_echo "$ac_log"
15208 } >&5
15209
15210 _ACEOF
15211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15212 #
15213 # INIT-COMMANDS
15214 #
15215 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15216     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15217     # from automake < 1.5.
15218     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15219     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15220     LINGUAS="${LINGUAS-%UNSET%}"
15221
15222
15223 _ACEOF
15224
15225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226
15227 # Handling of arguments.
15228 for ac_config_target in $ac_config_targets
15229 do
15230   case $ac_config_target in
15231     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15232     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15233     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15234
15235   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15236   esac
15237 done
15238
15239
15240 # If the user did not use the arguments to specify the items to instantiate,
15241 # then the envvar interface is used.  Set only those that are not.
15242 # We use the long form for the default assignment because of an extremely
15243 # bizarre bug on SunOS 4.1.3.
15244 if $ac_need_defaults; then
15245   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15246   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15247   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15248 fi
15249
15250 # Have a temporary directory for convenience.  Make it in the build tree
15251 # simply because there is no reason against having it here, and in addition,
15252 # creating and moving files from /tmp can sometimes cause problems.
15253 # Hook for its removal unless debugging.
15254 # Note that there is a small window in which the directory will not be cleaned:
15255 # after its creation but before its name has been assigned to `$tmp'.
15256 $debug ||
15257 {
15258   tmp= ac_tmp=
15259   trap 'exit_status=$?
15260   : "${ac_tmp:=$tmp}"
15261   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15262 ' 0
15263   trap 'as_fn_exit 1' 1 2 13 15
15264 }
15265 # Create a (secure) tmp directory for tmp files.
15266
15267 {
15268   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15269   test -d "$tmp"
15270 }  ||
15271 {
15272   tmp=./conf$$-$RANDOM
15273   (umask 077 && mkdir "$tmp")
15274 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15275 ac_tmp=$tmp
15276
15277 # Set up the scripts for CONFIG_FILES section.
15278 # No need to generate them if there are no CONFIG_FILES.
15279 # This happens for instance with `./config.status config.h'.
15280 if test -n "$CONFIG_FILES"; then
15281
15282 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15283   ac_cs_awk_getline=:
15284   ac_cs_awk_pipe_init=
15285   ac_cs_awk_read_file='
15286       while ((getline aline < (F[key])) > 0)
15287         print(aline)
15288       close(F[key])'
15289   ac_cs_awk_pipe_fini=
15290 else
15291   ac_cs_awk_getline=false
15292   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15293   ac_cs_awk_read_file='
15294       print "|#_!!_#|"
15295       print "cat " F[key] " &&"
15296       '$ac_cs_awk_pipe_init
15297   # The final `:' finishes the AND list.
15298   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15299 fi
15300 ac_cr=`echo X | tr X '\015'`
15301 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15302 # But we know of no other shell where ac_cr would be empty at this
15303 # point, so we can use a bashism as a fallback.
15304 if test "x$ac_cr" = x; then
15305   eval ac_cr=\$\'\\r\'
15306 fi
15307 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15308 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15309   ac_cs_awk_cr='\\r'
15310 else
15311   ac_cs_awk_cr=$ac_cr
15312 fi
15313
15314 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15315 _ACEOF
15316
15317 # Create commands to substitute file output variables.
15318 {
15319   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15320   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15321   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15322   echo "_ACAWK" &&
15323   echo "_ACEOF"
15324 } >conf$$files.sh &&
15325 . ./conf$$files.sh ||
15326   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15327 rm -f conf$$files.sh
15328
15329 {
15330   echo "cat >conf$$subs.awk <<_ACEOF" &&
15331   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15332   echo "_ACEOF"
15333 } >conf$$subs.sh ||
15334   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15336 ac_delim='%!_!# '
15337 for ac_last_try in false false false false false :; do
15338   . ./conf$$subs.sh ||
15339     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15340
15341   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15342   if test $ac_delim_n = $ac_delim_num; then
15343     break
15344   elif $ac_last_try; then
15345     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15346   else
15347     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15348   fi
15349 done
15350 rm -f conf$$subs.sh
15351
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15354 _ACEOF
15355 sed -n '
15356 h
15357 s/^/S["/; s/!.*/"]=/
15358 p
15359 g
15360 s/^[^!]*!//
15361 :repl
15362 t repl
15363 s/'"$ac_delim"'$//
15364 t delim
15365 :nl
15366 h
15367 s/\(.\{148\}\)..*/\1/
15368 t more1
15369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15370 p
15371 n
15372 b repl
15373 :more1
15374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15375 p
15376 g
15377 s/.\{148\}//
15378 t nl
15379 :delim
15380 h
15381 s/\(.\{148\}\)..*/\1/
15382 t more2
15383 s/["\\]/\\&/g; s/^/"/; s/$/"/
15384 p
15385 b
15386 :more2
15387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15388 p
15389 g
15390 s/.\{148\}//
15391 t delim
15392 ' <conf$$subs.awk | sed '
15393 /^[^""]/{
15394   N
15395   s/\n//
15396 }
15397 ' >>$CONFIG_STATUS || ac_write_fail=1
15398 rm -f conf$$subs.awk
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 _ACAWK
15401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15402   for (key in S) S_is_set[key] = 1
15403   FS = "\a"
15404   \$ac_cs_awk_pipe_init
15405 }
15406 {
15407   line = $ 0
15408   nfields = split(line, field, "@")
15409   substed = 0
15410   len = length(field[1])
15411   for (i = 2; i < nfields; i++) {
15412     key = field[i]
15413     keylen = length(key)
15414     if (S_is_set[key]) {
15415       value = S[key]
15416       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15417       len += length(value) + length(field[++i])
15418       substed = 1
15419     } else
15420       len += 1 + keylen
15421   }
15422   if (nfields == 3 && !substed) {
15423     key = field[2]
15424     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15425       \$ac_cs_awk_read_file
15426       next
15427     }
15428   }
15429   print line
15430 }
15431 \$ac_cs_awk_pipe_fini
15432 _ACAWK
15433 _ACEOF
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15436   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15437 else
15438   cat
15439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15440   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15441 _ACEOF
15442
15443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15445 # trailing colons and then remove the whole line if VPATH becomes empty
15446 # (actually we leave an empty line to preserve line numbers).
15447 if test "x$srcdir" = x.; then
15448   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15449 h
15450 s///
15451 s/^/:/
15452 s/[      ]*$/:/
15453 s/:\$(srcdir):/:/g
15454 s/:\${srcdir}:/:/g
15455 s/:@srcdir@:/:/g
15456 s/^:*//
15457 s/:*$//
15458 x
15459 s/\(=[   ]*\).*/\1/
15460 G
15461 s/\n//
15462 s/^[^=]*=[       ]*$//
15463 }'
15464 fi
15465
15466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 fi # test -n "$CONFIG_FILES"
15468
15469 # Set up the scripts for CONFIG_HEADERS section.
15470 # No need to generate them if there are no CONFIG_HEADERS.
15471 # This happens for instance with `./config.status Makefile'.
15472 if test -n "$CONFIG_HEADERS"; then
15473 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15474 BEGIN {
15475 _ACEOF
15476
15477 # Transform confdefs.h into an awk script `defines.awk', embedded as
15478 # here-document in config.status, that substitutes the proper values into
15479 # config.h.in to produce config.h.
15480
15481 # Create a delimiter string that does not exist in confdefs.h, to ease
15482 # handling of long lines.
15483 ac_delim='%!_!# '
15484 for ac_last_try in false false :; do
15485   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15486   if test -z "$ac_tt"; then
15487     break
15488   elif $ac_last_try; then
15489     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15490   else
15491     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15492   fi
15493 done
15494
15495 # For the awk script, D is an array of macro values keyed by name,
15496 # likewise P contains macro parameters if any.  Preserve backslash
15497 # newline sequences.
15498
15499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15500 sed -n '
15501 s/.\{148\}/&'"$ac_delim"'/g
15502 t rset
15503 :rset
15504 s/^[     ]*#[    ]*define[       ][      ]*/ /
15505 t def
15506 d
15507 :def
15508 s/\\$//
15509 t bsnl
15510 s/["\\]/\\&/g
15511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15512 D["\1"]=" \3"/p
15513 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15514 d
15515 :bsnl
15516 s/["\\]/\\&/g
15517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15518 D["\1"]=" \3\\\\\\n"\\/p
15519 t cont
15520 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15521 t cont
15522 d
15523 :cont
15524 n
15525 s/.\{148\}/&'"$ac_delim"'/g
15526 t clear
15527 :clear
15528 s/\\$//
15529 t bsnlc
15530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15531 d
15532 :bsnlc
15533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15534 b cont
15535 ' <confdefs.h | sed '
15536 s/'"$ac_delim"'/"\\\
15537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15538
15539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540   for (key in D) D_is_set[key] = 1
15541   FS = "\a"
15542 }
15543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15544   line = \$ 0
15545   split(line, arg, " ")
15546   if (arg[1] == "#") {
15547     defundef = arg[2]
15548     mac1 = arg[3]
15549   } else {
15550     defundef = substr(arg[1], 2)
15551     mac1 = arg[2]
15552   }
15553   split(mac1, mac2, "(") #)
15554   macro = mac2[1]
15555   prefix = substr(line, 1, index(line, defundef) - 1)
15556   if (D_is_set[macro]) {
15557     # Preserve the white space surrounding the "#".
15558     print prefix "define", macro P[macro] D[macro]
15559     next
15560   } else {
15561     # Replace #undef with comments.  This is necessary, for example,
15562     # in the case of _POSIX_SOURCE, which is predefined and required
15563     # on some systems where configure will not decide to define it.
15564     if (defundef == "undef") {
15565       print "/*", prefix defundef, macro, "*/"
15566       next
15567     }
15568   }
15569 }
15570 { print }
15571 _ACAWK
15572 _ACEOF
15573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15574   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15575 fi # test -n "$CONFIG_HEADERS"
15576
15577
15578 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15579 shift
15580 for ac_tag
15581 do
15582   case $ac_tag in
15583   :[FHLC]) ac_mode=$ac_tag; continue;;
15584   esac
15585   case $ac_mode$ac_tag in
15586   :[FHL]*:*);;
15587   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15588   :[FH]-) ac_tag=-:-;;
15589   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15590   esac
15591   ac_save_IFS=$IFS
15592   IFS=:
15593   set x $ac_tag
15594   IFS=$ac_save_IFS
15595   shift
15596   ac_file=$1
15597   shift
15598
15599   case $ac_mode in
15600   :L) ac_source=$1;;
15601   :[FH])
15602     ac_file_inputs=
15603     for ac_f
15604     do
15605       case $ac_f in
15606       -) ac_f="$ac_tmp/stdin";;
15607       *) # Look for the file first in the build tree, then in the source tree
15608          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15609          # because $ac_f cannot contain `:'.
15610          test -f "$ac_f" ||
15611            case $ac_f in
15612            [\\/$]*) false;;
15613            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15614            esac ||
15615            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15616       esac
15617       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15618       as_fn_append ac_file_inputs " '$ac_f'"
15619     done
15620
15621     # Let's still pretend it is `configure' which instantiates (i.e., don't
15622     # use $as_me), people would be surprised to read:
15623     #    /* config.h.  Generated by config.status.  */
15624     configure_input='Generated from '`
15625           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15626         `' by configure.'
15627     if test x"$ac_file" != x-; then
15628       configure_input="$ac_file.  $configure_input"
15629       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15630 $as_echo "$as_me: creating $ac_file" >&6;}
15631     fi
15632     # Neutralize special characters interpreted by sed in replacement strings.
15633     case $configure_input in #(
15634     *\&* | *\|* | *\\* )
15635        ac_sed_conf_input=`$as_echo "$configure_input" |
15636        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15637     *) ac_sed_conf_input=$configure_input;;
15638     esac
15639
15640     case $ac_tag in
15641     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15642       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15643     esac
15644     ;;
15645   esac
15646
15647   ac_dir=`$as_dirname -- "$ac_file" ||
15648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15649          X"$ac_file" : 'X\(//\)[^/]' \| \
15650          X"$ac_file" : 'X\(//\)$' \| \
15651          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15652 $as_echo X"$ac_file" |
15653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15654             s//\1/
15655             q
15656           }
15657           /^X\(\/\/\)[^/].*/{
15658             s//\1/
15659             q
15660           }
15661           /^X\(\/\/\)$/{
15662             s//\1/
15663             q
15664           }
15665           /^X\(\/\).*/{
15666             s//\1/
15667             q
15668           }
15669           s/.*/./; q'`
15670   as_dir="$ac_dir"; as_fn_mkdir_p
15671   ac_builddir=.
15672
15673 case "$ac_dir" in
15674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15675 *)
15676   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15677   # A ".." for each directory in $ac_dir_suffix.
15678   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15679   case $ac_top_builddir_sub in
15680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15682   esac ;;
15683 esac
15684 ac_abs_top_builddir=$ac_pwd
15685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15686 # for backward compatibility:
15687 ac_top_builddir=$ac_top_build_prefix
15688
15689 case $srcdir in
15690   .)  # We are building in place.
15691     ac_srcdir=.
15692     ac_top_srcdir=$ac_top_builddir_sub
15693     ac_abs_top_srcdir=$ac_pwd ;;
15694   [\\/]* | ?:[\\/]* )  # Absolute name.
15695     ac_srcdir=$srcdir$ac_dir_suffix;
15696     ac_top_srcdir=$srcdir
15697     ac_abs_top_srcdir=$srcdir ;;
15698   *) # Relative name.
15699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15700     ac_top_srcdir=$ac_top_build_prefix$srcdir
15701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15702 esac
15703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15704
15705
15706   case $ac_mode in
15707   :F)
15708   #
15709   # CONFIG_FILE
15710   #
15711
15712   case $INSTALL in
15713   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15714   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15715   esac
15716   ac_MKDIR_P=$MKDIR_P
15717   case $MKDIR_P in
15718   [\\/$]* | ?:[\\/]* ) ;;
15719   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15720   esac
15721 _ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 # If the template does not know about datarootdir, expand it.
15725 # FIXME: This hack should be removed a few years after 2.60.
15726 ac_datarootdir_hack=; ac_datarootdir_seen=
15727 ac_sed_dataroot='
15728 /datarootdir/ {
15729   p
15730   q
15731 }
15732 /@datadir@/p
15733 /@docdir@/p
15734 /@infodir@/p
15735 /@localedir@/p
15736 /@mandir@/p'
15737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15738 *datarootdir*) ac_datarootdir_seen=yes;;
15739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15740   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15742 _ACEOF
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744   ac_datarootdir_hack='
15745   s&@datadir@&$datadir&g
15746   s&@docdir@&$docdir&g
15747   s&@infodir@&$infodir&g
15748   s&@localedir@&$localedir&g
15749   s&@mandir@&$mandir&g
15750   s&\\\${datarootdir}&$datarootdir&g' ;;
15751 esac
15752 _ACEOF
15753
15754 # Neutralize VPATH when `$srcdir' = `.'.
15755 # Shell code in configure.ac might set extrasub.
15756 # FIXME: do we really want to maintain this feature?
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 ac_sed_extra="$ac_vpsub
15759 $extrasub
15760 _ACEOF
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 :t
15763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15764 s|@configure_input@|$ac_sed_conf_input|;t t
15765 s&@top_builddir@&$ac_top_builddir_sub&;t t
15766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15767 s&@srcdir@&$ac_srcdir&;t t
15768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15769 s&@top_srcdir@&$ac_top_srcdir&;t t
15770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15771 s&@builddir@&$ac_builddir&;t t
15772 s&@abs_builddir@&$ac_abs_builddir&;t t
15773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15774 s&@INSTALL@&$ac_INSTALL&;t t
15775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15776 $ac_datarootdir_hack
15777 "
15778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15779 if $ac_cs_awk_getline; then
15780   $AWK -f "$ac_tmp/subs.awk"
15781 else
15782   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15783 fi \
15784   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15785
15786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15787   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15788   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15789       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15790   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15791 which seems to be undefined.  Please make sure it is defined" >&5
15792 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15793 which seems to be undefined.  Please make sure it is defined" >&2;}
15794
15795   rm -f "$ac_tmp/stdin"
15796   case $ac_file in
15797   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15798   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15799   esac \
15800   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15801  ;;
15802   :H)
15803   #
15804   # CONFIG_HEADER
15805   #
15806   if test x"$ac_file" != x-; then
15807     {
15808       $as_echo "/* $configure_input  */" \
15809       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15810     } >"$ac_tmp/config.h" \
15811       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15812     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15813       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15815     else
15816       rm -f "$ac_file"
15817       mv "$ac_tmp/config.h" "$ac_file" \
15818         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15819     fi
15820   else
15821     $as_echo "/* $configure_input  */" \
15822       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15823       || as_fn_error $? "could not create -" "$LINENO" 5
15824   fi
15825  ;;
15826
15827   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15828 $as_echo "$as_me: executing $ac_file commands" >&6;}
15829  ;;
15830   esac
15831
15832
15833   case $ac_file$ac_mode in
15834     "po-directories":C)
15835     for ac_file in $CONFIG_FILES; do
15836       # Support "outfile[:infile[:infile...]]"
15837       case "$ac_file" in
15838         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15839       esac
15840       # PO directories have a Makefile.in generated from Makefile.in.in.
15841       case "$ac_file" in */Makefile.in)
15842         # Adjust a relative srcdir.
15843         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15844         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15845         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15846         # In autoconf-2.13 it is called $ac_given_srcdir.
15847         # In autoconf-2.50 it is called $srcdir.
15848         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15849         case "$ac_given_srcdir" in
15850           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15851           /*) top_srcdir="$ac_given_srcdir" ;;
15852           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15853         esac
15854         # Treat a directory as a PO directory if and only if it has a
15855         # POTFILES.in file. This allows packages to have multiple PO
15856         # directories under different names or in different locations.
15857         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15858           rm -f "$ac_dir/POTFILES"
15859           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15860           gt_tab=`printf '\t'`
15861           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15862           POMAKEFILEDEPS="POTFILES.in"
15863           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15864           # on $ac_dir but don't depend on user-specified configuration
15865           # parameters.
15866           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15867             # The LINGUAS file contains the set of available languages.
15868             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15869               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15870             fi
15871             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15872             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15873             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15874             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15875           else
15876             # The set of available languages was given in configure.in.
15877             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15878             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15879           fi
15880           # Compute POFILES
15881           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15882           # Compute UPDATEPOFILES
15883           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15884           # Compute DUMMYPOFILES
15885           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15886           # Compute GMOFILES
15887           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15888           case "$ac_given_srcdir" in
15889             .) srcdirpre= ;;
15890             *) srcdirpre='$(srcdir)/' ;;
15891           esac
15892           POFILES=
15893           UPDATEPOFILES=
15894           DUMMYPOFILES=
15895           GMOFILES=
15896           for lang in $ALL_LINGUAS; do
15897             POFILES="$POFILES $srcdirpre$lang.po"
15898             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15899             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15900             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15901           done
15902           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15903           # environment variable.
15904           INST_LINGUAS=
15905           if test -n "$ALL_LINGUAS"; then
15906             for presentlang in $ALL_LINGUAS; do
15907               useit=no
15908               if test "%UNSET%" != "$LINGUAS"; then
15909                 desiredlanguages="$LINGUAS"
15910               else
15911                 desiredlanguages="$ALL_LINGUAS"
15912               fi
15913               for desiredlang in $desiredlanguages; do
15914                 # Use the presentlang catalog if desiredlang is
15915                 #   a. equal to presentlang, or
15916                 #   b. a variant of presentlang (because in this case,
15917                 #      presentlang can be used as a fallback for messages
15918                 #      which are not translated in the desiredlang catalog).
15919                 case "$desiredlang" in
15920                   "$presentlang"*) useit=yes;;
15921                 esac
15922               done
15923               if test $useit = yes; then
15924                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15925               fi
15926             done
15927           fi
15928           CATALOGS=
15929           if test -n "$INST_LINGUAS"; then
15930             for lang in $INST_LINGUAS; do
15931               CATALOGS="$CATALOGS $lang.gmo"
15932             done
15933           fi
15934           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15935           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"
15936           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15937             if test -f "$f"; then
15938               case "$f" in
15939                 *.orig | *.bak | *~) ;;
15940                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15941               esac
15942             fi
15943           done
15944         fi
15945         ;;
15946       esac
15947     done ;;
15948
15949   esac
15950 done # for ac_tag
15951
15952
15953 as_fn_exit 0
15954 _ACEOF
15955 ac_clean_files=$ac_clean_files_save
15956
15957 test $ac_write_fail = 0 ||
15958   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15959
15960
15961 # configure is writing to config.log, and then calls config.status.
15962 # config.status does its own redirection, appending to config.log.
15963 # Unfortunately, on DOS this fails, as config.log is still kept open
15964 # by configure, so config.status won't be able to write to it; its
15965 # output is simply discarded.  So we exec the FD to /dev/null,
15966 # effectively closing config.log, so it can be properly (re)opened and
15967 # appended to by config.status.  When coming back to configure, we
15968 # need to make the FD available again.
15969 if test "$no_create" != yes; then
15970   ac_cs_success=:
15971   ac_config_status_args=
15972   test "$silent" = yes &&
15973     ac_config_status_args="$ac_config_status_args --quiet"
15974   exec 5>/dev/null
15975   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15976   exec 5>>config.log
15977   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15978   # would make configure fail if this is the last instruction.
15979   $ac_cs_success || as_fn_exit 1
15980 fi
15981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15984 fi
15985
15986 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi