Whamcloud - gitweb
enable thread sanitizer if the builder wants it
[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 MKINSTALLDIRS
644 INCLUDES
645 DO_TEST_SUITE
646 LDFLAGS_STATIC
647 root_sysconfdir
648 root_libdir
649 root_sbindir
650 root_bindir
651 root_prefix
652 E2SCRUB_CMT
653 UNIX_CMT
654 CYGWIN_CMT
655 LINUX_CMT
656 threadsan_ldflags
657 threadsan_cflags
658 have_threadsan
659 addrsan_ldflags
660 addrsan_cflags
661 have_addrsan
662 ubsan_ldflags
663 ubsan_cflags
664 have_ubsan
665 lto_ldflags
666 lto_cflags
667 have_lto
668 gcc_ranlib
669 gcc_ar
670 UNI_DIFF_OPTS
671 SEM_INIT_LIB
672 FUSE_CMT
673 FUSE_LIB
674 CLOCK_GETTIME_LIB
675 MAGIC_LIB
676 SOCKET_LIB
677 SIZEOF_TIME_T
678 SIZEOF_OFF_T
679 SIZEOF_LONG_LONG
680 SIZEOF_LONG
681 SIZEOF_INT
682 SIZEOF_SHORT
683 DD
684 BUILD_CC
685 MAKEINFO
686 STRIP
687 AR
688 LDCONFIG
689 PERL
690 AWK
691 CHMOD
692 RM
693 CP
694 MV
695 LN_S
696 LN
697 ifNotGNUmake
698 ifGNUmake
699 BINARY_TYPE
700 POSUB
701 LTLIBINTL
702 LIBINTL
703 INTLLIBS
704 INTL_LIBTOOL_SUFFIX_PREFIX
705 INTLOBJS
706 GENCAT
707 INSTOBJEXT
708 DATADIRNAME
709 CATOBJEXT
710 USE_INCLUDED_LIBINTL
711 BUILD_INCLUDED_LIBINTL
712 LTLIBC
713 WINDRES
714 WOE32
715 WOE32DLL
716 HAVE_WPRINTF
717 HAVE_NEWLOCALE
718 HAVE_SNPRINTF
719 HAVE_ASPRINTF
720 HAVE_POSIX_PRINTF
721 INTL_DEFAULT_VERBOSITY
722 INTL_MACOSX_LIBS
723 GLIBC21
724 INTLBISON
725 LTLIBICONV
726 LIBICONV
727 LTLIBMULTITHREAD
728 LIBMULTITHREAD
729 LTLIBTHREAD
730 LIBTHREAD
731 LIBPTH_PREFIX
732 LTLIBPTH
733 LIBPTH
734 PRI_MACROS_BROKEN
735 ALLOCA
736 HAVE_VISIBILITY
737 CFLAG_VISIBILITY
738 RANLIB
739 GLIBC2
740 XGETTEXT_EXTRA_OPTIONS
741 MSGMERGE
742 XGETTEXT_015
743 XGETTEXT
744 GMSGFMT_015
745 MSGFMT_015
746 GMSGFMT
747 MSGFMT
748 GETTEXT_MACRO_VERSION
749 USE_NLS
750 SED
751 MKDIR_P
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 SET_MAKE
756 VERSION
757 PACKAGE
758 GETTEXT_PACKAGE
759 TDB_MAN_COMMENT
760 TDB_CMT
761 UUIDD_CMT
762 E2INITRD_MAN
763 E2INITRD_PROG
764 FSCK_MAN
765 FSCK_PROG
766 DEFRAG_CMT
767 RESIZER_CMT
768 IMAGER_CMT
769 DEBUGFS_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_backtrace
899 enable_debugfs
900 enable_imager
901 enable_resizer
902 enable_defrag
903 enable_fsck
904 enable_e2initrd_helper
905 enable_tls
906 enable_uuidd
907 enable_mmp
908 enable_tdb
909 enable_bmap_stats
910 enable_bmap_stats_ops
911 enable_nls
912 enable_threads
913 with_gnu_ld
914 enable_rpath
915 with_libpth_prefix
916 with_libiconv_prefix
917 with_included_gettext
918 with_libintl_prefix
919 enable_fuse2fs
920 enable_lto
921 enable_ubsan
922 enable_addrsan
923 enable_threadsan
924 with_multiarch
925 with_udev_rules_dir
926 with_crond_dir
927 with_systemd_unit_dir
928 '
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CPP
938 PKG_CONFIG
939 PKG_CONFIG_PATH
940 PKG_CONFIG_LIBDIR
941 udev_CFLAGS
942 udev_LIBS
943 systemd_CFLAGS
944 systemd_LIBS'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 runstatedir='${localstatedir}/run'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
995
996 ac_prev=
997 ac_dashdash=
998 for ac_option
999 do
1000   # If the previous option needs an argument, assign it.
1001   if test -n "$ac_prev"; then
1002     eval $ac_prev=\$ac_option
1003     ac_prev=
1004     continue
1005   fi
1006
1007   case $ac_option in
1008   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009   *=)   ac_optarg= ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       as_fn_error $? "invalid feature name: $ac_useropt"
1056     ac_useropt_orig=$ac_useropt
1057     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058     case $ac_user_opts in
1059       *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063          ac_unrecognized_sep=', ';;
1064     esac
1065     eval enable_$ac_useropt=no ;;
1066
1067   -docdir | --docdir | --docdi | --doc | --do)
1068     ac_prev=docdir ;;
1069   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070     docdir=$ac_optarg ;;
1071
1072   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073     ac_prev=dvidir ;;
1074   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075     dvidir=$ac_optarg ;;
1076
1077   -enable-* | --enable-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       as_fn_error $? "invalid feature name: $ac_useropt"
1082     ac_useropt_orig=$ac_useropt
1083     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084     case $ac_user_opts in
1085       *"
1086 "enable_$ac_useropt"
1087 "*) ;;
1088       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089          ac_unrecognized_sep=', ';;
1090     esac
1091     eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095   | --exec | --exe | --ex)
1096     ac_prev=exec_prefix ;;
1097   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099   | --exec=* | --exe=* | --ex=*)
1100     exec_prefix=$ac_optarg ;;
1101
1102   -gas | --gas | --ga | --g)
1103     # Obsolete; use --with-gas.
1104     with_gas=yes ;;
1105
1106   -help | --help | --hel | --he | -h)
1107     ac_init_help=long ;;
1108   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109     ac_init_help=recursive ;;
1110   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111     ac_init_help=short ;;
1112
1113   -host | --host | --hos | --ho)
1114     ac_prev=host_alias ;;
1115   -host=* | --host=* | --hos=* | --ho=*)
1116     host_alias=$ac_optarg ;;
1117
1118   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119     ac_prev=htmldir ;;
1120   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121   | --ht=*)
1122     htmldir=$ac_optarg ;;
1123
1124   -includedir | --includedir | --includedi | --included | --include \
1125   | --includ | --inclu | --incl | --inc)
1126     ac_prev=includedir ;;
1127   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128   | --includ=* | --inclu=* | --incl=* | --inc=*)
1129     includedir=$ac_optarg ;;
1130
1131   -infodir | --infodir | --infodi | --infod | --info | --inf)
1132     ac_prev=infodir ;;
1133   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134     infodir=$ac_optarg ;;
1135
1136   -libdir | --libdir | --libdi | --libd)
1137     ac_prev=libdir ;;
1138   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139     libdir=$ac_optarg ;;
1140
1141   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142   | --libexe | --libex | --libe)
1143     ac_prev=libexecdir ;;
1144   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145   | --libexe=* | --libex=* | --libe=*)
1146     libexecdir=$ac_optarg ;;
1147
1148   -localedir | --localedir | --localedi | --localed | --locale)
1149     ac_prev=localedir ;;
1150   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151     localedir=$ac_optarg ;;
1152
1153   -localstatedir | --localstatedir | --localstatedi | --localstated \
1154   | --localstate | --localstat | --localsta | --localst | --locals)
1155     ac_prev=localstatedir ;;
1156   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158     localstatedir=$ac_optarg ;;
1159
1160   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161     ac_prev=mandir ;;
1162   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163     mandir=$ac_optarg ;;
1164
1165   -nfp | --nfp | --nf)
1166     # Obsolete; use --without-fp.
1167     with_fp=no ;;
1168
1169   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170   | --no-cr | --no-c | -n)
1171     no_create=yes ;;
1172
1173   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175     no_recursion=yes ;;
1176
1177   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179   | --oldin | --oldi | --old | --ol | --o)
1180     ac_prev=oldincludedir ;;
1181   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184     oldincludedir=$ac_optarg ;;
1185
1186   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187     ac_prev=prefix ;;
1188   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189     prefix=$ac_optarg ;;
1190
1191   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192   | --program-pre | --program-pr | --program-p)
1193     ac_prev=program_prefix ;;
1194   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196     program_prefix=$ac_optarg ;;
1197
1198   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199   | --program-suf | --program-su | --program-s)
1200     ac_prev=program_suffix ;;
1201   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203     program_suffix=$ac_optarg ;;
1204
1205   -program-transform-name | --program-transform-name \
1206   | --program-transform-nam | --program-transform-na \
1207   | --program-transform-n | --program-transform- \
1208   | --program-transform | --program-transfor \
1209   | --program-transfo | --program-transf \
1210   | --program-trans | --program-tran \
1211   | --progr-tra | --program-tr | --program-t)
1212     ac_prev=program_transform_name ;;
1213   -program-transform-name=* | --program-transform-name=* \
1214   | --program-transform-nam=* | --program-transform-na=* \
1215   | --program-transform-n=* | --program-transform-=* \
1216   | --program-transform=* | --program-transfor=* \
1217   | --program-transfo=* | --program-transf=* \
1218   | --program-trans=* | --program-tran=* \
1219   | --progr-tra=* | --program-tr=* | --program-t=*)
1220     program_transform_name=$ac_optarg ;;
1221
1222   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223     ac_prev=pdfdir ;;
1224   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225     pdfdir=$ac_optarg ;;
1226
1227   -psdir | --psdir | --psdi | --psd | --ps)
1228     ac_prev=psdir ;;
1229   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230     psdir=$ac_optarg ;;
1231
1232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233   | -silent | --silent | --silen | --sile | --sil)
1234     silent=yes ;;
1235
1236   -runstatedir | --runstatedir | --runstatedi | --runstated \
1237   | --runstate | --runstat | --runsta | --runst | --runs \
1238   | --run | --ru | --r)
1239     ac_prev=runstatedir ;;
1240   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1241   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1242   | --run=* | --ru=* | --r=*)
1243     runstatedir=$ac_optarg ;;
1244
1245   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246     ac_prev=sbindir ;;
1247   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248   | --sbi=* | --sb=*)
1249     sbindir=$ac_optarg ;;
1250
1251   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253   | --sharedst | --shareds | --shared | --share | --shar \
1254   | --sha | --sh)
1255     ac_prev=sharedstatedir ;;
1256   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259   | --sha=* | --sh=*)
1260     sharedstatedir=$ac_optarg ;;
1261
1262   -site | --site | --sit)
1263     ac_prev=site ;;
1264   -site=* | --site=* | --sit=*)
1265     site=$ac_optarg ;;
1266
1267   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268     ac_prev=srcdir ;;
1269   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270     srcdir=$ac_optarg ;;
1271
1272   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273   | --syscon | --sysco | --sysc | --sys | --sy)
1274     ac_prev=sysconfdir ;;
1275   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277     sysconfdir=$ac_optarg ;;
1278
1279   -target | --target | --targe | --targ | --tar | --ta | --t)
1280     ac_prev=target_alias ;;
1281   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282     target_alias=$ac_optarg ;;
1283
1284   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285     verbose=yes ;;
1286
1287   -version | --version | --versio | --versi | --vers | -V)
1288     ac_init_version=: ;;
1289
1290   -with-* | --with-*)
1291     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294       as_fn_error $? "invalid package name: $ac_useropt"
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=\$ac_optarg ;;
1305
1306   -without-* | --without-*)
1307     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310       as_fn_error $? "invalid package name: $ac_useropt"
1311     ac_useropt_orig=$ac_useropt
1312     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313     case $ac_user_opts in
1314       *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318          ac_unrecognized_sep=', ';;
1319     esac
1320     eval with_$ac_useropt=no ;;
1321
1322   --x)
1323     # Obsolete; use --with-x.
1324     with_x=yes ;;
1325
1326   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327   | --x-incl | --x-inc | --x-in | --x-i)
1328     ac_prev=x_includes ;;
1329   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331     x_includes=$ac_optarg ;;
1332
1333   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335     ac_prev=x_libraries ;;
1336   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338     x_libraries=$ac_optarg ;;
1339
1340   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information"
1342     ;;
1343
1344   *=*)
1345     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346     # Reject names that are not valid shell variable names.
1347     case $ac_envvar in #(
1348       '' | [0-9]* | *[!_$as_cr_alnum]* )
1349       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1350     esac
1351     eval $ac_envvar=\$ac_optarg
1352     export $ac_envvar ;;
1353
1354   *)
1355     # FIXME: should be removed in autoconf 3.0.
1356     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1360     ;;
1361
1362   esac
1363 done
1364
1365 if test -n "$ac_prev"; then
1366   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367   as_fn_error $? "missing argument to $ac_option"
1368 fi
1369
1370 if test -n "$ac_unrecognized_opts"; then
1371   case $enable_option_checking in
1372     no) ;;
1373     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1374     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375   esac
1376 fi
1377
1378 # Check all directory arguments for consistency.
1379 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380                 datadir sysconfdir sharedstatedir localstatedir includedir \
1381                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382                 libdir localedir mandir runstatedir
1383 do
1384   eval ac_val=\$$ac_var
1385   # Remove trailing slashes.
1386   case $ac_val in
1387     */ )
1388       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389       eval $ac_var=\$ac_val;;
1390   esac
1391   # Be sure to have absolute directory names.
1392   case $ac_val in
1393     [\\/$]* | ?:[\\/]* )  continue;;
1394     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395   esac
1396   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1398
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1405
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408   if test "x$build_alias" = x; then
1409     cross_compiling=maybe
1410   elif test "x$build_alias" != "x$host_alias"; then
1411     cross_compiling=yes
1412   fi
1413 fi
1414
1415 ac_tool_prefix=
1416 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418 test "$silent" = yes && exec 6>/dev/null
1419
1420
1421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di=`ls -di .` &&
1423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424   as_fn_error $? "working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426   as_fn_error $? "pwd does not report name of working directory"
1427
1428
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431   ac_srcdir_defaulted=yes
1432   # Try the directory containing this script, then the parent directory.
1433   ac_confdir=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435          X"$as_myself" : 'X\(//\)[^/]' \| \
1436          X"$as_myself" : 'X\(//\)$' \| \
1437          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440             s//\1/
1441             q
1442           }
1443           /^X\(\/\/\)[^/].*/{
1444             s//\1/
1445             q
1446           }
1447           /^X\(\/\/\)$/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\).*/{
1452             s//\1/
1453             q
1454           }
1455           s/.*/./; q'`
1456   srcdir=$ac_confdir
1457   if test ! -r "$srcdir/$ac_unique_file"; then
1458     srcdir=..
1459   fi
1460 else
1461   ac_srcdir_defaulted=no
1462 fi
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1465   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1466 fi
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 ac_abs_confdir=`(
1469         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1470         pwd)`
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473   srcdir=.
1474 fi
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1478 case $srcdir in
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 esac
1481 for ac_var in $ac_precious_vars; do
1482   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483   eval ac_env_${ac_var}_value=\$${ac_var}
1484   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 done
1487
1488 #
1489 # Report the --help message.
1490 #
1491 if test "$ac_init_help" = "long"; then
1492   # Omit some internal or obsolete options to make the list less imposing.
1493   # This message is too long to be a string in the A/UX 3.1 sh.
1494   cat <<_ACEOF
1495 \`configure' configures this package to adapt to many kinds of systems.
1496
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE.  See below for descriptions of some of the useful variables.
1501
1502 Defaults for the options are specified in brackets.
1503
1504 Configuration:
1505   -h, --help              display this help and exit
1506       --help=short        display options specific to this package
1507       --help=recursive    display the short help of all the included packages
1508   -V, --version           display version information and exit
1509   -q, --quiet, --silent   do not print \`checking ...' messages
1510       --cache-file=FILE   cache test results in FILE [disabled]
1511   -C, --config-cache      alias for \`--cache-file=config.cache'
1512   -n, --no-create         do not create output files
1513       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1514
1515 Installation directories:
1516   --prefix=PREFIX         install architecture-independent files in PREFIX
1517                           [$ac_default_prefix]
1518   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1519                           [PREFIX]
1520
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1525
1526 For better control, use the options below.
1527
1528 Fine tuning of the installation directories:
1529   --bindir=DIR            user executables [EPREFIX/bin]
1530   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1531   --libexecdir=DIR        program executables [EPREFIX/libexec]
1532   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1533   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1534   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1535   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1536   --libdir=DIR            object code libraries [EPREFIX/lib]
1537   --includedir=DIR        C header files [PREFIX/include]
1538   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1539   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1540   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1541   --infodir=DIR           info documentation [DATAROOTDIR/info]
1542   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1543   --mandir=DIR            man documentation [DATAROOTDIR/man]
1544   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1545   --htmldir=DIR           html documentation [DOCDIR]
1546   --dvidir=DIR            dvi documentation [DOCDIR]
1547   --pdfdir=DIR            pdf documentation [DOCDIR]
1548   --psdir=DIR             ps documentation [DOCDIR]
1549 _ACEOF
1550
1551   cat <<\_ACEOF
1552
1553 System types:
1554   --build=BUILD     configure for building on BUILD [guessed]
1555   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1557 fi
1558
1559 if test -n "$ac_init_help"; then
1560
1561   cat <<\_ACEOF
1562
1563 Optional Features:
1564   --disable-option-checking  ignore unrecognized --enable/--with options
1565   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1566   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1567   --enable-maintainer-mode enable makefile rules useful for maintainers
1568   --enable-symlink-install use symlinks when installing instead of hard links
1569   --enable-relative-symlinks use relative symlinks when installing
1570
1571   --enable-symlink-build  use symlinks while building instead of hard links
1572   --enable-verbose-makecmds enable verbose make command output
1573   --enable-elf-shlibs     select ELF shared libraries
1574   --enable-bsd-shlibs     select BSD shared libraries
1575   --enable-profile        build profiling libraries
1576   --enable-gcov           build for coverage testing using gcov
1577   --enable-hardening              build for coverage testing using gcov
1578   --enable-jbd-debug      enable journal debugging
1579   --enable-blkid-debug    enable blkid debugging
1580   --disable-testio-debug  disable the use of the test I/O manager for debugging
1581   --enable-libuuid        build and use private uuid library
1582   --enable-libblkid       build and use private blkid library
1583   --disable-backtrace     disable use backtrace
1584   --disable-debugfs       disable support of debugfs program
1585   --disable-imager        disable support of e2image program
1586   --disable-resizer       disable support of e2resize program
1587   --disable-defrag        disable support of e4defrag program
1588   --enable-fsck           build fsck wrapper program
1589   --enable-e2initrd-helper build e2initrd-helper program
1590   --disable-tls           disable use of thread local support
1591   --disable-uuidd         disable building the uuid daemon
1592   --disable-mmp           disable support mmp, Multi Mount Protection
1593   --disable-tdb           disable tdb support
1594   --disable-bmap-stats    disable collection of bitmap stats.
1595   --enable-bmap-stats-ops enable collection of additional bitmap stats
1596   --disable-nls           do not use Native Language Support
1597   --enable-threads={posix|solaris|pth|windows}
1598                           specify multithreading API
1599   --disable-threads       build without multithread safety
1600   --disable-rpath         do not hardcode runtime library paths
1601   --disable-fuse2fs       do not build fuse2fs
1602   --enable-lto            enable link time optimization
1603   --enable-ubsan          enable undefined behavior sanitizer
1604   --enable-addrsan        enable address sanitizer
1605   --enable-threadsan      enable thread sanitizer
1606
1607 Optional Packages:
1608   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1609   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1610   --with-diet-libc        use diet libc
1611   --with-cc               no longer supported, use CC= instead
1612   --with-ccopts           no longer supported, use CFLAGS= instead
1613   --with-ldopts           no longer supported, use LDFLAGS= instead
1614   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1615   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1617   --without-libpth-prefix     don't search for libpth in includedir and libdir
1618   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1619   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1620   --with-included-gettext use the GNU gettext library included here
1621   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1622   --without-libintl-prefix     don't search for libintl in includedir and libdir
1623   --with-multiarch=ARCH specify the multiarch triplet
1624   --with-udev-rules-dir[=DIR]
1625                           Install udev rules into DIR.
1626   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1627   --with-systemd-unit-dir[=DIR]
1628                           Install systemd system units into DIR.
1629
1630 Some influential environment variables:
1631   CC          C compiler command
1632   CFLAGS      C compiler flags
1633   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1634               nonstandard directory <lib dir>
1635   LIBS        libraries to pass to the linker, e.g. -l<library>
1636   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1637               you have headers in a nonstandard directory <include dir>
1638   CPP         C preprocessor
1639   PKG_CONFIG  path to pkg-config utility
1640   PKG_CONFIG_PATH
1641               directories to add to pkg-config's search path
1642   PKG_CONFIG_LIBDIR
1643               path overriding pkg-config's built-in search path
1644   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1645   udev_LIBS   linker flags for udev, overriding pkg-config
1646   systemd_CFLAGS
1647               C compiler flags for systemd, overriding pkg-config
1648   systemd_LIBS
1649               linker flags for systemd, overriding pkg-config
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to the package provider.
1655 _ACEOF
1656 ac_status=$?
1657 fi
1658
1659 if test "$ac_init_help" = "recursive"; then
1660   # If there are subdirs, report their specific --help.
1661   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662     test -d "$ac_dir" ||
1663       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1664       continue
1665     ac_builddir=.
1666
1667 case "$ac_dir" in
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *)
1670   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671   # A ".." for each directory in $ac_dir_suffix.
1672   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673   case $ac_top_builddir_sub in
1674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676   esac ;;
1677 esac
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1682
1683 case $srcdir in
1684   .)  # We are building in place.
1685     ac_srcdir=.
1686     ac_top_srcdir=$ac_top_builddir_sub
1687     ac_abs_top_srcdir=$ac_pwd ;;
1688   [\\/]* | ?:[\\/]* )  # Absolute name.
1689     ac_srcdir=$srcdir$ac_dir_suffix;
1690     ac_top_srcdir=$srcdir
1691     ac_abs_top_srcdir=$srcdir ;;
1692   *) # Relative name.
1693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694     ac_top_srcdir=$ac_top_build_prefix$srcdir
1695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 esac
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698
1699     cd "$ac_dir" || { ac_status=$?; continue; }
1700     # Check for guested configure.
1701     if test -f "$ac_srcdir/configure.gnu"; then
1702       echo &&
1703       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704     elif test -f "$ac_srcdir/configure"; then
1705       echo &&
1706       $SHELL "$ac_srcdir/configure" --help=recursive
1707     else
1708       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709     fi || ac_status=$?
1710     cd "$ac_pwd" || { ac_status=$?; break; }
1711   done
1712 fi
1713
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1716   cat <<\_ACEOF
1717 configure
1718 generated by GNU Autoconf 2.69
1719
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1723 _ACEOF
1724   exit
1725 fi
1726
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1730
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   rm -f conftest.$ac_objext
1738   if { { ac_try="$ac_compile"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_compile") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } && {
1754          test -z "$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        } && test -s conftest.$ac_objext; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762         ac_retval=1
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_compile
1768
1769 # ac_fn_c_try_link LINENO
1770 # -----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_link ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   rm -f conftest.$ac_objext conftest$ac_exeext
1776   if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_link") 2>conftest.err
1784   ac_status=$?
1785   if test -s conftest.err; then
1786     grep -v '^ *+' conftest.err >conftest.er1
1787     cat conftest.er1 >&5
1788     mv -f conftest.er1 conftest.err
1789   fi
1790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791   test $ac_status = 0; } && {
1792          test -z "$ac_c_werror_flag" ||
1793          test ! -s conftest.err
1794        } && test -s conftest$ac_exeext && {
1795          test "$cross_compiling" = yes ||
1796          test -x conftest$ac_exeext
1797        }; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803         ac_retval=1
1804 fi
1805   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807   # interfere with the next link command; also delete a directory that is
1808   # left behind by Apple's compiler.  We do this before executing the actions.
1809   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811   as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_link
1814
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829   ac_status=$?
1830   if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834   fi
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } > conftest.i && {
1837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838          test ! -s conftest.err
1839        }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845     ac_retval=1
1846 fi
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848   as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_cpp
1851
1852 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1855 # the include files in INCLUDES and setting the cache variable VAR
1856 # accordingly.
1857 ac_fn_c_check_header_mongrel ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   if eval \${$3+:} false; then :
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 fi
1866 eval ac_res=\$$3
1867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 else
1870   # Is the header compilable?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1872 $as_echo_n "checking $2 usability... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 $4
1876 #include <$2>
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879   ac_header_compiler=yes
1880 else
1881   ac_header_compiler=no
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1885 $as_echo "$ac_header_compiler" >&6; }
1886
1887 # Is the header present?
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1889 $as_echo_n "checking $2 presence... " >&6; }
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 #include <$2>
1893 _ACEOF
1894 if ac_fn_c_try_cpp "$LINENO"; then :
1895   ac_header_preproc=yes
1896 else
1897   ac_header_preproc=no
1898 fi
1899 rm -f conftest.err conftest.i conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1901 $as_echo "$ac_header_preproc" >&6; }
1902
1903 # So?  What about this header?
1904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1905   yes:no: )
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1907 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910     ;;
1911   no:yes:* )
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1913 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1915 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1917 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1919 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1921 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1922     ;;
1923 esac
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   eval "$3=\$ac_header_compiler"
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 fi
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_header_mongrel
1938
1939 # ac_fn_c_try_run LINENO
1940 # ----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1942 # that executables *can* be run.
1943 ac_fn_c_try_run ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_link") 2>&5
1954   ac_status=$?
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1957   { { case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_try") 2>&5
1964   ac_status=$?
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; }; }; then :
1967   ac_retval=0
1968 else
1969   $as_echo "$as_me: program exited with status $ac_status" >&5
1970        $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973        ac_retval=$ac_status
1974 fi
1975   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977   as_fn_set_status $ac_retval
1978
1979 } # ac_fn_c_try_run
1980
1981 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists and can be compiled using the include files in
1984 # INCLUDES, setting the cache variable VAR accordingly.
1985 ac_fn_c_check_header_compile ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991   $as_echo_n "(cached) " >&6
1992 else
1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   eval "$3=yes"
2000 else
2001   eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_header_compile
2011
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2017 {
2018   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022   $as_echo_n "(cached) " >&6
2023 else
2024   eval "$3=no"
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof ($2))
2032          return 0;
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof (($2)))
2045             return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051
2052 else
2053   eval "$3=yes"
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 eval ac_res=\$$3
2060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063
2064 } # ac_fn_c_check_type
2065
2066 # ac_fn_c_check_func LINENO FUNC VAR
2067 # ----------------------------------
2068 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2069 ac_fn_c_check_func ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075   $as_echo_n "(cached) " >&6
2076 else
2077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2081 #define $2 innocuous_$2
2082
2083 /* System header to define __stub macros and hopefully few prototypes,
2084     which can conflict with char $2 (); below.
2085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086     <limits.h> exists even on freestanding compilers.  */
2087
2088 #ifdef __STDC__
2089 # include <limits.h>
2090 #else
2091 # include <assert.h>
2092 #endif
2093
2094 #undef $2
2095
2096 /* Override any GCC internal prototype to avoid an error.
2097    Use char because int might match the return type of a GCC
2098    builtin and then its argument prototype would still apply.  */
2099 #ifdef __cplusplus
2100 extern "C"
2101 #endif
2102 char $2 ();
2103 /* The GNU C library defines this for functions which it implements
2104     to always fail with ENOSYS.  Some functions are actually named
2105     something starting with __ and the normal name is an alias.  */
2106 #if defined __stub_$2 || defined __stub___$2
2107 choke me
2108 #endif
2109
2110 int
2111 main ()
2112 {
2113 return $2 ();
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_link "$LINENO"; then :
2119   eval "$3=yes"
2120 else
2121   eval "$3=no"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext \
2124     conftest$ac_exeext conftest.$ac_ext
2125 fi
2126 eval ac_res=\$$3
2127                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131 } # ac_fn_c_check_func
2132
2133 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2134 # ---------------------------------------------
2135 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2136 # accordingly.
2137 ac_fn_c_check_decl ()
2138 {
2139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140   as_decl_name=`echo $2|sed 's/ *(.*//'`
2141   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144 if eval \${$3+:} false; then :
2145   $as_echo_n "(cached) " >&6
2146 else
2147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 int
2151 main ()
2152 {
2153 #ifndef $as_decl_name
2154 #ifdef __cplusplus
2155   (void) $as_decl_use;
2156 #else
2157   (void) $as_decl_name;
2158 #endif
2159 #endif
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166   eval "$3=yes"
2167 else
2168   eval "$3=no"
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 eval ac_res=\$$3
2173                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176
2177 } # ac_fn_c_check_decl
2178
2179 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2180 # --------------------------------------------
2181 # Tries to find the compile-time value of EXPR in a program that includes
2182 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2183 # computed
2184 ac_fn_c_compute_int ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   if test "$cross_compiling" = yes; then
2188     # Depending upon the size, compute the lo and hi bounds.
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h.  */
2191 $4
2192 int
2193 main ()
2194 {
2195 static int test_array [1 - 2 * !(($2) >= 0)];
2196 test_array [0] = 0;
2197 return test_array [0];
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   ac_lo=0 ac_mid=0
2205   while :; do
2206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $4
2209 int
2210 main ()
2211 {
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 test_array [0] = 0;
2214 return test_array [0];
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_hi=$ac_mid; break
2222 else
2223   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2224                         if test $ac_lo -le $ac_mid; then
2225                           ac_lo= ac_hi=
2226                           break
2227                         fi
2228                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231   done
2232 else
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 static int test_array [1 - 2 * !(($2) < 0)];
2240 test_array [0] = 0;
2241 return test_array [0];
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   ac_hi=-1 ac_mid=-1
2249   while :; do
2250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 int
2254 main ()
2255 {
2256 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2257 test_array [0] = 0;
2258 return test_array [0];
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   ac_lo=$ac_mid; break
2266 else
2267   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2268                         if test $ac_mid -le $ac_hi; then
2269                           ac_lo= ac_hi=
2270                           break
2271                         fi
2272                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275   done
2276 else
2277   ac_lo= ac_hi=
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 # Binary search between lo and hi bounds.
2283 while test "x$ac_lo" != "x$ac_hi"; do
2284   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 test_array [0] = 0;
2293 return test_array [0];
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   ac_hi=$ac_mid
2301 else
2302   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 case $ac_lo in #((
2307 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2308 '') ac_retval=1 ;;
2309 esac
2310   else
2311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 static long int longval () { return $2; }
2315 static unsigned long int ulongval () { return $2; }
2316 #include <stdio.h>
2317 #include <stdlib.h>
2318 int
2319 main ()
2320 {
2321
2322   FILE *f = fopen ("conftest.val", "w");
2323   if (! f)
2324     return 1;
2325   if (($2) < 0)
2326     {
2327       long int i = longval ();
2328       if (i != ($2))
2329         return 1;
2330       fprintf (f, "%ld", i);
2331     }
2332   else
2333     {
2334       unsigned long int i = ulongval ();
2335       if (i != ($2))
2336         return 1;
2337       fprintf (f, "%lu", i);
2338     }
2339   /* Do not output a trailing newline, as this causes \r\n confusion
2340      on some platforms.  */
2341   return ferror (f) || fclose (f) != 0;
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_run "$LINENO"; then :
2348   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2349 else
2350   ac_retval=1
2351 fi
2352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2353   conftest.$ac_objext conftest.beam conftest.$ac_ext
2354 rm -f conftest.val
2355
2356   fi
2357   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2358   as_fn_set_status $ac_retval
2359
2360 } # ac_fn_c_compute_int
2361
2362 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2363 # ----------------------------------------------------
2364 # Tries to find if the field MEMBER exists in type AGGR, after including
2365 # INCLUDES, setting cache variable VAR accordingly.
2366 ac_fn_c_check_member ()
2367 {
2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2370 $as_echo_n "checking for $2.$3... " >&6; }
2371 if eval \${$4+:} false; then :
2372   $as_echo_n "(cached) " >&6
2373 else
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $5
2377 int
2378 main ()
2379 {
2380 static $2 ac_aggr;
2381 if (ac_aggr.$3)
2382 return 0;
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388   eval "$4=yes"
2389 else
2390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $5
2393 int
2394 main ()
2395 {
2396 static $2 ac_aggr;
2397 if (sizeof ac_aggr.$3)
2398 return 0;
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 if ac_fn_c_try_compile "$LINENO"; then :
2404   eval "$4=yes"
2405 else
2406   eval "$4=no"
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 eval ac_res=\$$4
2413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417 } # ac_fn_c_check_member
2418 cat >config.log <<_ACEOF
2419 This file contains any messages produced by compilers while
2420 running configure, to aid debugging if configure makes a mistake.
2421
2422 It was created by $as_me, which was
2423 generated by GNU Autoconf 2.69.  Invocation command line was
2424
2425   $ $0 $@
2426
2427 _ACEOF
2428 exec 5>>config.log
2429 {
2430 cat <<_ASUNAME
2431 ## --------- ##
2432 ## Platform. ##
2433 ## --------- ##
2434
2435 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2440
2441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2443
2444 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2445 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2446 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2448 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2449 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2450 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2451
2452 _ASUNAME
2453
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459     $as_echo "PATH: $as_dir"
2460   done
2461 IFS=$as_save_IFS
2462
2463 } >&5
2464
2465 cat >&5 <<_ACEOF
2466
2467
2468 ## ----------- ##
2469 ## Core tests. ##
2470 ## ----------- ##
2471
2472 _ACEOF
2473
2474
2475 # Keep a trace of the command line.
2476 # Strip out --no-create and --no-recursion so they do not pile up.
2477 # Strip out --silent because we don't want to record it for future runs.
2478 # Also quote any args containing shell meta-characters.
2479 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_configure_args=
2481 ac_configure_args0=
2482 ac_configure_args1=
2483 ac_must_keep_next=false
2484 for ac_pass in 1 2
2485 do
2486   for ac_arg
2487   do
2488     case $ac_arg in
2489     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491     | -silent | --silent | --silen | --sile | --sil)
2492       continue ;;
2493     *\'*)
2494       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2495     esac
2496     case $ac_pass in
2497     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2498     2)
2499       as_fn_append ac_configure_args1 " '$ac_arg'"
2500       if test $ac_must_keep_next = true; then
2501         ac_must_keep_next=false # Got value, back to normal.
2502       else
2503         case $ac_arg in
2504           *=* | --config-cache | -C | -disable-* | --disable-* \
2505           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507           | -with-* | --with-* | -without-* | --without-* | --x)
2508             case "$ac_configure_args0 " in
2509               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510             esac
2511             ;;
2512           -* ) ac_must_keep_next=true ;;
2513         esac
2514       fi
2515       as_fn_append ac_configure_args " '$ac_arg'"
2516       ;;
2517     esac
2518   done
2519 done
2520 { ac_configure_args0=; unset ac_configure_args0;}
2521 { ac_configure_args1=; unset ac_configure_args1;}
2522
2523 # When interrupted or exit'd, cleanup temporary files, and complete
2524 # config.log.  We remove comments because anyway the quotes in there
2525 # would cause problems or look ugly.
2526 # WARNING: Use '\'' to represent an apostrophe within the trap.
2527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528 trap 'exit_status=$?
2529   # Save into config.log some information that might help in debugging.
2530   {
2531     echo
2532
2533     $as_echo "## ---------------- ##
2534 ## Cache variables. ##
2535 ## ---------------- ##"
2536     echo
2537     # The following way of writing the cache mishandles newlines in values,
2538 (
2539   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540     eval ac_val=\$$ac_var
2541     case $ac_val in #(
2542     *${as_nl}*)
2543       case $ac_var in #(
2544       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546       esac
2547       case $ac_var in #(
2548       _ | IFS | as_nl) ;; #(
2549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550       *) { eval $ac_var=; unset $ac_var;} ;;
2551       esac ;;
2552     esac
2553   done
2554   (set) 2>&1 |
2555     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556     *${as_nl}ac_space=\ *)
2557       sed -n \
2558         "s/'\''/'\''\\\\'\'''\''/g;
2559           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560       ;; #(
2561     *)
2562       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563       ;;
2564     esac |
2565     sort
2566 )
2567     echo
2568
2569     $as_echo "## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##"
2572     echo
2573     for ac_var in $ac_subst_vars
2574     do
2575       eval ac_val=\$$ac_var
2576       case $ac_val in
2577       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578       esac
2579       $as_echo "$ac_var='\''$ac_val'\''"
2580     done | sort
2581     echo
2582
2583     if test -n "$ac_subst_files"; then
2584       $as_echo "## ------------------- ##
2585 ## File substitutions. ##
2586 ## ------------------- ##"
2587       echo
2588       for ac_var in $ac_subst_files
2589       do
2590         eval ac_val=\$$ac_var
2591         case $ac_val in
2592         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593         esac
2594         $as_echo "$ac_var='\''$ac_val'\''"
2595       done | sort
2596       echo
2597     fi
2598
2599     if test -s confdefs.h; then
2600       $as_echo "## ----------- ##
2601 ## confdefs.h. ##
2602 ## ----------- ##"
2603       echo
2604       cat confdefs.h
2605       echo
2606     fi
2607     test "$ac_signal" != 0 &&
2608       $as_echo "$as_me: caught signal $ac_signal"
2609     $as_echo "$as_me: exit $exit_status"
2610   } >&5
2611   rm -f core *.core core.conftest.* &&
2612     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2613     exit $exit_status
2614 ' 0
2615 for ac_signal in 1 2 13 15; do
2616   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617 done
2618 ac_signal=0
2619
2620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2621 rm -f -r conftest* confdefs.h
2622
2623 $as_echo "/* confdefs.h */" > confdefs.h
2624
2625 # Predefined preprocessor variables.
2626
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_NAME "$PACKAGE_NAME"
2629 _ACEOF
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633 _ACEOF
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2637 _ACEOF
2638
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_STRING "$PACKAGE_STRING"
2641 _ACEOF
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645 _ACEOF
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_URL "$PACKAGE_URL"
2649 _ACEOF
2650
2651
2652 # Let the site file select an alternate cache file if it wants to.
2653 # Prefer an explicitly selected file to automatically selected ones.
2654 ac_site_file1=NONE
2655 ac_site_file2=NONE
2656 if test -n "$CONFIG_SITE"; then
2657   # We do not want a PATH search for config.site.
2658   case $CONFIG_SITE in #((
2659     -*)  ac_site_file1=./$CONFIG_SITE;;
2660     */*) ac_site_file1=$CONFIG_SITE;;
2661     *)   ac_site_file1=./$CONFIG_SITE;;
2662   esac
2663 elif test "x$prefix" != xNONE; then
2664   ac_site_file1=$prefix/share/config.site
2665   ac_site_file2=$prefix/etc/config.site
2666 else
2667   ac_site_file1=$ac_default_prefix/share/config.site
2668   ac_site_file2=$ac_default_prefix/etc/config.site
2669 fi
2670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2671 do
2672   test "x$ac_site_file" = xNONE && continue
2673   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676     sed 's/^/| /' "$ac_site_file" >&5
2677     . "$ac_site_file" \
2678       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 as_fn_error $? "failed to load site script $ac_site_file
2681 See \`config.log' for more details" "$LINENO" 5; }
2682   fi
2683 done
2684
2685 if test -r "$cache_file"; then
2686   # Some versions of bash will fail to source /dev/null (special files
2687   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2688   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690 $as_echo "$as_me: loading cache $cache_file" >&6;}
2691     case $cache_file in
2692       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693       *)                      . "./$cache_file";;
2694     esac
2695   fi
2696 else
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698 $as_echo "$as_me: creating cache $cache_file" >&6;}
2699   >$cache_file
2700 fi
2701
2702 gt_needs="$gt_needs "
2703 as_fn_append ac_header_list " stdlib.h"
2704 as_fn_append ac_header_list " unistd.h"
2705 as_fn_append ac_header_list " sys/param.h"
2706 as_fn_append ac_func_list " symlink"
2707 # Check that the precious variables saved in the cache have kept the same
2708 # value.
2709 ac_cache_corrupted=false
2710 for ac_var in $ac_precious_vars; do
2711   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2712   eval ac_new_set=\$ac_env_${ac_var}_set
2713   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2714   eval ac_new_val=\$ac_env_${ac_var}_value
2715   case $ac_old_set,$ac_new_set in
2716     set,)
2717       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2718 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2719       ac_cache_corrupted=: ;;
2720     ,set)
2721       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2722 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2723       ac_cache_corrupted=: ;;
2724     ,);;
2725     *)
2726       if test "x$ac_old_val" != "x$ac_new_val"; then
2727         # differences in whitespace do not lead to failure.
2728         ac_old_val_w=`echo x $ac_old_val`
2729         ac_new_val_w=`echo x $ac_new_val`
2730         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2731           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2732 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2733           ac_cache_corrupted=:
2734         else
2735           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2736 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2737           eval $ac_var=\$ac_old_val
2738         fi
2739         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2740 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2741         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2742 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2743       fi;;
2744   esac
2745   # Pass precious variables to config.status.
2746   if test "$ac_new_set" = set; then
2747     case $ac_new_val in
2748     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2749     *) ac_arg=$ac_var=$ac_new_val ;;
2750     esac
2751     case " $ac_configure_args " in
2752       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2753       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2754     esac
2755   fi
2756 done
2757 if $ac_cache_corrupted; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2761 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2762   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2763 fi
2764 ## -------------------- ##
2765 ## Main body of script. ##
2766 ## -------------------- ##
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774
2775
2776 ac_aux_dir=
2777 for ac_dir in config "$srcdir"/config; do
2778   if test -f "$ac_dir/install-sh"; then
2779     ac_aux_dir=$ac_dir
2780     ac_install_sh="$ac_aux_dir/install-sh -c"
2781     break
2782   elif test -f "$ac_dir/install.sh"; then
2783     ac_aux_dir=$ac_dir
2784     ac_install_sh="$ac_aux_dir/install.sh -c"
2785     break
2786   elif test -f "$ac_dir/shtool"; then
2787     ac_aux_dir=$ac_dir
2788     ac_install_sh="$ac_aux_dir/shtool install -c"
2789     break
2790   fi
2791 done
2792 if test -z "$ac_aux_dir"; then
2793   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2794 fi
2795
2796 # These three variables are undocumented and unsupported,
2797 # and are intended to be withdrawn in a future Autoconf release.
2798 # They can cause serious problems if a builder's source tree is in a directory
2799 # whose full name contains unusual characters.
2800 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2801 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2802 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2803
2804
2805 ac_config_headers="$ac_config_headers lib/config.h"
2806
2807
2808 MCONFIG=./MCONFIG
2809
2810 BINARY_TYPE=bin
2811 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2812         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2813 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2814         | tr \" " " | awk '{print $1}'`
2815 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2816 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2817 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2818
2819 if expr $YEAR ">" 1900 > /dev/null ; then
2820         E2FSPROGS_YEAR=$YEAR
2821 elif expr $YEAR ">" 90 >/dev/null ; then
2822         E2FSPROGS_YEAR=19$YEAR
2823 else
2824         E2FSPROGS_YEAR=20$YEAR
2825 fi
2826
2827 case $MONTH in
2828 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2829 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2830 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2831 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2832 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2833 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2834 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2835 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2836 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2837 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2838 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2839 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2840 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2841 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2842 esac
2843
2844 base_ver=`echo $E2FSPROGS_VERSION | \
2845                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2846
2847 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2848
2849 case $E2FSPROGS_VERSION in
2850 *-WIP|pre-*)
2851         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2852         ;;
2853 *)
2854         E2FSPROGS_PKGVER="$base_ver"
2855         ;;
2856 esac
2857
2858 unset DATE MONTH YEAR base_ver pre_vers date_spec
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2860 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2862 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2863
2864
2865
2866
2867
2868
2869 WITH_DIET_LIBC=
2870
2871 # Check whether --with-diet-libc was given.
2872 if test "${with_diet_libc+set}" = set; then :
2873   withval=$with_diet_libc; CC="diet cc -nostdinc"
2874 WITH_DIET_LIBC=yes
2875 if test -z "$LIBS"
2876 then
2877         LIBS="-lcompat"
2878 else
2879         LIBS="$LIBS -lcompat"
2880 fi
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2882 $as_echo "CC=$CC" >&6; }
2883 fi
2884 # Make sure we can run config.sub.
2885 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2886   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2889 $as_echo_n "checking build system type... " >&6; }
2890 if ${ac_cv_build+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   ac_build_alias=$build_alias
2894 test "x$ac_build_alias" = x &&
2895   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2896 test "x$ac_build_alias" = x &&
2897   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2898 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2899   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2900
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2903 $as_echo "$ac_cv_build" >&6; }
2904 case $ac_cv_build in
2905 *-*-*) ;;
2906 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2907 esac
2908 build=$ac_cv_build
2909 ac_save_IFS=$IFS; IFS='-'
2910 set x $ac_cv_build
2911 shift
2912 build_cpu=$1
2913 build_vendor=$2
2914 shift; shift
2915 # Remember, the first character of IFS is used to create $*,
2916 # except with old shells:
2917 build_os=$*
2918 IFS=$ac_save_IFS
2919 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2920
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2923 $as_echo_n "checking host system type... " >&6; }
2924 if ${ac_cv_host+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test "x$host_alias" = x; then
2928   ac_cv_host=$ac_cv_build
2929 else
2930   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2931     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2932 fi
2933
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2936 $as_echo "$ac_cv_host" >&6; }
2937 case $ac_cv_host in
2938 *-*-*) ;;
2939 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2940 esac
2941 host=$ac_cv_host
2942 ac_save_IFS=$IFS; IFS='-'
2943 set x $ac_cv_host
2944 shift
2945 host_cpu=$1
2946 host_vendor=$2
2947 shift; shift
2948 # Remember, the first character of IFS is used to create $*,
2949 # except with old shells:
2950 host_os=$*
2951 IFS=$ac_save_IFS
2952 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2953
2954
2955 DLOPEN_LIB=''
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 if test -z "$ac_cv_prog_CC"; then
3001   ac_ct_CC=$CC
3002   # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$ac_ct_CC"; then
3010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019     ac_cv_prog_ac_ct_CC="gcc"
3020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024   done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038   if test "x$ac_ct_CC" = x; then
3039     CC=""
3040   else
3041     case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047     CC=$ac_ct_CC
3048   fi
3049 else
3050   CC="$ac_cv_prog_CC"
3051 fi
3052
3053 if test -z "$CC"; then
3054           if test -n "$ac_tool_prefix"; then
3055     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072     ac_cv_prog_CC="${ac_tool_prefix}cc"
3073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092   fi
3093 fi
3094 if test -z "$CC"; then
3095   # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105   ac_prog_rejected=no
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_exec_ext in '' $ac_executable_extensions; do
3112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114        ac_prog_rejected=yes
3115        continue
3116      fi
3117     ac_cv_prog_CC="cc"
3118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122   done
3123 IFS=$as_save_IFS
3124
3125 if test $ac_prog_rejected = yes; then
3126   # We found a bogon in the path, so make sure we never use it.
3127   set dummy $ac_cv_prog_CC
3128   shift
3129   if test $# != 0; then
3130     # We chose a different compiler from the bogus one.
3131     # However, it has the same basename, so the bogon will be chosen
3132     # first if we set CC to just the basename; use the full file name.
3133     shift
3134     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3135   fi
3136 fi
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$CC"; then
3151   if test -n "$ac_tool_prefix"; then
3152   for ac_prog in cl.exe
3153   do
3154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$CC"; then
3162   ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191     test -n "$CC" && break
3192   done
3193 fi
3194 if test -z "$CC"; then
3195   ac_ct_CC=$CC
3196   for ac_prog in cl.exe
3197 do
3198   # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   if test -n "$ac_ct_CC"; then
3206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213     for ac_exec_ext in '' $ac_executable_extensions; do
3214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215     ac_cv_prog_ac_ct_CC="$ac_prog"
3216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218   fi
3219 done
3220   done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235   test -n "$ac_ct_CC" && break
3236 done
3237
3238   if test "x$ac_ct_CC" = x; then
3239     CC=""
3240   else
3241     case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247     CC=$ac_ct_CC
3248   fi
3249 fi
3250
3251 fi
3252
3253
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details" "$LINENO" 5; }
3258
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 set X $ac_compile
3262 ac_compiler=$2
3263 for ac_option in --version -v -V -qversion; do
3264   { { ac_try="$ac_compiler $ac_option >&5"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272   ac_status=$?
3273   if test -s conftest.err; then
3274     sed '10a\
3275 ... rest of stderr output deleted ...
3276          10q' conftest.err >conftest.er1
3277     cat conftest.er1 >&5
3278   fi
3279   rm -f conftest.er1 conftest.err
3280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281   test $ac_status = 0; }
3282 done
3283
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306
3307 ac_rmfiles=
3308 for ac_file in $ac_files
3309 do
3310   case $ac_file in
3311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313   esac
3314 done
3315 rm -f $ac_rmfiles
3316
3317 if { { ac_try="$ac_link_default"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324   (eval "$ac_link_default") 2>&5
3325   ac_status=$?
3326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327   test $ac_status = 0; }; then :
3328   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3334 do
3335   test -f "$ac_file" || continue
3336   case $ac_file in
3337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338         ;;
3339     [ab].out )
3340         # We found the default executable, but exeext='' is most
3341         # certainly right.
3342         break;;
3343     *.* )
3344         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345         then :; else
3346            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347         fi
3348         # We set ac_cv_exeext here because the later test for it is not
3349         # safe: cross compilers may not add the suffix if given an `-o'
3350         # argument, so we may need to know it at that point already.
3351         # Even if this section looks crufty: it has the advantage of
3352         # actually working.
3353         break;;
3354     * )
3355         break;;
3356   esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359
3360 else
3361   ac_file=''
3362 fi
3363 if test -z "$ac_file"; then :
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error 77 "C compiler cannot create executables
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375 $as_echo "yes" >&6; }
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378 $as_echo_n "checking for C compiler default output file name... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380 $as_echo "$ac_file" >&6; }
3381 ac_exeext=$ac_cv_exeext
3382
3383 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384 ac_clean_files=$ac_clean_files_save
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { { ac_try="$ac_link"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394   (eval "$ac_link") 2>&5
3395   ac_status=$?
3396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397   test $ac_status = 0; }; then :
3398   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 # `rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403   test -f "$ac_file" || continue
3404   case $ac_file in
3405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407           break;;
3408     * ) break;;
3409   esac
3410 done
3411 else
3412   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 fi
3417 rm -f conftest conftest$ac_cv_exeext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419 $as_echo "$ac_cv_exeext" >&6; }
3420
3421 rm -f conftest.$ac_ext
3422 EXEEXT=$ac_cv_exeext
3423 ac_exeext=$EXEEXT
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h.  */
3426 #include <stdio.h>
3427 int
3428 main ()
3429 {
3430 FILE *f = fopen ("conftest.out", "w");
3431  return ferror (f) || fclose (f) != 0;
3432
3433   ;
3434   return 0;
3435 }
3436 _ACEOF
3437 ac_clean_files="$ac_clean_files conftest.out"
3438 # Check that the compiler produces executables we can run.  If not, either
3439 # the compiler is broken, or we cross compile.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441 $as_echo_n "checking whether we are cross compiling... " >&6; }
3442 if test "$cross_compiling" != yes; then
3443   { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450   (eval "$ac_link") 2>&5
3451   ac_status=$?
3452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453   test $ac_status = 0; }
3454   if { ac_try='./conftest$ac_cv_exeext'
3455   { { case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461   (eval "$ac_try") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464   test $ac_status = 0; }; }; then
3465     cross_compiling=no
3466   else
3467     if test "$cross_compiling" = maybe; then
3468         cross_compiling=yes
3469     else
3470         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details" "$LINENO" 5; }
3475     fi
3476   fi
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479 $as_echo "$cross_compiling" >&6; }
3480
3481 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if ${ac_cv_objext+:} false; then :
3486   $as_echo_n "(cached) " >&6
3487 else
3488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.o conftest.obj
3500 if { { ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507   (eval "$ac_compile") 2>&5
3508   ac_status=$?
3509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510   test $ac_status = 0; }; then :
3511   for ac_file in conftest.o conftest.obj conftest.*; do
3512   test -f "$ac_file" || continue;
3513   case $ac_file in
3514     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516        break;;
3517   esac
3518 done
3519 else
3520   $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 fi
3528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531 $as_echo "$ac_cv_objext" >&6; }
3532 OBJEXT=$ac_cv_objext
3533 ac_objext=$OBJEXT
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536 if ${ac_cv_c_compiler_gnu+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545 #ifndef __GNUC__
3546        choke me
3547 #endif
3548
3549   ;
3550   return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554   ac_compiler_gnu=yes
3555 else
3556   ac_compiler_gnu=no
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564 if test $ac_compiler_gnu = yes; then
3565   GCC=yes
3566 else
3567   GCC=
3568 fi
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3573 if ${ac_cv_prog_cc_g+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   ac_save_c_werror_flag=$ac_c_werror_flag
3577    ac_c_werror_flag=yes
3578    ac_cv_prog_cc_g=no
3579    CFLAGS="-g"
3580    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592   ac_cv_prog_cc_g=yes
3593 else
3594   CFLAGS=""
3595       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h.  */
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607
3608 else
3609   ac_c_werror_flag=$ac_save_c_werror_flag
3610          CFLAGS="-g"
3611          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h.  */
3613
3614 int
3615 main ()
3616 {
3617
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623   ac_cv_prog_cc_g=yes
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633 $as_echo "$ac_cv_prog_cc_g" >&6; }
3634 if test "$ac_test_CFLAGS" = set; then
3635   CFLAGS=$ac_save_CFLAGS
3636 elif test $ac_cv_prog_cc_g = yes; then
3637   if test "$GCC" = yes; then
3638     CFLAGS="-g -O2"
3639   else
3640     CFLAGS="-g"
3641   fi
3642 else
3643   if test "$GCC" = yes; then
3644     CFLAGS="-O2"
3645   else
3646     CFLAGS=
3647   fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651 if ${ac_cv_prog_cc_c89+:} false; then :
3652   $as_echo_n "(cached) " >&6
3653 else
3654   ac_cv_prog_cc_c89=no
3655 ac_save_CC=$CC
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658 #include <stdarg.h>
3659 #include <stdio.h>
3660 struct stat;
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3665      char **p;
3666      int i;
3667 {
3668   return p[i];
3669 }
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3671 {
3672   char *s;
3673   va_list v;
3674   va_start (v,p);
3675   s = g (p, va_arg (v,int));
3676   va_end (v);
3677   return s;
3678 }
3679
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3681    function prototypes and stuff, but not '\xHH' hex character constants.
3682    These don't provoke an error unfortunately, instead are silently treated
3683    as 'x'.  The following induces an error, until -std is added to get
3684    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3685    array size at least.  It's necessary to write '\x00'==0 to get something
3686    that's true only with -std.  */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690    inside strings and character constants.  */
3691 #define FOO(x) 'x'
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 int argc;
3699 char **argv;
3700 int
3701 main ()
3702 {
3703 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711   CC="$ac_save_CC $ac_arg"
3712   if ac_fn_c_try_compile "$LINENO"; then :
3713   ac_cv_prog_cc_c89=$ac_arg
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext
3716   test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 done
3718 rm -f conftest.$ac_ext
3719 CC=$ac_save_CC
3720
3721 fi
3722 # AC_CACHE_VAL
3723 case "x$ac_cv_prog_cc_c89" in
3724   x)
3725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 $as_echo "none needed" >&6; } ;;
3727   xno)
3728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 $as_echo "unsupported" >&6; } ;;
3730   *)
3731     CC="$CC $ac_cv_prog_cc_c89"
3732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 esac
3735 if test "x$ac_cv_prog_cc_c89" != xno; then :
3736
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3747 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3748 if ${ac_cv_lib_dl_dlopen+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   ac_check_lib_save_LIBS=$LIBS
3752 LIBS="-ldl  $LIBS"
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h.  */
3755
3756 /* Override any GCC internal prototype to avoid an error.
3757    Use char because int might match the return type of a GCC
3758    builtin and then its argument prototype would still apply.  */
3759 #ifdef __cplusplus
3760 extern "C"
3761 #endif
3762 char dlopen ();
3763 int
3764 main ()
3765 {
3766 return dlopen ();
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_link "$LINENO"; then :
3772   ac_cv_lib_dl_dlopen=yes
3773 else
3774   ac_cv_lib_dl_dlopen=no
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext \
3777     conftest$ac_exeext conftest.$ac_ext
3778 LIBS=$ac_check_lib_save_LIBS
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3781 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3782 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3783   DLOPEN_LIB=-ldl
3784 fi
3785
3786
3787
3788 # Check whether --with-cc was given.
3789 if test "${with_cc+set}" = set; then :
3790   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3791 fi
3792
3793
3794 # Check whether --with-ccopts was given.
3795 if test "${with_ccopts+set}" = set; then :
3796   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3797 fi
3798
3799
3800 # Check whether --with-ldopts was given.
3801 if test "${with_ldopts+set}" = set; then :
3802   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3803 fi
3804
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 if test -n "$ac_tool_prefix"; then
3811   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_CC+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   if test -n "$CC"; then
3819   ac_cv_prog_CC="$CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824   IFS=$as_save_IFS
3825   test -z "$as_dir" && as_dir=.
3826     for ac_exec_ext in '' $ac_executable_extensions; do
3827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830     break 2
3831   fi
3832 done
3833   done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 fi
3849 if test -z "$ac_cv_prog_CC"; then
3850   ac_ct_CC=$CC
3851   # Extract the first word of "gcc", so it can be a program name with args.
3852 set dummy gcc; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3856   $as_echo_n "(cached) " >&6
3857 else
3858   if test -n "$ac_ct_CC"; then
3859   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868     ac_cv_prog_ac_ct_CC="gcc"
3869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873   done
3874 IFS=$as_save_IFS
3875
3876 fi
3877 fi
3878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3879 if test -n "$ac_ct_CC"; then
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3881 $as_echo "$ac_ct_CC" >&6; }
3882 else
3883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3885 fi
3886
3887   if test "x$ac_ct_CC" = x; then
3888     CC=""
3889   else
3890     case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896     CC=$ac_ct_CC
3897   fi
3898 else
3899   CC="$ac_cv_prog_CC"
3900 fi
3901
3902 if test -z "$CC"; then
3903           if test -n "$ac_tool_prefix"; then
3904     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}cc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_CC+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -n "$CC"; then
3912   ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_exec_ext in '' $ac_executable_extensions; do
3920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921     ac_cv_prog_CC="${ac_tool_prefix}cc"
3922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926   done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941   fi
3942 fi
3943 if test -z "$CC"; then
3944   # Extract the first word of "cc", so it can be a program name with args.
3945 set dummy cc; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_CC+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   if test -n "$CC"; then
3952   ac_cv_prog_CC="$CC" # Let the user override the test.
3953 else
3954   ac_prog_rejected=no
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3963        ac_prog_rejected=yes
3964        continue
3965      fi
3966     ac_cv_prog_CC="cc"
3967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971   done
3972 IFS=$as_save_IFS
3973
3974 if test $ac_prog_rejected = yes; then
3975   # We found a bogon in the path, so make sure we never use it.
3976   set dummy $ac_cv_prog_CC
3977   shift
3978   if test $# != 0; then
3979     # We chose a different compiler from the bogus one.
3980     # However, it has the same basename, so the bogon will be chosen
3981     # first if we set CC to just the basename; use the full file name.
3982     shift
3983     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3984   fi
3985 fi
3986 fi
3987 fi
3988 CC=$ac_cv_prog_CC
3989 if test -n "$CC"; then
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3991 $as_echo "$CC" >&6; }
3992 else
3993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997
3998 fi
3999 if test -z "$CC"; then
4000   if test -n "$ac_tool_prefix"; then
4001   for ac_prog in cl.exe
4002   do
4003     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008   $as_echo_n "(cached) " >&6
4009 else
4010   if test -n "$CC"; then
4011   ac_cv_prog_CC="$CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018     for ac_exec_ext in '' $ac_executable_extensions; do
4019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025   done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039
4040     test -n "$CC" && break
4041   done
4042 fi
4043 if test -z "$CC"; then
4044   ac_ct_CC=$CC
4045   for ac_prog in cl.exe
4046 do
4047   # Extract the first word of "$ac_prog", so it can be a program name with args.
4048 set dummy $ac_prog; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4052   $as_echo_n "(cached) " >&6
4053 else
4054   if test -n "$ac_ct_CC"; then
4055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062     for ac_exec_ext in '' $ac_executable_extensions; do
4063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064     ac_cv_prog_ac_ct_CC="$ac_prog"
4065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066     break 2
4067   fi
4068 done
4069   done
4070 IFS=$as_save_IFS
4071
4072 fi
4073 fi
4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4078 else
4079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082
4083
4084   test -n "$ac_ct_CC" && break
4085 done
4086
4087   if test "x$ac_ct_CC" = x; then
4088     CC=""
4089   else
4090     case $cross_compiling:$ac_tool_warned in
4091 yes:)
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094 ac_tool_warned=yes ;;
4095 esac
4096     CC=$ac_ct_CC
4097   fi
4098 fi
4099
4100 fi
4101
4102
4103 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "no acceptable C compiler found in \$PATH
4106 See \`config.log' for more details" "$LINENO" 5; }
4107
4108 # Provide some information about the compiler.
4109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4110 set X $ac_compile
4111 ac_compiler=$2
4112 for ac_option in --version -v -V -qversion; do
4113   { { ac_try="$ac_compiler $ac_option >&5"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4121   ac_status=$?
4122   if test -s conftest.err; then
4123     sed '10a\
4124 ... rest of stderr output deleted ...
4125          10q' conftest.err >conftest.er1
4126     cat conftest.er1 >&5
4127   fi
4128   rm -f conftest.er1 conftest.err
4129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130   test $ac_status = 0; }
4131 done
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 if ${ac_cv_c_compiler_gnu+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h.  */
4140
4141 int
4142 main ()
4143 {
4144 #ifndef __GNUC__
4145        choke me
4146 #endif
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153   ac_compiler_gnu=yes
4154 else
4155   ac_compiler_gnu=no
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4159
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163 if test $ac_compiler_gnu = yes; then
4164   GCC=yes
4165 else
4166   GCC=
4167 fi
4168 ac_test_CFLAGS=${CFLAGS+set}
4169 ac_save_CFLAGS=$CFLAGS
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4172 if ${ac_cv_prog_cc_g+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   ac_save_c_werror_flag=$ac_c_werror_flag
4176    ac_c_werror_flag=yes
4177    ac_cv_prog_cc_g=no
4178    CFLAGS="-g"
4179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_prog_cc_g=yes
4192 else
4193   CFLAGS=""
4194       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206
4207 else
4208   ac_c_werror_flag=$ac_save_c_werror_flag
4209          CFLAGS="-g"
4210          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222   ac_cv_prog_cc_g=yes
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232 $as_echo "$ac_cv_prog_cc_g" >&6; }
4233 if test "$ac_test_CFLAGS" = set; then
4234   CFLAGS=$ac_save_CFLAGS
4235 elif test $ac_cv_prog_cc_g = yes; then
4236   if test "$GCC" = yes; then
4237     CFLAGS="-g -O2"
4238   else
4239     CFLAGS="-g"
4240   fi
4241 else
4242   if test "$GCC" = yes; then
4243     CFLAGS="-O2"
4244   else
4245     CFLAGS=
4246   fi
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250 if ${ac_cv_prog_cc_c89+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   ac_cv_prog_cc_c89=no
4254 ac_save_CC=$CC
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h.  */
4257 #include <stdarg.h>
4258 #include <stdio.h>
4259 struct stat;
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4264      char **p;
4265      int i;
4266 {
4267   return p[i];
4268 }
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4270 {
4271   char *s;
4272   va_list v;
4273   va_start (v,p);
4274   s = g (p, va_arg (v,int));
4275   va_end (v);
4276   return s;
4277 }
4278
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4280    function prototypes and stuff, but not '\xHH' hex character constants.
4281    These don't provoke an error unfortunately, instead are silently treated
4282    as 'x'.  The following induces an error, until -std is added to get
4283    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4284    array size at least.  It's necessary to write '\x00'==0 to get something
4285    that's true only with -std.  */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4287
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289    inside strings and character constants.  */
4290 #define FOO(x) 'x'
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4292
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4297 int argc;
4298 char **argv;
4299 int
4300 main ()
4301 {
4302 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 do
4310   CC="$ac_save_CC $ac_arg"
4311   if ac_fn_c_try_compile "$LINENO"; then :
4312   ac_cv_prog_cc_c89=$ac_arg
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext
4315   test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC
4319
4320 fi
4321 # AC_CACHE_VAL
4322 case "x$ac_cv_prog_cc_c89" in
4323   x)
4324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4326   xno)
4327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4329   *)
4330     CC="$CC $ac_cv_prog_cc_c89"
4331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 esac
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344 if test "$GCC" = yes; then
4345    RDYNAMIC="-rdynamic"
4346
4347 fi
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4355 # On Suns, sometimes $CPP names a directory.
4356 if test -n "$CPP" && test -d "$CPP"; then
4357   CPP=
4358 fi
4359 if test -z "$CPP"; then
4360   if ${ac_cv_prog_CPP+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363       # Double quotes because CPP needs to be expanded
4364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4365     do
4366       ac_preproc_ok=false
4367 for ac_c_preproc_warn_flag in '' yes
4368 do
4369   # Use a header file that comes with gcc, so configuring glibc
4370   # with a fresh cross-compiler works.
4371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372   # <limits.h> exists even on freestanding compilers.
4373   # On the NeXT, cc -E runs the code through the compiler's parser,
4374   # not just through cpp. "Syntax error" is here to catch this case.
4375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377 #ifdef __STDC__
4378 # include <limits.h>
4379 #else
4380 # include <assert.h>
4381 #endif
4382                      Syntax error
4383 _ACEOF
4384 if ac_fn_c_try_cpp "$LINENO"; then :
4385
4386 else
4387   # Broken: fails on valid input.
4388 continue
4389 fi
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4391
4392   # OK, works on sane cases.  Now check whether nonexistent headers
4393   # can be detected and how.
4394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h.  */
4396 #include <ac_nonexistent.h>
4397 _ACEOF
4398 if ac_fn_c_try_cpp "$LINENO"; then :
4399   # Broken: success on invalid input.
4400 continue
4401 else
4402   # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.i conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then :
4412   break
4413 fi
4414
4415     done
4416     ac_cv_prog_CPP=$CPP
4417
4418 fi
4419   CPP=$ac_cv_prog_CPP
4420 else
4421   ac_cv_prog_CPP=$CPP
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4424 $as_echo "$CPP" >&6; }
4425 ac_preproc_ok=false
4426 for ac_c_preproc_warn_flag in '' yes
4427 do
4428   # Use a header file that comes with gcc, so configuring glibc
4429   # with a fresh cross-compiler works.
4430   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4431   # <limits.h> exists even on freestanding compilers.
4432   # On the NeXT, cc -E runs the code through the compiler's parser,
4433   # not just through cpp. "Syntax error" is here to catch this case.
4434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436 #ifdef __STDC__
4437 # include <limits.h>
4438 #else
4439 # include <assert.h>
4440 #endif
4441                      Syntax error
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444
4445 else
4446   # Broken: fails on valid input.
4447 continue
4448 fi
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4450
4451   # OK, works on sane cases.  Now check whether nonexistent headers
4452   # can be detected and how.
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455 #include <ac_nonexistent.h>
4456 _ACEOF
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458   # Broken: success on invalid input.
4459 continue
4460 else
4461   # Passes both tests.
4462 ac_preproc_ok=:
4463 break
4464 fi
4465 rm -f conftest.err conftest.i conftest.$ac_ext
4466
4467 done
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.i conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then :
4471
4472 else
4473   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log' for more details" "$LINENO" 5; }
4477 fi
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4486 $as_echo_n "checking for additional special compiler flags... " >&6; }
4487 if test "$GCC" = yes
4488 then
4489     case "$host_cpu" in
4490         alpha)          addcflags="-mieee" ;;
4491     esac
4492 fi
4493 if test "x$addcflags" != x
4494 then
4495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4496 $as_echo "$addcflags" >&6; }
4497     CFLAGS="$addcflags $CFLAGS"
4498 else
4499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4500 $as_echo "(none)" >&6; }
4501 fi
4502
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4505 if ${ac_cv_path_GREP+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -z "$GREP"; then
4509   ac_path_GREP_found=false
4510   # Loop through the user's path and test for each of PROGNAME-LIST
4511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516     for ac_prog in grep ggrep; do
4517     for ac_exec_ext in '' $ac_executable_extensions; do
4518       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519       as_fn_executable_p "$ac_path_GREP" || continue
4520 # Check for GNU ac_path_GREP and select it if it is found.
4521   # Check for GNU $ac_path_GREP
4522 case `"$ac_path_GREP" --version 2>&1` in
4523 *GNU*)
4524   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525 *)
4526   ac_count=0
4527   $as_echo_n 0123456789 >"conftest.in"
4528   while :
4529   do
4530     cat "conftest.in" "conftest.in" >"conftest.tmp"
4531     mv "conftest.tmp" "conftest.in"
4532     cp "conftest.in" "conftest.nl"
4533     $as_echo 'GREP' >> "conftest.nl"
4534     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536     as_fn_arith $ac_count + 1 && ac_count=$as_val
4537     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538       # Best one so far, save it but keep looking for a better one
4539       ac_cv_path_GREP="$ac_path_GREP"
4540       ac_path_GREP_max=$ac_count
4541     fi
4542     # 10*(2^10) chars as input seems more than enough
4543     test $ac_count -gt 10 && break
4544   done
4545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 esac
4547
4548       $ac_path_GREP_found && break 3
4549     done
4550   done
4551   done
4552 IFS=$as_save_IFS
4553   if test -z "$ac_cv_path_GREP"; then
4554     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555   fi
4556 else
4557   ac_cv_path_GREP=$GREP
4558 fi
4559
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4562 $as_echo "$ac_cv_path_GREP" >&6; }
4563  GREP="$ac_cv_path_GREP"
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4567 $as_echo_n "checking for egrep... " >&6; }
4568 if ${ac_cv_path_EGREP+:} false; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572    then ac_cv_path_EGREP="$GREP -E"
4573    else
4574      if test -z "$EGREP"; then
4575   ac_path_EGREP_found=false
4576   # Loop through the user's path and test for each of PROGNAME-LIST
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_prog in egrep; do
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585       as_fn_executable_p "$ac_path_EGREP" || continue
4586 # Check for GNU ac_path_EGREP and select it if it is found.
4587   # Check for GNU $ac_path_EGREP
4588 case `"$ac_path_EGREP" --version 2>&1` in
4589 *GNU*)
4590   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591 *)
4592   ac_count=0
4593   $as_echo_n 0123456789 >"conftest.in"
4594   while :
4595   do
4596     cat "conftest.in" "conftest.in" >"conftest.tmp"
4597     mv "conftest.tmp" "conftest.in"
4598     cp "conftest.in" "conftest.nl"
4599     $as_echo 'EGREP' >> "conftest.nl"
4600     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602     as_fn_arith $ac_count + 1 && ac_count=$as_val
4603     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604       # Best one so far, save it but keep looking for a better one
4605       ac_cv_path_EGREP="$ac_path_EGREP"
4606       ac_path_EGREP_max=$ac_count
4607     fi
4608     # 10*(2^10) chars as input seems more than enough
4609     test $ac_count -gt 10 && break
4610   done
4611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4613
4614       $ac_path_EGREP_found && break 3
4615     done
4616   done
4617   done
4618 IFS=$as_save_IFS
4619   if test -z "$ac_cv_path_EGREP"; then
4620     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621   fi
4622 else
4623   ac_cv_path_EGREP=$EGREP
4624 fi
4625
4626    fi
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4629 $as_echo "$ac_cv_path_EGREP" >&6; }
4630  EGREP="$ac_cv_path_EGREP"
4631
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4634 $as_echo_n "checking for ANSI C header files... " >&6; }
4635 if ${ac_cv_header_stdc+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640 #include <stdlib.h>
4641 #include <stdarg.h>
4642 #include <string.h>
4643 #include <float.h>
4644
4645 int
4646 main ()
4647 {
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"; then :
4654   ac_cv_header_stdc=yes
4655 else
4656   ac_cv_header_stdc=no
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659
4660 if test $ac_cv_header_stdc = yes; then
4661   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h.  */
4664 #include <string.h>
4665
4666 _ACEOF
4667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4668   $EGREP "memchr" >/dev/null 2>&1; then :
4669
4670 else
4671   ac_cv_header_stdc=no
4672 fi
4673 rm -f conftest*
4674
4675 fi
4676
4677 if test $ac_cv_header_stdc = yes; then
4678   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h.  */
4681 #include <stdlib.h>
4682
4683 _ACEOF
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685   $EGREP "free" >/dev/null 2>&1; then :
4686
4687 else
4688   ac_cv_header_stdc=no
4689 fi
4690 rm -f conftest*
4691
4692 fi
4693
4694 if test $ac_cv_header_stdc = yes; then
4695   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4696   if test "$cross_compiling" = yes; then :
4697   :
4698 else
4699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <ctype.h>
4702 #include <stdlib.h>
4703 #if ((' ' & 0x0FF) == 0x020)
4704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 #else
4707 # define ISLOWER(c) \
4708                    (('a' <= (c) && (c) <= 'i') \
4709                      || ('j' <= (c) && (c) <= 'r') \
4710                      || ('s' <= (c) && (c) <= 'z'))
4711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4712 #endif
4713
4714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4715 int
4716 main ()
4717 {
4718   int i;
4719   for (i = 0; i < 256; i++)
4720     if (XOR (islower (i), ISLOWER (i))
4721         || toupper (i) != TOUPPER (i))
4722       return 2;
4723   return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_run "$LINENO"; then :
4727
4728 else
4729   ac_cv_header_stdc=no
4730 fi
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4732   conftest.$ac_objext conftest.beam conftest.$ac_ext
4733 fi
4734
4735 fi
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4738 $as_echo "$ac_cv_header_stdc" >&6; }
4739 if test $ac_cv_header_stdc = yes; then
4740
4741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4742
4743 fi
4744
4745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747                   inttypes.h stdint.h unistd.h
4748 do :
4749   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4751 "
4752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4753   cat >>confdefs.h <<_ACEOF
4754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 _ACEOF
4756
4757 fi
4758
4759 done
4760
4761
4762
4763   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4764 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4765   MINIX=yes
4766 else
4767   MINIX=
4768 fi
4769
4770
4771   if test "$MINIX" = yes; then
4772
4773 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4774
4775
4776 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4777
4778
4779 $as_echo "#define _MINIX 1" >>confdefs.h
4780
4781   fi
4782
4783
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4785 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4786 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h.  */
4791
4792 #         define __EXTENSIONS__ 1
4793           $ac_includes_default
4794 int
4795 main ()
4796 {
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803   ac_cv_safe_to_define___extensions__=yes
4804 else
4805   ac_cv_safe_to_define___extensions__=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4810 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4811   test $ac_cv_safe_to_define___extensions__ = yes &&
4812     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4813
4814   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4815
4816   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4817
4818   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4819
4820   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4821
4822
4823 LIB_EXT=.a
4824 STATIC_LIB_EXT=.a
4825 PROFILED_LIB_EXT=.a
4826
4827 # Check whether --with-root-prefix was given.
4828 if test "${with_root_prefix+set}" = set; then :
4829   withval=$with_root_prefix; root_prefix=$withval
4830 else
4831   root_prefix=NONE
4832 fi
4833 # Check whether --enable-maintainer-mode was given.
4834 if test "${enable_maintainer_mode+set}" = set; then :
4835   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4836 then
4837         MAINTAINER_CMT=#
4838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4839 $as_echo "Disabling maintainer mode" >&6; }
4840 else
4841         MAINTAINER_CMT=
4842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4843 $as_echo "Enabling maintainer mode" >&6; }
4844 fi
4845
4846 else
4847   MAINTAINER_CMT=#
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4849 $as_echo "Disabling maintainer mode by default" >&6; }
4850
4851 fi
4852
4853
4854 # Check whether --enable-symlink-install was given.
4855 if test "${enable_symlink_install+set}" = set; then :
4856   enableval=$enable_symlink_install; if test "$enableval" = "no"
4857 then
4858         LINK_INSTALL_FLAGS=-f
4859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4860 $as_echo "Disabling symlinks for install" >&6; }
4861 else
4862         LINK_INSTALL_FLAGS=-sf
4863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4864 $as_echo "Enabling symlinks for install" >&6; }
4865 fi
4866
4867 else
4868   LINK_INSTALL_FLAGS=-f
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4870 $as_echo "Disabling symlinks for install by default" >&6; }
4871
4872 fi
4873
4874
4875 relative_symlink_defined=
4876 # Check whether --enable-relative-symlinks was given.
4877 if test "${enable_relative_symlinks+set}" = set; then :
4878   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4879 then
4880         SYMLINK_RELATIVE=
4881         relative_symlink_defined=yes
4882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4883 $as_echo "Disabling relative symlinks for install" >&6; }
4884 else
4885         SYMLINK_RELATIVE=--relative
4886         relative_symlink_defined=yes
4887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4888 $as_echo "Enabling relative symlinks for install" >&6; }
4889 fi
4890 fi
4891
4892 # Check whether --enable-symlink-relative-symlinks was given.
4893 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4894   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4895 then
4896         SYMLINK_RELATIVE=yes
4897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4898 $as_echo "Disabling relative symlinks for install" >&6; }
4899 else
4900         SYMLINK_RELATIVE=--relative
4901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4902 $as_echo "Enabling relative symlinks for install" >&6; }
4903 fi
4904
4905 else
4906   if test -z "$relative_symlink_defined"
4907 then
4908         SYMLINK_RELATIVE=
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4910 $as_echo "Disabling relative symlinks for install by default" >&6; }
4911 fi
4912
4913 fi
4914
4915
4916 # Check whether --enable-symlink-build was given.
4917 if test "${enable_symlink_build+set}" = set; then :
4918   enableval=$enable_symlink_build; if test "$enableval" = "no"
4919 then
4920         LINK_BUILD_FLAGS=
4921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4922 $as_echo "Disabling symlinks for build" >&6; }
4923 else
4924         LINK_BUILD_FLAGS=-s
4925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4926 $as_echo "Enabling symlinks for build" >&6; }
4927 fi
4928
4929 else
4930   LINK_BUILD_FLAGS=
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4932 $as_echo "Disabling symlinks for build by default" >&6; }
4933
4934 fi
4935
4936
4937 # Check whether --enable-verbose-makecmds was given.
4938 if test "${enable_verbose_makecmds+set}" = set; then :
4939   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4940 then
4941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4942 $as_echo "Disabling verbose make commands" >&6; }
4943         E=@echo
4944         ES=echo
4945         Q=@
4946 else
4947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4948 $as_echo "Enabling verbose make commands" >&6; }
4949         E=@\\#
4950         ES=\\#
4951         Q=
4952 fi
4953
4954 else
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4956 $as_echo "Disabling verbose make commands" >&6; }
4957 E=@echo
4958 ES=echo
4959 Q=@
4960
4961 fi
4962
4963
4964
4965
4966 E2_PKG_CONFIG_STATIC=--static
4967 LDFLAG_DYNAMIC=
4968 PRIVATE_LIBS_CMT=
4969 # Check whether --enable-elf-shlibs was given.
4970 if test "${enable_elf_shlibs+set}" = set; then :
4971   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4972 then
4973         ELF_CMT=#
4974         MAKEFILE_ELF=/dev/null
4975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4976 $as_echo "Disabling ELF shared libraries" >&6; }
4977 else
4978         E2_PKG_CONFIG_STATIC=
4979         ELF_CMT=
4980         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4981         case "$host_os" in
4982         solaris2.*)
4983                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4984         ;;
4985         esac
4986         BINARY_TYPE=elfbin
4987         LIB_EXT=.so
4988         PRIVATE_LIBS_CMT=#
4989         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4991 $as_echo "Enabling ELF shared libraries" >&6; }
4992 fi
4993
4994 else
4995   MAKEFILE_ELF=/dev/null
4996 ELF_CMT=#
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4998 $as_echo "Disabling ELF shared libraries by default" >&6; }
4999
5000 fi
5001
5002
5003
5004 # Check whether --enable-bsd-shlibs was given.
5005 if test "${enable_bsd_shlibs+set}" = set; then :
5006   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5007 then
5008         BSDLIB_CMT=#
5009         MAKEFILE_BSDLIB=/dev/null
5010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5011 $as_echo "Disabling BSD shared libraries" >&6; }
5012 else
5013         E2_PKG_CONFIG_STATIC=
5014         BSDLIB_CMT=
5015         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5016         LIB_EXT=.so
5017         case "$host_os" in
5018         darwin*)
5019                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5020                 LIB_EXT=.dylib
5021         ;;
5022         esac
5023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5024 $as_echo "Enabling BSD shared libraries" >&6; }
5025 fi
5026
5027 else
5028   MAKEFILE_BSDLIB=/dev/null
5029 BSDLIB_CMT=#
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5031 $as_echo "Disabling BSD shared libraries by default" >&6; }
5032
5033 fi
5034
5035
5036
5037 # Check whether --enable-profile was given.
5038 if test "${enable_profile+set}" = set; then :
5039   enableval=$enable_profile; if test "$enableval" = "no"
5040 then
5041         PROFILE_CMT=#
5042         MAKEFILE_PROFILE=/dev/null
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5044 $as_echo "Disabling profiling libraries" >&6; }
5045 else
5046         PROFILE_CMT=
5047         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5048         PROFILED_LIB_EXT=_p.a
5049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5050 $as_echo "Building profiling libraries" >&6; }
5051 fi
5052
5053 else
5054   PROFILE_CMT=#
5055 MAKEFILE_PROFILE=/dev/null
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5057 $as_echo "Disabling profiling libraries by default" >&6; }
5058
5059 fi
5060
5061
5062
5063 # Check whether --enable-gcov was given.
5064 if test "${enable_gcov+set}" = set; then :
5065   enableval=$enable_gcov; if test "$enableval" = "yes"
5066 then
5067         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5068         LDFLAGS="-fprofile-arcs -ftest-coverage"
5069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5070 $as_echo "Enabling gcov support" >&6; }
5071 fi
5072
5073 fi
5074
5075 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5076 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5077 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5078 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5079 # Check whether --enable-hardening was given.
5080 if test "${enable_hardening+set}" = set; then :
5081   enableval=$enable_hardening; if test "$enableval" = "yes"
5082 then
5083         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5084         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5085         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5086         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5087         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5088         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5089         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5090         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5092 $as_echo "Enabling hardening support" >&6; }
5093 fi
5094
5095 fi
5096
5097
5098
5099
5100
5101
5102 # Check whether --enable-jbd-debug was given.
5103 if test "${enable_jbd_debug+set}" = set; then :
5104   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5105 then
5106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5107 $as_echo "Disabling journal debugging" >&6; }
5108 else
5109
5110 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5111
5112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5113 $as_echo "Enabling journal debugging" >&6; }
5114 fi
5115
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5118 $as_echo "Disabling journal debugging by default" >&6; }
5119
5120 fi
5121
5122 # Check whether --enable-blkid-debug was given.
5123 if test "${enable_blkid_debug+set}" = set; then :
5124   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5125 then
5126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5127 $as_echo "Disabling blkid debugging" >&6; }
5128 else
5129
5130 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5131
5132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5133 $as_echo "Enabling blkid debugging" >&6; }
5134 fi
5135
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5138 $as_echo "Disabling blkid debugging by default" >&6; }
5139
5140 fi
5141
5142 # Check whether --enable-testio-debug was given.
5143 if test "${enable_testio_debug+set}" = set; then :
5144   enableval=$enable_testio_debug;
5145 if test "$enableval" = "no"
5146 then
5147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5148 $as_echo "Disabling testio debugging" >&6; }
5149         TEST_IO_CMT="#"
5150 else
5151         TEST_IO_CMT=
5152         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5153
5154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5155 $as_echo "Enabling testio debugging" >&6; }
5156 fi
5157
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5160 $as_echo "Enabling testio debugging by default" >&6; }
5161 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5162
5163 TEST_IO_CMT=
5164
5165 fi
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5176         if test -n "$ac_tool_prefix"; then
5177   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5178 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   case $PKG_CONFIG in
5185   [\\/]* | ?:[\\/]*)
5186   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5187   ;;
5188   *)
5189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201   done
5202 IFS=$as_save_IFS
5203
5204   ;;
5205 esac
5206 fi
5207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5208 if test -n "$PKG_CONFIG"; then
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5210 $as_echo "$PKG_CONFIG" >&6; }
5211 else
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5214 fi
5215
5216
5217 fi
5218 if test -z "$ac_cv_path_PKG_CONFIG"; then
5219   ac_pt_PKG_CONFIG=$PKG_CONFIG
5220   # Extract the first word of "pkg-config", so it can be a program name with args.
5221 set dummy pkg-config; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   case $ac_pt_PKG_CONFIG in
5228   [\\/]* | ?:[\\/]*)
5229   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5230   ;;
5231   *)
5232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237     for ac_exec_ext in '' $ac_executable_extensions; do
5238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244   done
5245 IFS=$as_save_IFS
5246
5247   ;;
5248 esac
5249 fi
5250 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5251 if test -n "$ac_pt_PKG_CONFIG"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5253 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259   if test "x$ac_pt_PKG_CONFIG" = x; then
5260     PKG_CONFIG=""
5261   else
5262     case $cross_compiling:$ac_tool_warned in
5263 yes:)
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5267 esac
5268     PKG_CONFIG=$ac_pt_PKG_CONFIG
5269   fi
5270 else
5271   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5272 fi
5273
5274 fi
5275 if test -n "$PKG_CONFIG"; then
5276         _pkg_min_version=0.9.0
5277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5278 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5279         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5280                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281 $as_echo "yes" >&6; }
5282         else
5283                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285                 PKG_CONFIG=""
5286         fi
5287 fi
5288 LIBUUID=
5289 DEPLIBUUID=
5290 STATIC_LIBUUID=
5291 DEPSTATIC_LIBUUID=
5292 PROFILED_LIBUUID=
5293 DEPPROFILED_LIBUUID=
5294 UUID_CMT=
5295 # Check whether --enable-libuuid was given.
5296 if test "${enable_libuuid+set}" = set; then :
5297   enableval=$enable_libuuid; if test "$enableval" = "no"
5298 then
5299         if test -z "$PKG_CONFIG"; then
5300                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5301         fi
5302
5303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5304 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5305 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-luuid  $LIBS"
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h.  */
5312
5313 /* Override any GCC internal prototype to avoid an error.
5314    Use char because int might match the return type of a GCC
5315    builtin and then its argument prototype would still apply.  */
5316 #ifdef __cplusplus
5317 extern "C"
5318 #endif
5319 char uuid_generate ();
5320 int
5321 main ()
5322 {
5323 return uuid_generate ();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_link "$LINENO"; then :
5329   ac_cv_lib_uuid_uuid_generate=yes
5330 else
5331   ac_cv_lib_uuid_uuid_generate=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext \
5334     conftest$ac_exeext conftest.$ac_ext
5335 LIBS=$ac_check_lib_save_LIBS
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5338 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5339 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5340   LIBUUID=`$PKG_CONFIG --libs uuid`;
5341                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5342 else
5343   as_fn_error $? "external uuid library not found" "$LINENO" 5
5344 fi
5345
5346         PROFILED_LIBUUID=$LIBUUID
5347         UUID_CMT=#
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5349 $as_echo "Disabling private uuid library" >&6; }
5350 else
5351         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5352         DEPLIBUUID=$LIBUUID
5353         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5354         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5355         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5356         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5358 $as_echo "Enabling private uuid library" >&6; }
5359 fi
5360
5361 else
5362   if test -n "$PKG_CONFIG"; then
5363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5364 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5365 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   ac_check_lib_save_LIBS=$LIBS
5369 LIBS="-luuid  $LIBS"
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h.  */
5372
5373 /* Override any GCC internal prototype to avoid an error.
5374    Use char because int might match the return type of a GCC
5375    builtin and then its argument prototype would still apply.  */
5376 #ifdef __cplusplus
5377 extern "C"
5378 #endif
5379 char uuid_generate ();
5380 int
5381 main ()
5382 {
5383 return uuid_generate ();
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 if ac_fn_c_try_link "$LINENO"; then :
5389   ac_cv_lib_uuid_uuid_generate=yes
5390 else
5391   ac_cv_lib_uuid_uuid_generate=no
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext \
5394     conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5398 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5399 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5400   LIBUUID=`$PKG_CONFIG --libs uuid`;
5401                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5402 fi
5403
5404 fi
5405 if test -n "$LIBUUID"; then
5406         PROFILED_LIBUUID=$LIBUUID
5407         UUID_CMT=#
5408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5409 $as_echo "Using system uuid by default" >&6; }
5410 else
5411         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5412         DEPLIBUUID=$LIBUUID
5413         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5414         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5415         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5416         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5418 $as_echo "Enabling private uuid library by default" >&6; }
5419 fi
5420
5421 fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5438         if test -n "$ac_tool_prefix"; then
5439   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5440 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case $PKG_CONFIG in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466   ;;
5467 esac
5468 fi
5469 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5470 if test -n "$PKG_CONFIG"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5472 $as_echo "$PKG_CONFIG" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_path_PKG_CONFIG"; then
5481   ac_pt_PKG_CONFIG=$PKG_CONFIG
5482   # Extract the first word of "pkg-config", so it can be a program name with args.
5483 set dummy pkg-config; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489   case $ac_pt_PKG_CONFIG in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5492   ;;
5493   *)
5494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506   done
5507 IFS=$as_save_IFS
5508
5509   ;;
5510 esac
5511 fi
5512 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5513 if test -n "$ac_pt_PKG_CONFIG"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5515 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521   if test "x$ac_pt_PKG_CONFIG" = x; then
5522     PKG_CONFIG=""
5523   else
5524     case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530     PKG_CONFIG=$ac_pt_PKG_CONFIG
5531   fi
5532 else
5533   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5534 fi
5535
5536 fi
5537 if test -n "$PKG_CONFIG"; then
5538         _pkg_min_version=0.9.0
5539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5540 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5541         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5542                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5544         else
5545                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547                 PKG_CONFIG=""
5548         fi
5549 fi
5550 LIBBLKID=
5551 DEPLIBBLKID=
5552 STATIC_LIBBLKID=
5553 DEPSTATIC_LIBBLKID=
5554 PROFILED_LIBBLKID=
5555 DEPPROFILED_LIBBLKID=
5556 BLKID_CMT=
5557
5558 # Check whether --enable-libblkid was given.
5559 if test "${enable_libblkid+set}" = set; then :
5560   enableval=$enable_libblkid; if test "$enableval" = "no"
5561 then
5562         if test -z "$PKG_CONFIG"; then
5563                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5564         fi
5565
5566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5567 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5568 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   ac_check_lib_save_LIBS=$LIBS
5572 LIBS="-lblkid -luuid $LIBS"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575
5576 /* Override any GCC internal prototype to avoid an error.
5577    Use char because int might match the return type of a GCC
5578    builtin and then its argument prototype would still apply.  */
5579 #ifdef __cplusplus
5580 extern "C"
5581 #endif
5582 char blkid_get_cache ();
5583 int
5584 main ()
5585 {
5586 return blkid_get_cache ();
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_link "$LINENO"; then :
5592   ac_cv_lib_blkid_blkid_get_cache=yes
5593 else
5594   ac_cv_lib_blkid_blkid_get_cache=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext \
5597     conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5601 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5602 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5603   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5604                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5605 else
5606   as_fn_error $? "external blkid library not found" "$LINENO" 5
5607 fi
5608
5609         BLKID_CMT=#
5610         PROFILED_LIBBLKID=$LIBBLKID
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5612 $as_echo "Disabling private blkid library" >&6; }
5613 else
5614         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5615         DEPLIBBLKID=$LIBBLKID
5616         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5617         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5618         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5619         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5620         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5621
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5623 $as_echo "Enabling private blkid library" >&6; }
5624 fi
5625
5626 else
5627   if test -n "$PKG_CONFIG"; then
5628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5629 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5630 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   ac_check_lib_save_LIBS=$LIBS
5634 LIBS="-lblkid  $LIBS"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637
5638 /* Override any GCC internal prototype to avoid an error.
5639    Use char because int might match the return type of a GCC
5640    builtin and then its argument prototype would still apply.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 char blkid_get_cache ();
5645 int
5646 main ()
5647 {
5648 return blkid_get_cache ();
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654   ac_cv_lib_blkid_blkid_get_cache=yes
5655 else
5656   ac_cv_lib_blkid_blkid_get_cache=no
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext \
5659     conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5663 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5664 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5665   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5666                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5667 fi
5668
5669 fi
5670 if test -n "$LIBBLKID"; then
5671         BLKID_CMT=#
5672         PROFILED_LIBBLKID=$LIBBLKID
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5674 $as_echo "Using system blkid library by default" >&6; }
5675 else
5676         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5677         DEPLIBBLKID=$LIBBLKID
5678         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5679         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5680         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5681         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5682         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5683
5684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5685 $as_echo "Enabling private blkid library by default" >&6; }
5686 fi
5687
5688 fi
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 # Check whether --enable-backtrace was given.
5699 if test "${enable_backtrace+set}" = set; then :
5700   enableval=$enable_backtrace; if test "$enableval" = "no"
5701 then
5702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5703 $as_echo "Disabling use of backtrace" >&6; }
5704         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5705
5706 else
5707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5708 $as_echo "Enabling use of backtrace" >&6; }
5709 fi
5710
5711 else
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5713 $as_echo "Enabling use of backtrace by default" >&6; }
5714
5715 fi
5716
5717 # Check whether --enable-debugfs was given.
5718 if test "${enable_debugfs+set}" = set; then :
5719   enableval=$enable_debugfs; if test "$enableval" = "no"
5720 then
5721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5722 $as_echo "Disabling debugfs support" >&6; }
5723         DEBUGFS_CMT="#"
5724 else
5725         DEBUGFS_CMT=
5726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5727 $as_echo "Enabling debugfs support" >&6; }
5728 fi
5729
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5732 $as_echo "Enabling debugfs support by default" >&6; }
5733 DEBUGFS_CMT=
5734
5735 fi
5736
5737
5738 # Check whether --enable-imager was given.
5739 if test "${enable_imager+set}" = set; then :
5740   enableval=$enable_imager; if test "$enableval" = "no"
5741 then
5742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5743 $as_echo "Disabling e2image support" >&6; }
5744         IMAGER_CMT="#"
5745 else
5746         IMAGER_CMT=
5747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5748 $as_echo "Enabling e2image support" >&6; }
5749 fi
5750
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5753 $as_echo "Enabling e2image support by default" >&6; }
5754 IMAGER_CMT=
5755
5756 fi
5757
5758
5759 # Check whether --enable-resizer was given.
5760 if test "${enable_resizer+set}" = set; then :
5761   enableval=$enable_resizer; if test "$enableval" = "no"
5762 then
5763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5764 $as_echo "Disabling e2resize support" >&6; }
5765         RESIZER_CMT="#"
5766 else
5767         RESIZER_CMT=
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5769 $as_echo "Enabling e2resize support" >&6; }
5770 fi
5771
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5774 $as_echo "Enabling e2resize support by default" >&6; }
5775 RESIZER_CMT=
5776
5777 fi
5778
5779
5780 # Check whether --enable-defrag was given.
5781 if test "${enable_defrag+set}" = set; then :
5782   enableval=$enable_defrag; if test "$enableval" = "no"
5783 then
5784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5785 $as_echo "Disabling e4defrag support" >&6; }
5786         DEFRAG_CMT="#"
5787 else
5788         DEFRAG_CMT=
5789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5790 $as_echo "Enabling e4defrag support" >&6; }
5791 fi
5792
5793 else
5794   if test -z "$WITH_DIET_LIBC"
5795 then
5796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5797 $as_echo "Enabling e4defrag support by default" >&6; }
5798         DEFRAG_CMT=
5799 else
5800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5801 $as_echo "Disabling e4defrag support by default" >&6; }
5802         DEFRAG_CMT="#"
5803 fi
5804
5805 fi
5806
5807
5808 # Check whether --enable-fsck was given.
5809 if test "${enable_fsck+set}" = set; then :
5810   enableval=$enable_fsck; if test "$enableval" = "no"
5811 then
5812         FSCK_PROG='' FSCK_MAN=''
5813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5814 $as_echo "Not building fsck wrapper" >&6; }
5815 else
5816         FSCK_PROG=fsck FSCK_MAN=fsck.8
5817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5818 $as_echo "Building fsck wrapper" >&6; }
5819 fi
5820
5821 else
5822   case "$host_os" in
5823   gnu*)
5824     FSCK_PROG='' FSCK_MAN=''
5825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5826 $as_echo "Not building fsck wrapper by default" >&6; }
5827     ;;
5828   *)
5829     FSCK_PROG=fsck FSCK_MAN=fsck.8
5830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5831 $as_echo "Building fsck wrapper by default" >&6; }
5832 esac
5833
5834 fi
5835
5836
5837
5838 # Check whether --enable-e2initrd-helper was given.
5839 if test "${enable_e2initrd_helper+set}" = set; then :
5840   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5841 then
5842         E2INITRD_PROG='' E2INITRD_MAN=''
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5844 $as_echo "Not building e2initrd helper" >&6; }
5845 else
5846         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5848 $as_echo "Building e2initrd helper" >&6; }
5849 fi
5850
5851 else
5852   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5854 $as_echo "Building e2initrd helper by default" >&6; }
5855
5856 fi
5857
5858
5859
5860 # Check whether --enable-tls was given.
5861 if test "${enable_tls+set}" = set; then :
5862   enableval=$enable_tls; if test "$enableval" = "no"
5863 then
5864         try_tls=""
5865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5866 $as_echo "Disabling thread local support" >&6; }
5867 else
5868         try_tls="yes"
5869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5870 $as_echo "Enabling thread local support" >&6; }
5871 fi
5872
5873 else
5874   if test -n "$WITH_DIET_LIBC"
5875 then
5876         try_tls=""
5877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5878 $as_echo "Diet libc does not support thread local support" >&6; }
5879 else
5880         try_tls="yes"
5881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5882 $as_echo "Try using thread local support by default" >&6; }
5883 fi
5884
5885 fi
5886
5887 if test "$try_tls" = "yes"
5888 then
5889
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5891 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5892   if ${ac_cv_tls+:} false; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895
5896     ax_tls_keywords="__thread __declspec(thread) none"
5897     for ax_tls_keyword in $ax_tls_keywords; do
5898        case $ax_tls_keyword in
5899           none) ac_cv_tls=none ; break ;;
5900           *)
5901              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h.  */
5903 #include <stdlib.h>
5904                  static void
5905                  foo(void) {
5906                  static  $ax_tls_keyword  int bar;
5907                  exit(1);
5908                  }
5909 int
5910 main ()
5911 {
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918   ac_cv_tls=$ax_tls_keyword ; break
5919 else
5920   ac_cv_tls=none
5921
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924           esac
5925     done
5926
5927 fi
5928
5929
5930   if test "$ac_cv_tls" != "none"; then
5931
5932 cat >>confdefs.h <<_ACEOF
5933 #define TLS $ac_cv_tls
5934 _ACEOF
5935
5936   fi
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5938 $as_echo "$ac_cv_tls" >&6; }
5939
5940 fi
5941
5942 # Check whether --enable-uuidd was given.
5943 if test "${enable_uuidd+set}" = set; then :
5944   enableval=$enable_uuidd; if test "$enableval" = "no"
5945 then
5946         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5947 $as_echo "Not building uuidd" >&6; }
5948         UUIDD_CMT="#"
5949 else
5950         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5951
5952         UUIDD_CMT=""
5953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5954 $as_echo "Building uuidd" >&6; }
5955 fi
5956
5957 else
5958   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5959
5960 if test -z "$UUID_CMT"
5961 then
5962         UUIDD_CMT=""
5963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5964 $as_echo "Building uuidd by default" >&6; }
5965 else
5966         UUIDD_CMT="#"
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5968 $as_echo "Disabling uuidd by default" >&6; }
5969 fi
5970
5971 fi
5972
5973
5974
5975 # Check whether --enable-mmp was given.
5976 if test "${enable_mmp+set}" = set; then :
5977   enableval=$enable_mmp; if test "$enableval" = "no"
5978 then
5979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5980 $as_echo "Disabling mmp support" >&6; }
5981 else
5982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5983 $as_echo "Enabling mmp support" >&6; }
5984         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5985
5986 fi
5987
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5990 $as_echo "Enabling mmp support by default" >&6; }
5991 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5992
5993
5994 fi
5995
5996
5997 # Check whether --enable-tdb was given.
5998 if test "${enable_tdb+set}" = set; then :
5999   enableval=$enable_tdb; if test "$enableval" = "no"
6000 then
6001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6002 $as_echo "Disabling tdb support" >&6; }
6003         TDB_CMT="#"
6004         TDB_MAN_COMMENT='.\"'
6005 else
6006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6007 $as_echo "Enabling tdb support" >&6; }
6008         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6009
6010         TDB_CMT=""
6011         TDB_MAN_COMMENT=""
6012 fi
6013
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6016 $as_echo "Enabling mmp support by default" >&6; }
6017 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6018
6019 TDB_CMT=""
6020 TDB_MAN_COMMENT=""
6021
6022 fi
6023
6024
6025
6026
6027 # Check whether --enable-bmap-stats was given.
6028 if test "${enable_bmap_stats+set}" = set; then :
6029   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6030 then
6031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6032 $as_echo "Disabling bitmap statistics support" >&6; }
6033 else
6034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6035 $as_echo "Enabling bitmap statistics support" >&6; }
6036         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6037
6038 fi
6039
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6042 $as_echo "Enabling bitmap statistics support by default" >&6; }
6043 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6044
6045
6046 fi
6047
6048
6049 # Check whether --enable-bmap-stats-ops was given.
6050 if test "${enable_bmap_stats_ops+set}" = set; then :
6051   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6052 then
6053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6054 $as_echo "Disabling additional bitmap statistics" >&6; }
6055 else
6056                 if test "x${enable_bmap_stats}" = "xno"; then :
6057   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6059 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6060 See \`config.log' for more details" "$LINENO" 5; }
6061 fi
6062
6063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6064 $as_echo "Enabling additional bitmap statistics" >&6; }
6065         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6066
6067 fi
6068
6069 else
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6071 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6072
6073 fi
6074
6075 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6076
6077 GETTEXT_PACKAGE=e2fsprogs
6078 PACKAGE=e2fsprogs
6079 VERSION="$E2FSPROGS_VERSION"
6080 VERSION=0.14.1
6081
6082 cat >>confdefs.h <<_ACEOF
6083 #define PACKAGE "$PACKAGE"
6084 _ACEOF
6085
6086
6087 cat >>confdefs.h <<_ACEOF
6088 #define VERSION "$VERSION"
6089 _ACEOF
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6097 set x ${MAKE-make}
6098 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6099 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   cat >conftest.make <<\_ACEOF
6103 SHELL = /bin/sh
6104 all:
6105         @echo '@@@%%%=$(MAKE)=@@@%%%'
6106 _ACEOF
6107 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6108 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6109   *@@@%%%=?*=@@@%%%*)
6110     eval ac_cv_prog_make_${ac_make}_set=yes;;
6111   *)
6112     eval ac_cv_prog_make_${ac_make}_set=no;;
6113 esac
6114 rm -f conftest.make
6115 fi
6116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6118 $as_echo "yes" >&6; }
6119   SET_MAKE=
6120 else
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123   SET_MAKE="MAKE=${MAKE-make}"
6124 fi
6125
6126 # Find a good install program.  We prefer a C program (faster),
6127 # so one script is as good as another.  But avoid the broken or
6128 # incompatible versions:
6129 # SysV /etc/install, /usr/sbin/install
6130 # SunOS /usr/etc/install
6131 # IRIX /sbin/install
6132 # AIX /bin/install
6133 # AmigaOS /C/install, which installs bootblocks on floppy discs
6134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6137 # OS/2's system install, which has a completely different semantic
6138 # ./install, which can be erroneously created by make from ./install.sh.
6139 # Reject install programs that cannot install multiple files.
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6141 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6142 if test -z "$INSTALL"; then
6143 if ${ac_cv_path_install+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     # Account for people who put trailing slashes in PATH elements.
6152 case $as_dir/ in #((
6153   ./ | .// | /[cC]/* | \
6154   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6155   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6156   /usr/ucb/* ) ;;
6157   *)
6158     # OSF1 and SCO ODT 3.0 have their own names for install.
6159     # Don't use installbsd from OSF since it installs stuff as root
6160     # by default.
6161     for ac_prog in ginstall scoinst install; do
6162       for ac_exec_ext in '' $ac_executable_extensions; do
6163         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6164           if test $ac_prog = install &&
6165             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6166             # AIX install.  It has an incompatible calling convention.
6167             :
6168           elif test $ac_prog = install &&
6169             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6170             # program-specific install script used by HP pwplus--don't use.
6171             :
6172           else
6173             rm -rf conftest.one conftest.two conftest.dir
6174             echo one > conftest.one
6175             echo two > conftest.two
6176             mkdir conftest.dir
6177             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6178               test -s conftest.one && test -s conftest.two &&
6179               test -s conftest.dir/conftest.one &&
6180               test -s conftest.dir/conftest.two
6181             then
6182               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6183               break 3
6184             fi
6185           fi
6186         fi
6187       done
6188     done
6189     ;;
6190 esac
6191
6192   done
6193 IFS=$as_save_IFS
6194
6195 rm -rf conftest.one conftest.two conftest.dir
6196
6197 fi
6198   if test "${ac_cv_path_install+set}" = set; then
6199     INSTALL=$ac_cv_path_install
6200   else
6201     # As a last resort, use the slow shell script.  Don't cache a
6202     # value for INSTALL within a source directory, because that will
6203     # break other packages using the cache if that directory is
6204     # removed, or if the value is a relative name.
6205     INSTALL=$ac_install_sh
6206   fi
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6209 $as_echo "$INSTALL" >&6; }
6210
6211 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6212 # It thinks the first close brace ends the variable substitution.
6213 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6214
6215 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6216
6217 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6221 if test -z "$MKDIR_P"; then
6222   if ${ac_cv_path_mkdir+:} false; then :
6223   $as_echo_n "(cached) " >&6
6224 else
6225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_prog in mkdir gmkdir; do
6231          for ac_exec_ext in '' $ac_executable_extensions; do
6232            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6233            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6234              'mkdir (GNU coreutils) '* | \
6235              'mkdir (coreutils) '* | \
6236              'mkdir (fileutils) '4.1*)
6237                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6238                break 3;;
6239            esac
6240          done
6241        done
6242   done
6243 IFS=$as_save_IFS
6244
6245 fi
6246
6247   test -d ./--version && rmdir ./--version
6248   if test "${ac_cv_path_mkdir+set}" = set; then
6249     MKDIR_P="$ac_cv_path_mkdir -p"
6250   else
6251     # As a last resort, use the slow shell script.  Don't cache a
6252     # value for MKDIR_P within a source directory, because that will
6253     # break other packages using the cache if that directory is
6254     # removed, or if the value is a relative name.
6255     MKDIR_P="$ac_install_sh -d"
6256   fi
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6259 $as_echo "$MKDIR_P" >&6; }
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6262 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6263 if ${ac_cv_path_SED+:} false; then :
6264   $as_echo_n "(cached) " >&6
6265 else
6266             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6267      for ac_i in 1 2 3 4 5 6 7; do
6268        ac_script="$ac_script$as_nl$ac_script"
6269      done
6270      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6271      { ac_script=; unset ac_script;}
6272      if test -z "$SED"; then
6273   ac_path_SED_found=false
6274   # Loop through the user's path and test for each of PROGNAME-LIST
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_prog in sed gsed; do
6281     for ac_exec_ext in '' $ac_executable_extensions; do
6282       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6283       as_fn_executable_p "$ac_path_SED" || continue
6284 # Check for GNU ac_path_SED and select it if it is found.
6285   # Check for GNU $ac_path_SED
6286 case `"$ac_path_SED" --version 2>&1` in
6287 *GNU*)
6288   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6289 *)
6290   ac_count=0
6291   $as_echo_n 0123456789 >"conftest.in"
6292   while :
6293   do
6294     cat "conftest.in" "conftest.in" >"conftest.tmp"
6295     mv "conftest.tmp" "conftest.in"
6296     cp "conftest.in" "conftest.nl"
6297     $as_echo '' >> "conftest.nl"
6298     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6300     as_fn_arith $ac_count + 1 && ac_count=$as_val
6301     if test $ac_count -gt ${ac_path_SED_max-0}; then
6302       # Best one so far, save it but keep looking for a better one
6303       ac_cv_path_SED="$ac_path_SED"
6304       ac_path_SED_max=$ac_count
6305     fi
6306     # 10*(2^10) chars as input seems more than enough
6307     test $ac_count -gt 10 && break
6308   done
6309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6310 esac
6311
6312       $ac_path_SED_found && break 3
6313     done
6314   done
6315   done
6316 IFS=$as_save_IFS
6317   if test -z "$ac_cv_path_SED"; then
6318     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6319   fi
6320 else
6321   ac_cv_path_SED=$SED
6322 fi
6323
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6326 $as_echo "$ac_cv_path_SED" >&6; }
6327  SED="$ac_cv_path_SED"
6328   rm -f conftest.sed
6329
6330
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6332 $as_echo_n "checking whether NLS is requested... " >&6; }
6333     # Check whether --enable-nls was given.
6334 if test "${enable_nls+set}" = set; then :
6335   enableval=$enable_nls; USE_NLS=$enableval
6336 else
6337   USE_NLS=yes
6338 fi
6339
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6341 $as_echo "$USE_NLS" >&6; }
6342
6343
6344
6345
6346       GETTEXT_MACRO_VERSION=0.18
6347
6348
6349
6350
6351 # Prepare PATH_SEPARATOR.
6352 # The user is always right.
6353 if test "${PATH_SEPARATOR+set}" != set; then
6354   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6355   # contains only /bin. Note that ksh looks also at the FPATH variable,
6356   # so we have to set that as well for the test.
6357   PATH_SEPARATOR=:
6358   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6360            || PATH_SEPARATOR=';'
6361        }
6362 fi
6363
6364 # Find out how to test for executable files. Don't use a zero-byte file,
6365 # as systems may use methods other than mode bits to determine executability.
6366 cat >conf$$.file <<_ASEOF
6367 #! /bin/sh
6368 exit 0
6369 _ASEOF
6370 chmod +x conf$$.file
6371 if test -x conf$$.file >/dev/null 2>&1; then
6372   ac_executable_p="test -x"
6373 else
6374   ac_executable_p="test -f"
6375 fi
6376 rm -f conf$$.file
6377
6378 # Extract the first word of "msgfmt", so it can be a program name with args.
6379 set dummy msgfmt; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_path_MSGFMT+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   case "$MSGFMT" in
6386   [\\/]* | ?:[\\/]*)
6387     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6388     ;;
6389   *)
6390     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6391     for ac_dir in $PATH; do
6392       IFS="$ac_save_IFS"
6393       test -z "$ac_dir" && ac_dir=.
6394       for ac_exec_ext in '' $ac_executable_extensions; do
6395         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6396           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6397           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6398      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6399             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6400             break 2
6401           fi
6402         fi
6403       done
6404     done
6405     IFS="$ac_save_IFS"
6406   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6407     ;;
6408 esac
6409 fi
6410 MSGFMT="$ac_cv_path_MSGFMT"
6411 if test "$MSGFMT" != ":"; then
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6413 $as_echo "$MSGFMT" >&6; }
6414 else
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6420 set dummy gmsgfmt; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_path_GMSGFMT+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   case $GMSGFMT in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6447   ;;
6448 esac
6449 fi
6450 GMSGFMT=$ac_cv_path_GMSGFMT
6451 if test -n "$GMSGFMT"; then
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6453 $as_echo "$GMSGFMT" >&6; }
6454 else
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6457 fi
6458
6459
6460
6461     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6462     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6463     *) MSGFMT_015=$MSGFMT ;;
6464   esac
6465
6466   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6467     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6468     *) GMSGFMT_015=$GMSGFMT ;;
6469   esac
6470
6471
6472
6473 # Prepare PATH_SEPARATOR.
6474 # The user is always right.
6475 if test "${PATH_SEPARATOR+set}" != set; then
6476   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6477   # contains only /bin. Note that ksh looks also at the FPATH variable,
6478   # so we have to set that as well for the test.
6479   PATH_SEPARATOR=:
6480   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6481     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6482            || PATH_SEPARATOR=';'
6483        }
6484 fi
6485
6486 # Find out how to test for executable files. Don't use a zero-byte file,
6487 # as systems may use methods other than mode bits to determine executability.
6488 cat >conf$$.file <<_ASEOF
6489 #! /bin/sh
6490 exit 0
6491 _ASEOF
6492 chmod +x conf$$.file
6493 if test -x conf$$.file >/dev/null 2>&1; then
6494   ac_executable_p="test -x"
6495 else
6496   ac_executable_p="test -f"
6497 fi
6498 rm -f conf$$.file
6499
6500 # Extract the first word of "xgettext", so it can be a program name with args.
6501 set dummy xgettext; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_path_XGETTEXT+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   case "$XGETTEXT" in
6508   [\\/]* | ?:[\\/]*)
6509     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6510     ;;
6511   *)
6512     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6513     for ac_dir in $PATH; do
6514       IFS="$ac_save_IFS"
6515       test -z "$ac_dir" && ac_dir=.
6516       for ac_exec_ext in '' $ac_executable_extensions; do
6517         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6518           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6519           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6520      (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
6521             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6522             break 2
6523           fi
6524         fi
6525       done
6526     done
6527     IFS="$ac_save_IFS"
6528   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6529     ;;
6530 esac
6531 fi
6532 XGETTEXT="$ac_cv_path_XGETTEXT"
6533 if test "$XGETTEXT" != ":"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6535 $as_echo "$XGETTEXT" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541     rm -f messages.po
6542
6543     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6544     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6545     *) XGETTEXT_015=$XGETTEXT ;;
6546   esac
6547
6548
6549
6550 # Prepare PATH_SEPARATOR.
6551 # The user is always right.
6552 if test "${PATH_SEPARATOR+set}" != set; then
6553   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6554   # contains only /bin. Note that ksh looks also at the FPATH variable,
6555   # so we have to set that as well for the test.
6556   PATH_SEPARATOR=:
6557   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6558     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6559            || PATH_SEPARATOR=';'
6560        }
6561 fi
6562
6563 # Find out how to test for executable files. Don't use a zero-byte file,
6564 # as systems may use methods other than mode bits to determine executability.
6565 cat >conf$$.file <<_ASEOF
6566 #! /bin/sh
6567 exit 0
6568 _ASEOF
6569 chmod +x conf$$.file
6570 if test -x conf$$.file >/dev/null 2>&1; then
6571   ac_executable_p="test -x"
6572 else
6573   ac_executable_p="test -f"
6574 fi
6575 rm -f conf$$.file
6576
6577 # Extract the first word of "msgmerge", so it can be a program name with args.
6578 set dummy msgmerge; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_path_MSGMERGE+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   case "$MSGMERGE" in
6585   [\\/]* | ?:[\\/]*)
6586     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6587     ;;
6588   *)
6589     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6590     for ac_dir in $PATH; do
6591       IFS="$ac_save_IFS"
6592       test -z "$ac_dir" && ac_dir=.
6593       for ac_exec_ext in '' $ac_executable_extensions; do
6594         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6595           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6596           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6597             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6598             break 2
6599           fi
6600         fi
6601       done
6602     done
6603     IFS="$ac_save_IFS"
6604   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6605     ;;
6606 esac
6607 fi
6608 MSGMERGE="$ac_cv_path_MSGMERGE"
6609 if test "$MSGMERGE" != ":"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6611 $as_echo "$MSGMERGE" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618         test -n "$localedir" || localedir='${datadir}/locale'
6619
6620
6621     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6622
6623
6624   ac_config_commands="$ac_config_commands po-directories"
6625
6626
6627
6628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6629 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6630 if ${ac_cv_gnu_library_2+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h.  */
6635
6636 #include <features.h>
6637 #ifdef __GNU_LIBRARY__
6638  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6639   Lucky GNU user
6640  #endif
6641 #endif
6642
6643 _ACEOF
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6646   ac_cv_gnu_library_2=yes
6647 else
6648   ac_cv_gnu_library_2=no
6649 fi
6650 rm -f conftest*
6651
6652
6653
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6656 $as_echo "$ac_cv_gnu_library_2" >&6; }
6657
6658     GLIBC2="$ac_cv_gnu_library_2"
6659
6660
6661 if test -n "$ac_tool_prefix"; then
6662   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$RANLIB"; then
6670   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701   ac_ct_RANLIB=$RANLIB
6702   # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$ac_ct_RANLIB"; then
6710   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_prog_ac_ct_RANLIB="ranlib"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738   if test "x$ac_ct_RANLIB" = x; then
6739     RANLIB=":"
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     RANLIB=$ac_ct_RANLIB
6748   fi
6749 else
6750   RANLIB="$ac_cv_prog_RANLIB"
6751 fi
6752
6753
6754
6755   CFLAG_VISIBILITY=
6756   HAVE_VISIBILITY=0
6757   if test -n "$GCC"; then
6758                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6759 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6760     if ${gl_cv_cc_vis_werror+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763
6764       gl_save_CFLAGS="$CFLAGS"
6765       CFLAGS="$CFLAGS -Werror"
6766       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h.  */
6768
6769 int
6770 main ()
6771 {
6772
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778   gl_cv_cc_vis_werror=yes
6779 else
6780   gl_cv_cc_vis_werror=no
6781 fi
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783       CFLAGS="$gl_save_CFLAGS"
6784 fi
6785
6786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6787 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6789 $as_echo_n "checking for simple visibility declarations... " >&6; }
6790     if ${gl_cv_cc_visibility+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793
6794       gl_save_CFLAGS="$CFLAGS"
6795       CFLAGS="$CFLAGS -fvisibility=hidden"
6796                                     if test $gl_cv_cc_vis_werror = yes; then
6797         CFLAGS="$CFLAGS -Werror"
6798       fi
6799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6802              extern __attribute__((__visibility__("default"))) int exportedvar;
6803              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6804              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6805              void dummyfunc (void) {}
6806
6807 int
6808 main ()
6809 {
6810
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816   gl_cv_cc_visibility=yes
6817 else
6818   gl_cv_cc_visibility=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821       CFLAGS="$gl_save_CFLAGS"
6822 fi
6823
6824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6825 $as_echo "$gl_cv_cc_visibility" >&6; }
6826     if test $gl_cv_cc_visibility = yes; then
6827       CFLAG_VISIBILITY="-fvisibility=hidden"
6828       HAVE_VISIBILITY=1
6829     fi
6830   fi
6831
6832
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6836 _ACEOF
6837
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6840 $as_echo_n "checking for inline... " >&6; }
6841 if ${ac_cv_c_inline+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   ac_cv_c_inline=no
6845 for ac_kw in inline __inline__ __inline; do
6846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848 #ifndef __cplusplus
6849 typedef int foo_t;
6850 static $ac_kw foo_t static_foo () {return 0; }
6851 $ac_kw foo_t foo () {return 0; }
6852 #endif
6853
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856   ac_cv_c_inline=$ac_kw
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859   test "$ac_cv_c_inline" != no && break
6860 done
6861
6862 fi
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6864 $as_echo "$ac_cv_c_inline" >&6; }
6865
6866 case $ac_cv_c_inline in
6867   inline | yes) ;;
6868   *)
6869     case $ac_cv_c_inline in
6870       no) ac_val=;;
6871       *) ac_val=$ac_cv_c_inline;;
6872     esac
6873     cat >>confdefs.h <<_ACEOF
6874 #ifndef __cplusplus
6875 #define inline $ac_val
6876 #endif
6877 _ACEOF
6878     ;;
6879 esac
6880
6881 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6882 if test "x$ac_cv_type_size_t" = xyes; then :
6883
6884 else
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define size_t unsigned int
6888 _ACEOF
6889
6890 fi
6891
6892
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6894 $as_echo_n "checking for stdint.h... " >&6; }
6895 if ${gl_cv_header_stdint_h+:} false; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h.  */
6900 #include <sys/types.h>
6901             #include <stdint.h>
6902 int
6903 main ()
6904 {
6905 uintmax_t i = (uintmax_t) -1; return !i;
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_c_try_compile "$LINENO"; then :
6911   gl_cv_header_stdint_h=yes
6912 else
6913   gl_cv_header_stdint_h=no
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6918 $as_echo "$gl_cv_header_stdint_h" >&6; }
6919   if test $gl_cv_header_stdint_h = yes; then
6920
6921 cat >>confdefs.h <<_ACEOF
6922 #define HAVE_STDINT_H_WITH_UINTMAX 1
6923 _ACEOF
6924
6925   fi
6926
6927 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6928 # for constant arguments.  Useless!
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6930 $as_echo_n "checking for working alloca.h... " >&6; }
6931 if ${ac_cv_working_alloca_h+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h.  */
6936 #include <alloca.h>
6937 int
6938 main ()
6939 {
6940 char *p = (char *) alloca (2 * sizeof (int));
6941                           if (p) return 0;
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 if ac_fn_c_try_link "$LINENO"; then :
6947   ac_cv_working_alloca_h=yes
6948 else
6949   ac_cv_working_alloca_h=no
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext \
6952     conftest$ac_exeext conftest.$ac_ext
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6955 $as_echo "$ac_cv_working_alloca_h" >&6; }
6956 if test $ac_cv_working_alloca_h = yes; then
6957
6958 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6959
6960 fi
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6963 $as_echo_n "checking for alloca... " >&6; }
6964 if ${ac_cv_func_alloca_works+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969 #ifdef __GNUC__
6970 # define alloca __builtin_alloca
6971 #else
6972 # ifdef _MSC_VER
6973 #  include <malloc.h>
6974 #  define alloca _alloca
6975 # else
6976 #  ifdef HAVE_ALLOCA_H
6977 #   include <alloca.h>
6978 #  else
6979 #   ifdef _AIX
6980  #pragma alloca
6981 #   else
6982 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6983 void *alloca (size_t);
6984 #    endif
6985 #   endif
6986 #  endif
6987 # endif
6988 #endif
6989
6990 int
6991 main ()
6992 {
6993 char *p = (char *) alloca (1);
6994                                     if (p) return 0;
6995   ;
6996   return 0;
6997 }
6998 _ACEOF
6999 if ac_fn_c_try_link "$LINENO"; then :
7000   ac_cv_func_alloca_works=yes
7001 else
7002   ac_cv_func_alloca_works=no
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext \
7005     conftest$ac_exeext conftest.$ac_ext
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7008 $as_echo "$ac_cv_func_alloca_works" >&6; }
7009
7010 if test $ac_cv_func_alloca_works = yes; then
7011
7012 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7013
7014 else
7015   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7016 # that cause trouble.  Some versions do not even contain alloca or
7017 # contain a buggy version.  If you still want to use their alloca,
7018 # use ar to extract alloca.o from them instead of compiling alloca.c.
7019
7020 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7021
7022 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7023
7024
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7026 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7027 if ${ac_cv_os_cray+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h.  */
7032 #if defined CRAY && ! defined CRAY2
7033 webecray
7034 #else
7035 wenotbecray
7036 #endif
7037
7038 _ACEOF
7039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040   $EGREP "webecray" >/dev/null 2>&1; then :
7041   ac_cv_os_cray=yes
7042 else
7043   ac_cv_os_cray=no
7044 fi
7045 rm -f conftest*
7046
7047 fi
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7049 $as_echo "$ac_cv_os_cray" >&6; }
7050 if test $ac_cv_os_cray = yes; then
7051   for ac_func in _getb67 GETB67 getb67; do
7052     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7055
7056 cat >>confdefs.h <<_ACEOF
7057 #define CRAY_STACKSEG_END $ac_func
7058 _ACEOF
7059
7060     break
7061 fi
7062
7063   done
7064 fi
7065
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7067 $as_echo_n "checking stack direction for C alloca... " >&6; }
7068 if ${ac_cv_c_stack_direction+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if test "$cross_compiling" = yes; then :
7072   ac_cv_c_stack_direction=0
7073 else
7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076 $ac_includes_default
7077 int
7078 find_stack_direction (int *addr, int depth)
7079 {
7080   int dir, dummy = 0;
7081   if (! addr)
7082     addr = &dummy;
7083   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7084   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7085   return dir + dummy;
7086 }
7087
7088 int
7089 main (int argc, char **argv)
7090 {
7091   return find_stack_direction (0, argc + !argv + 20) < 0;
7092 }
7093 _ACEOF
7094 if ac_fn_c_try_run "$LINENO"; then :
7095   ac_cv_c_stack_direction=1
7096 else
7097   ac_cv_c_stack_direction=-1
7098 fi
7099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7100   conftest.$ac_objext conftest.beam conftest.$ac_ext
7101 fi
7102
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7105 $as_echo "$ac_cv_c_stack_direction" >&6; }
7106 cat >>confdefs.h <<_ACEOF
7107 #define STACK_DIRECTION $ac_cv_c_stack_direction
7108 _ACEOF
7109
7110
7111 fi
7112
7113
7114
7115
7116   for ac_header in $ac_header_list
7117 do :
7118   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7120 "
7121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7122   cat >>confdefs.h <<_ACEOF
7123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124 _ACEOF
7125
7126 fi
7127
7128 done
7129
7130
7131
7132
7133
7134
7135
7136
7137 for ac_func in getpagesize
7138 do :
7139   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7140 if test "x$ac_cv_func_getpagesize" = xyes; then :
7141   cat >>confdefs.h <<_ACEOF
7142 #define HAVE_GETPAGESIZE 1
7143 _ACEOF
7144
7145 fi
7146 done
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7149 $as_echo_n "checking for working mmap... " >&6; }
7150 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if test "$cross_compiling" = yes; then :
7154   ac_cv_func_mmap_fixed_mapped=no
7155 else
7156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h.  */
7158 $ac_includes_default
7159 /* malloc might have been renamed as rpl_malloc. */
7160 #undef malloc
7161
7162 /* Thanks to Mike Haertel and Jim Avera for this test.
7163    Here is a matrix of mmap possibilities:
7164         mmap private not fixed
7165         mmap private fixed at somewhere currently unmapped
7166         mmap private fixed at somewhere already mapped
7167         mmap shared not fixed
7168         mmap shared fixed at somewhere currently unmapped
7169         mmap shared fixed at somewhere already mapped
7170    For private mappings, we should verify that changes cannot be read()
7171    back from the file, nor mmap's back from the file at a different
7172    address.  (There have been systems where private was not correctly
7173    implemented like the infamous i386 svr4.0, and systems where the
7174    VM page cache was not coherent with the file system buffer cache
7175    like early versions of FreeBSD and possibly contemporary NetBSD.)
7176    For shared mappings, we should conversely verify that changes get
7177    propagated back to all the places they're supposed to be.
7178
7179    Grep wants private fixed already mapped.
7180    The main things grep needs to know about mmap are:
7181    * does it exist and is it safe to write into the mmap'd area
7182    * how to use it (BSD variants)  */
7183
7184 #include <fcntl.h>
7185 #include <sys/mman.h>
7186
7187 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7188 char *malloc ();
7189 #endif
7190
7191 /* This mess was copied from the GNU getpagesize.h.  */
7192 #ifndef HAVE_GETPAGESIZE
7193 # ifdef _SC_PAGESIZE
7194 #  define getpagesize() sysconf(_SC_PAGESIZE)
7195 # else /* no _SC_PAGESIZE */
7196 #  ifdef HAVE_SYS_PARAM_H
7197 #   include <sys/param.h>
7198 #   ifdef EXEC_PAGESIZE
7199 #    define getpagesize() EXEC_PAGESIZE
7200 #   else /* no EXEC_PAGESIZE */
7201 #    ifdef NBPG
7202 #     define getpagesize() NBPG * CLSIZE
7203 #     ifndef CLSIZE
7204 #      define CLSIZE 1
7205 #     endif /* no CLSIZE */
7206 #    else /* no NBPG */
7207 #     ifdef NBPC
7208 #      define getpagesize() NBPC
7209 #     else /* no NBPC */
7210 #      ifdef PAGESIZE
7211 #       define getpagesize() PAGESIZE
7212 #      endif /* PAGESIZE */
7213 #     endif /* no NBPC */
7214 #    endif /* no NBPG */
7215 #   endif /* no EXEC_PAGESIZE */
7216 #  else /* no HAVE_SYS_PARAM_H */
7217 #   define getpagesize() 8192   /* punt totally */
7218 #  endif /* no HAVE_SYS_PARAM_H */
7219 # endif /* no _SC_PAGESIZE */
7220
7221 #endif /* no HAVE_GETPAGESIZE */
7222
7223 int
7224 main ()
7225 {
7226   char *data, *data2, *data3;
7227   const char *cdata2;
7228   int i, pagesize;
7229   int fd, fd2;
7230
7231   pagesize = getpagesize ();
7232
7233   /* First, make a file with some known garbage in it. */
7234   data = (char *) malloc (pagesize);
7235   if (!data)
7236     return 1;
7237   for (i = 0; i < pagesize; ++i)
7238     *(data + i) = rand ();
7239   umask (0);
7240   fd = creat ("conftest.mmap", 0600);
7241   if (fd < 0)
7242     return 2;
7243   if (write (fd, data, pagesize) != pagesize)
7244     return 3;
7245   close (fd);
7246
7247   /* Next, check that the tail of a page is zero-filled.  File must have
7248      non-zero length, otherwise we risk SIGBUS for entire page.  */
7249   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7250   if (fd2 < 0)
7251     return 4;
7252   cdata2 = "";
7253   if (write (fd2, cdata2, 1) != 1)
7254     return 5;
7255   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7256   if (data2 == MAP_FAILED)
7257     return 6;
7258   for (i = 0; i < pagesize; ++i)
7259     if (*(data2 + i))
7260       return 7;
7261   close (fd2);
7262   if (munmap (data2, pagesize))
7263     return 8;
7264
7265   /* Next, try to mmap the file at a fixed address which already has
7266      something else allocated at it.  If we can, also make sure that
7267      we see the same garbage.  */
7268   fd = open ("conftest.mmap", O_RDWR);
7269   if (fd < 0)
7270     return 9;
7271   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7272                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7273     return 10;
7274   for (i = 0; i < pagesize; ++i)
7275     if (*(data + i) != *(data2 + i))
7276       return 11;
7277
7278   /* Finally, make sure that changes to the mapped area do not
7279      percolate back to the file as seen by read().  (This is a bug on
7280      some variants of i386 svr4.0.)  */
7281   for (i = 0; i < pagesize; ++i)
7282     *(data2 + i) = *(data2 + i) + 1;
7283   data3 = (char *) malloc (pagesize);
7284   if (!data3)
7285     return 12;
7286   if (read (fd, data3, pagesize) != pagesize)
7287     return 13;
7288   for (i = 0; i < pagesize; ++i)
7289     if (*(data + i) != *(data3 + i))
7290       return 14;
7291   close (fd);
7292   free (data);
7293   free (data3);
7294   return 0;
7295 }
7296 _ACEOF
7297 if ac_fn_c_try_run "$LINENO"; then :
7298   ac_cv_func_mmap_fixed_mapped=yes
7299 else
7300   ac_cv_func_mmap_fixed_mapped=no
7301 fi
7302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7303   conftest.$ac_objext conftest.beam conftest.$ac_ext
7304 fi
7305
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7308 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7310
7311 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7312
7313 fi
7314 rm -f conftest.mmap conftest.txt
7315
7316
7317
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7319 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7320 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323
7324       gt_cv_int_divbyzero_sigfpe=
7325       case "$host_os" in
7326         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7327           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7328           # compiling. If we were to perform the real test, 1 Crash Report
7329           # dialog window would pop up.
7330           case "$host_cpu" in
7331             i[34567]86 | x86_64)
7332               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7333           esac
7334           ;;
7335       esac
7336       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7337         if test "$cross_compiling" = yes; then :
7338
7339             # Guess based on the CPU.
7340             case "$host_cpu" in
7341               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7342                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7343               *)
7344                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7345             esac
7346
7347 else
7348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350
7351 #include <stdlib.h>
7352 #include <signal.h>
7353
7354 static void
7355 sigfpe_handler (int sig)
7356 {
7357   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7358   exit (sig != SIGFPE);
7359 }
7360
7361 int x = 1;
7362 int y = 0;
7363 int z;
7364 int nan;
7365
7366 int main ()
7367 {
7368   signal (SIGFPE, sigfpe_handler);
7369 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7370 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7371   signal (SIGTRAP, sigfpe_handler);
7372 #endif
7373 /* Linux/SPARC yields signal SIGILL.  */
7374 #if defined (__sparc__) && defined (__linux__)
7375   signal (SIGILL, sigfpe_handler);
7376 #endif
7377
7378   z = x / y;
7379   nan = y / y;
7380   exit (2);
7381 }
7382
7383 _ACEOF
7384 if ac_fn_c_try_run "$LINENO"; then :
7385   gt_cv_int_divbyzero_sigfpe=yes
7386 else
7387   gt_cv_int_divbyzero_sigfpe=no
7388 fi
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390   conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 fi
7392
7393       fi
7394
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7397 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7398   case "$gt_cv_int_divbyzero_sigfpe" in
7399     *yes) value=1;;
7400     *) value=0;;
7401   esac
7402
7403 cat >>confdefs.h <<_ACEOF
7404 #define INTDIV0_RAISES_SIGFPE $value
7405 _ACEOF
7406
7407
7408
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7410 $as_echo_n "checking for inttypes.h... " >&6; }
7411 if ${gl_cv_header_inttypes_h+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h.  */
7416
7417 #include <sys/types.h>
7418 #include <inttypes.h>
7419
7420 int
7421 main ()
7422 {
7423 uintmax_t i = (uintmax_t) -1; return !i;
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429   gl_cv_header_inttypes_h=yes
7430 else
7431   gl_cv_header_inttypes_h=no
7432 fi
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7436 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7437   if test $gl_cv_header_inttypes_h = yes; then
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7441 _ACEOF
7442
7443   fi
7444
7445
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7447 $as_echo_n "checking for unsigned long long int... " >&6; }
7448 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   ac_cv_type_unsigned_long_long_int=yes
7452      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7453        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h.  */
7455
7456   /* For now, do not test the preprocessor; as of 2007 there are too many
7457          implementations with broken preprocessors.  Perhaps this can
7458          be revisited in 2012.  In the meantime, code should not expect
7459          #if to work with literals wider than 32 bits.  */
7460       /* Test literals.  */
7461       long long int ll = 9223372036854775807ll;
7462       long long int nll = -9223372036854775807LL;
7463       unsigned long long int ull = 18446744073709551615ULL;
7464       /* Test constant expressions.   */
7465       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7466                      ? 1 : -1)];
7467       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7468                      ? 1 : -1)];
7469       int i = 63;
7470 int
7471 main ()
7472 {
7473 /* Test availability of runtime routines for shift and division.  */
7474       long long int llmax = 9223372036854775807ll;
7475       unsigned long long int ullmax = 18446744073709551615ull;
7476       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7477               | (llmax / ll) | (llmax % ll)
7478               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7479               | (ullmax / ull) | (ullmax % ull));
7480   ;
7481   return 0;
7482 }
7483
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486
7487 else
7488   ac_cv_type_unsigned_long_long_int=no
7489 fi
7490 rm -f core conftest.err conftest.$ac_objext \
7491     conftest$ac_exeext conftest.$ac_ext
7492      fi
7493 fi
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7495 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7496   if test $ac_cv_type_unsigned_long_long_int = yes; then
7497
7498 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7499
7500   fi
7501
7502
7503
7504
7505   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7506
7507     test $ac_cv_type_unsigned_long_long_int = yes \
7508       && ac_type='unsigned long long' \
7509       || ac_type='unsigned long'
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define uintmax_t $ac_type
7513 _ACEOF
7514
7515   else
7516
7517 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7518
7519   fi
7520
7521
7522   for ac_header in inttypes.h
7523 do :
7524   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7525 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7526   cat >>confdefs.h <<_ACEOF
7527 #define HAVE_INTTYPES_H 1
7528 _ACEOF
7529
7530 fi
7531
7532 done
7533
7534   if test $ac_cv_header_inttypes_h = yes; then
7535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7536 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7537 if ${gt_cv_inttypes_pri_broken+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540
7541         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h.  */
7543
7544 #include <inttypes.h>
7545 #ifdef PRId32
7546 char *p = PRId32;
7547 #endif
7548
7549 int
7550 main ()
7551 {
7552
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558   gt_cv_inttypes_pri_broken=no
7559 else
7560   gt_cv_inttypes_pri_broken=yes
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7566 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7567   fi
7568   if test "$gt_cv_inttypes_pri_broken" = yes; then
7569
7570 cat >>confdefs.h <<_ACEOF
7571 #define PRI_MACROS_BROKEN 1
7572 _ACEOF
7573
7574     PRI_MACROS_BROKEN=1
7575   else
7576     PRI_MACROS_BROKEN=0
7577   fi
7578
7579
7580
7581
7582
7583
7584
7585   # Check whether --enable-threads was given.
7586 if test "${enable_threads+set}" = set; then :
7587   enableval=$enable_threads; gl_use_threads=$enableval
7588 else
7589   if test -n "$gl_use_threads_default"; then
7590        gl_use_threads="$gl_use_threads_default"
7591      else
7592        case "$host_os" in
7593                                                                osf*) gl_use_threads=no ;;
7594          cygwin*)
7595                case `uname -r` in
7596                  1.[0-5].*) gl_use_threads=no ;;
7597                  *)         gl_use_threads=yes ;;
7598                esac
7599                ;;
7600          *)    gl_use_threads=yes ;;
7601        esac
7602      fi
7603
7604 fi
7605
7606   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7607     # For using <pthread.h>:
7608     case "$host_os" in
7609       osf*)
7610         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7611         # groks <pthread.h>. cc also understands the flag -pthread, but
7612         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7613         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7614         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7615         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7616         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7617         ;;
7618     esac
7619     # Some systems optimize for single-threaded programs by default, and
7620     # need special flags to disable these optimizations. For example, the
7621     # definition of 'errno' in <errno.h>.
7622     case "$host_os" in
7623       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7624       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7625     esac
7626   fi
7627
7628
7629
7630
7631
7632       if test "X$prefix" = "XNONE"; then
7633     acl_final_prefix="$ac_default_prefix"
7634   else
7635     acl_final_prefix="$prefix"
7636   fi
7637   if test "X$exec_prefix" = "XNONE"; then
7638     acl_final_exec_prefix='${prefix}'
7639   else
7640     acl_final_exec_prefix="$exec_prefix"
7641   fi
7642   acl_save_prefix="$prefix"
7643   prefix="$acl_final_prefix"
7644   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7645   prefix="$acl_save_prefix"
7646
7647
7648
7649 # Check whether --with-gnu-ld was given.
7650 if test "${with_gnu_ld+set}" = set; then :
7651   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7652 else
7653   with_gnu_ld=no
7654 fi
7655
7656 # Prepare PATH_SEPARATOR.
7657 # The user is always right.
7658 if test "${PATH_SEPARATOR+set}" != set; then
7659   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7660   # contains only /bin. Note that ksh looks also at the FPATH variable,
7661   # so we have to set that as well for the test.
7662   PATH_SEPARATOR=:
7663   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7664     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7665            || PATH_SEPARATOR=';'
7666        }
7667 fi
7668
7669 ac_prog=ld
7670 if test "$GCC" = yes; then
7671   # Check if gcc -print-prog-name=ld gives a path.
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7673 $as_echo_n "checking for ld used by $CC... " >&6; }
7674   case $host in
7675   *-*-mingw*)
7676     # gcc leaves a trailing carriage return which upsets mingw
7677     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7678   *)
7679     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7680   esac
7681   case $ac_prog in
7682     # Accept absolute paths.
7683     [\\/]* | ?:[\\/]*)
7684       re_direlt='/[^/][^/]*/\.\./'
7685       # Canonicalize the pathname of ld
7686       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7687       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7688         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7689       done
7690       test -z "$LD" && LD="$ac_prog"
7691       ;;
7692   "")
7693     # If it fails, then pretend we aren't using GCC.
7694     ac_prog=ld
7695     ;;
7696   *)
7697     # If it is relative, then search for the first ld in PATH.
7698     with_gnu_ld=unknown
7699     ;;
7700   esac
7701 elif test "$with_gnu_ld" = yes; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7703 $as_echo_n "checking for GNU ld... " >&6; }
7704 else
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7706 $as_echo_n "checking for non-GNU ld... " >&6; }
7707 fi
7708 if ${acl_cv_path_LD+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if test -z "$LD"; then
7712   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7713   for ac_dir in $PATH; do
7714     IFS="$acl_save_ifs"
7715     test -z "$ac_dir" && ac_dir=.
7716     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7717       acl_cv_path_LD="$ac_dir/$ac_prog"
7718       # Check to see if the program is GNU ld.  I'd rather use --version,
7719       # but apparently some variants of GNU ld only accept -v.
7720       # Break only if it was the GNU/non-GNU ld that we prefer.
7721       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7722       *GNU* | *'with BFD'*)
7723         test "$with_gnu_ld" != no && break
7724         ;;
7725       *)
7726         test "$with_gnu_ld" != yes && break
7727         ;;
7728       esac
7729     fi
7730   done
7731   IFS="$acl_save_ifs"
7732 else
7733   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7734 fi
7735 fi
7736
7737 LD="$acl_cv_path_LD"
7738 if test -n "$LD"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7740 $as_echo "$LD" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7747 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7748 if ${acl_cv_prog_gnu_ld+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7752 case `$LD -v 2>&1 </dev/null` in
7753 *GNU* | *'with BFD'*)
7754   acl_cv_prog_gnu_ld=yes
7755   ;;
7756 *)
7757   acl_cv_prog_gnu_ld=no
7758   ;;
7759 esac
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7762 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7763 with_gnu_ld=$acl_cv_prog_gnu_ld
7764
7765
7766
7767
7768                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7769 $as_echo_n "checking for shared library run path origin... " >&6; }
7770 if ${acl_cv_rpath+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773
7774     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7775     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7776     . ./conftest.sh
7777     rm -f ./conftest.sh
7778     acl_cv_rpath=done
7779
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7782 $as_echo "$acl_cv_rpath" >&6; }
7783   wl="$acl_cv_wl"
7784   acl_libext="$acl_cv_libext"
7785   acl_shlibext="$acl_cv_shlibext"
7786   acl_libname_spec="$acl_cv_libname_spec"
7787   acl_library_names_spec="$acl_cv_library_names_spec"
7788   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7789   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7790   acl_hardcode_direct="$acl_cv_hardcode_direct"
7791   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7792     # Check whether --enable-rpath was given.
7793 if test "${enable_rpath+set}" = set; then :
7794   enableval=$enable_rpath; :
7795 else
7796   enable_rpath=yes
7797 fi
7798
7799
7800
7801
7802   acl_libdirstem=lib
7803   acl_libdirstem2=
7804   case "$host_os" in
7805     solaris*)
7806                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7807 $as_echo_n "checking for 64-bit host... " >&6; }
7808 if ${gl_cv_solaris_64bit+:} false; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h.  */
7813
7814 #ifdef _LP64
7815 sixtyfour bits
7816 #endif
7817
7818 _ACEOF
7819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7821   gl_cv_solaris_64bit=yes
7822 else
7823   gl_cv_solaris_64bit=no
7824 fi
7825 rm -f conftest*
7826
7827
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7830 $as_echo "$gl_cv_solaris_64bit" >&6; }
7831       if test $gl_cv_solaris_64bit = yes; then
7832         acl_libdirstem=lib/64
7833         case "$host_cpu" in
7834           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7835           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7836         esac
7837       fi
7838       ;;
7839     *)
7840       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7841       if test -n "$searchpath"; then
7842         acl_save_IFS="${IFS=    }"; IFS=":"
7843         for searchdir in $searchpath; do
7844           if test -d "$searchdir"; then
7845             case "$searchdir" in
7846               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7847               */../ | */.. )
7848                 # Better ignore directories of this form. They are misleading.
7849                 ;;
7850               *) searchdir=`cd "$searchdir" && pwd`
7851                  case "$searchdir" in
7852                    */lib64 ) acl_libdirstem=lib64 ;;
7853                  esac ;;
7854             esac
7855           fi
7856         done
7857         IFS="$acl_save_IFS"
7858       fi
7859       ;;
7860   esac
7861   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7862
7863
7864
7865   gl_threads_api=none
7866   LIBTHREAD=
7867   LTLIBTHREAD=
7868   LIBMULTITHREAD=
7869   LTLIBMULTITHREAD=
7870   if test "$gl_use_threads" != no; then
7871         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7872 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7873 if ${gl_cv_have_weak+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   gl_cv_have_weak=no
7877               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h.  */
7879 extern void xyzzy ();
7880 #pragma weak xyzzy
7881 int
7882 main ()
7883 {
7884 xyzzy();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890   gl_cv_have_weak=maybe
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893     conftest$ac_exeext conftest.$ac_ext
7894        if test $gl_cv_have_weak = maybe; then
7895                            if test "$cross_compiling" = yes; then :
7896                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898 #ifdef __ELF__
7899                Extensible Linking Format
7900                #endif
7901
7902 _ACEOF
7903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7904   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7905   gl_cv_have_weak="guessing yes"
7906 else
7907   gl_cv_have_weak="guessing no"
7908 fi
7909 rm -f conftest*
7910
7911
7912 else
7913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915
7916 #include <stdio.h>
7917 #pragma weak fputs
7918 int main ()
7919 {
7920   return (fputs == NULL);
7921 }
7922 _ACEOF
7923 if ac_fn_c_try_run "$LINENO"; then :
7924   gl_cv_have_weak=yes
7925 else
7926   gl_cv_have_weak=no
7927 fi
7928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929   conftest.$ac_objext conftest.beam conftest.$ac_ext
7930 fi
7931
7932        fi
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7936 $as_echo "$gl_cv_have_weak" >&6; }
7937     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7938       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7939       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7940       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7941 if test "x$ac_cv_header_pthread_h" = xyes; then :
7942   gl_have_pthread_h=yes
7943 else
7944   gl_have_pthread_h=no
7945 fi
7946
7947
7948       if test "$gl_have_pthread_h" = yes; then
7949         # Other possible tests:
7950         #   -lpthreads (FSU threads, PCthreads)
7951         #   -lgthreads
7952         gl_have_pthread=
7953         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7954         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7955         # the second one only in libpthread, and lock.c needs it.
7956         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h.  */
7958 #include <pthread.h>
7959 int
7960 main ()
7961 {
7962 pthread_mutex_lock((pthread_mutex_t*)0);
7963                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969   gl_have_pthread=yes
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext \
7972     conftest$ac_exeext conftest.$ac_ext
7973         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7974         # since it is defined as a macro on OSF/1.)
7975         if test -n "$gl_have_pthread"; then
7976           # The program links fine without libpthread. But it may actually
7977           # need to link with libpthread in order to create multiple threads.
7978           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7979 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7980 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lpthread  $LIBS"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987
7988 /* Override any GCC internal prototype to avoid an error.
7989    Use char because int might match the return type of a GCC
7990    builtin and then its argument prototype would still apply.  */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 char pthread_kill ();
7995 int
7996 main ()
7997 {
7998 return pthread_kill ();
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004   ac_cv_lib_pthread_pthread_kill=yes
8005 else
8006   ac_cv_lib_pthread_pthread_kill=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext \
8009     conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_lib_save_LIBS
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8013 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8014 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8015   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8016              # On Solaris and HP-UX, most pthread functions exist also in libc.
8017              # Therefore pthread_in_use() needs to actually try to create a
8018              # thread: pthread_create from libc will fail, whereas
8019              # pthread_create will actually create a thread.
8020              case "$host_os" in
8021                solaris* | hpux*)
8022
8023 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8024
8025              esac
8026
8027 fi
8028
8029         else
8030           # Some library is needed. Try libpthread and libc_r.
8031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8032 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8033 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   ac_check_lib_save_LIBS=$LIBS
8037 LIBS="-lpthread  $LIBS"
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h.  */
8040
8041 /* Override any GCC internal prototype to avoid an error.
8042    Use char because int might match the return type of a GCC
8043    builtin and then its argument prototype would still apply.  */
8044 #ifdef __cplusplus
8045 extern "C"
8046 #endif
8047 char pthread_kill ();
8048 int
8049 main ()
8050 {
8051 return pthread_kill ();
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057   ac_cv_lib_pthread_pthread_kill=yes
8058 else
8059   ac_cv_lib_pthread_pthread_kill=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext \
8062     conftest$ac_exeext conftest.$ac_ext
8063 LIBS=$ac_check_lib_save_LIBS
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8066 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8067 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8068   gl_have_pthread=yes
8069              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8070              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8071 fi
8072
8073           if test -z "$gl_have_pthread"; then
8074             # For FreeBSD 4.
8075             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8076 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8077 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   ac_check_lib_save_LIBS=$LIBS
8081 LIBS="-lc_r  $LIBS"
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h.  */
8084
8085 /* Override any GCC internal prototype to avoid an error.
8086    Use char because int might match the return type of a GCC
8087    builtin and then its argument prototype would still apply.  */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 char pthread_kill ();
8092 int
8093 main ()
8094 {
8095 return pthread_kill ();
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101   ac_cv_lib_c_r_pthread_kill=yes
8102 else
8103   ac_cv_lib_c_r_pthread_kill=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106     conftest$ac_exeext conftest.$ac_ext
8107 LIBS=$ac_check_lib_save_LIBS
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8110 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8111 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8112   gl_have_pthread=yes
8113                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8114                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8115 fi
8116
8117           fi
8118         fi
8119         if test -n "$gl_have_pthread"; then
8120           gl_threads_api=posix
8121
8122 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8123
8124           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8125             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8126
8127 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8128
8129               LIBTHREAD=
8130               LTLIBTHREAD=
8131             fi
8132           fi
8133         fi
8134       fi
8135     fi
8136     if test -z "$gl_have_pthread"; then
8137       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8138         gl_have_solaristhread=
8139         gl_save_LIBS="$LIBS"
8140         LIBS="$LIBS -lthread"
8141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h.  */
8143
8144 #include <thread.h>
8145 #include <synch.h>
8146
8147 int
8148 main ()
8149 {
8150 thr_self();
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156   gl_have_solaristhread=yes
8157 fi
8158 rm -f core conftest.err conftest.$ac_objext \
8159     conftest$ac_exeext conftest.$ac_ext
8160         LIBS="$gl_save_LIBS"
8161         if test -n "$gl_have_solaristhread"; then
8162           gl_threads_api=solaris
8163           LIBTHREAD=-lthread
8164           LTLIBTHREAD=-lthread
8165           LIBMULTITHREAD="$LIBTHREAD"
8166           LTLIBMULTITHREAD="$LTLIBTHREAD"
8167
8168 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8169
8170           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8171
8172 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8173
8174             LIBTHREAD=
8175             LTLIBTHREAD=
8176           fi
8177         fi
8178       fi
8179     fi
8180     if test "$gl_use_threads" = pth; then
8181       gl_save_CPPFLAGS="$CPPFLAGS"
8182
8183
8184
8185
8186
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8188 $as_echo_n "checking how to link with libpth... " >&6; }
8189 if ${ac_cv_libpth_libs+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192
8193
8194
8195
8196
8197
8198
8199
8200     use_additional=yes
8201
8202   acl_save_prefix="$prefix"
8203   prefix="$acl_final_prefix"
8204   acl_save_exec_prefix="$exec_prefix"
8205   exec_prefix="$acl_final_exec_prefix"
8206
8207     eval additional_includedir=\"$includedir\"
8208     eval additional_libdir=\"$libdir\"
8209
8210   exec_prefix="$acl_save_exec_prefix"
8211   prefix="$acl_save_prefix"
8212
8213
8214 # Check whether --with-libpth-prefix was given.
8215 if test "${with_libpth_prefix+set}" = set; then :
8216   withval=$with_libpth_prefix;
8217     if test "X$withval" = "Xno"; then
8218       use_additional=no
8219     else
8220       if test "X$withval" = "X"; then
8221
8222   acl_save_prefix="$prefix"
8223   prefix="$acl_final_prefix"
8224   acl_save_exec_prefix="$exec_prefix"
8225   exec_prefix="$acl_final_exec_prefix"
8226
8227           eval additional_includedir=\"$includedir\"
8228           eval additional_libdir=\"$libdir\"
8229
8230   exec_prefix="$acl_save_exec_prefix"
8231   prefix="$acl_save_prefix"
8232
8233       else
8234         additional_includedir="$withval/include"
8235         additional_libdir="$withval/$acl_libdirstem"
8236         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8237            && ! test -d "$withval/$acl_libdirstem"; then
8238           additional_libdir="$withval/$acl_libdirstem2"
8239         fi
8240       fi
8241     fi
8242
8243 fi
8244
8245       LIBPTH=
8246   LTLIBPTH=
8247   INCPTH=
8248   LIBPTH_PREFIX=
8249       HAVE_LIBPTH=
8250   rpathdirs=
8251   ltrpathdirs=
8252   names_already_handled=
8253   names_next_round='pth '
8254   while test -n "$names_next_round"; do
8255     names_this_round="$names_next_round"
8256     names_next_round=
8257     for name in $names_this_round; do
8258       already_handled=
8259       for n in $names_already_handled; do
8260         if test "$n" = "$name"; then
8261           already_handled=yes
8262           break
8263         fi
8264       done
8265       if test -z "$already_handled"; then
8266         names_already_handled="$names_already_handled $name"
8267                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8268         eval value=\"\$HAVE_LIB$uppername\"
8269         if test -n "$value"; then
8270           if test "$value" = yes; then
8271             eval value=\"\$LIB$uppername\"
8272             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8273             eval value=\"\$LTLIB$uppername\"
8274             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8275           else
8276                                     :
8277           fi
8278         else
8279                               found_dir=
8280           found_la=
8281           found_so=
8282           found_a=
8283           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8284           if test -n "$acl_shlibext"; then
8285             shrext=".$acl_shlibext"             # typically: shrext=.so
8286           else
8287             shrext=
8288           fi
8289           if test $use_additional = yes; then
8290             dir="$additional_libdir"
8291                                     if test -n "$acl_shlibext"; then
8292               if test -f "$dir/$libname$shrext"; then
8293                 found_dir="$dir"
8294                 found_so="$dir/$libname$shrext"
8295               else
8296                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8297                   ver=`(cd "$dir" && \
8298                         for f in "$libname$shrext".*; do echo "$f"; done \
8299                         | sed -e "s,^$libname$shrext\\\\.,," \
8300                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8301                         | sed 1q ) 2>/dev/null`
8302                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8303                     found_dir="$dir"
8304                     found_so="$dir/$libname$shrext.$ver"
8305                   fi
8306                 else
8307                   eval library_names=\"$acl_library_names_spec\"
8308                   for f in $library_names; do
8309                     if test -f "$dir/$f"; then
8310                       found_dir="$dir"
8311                       found_so="$dir/$f"
8312                       break
8313                     fi
8314                   done
8315                 fi
8316               fi
8317             fi
8318                         if test "X$found_dir" = "X"; then
8319               if test -f "$dir/$libname.$acl_libext"; then
8320                 found_dir="$dir"
8321                 found_a="$dir/$libname.$acl_libext"
8322               fi
8323             fi
8324             if test "X$found_dir" != "X"; then
8325               if test -f "$dir/$libname.la"; then
8326                 found_la="$dir/$libname.la"
8327               fi
8328             fi
8329           fi
8330           if test "X$found_dir" = "X"; then
8331             for x in $LDFLAGS $LTLIBPTH; do
8332
8333   acl_save_prefix="$prefix"
8334   prefix="$acl_final_prefix"
8335   acl_save_exec_prefix="$exec_prefix"
8336   exec_prefix="$acl_final_exec_prefix"
8337   eval x=\"$x\"
8338   exec_prefix="$acl_save_exec_prefix"
8339   prefix="$acl_save_prefix"
8340
8341               case "$x" in
8342                 -L*)
8343                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8344                                     if test -n "$acl_shlibext"; then
8345                     if test -f "$dir/$libname$shrext"; then
8346                       found_dir="$dir"
8347                       found_so="$dir/$libname$shrext"
8348                     else
8349                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8350                         ver=`(cd "$dir" && \
8351                               for f in "$libname$shrext".*; do echo "$f"; done \
8352                               | sed -e "s,^$libname$shrext\\\\.,," \
8353                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8354                               | sed 1q ) 2>/dev/null`
8355                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8356                           found_dir="$dir"
8357                           found_so="$dir/$libname$shrext.$ver"
8358                         fi
8359                       else
8360                         eval library_names=\"$acl_library_names_spec\"
8361                         for f in $library_names; do
8362                           if test -f "$dir/$f"; then
8363                             found_dir="$dir"
8364                             found_so="$dir/$f"
8365                             break
8366                           fi
8367                         done
8368                       fi
8369                     fi
8370                   fi
8371                                     if test "X$found_dir" = "X"; then
8372                     if test -f "$dir/$libname.$acl_libext"; then
8373                       found_dir="$dir"
8374                       found_a="$dir/$libname.$acl_libext"
8375                     fi
8376                   fi
8377                   if test "X$found_dir" != "X"; then
8378                     if test -f "$dir/$libname.la"; then
8379                       found_la="$dir/$libname.la"
8380                     fi
8381                   fi
8382                   ;;
8383               esac
8384               if test "X$found_dir" != "X"; then
8385                 break
8386               fi
8387             done
8388           fi
8389           if test "X$found_dir" != "X"; then
8390                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8391             if test "X$found_so" != "X"; then
8392                                                         if test "$enable_rpath" = no \
8393                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8394                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8395                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8396               else
8397                                                                                 haveit=
8398                 for x in $ltrpathdirs; do
8399                   if test "X$x" = "X$found_dir"; then
8400                     haveit=yes
8401                     break
8402                   fi
8403                 done
8404                 if test -z "$haveit"; then
8405                   ltrpathdirs="$ltrpathdirs $found_dir"
8406                 fi
8407                                 if test "$acl_hardcode_direct" = yes; then
8408                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8409                 else
8410                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8411                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8412                                                             haveit=
8413                     for x in $rpathdirs; do
8414                       if test "X$x" = "X$found_dir"; then
8415                         haveit=yes
8416                         break
8417                       fi
8418                     done
8419                     if test -z "$haveit"; then
8420                       rpathdirs="$rpathdirs $found_dir"
8421                     fi
8422                   else
8423                                                                                 haveit=
8424                     for x in $LDFLAGS $LIBPTH; do
8425
8426   acl_save_prefix="$prefix"
8427   prefix="$acl_final_prefix"
8428   acl_save_exec_prefix="$exec_prefix"
8429   exec_prefix="$acl_final_exec_prefix"
8430   eval x=\"$x\"
8431   exec_prefix="$acl_save_exec_prefix"
8432   prefix="$acl_save_prefix"
8433
8434                       if test "X$x" = "X-L$found_dir"; then
8435                         haveit=yes
8436                         break
8437                       fi
8438                     done
8439                     if test -z "$haveit"; then
8440                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8441                     fi
8442                     if test "$acl_hardcode_minus_L" != no; then
8443                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8444                     else
8445                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8446                     fi
8447                   fi
8448                 fi
8449               fi
8450             else
8451               if test "X$found_a" != "X"; then
8452                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8453               else
8454                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8455               fi
8456             fi
8457                         additional_includedir=
8458             case "$found_dir" in
8459               */$acl_libdirstem | */$acl_libdirstem/)
8460                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8461                 if test "$name" = 'pth'; then
8462                   LIBPTH_PREFIX="$basedir"
8463                 fi
8464                 additional_includedir="$basedir/include"
8465                 ;;
8466               */$acl_libdirstem2 | */$acl_libdirstem2/)
8467                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8468                 if test "$name" = 'pth'; then
8469                   LIBPTH_PREFIX="$basedir"
8470                 fi
8471                 additional_includedir="$basedir/include"
8472                 ;;
8473             esac
8474             if test "X$additional_includedir" != "X"; then
8475                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8476                 haveit=
8477                 if test "X$additional_includedir" = "X/usr/local/include"; then
8478                   if test -n "$GCC"; then
8479                     case $host_os in
8480                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8481                     esac
8482                   fi
8483                 fi
8484                 if test -z "$haveit"; then
8485                   for x in $CPPFLAGS $INCPTH; do
8486
8487   acl_save_prefix="$prefix"
8488   prefix="$acl_final_prefix"
8489   acl_save_exec_prefix="$exec_prefix"
8490   exec_prefix="$acl_final_exec_prefix"
8491   eval x=\"$x\"
8492   exec_prefix="$acl_save_exec_prefix"
8493   prefix="$acl_save_prefix"
8494
8495                     if test "X$x" = "X-I$additional_includedir"; then
8496                       haveit=yes
8497                       break
8498                     fi
8499                   done
8500                   if test -z "$haveit"; then
8501                     if test -d "$additional_includedir"; then
8502                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8503                     fi
8504                   fi
8505                 fi
8506               fi
8507             fi
8508                         if test -n "$found_la"; then
8509                                                         save_libdir="$libdir"
8510               case "$found_la" in
8511                 */* | *\\*) . "$found_la" ;;
8512                 *) . "./$found_la" ;;
8513               esac
8514               libdir="$save_libdir"
8515                             for dep in $dependency_libs; do
8516                 case "$dep" in
8517                   -L*)
8518                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8519                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8520                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8521                       haveit=
8522                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8523                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8524                         if test -n "$GCC"; then
8525                           case $host_os in
8526                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8527                           esac
8528                         fi
8529                       fi
8530                       if test -z "$haveit"; then
8531                         haveit=
8532                         for x in $LDFLAGS $LIBPTH; do
8533
8534   acl_save_prefix="$prefix"
8535   prefix="$acl_final_prefix"
8536   acl_save_exec_prefix="$exec_prefix"
8537   exec_prefix="$acl_final_exec_prefix"
8538   eval x=\"$x\"
8539   exec_prefix="$acl_save_exec_prefix"
8540   prefix="$acl_save_prefix"
8541
8542                           if test "X$x" = "X-L$additional_libdir"; then
8543                             haveit=yes
8544                             break
8545                           fi
8546                         done
8547                         if test -z "$haveit"; then
8548                           if test -d "$additional_libdir"; then
8549                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8550                           fi
8551                         fi
8552                         haveit=
8553                         for x in $LDFLAGS $LTLIBPTH; do
8554
8555   acl_save_prefix="$prefix"
8556   prefix="$acl_final_prefix"
8557   acl_save_exec_prefix="$exec_prefix"
8558   exec_prefix="$acl_final_exec_prefix"
8559   eval x=\"$x\"
8560   exec_prefix="$acl_save_exec_prefix"
8561   prefix="$acl_save_prefix"
8562
8563                           if test "X$x" = "X-L$additional_libdir"; then
8564                             haveit=yes
8565                             break
8566                           fi
8567                         done
8568                         if test -z "$haveit"; then
8569                           if test -d "$additional_libdir"; then
8570                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8571                           fi
8572                         fi
8573                       fi
8574                     fi
8575                     ;;
8576                   -R*)
8577                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8578                     if test "$enable_rpath" != no; then
8579                                                                   haveit=
8580                       for x in $rpathdirs; do
8581                         if test "X$x" = "X$dir"; then
8582                           haveit=yes
8583                           break
8584                         fi
8585                       done
8586                       if test -z "$haveit"; then
8587                         rpathdirs="$rpathdirs $dir"
8588                       fi
8589                                                                   haveit=
8590                       for x in $ltrpathdirs; do
8591                         if test "X$x" = "X$dir"; then
8592                           haveit=yes
8593                           break
8594                         fi
8595                       done
8596                       if test -z "$haveit"; then
8597                         ltrpathdirs="$ltrpathdirs $dir"
8598                       fi
8599                     fi
8600                     ;;
8601                   -l*)
8602                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8603                     ;;
8604                   *.la)
8605                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8606                     ;;
8607                   *)
8608                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8609                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8610                     ;;
8611                 esac
8612               done
8613             fi
8614           else
8615                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8616             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8617           fi
8618         fi
8619       fi
8620     done
8621   done
8622   if test "X$rpathdirs" != "X"; then
8623     if test -n "$acl_hardcode_libdir_separator"; then
8624                         alldirs=
8625       for found_dir in $rpathdirs; do
8626         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8627       done
8628             acl_save_libdir="$libdir"
8629       libdir="$alldirs"
8630       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8631       libdir="$acl_save_libdir"
8632       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8633     else
8634             for found_dir in $rpathdirs; do
8635         acl_save_libdir="$libdir"
8636         libdir="$found_dir"
8637         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8638         libdir="$acl_save_libdir"
8639         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8640       done
8641     fi
8642   fi
8643   if test "X$ltrpathdirs" != "X"; then
8644             for found_dir in $ltrpathdirs; do
8645       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8646     done
8647   fi
8648
8649
8650
8651
8652
8653
8654     ac_cv_libpth_libs="$LIBPTH"
8655     ac_cv_libpth_ltlibs="$LTLIBPTH"
8656     ac_cv_libpth_cppflags="$INCPTH"
8657     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8661 $as_echo "$ac_cv_libpth_libs" >&6; }
8662   LIBPTH="$ac_cv_libpth_libs"
8663   LTLIBPTH="$ac_cv_libpth_ltlibs"
8664   INCPTH="$ac_cv_libpth_cppflags"
8665   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8666
8667   for element in $INCPTH; do
8668     haveit=
8669     for x in $CPPFLAGS; do
8670
8671   acl_save_prefix="$prefix"
8672   prefix="$acl_final_prefix"
8673   acl_save_exec_prefix="$exec_prefix"
8674   exec_prefix="$acl_final_exec_prefix"
8675   eval x=\"$x\"
8676   exec_prefix="$acl_save_exec_prefix"
8677   prefix="$acl_save_prefix"
8678
8679       if test "X$x" = "X$element"; then
8680         haveit=yes
8681         break
8682       fi
8683     done
8684     if test -z "$haveit"; then
8685       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8686     fi
8687   done
8688
8689
8690
8691
8692       HAVE_LIBPTH=yes
8693
8694
8695
8696       gl_have_pth=
8697       gl_save_LIBS="$LIBS"
8698       LIBS="$LIBS $LIBPTH"
8699       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h.  */
8701 #include <pth.h>
8702 int
8703 main ()
8704 {
8705 pth_self();
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711   gl_have_pth=yes
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext \
8714     conftest$ac_exeext conftest.$ac_ext
8715       LIBS="$gl_save_LIBS"
8716       if test -n "$gl_have_pth"; then
8717         gl_threads_api=pth
8718         LIBTHREAD="$LIBPTH"
8719         LTLIBTHREAD="$LTLIBPTH"
8720         LIBMULTITHREAD="$LIBTHREAD"
8721         LTLIBMULTITHREAD="$LTLIBTHREAD"
8722
8723 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8724
8725         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8726           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8727
8728 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8729
8730             LIBTHREAD=
8731             LTLIBTHREAD=
8732           fi
8733         fi
8734       else
8735         CPPFLAGS="$gl_save_CPPFLAGS"
8736       fi
8737     fi
8738     if test -z "$gl_have_pthread"; then
8739       case "$gl_use_threads" in
8740         yes | windows | win32) # The 'win32' is for backward compatibility.
8741           if { case "$host_os" in
8742                  mingw*) true;;
8743                  *) false;;
8744                esac
8745              }; then
8746             gl_threads_api=windows
8747
8748 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8749
8750           fi
8751           ;;
8752       esac
8753     fi
8754   fi
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8756 $as_echo_n "checking for multithread API to use... " >&6; }
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8758 $as_echo "$gl_threads_api" >&6; }
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770   if test "$gl_threads_api" = posix; then
8771     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8772     # pthread_rwlock_* functions.
8773     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8774 "
8775 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8776
8777 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8778
8779 fi
8780
8781     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h.  */
8784
8785       #include <pthread.h>
8786 int
8787 main ()
8788 {
8789
8790 #if __FreeBSD__ == 4
8791 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8792 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8793        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8794 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8795 #else
8796 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8797 return !x;
8798 #endif
8799
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 if ac_fn_c_try_compile "$LINENO"; then :
8805
8806 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8807
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810   fi
8811   :
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824     use_additional=yes
8825
8826   acl_save_prefix="$prefix"
8827   prefix="$acl_final_prefix"
8828   acl_save_exec_prefix="$exec_prefix"
8829   exec_prefix="$acl_final_exec_prefix"
8830
8831     eval additional_includedir=\"$includedir\"
8832     eval additional_libdir=\"$libdir\"
8833
8834   exec_prefix="$acl_save_exec_prefix"
8835   prefix="$acl_save_prefix"
8836
8837
8838 # Check whether --with-libiconv-prefix was given.
8839 if test "${with_libiconv_prefix+set}" = set; then :
8840   withval=$with_libiconv_prefix;
8841     if test "X$withval" = "Xno"; then
8842       use_additional=no
8843     else
8844       if test "X$withval" = "X"; then
8845
8846   acl_save_prefix="$prefix"
8847   prefix="$acl_final_prefix"
8848   acl_save_exec_prefix="$exec_prefix"
8849   exec_prefix="$acl_final_exec_prefix"
8850
8851           eval additional_includedir=\"$includedir\"
8852           eval additional_libdir=\"$libdir\"
8853
8854   exec_prefix="$acl_save_exec_prefix"
8855   prefix="$acl_save_prefix"
8856
8857       else
8858         additional_includedir="$withval/include"
8859         additional_libdir="$withval/$acl_libdirstem"
8860         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8861            && ! test -d "$withval/$acl_libdirstem"; then
8862           additional_libdir="$withval/$acl_libdirstem2"
8863         fi
8864       fi
8865     fi
8866
8867 fi
8868
8869       LIBICONV=
8870   LTLIBICONV=
8871   INCICONV=
8872   LIBICONV_PREFIX=
8873       HAVE_LIBICONV=
8874   rpathdirs=
8875   ltrpathdirs=
8876   names_already_handled=
8877   names_next_round='iconv '
8878   while test -n "$names_next_round"; do
8879     names_this_round="$names_next_round"
8880     names_next_round=
8881     for name in $names_this_round; do
8882       already_handled=
8883       for n in $names_already_handled; do
8884         if test "$n" = "$name"; then
8885           already_handled=yes
8886           break
8887         fi
8888       done
8889       if test -z "$already_handled"; then
8890         names_already_handled="$names_already_handled $name"
8891                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8892         eval value=\"\$HAVE_LIB$uppername\"
8893         if test -n "$value"; then
8894           if test "$value" = yes; then
8895             eval value=\"\$LIB$uppername\"
8896             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8897             eval value=\"\$LTLIB$uppername\"
8898             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8899           else
8900                                     :
8901           fi
8902         else
8903                               found_dir=
8904           found_la=
8905           found_so=
8906           found_a=
8907           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8908           if test -n "$acl_shlibext"; then
8909             shrext=".$acl_shlibext"             # typically: shrext=.so
8910           else
8911             shrext=
8912           fi
8913           if test $use_additional = yes; then
8914             dir="$additional_libdir"
8915                                     if test -n "$acl_shlibext"; then
8916               if test -f "$dir/$libname$shrext"; then
8917                 found_dir="$dir"
8918                 found_so="$dir/$libname$shrext"
8919               else
8920                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8921                   ver=`(cd "$dir" && \
8922                         for f in "$libname$shrext".*; do echo "$f"; done \
8923                         | sed -e "s,^$libname$shrext\\\\.,," \
8924                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8925                         | sed 1q ) 2>/dev/null`
8926                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8927                     found_dir="$dir"
8928                     found_so="$dir/$libname$shrext.$ver"
8929                   fi
8930                 else
8931                   eval library_names=\"$acl_library_names_spec\"
8932                   for f in $library_names; do
8933                     if test -f "$dir/$f"; then
8934                       found_dir="$dir"
8935                       found_so="$dir/$f"
8936                       break
8937                     fi
8938                   done
8939                 fi
8940               fi
8941             fi
8942                         if test "X$found_dir" = "X"; then
8943               if test -f "$dir/$libname.$acl_libext"; then
8944                 found_dir="$dir"
8945                 found_a="$dir/$libname.$acl_libext"
8946               fi
8947             fi
8948             if test "X$found_dir" != "X"; then
8949               if test -f "$dir/$libname.la"; then
8950                 found_la="$dir/$libname.la"
8951               fi
8952             fi
8953           fi
8954           if test "X$found_dir" = "X"; then
8955             for x in $LDFLAGS $LTLIBICONV; do
8956
8957   acl_save_prefix="$prefix"
8958   prefix="$acl_final_prefix"
8959   acl_save_exec_prefix="$exec_prefix"
8960   exec_prefix="$acl_final_exec_prefix"
8961   eval x=\"$x\"
8962   exec_prefix="$acl_save_exec_prefix"
8963   prefix="$acl_save_prefix"
8964
8965               case "$x" in
8966                 -L*)
8967                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8968                                     if test -n "$acl_shlibext"; then
8969                     if test -f "$dir/$libname$shrext"; then
8970                       found_dir="$dir"
8971                       found_so="$dir/$libname$shrext"
8972                     else
8973                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8974                         ver=`(cd "$dir" && \
8975                               for f in "$libname$shrext".*; do echo "$f"; done \
8976                               | sed -e "s,^$libname$shrext\\\\.,," \
8977                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8978                               | sed 1q ) 2>/dev/null`
8979                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8980                           found_dir="$dir"
8981                           found_so="$dir/$libname$shrext.$ver"
8982                         fi
8983                       else
8984                         eval library_names=\"$acl_library_names_spec\"
8985                         for f in $library_names; do
8986                           if test -f "$dir/$f"; then
8987                             found_dir="$dir"
8988                             found_so="$dir/$f"
8989                             break
8990                           fi
8991                         done
8992                       fi
8993                     fi
8994                   fi
8995                                     if test "X$found_dir" = "X"; then
8996                     if test -f "$dir/$libname.$acl_libext"; then
8997                       found_dir="$dir"
8998                       found_a="$dir/$libname.$acl_libext"
8999                     fi
9000                   fi
9001                   if test "X$found_dir" != "X"; then
9002                     if test -f "$dir/$libname.la"; then
9003                       found_la="$dir/$libname.la"
9004                     fi
9005                   fi
9006                   ;;
9007               esac
9008               if test "X$found_dir" != "X"; then
9009                 break
9010               fi
9011             done
9012           fi
9013           if test "X$found_dir" != "X"; then
9014                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9015             if test "X$found_so" != "X"; then
9016                                                         if test "$enable_rpath" = no \
9017                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9018                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9019                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9020               else
9021                                                                                 haveit=
9022                 for x in $ltrpathdirs; do
9023                   if test "X$x" = "X$found_dir"; then
9024                     haveit=yes
9025                     break
9026                   fi
9027                 done
9028                 if test -z "$haveit"; then
9029                   ltrpathdirs="$ltrpathdirs $found_dir"
9030                 fi
9031                                 if test "$acl_hardcode_direct" = yes; then
9032                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9033                 else
9034                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9035                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9036                                                             haveit=
9037                     for x in $rpathdirs; do
9038                       if test "X$x" = "X$found_dir"; then
9039                         haveit=yes
9040                         break
9041                       fi
9042                     done
9043                     if test -z "$haveit"; then
9044                       rpathdirs="$rpathdirs $found_dir"
9045                     fi
9046                   else
9047                                                                                 haveit=
9048                     for x in $LDFLAGS $LIBICONV; do
9049
9050   acl_save_prefix="$prefix"
9051   prefix="$acl_final_prefix"
9052   acl_save_exec_prefix="$exec_prefix"
9053   exec_prefix="$acl_final_exec_prefix"
9054   eval x=\"$x\"
9055   exec_prefix="$acl_save_exec_prefix"
9056   prefix="$acl_save_prefix"
9057
9058                       if test "X$x" = "X-L$found_dir"; then
9059                         haveit=yes
9060                         break
9061                       fi
9062                     done
9063                     if test -z "$haveit"; then
9064                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9065                     fi
9066                     if test "$acl_hardcode_minus_L" != no; then
9067                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9068                     else
9069                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9070                     fi
9071                   fi
9072                 fi
9073               fi
9074             else
9075               if test "X$found_a" != "X"; then
9076                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9077               else
9078                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9079               fi
9080             fi
9081                         additional_includedir=
9082             case "$found_dir" in
9083               */$acl_libdirstem | */$acl_libdirstem/)
9084                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9085                 if test "$name" = 'iconv'; then
9086                   LIBICONV_PREFIX="$basedir"
9087                 fi
9088                 additional_includedir="$basedir/include"
9089                 ;;
9090               */$acl_libdirstem2 | */$acl_libdirstem2/)
9091                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9092                 if test "$name" = 'iconv'; then
9093                   LIBICONV_PREFIX="$basedir"
9094                 fi
9095                 additional_includedir="$basedir/include"
9096                 ;;
9097             esac
9098             if test "X$additional_includedir" != "X"; then
9099                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9100                 haveit=
9101                 if test "X$additional_includedir" = "X/usr/local/include"; then
9102                   if test -n "$GCC"; then
9103                     case $host_os in
9104                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9105                     esac
9106                   fi
9107                 fi
9108                 if test -z "$haveit"; then
9109                   for x in $CPPFLAGS $INCICONV; do
9110
9111   acl_save_prefix="$prefix"
9112   prefix="$acl_final_prefix"
9113   acl_save_exec_prefix="$exec_prefix"
9114   exec_prefix="$acl_final_exec_prefix"
9115   eval x=\"$x\"
9116   exec_prefix="$acl_save_exec_prefix"
9117   prefix="$acl_save_prefix"
9118
9119                     if test "X$x" = "X-I$additional_includedir"; then
9120                       haveit=yes
9121                       break
9122                     fi
9123                   done
9124                   if test -z "$haveit"; then
9125                     if test -d "$additional_includedir"; then
9126                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9127                     fi
9128                   fi
9129                 fi
9130               fi
9131             fi
9132                         if test -n "$found_la"; then
9133                                                         save_libdir="$libdir"
9134               case "$found_la" in
9135                 */* | *\\*) . "$found_la" ;;
9136                 *) . "./$found_la" ;;
9137               esac
9138               libdir="$save_libdir"
9139                             for dep in $dependency_libs; do
9140                 case "$dep" in
9141                   -L*)
9142                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9143                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9144                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9145                       haveit=
9146                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9147                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9148                         if test -n "$GCC"; then
9149                           case $host_os in
9150                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9151                           esac
9152                         fi
9153                       fi
9154                       if test -z "$haveit"; then
9155                         haveit=
9156                         for x in $LDFLAGS $LIBICONV; do
9157
9158   acl_save_prefix="$prefix"
9159   prefix="$acl_final_prefix"
9160   acl_save_exec_prefix="$exec_prefix"
9161   exec_prefix="$acl_final_exec_prefix"
9162   eval x=\"$x\"
9163   exec_prefix="$acl_save_exec_prefix"
9164   prefix="$acl_save_prefix"
9165
9166                           if test "X$x" = "X-L$additional_libdir"; then
9167                             haveit=yes
9168                             break
9169                           fi
9170                         done
9171                         if test -z "$haveit"; then
9172                           if test -d "$additional_libdir"; then
9173                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9174                           fi
9175                         fi
9176                         haveit=
9177                         for x in $LDFLAGS $LTLIBICONV; do
9178
9179   acl_save_prefix="$prefix"
9180   prefix="$acl_final_prefix"
9181   acl_save_exec_prefix="$exec_prefix"
9182   exec_prefix="$acl_final_exec_prefix"
9183   eval x=\"$x\"
9184   exec_prefix="$acl_save_exec_prefix"
9185   prefix="$acl_save_prefix"
9186
9187                           if test "X$x" = "X-L$additional_libdir"; then
9188                             haveit=yes
9189                             break
9190                           fi
9191                         done
9192                         if test -z "$haveit"; then
9193                           if test -d "$additional_libdir"; then
9194                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9195                           fi
9196                         fi
9197                       fi
9198                     fi
9199                     ;;
9200                   -R*)
9201                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9202                     if test "$enable_rpath" != no; then
9203                                                                   haveit=
9204                       for x in $rpathdirs; do
9205                         if test "X$x" = "X$dir"; then
9206                           haveit=yes
9207                           break
9208                         fi
9209                       done
9210                       if test -z "$haveit"; then
9211                         rpathdirs="$rpathdirs $dir"
9212                       fi
9213                                                                   haveit=
9214                       for x in $ltrpathdirs; do
9215                         if test "X$x" = "X$dir"; then
9216                           haveit=yes
9217                           break
9218                         fi
9219                       done
9220                       if test -z "$haveit"; then
9221                         ltrpathdirs="$ltrpathdirs $dir"
9222                       fi
9223                     fi
9224                     ;;
9225                   -l*)
9226                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9227                     ;;
9228                   *.la)
9229                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9230                     ;;
9231                   *)
9232                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9233                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9234                     ;;
9235                 esac
9236               done
9237             fi
9238           else
9239                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9240             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9241           fi
9242         fi
9243       fi
9244     done
9245   done
9246   if test "X$rpathdirs" != "X"; then
9247     if test -n "$acl_hardcode_libdir_separator"; then
9248                         alldirs=
9249       for found_dir in $rpathdirs; do
9250         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9251       done
9252             acl_save_libdir="$libdir"
9253       libdir="$alldirs"
9254       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9255       libdir="$acl_save_libdir"
9256       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9257     else
9258             for found_dir in $rpathdirs; do
9259         acl_save_libdir="$libdir"
9260         libdir="$found_dir"
9261         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9262         libdir="$acl_save_libdir"
9263         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9264       done
9265     fi
9266   fi
9267   if test "X$ltrpathdirs" != "X"; then
9268             for found_dir in $ltrpathdirs; do
9269       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9270     done
9271   fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284           am_save_CPPFLAGS="$CPPFLAGS"
9285
9286   for element in $INCICONV; do
9287     haveit=
9288     for x in $CPPFLAGS; do
9289
9290   acl_save_prefix="$prefix"
9291   prefix="$acl_final_prefix"
9292   acl_save_exec_prefix="$exec_prefix"
9293   exec_prefix="$acl_final_exec_prefix"
9294   eval x=\"$x\"
9295   exec_prefix="$acl_save_exec_prefix"
9296   prefix="$acl_save_prefix"
9297
9298       if test "X$x" = "X$element"; then
9299         haveit=yes
9300         break
9301       fi
9302     done
9303     if test -z "$haveit"; then
9304       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9305     fi
9306   done
9307
9308
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9310 $as_echo_n "checking for iconv... " >&6; }
9311 if ${am_cv_func_iconv+:} false; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314
9315     am_cv_func_iconv="no, consider installing GNU libiconv"
9316     am_cv_lib_iconv=no
9317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h.  */
9319
9320 #include <stdlib.h>
9321 #include <iconv.h>
9322
9323 int
9324 main ()
9325 {
9326 iconv_t cd = iconv_open("","");
9327            iconv(cd,NULL,NULL,NULL,NULL);
9328            iconv_close(cd);
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_link "$LINENO"; then :
9334   am_cv_func_iconv=yes
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337     conftest$ac_exeext conftest.$ac_ext
9338     if test "$am_cv_func_iconv" != yes; then
9339       am_save_LIBS="$LIBS"
9340       LIBS="$LIBS $LIBICONV"
9341       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h.  */
9343
9344 #include <stdlib.h>
9345 #include <iconv.h>
9346
9347 int
9348 main ()
9349 {
9350 iconv_t cd = iconv_open("","");
9351              iconv(cd,NULL,NULL,NULL,NULL);
9352              iconv_close(cd);
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 if ac_fn_c_try_link "$LINENO"; then :
9358   am_cv_lib_iconv=yes
9359         am_cv_func_iconv=yes
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext \
9362     conftest$ac_exeext conftest.$ac_ext
9363       LIBS="$am_save_LIBS"
9364     fi
9365
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9368 $as_echo "$am_cv_func_iconv" >&6; }
9369   if test "$am_cv_func_iconv" = yes; then
9370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9371 $as_echo_n "checking for working iconv... " >&6; }
9372 if ${am_cv_func_iconv_works+:} false; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375
9376                   am_save_LIBS="$LIBS"
9377       if test $am_cv_lib_iconv = yes; then
9378         LIBS="$LIBS $LIBICONV"
9379       fi
9380       if test "$cross_compiling" = yes; then :
9381
9382          case "$host_os" in
9383            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9384            *)            am_cv_func_iconv_works="guessing yes" ;;
9385          esac
9386
9387 else
9388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h.  */
9390
9391 #include <iconv.h>
9392 #include <string.h>
9393 int main ()
9394 {
9395   int result = 0;
9396   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9397      returns.  */
9398   {
9399     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9400     if (cd_utf8_to_88591 != (iconv_t)(-1))
9401       {
9402         static const char input[] = "\342\202\254"; /* EURO SIGN */
9403         char buf[10];
9404         const char *inptr = input;
9405         size_t inbytesleft = strlen (input);
9406         char *outptr = buf;
9407         size_t outbytesleft = sizeof (buf);
9408         size_t res = iconv (cd_utf8_to_88591,
9409                             (char **) &inptr, &inbytesleft,
9410                             &outptr, &outbytesleft);
9411         if (res == 0)
9412           result |= 1;
9413         iconv_close (cd_utf8_to_88591);
9414       }
9415   }
9416   /* Test against Solaris 10 bug: Failures are not distinguishable from
9417      successful returns.  */
9418   {
9419     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9420     if (cd_ascii_to_88591 != (iconv_t)(-1))
9421       {
9422         static const char input[] = "\263";
9423         char buf[10];
9424         const char *inptr = input;
9425         size_t inbytesleft = strlen (input);
9426         char *outptr = buf;
9427         size_t outbytesleft = sizeof (buf);
9428         size_t res = iconv (cd_ascii_to_88591,
9429                             (char **) &inptr, &inbytesleft,
9430                             &outptr, &outbytesleft);
9431         if (res == 0)
9432           result |= 2;
9433         iconv_close (cd_ascii_to_88591);
9434       }
9435   }
9436   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9437   {
9438     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9439     if (cd_88591_to_utf8 != (iconv_t)(-1))
9440       {
9441         static const char input[] = "\304";
9442         static char buf[2] = { (char)0xDE, (char)0xAD };
9443         const char *inptr = input;
9444         size_t inbytesleft = 1;
9445         char *outptr = buf;
9446         size_t outbytesleft = 1;
9447         size_t res = iconv (cd_88591_to_utf8,
9448                             (char **) &inptr, &inbytesleft,
9449                             &outptr, &outbytesleft);
9450         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9451           result |= 4;
9452         iconv_close (cd_88591_to_utf8);
9453       }
9454   }
9455 #if 0 /* This bug could be worked around by the caller.  */
9456   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9457   {
9458     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9459     if (cd_88591_to_utf8 != (iconv_t)(-1))
9460       {
9461         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9462         char buf[50];
9463         const char *inptr = input;
9464         size_t inbytesleft = strlen (input);
9465         char *outptr = buf;
9466         size_t outbytesleft = sizeof (buf);
9467         size_t res = iconv (cd_88591_to_utf8,
9468                             (char **) &inptr, &inbytesleft,
9469                             &outptr, &outbytesleft);
9470         if ((int)res > 0)
9471           result |= 8;
9472         iconv_close (cd_88591_to_utf8);
9473       }
9474   }
9475 #endif
9476   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9477      provided.  */
9478   if (/* Try standardized names.  */
9479       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9480       /* Try IRIX, OSF/1 names.  */
9481       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9482       /* Try AIX names.  */
9483       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9484       /* Try HP-UX names.  */
9485       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9486     result |= 16;
9487   return result;
9488 }
9489 _ACEOF
9490 if ac_fn_c_try_run "$LINENO"; then :
9491   am_cv_func_iconv_works=yes
9492 else
9493   am_cv_func_iconv_works=no
9494 fi
9495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9496   conftest.$ac_objext conftest.beam conftest.$ac_ext
9497 fi
9498
9499       LIBS="$am_save_LIBS"
9500
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9503 $as_echo "$am_cv_func_iconv_works" >&6; }
9504     case "$am_cv_func_iconv_works" in
9505       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9506       *)   am_func_iconv=yes ;;
9507     esac
9508   else
9509     am_func_iconv=no am_cv_lib_iconv=no
9510   fi
9511   if test "$am_func_iconv" = yes; then
9512
9513 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9514
9515   fi
9516   if test "$am_cv_lib_iconv" = yes; then
9517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9518 $as_echo_n "checking how to link with libiconv... " >&6; }
9519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9520 $as_echo "$LIBICONV" >&6; }
9521   else
9522             CPPFLAGS="$am_save_CPPFLAGS"
9523     LIBICONV=
9524     LTLIBICONV=
9525   fi
9526
9527
9528
9529   if test "$am_cv_func_iconv" = yes; then
9530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9531 $as_echo_n "checking for iconv declaration... " >&6; }
9532     if ${am_cv_proto_iconv+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535
9536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h.  */
9538
9539 #include <stdlib.h>
9540 #include <iconv.h>
9541 extern
9542 #ifdef __cplusplus
9543 "C"
9544 #endif
9545 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9546 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9547 #else
9548 size_t iconv();
9549 #endif
9550
9551 int
9552 main ()
9553 {
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 if ac_fn_c_try_compile "$LINENO"; then :
9560   am_cv_proto_iconv_arg1=""
9561 else
9562   am_cv_proto_iconv_arg1="const"
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565       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);"
9566 fi
9567
9568     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9569     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9570          $am_cv_proto_iconv" >&5
9571 $as_echo "
9572          $am_cv_proto_iconv" >&6; }
9573
9574 cat >>confdefs.h <<_ACEOF
9575 #define ICONV_CONST $am_cv_proto_iconv_arg1
9576 _ACEOF
9577
9578
9579   fi
9580
9581
9582
9583
9584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h.  */
9586 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9587 int
9588 main ()
9589 {
9590
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596
9597 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9598
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601     conftest$ac_exeext conftest.$ac_ext
9602
9603   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9604 do :
9605   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9607 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9608   cat >>confdefs.h <<_ACEOF
9609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9610 _ACEOF
9611
9612 fi
9613
9614 done
9615
9616   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9617     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9618     argz_stringify argz_next __fsetlocking
9619 do :
9620   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9622 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9623   cat >>confdefs.h <<_ACEOF
9624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9625 _ACEOF
9626
9627 fi
9628 done
9629
9630
9631           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9632 "
9633 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9634   ac_have_decl=1
9635 else
9636   ac_have_decl=0
9637 fi
9638
9639 cat >>confdefs.h <<_ACEOF
9640 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9641 _ACEOF
9642 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9643 "
9644 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9645   ac_have_decl=1
9646 else
9647   ac_have_decl=0
9648 fi
9649
9650 cat >>confdefs.h <<_ACEOF
9651 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9652 _ACEOF
9653
9654
9655
9656
9657                       for ac_prog in bison
9658 do
9659   # Extract the first word of "$ac_prog", so it can be a program name with args.
9660 set dummy $ac_prog; ac_word=$2
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662 $as_echo_n "checking for $ac_word... " >&6; }
9663 if ${ac_cv_prog_INTLBISON+:} false; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   if test -n "$INTLBISON"; then
9667   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9668 else
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in $PATH
9671 do
9672   IFS=$as_save_IFS
9673   test -z "$as_dir" && as_dir=.
9674     for ac_exec_ext in '' $ac_executable_extensions; do
9675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676     ac_cv_prog_INTLBISON="$ac_prog"
9677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9678     break 2
9679   fi
9680 done
9681   done
9682 IFS=$as_save_IFS
9683
9684 fi
9685 fi
9686 INTLBISON=$ac_cv_prog_INTLBISON
9687 if test -n "$INTLBISON"; then
9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9689 $as_echo "$INTLBISON" >&6; }
9690 else
9691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692 $as_echo "no" >&6; }
9693 fi
9694
9695
9696   test -n "$INTLBISON" && break
9697 done
9698
9699   if test -z "$INTLBISON"; then
9700     ac_verc_fail=yes
9701   else
9702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9703 $as_echo_n "checking version of bison... " >&6; }
9704     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9705     case $ac_prog_version in
9706       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9707       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9708          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9709       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9710     esac
9711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9712 $as_echo "$ac_prog_version" >&6; }
9713   fi
9714   if test $ac_verc_fail = yes; then
9715     INTLBISON=:
9716   fi
9717
9718
9719
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9721 $as_echo_n "checking for long long int... " >&6; }
9722 if ${ac_cv_type_long_long_int+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   ac_cv_type_long_long_int=yes
9726       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9727         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9728         if test $ac_cv_type_long_long_int = yes; then
9729                                         if test "$cross_compiling" = yes; then :
9730   :
9731 else
9732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h.  */
9734 #include <limits.h>
9735                  #ifndef LLONG_MAX
9736                  # define HALF \
9737                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9738                  # define LLONG_MAX (HALF - 1 + HALF)
9739                  #endif
9740 int
9741 main ()
9742 {
9743 long long int n = 1;
9744                  int i;
9745                  for (i = 0; ; i++)
9746                    {
9747                      long long int m = n << i;
9748                      if (m >> i != n)
9749                        return 1;
9750                      if (LLONG_MAX / 2 < m)
9751                        break;
9752                    }
9753                  return 0;
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_run "$LINENO"; then :
9759
9760 else
9761   ac_cv_type_long_long_int=no
9762 fi
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764   conftest.$ac_objext conftest.beam conftest.$ac_ext
9765 fi
9766
9767         fi
9768       fi
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9771 $as_echo "$ac_cv_type_long_long_int" >&6; }
9772   if test $ac_cv_type_long_long_int = yes; then
9773
9774 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9775
9776   fi
9777
9778
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9780 $as_echo_n "checking for wchar_t... " >&6; }
9781 if ${gt_cv_c_wchar_t+:} false; then :
9782   $as_echo_n "(cached) " >&6
9783 else
9784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786 #include <stddef.h>
9787             wchar_t foo = (wchar_t)'\0';
9788 int
9789 main ()
9790 {
9791
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797   gt_cv_c_wchar_t=yes
9798 else
9799   gt_cv_c_wchar_t=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9804 $as_echo "$gt_cv_c_wchar_t" >&6; }
9805   if test $gt_cv_c_wchar_t = yes; then
9806
9807 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9808
9809   fi
9810
9811
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9813 $as_echo_n "checking for wint_t... " >&6; }
9814 if ${gt_cv_c_wint_t+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h.  */
9819
9820 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9821    <wchar.h>.
9822    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9823    before <wchar.h>.  */
9824 #include <stddef.h>
9825 #include <stdio.h>
9826 #include <time.h>
9827 #include <wchar.h>
9828             wint_t foo = (wchar_t)'\0';
9829 int
9830 main ()
9831 {
9832
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 if ac_fn_c_try_compile "$LINENO"; then :
9838   gt_cv_c_wint_t=yes
9839 else
9840   gt_cv_c_wint_t=no
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9845 $as_echo "$gt_cv_c_wint_t" >&6; }
9846   if test $gt_cv_c_wint_t = yes; then
9847
9848 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9849
9850   fi
9851
9852
9853
9854
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9856 $as_echo_n "checking for intmax_t... " >&6; }
9857 if ${gt_cv_c_intmax_t+:} false; then :
9858   $as_echo_n "(cached) " >&6
9859 else
9860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h.  */
9862
9863 #include <stddef.h>
9864 #include <stdlib.h>
9865 #if HAVE_STDINT_H_WITH_UINTMAX
9866 #include <stdint.h>
9867 #endif
9868 #if HAVE_INTTYPES_H_WITH_UINTMAX
9869 #include <inttypes.h>
9870 #endif
9871
9872 int
9873 main ()
9874 {
9875 intmax_t x = -1;
9876             return !x;
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882   gt_cv_c_intmax_t=yes
9883 else
9884   gt_cv_c_intmax_t=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9889 $as_echo "$gt_cv_c_intmax_t" >&6; }
9890   if test $gt_cv_c_intmax_t = yes; then
9891
9892 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9893
9894   fi
9895
9896
9897
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9899 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9900 if ${gt_cv_func_printf_posix+:} false; then :
9901   $as_echo_n "(cached) " >&6
9902 else
9903
9904       if test "$cross_compiling" = yes; then :
9905
9906           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h.  */
9908
9909 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9910   notposix
9911 #endif
9912
9913 _ACEOF
9914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9915   $EGREP "notposix" >/dev/null 2>&1; then :
9916   gt_cv_func_printf_posix="guessing no"
9917 else
9918   gt_cv_func_printf_posix="guessing yes"
9919 fi
9920 rm -f conftest*
9921
9922
9923 else
9924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h.  */
9926
9927 #include <stdio.h>
9928 #include <string.h>
9929 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9930    dollar expansion (possibly an autoconf bug).  */
9931 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9932 static char buf[100];
9933 int main ()
9934 {
9935   sprintf (buf, format, 33, 55);
9936   return (strcmp (buf, "55 33") != 0);
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_run "$LINENO"; then :
9940   gt_cv_func_printf_posix=yes
9941 else
9942   gt_cv_func_printf_posix=no
9943 fi
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945   conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947
9948
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9951 $as_echo "$gt_cv_func_printf_posix" >&6; }
9952   case $gt_cv_func_printf_posix in
9953     *yes)
9954
9955 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9956
9957       ;;
9958   esac
9959
9960
9961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9962 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9963 if ${ac_cv_gnu_library_2_1+:} false; then :
9964   $as_echo_n "(cached) " >&6
9965 else
9966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h.  */
9968
9969 #include <features.h>
9970 #ifdef __GNU_LIBRARY__
9971  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9972   Lucky GNU user
9973  #endif
9974 #endif
9975 #ifdef __UCLIBC__
9976  Lucky user
9977 #endif
9978
9979 _ACEOF
9980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9981   $EGREP "Lucky" >/dev/null 2>&1; then :
9982   ac_cv_gnu_library_2_1=yes
9983 else
9984   ac_cv_gnu_library_2_1=no
9985 fi
9986 rm -f conftest*
9987
9988
9989
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9992 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9993
9994     GLIBC21="$ac_cv_gnu_library_2_1"
9995
9996
9997
9998   for ac_header in stdint.h
9999 do :
10000   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10001 if test "x$ac_cv_header_stdint_h" = xyes; then :
10002   cat >>confdefs.h <<_ACEOF
10003 #define HAVE_STDINT_H 1
10004 _ACEOF
10005
10006 fi
10007
10008 done
10009
10010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10011 $as_echo_n "checking for SIZE_MAX... " >&6; }
10012 if ${gl_cv_size_max+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015
10016     gl_cv_size_max=
10017     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h.  */
10019
10020 #include <limits.h>
10021 #if HAVE_STDINT_H
10022 #include <stdint.h>
10023 #endif
10024 #ifdef SIZE_MAX
10025 Found it
10026 #endif
10027
10028 _ACEOF
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030   $EGREP "Found it" >/dev/null 2>&1; then :
10031   gl_cv_size_max=yes
10032 fi
10033 rm -f conftest*
10034
10035     if test -z "$gl_cv_size_max"; then
10036                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10037 #include <limits.h>"; then :
10038
10039 else
10040   size_t_bits_minus_1=
10041 fi
10042
10043       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10044
10045 else
10046   fits_in_uint=
10047 fi
10048
10049       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10050         if test $fits_in_uint = 1; then
10051                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h.  */
10053 #include <stddef.h>
10054                  extern size_t foo;
10055                  extern unsigned long foo;
10056
10057 int
10058 main ()
10059 {
10060
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_compile "$LINENO"; then :
10066   fits_in_uint=0
10067 fi
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069         fi
10070                                 if test $fits_in_uint = 1; then
10071           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10072         else
10073           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10074         fi
10075       else
10076                 gl_cv_size_max='((size_t)~(size_t)0)'
10077       fi
10078     fi
10079
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10082 $as_echo "$gl_cv_size_max" >&6; }
10083   if test "$gl_cv_size_max" != yes; then
10084
10085 cat >>confdefs.h <<_ACEOF
10086 #define SIZE_MAX $gl_cv_size_max
10087 _ACEOF
10088
10089   fi
10090
10091
10092
10093
10094   for ac_header in stdint.h
10095 do :
10096   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10097 if test "x$ac_cv_header_stdint_h" = xyes; then :
10098   cat >>confdefs.h <<_ACEOF
10099 #define HAVE_STDINT_H 1
10100 _ACEOF
10101
10102 fi
10103
10104 done
10105
10106
10107
10108
10109
10110   for ac_func in $ac_func_list
10111 do :
10112   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10115   cat >>confdefs.h <<_ACEOF
10116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10117 _ACEOF
10118
10119 fi
10120 done
10121
10122
10123
10124
10125
10126
10127
10128
10129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10130 $as_echo_n "checking for working fcntl.h... " >&6; }
10131 if ${gl_cv_header_working_fcntl_h+:} false; then :
10132   $as_echo_n "(cached) " >&6
10133 else
10134   if test "$cross_compiling" = yes; then :
10135   gl_cv_header_working_fcntl_h=cross-compiling
10136 else
10137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139 #include <sys/types.h>
10140            #include <sys/stat.h>
10141            #if HAVE_UNISTD_H
10142            # include <unistd.h>
10143            #else /* on Windows with MSVC */
10144            # include <io.h>
10145            # include <stdlib.h>
10146            # defined sleep(n) _sleep ((n) * 1000)
10147            #endif
10148            #include <fcntl.h>
10149            #ifndef O_NOATIME
10150             #define O_NOATIME 0
10151            #endif
10152            #ifndef O_NOFOLLOW
10153             #define O_NOFOLLOW 0
10154            #endif
10155            static int const constants[] =
10156             {
10157               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10158               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10159             };
10160
10161 int
10162 main ()
10163 {
10164
10165             int result = !constants;
10166             #if HAVE_SYMLINK
10167             {
10168               static char const sym[] = "conftest.sym";
10169               if (symlink ("/dev/null", sym) != 0)
10170                 result |= 2;
10171               else
10172                 {
10173                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10174                   if (fd >= 0)
10175                     {
10176                       close (fd);
10177                       result |= 4;
10178                     }
10179                 }
10180               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10181                 result |= 2;
10182               else
10183                 {
10184                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10185                   if (fd >= 0)
10186                     {
10187                       close (fd);
10188                       result |= 4;
10189                     }
10190                 }
10191               unlink (sym);
10192             }
10193             #endif
10194             {
10195               static char const file[] = "confdefs.h";
10196               int fd = open (file, O_RDONLY | O_NOATIME);
10197               if (fd < 0)
10198                 result |= 8;
10199               else
10200                 {
10201                   struct stat st0;
10202                   if (fstat (fd, &st0) != 0)
10203                     result |= 16;
10204                   else
10205                     {
10206                       char c;
10207                       sleep (1);
10208                       if (read (fd, &c, 1) != 1)
10209                         result |= 24;
10210                       else
10211                         {
10212                           if (close (fd) != 0)
10213                             result |= 32;
10214                           else
10215                             {
10216                               struct stat st1;
10217                               if (stat (file, &st1) != 0)
10218                                 result |= 40;
10219                               else
10220                                 if (st0.st_atime != st1.st_atime)
10221                                   result |= 64;
10222                             }
10223                         }
10224                     }
10225                 }
10226             }
10227             return result;
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_run "$LINENO"; then :
10233   gl_cv_header_working_fcntl_h=yes
10234 else
10235   case $? in #(
10236         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10237         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10238         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10239          *) gl_cv_header_working_fcntl_h='no';;
10240         esac
10241 fi
10242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10243   conftest.$ac_objext conftest.beam conftest.$ac_ext
10244 fi
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10248 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10249
10250   case $gl_cv_header_working_fcntl_h in #(
10251   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10252   *) ac_val=1;;
10253   esac
10254
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_WORKING_O_NOATIME $ac_val
10257 _ACEOF
10258
10259
10260   case $gl_cv_header_working_fcntl_h in #(
10261   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10262   *) ac_val=1;;
10263   esac
10264
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10267 _ACEOF
10268
10269
10270
10271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10272 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10273 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   gt_save_LIBS="$LIBS"
10277      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10278      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h.  */
10280 #include <CoreFoundation/CFPreferences.h>
10281 int
10282 main ()
10283 {
10284 CFPreferencesCopyAppValue(NULL, NULL)
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 if ac_fn_c_try_link "$LINENO"; then :
10290   gt_cv_func_CFPreferencesCopyAppValue=yes
10291 else
10292   gt_cv_func_CFPreferencesCopyAppValue=no
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext \
10295     conftest$ac_exeext conftest.$ac_ext
10296      LIBS="$gt_save_LIBS"
10297 fi
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10299 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10300   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10301
10302 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10303
10304   fi
10305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10306 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10307 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   gt_save_LIBS="$LIBS"
10311      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10312      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h.  */
10314 #include <CoreFoundation/CFLocale.h>
10315 int
10316 main ()
10317 {
10318 CFLocaleCopyCurrent();
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324   gt_cv_func_CFLocaleCopyCurrent=yes
10325 else
10326   gt_cv_func_CFLocaleCopyCurrent=no
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext \
10329     conftest$ac_exeext conftest.$ac_ext
10330      LIBS="$gt_save_LIBS"
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10333 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10334   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10335
10336 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10337
10338   fi
10339   INTL_MACOSX_LIBS=
10340   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10341     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10342   fi
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353     case "$enable_silent_rules" in
10354     yes) INTL_DEFAULT_VERBOSITY=0;;
10355     no)  INTL_DEFAULT_VERBOSITY=1;;
10356     *)   INTL_DEFAULT_VERBOSITY=1;;
10357   esac
10358
10359
10360   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10361 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10362
10363 else
10364
10365 $as_echo "#define ptrdiff_t long" >>confdefs.h
10366
10367
10368 fi
10369
10370   for ac_header in features.h stddef.h stdlib.h string.h
10371 do :
10372   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10375   cat >>confdefs.h <<_ACEOF
10376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10377 _ACEOF
10378
10379 fi
10380
10381 done
10382
10383   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10384     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10385 do :
10386   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10389   cat >>confdefs.h <<_ACEOF
10390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10391 _ACEOF
10392
10393 fi
10394 done
10395
10396
10397       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10398 "
10399 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10400   ac_have_decl=1
10401 else
10402   ac_have_decl=0
10403 fi
10404
10405 cat >>confdefs.h <<_ACEOF
10406 #define HAVE_DECL__SNPRINTF $ac_have_decl
10407 _ACEOF
10408 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10409 "
10410 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10411   ac_have_decl=1
10412 else
10413   ac_have_decl=0
10414 fi
10415
10416 cat >>confdefs.h <<_ACEOF
10417 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10418 _ACEOF
10419
10420
10421           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10422 "
10423 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10424   ac_have_decl=1
10425 else
10426   ac_have_decl=0
10427 fi
10428
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10431 _ACEOF
10432
10433
10434   case $gt_cv_func_printf_posix in
10435     *yes) HAVE_POSIX_PRINTF=1 ;;
10436     *) HAVE_POSIX_PRINTF=0 ;;
10437   esac
10438
10439   if test "$ac_cv_func_asprintf" = yes; then
10440     HAVE_ASPRINTF=1
10441   else
10442     HAVE_ASPRINTF=0
10443   fi
10444
10445   if test "$ac_cv_func_snprintf" = yes; then
10446     HAVE_SNPRINTF=1
10447   else
10448     HAVE_SNPRINTF=0
10449   fi
10450
10451   if test "$ac_cv_func_newlocale" = yes; then
10452     HAVE_NEWLOCALE=1
10453   else
10454     HAVE_NEWLOCALE=0
10455   fi
10456
10457   if test "$ac_cv_func_wprintf" = yes; then
10458     HAVE_WPRINTF=1
10459   else
10460     HAVE_WPRINTF=0
10461   fi
10462
10463
10464
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10466 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10467 if ${am_cv_langinfo_codeset+:} false; then :
10468   $as_echo_n "(cached) " >&6
10469 else
10470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h.  */
10472 #include <langinfo.h>
10473 int
10474 main ()
10475 {
10476 char* cs = nl_langinfo(CODESET); return !cs;
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482   am_cv_langinfo_codeset=yes
10483 else
10484   am_cv_langinfo_codeset=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487     conftest$ac_exeext conftest.$ac_ext
10488
10489 fi
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10491 $as_echo "$am_cv_langinfo_codeset" >&6; }
10492   if test $am_cv_langinfo_codeset = yes; then
10493
10494 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10495
10496   fi
10497
10498
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10500 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10501 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10502   $as_echo_n "(cached) " >&6
10503 else
10504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h.  */
10506 #include <locale.h>
10507 int
10508 main ()
10509 {
10510 return LC_MESSAGES
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then :
10516   gt_cv_val_LC_MESSAGES=yes
10517 else
10518   gt_cv_val_LC_MESSAGES=no
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext \
10521     conftest$ac_exeext conftest.$ac_ext
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10524 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10525   if test $gt_cv_val_LC_MESSAGES = yes; then
10526
10527 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10528
10529   fi
10530
10531
10532                 if test "$enable_shared" = yes; then
10533     case "$host_os" in
10534       mingw* | cygwin*) is_woe32dll=yes ;;
10535       *) is_woe32dll=no ;;
10536     esac
10537   else
10538     is_woe32dll=no
10539   fi
10540   WOE32DLL=$is_woe32dll
10541
10542
10543       case "$host_os" in
10544     mingw* | cygwin*) is_woe32=yes ;;
10545     *) is_woe32=no ;;
10546   esac
10547   WOE32=$is_woe32
10548
10549   if test $WOE32 = yes; then
10550         if test -n "$ac_tool_prefix"; then
10551   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10552 set dummy ${ac_tool_prefix}windres; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if ${ac_cv_prog_WINDRES+:} false; then :
10556   $as_echo_n "(cached) " >&6
10557 else
10558   if test -n "$WINDRES"; then
10559   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10560 else
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10563 do
10564   IFS=$as_save_IFS
10565   test -z "$as_dir" && as_dir=.
10566     for ac_exec_ext in '' $ac_executable_extensions; do
10567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10568     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570     break 2
10571   fi
10572 done
10573   done
10574 IFS=$as_save_IFS
10575
10576 fi
10577 fi
10578 WINDRES=$ac_cv_prog_WINDRES
10579 if test -n "$WINDRES"; then
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10581 $as_echo "$WINDRES" >&6; }
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586
10587
10588 fi
10589 if test -z "$ac_cv_prog_WINDRES"; then
10590   ac_ct_WINDRES=$WINDRES
10591   # Extract the first word of "windres", so it can be a program name with args.
10592 set dummy windres; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   if test -n "$ac_ct_WINDRES"; then
10599   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10600 else
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10603 do
10604   IFS=$as_save_IFS
10605   test -z "$as_dir" && as_dir=.
10606     for ac_exec_ext in '' $ac_executable_extensions; do
10607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10608     ac_cv_prog_ac_ct_WINDRES="windres"
10609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610     break 2
10611   fi
10612 done
10613   done
10614 IFS=$as_save_IFS
10615
10616 fi
10617 fi
10618 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10619 if test -n "$ac_ct_WINDRES"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10621 $as_echo "$ac_ct_WINDRES" >&6; }
10622 else
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626
10627   if test "x$ac_ct_WINDRES" = x; then
10628     WINDRES=""
10629   else
10630     case $cross_compiling:$ac_tool_warned in
10631 yes:)
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10634 ac_tool_warned=yes ;;
10635 esac
10636     WINDRES=$ac_ct_WINDRES
10637   fi
10638 else
10639   WINDRES="$ac_cv_prog_WINDRES"
10640 fi
10641
10642   fi
10643
10644               case "$host_os" in
10645     hpux*) LTLIBC="" ;;
10646     *)     LTLIBC="-lc" ;;
10647   esac
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10676 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10677 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   gt_save_LIBS="$LIBS"
10681      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684 #include <CoreFoundation/CFPreferences.h>
10685 int
10686 main ()
10687 {
10688 CFPreferencesCopyAppValue(NULL, NULL)
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_link "$LINENO"; then :
10694   gt_cv_func_CFPreferencesCopyAppValue=yes
10695 else
10696   gt_cv_func_CFPreferencesCopyAppValue=no
10697 fi
10698 rm -f core conftest.err conftest.$ac_objext \
10699     conftest$ac_exeext conftest.$ac_ext
10700      LIBS="$gt_save_LIBS"
10701 fi
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10703 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10704   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10705
10706 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10707
10708   fi
10709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10710 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10711 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   gt_save_LIBS="$LIBS"
10715      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h.  */
10718 #include <CoreFoundation/CFLocale.h>
10719 int
10720 main ()
10721 {
10722 CFLocaleCopyCurrent();
10723   ;
10724   return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728   gt_cv_func_CFLocaleCopyCurrent=yes
10729 else
10730   gt_cv_func_CFLocaleCopyCurrent=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733     conftest$ac_exeext conftest.$ac_ext
10734      LIBS="$gt_save_LIBS"
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10737 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10738   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10739
10740 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10741
10742   fi
10743   INTL_MACOSX_LIBS=
10744   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10745     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10746   fi
10747
10748
10749
10750
10751
10752
10753     BUILD_INCLUDED_LIBINTL=no
10754     USE_INCLUDED_LIBINTL=no
10755
10756   LIBINTL=
10757   LTLIBINTL=
10758   POSUB=
10759
10760     case " $gt_needs " in
10761     *" need-formatstring-macros "*) gt_api_version=3 ;;
10762     *" need-ngettext "*) gt_api_version=2 ;;
10763     *) gt_api_version=1 ;;
10764   esac
10765   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10766   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10767
10768     if test "$USE_NLS" = "yes"; then
10769     gt_use_preinstalled_gnugettext=no
10770
10771       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10772 $as_echo_n "checking whether included gettext is requested... " >&6; }
10773
10774 # Check whether --with-included-gettext was given.
10775 if test "${with_included_gettext+set}" = set; then :
10776   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10777 else
10778   nls_cv_force_use_gnu_gettext=no
10779 fi
10780
10781       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10782 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10783
10784       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10785       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10786
10787
10788         if test $gt_api_version -ge 3; then
10789           gt_revision_test_code='
10790 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10791 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10792 #endif
10793 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10794 '
10795         else
10796           gt_revision_test_code=
10797         fi
10798         if test $gt_api_version -ge 2; then
10799           gt_expression_test_code=' + * ngettext ("", "", 0)'
10800         else
10801           gt_expression_test_code=
10802         fi
10803
10804         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10805 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10806 if eval \${$gt_func_gnugettext_libc+:} false; then :
10807   $as_echo_n "(cached) " >&6
10808 else
10809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 #include <libintl.h>
10813 $gt_revision_test_code
10814 extern int _nl_msg_cat_cntr;
10815 extern int *_nl_domain_bindings;
10816
10817 int
10818 main ()
10819 {
10820
10821 bindtextdomain ("", "");
10822 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10823
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_link "$LINENO"; then :
10829   eval "$gt_func_gnugettext_libc=yes"
10830 else
10831   eval "$gt_func_gnugettext_libc=no"
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext \
10834     conftest$ac_exeext conftest.$ac_ext
10835 fi
10836 eval ac_res=\$$gt_func_gnugettext_libc
10837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10839
10840         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10841
10842
10843
10844
10845
10846
10847
10848
10849     use_additional=yes
10850
10851   acl_save_prefix="$prefix"
10852   prefix="$acl_final_prefix"
10853   acl_save_exec_prefix="$exec_prefix"
10854   exec_prefix="$acl_final_exec_prefix"
10855
10856     eval additional_includedir=\"$includedir\"
10857     eval additional_libdir=\"$libdir\"
10858
10859   exec_prefix="$acl_save_exec_prefix"
10860   prefix="$acl_save_prefix"
10861
10862
10863 # Check whether --with-libintl-prefix was given.
10864 if test "${with_libintl_prefix+set}" = set; then :
10865   withval=$with_libintl_prefix;
10866     if test "X$withval" = "Xno"; then
10867       use_additional=no
10868     else
10869       if test "X$withval" = "X"; then
10870
10871   acl_save_prefix="$prefix"
10872   prefix="$acl_final_prefix"
10873   acl_save_exec_prefix="$exec_prefix"
10874   exec_prefix="$acl_final_exec_prefix"
10875
10876           eval additional_includedir=\"$includedir\"
10877           eval additional_libdir=\"$libdir\"
10878
10879   exec_prefix="$acl_save_exec_prefix"
10880   prefix="$acl_save_prefix"
10881
10882       else
10883         additional_includedir="$withval/include"
10884         additional_libdir="$withval/$acl_libdirstem"
10885         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10886            && ! test -d "$withval/$acl_libdirstem"; then
10887           additional_libdir="$withval/$acl_libdirstem2"
10888         fi
10889       fi
10890     fi
10891
10892 fi
10893
10894       LIBINTL=
10895   LTLIBINTL=
10896   INCINTL=
10897   LIBINTL_PREFIX=
10898       HAVE_LIBINTL=
10899   rpathdirs=
10900   ltrpathdirs=
10901   names_already_handled=
10902   names_next_round='intl '
10903   while test -n "$names_next_round"; do
10904     names_this_round="$names_next_round"
10905     names_next_round=
10906     for name in $names_this_round; do
10907       already_handled=
10908       for n in $names_already_handled; do
10909         if test "$n" = "$name"; then
10910           already_handled=yes
10911           break
10912         fi
10913       done
10914       if test -z "$already_handled"; then
10915         names_already_handled="$names_already_handled $name"
10916                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10917         eval value=\"\$HAVE_LIB$uppername\"
10918         if test -n "$value"; then
10919           if test "$value" = yes; then
10920             eval value=\"\$LIB$uppername\"
10921             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10922             eval value=\"\$LTLIB$uppername\"
10923             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10924           else
10925                                     :
10926           fi
10927         else
10928                               found_dir=
10929           found_la=
10930           found_so=
10931           found_a=
10932           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10933           if test -n "$acl_shlibext"; then
10934             shrext=".$acl_shlibext"             # typically: shrext=.so
10935           else
10936             shrext=
10937           fi
10938           if test $use_additional = yes; then
10939             dir="$additional_libdir"
10940                                     if test -n "$acl_shlibext"; then
10941               if test -f "$dir/$libname$shrext"; then
10942                 found_dir="$dir"
10943                 found_so="$dir/$libname$shrext"
10944               else
10945                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10946                   ver=`(cd "$dir" && \
10947                         for f in "$libname$shrext".*; do echo "$f"; done \
10948                         | sed -e "s,^$libname$shrext\\\\.,," \
10949                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10950                         | sed 1q ) 2>/dev/null`
10951                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10952                     found_dir="$dir"
10953                     found_so="$dir/$libname$shrext.$ver"
10954                   fi
10955                 else
10956                   eval library_names=\"$acl_library_names_spec\"
10957                   for f in $library_names; do
10958                     if test -f "$dir/$f"; then
10959                       found_dir="$dir"
10960                       found_so="$dir/$f"
10961                       break
10962                     fi
10963                   done
10964                 fi
10965               fi
10966             fi
10967                         if test "X$found_dir" = "X"; then
10968               if test -f "$dir/$libname.$acl_libext"; then
10969                 found_dir="$dir"
10970                 found_a="$dir/$libname.$acl_libext"
10971               fi
10972             fi
10973             if test "X$found_dir" != "X"; then
10974               if test -f "$dir/$libname.la"; then
10975                 found_la="$dir/$libname.la"
10976               fi
10977             fi
10978           fi
10979           if test "X$found_dir" = "X"; then
10980             for x in $LDFLAGS $LTLIBINTL; do
10981
10982   acl_save_prefix="$prefix"
10983   prefix="$acl_final_prefix"
10984   acl_save_exec_prefix="$exec_prefix"
10985   exec_prefix="$acl_final_exec_prefix"
10986   eval x=\"$x\"
10987   exec_prefix="$acl_save_exec_prefix"
10988   prefix="$acl_save_prefix"
10989
10990               case "$x" in
10991                 -L*)
10992                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10993                                     if test -n "$acl_shlibext"; then
10994                     if test -f "$dir/$libname$shrext"; then
10995                       found_dir="$dir"
10996                       found_so="$dir/$libname$shrext"
10997                     else
10998                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10999                         ver=`(cd "$dir" && \
11000                               for f in "$libname$shrext".*; do echo "$f"; done \
11001                               | sed -e "s,^$libname$shrext\\\\.,," \
11002                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11003                               | sed 1q ) 2>/dev/null`
11004                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11005                           found_dir="$dir"
11006                           found_so="$dir/$libname$shrext.$ver"
11007                         fi
11008                       else
11009                         eval library_names=\"$acl_library_names_spec\"
11010                         for f in $library_names; do
11011                           if test -f "$dir/$f"; then
11012                             found_dir="$dir"
11013                             found_so="$dir/$f"
11014                             break
11015                           fi
11016                         done
11017                       fi
11018                     fi
11019                   fi
11020                                     if test "X$found_dir" = "X"; then
11021                     if test -f "$dir/$libname.$acl_libext"; then
11022                       found_dir="$dir"
11023                       found_a="$dir/$libname.$acl_libext"
11024                     fi
11025                   fi
11026                   if test "X$found_dir" != "X"; then
11027                     if test -f "$dir/$libname.la"; then
11028                       found_la="$dir/$libname.la"
11029                     fi
11030                   fi
11031                   ;;
11032               esac
11033               if test "X$found_dir" != "X"; then
11034                 break
11035               fi
11036             done
11037           fi
11038           if test "X$found_dir" != "X"; then
11039                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11040             if test "X$found_so" != "X"; then
11041                                                         if test "$enable_rpath" = no \
11042                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11043                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11044                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11045               else
11046                                                                                 haveit=
11047                 for x in $ltrpathdirs; do
11048                   if test "X$x" = "X$found_dir"; then
11049                     haveit=yes
11050                     break
11051                   fi
11052                 done
11053                 if test -z "$haveit"; then
11054                   ltrpathdirs="$ltrpathdirs $found_dir"
11055                 fi
11056                                 if test "$acl_hardcode_direct" = yes; then
11057                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11058                 else
11059                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11060                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11061                                                             haveit=
11062                     for x in $rpathdirs; do
11063                       if test "X$x" = "X$found_dir"; then
11064                         haveit=yes
11065                         break
11066                       fi
11067                     done
11068                     if test -z "$haveit"; then
11069                       rpathdirs="$rpathdirs $found_dir"
11070                     fi
11071                   else
11072                                                                                 haveit=
11073                     for x in $LDFLAGS $LIBINTL; do
11074
11075   acl_save_prefix="$prefix"
11076   prefix="$acl_final_prefix"
11077   acl_save_exec_prefix="$exec_prefix"
11078   exec_prefix="$acl_final_exec_prefix"
11079   eval x=\"$x\"
11080   exec_prefix="$acl_save_exec_prefix"
11081   prefix="$acl_save_prefix"
11082
11083                       if test "X$x" = "X-L$found_dir"; then
11084                         haveit=yes
11085                         break
11086                       fi
11087                     done
11088                     if test -z "$haveit"; then
11089                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11090                     fi
11091                     if test "$acl_hardcode_minus_L" != no; then
11092                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11093                     else
11094                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11095                     fi
11096                   fi
11097                 fi
11098               fi
11099             else
11100               if test "X$found_a" != "X"; then
11101                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11102               else
11103                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11104               fi
11105             fi
11106                         additional_includedir=
11107             case "$found_dir" in
11108               */$acl_libdirstem | */$acl_libdirstem/)
11109                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11110                 if test "$name" = 'intl'; then
11111                   LIBINTL_PREFIX="$basedir"
11112                 fi
11113                 additional_includedir="$basedir/include"
11114                 ;;
11115               */$acl_libdirstem2 | */$acl_libdirstem2/)
11116                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11117                 if test "$name" = 'intl'; then
11118                   LIBINTL_PREFIX="$basedir"
11119                 fi
11120                 additional_includedir="$basedir/include"
11121                 ;;
11122             esac
11123             if test "X$additional_includedir" != "X"; then
11124                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11125                 haveit=
11126                 if test "X$additional_includedir" = "X/usr/local/include"; then
11127                   if test -n "$GCC"; then
11128                     case $host_os in
11129                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11130                     esac
11131                   fi
11132                 fi
11133                 if test -z "$haveit"; then
11134                   for x in $CPPFLAGS $INCINTL; do
11135
11136   acl_save_prefix="$prefix"
11137   prefix="$acl_final_prefix"
11138   acl_save_exec_prefix="$exec_prefix"
11139   exec_prefix="$acl_final_exec_prefix"
11140   eval x=\"$x\"
11141   exec_prefix="$acl_save_exec_prefix"
11142   prefix="$acl_save_prefix"
11143
11144                     if test "X$x" = "X-I$additional_includedir"; then
11145                       haveit=yes
11146                       break
11147                     fi
11148                   done
11149                   if test -z "$haveit"; then
11150                     if test -d "$additional_includedir"; then
11151                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11152                     fi
11153                   fi
11154                 fi
11155               fi
11156             fi
11157                         if test -n "$found_la"; then
11158                                                         save_libdir="$libdir"
11159               case "$found_la" in
11160                 */* | *\\*) . "$found_la" ;;
11161                 *) . "./$found_la" ;;
11162               esac
11163               libdir="$save_libdir"
11164                             for dep in $dependency_libs; do
11165                 case "$dep" in
11166                   -L*)
11167                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11168                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11169                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11170                       haveit=
11171                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11172                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11173                         if test -n "$GCC"; then
11174                           case $host_os in
11175                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11176                           esac
11177                         fi
11178                       fi
11179                       if test -z "$haveit"; then
11180                         haveit=
11181                         for x in $LDFLAGS $LIBINTL; do
11182
11183   acl_save_prefix="$prefix"
11184   prefix="$acl_final_prefix"
11185   acl_save_exec_prefix="$exec_prefix"
11186   exec_prefix="$acl_final_exec_prefix"
11187   eval x=\"$x\"
11188   exec_prefix="$acl_save_exec_prefix"
11189   prefix="$acl_save_prefix"
11190
11191                           if test "X$x" = "X-L$additional_libdir"; then
11192                             haveit=yes
11193                             break
11194                           fi
11195                         done
11196                         if test -z "$haveit"; then
11197                           if test -d "$additional_libdir"; then
11198                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11199                           fi
11200                         fi
11201                         haveit=
11202                         for x in $LDFLAGS $LTLIBINTL; do
11203
11204   acl_save_prefix="$prefix"
11205   prefix="$acl_final_prefix"
11206   acl_save_exec_prefix="$exec_prefix"
11207   exec_prefix="$acl_final_exec_prefix"
11208   eval x=\"$x\"
11209   exec_prefix="$acl_save_exec_prefix"
11210   prefix="$acl_save_prefix"
11211
11212                           if test "X$x" = "X-L$additional_libdir"; then
11213                             haveit=yes
11214                             break
11215                           fi
11216                         done
11217                         if test -z "$haveit"; then
11218                           if test -d "$additional_libdir"; then
11219                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11220                           fi
11221                         fi
11222                       fi
11223                     fi
11224                     ;;
11225                   -R*)
11226                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11227                     if test "$enable_rpath" != no; then
11228                                                                   haveit=
11229                       for x in $rpathdirs; do
11230                         if test "X$x" = "X$dir"; then
11231                           haveit=yes
11232                           break
11233                         fi
11234                       done
11235                       if test -z "$haveit"; then
11236                         rpathdirs="$rpathdirs $dir"
11237                       fi
11238                                                                   haveit=
11239                       for x in $ltrpathdirs; do
11240                         if test "X$x" = "X$dir"; then
11241                           haveit=yes
11242                           break
11243                         fi
11244                       done
11245                       if test -z "$haveit"; then
11246                         ltrpathdirs="$ltrpathdirs $dir"
11247                       fi
11248                     fi
11249                     ;;
11250                   -l*)
11251                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11252                     ;;
11253                   *.la)
11254                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11255                     ;;
11256                   *)
11257                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11258                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11259                     ;;
11260                 esac
11261               done
11262             fi
11263           else
11264                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11265             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11266           fi
11267         fi
11268       fi
11269     done
11270   done
11271   if test "X$rpathdirs" != "X"; then
11272     if test -n "$acl_hardcode_libdir_separator"; then
11273                         alldirs=
11274       for found_dir in $rpathdirs; do
11275         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11276       done
11277             acl_save_libdir="$libdir"
11278       libdir="$alldirs"
11279       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11280       libdir="$acl_save_libdir"
11281       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11282     else
11283             for found_dir in $rpathdirs; do
11284         acl_save_libdir="$libdir"
11285         libdir="$found_dir"
11286         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11287         libdir="$acl_save_libdir"
11288         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11289       done
11290     fi
11291   fi
11292   if test "X$ltrpathdirs" != "X"; then
11293             for found_dir in $ltrpathdirs; do
11294       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11295     done
11296   fi
11297
11298
11299
11300
11301
11302
11303           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11304 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11305 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   gt_save_CPPFLAGS="$CPPFLAGS"
11309             CPPFLAGS="$CPPFLAGS $INCINTL"
11310             gt_save_LIBS="$LIBS"
11311             LIBS="$LIBS $LIBINTL"
11312                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h.  */
11314
11315 #include <libintl.h>
11316 $gt_revision_test_code
11317 extern int _nl_msg_cat_cntr;
11318 extern
11319 #ifdef __cplusplus
11320 "C"
11321 #endif
11322 const char *_nl_expand_alias (const char *);
11323
11324 int
11325 main ()
11326 {
11327
11328 bindtextdomain ("", "");
11329 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11330
11331   ;
11332   return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336   eval "$gt_func_gnugettext_libintl=yes"
11337 else
11338   eval "$gt_func_gnugettext_libintl=no"
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext \
11341     conftest$ac_exeext conftest.$ac_ext
11342                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11343               LIBS="$LIBS $LIBICONV"
11344               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h.  */
11346
11347 #include <libintl.h>
11348 $gt_revision_test_code
11349 extern int _nl_msg_cat_cntr;
11350 extern
11351 #ifdef __cplusplus
11352 "C"
11353 #endif
11354 const char *_nl_expand_alias (const char *);
11355
11356 int
11357 main ()
11358 {
11359
11360 bindtextdomain ("", "");
11361 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11362
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368   LIBINTL="$LIBINTL $LIBICONV"
11369                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11370                  eval "$gt_func_gnugettext_libintl=yes"
11371
11372 fi
11373 rm -f core conftest.err conftest.$ac_objext \
11374     conftest$ac_exeext conftest.$ac_ext
11375             fi
11376             CPPFLAGS="$gt_save_CPPFLAGS"
11377             LIBS="$gt_save_LIBS"
11378 fi
11379 eval ac_res=\$$gt_func_gnugettext_libintl
11380                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11381 $as_echo "$ac_res" >&6; }
11382         fi
11383
11384                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11385            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11386                 && test "$PACKAGE" != gettext-runtime \
11387                 && test "$PACKAGE" != gettext-tools; }; then
11388           gt_use_preinstalled_gnugettext=yes
11389         else
11390                     LIBINTL=
11391           LTLIBINTL=
11392           INCINTL=
11393         fi
11394
11395
11396         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11397                               nls_cv_use_gnu_gettext=yes
11398         fi
11399       fi
11400
11401       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11402                 BUILD_INCLUDED_LIBINTL=yes
11403         USE_INCLUDED_LIBINTL=yes
11404         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11405         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11406         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11407       fi
11408
11409       CATOBJEXT=
11410       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11411          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11412                 CATOBJEXT=.gmo
11413       fi
11414
11415
11416     if test -n "$INTL_MACOSX_LIBS"; then
11417       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11418          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11419                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11420         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11421       fi
11422     fi
11423
11424     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11425        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11426
11427 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11428
11429     else
11430       USE_NLS=no
11431     fi
11432   fi
11433
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11435 $as_echo_n "checking whether to use NLS... " >&6; }
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11437 $as_echo "$USE_NLS" >&6; }
11438   if test "$USE_NLS" = "yes"; then
11439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11440 $as_echo_n "checking where the gettext function comes from... " >&6; }
11441     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11442       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11443         gt_source="external libintl"
11444       else
11445         gt_source="libc"
11446       fi
11447     else
11448       gt_source="included intl directory"
11449     fi
11450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11451 $as_echo "$gt_source" >&6; }
11452   fi
11453
11454   if test "$USE_NLS" = "yes"; then
11455
11456     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11457       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11459 $as_echo_n "checking how to link with libintl... " >&6; }
11460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11461 $as_echo "$LIBINTL" >&6; }
11462
11463   for element in $INCINTL; do
11464     haveit=
11465     for x in $CPPFLAGS; do
11466
11467   acl_save_prefix="$prefix"
11468   prefix="$acl_final_prefix"
11469   acl_save_exec_prefix="$exec_prefix"
11470   exec_prefix="$acl_final_exec_prefix"
11471   eval x=\"$x\"
11472   exec_prefix="$acl_save_exec_prefix"
11473   prefix="$acl_save_prefix"
11474
11475       if test "X$x" = "X$element"; then
11476         haveit=yes
11477         break
11478       fi
11479     done
11480     if test -z "$haveit"; then
11481       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11482     fi
11483   done
11484
11485       fi
11486
11487
11488 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11489
11490
11491 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11492
11493     fi
11494
11495         POSUB=po
11496   fi
11497
11498
11499             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11500       BUILD_INCLUDED_LIBINTL=yes
11501     fi
11502
11503
11504
11505
11506
11507         nls_cv_header_intl=
11508     nls_cv_header_libgt=
11509
11510         DATADIRNAME=share
11511
11512
11513         INSTOBJEXT=.mo
11514
11515
11516         GENCAT=gencat
11517
11518
11519         INTLOBJS=
11520     if test "$USE_INCLUDED_LIBINTL" = yes; then
11521       INTLOBJS="\$(GETTOBJS)"
11522     fi
11523
11524
11525         INTL_LIBTOOL_SUFFIX_PREFIX=
11526
11527
11528
11529     INTLLIBS="$LIBINTL"
11530
11531
11532
11533
11534
11535
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11538 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11539 set x ${MAKE-make}
11540 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11541 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   cat >conftest.make <<\_ACEOF
11545 SHELL = /bin/sh
11546 all:
11547         @echo '@@@%%%=$(MAKE)=@@@%%%'
11548 _ACEOF
11549 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11551   *@@@%%%=?*=@@@%%%*)
11552     eval ac_cv_prog_make_${ac_make}_set=yes;;
11553   *)
11554     eval ac_cv_prog_make_${ac_make}_set=no;;
11555 esac
11556 rm -f conftest.make
11557 fi
11558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11560 $as_echo "yes" >&6; }
11561   SET_MAKE=
11562 else
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565   SET_MAKE="MAKE=${MAKE-make}"
11566 fi
11567
11568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11569 $as_echo_n "checking for GNU make... " >&6; }
11570 if ${_cv_gnu_make_command+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   _cv_gnu_make_command='' ;
11574                 if test -n "$FORCE_NATIVE_MAKE" ; then
11575                    MAKES="make"
11576                 else
11577                    MAKES="make gmake gnumake"
11578                 fi
11579                 for a in "$MAKE" $MAKES ; do
11580                         if test -z "$a" ; then continue ; fi ;
11581                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11582                                 _cv_gnu_make_command=$a ;
11583                                 break;
11584                         fi
11585                 done ;
11586
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11589 $as_echo "$_cv_gnu_make_command" >&6; } ;
11590         if test  "x$_cv_gnu_make_command" != "x"  ; then
11591                 ifGNUmake='' ;
11592                 ifNotGNUmake='#' ;
11593         else
11594                 ifGNUmake='#' ;
11595                 ifNotGNUmake='' ;
11596                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11597 $as_echo "\"Not found\"" >&6; };
11598         fi
11599
11600
11601
11602 # Extract the first word of "ln", so it can be a program name with args.
11603 set dummy ln; ac_word=$2
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if ${ac_cv_path_LN+:} false; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   case $LN in
11610   [\\/]* | ?:[\\/]*)
11611   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11612   ;;
11613   *)
11614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11616 do
11617   IFS=$as_save_IFS
11618   test -z "$as_dir" && as_dir=.
11619     for ac_exec_ext in '' $ac_executable_extensions; do
11620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623     break 2
11624   fi
11625 done
11626   done
11627 IFS=$as_save_IFS
11628
11629   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11630   ;;
11631 esac
11632 fi
11633 LN=$ac_cv_path_LN
11634 if test -n "$LN"; then
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11636 $as_echo "$LN" >&6; }
11637 else
11638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 fi
11641
11642
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11645 LN_S=$as_ln_s
11646 if test "$LN_S" = "ln -s"; then
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11652 fi
11653
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_MV+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $MV in
11662   [\\/]* | ?:[\\/]*)
11663   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11664   ;;
11665   *)
11666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680
11681   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11682   ;;
11683 esac
11684 fi
11685 MV=$ac_cv_path_MV
11686 if test -n "$MV"; then
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11689 else
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_CP+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   case $CP in
11703   [\\/]* | ?:[\\/]*)
11704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11705   ;;
11706   *)
11707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712     for ac_exec_ext in '' $ac_executable_extensions; do
11713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719   done
11720 IFS=$as_save_IFS
11721
11722   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11723   ;;
11724 esac
11725 fi
11726 CP=$ac_cv_path_CP
11727 if test -n "$CP"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_RM+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   case $RM in
11744   [\\/]* | ?:[\\/]*)
11745   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11746   ;;
11747   *)
11748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753     for ac_exec_ext in '' $ac_executable_extensions; do
11754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760   done
11761 IFS=$as_save_IFS
11762
11763   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11764   ;;
11765 esac
11766 fi
11767 RM=$ac_cv_path_RM
11768 if test -n "$RM"; then
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_path_CHMOD+:} false; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784   case $CHMOD in
11785   [\\/]* | ?:[\\/]*)
11786   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11787   ;;
11788   *)
11789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792   IFS=$as_save_IFS
11793   test -z "$as_dir" && as_dir=.
11794     for ac_exec_ext in '' $ac_executable_extensions; do
11795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798     break 2
11799   fi
11800 done
11801   done
11802 IFS=$as_save_IFS
11803
11804   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11805   ;;
11806 esac
11807 fi
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11812 else
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11815 fi
11816
11817
11818 for ac_prog in gawk mawk nawk awk
11819 do
11820   # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_AWK+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   if test -n "$AWK"; then
11828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_exec_ext in '' $ac_executable_extensions; do
11836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837     ac_cv_prog_AWK="$ac_prog"
11838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842   done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857   test -n "$AWK" && break
11858 done
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if ${ac_cv_path_EGREP+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866    then ac_cv_path_EGREP="$GREP -E"
11867    else
11868      if test -z "$EGREP"; then
11869   ac_path_EGREP_found=false
11870   # Loop through the user's path and test for each of PROGNAME-LIST
11871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11873 do
11874   IFS=$as_save_IFS
11875   test -z "$as_dir" && as_dir=.
11876     for ac_prog in egrep; do
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879       as_fn_executable_p "$ac_path_EGREP" || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881   # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11883 *GNU*)
11884   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11885 *)
11886   ac_count=0
11887   $as_echo_n 0123456789 >"conftest.in"
11888   while :
11889   do
11890     cat "conftest.in" "conftest.in" >"conftest.tmp"
11891     mv "conftest.tmp" "conftest.in"
11892     cp "conftest.in" "conftest.nl"
11893     $as_echo 'EGREP' >> "conftest.nl"
11894     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896     as_fn_arith $ac_count + 1 && ac_count=$as_val
11897     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898       # Best one so far, save it but keep looking for a better one
11899       ac_cv_path_EGREP="$ac_path_EGREP"
11900       ac_path_EGREP_max=$ac_count
11901     fi
11902     # 10*(2^10) chars as input seems more than enough
11903     test $ac_count -gt 10 && break
11904   done
11905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11906 esac
11907
11908       $ac_path_EGREP_found && break 3
11909     done
11910   done
11911   done
11912 IFS=$as_save_IFS
11913   if test -z "$ac_cv_path_EGREP"; then
11914     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11915   fi
11916 else
11917   ac_cv_path_EGREP=$EGREP
11918 fi
11919
11920    fi
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11923 $as_echo "$ac_cv_path_EGREP" >&6; }
11924  EGREP="$ac_cv_path_EGREP"
11925
11926
11927 # Extract the first word of "sed", so it can be a program name with args.
11928 set dummy sed; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_SED+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   case $SED in
11935   [\\/]* | ?:[\\/]*)
11936   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11937   ;;
11938   *)
11939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11955   ;;
11956 esac
11957 fi
11958 SED=$ac_cv_path_SED
11959 if test -n "$SED"; then
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11961 $as_echo "$SED" >&6; }
11962 else
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968 # Extract the first word of "perl", so it can be a program name with args.
11969 set dummy perl; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_PERL+:} false; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   case $PERL in
11976   [\\/]* | ?:[\\/]*)
11977   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11978   ;;
11979   *)
11980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11982 do
11983   IFS=$as_save_IFS
11984   test -z "$as_dir" && as_dir=.
11985     for ac_exec_ext in '' $ac_executable_extensions; do
11986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989     break 2
11990   fi
11991 done
11992   done
11993 IFS=$as_save_IFS
11994
11995   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11996   ;;
11997 esac
11998 fi
11999 PERL=$ac_cv_path_PERL
12000 if test -n "$PERL"; then
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12002 $as_echo "$PERL" >&6; }
12003 else
12004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 fi
12007
12008
12009 # Extract the first word of "ldconfig", so it can be a program name with args.
12010 set dummy ldconfig; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_LDCONFIG+:} false; then :
12014   $as_echo_n "(cached) " >&6
12015 else
12016   case $LDCONFIG in
12017   [\\/]* | ?:[\\/]*)
12018   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12019   ;;
12020   *)
12021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12023 do
12024   IFS=$as_save_IFS
12025   test -z "$as_dir" && as_dir=.
12026     for ac_exec_ext in '' $ac_executable_extensions; do
12027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030     break 2
12031   fi
12032 done
12033   done
12034 IFS=$as_save_IFS
12035
12036   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12037   ;;
12038 esac
12039 fi
12040 LDCONFIG=$ac_cv_path_LDCONFIG
12041 if test -n "$LDCONFIG"; then
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12043 $as_echo "$LDCONFIG" >&6; }
12044 else
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 fi
12048
12049
12050 if test -n "$ac_tool_prefix"; then
12051   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12052 set dummy ${ac_tool_prefix}ar; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_AR+:} false; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   if test -n "$AR"; then
12059   ac_cv_prog_AR="$AR" # Let the user override the test.
12060 else
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12063 do
12064   IFS=$as_save_IFS
12065   test -z "$as_dir" && as_dir=.
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068     ac_cv_prog_AR="${ac_tool_prefix}ar"
12069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070     break 2
12071   fi
12072 done
12073   done
12074 IFS=$as_save_IFS
12075
12076 fi
12077 fi
12078 AR=$ac_cv_prog_AR
12079 if test -n "$AR"; then
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081 $as_echo "$AR" >&6; }
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 if test -z "$ac_cv_prog_AR"; then
12090   ac_ct_AR=$AR
12091   # Extract the first word of "ar", so it can be a program name with args.
12092 set dummy ar; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098   if test -n "$ac_ct_AR"; then
12099   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12100 else
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_exec_ext in '' $ac_executable_extensions; do
12107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108     ac_cv_prog_ac_ct_AR="ar"
12109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113   done
12114 IFS=$as_save_IFS
12115
12116 fi
12117 fi
12118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119 if test -n "$ac_ct_AR"; then
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121 $as_echo "$ac_ct_AR" >&6; }
12122 else
12123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126
12127   if test "x$ac_ct_AR" = x; then
12128     AR="ar"
12129   else
12130     case $cross_compiling:$ac_tool_warned in
12131 yes:)
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12134 ac_tool_warned=yes ;;
12135 esac
12136     AR=$ac_ct_AR
12137   fi
12138 else
12139   AR="$ac_cv_prog_AR"
12140 fi
12141
12142 if test -n "$ac_tool_prefix"; then
12143   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_RANLIB+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   if test -n "$RANLIB"; then
12151   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165   done
12166 IFS=$as_save_IFS
12167
12168 fi
12169 fi
12170 RANLIB=$ac_cv_prog_RANLIB
12171 if test -n "$RANLIB"; then
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12173 $as_echo "$RANLIB" >&6; }
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178
12179
12180 fi
12181 if test -z "$ac_cv_prog_RANLIB"; then
12182   ac_ct_RANLIB=$RANLIB
12183   # Extract the first word of "ranlib", so it can be a program name with args.
12184 set dummy ranlib; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   if test -n "$ac_ct_RANLIB"; then
12191   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196   IFS=$as_save_IFS
12197   test -z "$as_dir" && as_dir=.
12198     for ac_exec_ext in '' $ac_executable_extensions; do
12199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200     ac_cv_prog_ac_ct_RANLIB="ranlib"
12201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202     break 2
12203   fi
12204 done
12205   done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12211 if test -n "$ac_ct_RANLIB"; then
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12213 $as_echo "$ac_ct_RANLIB" >&6; }
12214 else
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219   if test "x$ac_ct_RANLIB" = x; then
12220     RANLIB=":"
12221   else
12222     case $cross_compiling:$ac_tool_warned in
12223 yes:)
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned=yes ;;
12227 esac
12228     RANLIB=$ac_ct_RANLIB
12229   fi
12230 else
12231   RANLIB="$ac_cv_prog_RANLIB"
12232 fi
12233
12234 if test -n "$ac_tool_prefix"; then
12235   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12236 set dummy ${ac_tool_prefix}strip; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_STRIP+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   if test -n "$STRIP"; then
12243   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12247 do
12248   IFS=$as_save_IFS
12249   test -z "$as_dir" && as_dir=.
12250     for ac_exec_ext in '' $ac_executable_extensions; do
12251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254     break 2
12255   fi
12256 done
12257   done
12258 IFS=$as_save_IFS
12259
12260 fi
12261 fi
12262 STRIP=$ac_cv_prog_STRIP
12263 if test -n "$STRIP"; then
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12265 $as_echo "$STRIP" >&6; }
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12269 fi
12270
12271
12272 fi
12273 if test -z "$ac_cv_prog_STRIP"; then
12274   ac_ct_STRIP=$STRIP
12275   # Extract the first word of "strip", so it can be a program name with args.
12276 set dummy strip; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282   if test -n "$ac_ct_STRIP"; then
12283   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288   IFS=$as_save_IFS
12289   test -z "$as_dir" && as_dir=.
12290     for ac_exec_ext in '' $ac_executable_extensions; do
12291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292     ac_cv_prog_ac_ct_STRIP="strip"
12293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294     break 2
12295   fi
12296 done
12297   done
12298 IFS=$as_save_IFS
12299
12300 fi
12301 fi
12302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12303 if test -n "$ac_ct_STRIP"; then
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12305 $as_echo "$ac_ct_STRIP" >&6; }
12306 else
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310
12311   if test "x$ac_ct_STRIP" = x; then
12312     STRIP=":"
12313   else
12314     case $cross_compiling:$ac_tool_warned in
12315 yes:)
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318 ac_tool_warned=yes ;;
12319 esac
12320     STRIP=$ac_ct_STRIP
12321   fi
12322 else
12323   STRIP="$ac_cv_prog_STRIP"
12324 fi
12325
12326 # Extract the first word of "makeinfo", so it can be a program name with args.
12327 set dummy makeinfo; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_prog_MAKEINFO+:} false; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   if test -n "$MAKEINFO"; then
12334   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12335 else
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12338 do
12339   IFS=$as_save_IFS
12340   test -z "$as_dir" && as_dir=.
12341     for ac_exec_ext in '' $ac_executable_extensions; do
12342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343     ac_cv_prog_MAKEINFO="makeinfo"
12344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345     break 2
12346   fi
12347 done
12348   done
12349 IFS=$as_save_IFS
12350
12351 fi
12352 fi
12353 MAKEINFO=$ac_cv_prog_MAKEINFO
12354 if test -n "$MAKEINFO"; then
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12356 $as_echo "$MAKEINFO" >&6; }
12357 else
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12360 fi
12361
12362
12363 if test "_$MAKEINFO" = "_"; then
12364     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12365 else
12366     case "$MAKEINFO" in
12367       */missing.*)
12368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12369 *** Makeinfo is missing. Info documentation will not be built." >&5
12370 $as_echo "$as_me: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12372         ;;
12373       *)
12374         ;;
12375     esac
12376 fi
12377
12378
12379 # See if we need a separate native compiler.
12380 if test $cross_compiling = no; then
12381   BUILD_CC="$CC"
12382
12383 else
12384   for ac_prog in gcc cc
12385 do
12386   # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy $ac_prog; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_BUILD_CC+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   if test -n "$BUILD_CC"; then
12394   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_prog_BUILD_CC="$ac_prog"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 BUILD_CC=$ac_cv_prog_BUILD_CC
12414 if test -n "$BUILD_CC"; then
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12416 $as_echo "$BUILD_CC" >&6; }
12417 else
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422
12423   test -n "$BUILD_CC" && break
12424 done
12425
12426 fi
12427 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
12428 do :
12429   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12432   cat >>confdefs.h <<_ACEOF
12433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12434 _ACEOF
12435
12436 fi
12437
12438 done
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12441 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12442 DD=
12443 for i in dd gdd ; do
12444         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12445                 DD=$i
12446                 break
12447         fi
12448 done
12449 if test -n "$DD" ; then
12450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12451 $as_echo "$DD" >&6; }
12452 else
12453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12454 $as_echo "not found, using dd" >&6; }
12455         DD=dd
12456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12457 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12458 fi
12459
12460
12461 for ac_header in net/if.h
12462 do :
12463   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12464 #if HAVE_SYS_TYPES_H
12465 #include <sys/types.h>
12466 #endif
12467 #if HAVE_SYS_SOCKET
12468 #include <sys/socket.h>
12469 #endif
12470
12471 "
12472 if test "x$ac_cv_header_net_if_h" = xyes; then :
12473   cat >>confdefs.h <<_ACEOF
12474 #define HAVE_NET_IF_H 1
12475 _ACEOF
12476
12477 fi
12478
12479 done
12480
12481 for ac_func in vprintf
12482 do :
12483   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12484 if test "x$ac_cv_func_vprintf" = xyes; then :
12485   cat >>confdefs.h <<_ACEOF
12486 #define HAVE_VPRINTF 1
12487 _ACEOF
12488
12489 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12490 if test "x$ac_cv_func__doprnt" = xyes; then :
12491
12492 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12493
12494 fi
12495
12496 fi
12497 done
12498
12499
12500 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12501 "
12502 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12503
12504 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12505
12506 fi
12507
12508 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12509 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12510
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_STRUCT_STAT_ST_ATIM 1
12513 _ACEOF
12514
12515
12516 fi
12517
12518 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12519 "
12520 if test "x$ac_cv_type_ssize_t" = xyes; then :
12521
12522 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12523
12524 fi
12525
12526 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12527 "
12528 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12529
12530 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12531
12532 fi
12533
12534 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12535                  #define _LARGEFILE64_SOURCE
12536                  #include <unistd.h>
12537 "
12538 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12539
12540 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12541
12542 fi
12543
12544 # The cast to long int works around a bug in the HP C Compiler
12545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12547 # This bug is HP SR number 8606223364.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12549 $as_echo_n "checking size of short... " >&6; }
12550 if ${ac_cv_sizeof_short+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12554
12555 else
12556   if test "$ac_cv_type_short" = yes; then
12557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12559 as_fn_error 77 "cannot compute sizeof (short)
12560 See \`config.log' for more details" "$LINENO" 5; }
12561    else
12562      ac_cv_sizeof_short=0
12563    fi
12564 fi
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12568 $as_echo "$ac_cv_sizeof_short" >&6; }
12569
12570
12571
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_SHORT $ac_cv_sizeof_short
12574 _ACEOF
12575
12576
12577 # The cast to long int works around a bug in the HP C Compiler
12578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12580 # This bug is HP SR number 8606223364.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12582 $as_echo_n "checking size of int... " >&6; }
12583 if ${ac_cv_sizeof_int+:} false; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12587
12588 else
12589   if test "$ac_cv_type_int" = yes; then
12590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 as_fn_error 77 "cannot compute sizeof (int)
12593 See \`config.log' for more details" "$LINENO" 5; }
12594    else
12595      ac_cv_sizeof_int=0
12596    fi
12597 fi
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12601 $as_echo "$ac_cv_sizeof_int" >&6; }
12602
12603
12604
12605 cat >>confdefs.h <<_ACEOF
12606 #define SIZEOF_INT $ac_cv_sizeof_int
12607 _ACEOF
12608
12609
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12615 $as_echo_n "checking size of long... " >&6; }
12616 if ${ac_cv_sizeof_long+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12620
12621 else
12622   if test "$ac_cv_type_long" = yes; then
12623      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12625 as_fn_error 77 "cannot compute sizeof (long)
12626 See \`config.log' for more details" "$LINENO" 5; }
12627    else
12628      ac_cv_sizeof_long=0
12629    fi
12630 fi
12631
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12634 $as_echo "$ac_cv_sizeof_long" >&6; }
12635
12636
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define SIZEOF_LONG $ac_cv_sizeof_long
12640 _ACEOF
12641
12642
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12648 $as_echo_n "checking size of long long... " >&6; }
12649 if ${ac_cv_sizeof_long_long+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12653
12654 else
12655   if test "$ac_cv_type_long_long" = yes; then
12656      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12658 as_fn_error 77 "cannot compute sizeof (long long)
12659 See \`config.log' for more details" "$LINENO" 5; }
12660    else
12661      ac_cv_sizeof_long_long=0
12662    fi
12663 fi
12664
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12667 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12668
12669
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12673 _ACEOF
12674
12675
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12681 $as_echo_n "checking size of off_t... " >&6; }
12682 if ${ac_cv_sizeof_off_t+:} false; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12686
12687 else
12688   if test "$ac_cv_type_off_t" = yes; then
12689      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12691 as_fn_error 77 "cannot compute sizeof (off_t)
12692 See \`config.log' for more details" "$LINENO" 5; }
12693    else
12694      ac_cv_sizeof_off_t=0
12695    fi
12696 fi
12697
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12700 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12701
12702
12703
12704 cat >>confdefs.h <<_ACEOF
12705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12706 _ACEOF
12707
12708
12709 # The cast to long int works around a bug in the HP C Compiler
12710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12712 # This bug is HP SR number 8606223364.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12714 $as_echo_n "checking size of time_t... " >&6; }
12715 if ${ac_cv_sizeof_time_t+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12719
12720 else
12721   if test "$ac_cv_type_time_t" = yes; then
12722      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724 as_fn_error 77 "cannot compute sizeof (time_t)
12725 See \`config.log' for more details" "$LINENO" 5; }
12726    else
12727      ac_cv_sizeof_time_t=0
12728    fi
12729 fi
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12733 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12734
12735
12736
12737 cat >>confdefs.h <<_ACEOF
12738 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12739 _ACEOF
12740
12741
12742 SIZEOF_SHORT=$ac_cv_sizeof_short
12743 SIZEOF_INT=$ac_cv_sizeof_int
12744 SIZEOF_LONG=$ac_cv_sizeof_long
12745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12747 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12748
12749
12750
12751
12752
12753
12754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12756 if ${ac_cv_c_bigendian+:} false; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   ac_cv_c_bigendian=unknown
12760     # See if we're dealing with a universal compiler.
12761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h.  */
12763 #ifndef __APPLE_CC__
12764                not a universal capable compiler
12765              #endif
12766              typedef int dummy;
12767
12768 _ACEOF
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770
12771         # Check for potential -arch flags.  It is not universal unless
12772         # there are at least two -arch flags with different values.
12773         ac_arch=
12774         ac_prev=
12775         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12776          if test -n "$ac_prev"; then
12777            case $ac_word in
12778              i?86 | x86_64 | ppc | ppc64)
12779                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12780                  ac_arch=$ac_word
12781                else
12782                  ac_cv_c_bigendian=universal
12783                  break
12784                fi
12785                ;;
12786            esac
12787            ac_prev=
12788          elif test "x$ac_word" = "x-arch"; then
12789            ac_prev=arch
12790          fi
12791        done
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794     if test $ac_cv_c_bigendian = unknown; then
12795       # See if sys/param.h defines the BYTE_ORDER macro.
12796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h.  */
12798 #include <sys/types.h>
12799              #include <sys/param.h>
12800
12801 int
12802 main ()
12803 {
12804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12805                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12806                      && LITTLE_ENDIAN)
12807               bogus endian macros
12808              #endif
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815   # It does; now see whether it defined to BIG_ENDIAN or not.
12816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h.  */
12818 #include <sys/types.h>
12819                 #include <sys/param.h>
12820
12821 int
12822 main ()
12823 {
12824 #if BYTE_ORDER != BIG_ENDIAN
12825                  not big endian
12826                 #endif
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833   ac_cv_c_bigendian=yes
12834 else
12835   ac_cv_c_bigendian=no
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840     fi
12841     if test $ac_cv_c_bigendian = unknown; then
12842       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #include <limits.h>
12846
12847 int
12848 main ()
12849 {
12850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12851               bogus endian macros
12852              #endif
12853
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859   # It does; now see whether it defined to _BIG_ENDIAN or not.
12860          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862 #include <limits.h>
12863
12864 int
12865 main ()
12866 {
12867 #ifndef _BIG_ENDIAN
12868                  not big endian
12869                 #endif
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_compile "$LINENO"; then :
12876   ac_cv_c_bigendian=yes
12877 else
12878   ac_cv_c_bigendian=no
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883     fi
12884     if test $ac_cv_c_bigendian = unknown; then
12885       # Compile a test program.
12886       if test "$cross_compiling" = yes; then :
12887   # Try to guess by grepping values from an object file.
12888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h.  */
12890 short int ascii_mm[] =
12891                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12892                 short int ascii_ii[] =
12893                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12894                 int use_ascii (int i) {
12895                   return ascii_mm[i] + ascii_ii[i];
12896                 }
12897                 short int ebcdic_ii[] =
12898                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12899                 short int ebcdic_mm[] =
12900                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12901                 int use_ebcdic (int i) {
12902                   return ebcdic_mm[i] + ebcdic_ii[i];
12903                 }
12904                 extern int foo;
12905
12906 int
12907 main ()
12908 {
12909 return use_ascii (foo) == use_ebcdic (foo);
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12916               ac_cv_c_bigendian=yes
12917             fi
12918             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12919               if test "$ac_cv_c_bigendian" = unknown; then
12920                 ac_cv_c_bigendian=no
12921               else
12922                 # finding both strings is unlikely to happen, but who knows?
12923                 ac_cv_c_bigendian=unknown
12924               fi
12925             fi
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 else
12929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931 $ac_includes_default
12932 int
12933 main ()
12934 {
12935
12936              /* Are we little or big endian?  From Harbison&Steele.  */
12937              union
12938              {
12939                long int l;
12940                char c[sizeof (long int)];
12941              } u;
12942              u.l = 1;
12943              return u.c[sizeof (long int) - 1] == 1;
12944
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_run "$LINENO"; then :
12950   ac_cv_c_bigendian=no
12951 else
12952   ac_cv_c_bigendian=yes
12953 fi
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955   conftest.$ac_objext conftest.beam conftest.$ac_ext
12956 fi
12957
12958     fi
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12961 $as_echo "$ac_cv_c_bigendian" >&6; }
12962  case $ac_cv_c_bigendian in #(
12963    yes)
12964      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12965 ;; #(
12966    no)
12967       ;; #(
12968    universal)
12969
12970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12971
12972      ;; #(
12973    *)
12974      as_fn_error $? "unknown endianness
12975  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12976  esac
12977
12978 if test $cross_compiling = no; then
12979   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12980 else
12981   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12982 fi
12983 ASM_TYPES_HEADER=./asm_types.h
12984
12985 echo "/* These defines are needed for the public ext2fs.h header file */" \
12986      > public_config.h
12987 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12988   uniq tmp_config.$$ >> public_config.h
12989 else
12990   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12991 fi
12992 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12993   uniq tmp_config.$$ >> public_config.h
12994 else
12995   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12996 fi
12997 rm -f tmp_config.$$
12998 PUBLIC_CONFIG_HEADER=./public_config.h
12999
13000 for ac_header in inttypes.h
13001 do :
13002   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13003 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13004   cat >>confdefs.h <<_ACEOF
13005 #define HAVE_INTTYPES_H 1
13006 _ACEOF
13007
13008 fi
13009
13010 done
13011
13012 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13013 if test "x$ac_cv_type_intptr_t" = xyes; then :
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_INTPTR_T 1
13017 _ACEOF
13018
13019
13020 fi
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13023 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13024 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h.  */
13029 #include <sys/stat.h>
13030 int
13031 main ()
13032 {
13033 struct stat stat; stat.st_flags = 0;
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039   e2fsprogs_cv_struct_st_flags=yes
13040 else
13041   e2fsprogs_cv_struct_st_flags=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 fi
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13047 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13048 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13050 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13051   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <sys/stat.h>
13057 int
13058 main ()
13059 {
13060 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066   e2fsprogs_cv_struct_st_flags_immut=yes
13067 else
13068   e2fsprogs_cv_struct_st_flags_immut=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13074 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13075   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13076
13077 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13078
13079   fi
13080 fi
13081 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13082          #include <sys/socket.h>
13083 "
13084 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13085
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_SA_LEN 1
13088 _ACEOF
13089
13090 fi
13091
13092 if test -n "$BLKID_CMT"; then
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13094 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13095 if ${ac_cv_search_blkid_probe_all+:} false; then :
13096   $as_echo_n "(cached) " >&6
13097 else
13098   ac_func_search_save_LIBS=$LIBS
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101
13102 /* Override any GCC internal prototype to avoid an error.
13103    Use char because int might match the return type of a GCC
13104    builtin and then its argument prototype would still apply.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char blkid_probe_all ();
13109 int
13110 main ()
13111 {
13112 return blkid_probe_all ();
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 for ac_lib in '' blkid; do
13118   if test -z "$ac_lib"; then
13119     ac_res="none required"
13120   else
13121     ac_res=-l$ac_lib
13122     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13123   fi
13124   if ac_fn_c_try_link "$LINENO"; then :
13125   ac_cv_search_blkid_probe_all=$ac_res
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext \
13128     conftest$ac_exeext
13129   if ${ac_cv_search_blkid_probe_all+:} false; then :
13130   break
13131 fi
13132 done
13133 if ${ac_cv_search_blkid_probe_all+:} false; then :
13134
13135 else
13136   ac_cv_search_blkid_probe_all=no
13137 fi
13138 rm conftest.$ac_ext
13139 LIBS=$ac_func_search_save_LIBS
13140 fi
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13142 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13143 ac_res=$ac_cv_search_blkid_probe_all
13144 if test "$ac_res" != no; then :
13145   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13146
13147 fi
13148
13149 fi
13150 if test -n "$DLOPEN_LIB" ; then
13151    ac_cv_func_dlopen=yes
13152 fi
13153 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
13154 do :
13155   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13158   cat >>confdefs.h <<_ACEOF
13159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13160 _ACEOF
13161
13162 fi
13163 done
13164
13165 SOCKET_LIB=''
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13167 $as_echo_n "checking for socket in -lsocket... " >&6; }
13168 if ${ac_cv_lib_socket_socket+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsocket  $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char socket ();
13183 int
13184 main ()
13185 {
13186 return socket ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 if ac_fn_c_try_link "$LINENO"; then :
13192   ac_cv_lib_socket_socket=yes
13193 else
13194   ac_cv_lib_socket_socket=no
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext \
13197     conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13199 fi
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13201 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13202 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13203   SOCKET_LIB=-lsocket
13204 fi
13205
13206
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13208 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13209 if ${ac_cv_lib_magic_magic_file+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lmagic  $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h.  */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218    Use char because int might match the return type of a GCC
13219    builtin and then its argument prototype would still apply.  */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char magic_file ();
13224 int
13225 main ()
13226 {
13227 return magic_file ();
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233   ac_cv_lib_magic_magic_file=yes
13234 else
13235   ac_cv_lib_magic_magic_file=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext \
13238     conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13242 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13243 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13244   MAGIC_LIB=-lmagic
13245 for ac_header in magic.h
13246 do :
13247   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13248 if test "x$ac_cv_header_magic_h" = xyes; then :
13249   cat >>confdefs.h <<_ACEOF
13250 #define HAVE_MAGIC_H 1
13251 _ACEOF
13252
13253 fi
13254
13255 done
13256
13257 fi
13258
13259 if test "$ac_cv_func_dlopen" = yes ; then
13260    MAGIC_LIB=$DLOPEN_LIB
13261 fi
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13264 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13265 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lrt  $LIBS"
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h.  */
13272
13273 /* Override any GCC internal prototype to avoid an error.
13274    Use char because int might match the return type of a GCC
13275    builtin and then its argument prototype would still apply.  */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 char clock_gettime ();
13280 int
13281 main ()
13282 {
13283 return clock_gettime ();
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289   ac_cv_lib_rt_clock_gettime=yes
13290 else
13291   ac_cv_lib_rt_clock_gettime=no
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext \
13294     conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13298 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13299 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13300   CLOCK_GETTIME_LIB=-lrt
13301 fi
13302
13303
13304 FUSE_CMT=
13305 FUSE_LIB=
13306 # Check whether --enable-fuse2fs was given.
13307 if test "${enable_fuse2fs+set}" = set; then :
13308   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13309 then
13310         FUSE_CMT="#"
13311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13312 $as_echo "Disabling fuse2fs" >&6; }
13313 else
13314         for ac_header in pthread.h fuse.h
13315 do :
13316   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13318 #define FUSE_USE_VERSION 29
13319 "
13320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13321   cat >>confdefs.h <<_ACEOF
13322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13323 _ACEOF
13324
13325 else
13326   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "Cannot find fuse2fs headers.
13329 See \`config.log' for more details" "$LINENO" 5; }
13330 fi
13331
13332 done
13333
13334
13335         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337 #define FUSE_USE_VERSION 29
13338 #ifdef __linux__
13339 #include <linux/fs.h>
13340 #include <linux/falloc.h>
13341 #include <linux/xattr.h>
13342 #endif
13343
13344 int
13345 main ()
13346 {
13347
13348   ;
13349   return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_cpp "$LINENO"; then :
13353
13354 else
13355   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13357 as_fn_error $? "Cannot find fuse2fs Linux headers.
13358 See \`config.log' for more details" "$LINENO" 5; }
13359 fi
13360 rm -f conftest.err conftest.i conftest.$ac_ext
13361
13362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13363 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13364 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-losxfuse  $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h.  */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373    Use char because int might match the return type of a GCC
13374    builtin and then its argument prototype would still apply.  */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char fuse_main ();
13379 int
13380 main ()
13381 {
13382 return fuse_main ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 if ac_fn_c_try_link "$LINENO"; then :
13388   ac_cv_lib_osxfuse_fuse_main=yes
13389 else
13390   ac_cv_lib_osxfuse_fuse_main=no
13391 fi
13392 rm -f core conftest.err conftest.$ac_objext \
13393     conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13397 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13398 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13399   FUSE_LIB=-losxfuse
13400 else
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13402 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13403 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lfuse  $LIBS"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 /* Override any GCC internal prototype to avoid an error.
13412    Use char because int might match the return type of a GCC
13413    builtin and then its argument prototype would still apply.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 #endif
13417 char fuse_main ();
13418 int
13419 main ()
13420 {
13421 return fuse_main ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_link "$LINENO"; then :
13427   ac_cv_lib_fuse_fuse_main=yes
13428 else
13429   ac_cv_lib_fuse_fuse_main=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext \
13432     conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13436 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13437 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13438   FUSE_LIB=-lfuse
13439 else
13440   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13442 as_fn_error $? "Cannot find fuse library.
13443 See \`config.log' for more details" "$LINENO" 5; }
13444 fi
13445
13446 fi
13447
13448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13449 $as_echo "Enabling fuse2fs" >&6; }
13450 fi
13451
13452 else
13453   for ac_header in pthread.h fuse.h
13454 do :
13455   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13457 #define FUSE_USE_VERSION 29
13458 #ifdef __linux__
13459 # include <linux/fs.h>
13460 # include <linux/falloc.h>
13461 # include <linux/xattr.h>
13462 #endif
13463 "
13464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13465   cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13467 _ACEOF
13468
13469 else
13470   FUSE_CMT="#"
13471 fi
13472
13473 done
13474
13475 if test -z "$FUSE_CMT"
13476 then
13477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13478 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13479 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13480   $as_echo_n "(cached) " >&6
13481 else
13482   ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-losxfuse  $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h.  */
13486
13487 /* Override any GCC internal prototype to avoid an error.
13488    Use char because int might match the return type of a GCC
13489    builtin and then its argument prototype would still apply.  */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char fuse_main ();
13494 int
13495 main ()
13496 {
13497 return fuse_main ();
13498   ;
13499   return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503   ac_cv_lib_osxfuse_fuse_main=yes
13504 else
13505   ac_cv_lib_osxfuse_fuse_main=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508     conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13512 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13513 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13514   FUSE_LIB=-losxfuse
13515 else
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13517 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13518 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lfuse  $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525
13526 /* Override any GCC internal prototype to avoid an error.
13527    Use char because int might match the return type of a GCC
13528    builtin and then its argument prototype would still apply.  */
13529 #ifdef __cplusplus
13530 extern "C"
13531 #endif
13532 char fuse_main ();
13533 int
13534 main ()
13535 {
13536 return fuse_main ();
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"; then :
13542   ac_cv_lib_fuse_fuse_main=yes
13543 else
13544   ac_cv_lib_fuse_fuse_main=no
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext \
13547     conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13551 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13552 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13553   FUSE_LIB=-lfuse
13554 else
13555   FUSE_CMT="#"
13556 fi
13557
13558 fi
13559
13560 fi
13561 if test -z "$FUSE_CMT"
13562 then
13563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13564 $as_echo "Enabling fuse2fs by default." >&6; }
13565 fi
13566
13567 fi
13568
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13572 $as_echo_n "checking for optreset... " >&6; }
13573 if ${ac_cv_have_optreset+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h.  */
13578 #include <unistd.h>
13579
13580 _ACEOF
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582   $EGREP "optreset" >/dev/null 2>&1; then :
13583   ac_cv_have_optreset=yes
13584 else
13585   ac_cv_have_optreset=no
13586 fi
13587 rm -f conftest*
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13591 $as_echo "$ac_cv_have_optreset" >&6; }
13592 if test $ac_cv_have_optreset = yes; then
13593
13594 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13595
13596 fi
13597
13598 SEM_INIT_LIB=''
13599 echo GL_THREADS_API: ${gl_threads_api}
13600 if test "${gl_threads_api}" != none
13601 then
13602   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13603 if test "x$ac_cv_func_sem_init" = xyes; then :
13604
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13607 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13608 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lpthread  $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617    Use char because int might match the return type of a GCC
13618    builtin and then its argument prototype would still apply.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char sem_init ();
13623 int
13624 main ()
13625 {
13626 return sem_init ();
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632   ac_cv_lib_pthread_sem_init=yes
13633 else
13634   ac_cv_lib_pthread_sem_init=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637     conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13641 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13642 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13643   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13644
13645         SEM_INIT_LIB=-lpthread
13646 else
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13648 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13649 if ${ac_cv_lib_rt_sem_init+:} false; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lrt  $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char sem_init ();
13664 int
13665 main ()
13666 {
13667 return sem_init ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673   ac_cv_lib_rt_sem_init=yes
13674 else
13675   ac_cv_lib_rt_sem_init=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext \
13678     conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13682 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13683 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13684   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13685
13686         SEM_INIT_LIB=-lrt
13687 else
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13689 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13690 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13691   $as_echo_n "(cached) " >&6
13692 else
13693   ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lposix4  $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697
13698 /* Override any GCC internal prototype to avoid an error.
13699    Use char because int might match the return type of a GCC
13700    builtin and then its argument prototype would still apply.  */
13701 #ifdef __cplusplus
13702 extern "C"
13703 #endif
13704 char sem_init ();
13705 int
13706 main ()
13707 {
13708 return sem_init ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714   ac_cv_lib_posix4_sem_init=yes
13715 else
13716   ac_cv_lib_posix4_sem_init=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719     conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13723 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13724 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13725   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13726
13727         SEM_INIT_LIB=-lposix4
13728 fi
13729
13730 fi
13731
13732 fi
13733
13734 fi
13735 fi
13736
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13738 $as_echo_n "checking for unified diff option... " >&6; }
13739 if diff -u $0 $0 > /dev/null 2>&1 ; then
13740    UNI_DIFF_OPTS=-u
13741 else
13742    UNI_DIFF_OPTS=-c
13743 fi
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13745 $as_echo "$UNI_DIFF_OPTS" >&6; }
13746
13747 case "$host_os" in
13748 linux*)
13749
13750 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13751
13752         ;;
13753 esac
13754 # Check whether --enable-lto was given.
13755 if test "${enable_lto+set}" = set; then :
13756   enableval=$enable_lto;
13757 else
13758   enable_lto=probe
13759 fi
13760
13761 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13763 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13764         OLD_CFLAGS="$CFLAGS"
13765         OLD_LDFLAGS="$LDFLAGS"
13766         LTO_FLAGS="-flto -ffat-lto-objects"
13767         CFLAGS="$CFLAGS $LTO_FLAGS"
13768         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13769         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h.  */
13771
13772 int
13773 main ()
13774 {
13775
13776   ;
13777   return 0;
13778 }
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783                 lto_cflags=$LTO_FLAGS
13784                 lto_ldflags=$LTO_FLAGS
13785                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13786 set dummy gcc-ar; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_path_gcc_ar+:} false; then :
13790   $as_echo_n "(cached) " >&6
13791 else
13792   case $gcc_ar in
13793   [\\/]* | ?:[\\/]*)
13794   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13795   ;;
13796   *)
13797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13799 do
13800   IFS=$as_save_IFS
13801   test -z "$as_dir" && as_dir=.
13802     for ac_exec_ext in '' $ac_executable_extensions; do
13803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806     break 2
13807   fi
13808 done
13809   done
13810 IFS=$as_save_IFS
13811
13812   ;;
13813 esac
13814 fi
13815 gcc_ar=$ac_cv_path_gcc_ar
13816 if test -n "$gcc_ar"; then
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13818 $as_echo "$gcc_ar" >&6; }
13819 else
13820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823
13824
13825                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13826 set dummy gcc-ranlib; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_gcc_ranlib+:} false; then :
13830   $as_echo_n "(cached) " >&6
13831 else
13832   case $gcc_ranlib in
13833   [\\/]* | ?:[\\/]*)
13834   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13835   ;;
13836   *)
13837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13839 do
13840   IFS=$as_save_IFS
13841   test -z "$as_dir" && as_dir=.
13842     for ac_exec_ext in '' $ac_executable_extensions; do
13843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13846     break 2
13847   fi
13848 done
13849   done
13850 IFS=$as_save_IFS
13851
13852   ;;
13853 esac
13854 fi
13855 gcc_ranlib=$ac_cv_path_gcc_ranlib
13856 if test -n "$gcc_ranlib"; then
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13858 $as_echo "$gcc_ranlib" >&6; }
13859 else
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13862 fi
13863
13864
13865 else
13866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870     conftest$ac_exeext conftest.$ac_ext
13871         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13872                 have_lto=yes
13873                 AR="${gcc_ar}"
13874                 RANLIB="${gcc_ranlib}"
13875         fi
13876         CFLAGS="${OLD_CFLAGS}"
13877         LDFLAGS="${OLD_LDFLAGS}"
13878
13879
13880
13881 fi
13882 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13883         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13884 fi
13885 # Check whether --enable-ubsan was given.
13886 if test "${enable_ubsan+set}" = set; then :
13887   enableval=$enable_ubsan;
13888 else
13889   enable_ubsan=no
13890 fi
13891
13892 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13894 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13895         OLD_CFLAGS="$CFLAGS"
13896         OLD_LDFLAGS="$LDFLAGS"
13897         UBSAN_FLAGS="-fsanitize=undefined"
13898         CFLAGS="$CFLAGS $UBSAN_FLAGS"
13899         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13900         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 int
13904 main ()
13905 {
13906
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914                 ubsan_cflags=$UBSAN_FLAGS
13915                 ubsan_ldflags=$UBSAN_FLAGS
13916                 have_ubsan=yes
13917 else
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922     conftest$ac_exeext conftest.$ac_ext
13923         CFLAGS="${OLD_CFLAGS}"
13924         LDFLAGS="${OLD_LDFLAGS}"
13925
13926
13927
13928 fi
13929 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13930         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13931 fi
13932 # Check whether --enable-addrsan was given.
13933 if test "${enable_addrsan+set}" = set; then :
13934   enableval=$enable_addrsan;
13935 else
13936   enable_addrsan=no
13937 fi
13938
13939 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
13940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13941 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13942         OLD_CFLAGS="$CFLAGS"
13943         OLD_LDFLAGS="$LDFLAGS"
13944         ADDRSAN_FLAGS="-fsanitize=address"
13945         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
13946         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
13947         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949
13950 int
13951 main ()
13952 {
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13961                 addrsan_cflags=$ADDRSAN_FLAGS
13962                 addrsan_ldflags=$ADDRSAN_FLAGS
13963                 have_addrsan=yes
13964 else
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext \
13969     conftest$ac_exeext conftest.$ac_ext
13970         CFLAGS="${OLD_CFLAGS}"
13971         LDFLAGS="${OLD_LDFLAGS}"
13972
13973
13974
13975 fi
13976 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13977         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
13978 fi
13979 # Check whether --enable-threadsan was given.
13980 if test "${enable_threadsan+set}" = set; then :
13981   enableval=$enable_threadsan;
13982 else
13983   enable_threadsan=no
13984 fi
13985
13986 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
13987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
13988 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
13989         OLD_CFLAGS="$CFLAGS"
13990         OLD_LDFLAGS="$LDFLAGS"
13991         THREADSAN_FLAGS="-fsanitize=thread"
13992         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
13993         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
13994         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h.  */
13996
13997 int
13998 main ()
13999 {
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008                 threadsan_cflags=$THREADSAN_FLAGS
14009                 threadsan_ldflags=$THREADSAN_FLAGS
14010                 have_threadsan=yes
14011 else
14012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext \
14016     conftest$ac_exeext conftest.$ac_ext
14017         CFLAGS="${OLD_CFLAGS}"
14018         LDFLAGS="${OLD_LDFLAGS}"
14019
14020
14021
14022 fi
14023 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14024         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14025 fi
14026 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14028 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14029 fi
14030 LINUX_CMT="#"
14031 CYGWIN_CMT="#"
14032 UNIX_CMT=
14033 case "$host_os" in
14034 linux*)
14035         LINUX_CMT=
14036         ;;
14037 cygwin)
14038         CYGWIN_CMT=
14039         UNIX_CMT="#"
14040         ;;
14041 esac
14042
14043
14044
14045 E2SCRUB_CMT="$LINUX_CMT"
14046
14047 case "$host_os" in
14048 linux* | gnu* | k*bsd*-gnu)
14049         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14050                 root_prefix="";
14051                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14052 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14053         fi
14054         ;;
14055 esac
14056 case "$host_os" in
14057 linux* | gnu* | k*bsd*-gnu)
14058         if test "$prefix" = NONE ; then
14059                 prefix="/usr";
14060                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14061 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14062                 if test "$mandir" = '${prefix}/man' ; then
14063                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14064 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14065                         mandir=/usr/share/man
14066                 fi
14067         fi
14068 ;;
14069 esac
14070 if test "$root_prefix" = NONE ; then
14071         if test "$prefix" = NONE ; then
14072                 root_prefix="$ac_default_prefix"
14073         else
14074                 root_prefix="$prefix"
14075         fi
14076         root_bindir=$bindir
14077         root_sbindir=$sbindir
14078         root_libdir=$libdir
14079         root_sysconfdir=$sysconfdir
14080 else
14081         root_bindir='${root_prefix}/bin'
14082         root_sbindir='${root_prefix}/sbin'
14083         root_libdir='${root_prefix}/lib'
14084         root_sysconfdir='${root_prefix}/etc'
14085 fi
14086 if test "$bindir" != '${exec_prefix}/bin'; then
14087     root_bindir=$bindir
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14089 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14090 fi
14091 if test "$sbindir" != '${exec_prefix}/sbin'; then
14092     root_sbindir=$sbindir
14093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14094 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14095 fi
14096 if test "$libdir" != '${exec_prefix}/lib'; then
14097     root_libdir=$libdir
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14099 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14100 fi
14101 if test "$sysconfdir" != '${prefix}/etc'; then
14102     root_sysconfdir=$sysconfdir
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14104 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14105 fi
14106
14107
14108
14109
14110
14111
14112 # Check whether --with-multiarch was given.
14113 if test "${with_multiarch+set}" = set; then :
14114   withval=$with_multiarch; if test "$withval" = "lib64"; then
14115     libdir=/usr/lib64
14116     root_libdir=/lib64
14117 else
14118     libdir=$libdir/$withval
14119     root_libdir=$root_libdir/$withval
14120 fi
14121
14122 fi
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14125 $as_echo_n "checking whether we can link with -static... " >&6; }
14126 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h.  */
14132 #include <stdio.h>
14133 int
14134 main ()
14135 {
14136 fflush(stdout);
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 if ac_fn_c_try_link "$LINENO"; then :
14142   ac_cv_e2fsprogs_use_static=yes
14143 else
14144   ac_cv_e2fsprogs_use_static=no
14145 fi
14146 rm -f core conftest.err conftest.$ac_objext \
14147     conftest$ac_exeext conftest.$ac_ext
14148 LDFLAGS=$SAVE_LDFLAGS
14149 fi
14150
14151 case "$host_os" in
14152 solaris2.*)
14153         ac_cv_e2fsprogs_use_static=no
14154 ;;
14155 esac
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14157 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14158 if test $ac_cv_e2fsprogs_use_static = yes; then
14159         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14160 fi
14161
14162 case "$host_os" in
14163 darwin*)
14164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14165 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14166
14167 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14168
14169         ;;
14170 esac
14171 if test "$cross_compiling" = yes ; then
14172   DO_TEST_SUITE=
14173 else
14174   DO_TEST_SUITE=check
14175 fi
14176
14177 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14178 if test -n "$CPPFLAGS" ; then
14179         INCLUDES="$INCLUDES $CPPFLAGS"
14180 fi
14181 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14182         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14183 fi
14184 if test -n "$WITH_DIET_LIBC" ; then
14185         INCLUDES="$INCLUDES -D_REENTRANT"
14186 fi
14187
14188
14189         MKINSTALLDIRS=
14190   if test -n "$ac_aux_dir"; then
14191     case "$ac_aux_dir" in
14192       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14193       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14194     esac
14195   fi
14196   if test -z "$MKINSTALLDIRS"; then
14197     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14198   fi
14199
14200
14201 if test $cross_compiling = no; then
14202    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14203    BUILD_LDFLAGS="$LDFLAGS"
14204 fi
14205
14206
14207 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14208 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14209 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14210
14211
14212
14213
14214
14215 # Check whether --with-udev_rules_dir was given.
14216 if test "${with_udev_rules_dir+set}" = set; then :
14217   withval=$with_udev_rules_dir;
14218 else
14219   with_udev_rules_dir=yes
14220 fi
14221
14222 if test "x${with_udev_rules_dir}" != "xno"; then :
14223
14224         if test "x${with_udev_rules_dir}" = "xyes"; then :
14225
14226
14227 pkg_failed=no
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14229 $as_echo_n "checking for udev... " >&6; }
14230
14231 if test -n "$udev_CFLAGS"; then
14232     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14233  elif test -n "$PKG_CONFIG"; then
14234     if test -n "$PKG_CONFIG" && \
14235     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14236   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14237   ac_status=$?
14238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239   test $ac_status = 0; }; then
14240   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14241                       test "x$?" != "x0" && pkg_failed=yes
14242 else
14243   pkg_failed=yes
14244 fi
14245  else
14246     pkg_failed=untried
14247 fi
14248 if test -n "$udev_LIBS"; then
14249     pkg_cv_udev_LIBS="$udev_LIBS"
14250  elif test -n "$PKG_CONFIG"; then
14251     if test -n "$PKG_CONFIG" && \
14252     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14253   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14254   ac_status=$?
14255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256   test $ac_status = 0; }; then
14257   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14258                       test "x$?" != "x0" && pkg_failed=yes
14259 else
14260   pkg_failed=yes
14261 fi
14262  else
14263     pkg_failed=untried
14264 fi
14265
14266
14267
14268 if test $pkg_failed = yes; then
14269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14271
14272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14273         _pkg_short_errors_supported=yes
14274 else
14275         _pkg_short_errors_supported=no
14276 fi
14277         if test $_pkg_short_errors_supported = yes; then
14278                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14279         else
14280                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14281         fi
14282         # Put the nasty error message in config.log where it belongs
14283         echo "$udev_PKG_ERRORS" >&5
14284
14285
14286                         with_udev_rules_dir=""
14287
14288 elif test $pkg_failed = untried; then
14289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291
14292                         with_udev_rules_dir=""
14293
14294 else
14295         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14296         udev_LIBS=$pkg_cv_udev_LIBS
14297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14298 $as_echo "yes" >&6; }
14299
14300                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14301
14302 fi
14303
14304 fi
14305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14306 $as_echo_n "checking for udev rules dir... " >&6; }
14307         pkg_udev_rules_dir="${with_udev_rules_dir}"
14308         if test -n "${pkg_udev_rules_dir}"; then :
14309
14310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14311 $as_echo "${pkg_udev_rules_dir}" >&6; }
14312                 have_udev="yes"
14313
14314 else
14315
14316                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14318                 have_udev="no"
14319
14320 fi
14321
14322 else
14323
14324         have_udev="disabled"
14325
14326 fi
14327
14328
14329
14330
14331 # Check whether --with-crond_dir was given.
14332 if test "${with_crond_dir+set}" = set; then :
14333   withval=$with_crond_dir;
14334 else
14335   with_crond_dir=yes
14336 fi
14337
14338 if test "x${with_crond_dir}" != "xno"; then :
14339
14340         if test "x${with_crond_dir}" = "xyes"; then :
14341
14342                 if test -d "/etc/cron.d"; then :
14343   with_crond_dir="/etc/cron.d"
14344 fi
14345
14346 fi
14347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14348 $as_echo_n "checking for system crontab dir... " >&6; }
14349         crond_dir="${with_crond_dir}"
14350         if test -n "${crond_dir}"; then :
14351
14352                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14353 $as_echo "${crond_dir}" >&6; }
14354                 have_crond="yes"
14355
14356 else
14357
14358                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360                 have_crond="no"
14361
14362 fi
14363
14364 else
14365
14366         have_crond="disabled"
14367
14368 fi
14369
14370
14371
14372
14373 # Check whether --with-systemd_unit_dir was given.
14374 if test "${with_systemd_unit_dir+set}" = set; then :
14375   withval=$with_systemd_unit_dir;
14376 else
14377   with_systemd_unit_dir=yes
14378 fi
14379
14380 if test "x${with_systemd_unit_dir}" != "xno"; then :
14381
14382         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14383
14384
14385 pkg_failed=no
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14387 $as_echo_n "checking for systemd... " >&6; }
14388
14389 if test -n "$systemd_CFLAGS"; then
14390     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14391  elif test -n "$PKG_CONFIG"; then
14392     if test -n "$PKG_CONFIG" && \
14393     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14394   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14395   ac_status=$?
14396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14397   test $ac_status = 0; }; then
14398   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14399                       test "x$?" != "x0" && pkg_failed=yes
14400 else
14401   pkg_failed=yes
14402 fi
14403  else
14404     pkg_failed=untried
14405 fi
14406 if test -n "$systemd_LIBS"; then
14407     pkg_cv_systemd_LIBS="$systemd_LIBS"
14408  elif test -n "$PKG_CONFIG"; then
14409     if test -n "$PKG_CONFIG" && \
14410     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14411   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14412   ac_status=$?
14413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14414   test $ac_status = 0; }; then
14415   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14416                       test "x$?" != "x0" && pkg_failed=yes
14417 else
14418   pkg_failed=yes
14419 fi
14420  else
14421     pkg_failed=untried
14422 fi
14423
14424
14425
14426 if test $pkg_failed = yes; then
14427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 $as_echo "no" >&6; }
14429
14430 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14431         _pkg_short_errors_supported=yes
14432 else
14433         _pkg_short_errors_supported=no
14434 fi
14435         if test $_pkg_short_errors_supported = yes; then
14436                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14437         else
14438                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14439         fi
14440         # Put the nasty error message in config.log where it belongs
14441         echo "$systemd_PKG_ERRORS" >&5
14442
14443
14444                         with_systemd_unit_dir=""
14445
14446 elif test $pkg_failed = untried; then
14447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14449
14450                         with_systemd_unit_dir=""
14451
14452 else
14453         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14454         systemd_LIBS=$pkg_cv_systemd_LIBS
14455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14456 $as_echo "yes" >&6; }
14457
14458                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14459
14460 fi
14461
14462
14463 fi
14464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14465 $as_echo_n "checking for systemd system unit dir... " >&6; }
14466         systemd_system_unit_dir="${with_systemd_unit_dir}"
14467         if test -n "${systemd_system_unit_dir}"; then :
14468
14469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14470 $as_echo "${systemd_system_unit_dir}" >&6; }
14471                 have_systemd="yes"
14472
14473 else
14474
14475                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477                 have_systemd="no"
14478
14479 fi
14480
14481 else
14482
14483         have_systemd="disabled"
14484
14485 fi
14486
14487
14488
14489 test -d lib || mkdir lib
14490 test -d include || mkdir include
14491 test -d include/linux || mkdir include/linux
14492 test -d include/asm || mkdir include/asm
14493 if test -z "$UUID_CMT" ; then
14494         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14495                 lib/uuid/uuid_types.h"
14496 fi
14497 if test -z "$BLKID_CMT" ; then
14498         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14499                 lib/blkid/blkid_types.h"
14500 fi
14501 for i in MCONFIG Makefile e2fsprogs.spec \
14502         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14503         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14504         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14505         $uuid_out_list $blkid_out_list lib/support/Makefile \
14506         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14507         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14508         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14509         resize/Makefile doc/Makefile intl/Makefile \
14510         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14511         if test -d `dirname ${srcdir}/$i` ; then
14512                 outlist="$outlist $i"
14513         fi
14514 done
14515 ac_config_files="$ac_config_files $outlist"
14516
14517 cat >confcache <<\_ACEOF
14518 # This file is a shell script that caches the results of configure
14519 # tests run on this system so they can be shared between configure
14520 # scripts and configure runs, see configure's option --config-cache.
14521 # It is not useful on other systems.  If it contains results you don't
14522 # want to keep, you may remove or edit it.
14523 #
14524 # config.status only pays attention to the cache file if you give it
14525 # the --recheck option to rerun configure.
14526 #
14527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14529 # following values.
14530
14531 _ACEOF
14532
14533 # The following way of writing the cache mishandles newlines in values,
14534 # but we know of no workaround that is simple, portable, and efficient.
14535 # So, we kill variables containing newlines.
14536 # Ultrix sh set writes to stderr and can't be redirected directly,
14537 # and sets the high bit in the cache file unless we assign to the vars.
14538 (
14539   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14540     eval ac_val=\$$ac_var
14541     case $ac_val in #(
14542     *${as_nl}*)
14543       case $ac_var in #(
14544       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14546       esac
14547       case $ac_var in #(
14548       _ | IFS | as_nl) ;; #(
14549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14550       *) { eval $ac_var=; unset $ac_var;} ;;
14551       esac ;;
14552     esac
14553   done
14554
14555   (set) 2>&1 |
14556     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14557     *${as_nl}ac_space=\ *)
14558       # `set' does not quote correctly, so add quotes: double-quote
14559       # substitution turns \\\\ into \\, and sed turns \\ into \.
14560       sed -n \
14561         "s/'/'\\\\''/g;
14562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14563       ;; #(
14564     *)
14565       # `set' quotes correctly as required by POSIX, so do not add quotes.
14566       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14567       ;;
14568     esac |
14569     sort
14570 ) |
14571   sed '
14572      /^ac_cv_env_/b end
14573      t clear
14574      :clear
14575      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14576      t end
14577      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14578      :end' >>confcache
14579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14580   if test -w "$cache_file"; then
14581     if test "x$cache_file" != "x/dev/null"; then
14582       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14583 $as_echo "$as_me: updating cache $cache_file" >&6;}
14584       if test ! -f "$cache_file" || test -h "$cache_file"; then
14585         cat confcache >"$cache_file"
14586       else
14587         case $cache_file in #(
14588         */* | ?:*)
14589           mv -f confcache "$cache_file"$$ &&
14590           mv -f "$cache_file"$$ "$cache_file" ;; #(
14591         *)
14592           mv -f confcache "$cache_file" ;;
14593         esac
14594       fi
14595     fi
14596   else
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14598 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14599   fi
14600 fi
14601 rm -f confcache
14602
14603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14604 # Let make expand exec_prefix.
14605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14606
14607 DEFS=-DHAVE_CONFIG_H
14608
14609 ac_libobjs=
14610 ac_ltlibobjs=
14611 U=
14612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14613   # 1. Remove the extension, and $U if already installed.
14614   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14615   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14616   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14617   #    will be set to the directory where LIBOBJS objects are built.
14618   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14619   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14620 done
14621 LIBOBJS=$ac_libobjs
14622
14623 LTLIBOBJS=$ac_ltlibobjs
14624
14625
14626
14627
14628 : "${CONFIG_STATUS=./config.status}"
14629 ac_write_fail=0
14630 ac_clean_files_save=$ac_clean_files
14631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14634 as_write_fail=0
14635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14636 #! $SHELL
14637 # Generated by $as_me.
14638 # Run this file to recreate the current configuration.
14639 # Compiler output produced by configure, useful for debugging
14640 # configure, is in config.log if it exists.
14641
14642 debug=false
14643 ac_cs_recheck=false
14644 ac_cs_silent=false
14645
14646 SHELL=\${CONFIG_SHELL-$SHELL}
14647 export SHELL
14648 _ASEOF
14649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14650 ## -------------------- ##
14651 ## M4sh Initialization. ##
14652 ## -------------------- ##
14653
14654 # Be more Bourne compatible
14655 DUALCASE=1; export DUALCASE # for MKS sh
14656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14657   emulate sh
14658   NULLCMD=:
14659   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14660   # is contrary to our usage.  Disable this feature.
14661   alias -g '${1+"$@"}'='"$@"'
14662   setopt NO_GLOB_SUBST
14663 else
14664   case `(set -o) 2>/dev/null` in #(
14665   *posix*) :
14666     set -o posix ;; #(
14667   *) :
14668      ;;
14669 esac
14670 fi
14671
14672
14673 as_nl='
14674 '
14675 export as_nl
14676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14680 # Prefer a ksh shell builtin over an external printf program on Solaris,
14681 # but without wasting forks for bash or zsh.
14682 if test -z "$BASH_VERSION$ZSH_VERSION" \
14683     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14684   as_echo='print -r --'
14685   as_echo_n='print -rn --'
14686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14687   as_echo='printf %s\n'
14688   as_echo_n='printf %s'
14689 else
14690   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14691     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14692     as_echo_n='/usr/ucb/echo -n'
14693   else
14694     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14695     as_echo_n_body='eval
14696       arg=$1;
14697       case $arg in #(
14698       *"$as_nl"*)
14699         expr "X$arg" : "X\\(.*\\)$as_nl";
14700         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14701       esac;
14702       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14703     '
14704     export as_echo_n_body
14705     as_echo_n='sh -c $as_echo_n_body as_echo'
14706   fi
14707   export as_echo_body
14708   as_echo='sh -c $as_echo_body as_echo'
14709 fi
14710
14711 # The user is always right.
14712 if test "${PATH_SEPARATOR+set}" != set; then
14713   PATH_SEPARATOR=:
14714   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14715     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14716       PATH_SEPARATOR=';'
14717   }
14718 fi
14719
14720
14721 # IFS
14722 # We need space, tab and new line, in precisely that order.  Quoting is
14723 # there to prevent editors from complaining about space-tab.
14724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14725 # splitting by setting IFS to empty value.)
14726 IFS=" ""        $as_nl"
14727
14728 # Find who we are.  Look in the path if we contain no directory separator.
14729 as_myself=
14730 case $0 in #((
14731   *[\\/]* ) as_myself=$0 ;;
14732   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14733 for as_dir in $PATH
14734 do
14735   IFS=$as_save_IFS
14736   test -z "$as_dir" && as_dir=.
14737     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14738   done
14739 IFS=$as_save_IFS
14740
14741      ;;
14742 esac
14743 # We did not find ourselves, most probably we were run as `sh COMMAND'
14744 # in which case we are not to be found in the path.
14745 if test "x$as_myself" = x; then
14746   as_myself=$0
14747 fi
14748 if test ! -f "$as_myself"; then
14749   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14750   exit 1
14751 fi
14752
14753 # Unset variables that we do not need and which cause bugs (e.g. in
14754 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14755 # suppresses any "Segmentation fault" message there.  '((' could
14756 # trigger a bug in pdksh 5.2.14.
14757 for as_var in BASH_ENV ENV MAIL MAILPATH
14758 do eval test x\${$as_var+set} = xset \
14759   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14760 done
14761 PS1='$ '
14762 PS2='> '
14763 PS4='+ '
14764
14765 # NLS nuisances.
14766 LC_ALL=C
14767 export LC_ALL
14768 LANGUAGE=C
14769 export LANGUAGE
14770
14771 # CDPATH.
14772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14773
14774
14775 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14776 # ----------------------------------------
14777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14779 # script with STATUS, using 1 if that was 0.
14780 as_fn_error ()
14781 {
14782   as_status=$1; test $as_status -eq 0 && as_status=1
14783   if test "$4"; then
14784     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14785     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14786   fi
14787   $as_echo "$as_me: error: $2" >&2
14788   as_fn_exit $as_status
14789 } # as_fn_error
14790
14791
14792 # as_fn_set_status STATUS
14793 # -----------------------
14794 # Set $? to STATUS, without forking.
14795 as_fn_set_status ()
14796 {
14797   return $1
14798 } # as_fn_set_status
14799
14800 # as_fn_exit STATUS
14801 # -----------------
14802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14803 as_fn_exit ()
14804 {
14805   set +e
14806   as_fn_set_status $1
14807   exit $1
14808 } # as_fn_exit
14809
14810 # as_fn_unset VAR
14811 # ---------------
14812 # Portably unset VAR.
14813 as_fn_unset ()
14814 {
14815   { eval $1=; unset $1;}
14816 }
14817 as_unset=as_fn_unset
14818 # as_fn_append VAR VALUE
14819 # ----------------------
14820 # Append the text in VALUE to the end of the definition contained in VAR. Take
14821 # advantage of any shell optimizations that allow amortized linear growth over
14822 # repeated appends, instead of the typical quadratic growth present in naive
14823 # implementations.
14824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14825   eval 'as_fn_append ()
14826   {
14827     eval $1+=\$2
14828   }'
14829 else
14830   as_fn_append ()
14831   {
14832     eval $1=\$$1\$2
14833   }
14834 fi # as_fn_append
14835
14836 # as_fn_arith ARG...
14837 # ------------------
14838 # Perform arithmetic evaluation on the ARGs, and store the result in the
14839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14840 # must be portable across $(()) and expr.
14841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14842   eval 'as_fn_arith ()
14843   {
14844     as_val=$(( $* ))
14845   }'
14846 else
14847   as_fn_arith ()
14848   {
14849     as_val=`expr "$@" || test $? -eq 1`
14850   }
14851 fi # as_fn_arith
14852
14853
14854 if expr a : '\(a\)' >/dev/null 2>&1 &&
14855    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14856   as_expr=expr
14857 else
14858   as_expr=false
14859 fi
14860
14861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14862   as_basename=basename
14863 else
14864   as_basename=false
14865 fi
14866
14867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14868   as_dirname=dirname
14869 else
14870   as_dirname=false
14871 fi
14872
14873 as_me=`$as_basename -- "$0" ||
14874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14875          X"$0" : 'X\(//\)$' \| \
14876          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14877 $as_echo X/"$0" |
14878     sed '/^.*\/\([^/][^/]*\)\/*$/{
14879             s//\1/
14880             q
14881           }
14882           /^X\/\(\/\/\)$/{
14883             s//\1/
14884             q
14885           }
14886           /^X\/\(\/\).*/{
14887             s//\1/
14888             q
14889           }
14890           s/.*/./; q'`
14891
14892 # Avoid depending upon Character Ranges.
14893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14896 as_cr_digits='0123456789'
14897 as_cr_alnum=$as_cr_Letters$as_cr_digits
14898
14899 ECHO_C= ECHO_N= ECHO_T=
14900 case `echo -n x` in #(((((
14901 -n*)
14902   case `echo 'xy\c'` in
14903   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14904   xy)  ECHO_C='\c';;
14905   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14906        ECHO_T=' ';;
14907   esac;;
14908 *)
14909   ECHO_N='-n';;
14910 esac
14911
14912 rm -f conf$$ conf$$.exe conf$$.file
14913 if test -d conf$$.dir; then
14914   rm -f conf$$.dir/conf$$.file
14915 else
14916   rm -f conf$$.dir
14917   mkdir conf$$.dir 2>/dev/null
14918 fi
14919 if (echo >conf$$.file) 2>/dev/null; then
14920   if ln -s conf$$.file conf$$ 2>/dev/null; then
14921     as_ln_s='ln -s'
14922     # ... but there are two gotchas:
14923     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14924     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14925     # In both cases, we have to default to `cp -pR'.
14926     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14927       as_ln_s='cp -pR'
14928   elif ln conf$$.file conf$$ 2>/dev/null; then
14929     as_ln_s=ln
14930   else
14931     as_ln_s='cp -pR'
14932   fi
14933 else
14934   as_ln_s='cp -pR'
14935 fi
14936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14937 rmdir conf$$.dir 2>/dev/null
14938
14939
14940 # as_fn_mkdir_p
14941 # -------------
14942 # Create "$as_dir" as a directory, including parents if necessary.
14943 as_fn_mkdir_p ()
14944 {
14945
14946   case $as_dir in #(
14947   -*) as_dir=./$as_dir;;
14948   esac
14949   test -d "$as_dir" || eval $as_mkdir_p || {
14950     as_dirs=
14951     while :; do
14952       case $as_dir in #(
14953       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14954       *) as_qdir=$as_dir;;
14955       esac
14956       as_dirs="'$as_qdir' $as_dirs"
14957       as_dir=`$as_dirname -- "$as_dir" ||
14958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14959          X"$as_dir" : 'X\(//\)[^/]' \| \
14960          X"$as_dir" : 'X\(//\)$' \| \
14961          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14962 $as_echo X"$as_dir" |
14963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14964             s//\1/
14965             q
14966           }
14967           /^X\(\/\/\)[^/].*/{
14968             s//\1/
14969             q
14970           }
14971           /^X\(\/\/\)$/{
14972             s//\1/
14973             q
14974           }
14975           /^X\(\/\).*/{
14976             s//\1/
14977             q
14978           }
14979           s/.*/./; q'`
14980       test -d "$as_dir" && break
14981     done
14982     test -z "$as_dirs" || eval "mkdir $as_dirs"
14983   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14984
14985
14986 } # as_fn_mkdir_p
14987 if mkdir -p . 2>/dev/null; then
14988   as_mkdir_p='mkdir -p "$as_dir"'
14989 else
14990   test -d ./-p && rmdir ./-p
14991   as_mkdir_p=false
14992 fi
14993
14994
14995 # as_fn_executable_p FILE
14996 # -----------------------
14997 # Test if FILE is an executable regular file.
14998 as_fn_executable_p ()
14999 {
15000   test -f "$1" && test -x "$1"
15001 } # as_fn_executable_p
15002 as_test_x='test -x'
15003 as_executable_p=as_fn_executable_p
15004
15005 # Sed expression to map a string onto a valid CPP name.
15006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15007
15008 # Sed expression to map a string onto a valid variable name.
15009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15010
15011
15012 exec 6>&1
15013 ## ----------------------------------- ##
15014 ## Main body of $CONFIG_STATUS script. ##
15015 ## ----------------------------------- ##
15016 _ASEOF
15017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15018
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020 # Save the log message, to keep $0 and so on meaningful, and to
15021 # report actual input values of CONFIG_FILES etc. instead of their
15022 # values after options handling.
15023 ac_log="
15024 This file was extended by $as_me, which was
15025 generated by GNU Autoconf 2.69.  Invocation command line was
15026
15027   CONFIG_FILES    = $CONFIG_FILES
15028   CONFIG_HEADERS  = $CONFIG_HEADERS
15029   CONFIG_LINKS    = $CONFIG_LINKS
15030   CONFIG_COMMANDS = $CONFIG_COMMANDS
15031   $ $0 $@
15032
15033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15034 "
15035
15036 _ACEOF
15037
15038 case $ac_config_files in *"
15039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15040 esac
15041
15042 case $ac_config_headers in *"
15043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15044 esac
15045
15046
15047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15048 # Files that config.status was made for.
15049 config_files="$ac_config_files"
15050 config_headers="$ac_config_headers"
15051 config_commands="$ac_config_commands"
15052
15053 _ACEOF
15054
15055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15056 ac_cs_usage="\
15057 \`$as_me' instantiates files and other configuration actions
15058 from templates according to the current configuration.  Unless the files
15059 and actions are specified as TAGs, all are instantiated by default.
15060
15061 Usage: $0 [OPTION]... [TAG]...
15062
15063   -h, --help       print this help, then exit
15064   -V, --version    print version number and configuration settings, then exit
15065       --config     print configuration, then exit
15066   -q, --quiet, --silent
15067                    do not print progress messages
15068   -d, --debug      don't remove temporary files
15069       --recheck    update $as_me by reconfiguring in the same conditions
15070       --file=FILE[:TEMPLATE]
15071                    instantiate the configuration file FILE
15072       --header=FILE[:TEMPLATE]
15073                    instantiate the configuration header FILE
15074
15075 Configuration files:
15076 $config_files
15077
15078 Configuration headers:
15079 $config_headers
15080
15081 Configuration commands:
15082 $config_commands
15083
15084 Report bugs to the package provider."
15085
15086 _ACEOF
15087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15089 ac_cs_version="\\
15090 config.status
15091 configured by $0, generated by GNU Autoconf 2.69,
15092   with options \\"\$ac_cs_config\\"
15093
15094 Copyright (C) 2012 Free Software Foundation, Inc.
15095 This config.status script is free software; the Free Software Foundation
15096 gives unlimited permission to copy, distribute and modify it."
15097
15098 ac_pwd='$ac_pwd'
15099 srcdir='$srcdir'
15100 INSTALL='$INSTALL'
15101 MKDIR_P='$MKDIR_P'
15102 AWK='$AWK'
15103 test -n "\$AWK" || AWK=awk
15104 _ACEOF
15105
15106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15107 # The default lists apply if the user does not specify any file.
15108 ac_need_defaults=:
15109 while test $# != 0
15110 do
15111   case $1 in
15112   --*=?*)
15113     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15114     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15115     ac_shift=:
15116     ;;
15117   --*=)
15118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15119     ac_optarg=
15120     ac_shift=:
15121     ;;
15122   *)
15123     ac_option=$1
15124     ac_optarg=$2
15125     ac_shift=shift
15126     ;;
15127   esac
15128
15129   case $ac_option in
15130   # Handling of the options.
15131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15132     ac_cs_recheck=: ;;
15133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15134     $as_echo "$ac_cs_version"; exit ;;
15135   --config | --confi | --conf | --con | --co | --c )
15136     $as_echo "$ac_cs_config"; exit ;;
15137   --debug | --debu | --deb | --de | --d | -d )
15138     debug=: ;;
15139   --file | --fil | --fi | --f )
15140     $ac_shift
15141     case $ac_optarg in
15142     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15143     '') as_fn_error $? "missing file argument" ;;
15144     esac
15145     as_fn_append CONFIG_FILES " '$ac_optarg'"
15146     ac_need_defaults=false;;
15147   --header | --heade | --head | --hea )
15148     $ac_shift
15149     case $ac_optarg in
15150     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15151     esac
15152     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15153     ac_need_defaults=false;;
15154   --he | --h)
15155     # Conflict between --help and --header
15156     as_fn_error $? "ambiguous option: \`$1'
15157 Try \`$0 --help' for more information.";;
15158   --help | --hel | -h )
15159     $as_echo "$ac_cs_usage"; exit ;;
15160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15162     ac_cs_silent=: ;;
15163
15164   # This is an error.
15165   -*) as_fn_error $? "unrecognized option: \`$1'
15166 Try \`$0 --help' for more information." ;;
15167
15168   *) as_fn_append ac_config_targets " $1"
15169      ac_need_defaults=false ;;
15170
15171   esac
15172   shift
15173 done
15174
15175 ac_configure_extra_args=
15176
15177 if $ac_cs_silent; then
15178   exec 6>/dev/null
15179   ac_configure_extra_args="$ac_configure_extra_args --silent"
15180 fi
15181
15182 _ACEOF
15183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184 if \$ac_cs_recheck; then
15185   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15186   shift
15187   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15188   CONFIG_SHELL='$SHELL'
15189   export CONFIG_SHELL
15190   exec "\$@"
15191 fi
15192
15193 _ACEOF
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195 exec 5>>config.log
15196 {
15197   echo
15198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15199 ## Running $as_me. ##
15200 _ASBOX
15201   $as_echo "$ac_log"
15202 } >&5
15203
15204 _ACEOF
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 #
15207 # INIT-COMMANDS
15208 #
15209 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15210     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15211     # from automake < 1.5.
15212     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15213     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15214     LINGUAS="${LINGUAS-%UNSET%}"
15215
15216
15217 _ACEOF
15218
15219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15220
15221 # Handling of arguments.
15222 for ac_config_target in $ac_config_targets
15223 do
15224   case $ac_config_target in
15225     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15226     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15227     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15228
15229   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15230   esac
15231 done
15232
15233
15234 # If the user did not use the arguments to specify the items to instantiate,
15235 # then the envvar interface is used.  Set only those that are not.
15236 # We use the long form for the default assignment because of an extremely
15237 # bizarre bug on SunOS 4.1.3.
15238 if $ac_need_defaults; then
15239   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15240   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15241   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15242 fi
15243
15244 # Have a temporary directory for convenience.  Make it in the build tree
15245 # simply because there is no reason against having it here, and in addition,
15246 # creating and moving files from /tmp can sometimes cause problems.
15247 # Hook for its removal unless debugging.
15248 # Note that there is a small window in which the directory will not be cleaned:
15249 # after its creation but before its name has been assigned to `$tmp'.
15250 $debug ||
15251 {
15252   tmp= ac_tmp=
15253   trap 'exit_status=$?
15254   : "${ac_tmp:=$tmp}"
15255   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15256 ' 0
15257   trap 'as_fn_exit 1' 1 2 13 15
15258 }
15259 # Create a (secure) tmp directory for tmp files.
15260
15261 {
15262   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15263   test -d "$tmp"
15264 }  ||
15265 {
15266   tmp=./conf$$-$RANDOM
15267   (umask 077 && mkdir "$tmp")
15268 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15269 ac_tmp=$tmp
15270
15271 # Set up the scripts for CONFIG_FILES section.
15272 # No need to generate them if there are no CONFIG_FILES.
15273 # This happens for instance with `./config.status config.h'.
15274 if test -n "$CONFIG_FILES"; then
15275
15276 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15277   ac_cs_awk_getline=:
15278   ac_cs_awk_pipe_init=
15279   ac_cs_awk_read_file='
15280       while ((getline aline < (F[key])) > 0)
15281         print(aline)
15282       close(F[key])'
15283   ac_cs_awk_pipe_fini=
15284 else
15285   ac_cs_awk_getline=false
15286   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15287   ac_cs_awk_read_file='
15288       print "|#_!!_#|"
15289       print "cat " F[key] " &&"
15290       '$ac_cs_awk_pipe_init
15291   # The final `:' finishes the AND list.
15292   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15293 fi
15294 ac_cr=`echo X | tr X '\015'`
15295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15296 # But we know of no other shell where ac_cr would be empty at this
15297 # point, so we can use a bashism as a fallback.
15298 if test "x$ac_cr" = x; then
15299   eval ac_cr=\$\'\\r\'
15300 fi
15301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15303   ac_cs_awk_cr='\\r'
15304 else
15305   ac_cs_awk_cr=$ac_cr
15306 fi
15307
15308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15309 _ACEOF
15310
15311 # Create commands to substitute file output variables.
15312 {
15313   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15314   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15315   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15316   echo "_ACAWK" &&
15317   echo "_ACEOF"
15318 } >conf$$files.sh &&
15319 . ./conf$$files.sh ||
15320   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15321 rm -f conf$$files.sh
15322
15323 {
15324   echo "cat >conf$$subs.awk <<_ACEOF" &&
15325   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15326   echo "_ACEOF"
15327 } >conf$$subs.sh ||
15328   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15330 ac_delim='%!_!# '
15331 for ac_last_try in false false false false false :; do
15332   . ./conf$$subs.sh ||
15333     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15334
15335   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15336   if test $ac_delim_n = $ac_delim_num; then
15337     break
15338   elif $ac_last_try; then
15339     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15340   else
15341     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15342   fi
15343 done
15344 rm -f conf$$subs.sh
15345
15346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15347 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15348 _ACEOF
15349 sed -n '
15350 h
15351 s/^/S["/; s/!.*/"]=/
15352 p
15353 g
15354 s/^[^!]*!//
15355 :repl
15356 t repl
15357 s/'"$ac_delim"'$//
15358 t delim
15359 :nl
15360 h
15361 s/\(.\{148\}\)..*/\1/
15362 t more1
15363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15364 p
15365 n
15366 b repl
15367 :more1
15368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15369 p
15370 g
15371 s/.\{148\}//
15372 t nl
15373 :delim
15374 h
15375 s/\(.\{148\}\)..*/\1/
15376 t more2
15377 s/["\\]/\\&/g; s/^/"/; s/$/"/
15378 p
15379 b
15380 :more2
15381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15382 p
15383 g
15384 s/.\{148\}//
15385 t delim
15386 ' <conf$$subs.awk | sed '
15387 /^[^""]/{
15388   N
15389   s/\n//
15390 }
15391 ' >>$CONFIG_STATUS || ac_write_fail=1
15392 rm -f conf$$subs.awk
15393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15394 _ACAWK
15395 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15396   for (key in S) S_is_set[key] = 1
15397   FS = "\a"
15398   \$ac_cs_awk_pipe_init
15399 }
15400 {
15401   line = $ 0
15402   nfields = split(line, field, "@")
15403   substed = 0
15404   len = length(field[1])
15405   for (i = 2; i < nfields; i++) {
15406     key = field[i]
15407     keylen = length(key)
15408     if (S_is_set[key]) {
15409       value = S[key]
15410       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15411       len += length(value) + length(field[++i])
15412       substed = 1
15413     } else
15414       len += 1 + keylen
15415   }
15416   if (nfields == 3 && !substed) {
15417     key = field[2]
15418     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15419       \$ac_cs_awk_read_file
15420       next
15421     }
15422   }
15423   print line
15424 }
15425 \$ac_cs_awk_pipe_fini
15426 _ACAWK
15427 _ACEOF
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15430   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15431 else
15432   cat
15433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15434   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15435 _ACEOF
15436
15437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15439 # trailing colons and then remove the whole line if VPATH becomes empty
15440 # (actually we leave an empty line to preserve line numbers).
15441 if test "x$srcdir" = x.; then
15442   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15443 h
15444 s///
15445 s/^/:/
15446 s/[      ]*$/:/
15447 s/:\$(srcdir):/:/g
15448 s/:\${srcdir}:/:/g
15449 s/:@srcdir@:/:/g
15450 s/^:*//
15451 s/:*$//
15452 x
15453 s/\(=[   ]*\).*/\1/
15454 G
15455 s/\n//
15456 s/^[^=]*=[       ]*$//
15457 }'
15458 fi
15459
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 fi # test -n "$CONFIG_FILES"
15462
15463 # Set up the scripts for CONFIG_HEADERS section.
15464 # No need to generate them if there are no CONFIG_HEADERS.
15465 # This happens for instance with `./config.status Makefile'.
15466 if test -n "$CONFIG_HEADERS"; then
15467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15468 BEGIN {
15469 _ACEOF
15470
15471 # Transform confdefs.h into an awk script `defines.awk', embedded as
15472 # here-document in config.status, that substitutes the proper values into
15473 # config.h.in to produce config.h.
15474
15475 # Create a delimiter string that does not exist in confdefs.h, to ease
15476 # handling of long lines.
15477 ac_delim='%!_!# '
15478 for ac_last_try in false false :; do
15479   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15480   if test -z "$ac_tt"; then
15481     break
15482   elif $ac_last_try; then
15483     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15484   else
15485     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15486   fi
15487 done
15488
15489 # For the awk script, D is an array of macro values keyed by name,
15490 # likewise P contains macro parameters if any.  Preserve backslash
15491 # newline sequences.
15492
15493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15494 sed -n '
15495 s/.\{148\}/&'"$ac_delim"'/g
15496 t rset
15497 :rset
15498 s/^[     ]*#[    ]*define[       ][      ]*/ /
15499 t def
15500 d
15501 :def
15502 s/\\$//
15503 t bsnl
15504 s/["\\]/\\&/g
15505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15506 D["\1"]=" \3"/p
15507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15508 d
15509 :bsnl
15510 s/["\\]/\\&/g
15511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15512 D["\1"]=" \3\\\\\\n"\\/p
15513 t cont
15514 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15515 t cont
15516 d
15517 :cont
15518 n
15519 s/.\{148\}/&'"$ac_delim"'/g
15520 t clear
15521 :clear
15522 s/\\$//
15523 t bsnlc
15524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15525 d
15526 :bsnlc
15527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15528 b cont
15529 ' <confdefs.h | sed '
15530 s/'"$ac_delim"'/"\\\
15531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15532
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534   for (key in D) D_is_set[key] = 1
15535   FS = "\a"
15536 }
15537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15538   line = \$ 0
15539   split(line, arg, " ")
15540   if (arg[1] == "#") {
15541     defundef = arg[2]
15542     mac1 = arg[3]
15543   } else {
15544     defundef = substr(arg[1], 2)
15545     mac1 = arg[2]
15546   }
15547   split(mac1, mac2, "(") #)
15548   macro = mac2[1]
15549   prefix = substr(line, 1, index(line, defundef) - 1)
15550   if (D_is_set[macro]) {
15551     # Preserve the white space surrounding the "#".
15552     print prefix "define", macro P[macro] D[macro]
15553     next
15554   } else {
15555     # Replace #undef with comments.  This is necessary, for example,
15556     # in the case of _POSIX_SOURCE, which is predefined and required
15557     # on some systems where configure will not decide to define it.
15558     if (defundef == "undef") {
15559       print "/*", prefix defundef, macro, "*/"
15560       next
15561     }
15562   }
15563 }
15564 { print }
15565 _ACAWK
15566 _ACEOF
15567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15568   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15569 fi # test -n "$CONFIG_HEADERS"
15570
15571
15572 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15573 shift
15574 for ac_tag
15575 do
15576   case $ac_tag in
15577   :[FHLC]) ac_mode=$ac_tag; continue;;
15578   esac
15579   case $ac_mode$ac_tag in
15580   :[FHL]*:*);;
15581   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15582   :[FH]-) ac_tag=-:-;;
15583   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15584   esac
15585   ac_save_IFS=$IFS
15586   IFS=:
15587   set x $ac_tag
15588   IFS=$ac_save_IFS
15589   shift
15590   ac_file=$1
15591   shift
15592
15593   case $ac_mode in
15594   :L) ac_source=$1;;
15595   :[FH])
15596     ac_file_inputs=
15597     for ac_f
15598     do
15599       case $ac_f in
15600       -) ac_f="$ac_tmp/stdin";;
15601       *) # Look for the file first in the build tree, then in the source tree
15602          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15603          # because $ac_f cannot contain `:'.
15604          test -f "$ac_f" ||
15605            case $ac_f in
15606            [\\/$]*) false;;
15607            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15608            esac ||
15609            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15610       esac
15611       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15612       as_fn_append ac_file_inputs " '$ac_f'"
15613     done
15614
15615     # Let's still pretend it is `configure' which instantiates (i.e., don't
15616     # use $as_me), people would be surprised to read:
15617     #    /* config.h.  Generated by config.status.  */
15618     configure_input='Generated from '`
15619           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15620         `' by configure.'
15621     if test x"$ac_file" != x-; then
15622       configure_input="$ac_file.  $configure_input"
15623       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15624 $as_echo "$as_me: creating $ac_file" >&6;}
15625     fi
15626     # Neutralize special characters interpreted by sed in replacement strings.
15627     case $configure_input in #(
15628     *\&* | *\|* | *\\* )
15629        ac_sed_conf_input=`$as_echo "$configure_input" |
15630        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15631     *) ac_sed_conf_input=$configure_input;;
15632     esac
15633
15634     case $ac_tag in
15635     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15636       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15637     esac
15638     ;;
15639   esac
15640
15641   ac_dir=`$as_dirname -- "$ac_file" ||
15642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15643          X"$ac_file" : 'X\(//\)[^/]' \| \
15644          X"$ac_file" : 'X\(//\)$' \| \
15645          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15646 $as_echo X"$ac_file" |
15647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15648             s//\1/
15649             q
15650           }
15651           /^X\(\/\/\)[^/].*/{
15652             s//\1/
15653             q
15654           }
15655           /^X\(\/\/\)$/{
15656             s//\1/
15657             q
15658           }
15659           /^X\(\/\).*/{
15660             s//\1/
15661             q
15662           }
15663           s/.*/./; q'`
15664   as_dir="$ac_dir"; as_fn_mkdir_p
15665   ac_builddir=.
15666
15667 case "$ac_dir" in
15668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15669 *)
15670   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15671   # A ".." for each directory in $ac_dir_suffix.
15672   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15673   case $ac_top_builddir_sub in
15674   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15675   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15676   esac ;;
15677 esac
15678 ac_abs_top_builddir=$ac_pwd
15679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15680 # for backward compatibility:
15681 ac_top_builddir=$ac_top_build_prefix
15682
15683 case $srcdir in
15684   .)  # We are building in place.
15685     ac_srcdir=.
15686     ac_top_srcdir=$ac_top_builddir_sub
15687     ac_abs_top_srcdir=$ac_pwd ;;
15688   [\\/]* | ?:[\\/]* )  # Absolute name.
15689     ac_srcdir=$srcdir$ac_dir_suffix;
15690     ac_top_srcdir=$srcdir
15691     ac_abs_top_srcdir=$srcdir ;;
15692   *) # Relative name.
15693     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15694     ac_top_srcdir=$ac_top_build_prefix$srcdir
15695     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15696 esac
15697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15698
15699
15700   case $ac_mode in
15701   :F)
15702   #
15703   # CONFIG_FILE
15704   #
15705
15706   case $INSTALL in
15707   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15708   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15709   esac
15710   ac_MKDIR_P=$MKDIR_P
15711   case $MKDIR_P in
15712   [\\/$]* | ?:[\\/]* ) ;;
15713   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15714   esac
15715 _ACEOF
15716
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718 # If the template does not know about datarootdir, expand it.
15719 # FIXME: This hack should be removed a few years after 2.60.
15720 ac_datarootdir_hack=; ac_datarootdir_seen=
15721 ac_sed_dataroot='
15722 /datarootdir/ {
15723   p
15724   q
15725 }
15726 /@datadir@/p
15727 /@docdir@/p
15728 /@infodir@/p
15729 /@localedir@/p
15730 /@mandir@/p'
15731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15732 *datarootdir*) ac_datarootdir_seen=yes;;
15733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15734   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15735 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15738   ac_datarootdir_hack='
15739   s&@datadir@&$datadir&g
15740   s&@docdir@&$docdir&g
15741   s&@infodir@&$infodir&g
15742   s&@localedir@&$localedir&g
15743   s&@mandir@&$mandir&g
15744   s&\\\${datarootdir}&$datarootdir&g' ;;
15745 esac
15746 _ACEOF
15747
15748 # Neutralize VPATH when `$srcdir' = `.'.
15749 # Shell code in configure.ac might set extrasub.
15750 # FIXME: do we really want to maintain this feature?
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 ac_sed_extra="$ac_vpsub
15753 $extrasub
15754 _ACEOF
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756 :t
15757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15758 s|@configure_input@|$ac_sed_conf_input|;t t
15759 s&@top_builddir@&$ac_top_builddir_sub&;t t
15760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15761 s&@srcdir@&$ac_srcdir&;t t
15762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15763 s&@top_srcdir@&$ac_top_srcdir&;t t
15764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15765 s&@builddir@&$ac_builddir&;t t
15766 s&@abs_builddir@&$ac_abs_builddir&;t t
15767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15768 s&@INSTALL@&$ac_INSTALL&;t t
15769 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15770 $ac_datarootdir_hack
15771 "
15772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15773 if $ac_cs_awk_getline; then
15774   $AWK -f "$ac_tmp/subs.awk"
15775 else
15776   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15777 fi \
15778   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15779
15780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15781   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15782   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15783       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15785 which seems to be undefined.  Please make sure it is defined" >&5
15786 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15787 which seems to be undefined.  Please make sure it is defined" >&2;}
15788
15789   rm -f "$ac_tmp/stdin"
15790   case $ac_file in
15791   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15792   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15793   esac \
15794   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15795  ;;
15796   :H)
15797   #
15798   # CONFIG_HEADER
15799   #
15800   if test x"$ac_file" != x-; then
15801     {
15802       $as_echo "/* $configure_input  */" \
15803       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15804     } >"$ac_tmp/config.h" \
15805       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15806     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15807       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15808 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15809     else
15810       rm -f "$ac_file"
15811       mv "$ac_tmp/config.h" "$ac_file" \
15812         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15813     fi
15814   else
15815     $as_echo "/* $configure_input  */" \
15816       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15817       || as_fn_error $? "could not create -" "$LINENO" 5
15818   fi
15819  ;;
15820
15821   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15822 $as_echo "$as_me: executing $ac_file commands" >&6;}
15823  ;;
15824   esac
15825
15826
15827   case $ac_file$ac_mode in
15828     "po-directories":C)
15829     for ac_file in $CONFIG_FILES; do
15830       # Support "outfile[:infile[:infile...]]"
15831       case "$ac_file" in
15832         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15833       esac
15834       # PO directories have a Makefile.in generated from Makefile.in.in.
15835       case "$ac_file" in */Makefile.in)
15836         # Adjust a relative srcdir.
15837         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15838         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15839         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15840         # In autoconf-2.13 it is called $ac_given_srcdir.
15841         # In autoconf-2.50 it is called $srcdir.
15842         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15843         case "$ac_given_srcdir" in
15844           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15845           /*) top_srcdir="$ac_given_srcdir" ;;
15846           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15847         esac
15848         # Treat a directory as a PO directory if and only if it has a
15849         # POTFILES.in file. This allows packages to have multiple PO
15850         # directories under different names or in different locations.
15851         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15852           rm -f "$ac_dir/POTFILES"
15853           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15854           gt_tab=`printf '\t'`
15855           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"
15856           POMAKEFILEDEPS="POTFILES.in"
15857           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15858           # on $ac_dir but don't depend on user-specified configuration
15859           # parameters.
15860           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15861             # The LINGUAS file contains the set of available languages.
15862             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15863               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15864             fi
15865             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15866             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15867             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15868             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15869           else
15870             # The set of available languages was given in configure.in.
15871             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15872             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15873           fi
15874           # Compute POFILES
15875           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15876           # Compute UPDATEPOFILES
15877           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15878           # Compute DUMMYPOFILES
15879           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15880           # Compute GMOFILES
15881           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15882           case "$ac_given_srcdir" in
15883             .) srcdirpre= ;;
15884             *) srcdirpre='$(srcdir)/' ;;
15885           esac
15886           POFILES=
15887           UPDATEPOFILES=
15888           DUMMYPOFILES=
15889           GMOFILES=
15890           for lang in $ALL_LINGUAS; do
15891             POFILES="$POFILES $srcdirpre$lang.po"
15892             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15893             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15894             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15895           done
15896           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15897           # environment variable.
15898           INST_LINGUAS=
15899           if test -n "$ALL_LINGUAS"; then
15900             for presentlang in $ALL_LINGUAS; do
15901               useit=no
15902               if test "%UNSET%" != "$LINGUAS"; then
15903                 desiredlanguages="$LINGUAS"
15904               else
15905                 desiredlanguages="$ALL_LINGUAS"
15906               fi
15907               for desiredlang in $desiredlanguages; do
15908                 # Use the presentlang catalog if desiredlang is
15909                 #   a. equal to presentlang, or
15910                 #   b. a variant of presentlang (because in this case,
15911                 #      presentlang can be used as a fallback for messages
15912                 #      which are not translated in the desiredlang catalog).
15913                 case "$desiredlang" in
15914                   "$presentlang"*) useit=yes;;
15915                 esac
15916               done
15917               if test $useit = yes; then
15918                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15919               fi
15920             done
15921           fi
15922           CATALOGS=
15923           if test -n "$INST_LINGUAS"; then
15924             for lang in $INST_LINGUAS; do
15925               CATALOGS="$CATALOGS $lang.gmo"
15926             done
15927           fi
15928           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15929           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"
15930           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15931             if test -f "$f"; then
15932               case "$f" in
15933                 *.orig | *.bak | *~) ;;
15934                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15935               esac
15936             fi
15937           done
15938         fi
15939         ;;
15940       esac
15941     done ;;
15942
15943   esac
15944 done # for ac_tag
15945
15946
15947 as_fn_exit 0
15948 _ACEOF
15949 ac_clean_files=$ac_clean_files_save
15950
15951 test $ac_write_fail = 0 ||
15952   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15953
15954
15955 # configure is writing to config.log, and then calls config.status.
15956 # config.status does its own redirection, appending to config.log.
15957 # Unfortunately, on DOS this fails, as config.log is still kept open
15958 # by configure, so config.status won't be able to write to it; its
15959 # output is simply discarded.  So we exec the FD to /dev/null,
15960 # effectively closing config.log, so it can be properly (re)opened and
15961 # appended to by config.status.  When coming back to configure, we
15962 # need to make the FD available again.
15963 if test "$no_create" != yes; then
15964   ac_cs_success=:
15965   ac_config_status_args=
15966   test "$silent" = yes &&
15967     ac_config_status_args="$ac_config_status_args --quiet"
15968   exec 5>/dev/null
15969   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15970   exec 5>>config.log
15971   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15972   # would make configure fail if this is the last instruction.
15973   $ac_cs_success || as_fn_exit 1
15974 fi
15975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15978 fi
15979
15980 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi