Whamcloud - gitweb
enable UBSAN 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 ubsan_ldflags
657 ubsan_cflags
658 have_ubsan
659 lto_ldflags
660 lto_cflags
661 have_lto
662 gcc_ranlib
663 gcc_ar
664 UNI_DIFF_OPTS
665 SEM_INIT_LIB
666 FUSE_CMT
667 FUSE_LIB
668 CLOCK_GETTIME_LIB
669 MAGIC_LIB
670 SOCKET_LIB
671 SIZEOF_TIME_T
672 SIZEOF_OFF_T
673 SIZEOF_LONG_LONG
674 SIZEOF_LONG
675 SIZEOF_INT
676 SIZEOF_SHORT
677 DD
678 BUILD_CC
679 MAKEINFO
680 STRIP
681 AR
682 LDCONFIG
683 PERL
684 AWK
685 CHMOD
686 RM
687 CP
688 MV
689 LN_S
690 LN
691 ifNotGNUmake
692 ifGNUmake
693 BINARY_TYPE
694 POSUB
695 LTLIBINTL
696 LIBINTL
697 INTLLIBS
698 INTL_LIBTOOL_SUFFIX_PREFIX
699 INTLOBJS
700 GENCAT
701 INSTOBJEXT
702 DATADIRNAME
703 CATOBJEXT
704 USE_INCLUDED_LIBINTL
705 BUILD_INCLUDED_LIBINTL
706 LTLIBC
707 WINDRES
708 WOE32
709 WOE32DLL
710 HAVE_WPRINTF
711 HAVE_NEWLOCALE
712 HAVE_SNPRINTF
713 HAVE_ASPRINTF
714 HAVE_POSIX_PRINTF
715 INTL_DEFAULT_VERBOSITY
716 INTL_MACOSX_LIBS
717 GLIBC21
718 INTLBISON
719 LTLIBICONV
720 LIBICONV
721 LTLIBMULTITHREAD
722 LIBMULTITHREAD
723 LTLIBTHREAD
724 LIBTHREAD
725 LIBPTH_PREFIX
726 LTLIBPTH
727 LIBPTH
728 PRI_MACROS_BROKEN
729 ALLOCA
730 HAVE_VISIBILITY
731 CFLAG_VISIBILITY
732 RANLIB
733 GLIBC2
734 XGETTEXT_EXTRA_OPTIONS
735 MSGMERGE
736 XGETTEXT_015
737 XGETTEXT
738 GMSGFMT_015
739 MSGFMT_015
740 GMSGFMT
741 MSGFMT
742 GETTEXT_MACRO_VERSION
743 USE_NLS
744 SED
745 MKDIR_P
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 SET_MAKE
750 VERSION
751 PACKAGE
752 GETTEXT_PACKAGE
753 TDB_MAN_COMMENT
754 TDB_CMT
755 UUIDD_CMT
756 E2INITRD_MAN
757 E2INITRD_PROG
758 FSCK_MAN
759 FSCK_PROG
760 DEFRAG_CMT
761 RESIZER_CMT
762 IMAGER_CMT
763 DEBUGFS_CMT
764 BLKID_CMT
765 DEPPROFILED_LIBBLKID
766 PROFILED_LIBBLKID
767 DEPSTATIC_LIBBLKID
768 STATIC_LIBBLKID
769 DEPLIBBLKID
770 LIBBLKID
771 UUID_CMT
772 DEPPROFILED_LIBUUID
773 PROFILED_LIBUUID
774 DEPSTATIC_LIBUUID
775 STATIC_LIBUUID
776 DEPLIBUUID
777 LIBUUID
778 PKG_CONFIG_LIBDIR
779 PKG_CONFIG_PATH
780 PKG_CONFIG
781 TEST_IO_CMT
782 PRIVATE_LIBS_CMT
783 LDFLAG_DYNAMIC
784 PROFILED_LIB_EXT
785 STATIC_LIB_EXT
786 LIB_EXT
787 PROFILE_CMT
788 BSDLIB_CMT
789 ELF_CMT
790 Q
791 ES
792 E
793 LINK_BUILD_FLAGS
794 SYMLINK_RELATIVE
795 LINK_INSTALL_FLAGS
796 MAINTAINER_CMT
797 EGREP
798 GREP
799 CPP
800 RDYNAMIC
801 DLOPEN_LIB
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 E2FSPROGS_DATE
818 E2FSPROGS_PKGVER
819 E2FSPROGS_VERSION
820 E2FSPROGS_DAY
821 E2FSPROGS_MONTH
822 E2FSPROGS_YEAR
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 runstatedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files='MCONFIG
863 MAKEFILE_ELF
864 MAKEFILE_BSDLIB
865 MAKEFILE_PROFILE
866 MAKEFILE_LIBRARY
867 ASM_TYPES_HEADER
868 PUBLIC_CONFIG_HEADER'
869 ac_user_opts='
870 enable_option_checking
871 with_diet_libc
872 with_cc
873 with_ccopts
874 with_ldopts
875 with_root_prefix
876 enable_maintainer_mode
877 enable_symlink_install
878 enable_relative_symlinks
879 enable_symlink_relative_symlinks
880 enable_symlink_build
881 enable_verbose_makecmds
882 enable_elf_shlibs
883 enable_bsd_shlibs
884 enable_profile
885 enable_gcov
886 enable_hardening
887 enable_jbd_debug
888 enable_blkid_debug
889 enable_testio_debug
890 enable_libuuid
891 enable_libblkid
892 enable_backtrace
893 enable_debugfs
894 enable_imager
895 enable_resizer
896 enable_defrag
897 enable_fsck
898 enable_e2initrd_helper
899 enable_tls
900 enable_uuidd
901 enable_mmp
902 enable_tdb
903 enable_bmap_stats
904 enable_bmap_stats_ops
905 enable_nls
906 enable_threads
907 with_gnu_ld
908 enable_rpath
909 with_libpth_prefix
910 with_libiconv_prefix
911 with_included_gettext
912 with_libintl_prefix
913 enable_fuse2fs
914 enable_lto
915 enable_ubsan
916 with_multiarch
917 with_udev_rules_dir
918 with_crond_dir
919 with_systemd_unit_dir
920 '
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CPP
930 PKG_CONFIG
931 PKG_CONFIG_PATH
932 PKG_CONFIG_LIBDIR
933 udev_CFLAGS
934 udev_LIBS
935 systemd_CFLAGS
936 systemd_LIBS'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 runstatedir='${localstatedir}/run'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
987
988 ac_prev=
989 ac_dashdash=
990 for ac_option
991 do
992   # If the previous option needs an argument, assign it.
993   if test -n "$ac_prev"; then
994     eval $ac_prev=\$ac_option
995     ac_prev=
996     continue
997   fi
998
999   case $ac_option in
1000   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001   *=)   ac_optarg= ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error $? "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error $? "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -runstatedir | --runstatedir | --runstatedi | --runstated \
1229   | --runstate | --runstat | --runsta | --runst | --runs \
1230   | --run | --ru | --r)
1231     ac_prev=runstatedir ;;
1232   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234   | --run=* | --ru=* | --r=*)
1235     runstatedir=$ac_optarg ;;
1236
1237   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238     ac_prev=sbindir ;;
1239   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240   | --sbi=* | --sb=*)
1241     sbindir=$ac_optarg ;;
1242
1243   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245   | --sharedst | --shareds | --shared | --share | --shar \
1246   | --sha | --sh)
1247     ac_prev=sharedstatedir ;;
1248   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251   | --sha=* | --sh=*)
1252     sharedstatedir=$ac_optarg ;;
1253
1254   -site | --site | --sit)
1255     ac_prev=site ;;
1256   -site=* | --site=* | --sit=*)
1257     site=$ac_optarg ;;
1258
1259   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260     ac_prev=srcdir ;;
1261   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262     srcdir=$ac_optarg ;;
1263
1264   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265   | --syscon | --sysco | --sysc | --sys | --sy)
1266     ac_prev=sysconfdir ;;
1267   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269     sysconfdir=$ac_optarg ;;
1270
1271   -target | --target | --targe | --targ | --tar | --ta | --t)
1272     ac_prev=target_alias ;;
1273   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274     target_alias=$ac_optarg ;;
1275
1276   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277     verbose=yes ;;
1278
1279   -version | --version | --versio | --versi | --vers | -V)
1280     ac_init_version=: ;;
1281
1282   -with-* | --with-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       as_fn_error $? "invalid package name: $ac_useropt"
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=no ;;
1313
1314   --x)
1315     # Obsolete; use --with-x.
1316     with_x=yes ;;
1317
1318   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319   | --x-incl | --x-inc | --x-in | --x-i)
1320     ac_prev=x_includes ;;
1321   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323     x_includes=$ac_optarg ;;
1324
1325   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327     ac_prev=x_libraries ;;
1328   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330     x_libraries=$ac_optarg ;;
1331
1332   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1334     ;;
1335
1336   *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339     case $ac_envvar in #(
1340       '' | [0-9]* | *[!_$as_cr_alnum]* )
1341       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342     esac
1343     eval $ac_envvar=\$ac_optarg
1344     export $ac_envvar ;;
1345
1346   *)
1347     # FIXME: should be removed in autoconf 3.0.
1348     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352     ;;
1353
1354   esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359   as_fn_error $? "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363   case $enable_option_checking in
1364     no) ;;
1365     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367   esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372                 datadir sysconfdir sharedstatedir localstatedir includedir \
1373                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374                 libdir localedir mandir runstatedir
1375 do
1376   eval ac_val=\$$ac_var
1377   # Remove trailing slashes.
1378   case $ac_val in
1379     */ )
1380       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381       eval $ac_var=\$ac_val;;
1382   esac
1383   # Be sure to have absolute directory names.
1384   case $ac_val in
1385     [\\/$]* | ?:[\\/]* )  continue;;
1386     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387   esac
1388   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400   if test "x$build_alias" = x; then
1401     cross_compiling=maybe
1402   elif test "x$build_alias" != "x$host_alias"; then
1403     cross_compiling=yes
1404   fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416   as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418   as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423   ac_srcdir_defaulted=yes
1424   # Try the directory containing this script, then the parent directory.
1425   ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427          X"$as_myself" : 'X\(//\)[^/]' \| \
1428          X"$as_myself" : 'X\(//\)$' \| \
1429          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)[^/].*/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\/\)$/{
1440             s//\1/
1441             q
1442           }
1443           /^X\(\/\).*/{
1444             s//\1/
1445             q
1446           }
1447           s/.*/./; q'`
1448   srcdir=$ac_confdir
1449   if test ! -r "$srcdir/$ac_unique_file"; then
1450     srcdir=..
1451   fi
1452 else
1453   ac_srcdir_defaulted=no
1454 fi
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462         pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465   srcdir=.
1466 fi
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_env_${ac_var}_value=\$${ac_var}
1476   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if test "$ac_init_help" = "long"; then
1484   # Omit some internal or obsolete options to make the list less imposing.
1485   # This message is too long to be a string in the A/UX 3.1 sh.
1486   cat <<_ACEOF
1487 \`configure' configures this package to adapt to many kinds of systems.
1488
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
1497   -h, --help              display this help and exit
1498       --help=short        display options specific to this package
1499       --help=recursive    display the short help of all the included packages
1500   -V, --version           display version information and exit
1501   -q, --quiet, --silent   do not print \`checking ...' messages
1502       --cache-file=FILE   cache test results in FILE [disabled]
1503   -C, --config-cache      alias for \`--cache-file=config.cache'
1504   -n, --no-create         do not create output files
1505       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507 Installation directories:
1508   --prefix=PREFIX         install architecture-independent files in PREFIX
1509                           [$ac_default_prefix]
1510   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                           [PREFIX]
1512
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine tuning of the installation directories:
1521   --bindir=DIR            user executables [EPREFIX/bin]
1522   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523   --libexecdir=DIR        program executables [EPREFIX/libexec]
1524   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 System types:
1546   --build=BUILD     configure for building on BUILD [guessed]
1547   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --enable-maintainer-mode enable makefile rules useful for maintainers
1560   --enable-symlink-install use symlinks when installing instead of hard links
1561   --enable-relative-symlinks use relative symlinks when installing
1562
1563   --enable-symlink-build  use symlinks while building instead of hard links
1564   --enable-verbose-makecmds enable verbose make command output
1565   --enable-elf-shlibs     select ELF shared libraries
1566   --enable-bsd-shlibs     select BSD shared libraries
1567   --enable-profile        build profiling libraries
1568   --enable-gcov           build for coverage testing using gcov
1569   --enable-hardening              build for coverage testing using gcov
1570   --enable-jbd-debug      enable journal debugging
1571   --enable-blkid-debug    enable blkid debugging
1572   --disable-testio-debug  disable the use of the test I/O manager for debugging
1573   --enable-libuuid        build and use private uuid library
1574   --enable-libblkid       build and use private blkid library
1575   --disable-backtrace     disable use backtrace
1576   --disable-debugfs       disable support of debugfs program
1577   --disable-imager        disable support of e2image program
1578   --disable-resizer       disable support of e2resize program
1579   --disable-defrag        disable support of e4defrag program
1580   --enable-fsck           build fsck wrapper program
1581   --enable-e2initrd-helper build e2initrd-helper program
1582   --disable-tls           disable use of thread local support
1583   --disable-uuidd         disable building the uuid daemon
1584   --disable-mmp           disable support mmp, Multi Mount Protection
1585   --disable-tdb           disable tdb support
1586   --disable-bmap-stats    disable collection of bitmap stats.
1587   --enable-bmap-stats-ops enable collection of additional bitmap stats
1588   --disable-nls           do not use Native Language Support
1589   --enable-threads={posix|solaris|pth|windows}
1590                           specify multithreading API
1591   --disable-threads       build without multithread safety
1592   --disable-rpath         do not hardcode runtime library paths
1593   --disable-fuse2fs       do not build fuse2fs
1594   --enable-lto            enable link time optimization
1595   --enable-ubsan          enable undefined behavior sanitizer
1596
1597 Optional Packages:
1598   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1599   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1600   --with-diet-libc        use diet libc
1601   --with-cc               no longer supported, use CC= instead
1602   --with-ccopts           no longer supported, use CFLAGS= instead
1603   --with-ldopts           no longer supported, use LDFLAGS= instead
1604   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1605   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1607   --without-libpth-prefix     don't search for libpth in includedir and libdir
1608   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1609   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1610   --with-included-gettext use the GNU gettext library included here
1611   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1612   --without-libintl-prefix     don't search for libintl in includedir and libdir
1613   --with-multiarch=ARCH specify the multiarch triplet
1614   --with-udev-rules-dir[=DIR]
1615                           Install udev rules into DIR.
1616   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1617   --with-systemd-unit-dir[=DIR]
1618                           Install systemd system units into DIR.
1619
1620 Some influential environment variables:
1621   CC          C compiler command
1622   CFLAGS      C compiler flags
1623   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1624               nonstandard directory <lib dir>
1625   LIBS        libraries to pass to the linker, e.g. -l<library>
1626   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627               you have headers in a nonstandard directory <include dir>
1628   CPP         C preprocessor
1629   PKG_CONFIG  path to pkg-config utility
1630   PKG_CONFIG_PATH
1631               directories to add to pkg-config's search path
1632   PKG_CONFIG_LIBDIR
1633               path overriding pkg-config's built-in search path
1634   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1635   udev_LIBS   linker flags for udev, overriding pkg-config
1636   systemd_CFLAGS
1637               C compiler flags for systemd, overriding pkg-config
1638   systemd_LIBS
1639               linker flags for systemd, overriding pkg-config
1640
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1643
1644 Report bugs to the package provider.
1645 _ACEOF
1646 ac_status=$?
1647 fi
1648
1649 if test "$ac_init_help" = "recursive"; then
1650   # If there are subdirs, report their specific --help.
1651   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652     test -d "$ac_dir" ||
1653       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654       continue
1655     ac_builddir=.
1656
1657 case "$ac_dir" in
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *)
1660   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1661   # A ".." for each directory in $ac_dir_suffix.
1662   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663   case $ac_top_builddir_sub in
1664   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666   esac ;;
1667 esac
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1672
1673 case $srcdir in
1674   .)  # We are building in place.
1675     ac_srcdir=.
1676     ac_top_srcdir=$ac_top_builddir_sub
1677     ac_abs_top_srcdir=$ac_pwd ;;
1678   [\\/]* | ?:[\\/]* )  # Absolute name.
1679     ac_srcdir=$srcdir$ac_dir_suffix;
1680     ac_top_srcdir=$srcdir
1681     ac_abs_top_srcdir=$srcdir ;;
1682   *) # Relative name.
1683     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684     ac_top_srcdir=$ac_top_build_prefix$srcdir
1685     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 esac
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688
1689     cd "$ac_dir" || { ac_status=$?; continue; }
1690     # Check for guested configure.
1691     if test -f "$ac_srcdir/configure.gnu"; then
1692       echo &&
1693       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694     elif test -f "$ac_srcdir/configure"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure" --help=recursive
1697     else
1698       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699     fi || ac_status=$?
1700     cd "$ac_pwd" || { ac_status=$?; break; }
1701   done
1702 fi
1703
1704 test -n "$ac_init_help" && exit $ac_status
1705 if $ac_init_version; then
1706   cat <<\_ACEOF
1707 configure
1708 generated by GNU Autoconf 2.69
1709
1710 Copyright (C) 2012 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1713 _ACEOF
1714   exit
1715 fi
1716
1717 ## ------------------------ ##
1718 ## Autoconf initialization. ##
1719 ## ------------------------ ##
1720
1721 # ac_fn_c_try_compile LINENO
1722 # --------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_compile ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   rm -f conftest.$ac_objext
1728   if { { ac_try="$ac_compile"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_compile") 2>conftest.err
1736   ac_status=$?
1737   if test -s conftest.err; then
1738     grep -v '^ *+' conftest.err >conftest.er1
1739     cat conftest.er1 >&5
1740     mv -f conftest.er1 conftest.err
1741   fi
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; } && {
1744          test -z "$ac_c_werror_flag" ||
1745          test ! -s conftest.err
1746        } && test -s conftest.$ac_objext; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752         ac_retval=1
1753 fi
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755   as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_compile
1758
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   rm -f conftest.$ac_objext conftest$ac_exeext
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>conftest.err
1774   ac_status=$?
1775   if test -s conftest.err; then
1776     grep -v '^ *+' conftest.err >conftest.er1
1777     cat conftest.er1 >&5
1778     mv -f conftest.er1 conftest.err
1779   fi
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; } && {
1782          test -z "$ac_c_werror_flag" ||
1783          test ! -s conftest.err
1784        } && test -s conftest$ac_exeext && {
1785          test "$cross_compiling" = yes ||
1786          test -x conftest$ac_exeext
1787        }; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793         ac_retval=1
1794 fi
1795   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797   # interfere with the next link command; also delete a directory that is
1798   # left behind by Apple's compiler.  We do this before executing the actions.
1799   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801   as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_link
1804
1805 # ac_fn_c_try_cpp LINENO
1806 # ----------------------
1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_cpp ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } > conftest.i && {
1827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828          test ! -s conftest.err
1829        }; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835     ac_retval=1
1836 fi
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838   as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_cpp
1841
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1846 # accordingly.
1847 ac_fn_c_check_header_mongrel ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if eval \${$3+:} false; then :
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 else
1860   # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869   ac_header_compiler=yes
1870 else
1871   ac_header_compiler=no
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1876
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885   ac_header_preproc=yes
1886 else
1887   ac_header_preproc=no
1888 fi
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1892
1893 # So?  What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895   yes:no: )
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900     ;;
1901   no:yes:* )
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912     ;;
1913 esac
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   eval "$3=\$ac_header_compiler"
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 fi
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_mongrel
1928
1929 # ac_fn_c_try_run LINENO
1930 # ----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932 # that executables *can* be run.
1933 ac_fn_c_try_run ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_link") 2>&5
1944   ac_status=$?
1945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1954   ac_status=$?
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; }; }; then :
1957   ac_retval=0
1958 else
1959   $as_echo "$as_me: program exited with status $ac_status" >&5
1960        $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1962
1963        ac_retval=$ac_status
1964 fi
1965   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967   as_fn_set_status $ac_retval
1968
1969 } # ac_fn_c_try_run
1970
1971 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists and can be compiled using the include files in
1974 # INCLUDES, setting the cache variable VAR accordingly.
1975 ac_fn_c_check_header_compile ()
1976 {
1977   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981   $as_echo_n "(cached) " >&6
1982 else
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 #include <$2>
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989   eval "$3=yes"
1990 else
1991   eval "$3=no"
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_header_compile
2001
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   eval "$3=no"
2015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof ($2))
2022          return 0;
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 int
2032 main ()
2033 {
2034 if (sizeof (($2)))
2035             return 0;
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041
2042 else
2043   eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_type
2055
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065   $as_echo_n "(cached) " >&6
2066 else
2067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2071 #define $2 innocuous_$2
2072
2073 /* System header to define __stub macros and hopefully few prototypes,
2074     which can conflict with char $2 (); below.
2075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076     <limits.h> exists even on freestanding compilers.  */
2077
2078 #ifdef __STDC__
2079 # include <limits.h>
2080 #else
2081 # include <assert.h>
2082 #endif
2083
2084 #undef $2
2085
2086 /* Override any GCC internal prototype to avoid an error.
2087    Use char because int might match the return type of a GCC
2088    builtin and then its argument prototype would still apply.  */
2089 #ifdef __cplusplus
2090 extern "C"
2091 #endif
2092 char $2 ();
2093 /* The GNU C library defines this for functions which it implements
2094     to always fail with ENOSYS.  Some functions are actually named
2095     something starting with __ and the normal name is an alias.  */
2096 #if defined __stub_$2 || defined __stub___$2
2097 choke me
2098 #endif
2099
2100 int
2101 main ()
2102 {
2103 return $2 ();
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_link "$LINENO"; then :
2109   eval "$3=yes"
2110 else
2111   eval "$3=no"
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext \
2114     conftest$ac_exeext conftest.$ac_ext
2115 fi
2116 eval ac_res=\$$3
2117                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121 } # ac_fn_c_check_func
2122
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126 # accordingly.
2127 ac_fn_c_check_decl ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   as_decl_name=`echo $2|sed 's/ *(.*//'`
2131   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135   $as_echo_n "(cached) " >&6
2136 else
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 #ifndef $as_decl_name
2144 #ifdef __cplusplus
2145   (void) $as_decl_use;
2146 #else
2147   (void) $as_decl_name;
2148 #endif
2149 #endif
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_decl
2168
2169 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2170 # --------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2173 # computed
2174 ac_fn_c_compute_int ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   if test "$cross_compiling" = yes; then
2178     # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2186 test_array [0] = 0;
2187 return test_array [0];
2188
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   ac_lo=0 ac_mid=0
2195   while :; do
2196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h.  */
2198 $4
2199 int
2200 main ()
2201 {
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 test_array [0] = 0;
2204 return test_array [0];
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211   ac_hi=$ac_mid; break
2212 else
2213   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2214                         if test $ac_lo -le $ac_mid; then
2215                           ac_lo= ac_hi=
2216                           break
2217                         fi
2218                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221   done
2222 else
2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $4
2226 int
2227 main ()
2228 {
2229 static int test_array [1 - 2 * !(($2) < 0)];
2230 test_array [0] = 0;
2231 return test_array [0];
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   ac_hi=-1 ac_mid=-1
2239   while :; do
2240     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 int
2244 main ()
2245 {
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2247 test_array [0] = 0;
2248 return test_array [0];
2249
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255   ac_lo=$ac_mid; break
2256 else
2257   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258                         if test $ac_mid -le $ac_hi; then
2259                           ac_lo= ac_hi=
2260                           break
2261                         fi
2262                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265   done
2266 else
2267   ac_lo= ac_hi=
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h.  */
2277 $4
2278 int
2279 main ()
2280 {
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282 test_array [0] = 0;
2283 return test_array [0];
2284
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290   ac_hi=$ac_mid
2291 else
2292   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 done
2296 case $ac_lo in #((
2297 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2298 '') ac_retval=1 ;;
2299 esac
2300   else
2301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h.  */
2303 $4
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2306 #include <stdio.h>
2307 #include <stdlib.h>
2308 int
2309 main ()
2310 {
2311
2312   FILE *f = fopen ("conftest.val", "w");
2313   if (! f)
2314     return 1;
2315   if (($2) < 0)
2316     {
2317       long int i = longval ();
2318       if (i != ($2))
2319         return 1;
2320       fprintf (f, "%ld", i);
2321     }
2322   else
2323     {
2324       unsigned long int i = ulongval ();
2325       if (i != ($2))
2326         return 1;
2327       fprintf (f, "%lu", i);
2328     }
2329   /* Do not output a trailing newline, as this causes \r\n confusion
2330      on some platforms.  */
2331   return ferror (f) || fclose (f) != 0;
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_run "$LINENO"; then :
2338   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2339 else
2340   ac_retval=1
2341 fi
2342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343   conftest.$ac_objext conftest.beam conftest.$ac_ext
2344 rm -f conftest.val
2345
2346   fi
2347   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348   as_fn_set_status $ac_retval
2349
2350 } # ac_fn_c_compute_int
2351
2352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353 # ----------------------------------------------------
2354 # Tries to find if the field MEMBER exists in type AGGR, after including
2355 # INCLUDES, setting cache variable VAR accordingly.
2356 ac_fn_c_check_member ()
2357 {
2358   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360 $as_echo_n "checking for $2.$3... " >&6; }
2361 if eval \${$4+:} false; then :
2362   $as_echo_n "(cached) " >&6
2363 else
2364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 $5
2367 int
2368 main ()
2369 {
2370 static $2 ac_aggr;
2371 if (ac_aggr.$3)
2372 return 0;
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378   eval "$4=yes"
2379 else
2380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h.  */
2382 $5
2383 int
2384 main ()
2385 {
2386 static $2 ac_aggr;
2387 if (sizeof ac_aggr.$3)
2388 return 0;
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394   eval "$4=yes"
2395 else
2396   eval "$4=no"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$4
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406
2407 } # ac_fn_c_check_member
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2411
2412 It was created by $as_me, which was
2413 generated by GNU Autoconf 2.69.  Invocation command line was
2414
2415   $ $0 $@
2416
2417 _ACEOF
2418 exec 5>>config.log
2419 {
2420 cat <<_ASUNAME
2421 ## --------- ##
2422 ## Platform. ##
2423 ## --------- ##
2424
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2430
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2433
2434 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2435 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2438 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2439 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2440 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2441
2442 _ASUNAME
2443
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449     $as_echo "PATH: $as_dir"
2450   done
2451 IFS=$as_save_IFS
2452
2453 } >&5
2454
2455 cat >&5 <<_ACEOF
2456
2457
2458 ## ----------- ##
2459 ## Core tests. ##
2460 ## ----------- ##
2461
2462 _ACEOF
2463
2464
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2470 ac_configure_args=
2471 ac_configure_args0=
2472 ac_configure_args1=
2473 ac_must_keep_next=false
2474 for ac_pass in 1 2
2475 do
2476   for ac_arg
2477   do
2478     case $ac_arg in
2479     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481     | -silent | --silent | --silen | --sile | --sil)
2482       continue ;;
2483     *\'*)
2484       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485     esac
2486     case $ac_pass in
2487     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2488     2)
2489       as_fn_append ac_configure_args1 " '$ac_arg'"
2490       if test $ac_must_keep_next = true; then
2491         ac_must_keep_next=false # Got value, back to normal.
2492       else
2493         case $ac_arg in
2494           *=* | --config-cache | -C | -disable-* | --disable-* \
2495           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497           | -with-* | --with-* | -without-* | --without-* | --x)
2498             case "$ac_configure_args0 " in
2499               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500             esac
2501             ;;
2502           -* ) ac_must_keep_next=true ;;
2503         esac
2504       fi
2505       as_fn_append ac_configure_args " '$ac_arg'"
2506       ;;
2507     esac
2508   done
2509 done
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2512
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log.  We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519   # Save into config.log some information that might help in debugging.
2520   {
2521     echo
2522
2523     $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2526     echo
2527     # The following way of writing the cache mishandles newlines in values,
2528 (
2529   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530     eval ac_val=\$$ac_var
2531     case $ac_val in #(
2532     *${as_nl}*)
2533       case $ac_var in #(
2534       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2536       esac
2537       case $ac_var in #(
2538       _ | IFS | as_nl) ;; #(
2539       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540       *) { eval $ac_var=; unset $ac_var;} ;;
2541       esac ;;
2542     esac
2543   done
2544   (set) 2>&1 |
2545     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546     *${as_nl}ac_space=\ *)
2547       sed -n \
2548         "s/'\''/'\''\\\\'\'''\''/g;
2549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2550       ;; #(
2551     *)
2552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2553       ;;
2554     esac |
2555     sort
2556 )
2557     echo
2558
2559     $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2562     echo
2563     for ac_var in $ac_subst_vars
2564     do
2565       eval ac_val=\$$ac_var
2566       case $ac_val in
2567       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568       esac
2569       $as_echo "$ac_var='\''$ac_val'\''"
2570     done | sort
2571     echo
2572
2573     if test -n "$ac_subst_files"; then
2574       $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2577       echo
2578       for ac_var in $ac_subst_files
2579       do
2580         eval ac_val=\$$ac_var
2581         case $ac_val in
2582         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583         esac
2584         $as_echo "$ac_var='\''$ac_val'\''"
2585       done | sort
2586       echo
2587     fi
2588
2589     if test -s confdefs.h; then
2590       $as_echo "## ----------- ##
2591 ## confdefs.h. ##
2592 ## ----------- ##"
2593       echo
2594       cat confdefs.h
2595       echo
2596     fi
2597     test "$ac_signal" != 0 &&
2598       $as_echo "$as_me: caught signal $ac_signal"
2599     $as_echo "$as_me: exit $exit_status"
2600   } >&5
2601   rm -f core *.core core.conftest.* &&
2602     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2603     exit $exit_status
2604 ' 0
2605 for ac_signal in 1 2 13 15; do
2606   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2607 done
2608 ac_signal=0
2609
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2612
2613 $as_echo "/* confdefs.h */" > confdefs.h
2614
2615 # Predefined preprocessor variables.
2616
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2619 _ACEOF
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2639 _ACEOF
2640
2641
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2644 ac_site_file1=NONE
2645 ac_site_file2=NONE
2646 if test -n "$CONFIG_SITE"; then
2647   # We do not want a PATH search for config.site.
2648   case $CONFIG_SITE in #((
2649     -*)  ac_site_file1=./$CONFIG_SITE;;
2650     */*) ac_site_file1=$CONFIG_SITE;;
2651     *)   ac_site_file1=./$CONFIG_SITE;;
2652   esac
2653 elif test "x$prefix" != xNONE; then
2654   ac_site_file1=$prefix/share/config.site
2655   ac_site_file2=$prefix/etc/config.site
2656 else
2657   ac_site_file1=$ac_default_prefix/share/config.site
2658   ac_site_file2=$ac_default_prefix/etc/config.site
2659 fi
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2661 do
2662   test "x$ac_site_file" = xNONE && continue
2663   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666     sed 's/^/| /' "$ac_site_file" >&5
2667     . "$ac_site_file" \
2668       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2672   fi
2673 done
2674
2675 if test -r "$cache_file"; then
2676   # Some versions of bash will fail to source /dev/null (special files
2677   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2678   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2681     case $cache_file in
2682       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683       *)                      . "./$cache_file";;
2684     esac
2685   fi
2686 else
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2689   >$cache_file
2690 fi
2691
2692 gt_needs="$gt_needs "
2693 as_fn_append ac_header_list " stdlib.h"
2694 as_fn_append ac_header_list " unistd.h"
2695 as_fn_append ac_header_list " sys/param.h"
2696 as_fn_append ac_func_list " symlink"
2697 # Check that the precious variables saved in the cache have kept the same
2698 # value.
2699 ac_cache_corrupted=false
2700 for ac_var in $ac_precious_vars; do
2701   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2702   eval ac_new_set=\$ac_env_${ac_var}_set
2703   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2704   eval ac_new_val=\$ac_env_${ac_var}_value
2705   case $ac_old_set,$ac_new_set in
2706     set,)
2707       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709       ac_cache_corrupted=: ;;
2710     ,set)
2711       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713       ac_cache_corrupted=: ;;
2714     ,);;
2715     *)
2716       if test "x$ac_old_val" != "x$ac_new_val"; then
2717         # differences in whitespace do not lead to failure.
2718         ac_old_val_w=`echo x $ac_old_val`
2719         ac_new_val_w=`echo x $ac_new_val`
2720         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723           ac_cache_corrupted=:
2724         else
2725           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727           eval $ac_var=\$ac_old_val
2728         fi
2729         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2730 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2731         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2732 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2733       fi;;
2734   esac
2735   # Pass precious variables to config.status.
2736   if test "$ac_new_set" = set; then
2737     case $ac_new_val in
2738     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739     *) ac_arg=$ac_var=$ac_new_val ;;
2740     esac
2741     case " $ac_configure_args " in
2742       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2743       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2744     esac
2745   fi
2746 done
2747 if $ac_cache_corrupted; then
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2752   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2753 fi
2754 ## -------------------- ##
2755 ## Main body of script. ##
2756 ## -------------------- ##
2757
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765
2766 ac_aux_dir=
2767 for ac_dir in config "$srcdir"/config; do
2768   if test -f "$ac_dir/install-sh"; then
2769     ac_aux_dir=$ac_dir
2770     ac_install_sh="$ac_aux_dir/install-sh -c"
2771     break
2772   elif test -f "$ac_dir/install.sh"; then
2773     ac_aux_dir=$ac_dir
2774     ac_install_sh="$ac_aux_dir/install.sh -c"
2775     break
2776   elif test -f "$ac_dir/shtool"; then
2777     ac_aux_dir=$ac_dir
2778     ac_install_sh="$ac_aux_dir/shtool install -c"
2779     break
2780   fi
2781 done
2782 if test -z "$ac_aux_dir"; then
2783   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2784 fi
2785
2786 # These three variables are undocumented and unsupported,
2787 # and are intended to be withdrawn in a future Autoconf release.
2788 # They can cause serious problems if a builder's source tree is in a directory
2789 # whose full name contains unusual characters.
2790 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2791 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2792 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2793
2794
2795 ac_config_headers="$ac_config_headers lib/config.h"
2796
2797
2798 MCONFIG=./MCONFIG
2799
2800 BINARY_TYPE=bin
2801 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2802         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2803 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2804         | tr \" " " | awk '{print $1}'`
2805 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2806 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2807 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2808
2809 if expr $YEAR ">" 1900 > /dev/null ; then
2810         E2FSPROGS_YEAR=$YEAR
2811 elif expr $YEAR ">" 90 >/dev/null ; then
2812         E2FSPROGS_YEAR=19$YEAR
2813 else
2814         E2FSPROGS_YEAR=20$YEAR
2815 fi
2816
2817 case $MONTH in
2818 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2819 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2820 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2821 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2822 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2823 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2824 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2825 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2826 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2827 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2828 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2829 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2830 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2831 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2832 esac
2833
2834 base_ver=`echo $E2FSPROGS_VERSION | \
2835                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2836
2837 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2838
2839 case $E2FSPROGS_VERSION in
2840 *-WIP|pre-*)
2841         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2842         ;;
2843 *)
2844         E2FSPROGS_PKGVER="$base_ver"
2845         ;;
2846 esac
2847
2848 unset DATE MONTH YEAR base_ver pre_vers date_spec
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2850 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2852 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2853
2854
2855
2856
2857
2858
2859 WITH_DIET_LIBC=
2860
2861 # Check whether --with-diet-libc was given.
2862 if test "${with_diet_libc+set}" = set; then :
2863   withval=$with_diet_libc; CC="diet cc -nostdinc"
2864 WITH_DIET_LIBC=yes
2865 if test -z "$LIBS"
2866 then
2867         LIBS="-lcompat"
2868 else
2869         LIBS="$LIBS -lcompat"
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2872 $as_echo "CC=$CC" >&6; }
2873 fi
2874 # Make sure we can run config.sub.
2875 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2876   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2877
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2879 $as_echo_n "checking build system type... " >&6; }
2880 if ${ac_cv_build+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   ac_build_alias=$build_alias
2884 test "x$ac_build_alias" = x &&
2885   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2886 test "x$ac_build_alias" = x &&
2887   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2888 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2889   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2890
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2893 $as_echo "$ac_cv_build" >&6; }
2894 case $ac_cv_build in
2895 *-*-*) ;;
2896 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2897 esac
2898 build=$ac_cv_build
2899 ac_save_IFS=$IFS; IFS='-'
2900 set x $ac_cv_build
2901 shift
2902 build_cpu=$1
2903 build_vendor=$2
2904 shift; shift
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2907 build_os=$*
2908 IFS=$ac_save_IFS
2909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2910
2911
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2913 $as_echo_n "checking host system type... " >&6; }
2914 if ${ac_cv_host+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test "x$host_alias" = x; then
2918   ac_cv_host=$ac_cv_build
2919 else
2920   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2921     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2922 fi
2923
2924 fi
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2926 $as_echo "$ac_cv_host" >&6; }
2927 case $ac_cv_host in
2928 *-*-*) ;;
2929 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2930 esac
2931 host=$ac_cv_host
2932 ac_save_IFS=$IFS; IFS='-'
2933 set x $ac_cv_host
2934 shift
2935 host_cpu=$1
2936 host_vendor=$2
2937 shift; shift
2938 # Remember, the first character of IFS is used to create $*,
2939 # except with old shells:
2940 host_os=$*
2941 IFS=$ac_save_IFS
2942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2943
2944
2945 DLOPEN_LIB=''
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 if test -n "$ac_tool_prefix"; then
2952   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_CC+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$CC"; then
2960   ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$ac_cv_prog_CC"; then
2991   ac_ct_CC=$CC
2992   # Extract the first word of "gcc", so it can be a program name with args.
2993 set dummy gcc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test -n "$ac_ct_CC"; then
3000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007     for ac_exec_ext in '' $ac_executable_extensions; do
3008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009     ac_cv_prog_ac_ct_CC="gcc"
3010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014   done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028   if test "x$ac_ct_CC" = x; then
3029     CC=""
3030   else
3031     case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037     CC=$ac_ct_CC
3038   fi
3039 else
3040   CC="$ac_cv_prog_CC"
3041 fi
3042
3043 if test -z "$CC"; then
3044           if test -n "$ac_tool_prefix"; then
3045     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}cc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_CC+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$CC"; then
3053   ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062     ac_cv_prog_CC="${ac_tool_prefix}cc"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082   fi
3083 fi
3084 if test -z "$CC"; then
3085   # Extract the first word of "cc", so it can be a program name with args.
3086 set dummy cc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$CC"; then
3093   ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095   ac_prog_rejected=no
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101     for ac_exec_ext in '' $ac_executable_extensions; do
3102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104        ac_prog_rejected=yes
3105        continue
3106      fi
3107     ac_cv_prog_CC="cc"
3108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109     break 2
3110   fi
3111 done
3112   done
3113 IFS=$as_save_IFS
3114
3115 if test $ac_prog_rejected = yes; then
3116   # We found a bogon in the path, so make sure we never use it.
3117   set dummy $ac_cv_prog_CC
3118   shift
3119   if test $# != 0; then
3120     # We chose a different compiler from the bogus one.
3121     # However, it has the same basename, so the bogon will be chosen
3122     # first if we set CC to just the basename; use the full file name.
3123     shift
3124     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125   fi
3126 fi
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 fi
3140 if test -z "$CC"; then
3141   if test -n "$ac_tool_prefix"; then
3142   for ac_prog in cl.exe
3143   do
3144     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$CC"; then
3152   ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181     test -n "$CC" && break
3182   done
3183 fi
3184 if test -z "$CC"; then
3185   ac_ct_CC=$CC
3186   for ac_prog in cl.exe
3187 do
3188   # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$ac_ct_CC"; then
3196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205     ac_cv_prog_ac_ct_CC="$ac_prog"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224
3225   test -n "$ac_ct_CC" && break
3226 done
3227
3228   if test "x$ac_ct_CC" = x; then
3229     CC=""
3230   else
3231     case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237     CC=$ac_ct_CC
3238   fi
3239 fi
3240
3241 fi
3242
3243
3244 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "no acceptable C compiler found in \$PATH
3247 See \`config.log' for more details" "$LINENO" 5; }
3248
3249 # Provide some information about the compiler.
3250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3251 set X $ac_compile
3252 ac_compiler=$2
3253 for ac_option in --version -v -V -qversion; do
3254   { { ac_try="$ac_compiler $ac_option >&5"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3262   ac_status=$?
3263   if test -s conftest.err; then
3264     sed '10a\
3265 ... rest of stderr output deleted ...
3266          10q' conftest.err >conftest.er1
3267     cat conftest.er1 >&5
3268   fi
3269   rm -f conftest.er1 conftest.err
3270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271   test $ac_status = 0; }
3272 done
3273
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 ac_clean_files_save=$ac_clean_files
3286 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3287 # Try to create an executable without -o first, disregard a.out.
3288 # It will help us diagnose broken compilers, and finding out an intuition
3289 # of exeext.
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3291 $as_echo_n "checking whether the C compiler works... " >&6; }
3292 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3293
3294 # The possible output files:
3295 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3296
3297 ac_rmfiles=
3298 for ac_file in $ac_files
3299 do
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3303   esac
3304 done
3305 rm -f $ac_rmfiles
3306
3307 if { { ac_try="$ac_link_default"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_link_default") 2>&5
3315   ac_status=$?
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }; then :
3318   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3321 # so that the user can short-circuit this test for compilers unknown to
3322 # Autoconf.
3323 for ac_file in $ac_files ''
3324 do
3325   test -f "$ac_file" || continue
3326   case $ac_file in
3327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3328         ;;
3329     [ab].out )
3330         # We found the default executable, but exeext='' is most
3331         # certainly right.
3332         break;;
3333     *.* )
3334         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3335         then :; else
3336            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337         fi
3338         # We set ac_cv_exeext here because the later test for it is not
3339         # safe: cross compilers may not add the suffix if given an `-o'
3340         # argument, so we may need to know it at that point already.
3341         # Even if this section looks crufty: it has the advantage of
3342         # actually working.
3343         break;;
3344     * )
3345         break;;
3346   esac
3347 done
3348 test "$ac_cv_exeext" = no && ac_cv_exeext=
3349
3350 else
3351   ac_file=''
3352 fi
3353 if test -z "$ac_file"; then :
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error 77 "C compiler cannot create executables
3362 See \`config.log' for more details" "$LINENO" 5; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368 $as_echo_n "checking for C compiler default output file name... " >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 ac_exeext=$ac_cv_exeext
3372
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3376 $as_echo_n "checking for suffix of executables... " >&6; }
3377 if { { ac_try="$ac_link"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_link") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387   test $ac_status = 0; }; then :
3388   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3390 # work properly (i.e., refer to `conftest.exe'), while it won't with
3391 # `rm'.
3392 for ac_file in conftest.exe conftest conftest.*; do
3393   test -f "$ac_file" || continue
3394   case $ac_file in
3395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397           break;;
3398     * ) break;;
3399   esac
3400 done
3401 else
3402   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 fi
3407 rm -f conftest conftest$ac_cv_exeext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3409 $as_echo "$ac_cv_exeext" >&6; }
3410
3411 rm -f conftest.$ac_ext
3412 EXEEXT=$ac_cv_exeext
3413 ac_exeext=$EXEEXT
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h.  */
3416 #include <stdio.h>
3417 int
3418 main ()
3419 {
3420 FILE *f = fopen ("conftest.out", "w");
3421  return ferror (f) || fclose (f) != 0;
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 ac_clean_files="$ac_clean_files conftest.out"
3428 # Check that the compiler produces executables we can run.  If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431 $as_echo_n "checking whether we are cross compiling... " >&6; }
3432 if test "$cross_compiling" != yes; then
3433   { { ac_try="$ac_link"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440   (eval "$ac_link") 2>&5
3441   ac_status=$?
3442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443   test $ac_status = 0; }
3444   if { ac_try='./conftest$ac_cv_exeext'
3445   { { case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451   (eval "$ac_try") 2>&5
3452   ac_status=$?
3453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454   test $ac_status = 0; }; }; then
3455     cross_compiling=no
3456   else
3457     if test "$cross_compiling" = maybe; then
3458         cross_compiling=yes
3459     else
3460         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error $? "cannot run C compiled programs.
3463 If you meant to cross compile, use \`--host'.
3464 See \`config.log' for more details" "$LINENO" 5; }
3465     fi
3466   fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469 $as_echo "$cross_compiling" >&6; }
3470
3471 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if ${ac_cv_objext+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 rm -f conftest.o conftest.obj
3490 if { { ac_try="$ac_compile"
3491 case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497   (eval "$ac_compile") 2>&5
3498   ac_status=$?
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }; then :
3501   for ac_file in conftest.o conftest.obj conftest.*; do
3502   test -f "$ac_file" || continue;
3503   case $ac_file in
3504     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506        break;;
3507   esac
3508 done
3509 else
3510   $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3523 ac_objext=$OBJEXT
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if ${ac_cv_c_compiler_gnu+:} false; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531
3532 int
3533 main ()
3534 {
3535 #ifndef __GNUC__
3536        choke me
3537 #endif
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544   ac_compiler_gnu=yes
3545 else
3546   ac_compiler_gnu=no
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554 if test $ac_compiler_gnu = yes; then
3555   GCC=yes
3556 else
3557   GCC=
3558 fi
3559 ac_test_CFLAGS=${CFLAGS+set}
3560 ac_save_CFLAGS=$CFLAGS
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3562 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3563 if ${ac_cv_prog_cc_g+:} false; then :
3564   $as_echo_n "(cached) " >&6
3565 else
3566   ac_save_c_werror_flag=$ac_c_werror_flag
3567    ac_c_werror_flag=yes
3568    ac_cv_prog_cc_g=no
3569    CFLAGS="-g"
3570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 else
3584   CFLAGS=""
3585       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597
3598 else
3599   ac_c_werror_flag=$ac_save_c_werror_flag
3600          CFLAGS="-g"
3601          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613   ac_cv_prog_cc_g=yes
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620    ac_c_werror_flag=$ac_save_c_werror_flag
3621 fi
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3623 $as_echo "$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625   CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627   if test "$GCC" = yes; then
3628     CFLAGS="-g -O2"
3629   else
3630     CFLAGS="-g"
3631   fi
3632 else
3633   if test "$GCC" = yes; then
3634     CFLAGS="-O2"
3635   else
3636     CFLAGS=
3637   fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3640 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3641 if ${ac_cv_prog_cc_c89+:} false; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   ac_cv_prog_cc_c89=no
3645 ac_save_CC=$CC
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h.  */
3648 #include <stdarg.h>
3649 #include <stdio.h>
3650 struct stat;
3651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3652 struct buf { int x; };
3653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654 static char *e (p, i)
3655      char **p;
3656      int i;
3657 {
3658   return p[i];
3659 }
3660 static char *f (char * (*g) (char **, int), char **p, ...)
3661 {
3662   char *s;
3663   va_list v;
3664   va_start (v,p);
3665   s = g (p, va_arg (v,int));
3666   va_end (v);
3667   return s;
3668 }
3669
3670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3671    function prototypes and stuff, but not '\xHH' hex character constants.
3672    These don't provoke an error unfortunately, instead are silently treated
3673    as 'x'.  The following induces an error, until -std is added to get
3674    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3675    array size at least.  It's necessary to write '\x00'==0 to get something
3676    that's true only with -std.  */
3677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
3679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680    inside strings and character constants.  */
3681 #define FOO(x) 'x'
3682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
3684 int test (int i, double x);
3685 struct s1 {int (*f) (int a);};
3686 struct s2 {int (*f) (double a);};
3687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688 int argc;
3689 char **argv;
3690 int
3691 main ()
3692 {
3693 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3694   ;
3695   return 0;
3696 }
3697 _ACEOF
3698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 do
3701   CC="$ac_save_CC $ac_arg"
3702   if ac_fn_c_try_compile "$LINENO"; then :
3703   ac_cv_prog_cc_c89=$ac_arg
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext
3706   test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 done
3708 rm -f conftest.$ac_ext
3709 CC=$ac_save_CC
3710
3711 fi
3712 # AC_CACHE_VAL
3713 case "x$ac_cv_prog_cc_c89" in
3714   x)
3715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716 $as_echo "none needed" >&6; } ;;
3717   xno)
3718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719 $as_echo "unsupported" >&6; } ;;
3720   *)
3721     CC="$CC $ac_cv_prog_cc_c89"
3722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724 esac
3725 if test "x$ac_cv_prog_cc_c89" != xno; then :
3726
3727 fi
3728
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3738 if ${ac_cv_lib_dl_dlopen+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   ac_check_lib_save_LIBS=$LIBS
3742 LIBS="-ldl  $LIBS"
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745
3746 /* Override any GCC internal prototype to avoid an error.
3747    Use char because int might match the return type of a GCC
3748    builtin and then its argument prototype would still apply.  */
3749 #ifdef __cplusplus
3750 extern "C"
3751 #endif
3752 char dlopen ();
3753 int
3754 main ()
3755 {
3756 return dlopen ();
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_link "$LINENO"; then :
3762   ac_cv_lib_dl_dlopen=yes
3763 else
3764   ac_cv_lib_dl_dlopen=no
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext \
3767     conftest$ac_exeext conftest.$ac_ext
3768 LIBS=$ac_check_lib_save_LIBS
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3772 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3773   DLOPEN_LIB=-ldl
3774 fi
3775
3776
3777
3778 # Check whether --with-cc was given.
3779 if test "${with_cc+set}" = set; then :
3780   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3781 fi
3782
3783
3784 # Check whether --with-ccopts was given.
3785 if test "${with_ccopts+set}" = set; then :
3786   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3787 fi
3788
3789
3790 # Check whether --with-ldopts was given.
3791 if test "${with_ldopts+set}" = set; then :
3792   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3793 fi
3794
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 if test -n "$ac_tool_prefix"; then
3801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_CC+:} false; then :
3806   $as_echo_n "(cached) " >&6
3807 else
3808   if test -n "$CC"; then
3809   ac_cv_prog_CC="$CC" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814   IFS=$as_save_IFS
3815   test -z "$as_dir" && as_dir=.
3816     for ac_exec_ext in '' $ac_executable_extensions; do
3817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820     break 2
3821   fi
3822 done
3823   done
3824 IFS=$as_save_IFS
3825
3826 fi
3827 fi
3828 CC=$ac_cv_prog_CC
3829 if test -n "$CC"; then
3830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3831 $as_echo "$CC" >&6; }
3832 else
3833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3835 fi
3836
3837
3838 fi
3839 if test -z "$ac_cv_prog_CC"; then
3840   ac_ct_CC=$CC
3841   # Extract the first word of "gcc", so it can be a program name with args.
3842 set dummy gcc; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -n "$ac_ct_CC"; then
3849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856     for ac_exec_ext in '' $ac_executable_extensions; do
3857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_ac_ct_CC="gcc"
3859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863   done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869 if test -n "$ac_ct_CC"; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871 $as_echo "$ac_ct_CC" >&6; }
3872 else
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877   if test "x$ac_ct_CC" = x; then
3878     CC=""
3879   else
3880     case $cross_compiling:$ac_tool_warned in
3881 yes:)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886     CC=$ac_ct_CC
3887   fi
3888 else
3889   CC="$ac_cv_prog_CC"
3890 fi
3891
3892 if test -z "$CC"; then
3893           if test -n "$ac_tool_prefix"; then
3894     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}cc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_prog_CC+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   if test -n "$CC"; then
3902   ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909     for ac_exec_ext in '' $ac_executable_extensions; do
3910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911     ac_cv_prog_CC="${ac_tool_prefix}cc"
3912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916   done
3917 IFS=$as_save_IFS
3918
3919 fi
3920 fi
3921 CC=$ac_cv_prog_CC
3922 if test -n "$CC"; then
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3924 $as_echo "$CC" >&6; }
3925 else
3926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 fi
3929
3930
3931   fi
3932 fi
3933 if test -z "$CC"; then
3934   # Extract the first word of "cc", so it can be a program name with args.
3935 set dummy cc; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   if test -n "$CC"; then
3942   ac_cv_prog_CC="$CC" # Let the user override the test.
3943 else
3944   ac_prog_rejected=no
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3953        ac_prog_rejected=yes
3954        continue
3955      fi
3956     ac_cv_prog_CC="cc"
3957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done
3962 IFS=$as_save_IFS
3963
3964 if test $ac_prog_rejected = yes; then
3965   # We found a bogon in the path, so make sure we never use it.
3966   set dummy $ac_cv_prog_CC
3967   shift
3968   if test $# != 0; then
3969     # We chose a different compiler from the bogus one.
3970     # However, it has the same basename, so the bogon will be chosen
3971     # first if we set CC to just the basename; use the full file name.
3972     shift
3973     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3974   fi
3975 fi
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3982 else
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987
3988 fi
3989 if test -z "$CC"; then
3990   if test -n "$ac_tool_prefix"; then
3991   for ac_prog in cl.exe
3992   do
3993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_CC+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -n "$CC"; then
4001   ac_cv_prog_CC="$CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     for ac_exec_ext in '' $ac_executable_extensions; do
4009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015   done
4016 IFS=$as_save_IFS
4017
4018 fi
4019 fi
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030     test -n "$CC" && break
4031   done
4032 fi
4033 if test -z "$CC"; then
4034   ac_ct_CC=$CC
4035   for ac_prog in cl.exe
4036 do
4037   # Extract the first word of "$ac_prog", so it can be a program name with args.
4038 set dummy $ac_prog; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   if test -n "$ac_ct_CC"; then
4045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052     for ac_exec_ext in '' $ac_executable_extensions; do
4053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_ac_ct_CC="$ac_prog"
4055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059   done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 $as_echo "$ac_ct_CC" >&6; }
4068 else
4069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073
4074   test -n "$ac_ct_CC" && break
4075 done
4076
4077   if test "x$ac_ct_CC" = x; then
4078     CC=""
4079   else
4080     case $cross_compiling:$ac_tool_warned in
4081 yes:)
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084 ac_tool_warned=yes ;;
4085 esac
4086     CC=$ac_ct_CC
4087   fi
4088 fi
4089
4090 fi
4091
4092
4093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error $? "no acceptable C compiler found in \$PATH
4096 See \`config.log' for more details" "$LINENO" 5; }
4097
4098 # Provide some information about the compiler.
4099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4100 set X $ac_compile
4101 ac_compiler=$2
4102 for ac_option in --version -v -V -qversion; do
4103   { { ac_try="$ac_compiler $ac_option >&5"
4104 case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4111   ac_status=$?
4112   if test -s conftest.err; then
4113     sed '10a\
4114 ... rest of stderr output deleted ...
4115          10q' conftest.err >conftest.er1
4116     cat conftest.er1 >&5
4117   fi
4118   rm -f conftest.er1 conftest.err
4119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120   test $ac_status = 0; }
4121 done
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130
4131 int
4132 main ()
4133 {
4134 #ifndef __GNUC__
4135        choke me
4136 #endif
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143   ac_compiler_gnu=yes
4144 else
4145   ac_compiler_gnu=no
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4154   GCC=yes
4155 else
4156   GCC=
4157 fi
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   ac_save_c_werror_flag=$ac_c_werror_flag
4166    ac_c_werror_flag=yes
4167    ac_cv_prog_cc_g=no
4168    CFLAGS="-g"
4169    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171
4172 int
4173 main ()
4174 {
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181   ac_cv_prog_cc_g=yes
4182 else
4183   CFLAGS=""
4184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h.  */
4186
4187 int
4188 main ()
4189 {
4190
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196
4197 else
4198   ac_c_werror_flag=$ac_save_c_werror_flag
4199          CFLAGS="-g"
4200          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h.  */
4202
4203 int
4204 main ()
4205 {
4206
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_cv_prog_cc_g=yes
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219    ac_c_werror_flag=$ac_save_c_werror_flag
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224   CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226   if test "$GCC" = yes; then
4227     CFLAGS="-g -O2"
4228   else
4229     CFLAGS="-g"
4230   fi
4231 else
4232   if test "$GCC" = yes; then
4233     CFLAGS="-O2"
4234   else
4235     CFLAGS=
4236   fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   ac_cv_prog_cc_c89=no
4244 ac_save_CC=$CC
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h.  */
4247 #include <stdarg.h>
4248 #include <stdio.h>
4249 struct stat;
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254      char **p;
4255      int i;
4256 {
4257   return p[i];
4258 }
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4260 {
4261   char *s;
4262   va_list v;
4263   va_start (v,p);
4264   s = g (p, va_arg (v,int));
4265   va_end (v);
4266   return s;
4267 }
4268
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4270    function prototypes and stuff, but not '\xHH' hex character constants.
4271    These don't provoke an error unfortunately, instead are silently treated
4272    as 'x'.  The following induces an error, until -std is added to get
4273    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4274    array size at least.  It's necessary to write '\x00'==0 to get something
4275    that's true only with -std.  */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279    inside strings and character constants.  */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4289 int
4290 main ()
4291 {
4292 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 do
4300   CC="$ac_save_CC $ac_arg"
4301   if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_prog_cc_c89=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext
4305   test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309
4310 fi
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4313   x)
4314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316   xno)
4317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4319   *)
4320     CC="$CC $ac_cv_prog_cc_c89"
4321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4325
4326 fi
4327
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334 if test "$GCC" = yes; then
4335    RDYNAMIC="-rdynamic"
4336
4337 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347   CPP=
4348 fi
4349 if test -z "$CPP"; then
4350   if ${ac_cv_prog_CPP+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353       # Double quotes because CPP needs to be expanded
4354     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4355     do
4356       ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4358 do
4359   # Use a header file that comes with gcc, so configuring glibc
4360   # with a fresh cross-compiler works.
4361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362   # <limits.h> exists even on freestanding compilers.
4363   # On the NeXT, cc -E runs the code through the compiler's parser,
4364   # not just through cpp. "Syntax error" is here to catch this case.
4365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367 #ifdef __STDC__
4368 # include <limits.h>
4369 #else
4370 # include <assert.h>
4371 #endif
4372                      Syntax error
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375
4376 else
4377   # Broken: fails on valid input.
4378 continue
4379 fi
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4381
4382   # OK, works on sane cases.  Now check whether nonexistent headers
4383   # can be detected and how.
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #include <ac_nonexistent.h>
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389   # Broken: success on invalid input.
4390 continue
4391 else
4392   # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4395 fi
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4397
4398 done
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.i conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4402   break
4403 fi
4404
4405     done
4406     ac_cv_prog_CPP=$CPP
4407
4408 fi
4409   CPP=$ac_cv_prog_CPP
4410 else
4411   ac_cv_prog_CPP=$CPP
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414 $as_echo "$CPP" >&6; }
4415 ac_preproc_ok=false
4416 for ac_c_preproc_warn_flag in '' yes
4417 do
4418   # Use a header file that comes with gcc, so configuring glibc
4419   # with a fresh cross-compiler works.
4420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421   # <limits.h> exists even on freestanding compilers.
4422   # On the NeXT, cc -E runs the code through the compiler's parser,
4423   # not just through cpp. "Syntax error" is here to catch this case.
4424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431                      Syntax error
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434
4435 else
4436   # Broken: fails on valid input.
4437 continue
4438 fi
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441   # OK, works on sane cases.  Now check whether nonexistent headers
4442   # can be detected and how.
4443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448   # Broken: success on invalid input.
4449 continue
4450 else
4451   # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4454 fi
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4456
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.i conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then :
4461
4462 else
4463   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details" "$LINENO" 5; }
4467 fi
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4476 $as_echo_n "checking for additional special compiler flags... " >&6; }
4477 if test "$GCC" = yes
4478 then
4479     case "$host_cpu" in
4480         alpha)          addcflags="-mieee" ;;
4481     esac
4482 fi
4483 if test "x$addcflags" != x
4484 then
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4486 $as_echo "$addcflags" >&6; }
4487     CFLAGS="$addcflags $CFLAGS"
4488 else
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4490 $as_echo "(none)" >&6; }
4491 fi
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4494 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4495 if ${ac_cv_path_GREP+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   if test -z "$GREP"; then
4499   ac_path_GREP_found=false
4500   # Loop through the user's path and test for each of PROGNAME-LIST
4501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506     for ac_prog in grep ggrep; do
4507     for ac_exec_ext in '' $ac_executable_extensions; do
4508       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4509       as_fn_executable_p "$ac_path_GREP" || continue
4510 # Check for GNU ac_path_GREP and select it if it is found.
4511   # Check for GNU $ac_path_GREP
4512 case `"$ac_path_GREP" --version 2>&1` in
4513 *GNU*)
4514   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4515 *)
4516   ac_count=0
4517   $as_echo_n 0123456789 >"conftest.in"
4518   while :
4519   do
4520     cat "conftest.in" "conftest.in" >"conftest.tmp"
4521     mv "conftest.tmp" "conftest.in"
4522     cp "conftest.in" "conftest.nl"
4523     $as_echo 'GREP' >> "conftest.nl"
4524     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526     as_fn_arith $ac_count + 1 && ac_count=$as_val
4527     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4528       # Best one so far, save it but keep looking for a better one
4529       ac_cv_path_GREP="$ac_path_GREP"
4530       ac_path_GREP_max=$ac_count
4531     fi
4532     # 10*(2^10) chars as input seems more than enough
4533     test $ac_count -gt 10 && break
4534   done
4535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 esac
4537
4538       $ac_path_GREP_found && break 3
4539     done
4540   done
4541   done
4542 IFS=$as_save_IFS
4543   if test -z "$ac_cv_path_GREP"; then
4544     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4545   fi
4546 else
4547   ac_cv_path_GREP=$GREP
4548 fi
4549
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4552 $as_echo "$ac_cv_path_GREP" >&6; }
4553  GREP="$ac_cv_path_GREP"
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4557 $as_echo_n "checking for egrep... " >&6; }
4558 if ${ac_cv_path_EGREP+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4562    then ac_cv_path_EGREP="$GREP -E"
4563    else
4564      if test -z "$EGREP"; then
4565   ac_path_EGREP_found=false
4566   # Loop through the user's path and test for each of PROGNAME-LIST
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_prog in egrep; do
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575       as_fn_executable_p "$ac_path_EGREP" || continue
4576 # Check for GNU ac_path_EGREP and select it if it is found.
4577   # Check for GNU $ac_path_EGREP
4578 case `"$ac_path_EGREP" --version 2>&1` in
4579 *GNU*)
4580   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4581 *)
4582   ac_count=0
4583   $as_echo_n 0123456789 >"conftest.in"
4584   while :
4585   do
4586     cat "conftest.in" "conftest.in" >"conftest.tmp"
4587     mv "conftest.tmp" "conftest.in"
4588     cp "conftest.in" "conftest.nl"
4589     $as_echo 'EGREP' >> "conftest.nl"
4590     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592     as_fn_arith $ac_count + 1 && ac_count=$as_val
4593     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594       # Best one so far, save it but keep looking for a better one
4595       ac_cv_path_EGREP="$ac_path_EGREP"
4596       ac_path_EGREP_max=$ac_count
4597     fi
4598     # 10*(2^10) chars as input seems more than enough
4599     test $ac_count -gt 10 && break
4600   done
4601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604       $ac_path_EGREP_found && break 3
4605     done
4606   done
4607   done
4608 IFS=$as_save_IFS
4609   if test -z "$ac_cv_path_EGREP"; then
4610     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611   fi
4612 else
4613   ac_cv_path_EGREP=$EGREP
4614 fi
4615
4616    fi
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4619 $as_echo "$ac_cv_path_EGREP" >&6; }
4620  EGREP="$ac_cv_path_EGREP"
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4624 $as_echo_n "checking for ANSI C header files... " >&6; }
4625 if ${ac_cv_header_stdc+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630 #include <stdlib.h>
4631 #include <stdarg.h>
4632 #include <string.h>
4633 #include <float.h>
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644   ac_cv_header_stdc=yes
4645 else
4646   ac_cv_header_stdc=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649
4650 if test $ac_cv_header_stdc = yes; then
4651   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <string.h>
4655
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658   $EGREP "memchr" >/dev/null 2>&1; then :
4659
4660 else
4661   ac_cv_header_stdc=no
4662 fi
4663 rm -f conftest*
4664
4665 fi
4666
4667 if test $ac_cv_header_stdc = yes; then
4668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h.  */
4671 #include <stdlib.h>
4672
4673 _ACEOF
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675   $EGREP "free" >/dev/null 2>&1; then :
4676
4677 else
4678   ac_cv_header_stdc=no
4679 fi
4680 rm -f conftest*
4681
4682 fi
4683
4684 if test $ac_cv_header_stdc = yes; then
4685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686   if test "$cross_compiling" = yes; then :
4687   :
4688 else
4689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691 #include <ctype.h>
4692 #include <stdlib.h>
4693 #if ((' ' & 0x0FF) == 0x020)
4694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4696 #else
4697 # define ISLOWER(c) \
4698                    (('a' <= (c) && (c) <= 'i') \
4699                      || ('j' <= (c) && (c) <= 'r') \
4700                      || ('s' <= (c) && (c) <= 'z'))
4701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4702 #endif
4703
4704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4705 int
4706 main ()
4707 {
4708   int i;
4709   for (i = 0; i < 256; i++)
4710     if (XOR (islower (i), ISLOWER (i))
4711         || toupper (i) != TOUPPER (i))
4712       return 2;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_run "$LINENO"; then :
4717
4718 else
4719   ac_cv_header_stdc=no
4720 fi
4721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4722   conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 fi
4724
4725 fi
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4728 $as_echo "$ac_cv_header_stdc" >&6; }
4729 if test $ac_cv_header_stdc = yes; then
4730
4731 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4732
4733 fi
4734
4735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737                   inttypes.h stdint.h unistd.h
4738 do :
4739   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4741 "
4742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4743   cat >>confdefs.h <<_ACEOF
4744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745 _ACEOF
4746
4747 fi
4748
4749 done
4750
4751
4752
4753   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4755   MINIX=yes
4756 else
4757   MINIX=
4758 fi
4759
4760
4761   if test "$MINIX" = yes; then
4762
4763 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4764
4765
4766 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4767
4768
4769 $as_echo "#define _MINIX 1" >>confdefs.h
4770
4771   fi
4772
4773
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4775 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4776 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781
4782 #         define __EXTENSIONS__ 1
4783           $ac_includes_default
4784 int
4785 main ()
4786 {
4787
4788   ;
4789   return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793   ac_cv_safe_to_define___extensions__=yes
4794 else
4795   ac_cv_safe_to_define___extensions__=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4800 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4801   test $ac_cv_safe_to_define___extensions__ = yes &&
4802     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4803
4804   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4805
4806   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4807
4808   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4809
4810   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4811
4812
4813 LIB_EXT=.a
4814 STATIC_LIB_EXT=.a
4815 PROFILED_LIB_EXT=.a
4816
4817 # Check whether --with-root-prefix was given.
4818 if test "${with_root_prefix+set}" = set; then :
4819   withval=$with_root_prefix; root_prefix=$withval
4820 else
4821   root_prefix=NONE
4822 fi
4823 # Check whether --enable-maintainer-mode was given.
4824 if test "${enable_maintainer_mode+set}" = set; then :
4825   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4826 then
4827         MAINTAINER_CMT=#
4828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4829 $as_echo "Disabling maintainer mode" >&6; }
4830 else
4831         MAINTAINER_CMT=
4832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4833 $as_echo "Enabling maintainer mode" >&6; }
4834 fi
4835
4836 else
4837   MAINTAINER_CMT=#
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4839 $as_echo "Disabling maintainer mode by default" >&6; }
4840
4841 fi
4842
4843
4844 # Check whether --enable-symlink-install was given.
4845 if test "${enable_symlink_install+set}" = set; then :
4846   enableval=$enable_symlink_install; if test "$enableval" = "no"
4847 then
4848         LINK_INSTALL_FLAGS=-f
4849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4850 $as_echo "Disabling symlinks for install" >&6; }
4851 else
4852         LINK_INSTALL_FLAGS=-sf
4853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4854 $as_echo "Enabling symlinks for install" >&6; }
4855 fi
4856
4857 else
4858   LINK_INSTALL_FLAGS=-f
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4860 $as_echo "Disabling symlinks for install by default" >&6; }
4861
4862 fi
4863
4864
4865 relative_symlink_defined=
4866 # Check whether --enable-relative-symlinks was given.
4867 if test "${enable_relative_symlinks+set}" = set; then :
4868   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4869 then
4870         SYMLINK_RELATIVE=
4871         relative_symlink_defined=yes
4872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4873 $as_echo "Disabling relative symlinks for install" >&6; }
4874 else
4875         SYMLINK_RELATIVE=--relative
4876         relative_symlink_defined=yes
4877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4878 $as_echo "Enabling relative symlinks for install" >&6; }
4879 fi
4880 fi
4881
4882 # Check whether --enable-symlink-relative-symlinks was given.
4883 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4884   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4885 then
4886         SYMLINK_RELATIVE=yes
4887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4888 $as_echo "Disabling relative symlinks for install" >&6; }
4889 else
4890         SYMLINK_RELATIVE=--relative
4891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4892 $as_echo "Enabling relative symlinks for install" >&6; }
4893 fi
4894
4895 else
4896   if test -z "$relative_symlink_defined"
4897 then
4898         SYMLINK_RELATIVE=
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4900 $as_echo "Disabling relative symlinks for install by default" >&6; }
4901 fi
4902
4903 fi
4904
4905
4906 # Check whether --enable-symlink-build was given.
4907 if test "${enable_symlink_build+set}" = set; then :
4908   enableval=$enable_symlink_build; if test "$enableval" = "no"
4909 then
4910         LINK_BUILD_FLAGS=
4911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4912 $as_echo "Disabling symlinks for build" >&6; }
4913 else
4914         LINK_BUILD_FLAGS=-s
4915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4916 $as_echo "Enabling symlinks for build" >&6; }
4917 fi
4918
4919 else
4920   LINK_BUILD_FLAGS=
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4922 $as_echo "Disabling symlinks for build by default" >&6; }
4923
4924 fi
4925
4926
4927 # Check whether --enable-verbose-makecmds was given.
4928 if test "${enable_verbose_makecmds+set}" = set; then :
4929   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4930 then
4931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4932 $as_echo "Disabling verbose make commands" >&6; }
4933         E=@echo
4934         ES=echo
4935         Q=@
4936 else
4937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4938 $as_echo "Enabling verbose make commands" >&6; }
4939         E=@\\#
4940         ES=\\#
4941         Q=
4942 fi
4943
4944 else
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4946 $as_echo "Disabling verbose make commands" >&6; }
4947 E=@echo
4948 ES=echo
4949 Q=@
4950
4951 fi
4952
4953
4954
4955
4956 E2_PKG_CONFIG_STATIC=--static
4957 LDFLAG_DYNAMIC=
4958 PRIVATE_LIBS_CMT=
4959 # Check whether --enable-elf-shlibs was given.
4960 if test "${enable_elf_shlibs+set}" = set; then :
4961   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4962 then
4963         ELF_CMT=#
4964         MAKEFILE_ELF=/dev/null
4965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4966 $as_echo "Disabling ELF shared libraries" >&6; }
4967 else
4968         E2_PKG_CONFIG_STATIC=
4969         ELF_CMT=
4970         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4971         case "$host_os" in
4972         solaris2.*)
4973                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4974         ;;
4975         esac
4976         BINARY_TYPE=elfbin
4977         LIB_EXT=.so
4978         PRIVATE_LIBS_CMT=#
4979         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4981 $as_echo "Enabling ELF shared libraries" >&6; }
4982 fi
4983
4984 else
4985   MAKEFILE_ELF=/dev/null
4986 ELF_CMT=#
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4988 $as_echo "Disabling ELF shared libraries by default" >&6; }
4989
4990 fi
4991
4992
4993
4994 # Check whether --enable-bsd-shlibs was given.
4995 if test "${enable_bsd_shlibs+set}" = set; then :
4996   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4997 then
4998         BSDLIB_CMT=#
4999         MAKEFILE_BSDLIB=/dev/null
5000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5001 $as_echo "Disabling BSD shared libraries" >&6; }
5002 else
5003         E2_PKG_CONFIG_STATIC=
5004         BSDLIB_CMT=
5005         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5006         LIB_EXT=.so
5007         case "$host_os" in
5008         darwin*)
5009                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5010                 LIB_EXT=.dylib
5011         ;;
5012         esac
5013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5014 $as_echo "Enabling BSD shared libraries" >&6; }
5015 fi
5016
5017 else
5018   MAKEFILE_BSDLIB=/dev/null
5019 BSDLIB_CMT=#
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5021 $as_echo "Disabling BSD shared libraries by default" >&6; }
5022
5023 fi
5024
5025
5026
5027 # Check whether --enable-profile was given.
5028 if test "${enable_profile+set}" = set; then :
5029   enableval=$enable_profile; if test "$enableval" = "no"
5030 then
5031         PROFILE_CMT=#
5032         MAKEFILE_PROFILE=/dev/null
5033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5034 $as_echo "Disabling profiling libraries" >&6; }
5035 else
5036         PROFILE_CMT=
5037         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5038         PROFILED_LIB_EXT=_p.a
5039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5040 $as_echo "Building profiling libraries" >&6; }
5041 fi
5042
5043 else
5044   PROFILE_CMT=#
5045 MAKEFILE_PROFILE=/dev/null
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5047 $as_echo "Disabling profiling libraries by default" >&6; }
5048
5049 fi
5050
5051
5052
5053 # Check whether --enable-gcov was given.
5054 if test "${enable_gcov+set}" = set; then :
5055   enableval=$enable_gcov; if test "$enableval" = "yes"
5056 then
5057         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5058         LDFLAGS="-fprofile-arcs -ftest-coverage"
5059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5060 $as_echo "Enabling gcov support" >&6; }
5061 fi
5062
5063 fi
5064
5065 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5066 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5067 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5068 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5069 # Check whether --enable-hardening was given.
5070 if test "${enable_hardening+set}" = set; then :
5071   enableval=$enable_hardening; if test "$enableval" = "yes"
5072 then
5073         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5074         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5075         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5076         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5077         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5078         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5079         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5080         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5082 $as_echo "Enabling hardening support" >&6; }
5083 fi
5084
5085 fi
5086
5087
5088
5089
5090
5091
5092 # Check whether --enable-jbd-debug was given.
5093 if test "${enable_jbd_debug+set}" = set; then :
5094   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5095 then
5096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5097 $as_echo "Disabling journal debugging" >&6; }
5098 else
5099
5100 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5101
5102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5103 $as_echo "Enabling journal debugging" >&6; }
5104 fi
5105
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5108 $as_echo "Disabling journal debugging by default" >&6; }
5109
5110 fi
5111
5112 # Check whether --enable-blkid-debug was given.
5113 if test "${enable_blkid_debug+set}" = set; then :
5114   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5115 then
5116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5117 $as_echo "Disabling blkid debugging" >&6; }
5118 else
5119
5120 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5121
5122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5123 $as_echo "Enabling blkid debugging" >&6; }
5124 fi
5125
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5128 $as_echo "Disabling blkid debugging by default" >&6; }
5129
5130 fi
5131
5132 # Check whether --enable-testio-debug was given.
5133 if test "${enable_testio_debug+set}" = set; then :
5134   enableval=$enable_testio_debug;
5135 if test "$enableval" = "no"
5136 then
5137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5138 $as_echo "Disabling testio debugging" >&6; }
5139         TEST_IO_CMT="#"
5140 else
5141         TEST_IO_CMT=
5142         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5143
5144         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5145 $as_echo "Enabling testio debugging" >&6; }
5146 fi
5147
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5150 $as_echo "Enabling testio debugging by default" >&6; }
5151 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5152
5153 TEST_IO_CMT=
5154
5155 fi
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5166         if test -n "$ac_tool_prefix"; then
5167   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   case $PKG_CONFIG in
5175   [\\/]* | ?:[\\/]*)
5176   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5177   ;;
5178   *)
5179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191   done
5192 IFS=$as_save_IFS
5193
5194   ;;
5195 esac
5196 fi
5197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5198 if test -n "$PKG_CONFIG"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5200 $as_echo "$PKG_CONFIG" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_path_PKG_CONFIG"; then
5209   ac_pt_PKG_CONFIG=$PKG_CONFIG
5210   # Extract the first word of "pkg-config", so it can be a program name with args.
5211 set dummy pkg-config; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   case $ac_pt_PKG_CONFIG in
5218   [\\/]* | ?:[\\/]*)
5219   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5220   ;;
5221   *)
5222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227     for ac_exec_ext in '' $ac_executable_extensions; do
5228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234   done
5235 IFS=$as_save_IFS
5236
5237   ;;
5238 esac
5239 fi
5240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5241 if test -n "$ac_pt_PKG_CONFIG"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249   if test "x$ac_pt_PKG_CONFIG" = x; then
5250     PKG_CONFIG=""
5251   else
5252     case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258     PKG_CONFIG=$ac_pt_PKG_CONFIG
5259   fi
5260 else
5261   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5262 fi
5263
5264 fi
5265 if test -n "$PKG_CONFIG"; then
5266         _pkg_min_version=0.9.0
5267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5269         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5270                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271 $as_echo "yes" >&6; }
5272         else
5273                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275                 PKG_CONFIG=""
5276         fi
5277 fi
5278 LIBUUID=
5279 DEPLIBUUID=
5280 STATIC_LIBUUID=
5281 DEPSTATIC_LIBUUID=
5282 PROFILED_LIBUUID=
5283 DEPPROFILED_LIBUUID=
5284 UUID_CMT=
5285 # Check whether --enable-libuuid was given.
5286 if test "${enable_libuuid+set}" = set; then :
5287   enableval=$enable_libuuid; if test "$enableval" = "no"
5288 then
5289         if test -z "$PKG_CONFIG"; then
5290                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5291         fi
5292
5293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5294 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5295 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   ac_check_lib_save_LIBS=$LIBS
5299 LIBS="-luuid  $LIBS"
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h.  */
5302
5303 /* Override any GCC internal prototype to avoid an error.
5304    Use char because int might match the return type of a GCC
5305    builtin and then its argument prototype would still apply.  */
5306 #ifdef __cplusplus
5307 extern "C"
5308 #endif
5309 char uuid_generate ();
5310 int
5311 main ()
5312 {
5313 return uuid_generate ();
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_link "$LINENO"; then :
5319   ac_cv_lib_uuid_uuid_generate=yes
5320 else
5321   ac_cv_lib_uuid_uuid_generate=no
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext \
5324     conftest$ac_exeext conftest.$ac_ext
5325 LIBS=$ac_check_lib_save_LIBS
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5328 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5329 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5330   LIBUUID=`$PKG_CONFIG --libs uuid`;
5331                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5332 else
5333   as_fn_error $? "external uuid library not found" "$LINENO" 5
5334 fi
5335
5336         PROFILED_LIBUUID=$LIBUUID
5337         UUID_CMT=#
5338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5339 $as_echo "Disabling private uuid library" >&6; }
5340 else
5341         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5342         DEPLIBUUID=$LIBUUID
5343         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5344         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5345         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5346         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5348 $as_echo "Enabling private uuid library" >&6; }
5349 fi
5350
5351 else
5352   if test -n "$PKG_CONFIG"; then
5353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5354 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5355 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   ac_check_lib_save_LIBS=$LIBS
5359 LIBS="-luuid  $LIBS"
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362
5363 /* Override any GCC internal prototype to avoid an error.
5364    Use char because int might match the return type of a GCC
5365    builtin and then its argument prototype would still apply.  */
5366 #ifdef __cplusplus
5367 extern "C"
5368 #endif
5369 char uuid_generate ();
5370 int
5371 main ()
5372 {
5373 return uuid_generate ();
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 if ac_fn_c_try_link "$LINENO"; then :
5379   ac_cv_lib_uuid_uuid_generate=yes
5380 else
5381   ac_cv_lib_uuid_uuid_generate=no
5382 fi
5383 rm -f core conftest.err conftest.$ac_objext \
5384     conftest$ac_exeext conftest.$ac_ext
5385 LIBS=$ac_check_lib_save_LIBS
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5388 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5389 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5390   LIBUUID=`$PKG_CONFIG --libs uuid`;
5391                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5392 fi
5393
5394 fi
5395 if test -n "$LIBUUID"; then
5396         PROFILED_LIBUUID=$LIBUUID
5397         UUID_CMT=#
5398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5399 $as_echo "Using system uuid by default" >&6; }
5400 else
5401         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5402         DEPLIBUUID=$LIBUUID
5403         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5404         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5405         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5406         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5408 $as_echo "Enabling private uuid library by default" >&6; }
5409 fi
5410
5411 fi
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5428         if test -n "$ac_tool_prefix"; then
5429   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   case $PKG_CONFIG in
5437   [\\/]* | ?:[\\/]*)
5438   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5439   ;;
5440   *)
5441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455
5456   ;;
5457 esac
5458 fi
5459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5460 if test -n "$PKG_CONFIG"; then
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5462 $as_echo "$PKG_CONFIG" >&6; }
5463 else
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468
5469 fi
5470 if test -z "$ac_cv_path_PKG_CONFIG"; then
5471   ac_pt_PKG_CONFIG=$PKG_CONFIG
5472   # Extract the first word of "pkg-config", so it can be a program name with args.
5473 set dummy pkg-config; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   case $ac_pt_PKG_CONFIG in
5480   [\\/]* | ?:[\\/]*)
5481   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5482   ;;
5483   *)
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496   done
5497 IFS=$as_save_IFS
5498
5499   ;;
5500 esac
5501 fi
5502 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5503 if test -n "$ac_pt_PKG_CONFIG"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5505 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511   if test "x$ac_pt_PKG_CONFIG" = x; then
5512     PKG_CONFIG=""
5513   else
5514     case $cross_compiling:$ac_tool_warned in
5515 yes:)
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518 ac_tool_warned=yes ;;
5519 esac
5520     PKG_CONFIG=$ac_pt_PKG_CONFIG
5521   fi
5522 else
5523   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5524 fi
5525
5526 fi
5527 if test -n "$PKG_CONFIG"; then
5528         _pkg_min_version=0.9.0
5529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5530 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5531         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5532                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5534         else
5535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537                 PKG_CONFIG=""
5538         fi
5539 fi
5540 LIBBLKID=
5541 DEPLIBBLKID=
5542 STATIC_LIBBLKID=
5543 DEPSTATIC_LIBBLKID=
5544 PROFILED_LIBBLKID=
5545 DEPPROFILED_LIBBLKID=
5546 BLKID_CMT=
5547
5548 # Check whether --enable-libblkid was given.
5549 if test "${enable_libblkid+set}" = set; then :
5550   enableval=$enable_libblkid; if test "$enableval" = "no"
5551 then
5552         if test -z "$PKG_CONFIG"; then
5553                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5554         fi
5555
5556         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5557 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5558 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lblkid -luuid $LIBS"
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h.  */
5565
5566 /* Override any GCC internal prototype to avoid an error.
5567    Use char because int might match the return type of a GCC
5568    builtin and then its argument prototype would still apply.  */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 char blkid_get_cache ();
5573 int
5574 main ()
5575 {
5576 return blkid_get_cache ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_link "$LINENO"; then :
5582   ac_cv_lib_blkid_blkid_get_cache=yes
5583 else
5584   ac_cv_lib_blkid_blkid_get_cache=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext \
5587     conftest$ac_exeext conftest.$ac_ext
5588 LIBS=$ac_check_lib_save_LIBS
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5591 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5592 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5593   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5594                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5595 else
5596   as_fn_error $? "external blkid library not found" "$LINENO" 5
5597 fi
5598
5599         BLKID_CMT=#
5600         PROFILED_LIBBLKID=$LIBBLKID
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5602 $as_echo "Disabling private blkid library" >&6; }
5603 else
5604         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5605         DEPLIBBLKID=$LIBBLKID
5606         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5607         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5608         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5609         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5610         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5611
5612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5613 $as_echo "Enabling private blkid library" >&6; }
5614 fi
5615
5616 else
5617   if test -n "$PKG_CONFIG"; then
5618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5619 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5620 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   ac_check_lib_save_LIBS=$LIBS
5624 LIBS="-lblkid  $LIBS"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627
5628 /* Override any GCC internal prototype to avoid an error.
5629    Use char because int might match the return type of a GCC
5630    builtin and then its argument prototype would still apply.  */
5631 #ifdef __cplusplus
5632 extern "C"
5633 #endif
5634 char blkid_get_cache ();
5635 int
5636 main ()
5637 {
5638 return blkid_get_cache ();
5639   ;
5640   return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_link "$LINENO"; then :
5644   ac_cv_lib_blkid_blkid_get_cache=yes
5645 else
5646   ac_cv_lib_blkid_blkid_get_cache=no
5647 fi
5648 rm -f core conftest.err conftest.$ac_objext \
5649     conftest$ac_exeext conftest.$ac_ext
5650 LIBS=$ac_check_lib_save_LIBS
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5653 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5654 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5655   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5656                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5657 fi
5658
5659 fi
5660 if test -n "$LIBBLKID"; then
5661         BLKID_CMT=#
5662         PROFILED_LIBBLKID=$LIBBLKID
5663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5664 $as_echo "Using system blkid library by default" >&6; }
5665 else
5666         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5667         DEPLIBBLKID=$LIBBLKID
5668         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5669         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5670         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5671         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5672         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5673
5674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5675 $as_echo "Enabling private blkid library by default" >&6; }
5676 fi
5677
5678 fi
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 # Check whether --enable-backtrace was given.
5689 if test "${enable_backtrace+set}" = set; then :
5690   enableval=$enable_backtrace; if test "$enableval" = "no"
5691 then
5692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5693 $as_echo "Disabling use of backtrace" >&6; }
5694         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5695
5696 else
5697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5698 $as_echo "Enabling use of backtrace" >&6; }
5699 fi
5700
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5703 $as_echo "Enabling use of backtrace by default" >&6; }
5704
5705 fi
5706
5707 # Check whether --enable-debugfs was given.
5708 if test "${enable_debugfs+set}" = set; then :
5709   enableval=$enable_debugfs; if test "$enableval" = "no"
5710 then
5711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5712 $as_echo "Disabling debugfs support" >&6; }
5713         DEBUGFS_CMT="#"
5714 else
5715         DEBUGFS_CMT=
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5717 $as_echo "Enabling debugfs support" >&6; }
5718 fi
5719
5720 else
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5722 $as_echo "Enabling debugfs support by default" >&6; }
5723 DEBUGFS_CMT=
5724
5725 fi
5726
5727
5728 # Check whether --enable-imager was given.
5729 if test "${enable_imager+set}" = set; then :
5730   enableval=$enable_imager; if test "$enableval" = "no"
5731 then
5732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5733 $as_echo "Disabling e2image support" >&6; }
5734         IMAGER_CMT="#"
5735 else
5736         IMAGER_CMT=
5737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5738 $as_echo "Enabling e2image support" >&6; }
5739 fi
5740
5741 else
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5743 $as_echo "Enabling e2image support by default" >&6; }
5744 IMAGER_CMT=
5745
5746 fi
5747
5748
5749 # Check whether --enable-resizer was given.
5750 if test "${enable_resizer+set}" = set; then :
5751   enableval=$enable_resizer; if test "$enableval" = "no"
5752 then
5753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5754 $as_echo "Disabling e2resize support" >&6; }
5755         RESIZER_CMT="#"
5756 else
5757         RESIZER_CMT=
5758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5759 $as_echo "Enabling e2resize support" >&6; }
5760 fi
5761
5762 else
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5764 $as_echo "Enabling e2resize support by default" >&6; }
5765 RESIZER_CMT=
5766
5767 fi
5768
5769
5770 # Check whether --enable-defrag was given.
5771 if test "${enable_defrag+set}" = set; then :
5772   enableval=$enable_defrag; if test "$enableval" = "no"
5773 then
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5775 $as_echo "Disabling e4defrag support" >&6; }
5776         DEFRAG_CMT="#"
5777 else
5778         DEFRAG_CMT=
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5780 $as_echo "Enabling e4defrag support" >&6; }
5781 fi
5782
5783 else
5784   if test -z "$WITH_DIET_LIBC"
5785 then
5786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5787 $as_echo "Enabling e4defrag support by default" >&6; }
5788         DEFRAG_CMT=
5789 else
5790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5791 $as_echo "Disabling e4defrag support by default" >&6; }
5792         DEFRAG_CMT="#"
5793 fi
5794
5795 fi
5796
5797
5798 # Check whether --enable-fsck was given.
5799 if test "${enable_fsck+set}" = set; then :
5800   enableval=$enable_fsck; if test "$enableval" = "no"
5801 then
5802         FSCK_PROG='' FSCK_MAN=''
5803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5804 $as_echo "Not building fsck wrapper" >&6; }
5805 else
5806         FSCK_PROG=fsck FSCK_MAN=fsck.8
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5808 $as_echo "Building fsck wrapper" >&6; }
5809 fi
5810
5811 else
5812   case "$host_os" in
5813   gnu*)
5814     FSCK_PROG='' FSCK_MAN=''
5815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5816 $as_echo "Not building fsck wrapper by default" >&6; }
5817     ;;
5818   *)
5819     FSCK_PROG=fsck FSCK_MAN=fsck.8
5820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5821 $as_echo "Building fsck wrapper by default" >&6; }
5822 esac
5823
5824 fi
5825
5826
5827
5828 # Check whether --enable-e2initrd-helper was given.
5829 if test "${enable_e2initrd_helper+set}" = set; then :
5830   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5831 then
5832         E2INITRD_PROG='' E2INITRD_MAN=''
5833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5834 $as_echo "Not building e2initrd helper" >&6; }
5835 else
5836         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5838 $as_echo "Building e2initrd helper" >&6; }
5839 fi
5840
5841 else
5842   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5844 $as_echo "Building e2initrd helper by default" >&6; }
5845
5846 fi
5847
5848
5849
5850 # Check whether --enable-tls was given.
5851 if test "${enable_tls+set}" = set; then :
5852   enableval=$enable_tls; if test "$enableval" = "no"
5853 then
5854         try_tls=""
5855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5856 $as_echo "Disabling thread local support" >&6; }
5857 else
5858         try_tls="yes"
5859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5860 $as_echo "Enabling thread local support" >&6; }
5861 fi
5862
5863 else
5864   if test -n "$WITH_DIET_LIBC"
5865 then
5866         try_tls=""
5867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5868 $as_echo "Diet libc does not support thread local support" >&6; }
5869 else
5870         try_tls="yes"
5871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5872 $as_echo "Try using thread local support by default" >&6; }
5873 fi
5874
5875 fi
5876
5877 if test "$try_tls" = "yes"
5878 then
5879
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5881 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5882   if ${ac_cv_tls+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885
5886     ax_tls_keywords="__thread __declspec(thread) none"
5887     for ax_tls_keyword in $ax_tls_keywords; do
5888        case $ax_tls_keyword in
5889           none) ac_cv_tls=none ; break ;;
5890           *)
5891              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893 #include <stdlib.h>
5894                  static void
5895                  foo(void) {
5896                  static  $ax_tls_keyword  int bar;
5897                  exit(1);
5898                  }
5899 int
5900 main ()
5901 {
5902
5903   ;
5904   return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_c_try_compile "$LINENO"; then :
5908   ac_cv_tls=$ax_tls_keyword ; break
5909 else
5910   ac_cv_tls=none
5911
5912 fi
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914           esac
5915     done
5916
5917 fi
5918
5919
5920   if test "$ac_cv_tls" != "none"; then
5921
5922 cat >>confdefs.h <<_ACEOF
5923 #define TLS $ac_cv_tls
5924 _ACEOF
5925
5926   fi
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5928 $as_echo "$ac_cv_tls" >&6; }
5929
5930 fi
5931
5932 # Check whether --enable-uuidd was given.
5933 if test "${enable_uuidd+set}" = set; then :
5934   enableval=$enable_uuidd; if test "$enableval" = "no"
5935 then
5936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5937 $as_echo "Not building uuidd" >&6; }
5938         UUIDD_CMT="#"
5939 else
5940         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5941
5942         UUIDD_CMT=""
5943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5944 $as_echo "Building uuidd" >&6; }
5945 fi
5946
5947 else
5948   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5949
5950 if test -z "$UUID_CMT"
5951 then
5952         UUIDD_CMT=""
5953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5954 $as_echo "Building uuidd by default" >&6; }
5955 else
5956         UUIDD_CMT="#"
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5958 $as_echo "Disabling uuidd by default" >&6; }
5959 fi
5960
5961 fi
5962
5963
5964
5965 # Check whether --enable-mmp was given.
5966 if test "${enable_mmp+set}" = set; then :
5967   enableval=$enable_mmp; if test "$enableval" = "no"
5968 then
5969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5970 $as_echo "Disabling mmp support" >&6; }
5971 else
5972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5973 $as_echo "Enabling mmp support" >&6; }
5974         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5975
5976 fi
5977
5978 else
5979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5980 $as_echo "Enabling mmp support by default" >&6; }
5981 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5982
5983
5984 fi
5985
5986
5987 # Check whether --enable-tdb was given.
5988 if test "${enable_tdb+set}" = set; then :
5989   enableval=$enable_tdb; if test "$enableval" = "no"
5990 then
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5992 $as_echo "Disabling tdb support" >&6; }
5993         TDB_CMT="#"
5994         TDB_MAN_COMMENT='.\"'
5995 else
5996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5997 $as_echo "Enabling tdb support" >&6; }
5998         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5999
6000         TDB_CMT=""
6001         TDB_MAN_COMMENT=""
6002 fi
6003
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6006 $as_echo "Enabling mmp support by default" >&6; }
6007 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6008
6009 TDB_CMT=""
6010 TDB_MAN_COMMENT=""
6011
6012 fi
6013
6014
6015
6016
6017 # Check whether --enable-bmap-stats was given.
6018 if test "${enable_bmap_stats+set}" = set; then :
6019   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6020 then
6021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6022 $as_echo "Disabling bitmap statistics support" >&6; }
6023 else
6024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6025 $as_echo "Enabling bitmap statistics support" >&6; }
6026         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6027
6028 fi
6029
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6032 $as_echo "Enabling bitmap statistics support by default" >&6; }
6033 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6034
6035
6036 fi
6037
6038
6039 # Check whether --enable-bmap-stats-ops was given.
6040 if test "${enable_bmap_stats_ops+set}" = set; then :
6041   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6042 then
6043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6044 $as_echo "Disabling additional bitmap statistics" >&6; }
6045 else
6046                 if test "x${enable_bmap_stats}" = "xno"; then :
6047   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6050 See \`config.log' for more details" "$LINENO" 5; }
6051 fi
6052
6053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6054 $as_echo "Enabling additional bitmap statistics" >&6; }
6055         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6056
6057 fi
6058
6059 else
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6061 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6062
6063 fi
6064
6065 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6066
6067 GETTEXT_PACKAGE=e2fsprogs
6068 PACKAGE=e2fsprogs
6069 VERSION="$E2FSPROGS_VERSION"
6070 VERSION=0.14.1
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define PACKAGE "$PACKAGE"
6074 _ACEOF
6075
6076
6077 cat >>confdefs.h <<_ACEOF
6078 #define VERSION "$VERSION"
6079 _ACEOF
6080
6081
6082
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6086 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6087 set x ${MAKE-make}
6088 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6089 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6090   $as_echo_n "(cached) " >&6
6091 else
6092   cat >conftest.make <<\_ACEOF
6093 SHELL = /bin/sh
6094 all:
6095         @echo '@@@%%%=$(MAKE)=@@@%%%'
6096 _ACEOF
6097 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6098 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6099   *@@@%%%=?*=@@@%%%*)
6100     eval ac_cv_prog_make_${ac_make}_set=yes;;
6101   *)
6102     eval ac_cv_prog_make_${ac_make}_set=no;;
6103 esac
6104 rm -f conftest.make
6105 fi
6106 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108 $as_echo "yes" >&6; }
6109   SET_MAKE=
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113   SET_MAKE="MAKE=${MAKE-make}"
6114 fi
6115
6116 # Find a good install program.  We prefer a C program (faster),
6117 # so one script is as good as another.  But avoid the broken or
6118 # incompatible versions:
6119 # SysV /etc/install, /usr/sbin/install
6120 # SunOS /usr/etc/install
6121 # IRIX /sbin/install
6122 # AIX /bin/install
6123 # AmigaOS /C/install, which installs bootblocks on floppy discs
6124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6127 # OS/2's system install, which has a completely different semantic
6128 # ./install, which can be erroneously created by make from ./install.sh.
6129 # Reject install programs that cannot install multiple files.
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6132 if test -z "$INSTALL"; then
6133 if ${ac_cv_path_install+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141     # Account for people who put trailing slashes in PATH elements.
6142 case $as_dir/ in #((
6143   ./ | .// | /[cC]/* | \
6144   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6145   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6146   /usr/ucb/* ) ;;
6147   *)
6148     # OSF1 and SCO ODT 3.0 have their own names for install.
6149     # Don't use installbsd from OSF since it installs stuff as root
6150     # by default.
6151     for ac_prog in ginstall scoinst install; do
6152       for ac_exec_ext in '' $ac_executable_extensions; do
6153         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6154           if test $ac_prog = install &&
6155             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6156             # AIX install.  It has an incompatible calling convention.
6157             :
6158           elif test $ac_prog = install &&
6159             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6160             # program-specific install script used by HP pwplus--don't use.
6161             :
6162           else
6163             rm -rf conftest.one conftest.two conftest.dir
6164             echo one > conftest.one
6165             echo two > conftest.two
6166             mkdir conftest.dir
6167             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6168               test -s conftest.one && test -s conftest.two &&
6169               test -s conftest.dir/conftest.one &&
6170               test -s conftest.dir/conftest.two
6171             then
6172               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6173               break 3
6174             fi
6175           fi
6176         fi
6177       done
6178     done
6179     ;;
6180 esac
6181
6182   done
6183 IFS=$as_save_IFS
6184
6185 rm -rf conftest.one conftest.two conftest.dir
6186
6187 fi
6188   if test "${ac_cv_path_install+set}" = set; then
6189     INSTALL=$ac_cv_path_install
6190   else
6191     # As a last resort, use the slow shell script.  Don't cache a
6192     # value for INSTALL within a source directory, because that will
6193     # break other packages using the cache if that directory is
6194     # removed, or if the value is a relative name.
6195     INSTALL=$ac_install_sh
6196   fi
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6199 $as_echo "$INSTALL" >&6; }
6200
6201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6202 # It thinks the first close brace ends the variable substitution.
6203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6204
6205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6206
6207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6210 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6211 if test -z "$MKDIR_P"; then
6212   if ${ac_cv_path_mkdir+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220     for ac_prog in mkdir gmkdir; do
6221          for ac_exec_ext in '' $ac_executable_extensions; do
6222            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6223            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6224              'mkdir (GNU coreutils) '* | \
6225              'mkdir (coreutils) '* | \
6226              'mkdir (fileutils) '4.1*)
6227                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6228                break 3;;
6229            esac
6230          done
6231        done
6232   done
6233 IFS=$as_save_IFS
6234
6235 fi
6236
6237   test -d ./--version && rmdir ./--version
6238   if test "${ac_cv_path_mkdir+set}" = set; then
6239     MKDIR_P="$ac_cv_path_mkdir -p"
6240   else
6241     # As a last resort, use the slow shell script.  Don't cache a
6242     # value for MKDIR_P within a source directory, because that will
6243     # break other packages using the cache if that directory is
6244     # removed, or if the value is a relative name.
6245     MKDIR_P="$ac_install_sh -d"
6246   fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6249 $as_echo "$MKDIR_P" >&6; }
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6253 if ${ac_cv_path_SED+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6257      for ac_i in 1 2 3 4 5 6 7; do
6258        ac_script="$ac_script$as_nl$ac_script"
6259      done
6260      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6261      { ac_script=; unset ac_script;}
6262      if test -z "$SED"; then
6263   ac_path_SED_found=false
6264   # Loop through the user's path and test for each of PROGNAME-LIST
6265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270     for ac_prog in sed gsed; do
6271     for ac_exec_ext in '' $ac_executable_extensions; do
6272       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6273       as_fn_executable_p "$ac_path_SED" || continue
6274 # Check for GNU ac_path_SED and select it if it is found.
6275   # Check for GNU $ac_path_SED
6276 case `"$ac_path_SED" --version 2>&1` in
6277 *GNU*)
6278   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6279 *)
6280   ac_count=0
6281   $as_echo_n 0123456789 >"conftest.in"
6282   while :
6283   do
6284     cat "conftest.in" "conftest.in" >"conftest.tmp"
6285     mv "conftest.tmp" "conftest.in"
6286     cp "conftest.in" "conftest.nl"
6287     $as_echo '' >> "conftest.nl"
6288     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6290     as_fn_arith $ac_count + 1 && ac_count=$as_val
6291     if test $ac_count -gt ${ac_path_SED_max-0}; then
6292       # Best one so far, save it but keep looking for a better one
6293       ac_cv_path_SED="$ac_path_SED"
6294       ac_path_SED_max=$ac_count
6295     fi
6296     # 10*(2^10) chars as input seems more than enough
6297     test $ac_count -gt 10 && break
6298   done
6299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6300 esac
6301
6302       $ac_path_SED_found && break 3
6303     done
6304   done
6305   done
6306 IFS=$as_save_IFS
6307   if test -z "$ac_cv_path_SED"; then
6308     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6309   fi
6310 else
6311   ac_cv_path_SED=$SED
6312 fi
6313
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6316 $as_echo "$ac_cv_path_SED" >&6; }
6317  SED="$ac_cv_path_SED"
6318   rm -f conftest.sed
6319
6320
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6322 $as_echo_n "checking whether NLS is requested... " >&6; }
6323     # Check whether --enable-nls was given.
6324 if test "${enable_nls+set}" = set; then :
6325   enableval=$enable_nls; USE_NLS=$enableval
6326 else
6327   USE_NLS=yes
6328 fi
6329
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6331 $as_echo "$USE_NLS" >&6; }
6332
6333
6334
6335
6336       GETTEXT_MACRO_VERSION=0.18
6337
6338
6339
6340
6341 # Prepare PATH_SEPARATOR.
6342 # The user is always right.
6343 if test "${PATH_SEPARATOR+set}" != set; then
6344   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6345   # contains only /bin. Note that ksh looks also at the FPATH variable,
6346   # so we have to set that as well for the test.
6347   PATH_SEPARATOR=:
6348   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6349     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6350            || PATH_SEPARATOR=';'
6351        }
6352 fi
6353
6354 # Find out how to test for executable files. Don't use a zero-byte file,
6355 # as systems may use methods other than mode bits to determine executability.
6356 cat >conf$$.file <<_ASEOF
6357 #! /bin/sh
6358 exit 0
6359 _ASEOF
6360 chmod +x conf$$.file
6361 if test -x conf$$.file >/dev/null 2>&1; then
6362   ac_executable_p="test -x"
6363 else
6364   ac_executable_p="test -f"
6365 fi
6366 rm -f conf$$.file
6367
6368 # Extract the first word of "msgfmt", so it can be a program name with args.
6369 set dummy msgfmt; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_path_MSGFMT+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   case "$MSGFMT" in
6376   [\\/]* | ?:[\\/]*)
6377     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6378     ;;
6379   *)
6380     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6381     for ac_dir in $PATH; do
6382       IFS="$ac_save_IFS"
6383       test -z "$ac_dir" && ac_dir=.
6384       for ac_exec_ext in '' $ac_executable_extensions; do
6385         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6386           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6387           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6388      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6389             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6390             break 2
6391           fi
6392         fi
6393       done
6394     done
6395     IFS="$ac_save_IFS"
6396   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6397     ;;
6398 esac
6399 fi
6400 MSGFMT="$ac_cv_path_MSGFMT"
6401 if test "$MSGFMT" != ":"; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6403 $as_echo "$MSGFMT" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6410 set dummy gmsgfmt; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_GMSGFMT+:} false; then :
6414   $as_echo_n "(cached) " >&6
6415 else
6416   case $GMSGFMT in
6417   [\\/]* | ?:[\\/]*)
6418   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6419   ;;
6420   *)
6421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435
6436   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6437   ;;
6438 esac
6439 fi
6440 GMSGFMT=$ac_cv_path_GMSGFMT
6441 if test -n "$GMSGFMT"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6443 $as_echo "$GMSGFMT" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450
6451     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6453     *) MSGFMT_015=$MSGFMT ;;
6454   esac
6455
6456   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6457     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6458     *) GMSGFMT_015=$GMSGFMT ;;
6459   esac
6460
6461
6462
6463 # Prepare PATH_SEPARATOR.
6464 # The user is always right.
6465 if test "${PATH_SEPARATOR+set}" != set; then
6466   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6467   # contains only /bin. Note that ksh looks also at the FPATH variable,
6468   # so we have to set that as well for the test.
6469   PATH_SEPARATOR=:
6470   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6472            || PATH_SEPARATOR=';'
6473        }
6474 fi
6475
6476 # Find out how to test for executable files. Don't use a zero-byte file,
6477 # as systems may use methods other than mode bits to determine executability.
6478 cat >conf$$.file <<_ASEOF
6479 #! /bin/sh
6480 exit 0
6481 _ASEOF
6482 chmod +x conf$$.file
6483 if test -x conf$$.file >/dev/null 2>&1; then
6484   ac_executable_p="test -x"
6485 else
6486   ac_executable_p="test -f"
6487 fi
6488 rm -f conf$$.file
6489
6490 # Extract the first word of "xgettext", so it can be a program name with args.
6491 set dummy xgettext; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_path_XGETTEXT+:} false; then :
6495   $as_echo_n "(cached) " >&6
6496 else
6497   case "$XGETTEXT" in
6498   [\\/]* | ?:[\\/]*)
6499     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6500     ;;
6501   *)
6502     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6503     for ac_dir in $PATH; do
6504       IFS="$ac_save_IFS"
6505       test -z "$ac_dir" && ac_dir=.
6506       for ac_exec_ext in '' $ac_executable_extensions; do
6507         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6508           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6509           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6510      (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
6511             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6512             break 2
6513           fi
6514         fi
6515       done
6516     done
6517     IFS="$ac_save_IFS"
6518   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6519     ;;
6520 esac
6521 fi
6522 XGETTEXT="$ac_cv_path_XGETTEXT"
6523 if test "$XGETTEXT" != ":"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6525 $as_echo "$XGETTEXT" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531     rm -f messages.po
6532
6533     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6534     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6535     *) XGETTEXT_015=$XGETTEXT ;;
6536   esac
6537
6538
6539
6540 # Prepare PATH_SEPARATOR.
6541 # The user is always right.
6542 if test "${PATH_SEPARATOR+set}" != set; then
6543   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6544   # contains only /bin. Note that ksh looks also at the FPATH variable,
6545   # so we have to set that as well for the test.
6546   PATH_SEPARATOR=:
6547   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6548     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6549            || PATH_SEPARATOR=';'
6550        }
6551 fi
6552
6553 # Find out how to test for executable files. Don't use a zero-byte file,
6554 # as systems may use methods other than mode bits to determine executability.
6555 cat >conf$$.file <<_ASEOF
6556 #! /bin/sh
6557 exit 0
6558 _ASEOF
6559 chmod +x conf$$.file
6560 if test -x conf$$.file >/dev/null 2>&1; then
6561   ac_executable_p="test -x"
6562 else
6563   ac_executable_p="test -f"
6564 fi
6565 rm -f conf$$.file
6566
6567 # Extract the first word of "msgmerge", so it can be a program name with args.
6568 set dummy msgmerge; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_path_MSGMERGE+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   case "$MSGMERGE" in
6575   [\\/]* | ?:[\\/]*)
6576     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6577     ;;
6578   *)
6579     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6580     for ac_dir in $PATH; do
6581       IFS="$ac_save_IFS"
6582       test -z "$ac_dir" && ac_dir=.
6583       for ac_exec_ext in '' $ac_executable_extensions; do
6584         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6585           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6586           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6587             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6588             break 2
6589           fi
6590         fi
6591       done
6592     done
6593     IFS="$ac_save_IFS"
6594   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6595     ;;
6596 esac
6597 fi
6598 MSGMERGE="$ac_cv_path_MSGMERGE"
6599 if test "$MSGMERGE" != ":"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6601 $as_echo "$MSGMERGE" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608         test -n "$localedir" || localedir='${datadir}/locale'
6609
6610
6611     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6612
6613
6614   ac_config_commands="$ac_config_commands po-directories"
6615
6616
6617
6618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6619 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6620 if ${ac_cv_gnu_library_2+:} false; then :
6621   $as_echo_n "(cached) " >&6
6622 else
6623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625
6626 #include <features.h>
6627 #ifdef __GNU_LIBRARY__
6628  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6629   Lucky GNU user
6630  #endif
6631 #endif
6632
6633 _ACEOF
6634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6636   ac_cv_gnu_library_2=yes
6637 else
6638   ac_cv_gnu_library_2=no
6639 fi
6640 rm -f conftest*
6641
6642
6643
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6646 $as_echo "$ac_cv_gnu_library_2" >&6; }
6647
6648     GLIBC2="$ac_cv_gnu_library_2"
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_RANLIB+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$RANLIB"; then
6660   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 RANLIB=$ac_cv_prog_RANLIB
6680 if test -n "$RANLIB"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6682 $as_echo "$RANLIB" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_RANLIB"; then
6691   ac_ct_RANLIB=$RANLIB
6692   # Extract the first word of "ranlib", so it can be a program name with args.
6693 set dummy ranlib; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$ac_ct_RANLIB"; then
6700   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707     for ac_exec_ext in '' $ac_executable_extensions; do
6708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_ac_ct_RANLIB="ranlib"
6710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714   done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6720 if test -n "$ac_ct_RANLIB"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6722 $as_echo "$ac_ct_RANLIB" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728   if test "x$ac_ct_RANLIB" = x; then
6729     RANLIB=":"
6730   else
6731     case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737     RANLIB=$ac_ct_RANLIB
6738   fi
6739 else
6740   RANLIB="$ac_cv_prog_RANLIB"
6741 fi
6742
6743
6744
6745   CFLAG_VISIBILITY=
6746   HAVE_VISIBILITY=0
6747   if test -n "$GCC"; then
6748                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6749 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6750     if ${gl_cv_cc_vis_werror+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753
6754       gl_save_CFLAGS="$CFLAGS"
6755       CFLAGS="$CFLAGS -Werror"
6756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h.  */
6758
6759 int
6760 main ()
6761 {
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768   gl_cv_cc_vis_werror=yes
6769 else
6770   gl_cv_cc_vis_werror=no
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773       CFLAGS="$gl_save_CFLAGS"
6774 fi
6775
6776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6777 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6779 $as_echo_n "checking for simple visibility declarations... " >&6; }
6780     if ${gl_cv_cc_visibility+:} false; then :
6781   $as_echo_n "(cached) " >&6
6782 else
6783
6784       gl_save_CFLAGS="$CFLAGS"
6785       CFLAGS="$CFLAGS -fvisibility=hidden"
6786                                     if test $gl_cv_cc_vis_werror = yes; then
6787         CFLAGS="$CFLAGS -Werror"
6788       fi
6789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h.  */
6791 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6792              extern __attribute__((__visibility__("default"))) int exportedvar;
6793              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6794              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6795              void dummyfunc (void) {}
6796
6797 int
6798 main ()
6799 {
6800
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806   gl_cv_cc_visibility=yes
6807 else
6808   gl_cv_cc_visibility=no
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811       CFLAGS="$gl_save_CFLAGS"
6812 fi
6813
6814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6815 $as_echo "$gl_cv_cc_visibility" >&6; }
6816     if test $gl_cv_cc_visibility = yes; then
6817       CFLAG_VISIBILITY="-fvisibility=hidden"
6818       HAVE_VISIBILITY=1
6819     fi
6820   fi
6821
6822
6823
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6826 _ACEOF
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6830 $as_echo_n "checking for inline... " >&6; }
6831 if ${ac_cv_c_inline+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   ac_cv_c_inline=no
6835 for ac_kw in inline __inline__ __inline; do
6836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838 #ifndef __cplusplus
6839 typedef int foo_t;
6840 static $ac_kw foo_t static_foo () {return 0; }
6841 $ac_kw foo_t foo () {return 0; }
6842 #endif
6843
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846   ac_cv_c_inline=$ac_kw
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849   test "$ac_cv_c_inline" != no && break
6850 done
6851
6852 fi
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6854 $as_echo "$ac_cv_c_inline" >&6; }
6855
6856 case $ac_cv_c_inline in
6857   inline | yes) ;;
6858   *)
6859     case $ac_cv_c_inline in
6860       no) ac_val=;;
6861       *) ac_val=$ac_cv_c_inline;;
6862     esac
6863     cat >>confdefs.h <<_ACEOF
6864 #ifndef __cplusplus
6865 #define inline $ac_val
6866 #endif
6867 _ACEOF
6868     ;;
6869 esac
6870
6871 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_size_t" = xyes; then :
6873
6874 else
6875
6876 cat >>confdefs.h <<_ACEOF
6877 #define size_t unsigned int
6878 _ACEOF
6879
6880 fi
6881
6882
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6884 $as_echo_n "checking for stdint.h... " >&6; }
6885 if ${gl_cv_header_stdint_h+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h.  */
6890 #include <sys/types.h>
6891             #include <stdint.h>
6892 int
6893 main ()
6894 {
6895 uintmax_t i = (uintmax_t) -1; return !i;
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901   gl_cv_header_stdint_h=yes
6902 else
6903   gl_cv_header_stdint_h=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6908 $as_echo "$gl_cv_header_stdint_h" >&6; }
6909   if test $gl_cv_header_stdint_h = yes; then
6910
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_STDINT_H_WITH_UINTMAX 1
6913 _ACEOF
6914
6915   fi
6916
6917 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6918 # for constant arguments.  Useless!
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6920 $as_echo_n "checking for working alloca.h... " >&6; }
6921 if ${ac_cv_working_alloca_h+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926 #include <alloca.h>
6927 int
6928 main ()
6929 {
6930 char *p = (char *) alloca (2 * sizeof (int));
6931                           if (p) return 0;
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 if ac_fn_c_try_link "$LINENO"; then :
6937   ac_cv_working_alloca_h=yes
6938 else
6939   ac_cv_working_alloca_h=no
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext \
6942     conftest$ac_exeext conftest.$ac_ext
6943 fi
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6945 $as_echo "$ac_cv_working_alloca_h" >&6; }
6946 if test $ac_cv_working_alloca_h = yes; then
6947
6948 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6949
6950 fi
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6953 $as_echo_n "checking for alloca... " >&6; }
6954 if ${ac_cv_func_alloca_works+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959 #ifdef __GNUC__
6960 # define alloca __builtin_alloca
6961 #else
6962 # ifdef _MSC_VER
6963 #  include <malloc.h>
6964 #  define alloca _alloca
6965 # else
6966 #  ifdef HAVE_ALLOCA_H
6967 #   include <alloca.h>
6968 #  else
6969 #   ifdef _AIX
6970  #pragma alloca
6971 #   else
6972 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6973 void *alloca (size_t);
6974 #    endif
6975 #   endif
6976 #  endif
6977 # endif
6978 #endif
6979
6980 int
6981 main ()
6982 {
6983 char *p = (char *) alloca (1);
6984                                     if (p) return 0;
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_c_try_link "$LINENO"; then :
6990   ac_cv_func_alloca_works=yes
6991 else
6992   ac_cv_func_alloca_works=no
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext \
6995     conftest$ac_exeext conftest.$ac_ext
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6998 $as_echo "$ac_cv_func_alloca_works" >&6; }
6999
7000 if test $ac_cv_func_alloca_works = yes; then
7001
7002 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7003
7004 else
7005   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7006 # that cause trouble.  Some versions do not even contain alloca or
7007 # contain a buggy version.  If you still want to use their alloca,
7008 # use ar to extract alloca.o from them instead of compiling alloca.c.
7009
7010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7011
7012 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7013
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7016 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7017 if ${ac_cv_os_cray+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h.  */
7022 #if defined CRAY && ! defined CRAY2
7023 webecray
7024 #else
7025 wenotbecray
7026 #endif
7027
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030   $EGREP "webecray" >/dev/null 2>&1; then :
7031   ac_cv_os_cray=yes
7032 else
7033   ac_cv_os_cray=no
7034 fi
7035 rm -f conftest*
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7039 $as_echo "$ac_cv_os_cray" >&6; }
7040 if test $ac_cv_os_cray = yes; then
7041   for ac_func in _getb67 GETB67 getb67; do
7042     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7045
7046 cat >>confdefs.h <<_ACEOF
7047 #define CRAY_STACKSEG_END $ac_func
7048 _ACEOF
7049
7050     break
7051 fi
7052
7053   done
7054 fi
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7057 $as_echo_n "checking stack direction for C alloca... " >&6; }
7058 if ${ac_cv_c_stack_direction+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   if test "$cross_compiling" = yes; then :
7062   ac_cv_c_stack_direction=0
7063 else
7064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h.  */
7066 $ac_includes_default
7067 int
7068 find_stack_direction (int *addr, int depth)
7069 {
7070   int dir, dummy = 0;
7071   if (! addr)
7072     addr = &dummy;
7073   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7074   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7075   return dir + dummy;
7076 }
7077
7078 int
7079 main (int argc, char **argv)
7080 {
7081   return find_stack_direction (0, argc + !argv + 20) < 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_run "$LINENO"; then :
7085   ac_cv_c_stack_direction=1
7086 else
7087   ac_cv_c_stack_direction=-1
7088 fi
7089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7090   conftest.$ac_objext conftest.beam conftest.$ac_ext
7091 fi
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7095 $as_echo "$ac_cv_c_stack_direction" >&6; }
7096 cat >>confdefs.h <<_ACEOF
7097 #define STACK_DIRECTION $ac_cv_c_stack_direction
7098 _ACEOF
7099
7100
7101 fi
7102
7103
7104
7105
7106   for ac_header in $ac_header_list
7107 do :
7108   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7110 "
7111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7112   cat >>confdefs.h <<_ACEOF
7113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7114 _ACEOF
7115
7116 fi
7117
7118 done
7119
7120
7121
7122
7123
7124
7125
7126
7127 for ac_func in getpagesize
7128 do :
7129   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7130 if test "x$ac_cv_func_getpagesize" = xyes; then :
7131   cat >>confdefs.h <<_ACEOF
7132 #define HAVE_GETPAGESIZE 1
7133 _ACEOF
7134
7135 fi
7136 done
7137
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7139 $as_echo_n "checking for working mmap... " >&6; }
7140 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7141   $as_echo_n "(cached) " >&6
7142 else
7143   if test "$cross_compiling" = yes; then :
7144   ac_cv_func_mmap_fixed_mapped=no
7145 else
7146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h.  */
7148 $ac_includes_default
7149 /* malloc might have been renamed as rpl_malloc. */
7150 #undef malloc
7151
7152 /* Thanks to Mike Haertel and Jim Avera for this test.
7153    Here is a matrix of mmap possibilities:
7154         mmap private not fixed
7155         mmap private fixed at somewhere currently unmapped
7156         mmap private fixed at somewhere already mapped
7157         mmap shared not fixed
7158         mmap shared fixed at somewhere currently unmapped
7159         mmap shared fixed at somewhere already mapped
7160    For private mappings, we should verify that changes cannot be read()
7161    back from the file, nor mmap's back from the file at a different
7162    address.  (There have been systems where private was not correctly
7163    implemented like the infamous i386 svr4.0, and systems where the
7164    VM page cache was not coherent with the file system buffer cache
7165    like early versions of FreeBSD and possibly contemporary NetBSD.)
7166    For shared mappings, we should conversely verify that changes get
7167    propagated back to all the places they're supposed to be.
7168
7169    Grep wants private fixed already mapped.
7170    The main things grep needs to know about mmap are:
7171    * does it exist and is it safe to write into the mmap'd area
7172    * how to use it (BSD variants)  */
7173
7174 #include <fcntl.h>
7175 #include <sys/mman.h>
7176
7177 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7178 char *malloc ();
7179 #endif
7180
7181 /* This mess was copied from the GNU getpagesize.h.  */
7182 #ifndef HAVE_GETPAGESIZE
7183 # ifdef _SC_PAGESIZE
7184 #  define getpagesize() sysconf(_SC_PAGESIZE)
7185 # else /* no _SC_PAGESIZE */
7186 #  ifdef HAVE_SYS_PARAM_H
7187 #   include <sys/param.h>
7188 #   ifdef EXEC_PAGESIZE
7189 #    define getpagesize() EXEC_PAGESIZE
7190 #   else /* no EXEC_PAGESIZE */
7191 #    ifdef NBPG
7192 #     define getpagesize() NBPG * CLSIZE
7193 #     ifndef CLSIZE
7194 #      define CLSIZE 1
7195 #     endif /* no CLSIZE */
7196 #    else /* no NBPG */
7197 #     ifdef NBPC
7198 #      define getpagesize() NBPC
7199 #     else /* no NBPC */
7200 #      ifdef PAGESIZE
7201 #       define getpagesize() PAGESIZE
7202 #      endif /* PAGESIZE */
7203 #     endif /* no NBPC */
7204 #    endif /* no NBPG */
7205 #   endif /* no EXEC_PAGESIZE */
7206 #  else /* no HAVE_SYS_PARAM_H */
7207 #   define getpagesize() 8192   /* punt totally */
7208 #  endif /* no HAVE_SYS_PARAM_H */
7209 # endif /* no _SC_PAGESIZE */
7210
7211 #endif /* no HAVE_GETPAGESIZE */
7212
7213 int
7214 main ()
7215 {
7216   char *data, *data2, *data3;
7217   const char *cdata2;
7218   int i, pagesize;
7219   int fd, fd2;
7220
7221   pagesize = getpagesize ();
7222
7223   /* First, make a file with some known garbage in it. */
7224   data = (char *) malloc (pagesize);
7225   if (!data)
7226     return 1;
7227   for (i = 0; i < pagesize; ++i)
7228     *(data + i) = rand ();
7229   umask (0);
7230   fd = creat ("conftest.mmap", 0600);
7231   if (fd < 0)
7232     return 2;
7233   if (write (fd, data, pagesize) != pagesize)
7234     return 3;
7235   close (fd);
7236
7237   /* Next, check that the tail of a page is zero-filled.  File must have
7238      non-zero length, otherwise we risk SIGBUS for entire page.  */
7239   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7240   if (fd2 < 0)
7241     return 4;
7242   cdata2 = "";
7243   if (write (fd2, cdata2, 1) != 1)
7244     return 5;
7245   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7246   if (data2 == MAP_FAILED)
7247     return 6;
7248   for (i = 0; i < pagesize; ++i)
7249     if (*(data2 + i))
7250       return 7;
7251   close (fd2);
7252   if (munmap (data2, pagesize))
7253     return 8;
7254
7255   /* Next, try to mmap the file at a fixed address which already has
7256      something else allocated at it.  If we can, also make sure that
7257      we see the same garbage.  */
7258   fd = open ("conftest.mmap", O_RDWR);
7259   if (fd < 0)
7260     return 9;
7261   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7262                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7263     return 10;
7264   for (i = 0; i < pagesize; ++i)
7265     if (*(data + i) != *(data2 + i))
7266       return 11;
7267
7268   /* Finally, make sure that changes to the mapped area do not
7269      percolate back to the file as seen by read().  (This is a bug on
7270      some variants of i386 svr4.0.)  */
7271   for (i = 0; i < pagesize; ++i)
7272     *(data2 + i) = *(data2 + i) + 1;
7273   data3 = (char *) malloc (pagesize);
7274   if (!data3)
7275     return 12;
7276   if (read (fd, data3, pagesize) != pagesize)
7277     return 13;
7278   for (i = 0; i < pagesize; ++i)
7279     if (*(data + i) != *(data3 + i))
7280       return 14;
7281   close (fd);
7282   free (data);
7283   free (data3);
7284   return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_run "$LINENO"; then :
7288   ac_cv_func_mmap_fixed_mapped=yes
7289 else
7290   ac_cv_func_mmap_fixed_mapped=no
7291 fi
7292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293   conftest.$ac_objext conftest.beam conftest.$ac_ext
7294 fi
7295
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7298 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7300
7301 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7302
7303 fi
7304 rm -f conftest.mmap conftest.txt
7305
7306
7307
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7309 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7310 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313
7314       gt_cv_int_divbyzero_sigfpe=
7315       case "$host_os" in
7316         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7317           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7318           # compiling. If we were to perform the real test, 1 Crash Report
7319           # dialog window would pop up.
7320           case "$host_cpu" in
7321             i[34567]86 | x86_64)
7322               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7323           esac
7324           ;;
7325       esac
7326       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7327         if test "$cross_compiling" = yes; then :
7328
7329             # Guess based on the CPU.
7330             case "$host_cpu" in
7331               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7332                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7333               *)
7334                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7335             esac
7336
7337 else
7338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h.  */
7340
7341 #include <stdlib.h>
7342 #include <signal.h>
7343
7344 static void
7345 sigfpe_handler (int sig)
7346 {
7347   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7348   exit (sig != SIGFPE);
7349 }
7350
7351 int x = 1;
7352 int y = 0;
7353 int z;
7354 int nan;
7355
7356 int main ()
7357 {
7358   signal (SIGFPE, sigfpe_handler);
7359 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7360 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7361   signal (SIGTRAP, sigfpe_handler);
7362 #endif
7363 /* Linux/SPARC yields signal SIGILL.  */
7364 #if defined (__sparc__) && defined (__linux__)
7365   signal (SIGILL, sigfpe_handler);
7366 #endif
7367
7368   z = x / y;
7369   nan = y / y;
7370   exit (2);
7371 }
7372
7373 _ACEOF
7374 if ac_fn_c_try_run "$LINENO"; then :
7375   gt_cv_int_divbyzero_sigfpe=yes
7376 else
7377   gt_cv_int_divbyzero_sigfpe=no
7378 fi
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380   conftest.$ac_objext conftest.beam conftest.$ac_ext
7381 fi
7382
7383       fi
7384
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7387 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7388   case "$gt_cv_int_divbyzero_sigfpe" in
7389     *yes) value=1;;
7390     *) value=0;;
7391   esac
7392
7393 cat >>confdefs.h <<_ACEOF
7394 #define INTDIV0_RAISES_SIGFPE $value
7395 _ACEOF
7396
7397
7398
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7400 $as_echo_n "checking for inttypes.h... " >&6; }
7401 if ${gl_cv_header_inttypes_h+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h.  */
7406
7407 #include <sys/types.h>
7408 #include <inttypes.h>
7409
7410 int
7411 main ()
7412 {
7413 uintmax_t i = (uintmax_t) -1; return !i;
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"; then :
7419   gl_cv_header_inttypes_h=yes
7420 else
7421   gl_cv_header_inttypes_h=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7426 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7427   if test $gl_cv_header_inttypes_h = yes; then
7428
7429 cat >>confdefs.h <<_ACEOF
7430 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7431 _ACEOF
7432
7433   fi
7434
7435
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7437 $as_echo_n "checking for unsigned long long int... " >&6; }
7438 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   ac_cv_type_unsigned_long_long_int=yes
7442      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7443        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h.  */
7445
7446   /* For now, do not test the preprocessor; as of 2007 there are too many
7447          implementations with broken preprocessors.  Perhaps this can
7448          be revisited in 2012.  In the meantime, code should not expect
7449          #if to work with literals wider than 32 bits.  */
7450       /* Test literals.  */
7451       long long int ll = 9223372036854775807ll;
7452       long long int nll = -9223372036854775807LL;
7453       unsigned long long int ull = 18446744073709551615ULL;
7454       /* Test constant expressions.   */
7455       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7456                      ? 1 : -1)];
7457       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7458                      ? 1 : -1)];
7459       int i = 63;
7460 int
7461 main ()
7462 {
7463 /* Test availability of runtime routines for shift and division.  */
7464       long long int llmax = 9223372036854775807ll;
7465       unsigned long long int ullmax = 18446744073709551615ull;
7466       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7467               | (llmax / ll) | (llmax % ll)
7468               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7469               | (ullmax / ull) | (ullmax % ull));
7470   ;
7471   return 0;
7472 }
7473
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476
7477 else
7478   ac_cv_type_unsigned_long_long_int=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext \
7481     conftest$ac_exeext conftest.$ac_ext
7482      fi
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7485 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7486   if test $ac_cv_type_unsigned_long_long_int = yes; then
7487
7488 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7489
7490   fi
7491
7492
7493
7494
7495   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7496
7497     test $ac_cv_type_unsigned_long_long_int = yes \
7498       && ac_type='unsigned long long' \
7499       || ac_type='unsigned long'
7500
7501 cat >>confdefs.h <<_ACEOF
7502 #define uintmax_t $ac_type
7503 _ACEOF
7504
7505   else
7506
7507 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7508
7509   fi
7510
7511
7512   for ac_header in inttypes.h
7513 do :
7514   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7515 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7516   cat >>confdefs.h <<_ACEOF
7517 #define HAVE_INTTYPES_H 1
7518 _ACEOF
7519
7520 fi
7521
7522 done
7523
7524   if test $ac_cv_header_inttypes_h = yes; then
7525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7526 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7527 if ${gt_cv_inttypes_pri_broken+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530
7531         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h.  */
7533
7534 #include <inttypes.h>
7535 #ifdef PRId32
7536 char *p = PRId32;
7537 #endif
7538
7539 int
7540 main ()
7541 {
7542
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548   gt_cv_inttypes_pri_broken=no
7549 else
7550   gt_cv_inttypes_pri_broken=yes
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7556 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7557   fi
7558   if test "$gt_cv_inttypes_pri_broken" = yes; then
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define PRI_MACROS_BROKEN 1
7562 _ACEOF
7563
7564     PRI_MACROS_BROKEN=1
7565   else
7566     PRI_MACROS_BROKEN=0
7567   fi
7568
7569
7570
7571
7572
7573
7574
7575   # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577   enableval=$enable_threads; gl_use_threads=$enableval
7578 else
7579   if test -n "$gl_use_threads_default"; then
7580        gl_use_threads="$gl_use_threads_default"
7581      else
7582        case "$host_os" in
7583                                                                osf*) gl_use_threads=no ;;
7584          cygwin*)
7585                case `uname -r` in
7586                  1.[0-5].*) gl_use_threads=no ;;
7587                  *)         gl_use_threads=yes ;;
7588                esac
7589                ;;
7590          *)    gl_use_threads=yes ;;
7591        esac
7592      fi
7593
7594 fi
7595
7596   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7597     # For using <pthread.h>:
7598     case "$host_os" in
7599       osf*)
7600         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7601         # groks <pthread.h>. cc also understands the flag -pthread, but
7602         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7603         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7604         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7605         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7606         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7607         ;;
7608     esac
7609     # Some systems optimize for single-threaded programs by default, and
7610     # need special flags to disable these optimizations. For example, the
7611     # definition of 'errno' in <errno.h>.
7612     case "$host_os" in
7613       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7614       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7615     esac
7616   fi
7617
7618
7619
7620
7621
7622       if test "X$prefix" = "XNONE"; then
7623     acl_final_prefix="$ac_default_prefix"
7624   else
7625     acl_final_prefix="$prefix"
7626   fi
7627   if test "X$exec_prefix" = "XNONE"; then
7628     acl_final_exec_prefix='${prefix}'
7629   else
7630     acl_final_exec_prefix="$exec_prefix"
7631   fi
7632   acl_save_prefix="$prefix"
7633   prefix="$acl_final_prefix"
7634   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7635   prefix="$acl_save_prefix"
7636
7637
7638
7639 # Check whether --with-gnu-ld was given.
7640 if test "${with_gnu_ld+set}" = set; then :
7641   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7642 else
7643   with_gnu_ld=no
7644 fi
7645
7646 # Prepare PATH_SEPARATOR.
7647 # The user is always right.
7648 if test "${PATH_SEPARATOR+set}" != set; then
7649   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7650   # contains only /bin. Note that ksh looks also at the FPATH variable,
7651   # so we have to set that as well for the test.
7652   PATH_SEPARATOR=:
7653   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7654     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7655            || PATH_SEPARATOR=';'
7656        }
7657 fi
7658
7659 ac_prog=ld
7660 if test "$GCC" = yes; then
7661   # Check if gcc -print-prog-name=ld gives a path.
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7663 $as_echo_n "checking for ld used by $CC... " >&6; }
7664   case $host in
7665   *-*-mingw*)
7666     # gcc leaves a trailing carriage return which upsets mingw
7667     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7668   *)
7669     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7670   esac
7671   case $ac_prog in
7672     # Accept absolute paths.
7673     [\\/]* | ?:[\\/]*)
7674       re_direlt='/[^/][^/]*/\.\./'
7675       # Canonicalize the pathname of ld
7676       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7677       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7678         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7679       done
7680       test -z "$LD" && LD="$ac_prog"
7681       ;;
7682   "")
7683     # If it fails, then pretend we aren't using GCC.
7684     ac_prog=ld
7685     ;;
7686   *)
7687     # If it is relative, then search for the first ld in PATH.
7688     with_gnu_ld=unknown
7689     ;;
7690   esac
7691 elif test "$with_gnu_ld" = yes; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7693 $as_echo_n "checking for GNU ld... " >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7696 $as_echo_n "checking for non-GNU ld... " >&6; }
7697 fi
7698 if ${acl_cv_path_LD+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -z "$LD"; then
7702   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703   for ac_dir in $PATH; do
7704     IFS="$acl_save_ifs"
7705     test -z "$ac_dir" && ac_dir=.
7706     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7707       acl_cv_path_LD="$ac_dir/$ac_prog"
7708       # Check to see if the program is GNU ld.  I'd rather use --version,
7709       # but apparently some variants of GNU ld only accept -v.
7710       # Break only if it was the GNU/non-GNU ld that we prefer.
7711       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7712       *GNU* | *'with BFD'*)
7713         test "$with_gnu_ld" != no && break
7714         ;;
7715       *)
7716         test "$with_gnu_ld" != yes && break
7717         ;;
7718       esac
7719     fi
7720   done
7721   IFS="$acl_save_ifs"
7722 else
7723   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7724 fi
7725 fi
7726
7727 LD="$acl_cv_path_LD"
7728 if test -n "$LD"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7730 $as_echo "$LD" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7738 if ${acl_cv_prog_gnu_ld+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7742 case `$LD -v 2>&1 </dev/null` in
7743 *GNU* | *'with BFD'*)
7744   acl_cv_prog_gnu_ld=yes
7745   ;;
7746 *)
7747   acl_cv_prog_gnu_ld=no
7748   ;;
7749 esac
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7752 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7753 with_gnu_ld=$acl_cv_prog_gnu_ld
7754
7755
7756
7757
7758                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7759 $as_echo_n "checking for shared library run path origin... " >&6; }
7760 if ${acl_cv_rpath+:} false; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763
7764     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7765     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7766     . ./conftest.sh
7767     rm -f ./conftest.sh
7768     acl_cv_rpath=done
7769
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7772 $as_echo "$acl_cv_rpath" >&6; }
7773   wl="$acl_cv_wl"
7774   acl_libext="$acl_cv_libext"
7775   acl_shlibext="$acl_cv_shlibext"
7776   acl_libname_spec="$acl_cv_libname_spec"
7777   acl_library_names_spec="$acl_cv_library_names_spec"
7778   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7779   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7780   acl_hardcode_direct="$acl_cv_hardcode_direct"
7781   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7782     # Check whether --enable-rpath was given.
7783 if test "${enable_rpath+set}" = set; then :
7784   enableval=$enable_rpath; :
7785 else
7786   enable_rpath=yes
7787 fi
7788
7789
7790
7791
7792   acl_libdirstem=lib
7793   acl_libdirstem2=
7794   case "$host_os" in
7795     solaris*)
7796                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7797 $as_echo_n "checking for 64-bit host... " >&6; }
7798 if ${gl_cv_solaris_64bit+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h.  */
7803
7804 #ifdef _LP64
7805 sixtyfour bits
7806 #endif
7807
7808 _ACEOF
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7811   gl_cv_solaris_64bit=yes
7812 else
7813   gl_cv_solaris_64bit=no
7814 fi
7815 rm -f conftest*
7816
7817
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7820 $as_echo "$gl_cv_solaris_64bit" >&6; }
7821       if test $gl_cv_solaris_64bit = yes; then
7822         acl_libdirstem=lib/64
7823         case "$host_cpu" in
7824           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7825           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7826         esac
7827       fi
7828       ;;
7829     *)
7830       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7831       if test -n "$searchpath"; then
7832         acl_save_IFS="${IFS=    }"; IFS=":"
7833         for searchdir in $searchpath; do
7834           if test -d "$searchdir"; then
7835             case "$searchdir" in
7836               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7837               */../ | */.. )
7838                 # Better ignore directories of this form. They are misleading.
7839                 ;;
7840               *) searchdir=`cd "$searchdir" && pwd`
7841                  case "$searchdir" in
7842                    */lib64 ) acl_libdirstem=lib64 ;;
7843                  esac ;;
7844             esac
7845           fi
7846         done
7847         IFS="$acl_save_IFS"
7848       fi
7849       ;;
7850   esac
7851   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7852
7853
7854
7855   gl_threads_api=none
7856   LIBTHREAD=
7857   LTLIBTHREAD=
7858   LIBMULTITHREAD=
7859   LTLIBMULTITHREAD=
7860   if test "$gl_use_threads" != no; then
7861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7862 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7863 if ${gl_cv_have_weak+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   gl_cv_have_weak=no
7867               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 extern void xyzzy ();
7870 #pragma weak xyzzy
7871 int
7872 main ()
7873 {
7874 xyzzy();
7875   ;
7876   return 0;
7877 }
7878 _ACEOF
7879 if ac_fn_c_try_link "$LINENO"; then :
7880   gl_cv_have_weak=maybe
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883     conftest$ac_exeext conftest.$ac_ext
7884        if test $gl_cv_have_weak = maybe; then
7885                            if test "$cross_compiling" = yes; then :
7886                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888 #ifdef __ELF__
7889                Extensible Linking Format
7890                #endif
7891
7892 _ACEOF
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7895   gl_cv_have_weak="guessing yes"
7896 else
7897   gl_cv_have_weak="guessing no"
7898 fi
7899 rm -f conftest*
7900
7901
7902 else
7903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h.  */
7905
7906 #include <stdio.h>
7907 #pragma weak fputs
7908 int main ()
7909 {
7910   return (fputs == NULL);
7911 }
7912 _ACEOF
7913 if ac_fn_c_try_run "$LINENO"; then :
7914   gl_cv_have_weak=yes
7915 else
7916   gl_cv_have_weak=no
7917 fi
7918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7919   conftest.$ac_objext conftest.beam conftest.$ac_ext
7920 fi
7921
7922        fi
7923
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7926 $as_echo "$gl_cv_have_weak" >&6; }
7927     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7928       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7929       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7930       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7931 if test "x$ac_cv_header_pthread_h" = xyes; then :
7932   gl_have_pthread_h=yes
7933 else
7934   gl_have_pthread_h=no
7935 fi
7936
7937
7938       if test "$gl_have_pthread_h" = yes; then
7939         # Other possible tests:
7940         #   -lpthreads (FSU threads, PCthreads)
7941         #   -lgthreads
7942         gl_have_pthread=
7943         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7944         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7945         # the second one only in libpthread, and lock.c needs it.
7946         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h.  */
7948 #include <pthread.h>
7949 int
7950 main ()
7951 {
7952 pthread_mutex_lock((pthread_mutex_t*)0);
7953                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7954   ;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959   gl_have_pthread=yes
7960 fi
7961 rm -f core conftest.err conftest.$ac_objext \
7962     conftest$ac_exeext conftest.$ac_ext
7963         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7964         # since it is defined as a macro on OSF/1.)
7965         if test -n "$gl_have_pthread"; then
7966           # The program links fine without libpthread. But it may actually
7967           # need to link with libpthread in order to create multiple threads.
7968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7969 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7970 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-lpthread  $LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977
7978 /* Override any GCC internal prototype to avoid an error.
7979    Use char because int might match the return type of a GCC
7980    builtin and then its argument prototype would still apply.  */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 char pthread_kill ();
7985 int
7986 main ()
7987 {
7988 return pthread_kill ();
7989   ;
7990   return 0;
7991 }
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994   ac_cv_lib_pthread_pthread_kill=yes
7995 else
7996   ac_cv_lib_pthread_pthread_kill=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext \
7999     conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8003 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8004 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8005   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8006              # On Solaris and HP-UX, most pthread functions exist also in libc.
8007              # Therefore pthread_in_use() needs to actually try to create a
8008              # thread: pthread_create from libc will fail, whereas
8009              # pthread_create will actually create a thread.
8010              case "$host_os" in
8011                solaris* | hpux*)
8012
8013 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8014
8015              esac
8016
8017 fi
8018
8019         else
8020           # Some library is needed. Try libpthread and libc_r.
8021           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8022 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8023 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   ac_check_lib_save_LIBS=$LIBS
8027 LIBS="-lpthread  $LIBS"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h.  */
8030
8031 /* Override any GCC internal prototype to avoid an error.
8032    Use char because int might match the return type of a GCC
8033    builtin and then its argument prototype would still apply.  */
8034 #ifdef __cplusplus
8035 extern "C"
8036 #endif
8037 char pthread_kill ();
8038 int
8039 main ()
8040 {
8041 return pthread_kill ();
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_link "$LINENO"; then :
8047   ac_cv_lib_pthread_pthread_kill=yes
8048 else
8049   ac_cv_lib_pthread_pthread_kill=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext \
8052     conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8056 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8057 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8058   gl_have_pthread=yes
8059              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8060              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8061 fi
8062
8063           if test -z "$gl_have_pthread"; then
8064             # For FreeBSD 4.
8065             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8066 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8067 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   ac_check_lib_save_LIBS=$LIBS
8071 LIBS="-lc_r  $LIBS"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074
8075 /* Override any GCC internal prototype to avoid an error.
8076    Use char because int might match the return type of a GCC
8077    builtin and then its argument prototype would still apply.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 char pthread_kill ();
8082 int
8083 main ()
8084 {
8085 return pthread_kill ();
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091   ac_cv_lib_c_r_pthread_kill=yes
8092 else
8093   ac_cv_lib_c_r_pthread_kill=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096     conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8100 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8101 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8102   gl_have_pthread=yes
8103                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8104                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8105 fi
8106
8107           fi
8108         fi
8109         if test -n "$gl_have_pthread"; then
8110           gl_threads_api=posix
8111
8112 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8113
8114           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8115             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8116
8117 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8118
8119               LIBTHREAD=
8120               LTLIBTHREAD=
8121             fi
8122           fi
8123         fi
8124       fi
8125     fi
8126     if test -z "$gl_have_pthread"; then
8127       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8128         gl_have_solaristhread=
8129         gl_save_LIBS="$LIBS"
8130         LIBS="$LIBS -lthread"
8131         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133
8134 #include <thread.h>
8135 #include <synch.h>
8136
8137 int
8138 main ()
8139 {
8140 thr_self();
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"; then :
8146   gl_have_solaristhread=yes
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext \
8149     conftest$ac_exeext conftest.$ac_ext
8150         LIBS="$gl_save_LIBS"
8151         if test -n "$gl_have_solaristhread"; then
8152           gl_threads_api=solaris
8153           LIBTHREAD=-lthread
8154           LTLIBTHREAD=-lthread
8155           LIBMULTITHREAD="$LIBTHREAD"
8156           LTLIBMULTITHREAD="$LTLIBTHREAD"
8157
8158 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8159
8160           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8161
8162 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8163
8164             LIBTHREAD=
8165             LTLIBTHREAD=
8166           fi
8167         fi
8168       fi
8169     fi
8170     if test "$gl_use_threads" = pth; then
8171       gl_save_CPPFLAGS="$CPPFLAGS"
8172
8173
8174
8175
8176
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8178 $as_echo_n "checking how to link with libpth... " >&6; }
8179 if ${ac_cv_libpth_libs+:} false; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182
8183
8184
8185
8186
8187
8188
8189
8190     use_additional=yes
8191
8192   acl_save_prefix="$prefix"
8193   prefix="$acl_final_prefix"
8194   acl_save_exec_prefix="$exec_prefix"
8195   exec_prefix="$acl_final_exec_prefix"
8196
8197     eval additional_includedir=\"$includedir\"
8198     eval additional_libdir=\"$libdir\"
8199
8200   exec_prefix="$acl_save_exec_prefix"
8201   prefix="$acl_save_prefix"
8202
8203
8204 # Check whether --with-libpth-prefix was given.
8205 if test "${with_libpth_prefix+set}" = set; then :
8206   withval=$with_libpth_prefix;
8207     if test "X$withval" = "Xno"; then
8208       use_additional=no
8209     else
8210       if test "X$withval" = "X"; then
8211
8212   acl_save_prefix="$prefix"
8213   prefix="$acl_final_prefix"
8214   acl_save_exec_prefix="$exec_prefix"
8215   exec_prefix="$acl_final_exec_prefix"
8216
8217           eval additional_includedir=\"$includedir\"
8218           eval additional_libdir=\"$libdir\"
8219
8220   exec_prefix="$acl_save_exec_prefix"
8221   prefix="$acl_save_prefix"
8222
8223       else
8224         additional_includedir="$withval/include"
8225         additional_libdir="$withval/$acl_libdirstem"
8226         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8227            && ! test -d "$withval/$acl_libdirstem"; then
8228           additional_libdir="$withval/$acl_libdirstem2"
8229         fi
8230       fi
8231     fi
8232
8233 fi
8234
8235       LIBPTH=
8236   LTLIBPTH=
8237   INCPTH=
8238   LIBPTH_PREFIX=
8239       HAVE_LIBPTH=
8240   rpathdirs=
8241   ltrpathdirs=
8242   names_already_handled=
8243   names_next_round='pth '
8244   while test -n "$names_next_round"; do
8245     names_this_round="$names_next_round"
8246     names_next_round=
8247     for name in $names_this_round; do
8248       already_handled=
8249       for n in $names_already_handled; do
8250         if test "$n" = "$name"; then
8251           already_handled=yes
8252           break
8253         fi
8254       done
8255       if test -z "$already_handled"; then
8256         names_already_handled="$names_already_handled $name"
8257                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8258         eval value=\"\$HAVE_LIB$uppername\"
8259         if test -n "$value"; then
8260           if test "$value" = yes; then
8261             eval value=\"\$LIB$uppername\"
8262             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8263             eval value=\"\$LTLIB$uppername\"
8264             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8265           else
8266                                     :
8267           fi
8268         else
8269                               found_dir=
8270           found_la=
8271           found_so=
8272           found_a=
8273           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8274           if test -n "$acl_shlibext"; then
8275             shrext=".$acl_shlibext"             # typically: shrext=.so
8276           else
8277             shrext=
8278           fi
8279           if test $use_additional = yes; then
8280             dir="$additional_libdir"
8281                                     if test -n "$acl_shlibext"; then
8282               if test -f "$dir/$libname$shrext"; then
8283                 found_dir="$dir"
8284                 found_so="$dir/$libname$shrext"
8285               else
8286                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8287                   ver=`(cd "$dir" && \
8288                         for f in "$libname$shrext".*; do echo "$f"; done \
8289                         | sed -e "s,^$libname$shrext\\\\.,," \
8290                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8291                         | sed 1q ) 2>/dev/null`
8292                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8293                     found_dir="$dir"
8294                     found_so="$dir/$libname$shrext.$ver"
8295                   fi
8296                 else
8297                   eval library_names=\"$acl_library_names_spec\"
8298                   for f in $library_names; do
8299                     if test -f "$dir/$f"; then
8300                       found_dir="$dir"
8301                       found_so="$dir/$f"
8302                       break
8303                     fi
8304                   done
8305                 fi
8306               fi
8307             fi
8308                         if test "X$found_dir" = "X"; then
8309               if test -f "$dir/$libname.$acl_libext"; then
8310                 found_dir="$dir"
8311                 found_a="$dir/$libname.$acl_libext"
8312               fi
8313             fi
8314             if test "X$found_dir" != "X"; then
8315               if test -f "$dir/$libname.la"; then
8316                 found_la="$dir/$libname.la"
8317               fi
8318             fi
8319           fi
8320           if test "X$found_dir" = "X"; then
8321             for x in $LDFLAGS $LTLIBPTH; do
8322
8323   acl_save_prefix="$prefix"
8324   prefix="$acl_final_prefix"
8325   acl_save_exec_prefix="$exec_prefix"
8326   exec_prefix="$acl_final_exec_prefix"
8327   eval x=\"$x\"
8328   exec_prefix="$acl_save_exec_prefix"
8329   prefix="$acl_save_prefix"
8330
8331               case "$x" in
8332                 -L*)
8333                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8334                                     if test -n "$acl_shlibext"; then
8335                     if test -f "$dir/$libname$shrext"; then
8336                       found_dir="$dir"
8337                       found_so="$dir/$libname$shrext"
8338                     else
8339                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8340                         ver=`(cd "$dir" && \
8341                               for f in "$libname$shrext".*; do echo "$f"; done \
8342                               | sed -e "s,^$libname$shrext\\\\.,," \
8343                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8344                               | sed 1q ) 2>/dev/null`
8345                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8346                           found_dir="$dir"
8347                           found_so="$dir/$libname$shrext.$ver"
8348                         fi
8349                       else
8350                         eval library_names=\"$acl_library_names_spec\"
8351                         for f in $library_names; do
8352                           if test -f "$dir/$f"; then
8353                             found_dir="$dir"
8354                             found_so="$dir/$f"
8355                             break
8356                           fi
8357                         done
8358                       fi
8359                     fi
8360                   fi
8361                                     if test "X$found_dir" = "X"; then
8362                     if test -f "$dir/$libname.$acl_libext"; then
8363                       found_dir="$dir"
8364                       found_a="$dir/$libname.$acl_libext"
8365                     fi
8366                   fi
8367                   if test "X$found_dir" != "X"; then
8368                     if test -f "$dir/$libname.la"; then
8369                       found_la="$dir/$libname.la"
8370                     fi
8371                   fi
8372                   ;;
8373               esac
8374               if test "X$found_dir" != "X"; then
8375                 break
8376               fi
8377             done
8378           fi
8379           if test "X$found_dir" != "X"; then
8380                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8381             if test "X$found_so" != "X"; then
8382                                                         if test "$enable_rpath" = no \
8383                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8384                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8385                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8386               else
8387                                                                                 haveit=
8388                 for x in $ltrpathdirs; do
8389                   if test "X$x" = "X$found_dir"; then
8390                     haveit=yes
8391                     break
8392                   fi
8393                 done
8394                 if test -z "$haveit"; then
8395                   ltrpathdirs="$ltrpathdirs $found_dir"
8396                 fi
8397                                 if test "$acl_hardcode_direct" = yes; then
8398                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8399                 else
8400                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8401                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8402                                                             haveit=
8403                     for x in $rpathdirs; do
8404                       if test "X$x" = "X$found_dir"; then
8405                         haveit=yes
8406                         break
8407                       fi
8408                     done
8409                     if test -z "$haveit"; then
8410                       rpathdirs="$rpathdirs $found_dir"
8411                     fi
8412                   else
8413                                                                                 haveit=
8414                     for x in $LDFLAGS $LIBPTH; do
8415
8416   acl_save_prefix="$prefix"
8417   prefix="$acl_final_prefix"
8418   acl_save_exec_prefix="$exec_prefix"
8419   exec_prefix="$acl_final_exec_prefix"
8420   eval x=\"$x\"
8421   exec_prefix="$acl_save_exec_prefix"
8422   prefix="$acl_save_prefix"
8423
8424                       if test "X$x" = "X-L$found_dir"; then
8425                         haveit=yes
8426                         break
8427                       fi
8428                     done
8429                     if test -z "$haveit"; then
8430                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8431                     fi
8432                     if test "$acl_hardcode_minus_L" != no; then
8433                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8434                     else
8435                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8436                     fi
8437                   fi
8438                 fi
8439               fi
8440             else
8441               if test "X$found_a" != "X"; then
8442                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8443               else
8444                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8445               fi
8446             fi
8447                         additional_includedir=
8448             case "$found_dir" in
8449               */$acl_libdirstem | */$acl_libdirstem/)
8450                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8451                 if test "$name" = 'pth'; then
8452                   LIBPTH_PREFIX="$basedir"
8453                 fi
8454                 additional_includedir="$basedir/include"
8455                 ;;
8456               */$acl_libdirstem2 | */$acl_libdirstem2/)
8457                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8458                 if test "$name" = 'pth'; then
8459                   LIBPTH_PREFIX="$basedir"
8460                 fi
8461                 additional_includedir="$basedir/include"
8462                 ;;
8463             esac
8464             if test "X$additional_includedir" != "X"; then
8465                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8466                 haveit=
8467                 if test "X$additional_includedir" = "X/usr/local/include"; then
8468                   if test -n "$GCC"; then
8469                     case $host_os in
8470                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8471                     esac
8472                   fi
8473                 fi
8474                 if test -z "$haveit"; then
8475                   for x in $CPPFLAGS $INCPTH; do
8476
8477   acl_save_prefix="$prefix"
8478   prefix="$acl_final_prefix"
8479   acl_save_exec_prefix="$exec_prefix"
8480   exec_prefix="$acl_final_exec_prefix"
8481   eval x=\"$x\"
8482   exec_prefix="$acl_save_exec_prefix"
8483   prefix="$acl_save_prefix"
8484
8485                     if test "X$x" = "X-I$additional_includedir"; then
8486                       haveit=yes
8487                       break
8488                     fi
8489                   done
8490                   if test -z "$haveit"; then
8491                     if test -d "$additional_includedir"; then
8492                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8493                     fi
8494                   fi
8495                 fi
8496               fi
8497             fi
8498                         if test -n "$found_la"; then
8499                                                         save_libdir="$libdir"
8500               case "$found_la" in
8501                 */* | *\\*) . "$found_la" ;;
8502                 *) . "./$found_la" ;;
8503               esac
8504               libdir="$save_libdir"
8505                             for dep in $dependency_libs; do
8506                 case "$dep" in
8507                   -L*)
8508                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8509                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8510                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8511                       haveit=
8512                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8513                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8514                         if test -n "$GCC"; then
8515                           case $host_os in
8516                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8517                           esac
8518                         fi
8519                       fi
8520                       if test -z "$haveit"; then
8521                         haveit=
8522                         for x in $LDFLAGS $LIBPTH; do
8523
8524   acl_save_prefix="$prefix"
8525   prefix="$acl_final_prefix"
8526   acl_save_exec_prefix="$exec_prefix"
8527   exec_prefix="$acl_final_exec_prefix"
8528   eval x=\"$x\"
8529   exec_prefix="$acl_save_exec_prefix"
8530   prefix="$acl_save_prefix"
8531
8532                           if test "X$x" = "X-L$additional_libdir"; then
8533                             haveit=yes
8534                             break
8535                           fi
8536                         done
8537                         if test -z "$haveit"; then
8538                           if test -d "$additional_libdir"; then
8539                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8540                           fi
8541                         fi
8542                         haveit=
8543                         for x in $LDFLAGS $LTLIBPTH; do
8544
8545   acl_save_prefix="$prefix"
8546   prefix="$acl_final_prefix"
8547   acl_save_exec_prefix="$exec_prefix"
8548   exec_prefix="$acl_final_exec_prefix"
8549   eval x=\"$x\"
8550   exec_prefix="$acl_save_exec_prefix"
8551   prefix="$acl_save_prefix"
8552
8553                           if test "X$x" = "X-L$additional_libdir"; then
8554                             haveit=yes
8555                             break
8556                           fi
8557                         done
8558                         if test -z "$haveit"; then
8559                           if test -d "$additional_libdir"; then
8560                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8561                           fi
8562                         fi
8563                       fi
8564                     fi
8565                     ;;
8566                   -R*)
8567                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8568                     if test "$enable_rpath" != no; then
8569                                                                   haveit=
8570                       for x in $rpathdirs; do
8571                         if test "X$x" = "X$dir"; then
8572                           haveit=yes
8573                           break
8574                         fi
8575                       done
8576                       if test -z "$haveit"; then
8577                         rpathdirs="$rpathdirs $dir"
8578                       fi
8579                                                                   haveit=
8580                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
8588                       fi
8589                     fi
8590                     ;;
8591                   -l*)
8592                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8593                     ;;
8594                   *.la)
8595                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8596                     ;;
8597                   *)
8598                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8599                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8600                     ;;
8601                 esac
8602               done
8603             fi
8604           else
8605                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8606             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8607           fi
8608         fi
8609       fi
8610     done
8611   done
8612   if test "X$rpathdirs" != "X"; then
8613     if test -n "$acl_hardcode_libdir_separator"; then
8614                         alldirs=
8615       for found_dir in $rpathdirs; do
8616         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8617       done
8618             acl_save_libdir="$libdir"
8619       libdir="$alldirs"
8620       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8621       libdir="$acl_save_libdir"
8622       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8623     else
8624             for found_dir in $rpathdirs; do
8625         acl_save_libdir="$libdir"
8626         libdir="$found_dir"
8627         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8628         libdir="$acl_save_libdir"
8629         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8630       done
8631     fi
8632   fi
8633   if test "X$ltrpathdirs" != "X"; then
8634             for found_dir in $ltrpathdirs; do
8635       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8636     done
8637   fi
8638
8639
8640
8641
8642
8643
8644     ac_cv_libpth_libs="$LIBPTH"
8645     ac_cv_libpth_ltlibs="$LTLIBPTH"
8646     ac_cv_libpth_cppflags="$INCPTH"
8647     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8651 $as_echo "$ac_cv_libpth_libs" >&6; }
8652   LIBPTH="$ac_cv_libpth_libs"
8653   LTLIBPTH="$ac_cv_libpth_ltlibs"
8654   INCPTH="$ac_cv_libpth_cppflags"
8655   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8656
8657   for element in $INCPTH; do
8658     haveit=
8659     for x in $CPPFLAGS; do
8660
8661   acl_save_prefix="$prefix"
8662   prefix="$acl_final_prefix"
8663   acl_save_exec_prefix="$exec_prefix"
8664   exec_prefix="$acl_final_exec_prefix"
8665   eval x=\"$x\"
8666   exec_prefix="$acl_save_exec_prefix"
8667   prefix="$acl_save_prefix"
8668
8669       if test "X$x" = "X$element"; then
8670         haveit=yes
8671         break
8672       fi
8673     done
8674     if test -z "$haveit"; then
8675       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8676     fi
8677   done
8678
8679
8680
8681
8682       HAVE_LIBPTH=yes
8683
8684
8685
8686       gl_have_pth=
8687       gl_save_LIBS="$LIBS"
8688       LIBS="$LIBS $LIBPTH"
8689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h.  */
8691 #include <pth.h>
8692 int
8693 main ()
8694 {
8695 pth_self();
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701   gl_have_pth=yes
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext \
8704     conftest$ac_exeext conftest.$ac_ext
8705       LIBS="$gl_save_LIBS"
8706       if test -n "$gl_have_pth"; then
8707         gl_threads_api=pth
8708         LIBTHREAD="$LIBPTH"
8709         LTLIBTHREAD="$LTLIBPTH"
8710         LIBMULTITHREAD="$LIBTHREAD"
8711         LTLIBMULTITHREAD="$LTLIBTHREAD"
8712
8713 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8714
8715         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8716           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8717
8718 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8719
8720             LIBTHREAD=
8721             LTLIBTHREAD=
8722           fi
8723         fi
8724       else
8725         CPPFLAGS="$gl_save_CPPFLAGS"
8726       fi
8727     fi
8728     if test -z "$gl_have_pthread"; then
8729       case "$gl_use_threads" in
8730         yes | windows | win32) # The 'win32' is for backward compatibility.
8731           if { case "$host_os" in
8732                  mingw*) true;;
8733                  *) false;;
8734                esac
8735              }; then
8736             gl_threads_api=windows
8737
8738 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8739
8740           fi
8741           ;;
8742       esac
8743     fi
8744   fi
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8746 $as_echo_n "checking for multithread API to use... " >&6; }
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8748 $as_echo "$gl_threads_api" >&6; }
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760   if test "$gl_threads_api" = posix; then
8761     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8762     # pthread_rwlock_* functions.
8763     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8764 "
8765 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8766
8767 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8768
8769 fi
8770
8771     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h.  */
8774
8775       #include <pthread.h>
8776 int
8777 main ()
8778 {
8779
8780 #if __FreeBSD__ == 4
8781 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8782 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8783        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8784 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8785 #else
8786 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8787 return !x;
8788 #endif
8789
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795
8796 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8797
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800   fi
8801   :
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814     use_additional=yes
8815
8816   acl_save_prefix="$prefix"
8817   prefix="$acl_final_prefix"
8818   acl_save_exec_prefix="$exec_prefix"
8819   exec_prefix="$acl_final_exec_prefix"
8820
8821     eval additional_includedir=\"$includedir\"
8822     eval additional_libdir=\"$libdir\"
8823
8824   exec_prefix="$acl_save_exec_prefix"
8825   prefix="$acl_save_prefix"
8826
8827
8828 # Check whether --with-libiconv-prefix was given.
8829 if test "${with_libiconv_prefix+set}" = set; then :
8830   withval=$with_libiconv_prefix;
8831     if test "X$withval" = "Xno"; then
8832       use_additional=no
8833     else
8834       if test "X$withval" = "X"; then
8835
8836   acl_save_prefix="$prefix"
8837   prefix="$acl_final_prefix"
8838   acl_save_exec_prefix="$exec_prefix"
8839   exec_prefix="$acl_final_exec_prefix"
8840
8841           eval additional_includedir=\"$includedir\"
8842           eval additional_libdir=\"$libdir\"
8843
8844   exec_prefix="$acl_save_exec_prefix"
8845   prefix="$acl_save_prefix"
8846
8847       else
8848         additional_includedir="$withval/include"
8849         additional_libdir="$withval/$acl_libdirstem"
8850         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8851            && ! test -d "$withval/$acl_libdirstem"; then
8852           additional_libdir="$withval/$acl_libdirstem2"
8853         fi
8854       fi
8855     fi
8856
8857 fi
8858
8859       LIBICONV=
8860   LTLIBICONV=
8861   INCICONV=
8862   LIBICONV_PREFIX=
8863       HAVE_LIBICONV=
8864   rpathdirs=
8865   ltrpathdirs=
8866   names_already_handled=
8867   names_next_round='iconv '
8868   while test -n "$names_next_round"; do
8869     names_this_round="$names_next_round"
8870     names_next_round=
8871     for name in $names_this_round; do
8872       already_handled=
8873       for n in $names_already_handled; do
8874         if test "$n" = "$name"; then
8875           already_handled=yes
8876           break
8877         fi
8878       done
8879       if test -z "$already_handled"; then
8880         names_already_handled="$names_already_handled $name"
8881                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8882         eval value=\"\$HAVE_LIB$uppername\"
8883         if test -n "$value"; then
8884           if test "$value" = yes; then
8885             eval value=\"\$LIB$uppername\"
8886             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8887             eval value=\"\$LTLIB$uppername\"
8888             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8889           else
8890                                     :
8891           fi
8892         else
8893                               found_dir=
8894           found_la=
8895           found_so=
8896           found_a=
8897           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8898           if test -n "$acl_shlibext"; then
8899             shrext=".$acl_shlibext"             # typically: shrext=.so
8900           else
8901             shrext=
8902           fi
8903           if test $use_additional = yes; then
8904             dir="$additional_libdir"
8905                                     if test -n "$acl_shlibext"; then
8906               if test -f "$dir/$libname$shrext"; then
8907                 found_dir="$dir"
8908                 found_so="$dir/$libname$shrext"
8909               else
8910                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8911                   ver=`(cd "$dir" && \
8912                         for f in "$libname$shrext".*; do echo "$f"; done \
8913                         | sed -e "s,^$libname$shrext\\\\.,," \
8914                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8915                         | sed 1q ) 2>/dev/null`
8916                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8917                     found_dir="$dir"
8918                     found_so="$dir/$libname$shrext.$ver"
8919                   fi
8920                 else
8921                   eval library_names=\"$acl_library_names_spec\"
8922                   for f in $library_names; do
8923                     if test -f "$dir/$f"; then
8924                       found_dir="$dir"
8925                       found_so="$dir/$f"
8926                       break
8927                     fi
8928                   done
8929                 fi
8930               fi
8931             fi
8932                         if test "X$found_dir" = "X"; then
8933               if test -f "$dir/$libname.$acl_libext"; then
8934                 found_dir="$dir"
8935                 found_a="$dir/$libname.$acl_libext"
8936               fi
8937             fi
8938             if test "X$found_dir" != "X"; then
8939               if test -f "$dir/$libname.la"; then
8940                 found_la="$dir/$libname.la"
8941               fi
8942             fi
8943           fi
8944           if test "X$found_dir" = "X"; then
8945             for x in $LDFLAGS $LTLIBICONV; do
8946
8947   acl_save_prefix="$prefix"
8948   prefix="$acl_final_prefix"
8949   acl_save_exec_prefix="$exec_prefix"
8950   exec_prefix="$acl_final_exec_prefix"
8951   eval x=\"$x\"
8952   exec_prefix="$acl_save_exec_prefix"
8953   prefix="$acl_save_prefix"
8954
8955               case "$x" in
8956                 -L*)
8957                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8958                                     if test -n "$acl_shlibext"; then
8959                     if test -f "$dir/$libname$shrext"; then
8960                       found_dir="$dir"
8961                       found_so="$dir/$libname$shrext"
8962                     else
8963                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8964                         ver=`(cd "$dir" && \
8965                               for f in "$libname$shrext".*; do echo "$f"; done \
8966                               | sed -e "s,^$libname$shrext\\\\.,," \
8967                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8968                               | sed 1q ) 2>/dev/null`
8969                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8970                           found_dir="$dir"
8971                           found_so="$dir/$libname$shrext.$ver"
8972                         fi
8973                       else
8974                         eval library_names=\"$acl_library_names_spec\"
8975                         for f in $library_names; do
8976                           if test -f "$dir/$f"; then
8977                             found_dir="$dir"
8978                             found_so="$dir/$f"
8979                             break
8980                           fi
8981                         done
8982                       fi
8983                     fi
8984                   fi
8985                                     if test "X$found_dir" = "X"; then
8986                     if test -f "$dir/$libname.$acl_libext"; then
8987                       found_dir="$dir"
8988                       found_a="$dir/$libname.$acl_libext"
8989                     fi
8990                   fi
8991                   if test "X$found_dir" != "X"; then
8992                     if test -f "$dir/$libname.la"; then
8993                       found_la="$dir/$libname.la"
8994                     fi
8995                   fi
8996                   ;;
8997               esac
8998               if test "X$found_dir" != "X"; then
8999                 break
9000               fi
9001             done
9002           fi
9003           if test "X$found_dir" != "X"; then
9004                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9005             if test "X$found_so" != "X"; then
9006                                                         if test "$enable_rpath" = no \
9007                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9008                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9009                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9010               else
9011                                                                                 haveit=
9012                 for x in $ltrpathdirs; do
9013                   if test "X$x" = "X$found_dir"; then
9014                     haveit=yes
9015                     break
9016                   fi
9017                 done
9018                 if test -z "$haveit"; then
9019                   ltrpathdirs="$ltrpathdirs $found_dir"
9020                 fi
9021                                 if test "$acl_hardcode_direct" = yes; then
9022                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9023                 else
9024                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9025                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9026                                                             haveit=
9027                     for x in $rpathdirs; do
9028                       if test "X$x" = "X$found_dir"; then
9029                         haveit=yes
9030                         break
9031                       fi
9032                     done
9033                     if test -z "$haveit"; then
9034                       rpathdirs="$rpathdirs $found_dir"
9035                     fi
9036                   else
9037                                                                                 haveit=
9038                     for x in $LDFLAGS $LIBICONV; do
9039
9040   acl_save_prefix="$prefix"
9041   prefix="$acl_final_prefix"
9042   acl_save_exec_prefix="$exec_prefix"
9043   exec_prefix="$acl_final_exec_prefix"
9044   eval x=\"$x\"
9045   exec_prefix="$acl_save_exec_prefix"
9046   prefix="$acl_save_prefix"
9047
9048                       if test "X$x" = "X-L$found_dir"; then
9049                         haveit=yes
9050                         break
9051                       fi
9052                     done
9053                     if test -z "$haveit"; then
9054                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9055                     fi
9056                     if test "$acl_hardcode_minus_L" != no; then
9057                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9058                     else
9059                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9060                     fi
9061                   fi
9062                 fi
9063               fi
9064             else
9065               if test "X$found_a" != "X"; then
9066                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9067               else
9068                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9069               fi
9070             fi
9071                         additional_includedir=
9072             case "$found_dir" in
9073               */$acl_libdirstem | */$acl_libdirstem/)
9074                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9075                 if test "$name" = 'iconv'; then
9076                   LIBICONV_PREFIX="$basedir"
9077                 fi
9078                 additional_includedir="$basedir/include"
9079                 ;;
9080               */$acl_libdirstem2 | */$acl_libdirstem2/)
9081                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9082                 if test "$name" = 'iconv'; then
9083                   LIBICONV_PREFIX="$basedir"
9084                 fi
9085                 additional_includedir="$basedir/include"
9086                 ;;
9087             esac
9088             if test "X$additional_includedir" != "X"; then
9089                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9090                 haveit=
9091                 if test "X$additional_includedir" = "X/usr/local/include"; then
9092                   if test -n "$GCC"; then
9093                     case $host_os in
9094                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9095                     esac
9096                   fi
9097                 fi
9098                 if test -z "$haveit"; then
9099                   for x in $CPPFLAGS $INCICONV; do
9100
9101   acl_save_prefix="$prefix"
9102   prefix="$acl_final_prefix"
9103   acl_save_exec_prefix="$exec_prefix"
9104   exec_prefix="$acl_final_exec_prefix"
9105   eval x=\"$x\"
9106   exec_prefix="$acl_save_exec_prefix"
9107   prefix="$acl_save_prefix"
9108
9109                     if test "X$x" = "X-I$additional_includedir"; then
9110                       haveit=yes
9111                       break
9112                     fi
9113                   done
9114                   if test -z "$haveit"; then
9115                     if test -d "$additional_includedir"; then
9116                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9117                     fi
9118                   fi
9119                 fi
9120               fi
9121             fi
9122                         if test -n "$found_la"; then
9123                                                         save_libdir="$libdir"
9124               case "$found_la" in
9125                 */* | *\\*) . "$found_la" ;;
9126                 *) . "./$found_la" ;;
9127               esac
9128               libdir="$save_libdir"
9129                             for dep in $dependency_libs; do
9130                 case "$dep" in
9131                   -L*)
9132                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9133                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9134                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9135                       haveit=
9136                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9137                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9138                         if test -n "$GCC"; then
9139                           case $host_os in
9140                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9141                           esac
9142                         fi
9143                       fi
9144                       if test -z "$haveit"; then
9145                         haveit=
9146                         for x in $LDFLAGS $LIBICONV; do
9147
9148   acl_save_prefix="$prefix"
9149   prefix="$acl_final_prefix"
9150   acl_save_exec_prefix="$exec_prefix"
9151   exec_prefix="$acl_final_exec_prefix"
9152   eval x=\"$x\"
9153   exec_prefix="$acl_save_exec_prefix"
9154   prefix="$acl_save_prefix"
9155
9156                           if test "X$x" = "X-L$additional_libdir"; then
9157                             haveit=yes
9158                             break
9159                           fi
9160                         done
9161                         if test -z "$haveit"; then
9162                           if test -d "$additional_libdir"; then
9163                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9164                           fi
9165                         fi
9166                         haveit=
9167                         for x in $LDFLAGS $LTLIBICONV; do
9168
9169   acl_save_prefix="$prefix"
9170   prefix="$acl_final_prefix"
9171   acl_save_exec_prefix="$exec_prefix"
9172   exec_prefix="$acl_final_exec_prefix"
9173   eval x=\"$x\"
9174   exec_prefix="$acl_save_exec_prefix"
9175   prefix="$acl_save_prefix"
9176
9177                           if test "X$x" = "X-L$additional_libdir"; then
9178                             haveit=yes
9179                             break
9180                           fi
9181                         done
9182                         if test -z "$haveit"; then
9183                           if test -d "$additional_libdir"; then
9184                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9185                           fi
9186                         fi
9187                       fi
9188                     fi
9189                     ;;
9190                   -R*)
9191                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9192                     if test "$enable_rpath" != no; then
9193                                                                   haveit=
9194                       for x in $rpathdirs; do
9195                         if test "X$x" = "X$dir"; then
9196                           haveit=yes
9197                           break
9198                         fi
9199                       done
9200                       if test -z "$haveit"; then
9201                         rpathdirs="$rpathdirs $dir"
9202                       fi
9203                                                                   haveit=
9204                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
9212                       fi
9213                     fi
9214                     ;;
9215                   -l*)
9216                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9217                     ;;
9218                   *.la)
9219                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9220                     ;;
9221                   *)
9222                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9223                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9224                     ;;
9225                 esac
9226               done
9227             fi
9228           else
9229                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9230             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9231           fi
9232         fi
9233       fi
9234     done
9235   done
9236   if test "X$rpathdirs" != "X"; then
9237     if test -n "$acl_hardcode_libdir_separator"; then
9238                         alldirs=
9239       for found_dir in $rpathdirs; do
9240         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9241       done
9242             acl_save_libdir="$libdir"
9243       libdir="$alldirs"
9244       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9245       libdir="$acl_save_libdir"
9246       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9247     else
9248             for found_dir in $rpathdirs; do
9249         acl_save_libdir="$libdir"
9250         libdir="$found_dir"
9251         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9252         libdir="$acl_save_libdir"
9253         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9254       done
9255     fi
9256   fi
9257   if test "X$ltrpathdirs" != "X"; then
9258             for found_dir in $ltrpathdirs; do
9259       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9260     done
9261   fi
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274           am_save_CPPFLAGS="$CPPFLAGS"
9275
9276   for element in $INCICONV; do
9277     haveit=
9278     for x in $CPPFLAGS; do
9279
9280   acl_save_prefix="$prefix"
9281   prefix="$acl_final_prefix"
9282   acl_save_exec_prefix="$exec_prefix"
9283   exec_prefix="$acl_final_exec_prefix"
9284   eval x=\"$x\"
9285   exec_prefix="$acl_save_exec_prefix"
9286   prefix="$acl_save_prefix"
9287
9288       if test "X$x" = "X$element"; then
9289         haveit=yes
9290         break
9291       fi
9292     done
9293     if test -z "$haveit"; then
9294       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9295     fi
9296   done
9297
9298
9299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9300 $as_echo_n "checking for iconv... " >&6; }
9301 if ${am_cv_func_iconv+:} false; then :
9302   $as_echo_n "(cached) " >&6
9303 else
9304
9305     am_cv_func_iconv="no, consider installing GNU libiconv"
9306     am_cv_lib_iconv=no
9307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h.  */
9309
9310 #include <stdlib.h>
9311 #include <iconv.h>
9312
9313 int
9314 main ()
9315 {
9316 iconv_t cd = iconv_open("","");
9317            iconv(cd,NULL,NULL,NULL,NULL);
9318            iconv_close(cd);
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 if ac_fn_c_try_link "$LINENO"; then :
9324   am_cv_func_iconv=yes
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext \
9327     conftest$ac_exeext conftest.$ac_ext
9328     if test "$am_cv_func_iconv" != yes; then
9329       am_save_LIBS="$LIBS"
9330       LIBS="$LIBS $LIBICONV"
9331       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h.  */
9333
9334 #include <stdlib.h>
9335 #include <iconv.h>
9336
9337 int
9338 main ()
9339 {
9340 iconv_t cd = iconv_open("","");
9341              iconv(cd,NULL,NULL,NULL,NULL);
9342              iconv_close(cd);
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348   am_cv_lib_iconv=yes
9349         am_cv_func_iconv=yes
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352     conftest$ac_exeext conftest.$ac_ext
9353       LIBS="$am_save_LIBS"
9354     fi
9355
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9358 $as_echo "$am_cv_func_iconv" >&6; }
9359   if test "$am_cv_func_iconv" = yes; then
9360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9361 $as_echo_n "checking for working iconv... " >&6; }
9362 if ${am_cv_func_iconv_works+:} false; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365
9366                   am_save_LIBS="$LIBS"
9367       if test $am_cv_lib_iconv = yes; then
9368         LIBS="$LIBS $LIBICONV"
9369       fi
9370       if test "$cross_compiling" = yes; then :
9371
9372          case "$host_os" in
9373            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9374            *)            am_cv_func_iconv_works="guessing yes" ;;
9375          esac
9376
9377 else
9378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h.  */
9380
9381 #include <iconv.h>
9382 #include <string.h>
9383 int main ()
9384 {
9385   int result = 0;
9386   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9387      returns.  */
9388   {
9389     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9390     if (cd_utf8_to_88591 != (iconv_t)(-1))
9391       {
9392         static const char input[] = "\342\202\254"; /* EURO SIGN */
9393         char buf[10];
9394         const char *inptr = input;
9395         size_t inbytesleft = strlen (input);
9396         char *outptr = buf;
9397         size_t outbytesleft = sizeof (buf);
9398         size_t res = iconv (cd_utf8_to_88591,
9399                             (char **) &inptr, &inbytesleft,
9400                             &outptr, &outbytesleft);
9401         if (res == 0)
9402           result |= 1;
9403         iconv_close (cd_utf8_to_88591);
9404       }
9405   }
9406   /* Test against Solaris 10 bug: Failures are not distinguishable from
9407      successful returns.  */
9408   {
9409     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9410     if (cd_ascii_to_88591 != (iconv_t)(-1))
9411       {
9412         static const char input[] = "\263";
9413         char buf[10];
9414         const char *inptr = input;
9415         size_t inbytesleft = strlen (input);
9416         char *outptr = buf;
9417         size_t outbytesleft = sizeof (buf);
9418         size_t res = iconv (cd_ascii_to_88591,
9419                             (char **) &inptr, &inbytesleft,
9420                             &outptr, &outbytesleft);
9421         if (res == 0)
9422           result |= 2;
9423         iconv_close (cd_ascii_to_88591);
9424       }
9425   }
9426   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9427   {
9428     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9429     if (cd_88591_to_utf8 != (iconv_t)(-1))
9430       {
9431         static const char input[] = "\304";
9432         static char buf[2] = { (char)0xDE, (char)0xAD };
9433         const char *inptr = input;
9434         size_t inbytesleft = 1;
9435         char *outptr = buf;
9436         size_t outbytesleft = 1;
9437         size_t res = iconv (cd_88591_to_utf8,
9438                             (char **) &inptr, &inbytesleft,
9439                             &outptr, &outbytesleft);
9440         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9441           result |= 4;
9442         iconv_close (cd_88591_to_utf8);
9443       }
9444   }
9445 #if 0 /* This bug could be worked around by the caller.  */
9446   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9447   {
9448     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9449     if (cd_88591_to_utf8 != (iconv_t)(-1))
9450       {
9451         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9452         char buf[50];
9453         const char *inptr = input;
9454         size_t inbytesleft = strlen (input);
9455         char *outptr = buf;
9456         size_t outbytesleft = sizeof (buf);
9457         size_t res = iconv (cd_88591_to_utf8,
9458                             (char **) &inptr, &inbytesleft,
9459                             &outptr, &outbytesleft);
9460         if ((int)res > 0)
9461           result |= 8;
9462         iconv_close (cd_88591_to_utf8);
9463       }
9464   }
9465 #endif
9466   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9467      provided.  */
9468   if (/* Try standardized names.  */
9469       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9470       /* Try IRIX, OSF/1 names.  */
9471       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9472       /* Try AIX names.  */
9473       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9474       /* Try HP-UX names.  */
9475       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9476     result |= 16;
9477   return result;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_run "$LINENO"; then :
9481   am_cv_func_iconv_works=yes
9482 else
9483   am_cv_func_iconv_works=no
9484 fi
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486   conftest.$ac_objext conftest.beam conftest.$ac_ext
9487 fi
9488
9489       LIBS="$am_save_LIBS"
9490
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9493 $as_echo "$am_cv_func_iconv_works" >&6; }
9494     case "$am_cv_func_iconv_works" in
9495       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9496       *)   am_func_iconv=yes ;;
9497     esac
9498   else
9499     am_func_iconv=no am_cv_lib_iconv=no
9500   fi
9501   if test "$am_func_iconv" = yes; then
9502
9503 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9504
9505   fi
9506   if test "$am_cv_lib_iconv" = yes; then
9507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9508 $as_echo_n "checking how to link with libiconv... " >&6; }
9509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9510 $as_echo "$LIBICONV" >&6; }
9511   else
9512             CPPFLAGS="$am_save_CPPFLAGS"
9513     LIBICONV=
9514     LTLIBICONV=
9515   fi
9516
9517
9518
9519   if test "$am_cv_func_iconv" = yes; then
9520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9521 $as_echo_n "checking for iconv declaration... " >&6; }
9522     if ${am_cv_proto_iconv+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525
9526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h.  */
9528
9529 #include <stdlib.h>
9530 #include <iconv.h>
9531 extern
9532 #ifdef __cplusplus
9533 "C"
9534 #endif
9535 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9536 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9537 #else
9538 size_t iconv();
9539 #endif
9540
9541 int
9542 main ()
9543 {
9544
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550   am_cv_proto_iconv_arg1=""
9551 else
9552   am_cv_proto_iconv_arg1="const"
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555       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);"
9556 fi
9557
9558     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9559     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9560          $am_cv_proto_iconv" >&5
9561 $as_echo "
9562          $am_cv_proto_iconv" >&6; }
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define ICONV_CONST $am_cv_proto_iconv_arg1
9566 _ACEOF
9567
9568
9569   fi
9570
9571
9572
9573
9574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h.  */
9576 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9577 int
9578 main ()
9579 {
9580
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586
9587 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9588
9589 fi
9590 rm -f core conftest.err conftest.$ac_objext \
9591     conftest$ac_exeext conftest.$ac_ext
9592
9593   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9594 do :
9595   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9598   cat >>confdefs.h <<_ACEOF
9599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600 _ACEOF
9601
9602 fi
9603
9604 done
9605
9606   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9607     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9608     argz_stringify argz_next __fsetlocking
9609 do :
9610   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9613   cat >>confdefs.h <<_ACEOF
9614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9615 _ACEOF
9616
9617 fi
9618 done
9619
9620
9621           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9622 "
9623 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9624   ac_have_decl=1
9625 else
9626   ac_have_decl=0
9627 fi
9628
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9631 _ACEOF
9632 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9633 "
9634 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9635   ac_have_decl=1
9636 else
9637   ac_have_decl=0
9638 fi
9639
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9642 _ACEOF
9643
9644
9645
9646
9647                       for ac_prog in bison
9648 do
9649   # Extract the first word of "$ac_prog", so it can be a program name with args.
9650 set dummy $ac_prog; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if ${ac_cv_prog_INTLBISON+:} false; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656   if test -n "$INTLBISON"; then
9657   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9658 else
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662   IFS=$as_save_IFS
9663   test -z "$as_dir" && as_dir=.
9664     for ac_exec_ext in '' $ac_executable_extensions; do
9665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666     ac_cv_prog_INTLBISON="$ac_prog"
9667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668     break 2
9669   fi
9670 done
9671   done
9672 IFS=$as_save_IFS
9673
9674 fi
9675 fi
9676 INTLBISON=$ac_cv_prog_INTLBISON
9677 if test -n "$INTLBISON"; then
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9679 $as_echo "$INTLBISON" >&6; }
9680 else
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686   test -n "$INTLBISON" && break
9687 done
9688
9689   if test -z "$INTLBISON"; then
9690     ac_verc_fail=yes
9691   else
9692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9693 $as_echo_n "checking version of bison... " >&6; }
9694     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9695     case $ac_prog_version in
9696       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9697       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9698          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9699       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9700     esac
9701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9702 $as_echo "$ac_prog_version" >&6; }
9703   fi
9704   if test $ac_verc_fail = yes; then
9705     INTLBISON=:
9706   fi
9707
9708
9709
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9711 $as_echo_n "checking for long long int... " >&6; }
9712 if ${ac_cv_type_long_long_int+:} false; then :
9713   $as_echo_n "(cached) " >&6
9714 else
9715   ac_cv_type_long_long_int=yes
9716       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9717         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9718         if test $ac_cv_type_long_long_int = yes; then
9719                                         if test "$cross_compiling" = yes; then :
9720   :
9721 else
9722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h.  */
9724 #include <limits.h>
9725                  #ifndef LLONG_MAX
9726                  # define HALF \
9727                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9728                  # define LLONG_MAX (HALF - 1 + HALF)
9729                  #endif
9730 int
9731 main ()
9732 {
9733 long long int n = 1;
9734                  int i;
9735                  for (i = 0; ; i++)
9736                    {
9737                      long long int m = n << i;
9738                      if (m >> i != n)
9739                        return 1;
9740                      if (LLONG_MAX / 2 < m)
9741                        break;
9742                    }
9743                  return 0;
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_run "$LINENO"; then :
9749
9750 else
9751   ac_cv_type_long_long_int=no
9752 fi
9753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9754   conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 fi
9756
9757         fi
9758       fi
9759 fi
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9761 $as_echo "$ac_cv_type_long_long_int" >&6; }
9762   if test $ac_cv_type_long_long_int = yes; then
9763
9764 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9765
9766   fi
9767
9768
9769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9770 $as_echo_n "checking for wchar_t... " >&6; }
9771 if ${gt_cv_c_wchar_t+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h.  */
9776 #include <stddef.h>
9777             wchar_t foo = (wchar_t)'\0';
9778 int
9779 main ()
9780 {
9781
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_c_try_compile "$LINENO"; then :
9787   gt_cv_c_wchar_t=yes
9788 else
9789   gt_cv_c_wchar_t=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9794 $as_echo "$gt_cv_c_wchar_t" >&6; }
9795   if test $gt_cv_c_wchar_t = yes; then
9796
9797 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9798
9799   fi
9800
9801
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9803 $as_echo_n "checking for wint_t... " >&6; }
9804 if ${gt_cv_c_wint_t+:} false; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h.  */
9809
9810 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9811    <wchar.h>.
9812    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9813    before <wchar.h>.  */
9814 #include <stddef.h>
9815 #include <stdio.h>
9816 #include <time.h>
9817 #include <wchar.h>
9818             wint_t foo = (wchar_t)'\0';
9819 int
9820 main ()
9821 {
9822
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828   gt_cv_c_wint_t=yes
9829 else
9830   gt_cv_c_wint_t=no
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 fi
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9835 $as_echo "$gt_cv_c_wint_t" >&6; }
9836   if test $gt_cv_c_wint_t = yes; then
9837
9838 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9839
9840   fi
9841
9842
9843
9844
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9846 $as_echo_n "checking for intmax_t... " >&6; }
9847 if ${gt_cv_c_intmax_t+:} false; then :
9848   $as_echo_n "(cached) " >&6
9849 else
9850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h.  */
9852
9853 #include <stddef.h>
9854 #include <stdlib.h>
9855 #if HAVE_STDINT_H_WITH_UINTMAX
9856 #include <stdint.h>
9857 #endif
9858 #if HAVE_INTTYPES_H_WITH_UINTMAX
9859 #include <inttypes.h>
9860 #endif
9861
9862 int
9863 main ()
9864 {
9865 intmax_t x = -1;
9866             return !x;
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 if ac_fn_c_try_compile "$LINENO"; then :
9872   gt_cv_c_intmax_t=yes
9873 else
9874   gt_cv_c_intmax_t=no
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9879 $as_echo "$gt_cv_c_intmax_t" >&6; }
9880   if test $gt_cv_c_intmax_t = yes; then
9881
9882 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9883
9884   fi
9885
9886
9887
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9889 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9890 if ${gt_cv_func_printf_posix+:} false; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893
9894       if test "$cross_compiling" = yes; then :
9895
9896           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898
9899 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9900   notposix
9901 #endif
9902
9903 _ACEOF
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905   $EGREP "notposix" >/dev/null 2>&1; then :
9906   gt_cv_func_printf_posix="guessing no"
9907 else
9908   gt_cv_func_printf_posix="guessing yes"
9909 fi
9910 rm -f conftest*
9911
9912
9913 else
9914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h.  */
9916
9917 #include <stdio.h>
9918 #include <string.h>
9919 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9920    dollar expansion (possibly an autoconf bug).  */
9921 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9922 static char buf[100];
9923 int main ()
9924 {
9925   sprintf (buf, format, 33, 55);
9926   return (strcmp (buf, "55 33") != 0);
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_run "$LINENO"; then :
9930   gt_cv_func_printf_posix=yes
9931 else
9932   gt_cv_func_printf_posix=no
9933 fi
9934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9935   conftest.$ac_objext conftest.beam conftest.$ac_ext
9936 fi
9937
9938
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9941 $as_echo "$gt_cv_func_printf_posix" >&6; }
9942   case $gt_cv_func_printf_posix in
9943     *yes)
9944
9945 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9946
9947       ;;
9948   esac
9949
9950
9951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9952 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9953 if ${ac_cv_gnu_library_2_1+:} false; then :
9954   $as_echo_n "(cached) " >&6
9955 else
9956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h.  */
9958
9959 #include <features.h>
9960 #ifdef __GNU_LIBRARY__
9961  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9962   Lucky GNU user
9963  #endif
9964 #endif
9965 #ifdef __UCLIBC__
9966  Lucky user
9967 #endif
9968
9969 _ACEOF
9970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9971   $EGREP "Lucky" >/dev/null 2>&1; then :
9972   ac_cv_gnu_library_2_1=yes
9973 else
9974   ac_cv_gnu_library_2_1=no
9975 fi
9976 rm -f conftest*
9977
9978
9979
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9982 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9983
9984     GLIBC21="$ac_cv_gnu_library_2_1"
9985
9986
9987
9988   for ac_header in stdint.h
9989 do :
9990   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9991 if test "x$ac_cv_header_stdint_h" = xyes; then :
9992   cat >>confdefs.h <<_ACEOF
9993 #define HAVE_STDINT_H 1
9994 _ACEOF
9995
9996 fi
9997
9998 done
9999
10000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10001 $as_echo_n "checking for SIZE_MAX... " >&6; }
10002 if ${gl_cv_size_max+:} false; then :
10003   $as_echo_n "(cached) " >&6
10004 else
10005
10006     gl_cv_size_max=
10007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h.  */
10009
10010 #include <limits.h>
10011 #if HAVE_STDINT_H
10012 #include <stdint.h>
10013 #endif
10014 #ifdef SIZE_MAX
10015 Found it
10016 #endif
10017
10018 _ACEOF
10019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10020   $EGREP "Found it" >/dev/null 2>&1; then :
10021   gl_cv_size_max=yes
10022 fi
10023 rm -f conftest*
10024
10025     if test -z "$gl_cv_size_max"; then
10026                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10027 #include <limits.h>"; then :
10028
10029 else
10030   size_t_bits_minus_1=
10031 fi
10032
10033       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10034
10035 else
10036   fits_in_uint=
10037 fi
10038
10039       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10040         if test $fits_in_uint = 1; then
10041                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h.  */
10043 #include <stddef.h>
10044                  extern size_t foo;
10045                  extern unsigned long foo;
10046
10047 int
10048 main ()
10049 {
10050
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056   fits_in_uint=0
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059         fi
10060                                 if test $fits_in_uint = 1; then
10061           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10062         else
10063           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10064         fi
10065       else
10066                 gl_cv_size_max='((size_t)~(size_t)0)'
10067       fi
10068     fi
10069
10070 fi
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10072 $as_echo "$gl_cv_size_max" >&6; }
10073   if test "$gl_cv_size_max" != yes; then
10074
10075 cat >>confdefs.h <<_ACEOF
10076 #define SIZE_MAX $gl_cv_size_max
10077 _ACEOF
10078
10079   fi
10080
10081
10082
10083
10084   for ac_header in stdint.h
10085 do :
10086   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10087 if test "x$ac_cv_header_stdint_h" = xyes; then :
10088   cat >>confdefs.h <<_ACEOF
10089 #define HAVE_STDINT_H 1
10090 _ACEOF
10091
10092 fi
10093
10094 done
10095
10096
10097
10098
10099
10100   for ac_func in $ac_func_list
10101 do :
10102   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10105   cat >>confdefs.h <<_ACEOF
10106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10107 _ACEOF
10108
10109 fi
10110 done
10111
10112
10113
10114
10115
10116
10117
10118
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10120 $as_echo_n "checking for working fcntl.h... " >&6; }
10121 if ${gl_cv_header_working_fcntl_h+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   if test "$cross_compiling" = yes; then :
10125   gl_cv_header_working_fcntl_h=cross-compiling
10126 else
10127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h.  */
10129 #include <sys/types.h>
10130            #include <sys/stat.h>
10131            #if HAVE_UNISTD_H
10132            # include <unistd.h>
10133            #else /* on Windows with MSVC */
10134            # include <io.h>
10135            # include <stdlib.h>
10136            # defined sleep(n) _sleep ((n) * 1000)
10137            #endif
10138            #include <fcntl.h>
10139            #ifndef O_NOATIME
10140             #define O_NOATIME 0
10141            #endif
10142            #ifndef O_NOFOLLOW
10143             #define O_NOFOLLOW 0
10144            #endif
10145            static int const constants[] =
10146             {
10147               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10148               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10149             };
10150
10151 int
10152 main ()
10153 {
10154
10155             int result = !constants;
10156             #if HAVE_SYMLINK
10157             {
10158               static char const sym[] = "conftest.sym";
10159               if (symlink ("/dev/null", sym) != 0)
10160                 result |= 2;
10161               else
10162                 {
10163                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10164                   if (fd >= 0)
10165                     {
10166                       close (fd);
10167                       result |= 4;
10168                     }
10169                 }
10170               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10171                 result |= 2;
10172               else
10173                 {
10174                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10175                   if (fd >= 0)
10176                     {
10177                       close (fd);
10178                       result |= 4;
10179                     }
10180                 }
10181               unlink (sym);
10182             }
10183             #endif
10184             {
10185               static char const file[] = "confdefs.h";
10186               int fd = open (file, O_RDONLY | O_NOATIME);
10187               if (fd < 0)
10188                 result |= 8;
10189               else
10190                 {
10191                   struct stat st0;
10192                   if (fstat (fd, &st0) != 0)
10193                     result |= 16;
10194                   else
10195                     {
10196                       char c;
10197                       sleep (1);
10198                       if (read (fd, &c, 1) != 1)
10199                         result |= 24;
10200                       else
10201                         {
10202                           if (close (fd) != 0)
10203                             result |= 32;
10204                           else
10205                             {
10206                               struct stat st1;
10207                               if (stat (file, &st1) != 0)
10208                                 result |= 40;
10209                               else
10210                                 if (st0.st_atime != st1.st_atime)
10211                                   result |= 64;
10212                             }
10213                         }
10214                     }
10215                 }
10216             }
10217             return result;
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_run "$LINENO"; then :
10223   gl_cv_header_working_fcntl_h=yes
10224 else
10225   case $? in #(
10226         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10227         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10228         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10229          *) gl_cv_header_working_fcntl_h='no';;
10230         esac
10231 fi
10232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10233   conftest.$ac_objext conftest.beam conftest.$ac_ext
10234 fi
10235
10236 fi
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10238 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10239
10240   case $gl_cv_header_working_fcntl_h in #(
10241   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10242   *) ac_val=1;;
10243   esac
10244
10245 cat >>confdefs.h <<_ACEOF
10246 #define HAVE_WORKING_O_NOATIME $ac_val
10247 _ACEOF
10248
10249
10250   case $gl_cv_header_working_fcntl_h in #(
10251   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10252   *) ac_val=1;;
10253   esac
10254
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10257 _ACEOF
10258
10259
10260
10261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10262 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10263 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   gt_save_LIBS="$LIBS"
10267      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10268      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h.  */
10270 #include <CoreFoundation/CFPreferences.h>
10271 int
10272 main ()
10273 {
10274 CFPreferencesCopyAppValue(NULL, NULL)
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280   gt_cv_func_CFPreferencesCopyAppValue=yes
10281 else
10282   gt_cv_func_CFPreferencesCopyAppValue=no
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext \
10285     conftest$ac_exeext conftest.$ac_ext
10286      LIBS="$gt_save_LIBS"
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10289 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10290   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10291
10292 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10293
10294   fi
10295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10296 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10297 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10298   $as_echo_n "(cached) " >&6
10299 else
10300   gt_save_LIBS="$LIBS"
10301      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10302      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h.  */
10304 #include <CoreFoundation/CFLocale.h>
10305 int
10306 main ()
10307 {
10308 CFLocaleCopyCurrent();
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314   gt_cv_func_CFLocaleCopyCurrent=yes
10315 else
10316   gt_cv_func_CFLocaleCopyCurrent=no
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext \
10319     conftest$ac_exeext conftest.$ac_ext
10320      LIBS="$gt_save_LIBS"
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10323 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10324   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10325
10326 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10327
10328   fi
10329   INTL_MACOSX_LIBS=
10330   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10331     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10332   fi
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343     case "$enable_silent_rules" in
10344     yes) INTL_DEFAULT_VERBOSITY=0;;
10345     no)  INTL_DEFAULT_VERBOSITY=1;;
10346     *)   INTL_DEFAULT_VERBOSITY=1;;
10347   esac
10348
10349
10350   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10351 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10352
10353 else
10354
10355 $as_echo "#define ptrdiff_t long" >>confdefs.h
10356
10357
10358 fi
10359
10360   for ac_header in features.h stddef.h stdlib.h string.h
10361 do :
10362   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10365   cat >>confdefs.h <<_ACEOF
10366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10367 _ACEOF
10368
10369 fi
10370
10371 done
10372
10373   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10374     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10375 do :
10376   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379   cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10381 _ACEOF
10382
10383 fi
10384 done
10385
10386
10387       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10388 "
10389 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10390   ac_have_decl=1
10391 else
10392   ac_have_decl=0
10393 fi
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define HAVE_DECL__SNPRINTF $ac_have_decl
10397 _ACEOF
10398 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10399 "
10400 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10401   ac_have_decl=1
10402 else
10403   ac_have_decl=0
10404 fi
10405
10406 cat >>confdefs.h <<_ACEOF
10407 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10408 _ACEOF
10409
10410
10411           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10412 "
10413 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10414   ac_have_decl=1
10415 else
10416   ac_have_decl=0
10417 fi
10418
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10421 _ACEOF
10422
10423
10424   case $gt_cv_func_printf_posix in
10425     *yes) HAVE_POSIX_PRINTF=1 ;;
10426     *) HAVE_POSIX_PRINTF=0 ;;
10427   esac
10428
10429   if test "$ac_cv_func_asprintf" = yes; then
10430     HAVE_ASPRINTF=1
10431   else
10432     HAVE_ASPRINTF=0
10433   fi
10434
10435   if test "$ac_cv_func_snprintf" = yes; then
10436     HAVE_SNPRINTF=1
10437   else
10438     HAVE_SNPRINTF=0
10439   fi
10440
10441   if test "$ac_cv_func_newlocale" = yes; then
10442     HAVE_NEWLOCALE=1
10443   else
10444     HAVE_NEWLOCALE=0
10445   fi
10446
10447   if test "$ac_cv_func_wprintf" = yes; then
10448     HAVE_WPRINTF=1
10449   else
10450     HAVE_WPRINTF=0
10451   fi
10452
10453
10454
10455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10456 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10457 if ${am_cv_langinfo_codeset+:} false; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h.  */
10462 #include <langinfo.h>
10463 int
10464 main ()
10465 {
10466 char* cs = nl_langinfo(CODESET); return !cs;
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472   am_cv_langinfo_codeset=yes
10473 else
10474   am_cv_langinfo_codeset=no
10475 fi
10476 rm -f core conftest.err conftest.$ac_objext \
10477     conftest$ac_exeext conftest.$ac_ext
10478
10479 fi
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10481 $as_echo "$am_cv_langinfo_codeset" >&6; }
10482   if test $am_cv_langinfo_codeset = yes; then
10483
10484 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10485
10486   fi
10487
10488
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10490 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10491 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h.  */
10496 #include <locale.h>
10497 int
10498 main ()
10499 {
10500 return LC_MESSAGES
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 if ac_fn_c_try_link "$LINENO"; then :
10506   gt_cv_val_LC_MESSAGES=yes
10507 else
10508   gt_cv_val_LC_MESSAGES=no
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext \
10511     conftest$ac_exeext conftest.$ac_ext
10512 fi
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10514 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10515   if test $gt_cv_val_LC_MESSAGES = yes; then
10516
10517 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10518
10519   fi
10520
10521
10522                 if test "$enable_shared" = yes; then
10523     case "$host_os" in
10524       mingw* | cygwin*) is_woe32dll=yes ;;
10525       *) is_woe32dll=no ;;
10526     esac
10527   else
10528     is_woe32dll=no
10529   fi
10530   WOE32DLL=$is_woe32dll
10531
10532
10533       case "$host_os" in
10534     mingw* | cygwin*) is_woe32=yes ;;
10535     *) is_woe32=no ;;
10536   esac
10537   WOE32=$is_woe32
10538
10539   if test $WOE32 = yes; then
10540         if test -n "$ac_tool_prefix"; then
10541   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10542 set dummy ${ac_tool_prefix}windres; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_prog_WINDRES+:} false; then :
10546   $as_echo_n "(cached) " >&6
10547 else
10548   if test -n "$WINDRES"; then
10549   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10550 else
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554   IFS=$as_save_IFS
10555   test -z "$as_dir" && as_dir=.
10556     for ac_exec_ext in '' $ac_executable_extensions; do
10557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560     break 2
10561   fi
10562 done
10563   done
10564 IFS=$as_save_IFS
10565
10566 fi
10567 fi
10568 WINDRES=$ac_cv_prog_WINDRES
10569 if test -n "$WINDRES"; then
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10571 $as_echo "$WINDRES" >&6; }
10572 else
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 fi
10576
10577
10578 fi
10579 if test -z "$ac_cv_prog_WINDRES"; then
10580   ac_ct_WINDRES=$WINDRES
10581   # Extract the first word of "windres", so it can be a program name with args.
10582 set dummy windres; ac_word=$2
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584 $as_echo_n "checking for $ac_word... " >&6; }
10585 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10586   $as_echo_n "(cached) " >&6
10587 else
10588   if test -n "$ac_ct_WINDRES"; then
10589   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10590 else
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10593 do
10594   IFS=$as_save_IFS
10595   test -z "$as_dir" && as_dir=.
10596     for ac_exec_ext in '' $ac_executable_extensions; do
10597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598     ac_cv_prog_ac_ct_WINDRES="windres"
10599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600     break 2
10601   fi
10602 done
10603   done
10604 IFS=$as_save_IFS
10605
10606 fi
10607 fi
10608 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10609 if test -n "$ac_ct_WINDRES"; then
10610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10611 $as_echo "$ac_ct_WINDRES" >&6; }
10612 else
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10615 fi
10616
10617   if test "x$ac_ct_WINDRES" = x; then
10618     WINDRES=""
10619   else
10620     case $cross_compiling:$ac_tool_warned in
10621 yes:)
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624 ac_tool_warned=yes ;;
10625 esac
10626     WINDRES=$ac_ct_WINDRES
10627   fi
10628 else
10629   WINDRES="$ac_cv_prog_WINDRES"
10630 fi
10631
10632   fi
10633
10634               case "$host_os" in
10635     hpux*) LTLIBC="" ;;
10636     *)     LTLIBC="-lc" ;;
10637   esac
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10666 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10667 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   gt_save_LIBS="$LIBS"
10671      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10672      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h.  */
10674 #include <CoreFoundation/CFPreferences.h>
10675 int
10676 main ()
10677 {
10678 CFPreferencesCopyAppValue(NULL, NULL)
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684   gt_cv_func_CFPreferencesCopyAppValue=yes
10685 else
10686   gt_cv_func_CFPreferencesCopyAppValue=no
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext \
10689     conftest$ac_exeext conftest.$ac_ext
10690      LIBS="$gt_save_LIBS"
10691 fi
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10693 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10694   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10695
10696 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10697
10698   fi
10699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10700 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10701 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   gt_save_LIBS="$LIBS"
10705      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708 #include <CoreFoundation/CFLocale.h>
10709 int
10710 main ()
10711 {
10712 CFLocaleCopyCurrent();
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718   gt_cv_func_CFLocaleCopyCurrent=yes
10719 else
10720   gt_cv_func_CFLocaleCopyCurrent=no
10721 fi
10722 rm -f core conftest.err conftest.$ac_objext \
10723     conftest$ac_exeext conftest.$ac_ext
10724      LIBS="$gt_save_LIBS"
10725 fi
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10727 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10728   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10729
10730 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10731
10732   fi
10733   INTL_MACOSX_LIBS=
10734   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10735     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10736   fi
10737
10738
10739
10740
10741
10742
10743     BUILD_INCLUDED_LIBINTL=no
10744     USE_INCLUDED_LIBINTL=no
10745
10746   LIBINTL=
10747   LTLIBINTL=
10748   POSUB=
10749
10750     case " $gt_needs " in
10751     *" need-formatstring-macros "*) gt_api_version=3 ;;
10752     *" need-ngettext "*) gt_api_version=2 ;;
10753     *) gt_api_version=1 ;;
10754   esac
10755   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10756   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10757
10758     if test "$USE_NLS" = "yes"; then
10759     gt_use_preinstalled_gnugettext=no
10760
10761       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10762 $as_echo_n "checking whether included gettext is requested... " >&6; }
10763
10764 # Check whether --with-included-gettext was given.
10765 if test "${with_included_gettext+set}" = set; then :
10766   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10767 else
10768   nls_cv_force_use_gnu_gettext=no
10769 fi
10770
10771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10772 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10773
10774       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10775       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10776
10777
10778         if test $gt_api_version -ge 3; then
10779           gt_revision_test_code='
10780 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10781 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10782 #endif
10783 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10784 '
10785         else
10786           gt_revision_test_code=
10787         fi
10788         if test $gt_api_version -ge 2; then
10789           gt_expression_test_code=' + * ngettext ("", "", 0)'
10790         else
10791           gt_expression_test_code=
10792         fi
10793
10794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10795 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10796 if eval \${$gt_func_gnugettext_libc+:} false; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h.  */
10801
10802 #include <libintl.h>
10803 $gt_revision_test_code
10804 extern int _nl_msg_cat_cntr;
10805 extern int *_nl_domain_bindings;
10806
10807 int
10808 main ()
10809 {
10810
10811 bindtextdomain ("", "");
10812 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10813
10814   ;
10815   return 0;
10816 }
10817 _ACEOF
10818 if ac_fn_c_try_link "$LINENO"; then :
10819   eval "$gt_func_gnugettext_libc=yes"
10820 else
10821   eval "$gt_func_gnugettext_libc=no"
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext \
10824     conftest$ac_exeext conftest.$ac_ext
10825 fi
10826 eval ac_res=\$$gt_func_gnugettext_libc
10827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10828 $as_echo "$ac_res" >&6; }
10829
10830         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10831
10832
10833
10834
10835
10836
10837
10838
10839     use_additional=yes
10840
10841   acl_save_prefix="$prefix"
10842   prefix="$acl_final_prefix"
10843   acl_save_exec_prefix="$exec_prefix"
10844   exec_prefix="$acl_final_exec_prefix"
10845
10846     eval additional_includedir=\"$includedir\"
10847     eval additional_libdir=\"$libdir\"
10848
10849   exec_prefix="$acl_save_exec_prefix"
10850   prefix="$acl_save_prefix"
10851
10852
10853 # Check whether --with-libintl-prefix was given.
10854 if test "${with_libintl_prefix+set}" = set; then :
10855   withval=$with_libintl_prefix;
10856     if test "X$withval" = "Xno"; then
10857       use_additional=no
10858     else
10859       if test "X$withval" = "X"; then
10860
10861   acl_save_prefix="$prefix"
10862   prefix="$acl_final_prefix"
10863   acl_save_exec_prefix="$exec_prefix"
10864   exec_prefix="$acl_final_exec_prefix"
10865
10866           eval additional_includedir=\"$includedir\"
10867           eval additional_libdir=\"$libdir\"
10868
10869   exec_prefix="$acl_save_exec_prefix"
10870   prefix="$acl_save_prefix"
10871
10872       else
10873         additional_includedir="$withval/include"
10874         additional_libdir="$withval/$acl_libdirstem"
10875         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10876            && ! test -d "$withval/$acl_libdirstem"; then
10877           additional_libdir="$withval/$acl_libdirstem2"
10878         fi
10879       fi
10880     fi
10881
10882 fi
10883
10884       LIBINTL=
10885   LTLIBINTL=
10886   INCINTL=
10887   LIBINTL_PREFIX=
10888       HAVE_LIBINTL=
10889   rpathdirs=
10890   ltrpathdirs=
10891   names_already_handled=
10892   names_next_round='intl '
10893   while test -n "$names_next_round"; do
10894     names_this_round="$names_next_round"
10895     names_next_round=
10896     for name in $names_this_round; do
10897       already_handled=
10898       for n in $names_already_handled; do
10899         if test "$n" = "$name"; then
10900           already_handled=yes
10901           break
10902         fi
10903       done
10904       if test -z "$already_handled"; then
10905         names_already_handled="$names_already_handled $name"
10906                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10907         eval value=\"\$HAVE_LIB$uppername\"
10908         if test -n "$value"; then
10909           if test "$value" = yes; then
10910             eval value=\"\$LIB$uppername\"
10911             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10912             eval value=\"\$LTLIB$uppername\"
10913             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10914           else
10915                                     :
10916           fi
10917         else
10918                               found_dir=
10919           found_la=
10920           found_so=
10921           found_a=
10922           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10923           if test -n "$acl_shlibext"; then
10924             shrext=".$acl_shlibext"             # typically: shrext=.so
10925           else
10926             shrext=
10927           fi
10928           if test $use_additional = yes; then
10929             dir="$additional_libdir"
10930                                     if test -n "$acl_shlibext"; then
10931               if test -f "$dir/$libname$shrext"; then
10932                 found_dir="$dir"
10933                 found_so="$dir/$libname$shrext"
10934               else
10935                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10936                   ver=`(cd "$dir" && \
10937                         for f in "$libname$shrext".*; do echo "$f"; done \
10938                         | sed -e "s,^$libname$shrext\\\\.,," \
10939                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10940                         | sed 1q ) 2>/dev/null`
10941                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10942                     found_dir="$dir"
10943                     found_so="$dir/$libname$shrext.$ver"
10944                   fi
10945                 else
10946                   eval library_names=\"$acl_library_names_spec\"
10947                   for f in $library_names; do
10948                     if test -f "$dir/$f"; then
10949                       found_dir="$dir"
10950                       found_so="$dir/$f"
10951                       break
10952                     fi
10953                   done
10954                 fi
10955               fi
10956             fi
10957                         if test "X$found_dir" = "X"; then
10958               if test -f "$dir/$libname.$acl_libext"; then
10959                 found_dir="$dir"
10960                 found_a="$dir/$libname.$acl_libext"
10961               fi
10962             fi
10963             if test "X$found_dir" != "X"; then
10964               if test -f "$dir/$libname.la"; then
10965                 found_la="$dir/$libname.la"
10966               fi
10967             fi
10968           fi
10969           if test "X$found_dir" = "X"; then
10970             for x in $LDFLAGS $LTLIBINTL; do
10971
10972   acl_save_prefix="$prefix"
10973   prefix="$acl_final_prefix"
10974   acl_save_exec_prefix="$exec_prefix"
10975   exec_prefix="$acl_final_exec_prefix"
10976   eval x=\"$x\"
10977   exec_prefix="$acl_save_exec_prefix"
10978   prefix="$acl_save_prefix"
10979
10980               case "$x" in
10981                 -L*)
10982                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10983                                     if test -n "$acl_shlibext"; then
10984                     if test -f "$dir/$libname$shrext"; then
10985                       found_dir="$dir"
10986                       found_so="$dir/$libname$shrext"
10987                     else
10988                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10989                         ver=`(cd "$dir" && \
10990                               for f in "$libname$shrext".*; do echo "$f"; done \
10991                               | sed -e "s,^$libname$shrext\\\\.,," \
10992                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10993                               | sed 1q ) 2>/dev/null`
10994                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10995                           found_dir="$dir"
10996                           found_so="$dir/$libname$shrext.$ver"
10997                         fi
10998                       else
10999                         eval library_names=\"$acl_library_names_spec\"
11000                         for f in $library_names; do
11001                           if test -f "$dir/$f"; then
11002                             found_dir="$dir"
11003                             found_so="$dir/$f"
11004                             break
11005                           fi
11006                         done
11007                       fi
11008                     fi
11009                   fi
11010                                     if test "X$found_dir" = "X"; then
11011                     if test -f "$dir/$libname.$acl_libext"; then
11012                       found_dir="$dir"
11013                       found_a="$dir/$libname.$acl_libext"
11014                     fi
11015                   fi
11016                   if test "X$found_dir" != "X"; then
11017                     if test -f "$dir/$libname.la"; then
11018                       found_la="$dir/$libname.la"
11019                     fi
11020                   fi
11021                   ;;
11022               esac
11023               if test "X$found_dir" != "X"; then
11024                 break
11025               fi
11026             done
11027           fi
11028           if test "X$found_dir" != "X"; then
11029                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11030             if test "X$found_so" != "X"; then
11031                                                         if test "$enable_rpath" = no \
11032                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11033                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11034                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11035               else
11036                                                                                 haveit=
11037                 for x in $ltrpathdirs; do
11038                   if test "X$x" = "X$found_dir"; then
11039                     haveit=yes
11040                     break
11041                   fi
11042                 done
11043                 if test -z "$haveit"; then
11044                   ltrpathdirs="$ltrpathdirs $found_dir"
11045                 fi
11046                                 if test "$acl_hardcode_direct" = yes; then
11047                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11048                 else
11049                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11050                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11051                                                             haveit=
11052                     for x in $rpathdirs; do
11053                       if test "X$x" = "X$found_dir"; then
11054                         haveit=yes
11055                         break
11056                       fi
11057                     done
11058                     if test -z "$haveit"; then
11059                       rpathdirs="$rpathdirs $found_dir"
11060                     fi
11061                   else
11062                                                                                 haveit=
11063                     for x in $LDFLAGS $LIBINTL; do
11064
11065   acl_save_prefix="$prefix"
11066   prefix="$acl_final_prefix"
11067   acl_save_exec_prefix="$exec_prefix"
11068   exec_prefix="$acl_final_exec_prefix"
11069   eval x=\"$x\"
11070   exec_prefix="$acl_save_exec_prefix"
11071   prefix="$acl_save_prefix"
11072
11073                       if test "X$x" = "X-L$found_dir"; then
11074                         haveit=yes
11075                         break
11076                       fi
11077                     done
11078                     if test -z "$haveit"; then
11079                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11080                     fi
11081                     if test "$acl_hardcode_minus_L" != no; then
11082                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11083                     else
11084                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11085                     fi
11086                   fi
11087                 fi
11088               fi
11089             else
11090               if test "X$found_a" != "X"; then
11091                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11092               else
11093                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11094               fi
11095             fi
11096                         additional_includedir=
11097             case "$found_dir" in
11098               */$acl_libdirstem | */$acl_libdirstem/)
11099                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11100                 if test "$name" = 'intl'; then
11101                   LIBINTL_PREFIX="$basedir"
11102                 fi
11103                 additional_includedir="$basedir/include"
11104                 ;;
11105               */$acl_libdirstem2 | */$acl_libdirstem2/)
11106                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11107                 if test "$name" = 'intl'; then
11108                   LIBINTL_PREFIX="$basedir"
11109                 fi
11110                 additional_includedir="$basedir/include"
11111                 ;;
11112             esac
11113             if test "X$additional_includedir" != "X"; then
11114                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11115                 haveit=
11116                 if test "X$additional_includedir" = "X/usr/local/include"; then
11117                   if test -n "$GCC"; then
11118                     case $host_os in
11119                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11120                     esac
11121                   fi
11122                 fi
11123                 if test -z "$haveit"; then
11124                   for x in $CPPFLAGS $INCINTL; do
11125
11126   acl_save_prefix="$prefix"
11127   prefix="$acl_final_prefix"
11128   acl_save_exec_prefix="$exec_prefix"
11129   exec_prefix="$acl_final_exec_prefix"
11130   eval x=\"$x\"
11131   exec_prefix="$acl_save_exec_prefix"
11132   prefix="$acl_save_prefix"
11133
11134                     if test "X$x" = "X-I$additional_includedir"; then
11135                       haveit=yes
11136                       break
11137                     fi
11138                   done
11139                   if test -z "$haveit"; then
11140                     if test -d "$additional_includedir"; then
11141                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11142                     fi
11143                   fi
11144                 fi
11145               fi
11146             fi
11147                         if test -n "$found_la"; then
11148                                                         save_libdir="$libdir"
11149               case "$found_la" in
11150                 */* | *\\*) . "$found_la" ;;
11151                 *) . "./$found_la" ;;
11152               esac
11153               libdir="$save_libdir"
11154                             for dep in $dependency_libs; do
11155                 case "$dep" in
11156                   -L*)
11157                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11158                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11159                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11160                       haveit=
11161                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11162                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11163                         if test -n "$GCC"; then
11164                           case $host_os in
11165                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11166                           esac
11167                         fi
11168                       fi
11169                       if test -z "$haveit"; then
11170                         haveit=
11171                         for x in $LDFLAGS $LIBINTL; do
11172
11173   acl_save_prefix="$prefix"
11174   prefix="$acl_final_prefix"
11175   acl_save_exec_prefix="$exec_prefix"
11176   exec_prefix="$acl_final_exec_prefix"
11177   eval x=\"$x\"
11178   exec_prefix="$acl_save_exec_prefix"
11179   prefix="$acl_save_prefix"
11180
11181                           if test "X$x" = "X-L$additional_libdir"; then
11182                             haveit=yes
11183                             break
11184                           fi
11185                         done
11186                         if test -z "$haveit"; then
11187                           if test -d "$additional_libdir"; then
11188                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11189                           fi
11190                         fi
11191                         haveit=
11192                         for x in $LDFLAGS $LTLIBINTL; do
11193
11194   acl_save_prefix="$prefix"
11195   prefix="$acl_final_prefix"
11196   acl_save_exec_prefix="$exec_prefix"
11197   exec_prefix="$acl_final_exec_prefix"
11198   eval x=\"$x\"
11199   exec_prefix="$acl_save_exec_prefix"
11200   prefix="$acl_save_prefix"
11201
11202                           if test "X$x" = "X-L$additional_libdir"; then
11203                             haveit=yes
11204                             break
11205                           fi
11206                         done
11207                         if test -z "$haveit"; then
11208                           if test -d "$additional_libdir"; then
11209                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11210                           fi
11211                         fi
11212                       fi
11213                     fi
11214                     ;;
11215                   -R*)
11216                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11217                     if test "$enable_rpath" != no; then
11218                                                                   haveit=
11219                       for x in $rpathdirs; do
11220                         if test "X$x" = "X$dir"; then
11221                           haveit=yes
11222                           break
11223                         fi
11224                       done
11225                       if test -z "$haveit"; then
11226                         rpathdirs="$rpathdirs $dir"
11227                       fi
11228                                                                   haveit=
11229                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
11237                       fi
11238                     fi
11239                     ;;
11240                   -l*)
11241                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11242                     ;;
11243                   *.la)
11244                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11245                     ;;
11246                   *)
11247                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11248                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11249                     ;;
11250                 esac
11251               done
11252             fi
11253           else
11254                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11255             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11256           fi
11257         fi
11258       fi
11259     done
11260   done
11261   if test "X$rpathdirs" != "X"; then
11262     if test -n "$acl_hardcode_libdir_separator"; then
11263                         alldirs=
11264       for found_dir in $rpathdirs; do
11265         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11266       done
11267             acl_save_libdir="$libdir"
11268       libdir="$alldirs"
11269       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11270       libdir="$acl_save_libdir"
11271       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11272     else
11273             for found_dir in $rpathdirs; do
11274         acl_save_libdir="$libdir"
11275         libdir="$found_dir"
11276         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11277         libdir="$acl_save_libdir"
11278         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11279       done
11280     fi
11281   fi
11282   if test "X$ltrpathdirs" != "X"; then
11283             for found_dir in $ltrpathdirs; do
11284       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11285     done
11286   fi
11287
11288
11289
11290
11291
11292
11293           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11294 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11295 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   gt_save_CPPFLAGS="$CPPFLAGS"
11299             CPPFLAGS="$CPPFLAGS $INCINTL"
11300             gt_save_LIBS="$LIBS"
11301             LIBS="$LIBS $LIBINTL"
11302                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304
11305 #include <libintl.h>
11306 $gt_revision_test_code
11307 extern int _nl_msg_cat_cntr;
11308 extern
11309 #ifdef __cplusplus
11310 "C"
11311 #endif
11312 const char *_nl_expand_alias (const char *);
11313
11314 int
11315 main ()
11316 {
11317
11318 bindtextdomain ("", "");
11319 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11320
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326   eval "$gt_func_gnugettext_libintl=yes"
11327 else
11328   eval "$gt_func_gnugettext_libintl=no"
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext \
11331     conftest$ac_exeext conftest.$ac_ext
11332                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11333               LIBS="$LIBS $LIBICONV"
11334               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h.  */
11336
11337 #include <libintl.h>
11338 $gt_revision_test_code
11339 extern int _nl_msg_cat_cntr;
11340 extern
11341 #ifdef __cplusplus
11342 "C"
11343 #endif
11344 const char *_nl_expand_alias (const char *);
11345
11346 int
11347 main ()
11348 {
11349
11350 bindtextdomain ("", "");
11351 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11352
11353   ;
11354   return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358   LIBINTL="$LIBINTL $LIBICONV"
11359                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11360                  eval "$gt_func_gnugettext_libintl=yes"
11361
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364     conftest$ac_exeext conftest.$ac_ext
11365             fi
11366             CPPFLAGS="$gt_save_CPPFLAGS"
11367             LIBS="$gt_save_LIBS"
11368 fi
11369 eval ac_res=\$$gt_func_gnugettext_libintl
11370                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11371 $as_echo "$ac_res" >&6; }
11372         fi
11373
11374                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11375            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11376                 && test "$PACKAGE" != gettext-runtime \
11377                 && test "$PACKAGE" != gettext-tools; }; then
11378           gt_use_preinstalled_gnugettext=yes
11379         else
11380                     LIBINTL=
11381           LTLIBINTL=
11382           INCINTL=
11383         fi
11384
11385
11386         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11387                               nls_cv_use_gnu_gettext=yes
11388         fi
11389       fi
11390
11391       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11392                 BUILD_INCLUDED_LIBINTL=yes
11393         USE_INCLUDED_LIBINTL=yes
11394         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11395         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11396         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11397       fi
11398
11399       CATOBJEXT=
11400       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11401          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11402                 CATOBJEXT=.gmo
11403       fi
11404
11405
11406     if test -n "$INTL_MACOSX_LIBS"; then
11407       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11408          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11409                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11410         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11411       fi
11412     fi
11413
11414     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11415        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11416
11417 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11418
11419     else
11420       USE_NLS=no
11421     fi
11422   fi
11423
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11425 $as_echo_n "checking whether to use NLS... " >&6; }
11426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11427 $as_echo "$USE_NLS" >&6; }
11428   if test "$USE_NLS" = "yes"; then
11429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11430 $as_echo_n "checking where the gettext function comes from... " >&6; }
11431     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11432       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11433         gt_source="external libintl"
11434       else
11435         gt_source="libc"
11436       fi
11437     else
11438       gt_source="included intl directory"
11439     fi
11440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11441 $as_echo "$gt_source" >&6; }
11442   fi
11443
11444   if test "$USE_NLS" = "yes"; then
11445
11446     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11447       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11449 $as_echo_n "checking how to link with libintl... " >&6; }
11450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11451 $as_echo "$LIBINTL" >&6; }
11452
11453   for element in $INCINTL; do
11454     haveit=
11455     for x in $CPPFLAGS; do
11456
11457   acl_save_prefix="$prefix"
11458   prefix="$acl_final_prefix"
11459   acl_save_exec_prefix="$exec_prefix"
11460   exec_prefix="$acl_final_exec_prefix"
11461   eval x=\"$x\"
11462   exec_prefix="$acl_save_exec_prefix"
11463   prefix="$acl_save_prefix"
11464
11465       if test "X$x" = "X$element"; then
11466         haveit=yes
11467         break
11468       fi
11469     done
11470     if test -z "$haveit"; then
11471       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11472     fi
11473   done
11474
11475       fi
11476
11477
11478 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11479
11480
11481 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11482
11483     fi
11484
11485         POSUB=po
11486   fi
11487
11488
11489             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11490       BUILD_INCLUDED_LIBINTL=yes
11491     fi
11492
11493
11494
11495
11496
11497         nls_cv_header_intl=
11498     nls_cv_header_libgt=
11499
11500         DATADIRNAME=share
11501
11502
11503         INSTOBJEXT=.mo
11504
11505
11506         GENCAT=gencat
11507
11508
11509         INTLOBJS=
11510     if test "$USE_INCLUDED_LIBINTL" = yes; then
11511       INTLOBJS="\$(GETTOBJS)"
11512     fi
11513
11514
11515         INTL_LIBTOOL_SUFFIX_PREFIX=
11516
11517
11518
11519     INTLLIBS="$LIBINTL"
11520
11521
11522
11523
11524
11525
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11529 set x ${MAKE-make}
11530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11531 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11532   $as_echo_n "(cached) " >&6
11533 else
11534   cat >conftest.make <<\_ACEOF
11535 SHELL = /bin/sh
11536 all:
11537         @echo '@@@%%%=$(MAKE)=@@@%%%'
11538 _ACEOF
11539 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11540 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11541   *@@@%%%=?*=@@@%%%*)
11542     eval ac_cv_prog_make_${ac_make}_set=yes;;
11543   *)
11544     eval ac_cv_prog_make_${ac_make}_set=no;;
11545 esac
11546 rm -f conftest.make
11547 fi
11548 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551   SET_MAKE=
11552 else
11553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555   SET_MAKE="MAKE=${MAKE-make}"
11556 fi
11557
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11559 $as_echo_n "checking for GNU make... " >&6; }
11560 if ${_cv_gnu_make_command+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   _cv_gnu_make_command='' ;
11564                 if test -n "$FORCE_NATIVE_MAKE" ; then
11565                    MAKES="make"
11566                 else
11567                    MAKES="make gmake gnumake"
11568                 fi
11569                 for a in "$MAKE" $MAKES ; do
11570                         if test -z "$a" ; then continue ; fi ;
11571                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11572                                 _cv_gnu_make_command=$a ;
11573                                 break;
11574                         fi
11575                 done ;
11576
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11579 $as_echo "$_cv_gnu_make_command" >&6; } ;
11580         if test  "x$_cv_gnu_make_command" != "x"  ; then
11581                 ifGNUmake='' ;
11582                 ifNotGNUmake='#' ;
11583         else
11584                 ifGNUmake='#' ;
11585                 ifNotGNUmake='' ;
11586                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11587 $as_echo "\"Not found\"" >&6; };
11588         fi
11589
11590
11591
11592 # Extract the first word of "ln", so it can be a program name with args.
11593 set dummy ln; ac_word=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if ${ac_cv_path_LN+:} false; then :
11597   $as_echo_n "(cached) " >&6
11598 else
11599   case $LN in
11600   [\\/]* | ?:[\\/]*)
11601   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11602   ;;
11603   *)
11604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11606 do
11607   IFS=$as_save_IFS
11608   test -z "$as_dir" && as_dir=.
11609     for ac_exec_ext in '' $ac_executable_extensions; do
11610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613     break 2
11614   fi
11615 done
11616   done
11617 IFS=$as_save_IFS
11618
11619   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11620   ;;
11621 esac
11622 fi
11623 LN=$ac_cv_path_LN
11624 if test -n "$LN"; then
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11626 $as_echo "$LN" >&6; }
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11634 $as_echo_n "checking whether ln -s works... " >&6; }
11635 LN_S=$as_ln_s
11636 if test "$LN_S" = "ln -s"; then
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11639 else
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11641 $as_echo "no, using $LN_S" >&6; }
11642 fi
11643
11644 # Extract the first word of "mv", so it can be a program name with args.
11645 set dummy mv; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_path_MV+:} false; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   case $MV in
11652   [\\/]* | ?:[\\/]*)
11653   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11654   ;;
11655   *)
11656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11658 do
11659   IFS=$as_save_IFS
11660   test -z "$as_dir" && as_dir=.
11661     for ac_exec_ext in '' $ac_executable_extensions; do
11662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665     break 2
11666   fi
11667 done
11668   done
11669 IFS=$as_save_IFS
11670
11671   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11672   ;;
11673 esac
11674 fi
11675 MV=$ac_cv_path_MV
11676 if test -n "$MV"; then
11677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11678 $as_echo "$MV" >&6; }
11679 else
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682 fi
11683
11684
11685 # Extract the first word of "cp", so it can be a program name with args.
11686 set dummy cp; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_CP+:} false; then :
11690   $as_echo_n "(cached) " >&6
11691 else
11692   case $CP in
11693   [\\/]* | ?:[\\/]*)
11694   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11695   ;;
11696   *)
11697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11699 do
11700   IFS=$as_save_IFS
11701   test -z "$as_dir" && as_dir=.
11702     for ac_exec_ext in '' $ac_executable_extensions; do
11703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706     break 2
11707   fi
11708 done
11709   done
11710 IFS=$as_save_IFS
11711
11712   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11713   ;;
11714 esac
11715 fi
11716 CP=$ac_cv_path_CP
11717 if test -n "$CP"; then
11718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11719 $as_echo "$CP" >&6; }
11720 else
11721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11723 fi
11724
11725
11726 # Extract the first word of "rm", so it can be a program name with args.
11727 set dummy rm; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_path_RM+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   case $RM in
11734   [\\/]* | ?:[\\/]*)
11735   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11736   ;;
11737   *)
11738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11740 do
11741   IFS=$as_save_IFS
11742   test -z "$as_dir" && as_dir=.
11743     for ac_exec_ext in '' $ac_executable_extensions; do
11744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747     break 2
11748   fi
11749 done
11750   done
11751 IFS=$as_save_IFS
11752
11753   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11754   ;;
11755 esac
11756 fi
11757 RM=$ac_cv_path_RM
11758 if test -n "$RM"; then
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11760 $as_echo "$RM" >&6; }
11761 else
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765
11766
11767 # Extract the first word of "chmod", so it can be a program name with args.
11768 set dummy chmod; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_path_CHMOD+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   case $CHMOD in
11775   [\\/]* | ?:[\\/]*)
11776   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11777   ;;
11778   *)
11779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11781 do
11782   IFS=$as_save_IFS
11783   test -z "$as_dir" && as_dir=.
11784     for ac_exec_ext in '' $ac_executable_extensions; do
11785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788     break 2
11789   fi
11790 done
11791   done
11792 IFS=$as_save_IFS
11793
11794   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11795   ;;
11796 esac
11797 fi
11798 CHMOD=$ac_cv_path_CHMOD
11799 if test -n "$CHMOD"; then
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11801 $as_echo "$CHMOD" >&6; }
11802 else
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 fi
11806
11807
11808 for ac_prog in gawk mawk nawk awk
11809 do
11810   # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy $ac_prog; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_AWK+:} false; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817   if test -n "$AWK"; then
11818   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11819 else
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11822 do
11823   IFS=$as_save_IFS
11824   test -z "$as_dir" && as_dir=.
11825     for ac_exec_ext in '' $ac_executable_extensions; do
11826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827     ac_cv_prog_AWK="$ac_prog"
11828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829     break 2
11830   fi
11831 done
11832   done
11833 IFS=$as_save_IFS
11834
11835 fi
11836 fi
11837 AWK=$ac_cv_prog_AWK
11838 if test -n "$AWK"; then
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11840 $as_echo "$AWK" >&6; }
11841 else
11842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11844 fi
11845
11846
11847   test -n "$AWK" && break
11848 done
11849
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11851 $as_echo_n "checking for egrep... " >&6; }
11852 if ${ac_cv_path_EGREP+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11856    then ac_cv_path_EGREP="$GREP -E"
11857    else
11858      if test -z "$EGREP"; then
11859   ac_path_EGREP_found=false
11860   # Loop through the user's path and test for each of PROGNAME-LIST
11861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11863 do
11864   IFS=$as_save_IFS
11865   test -z "$as_dir" && as_dir=.
11866     for ac_prog in egrep; do
11867     for ac_exec_ext in '' $ac_executable_extensions; do
11868       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11869       as_fn_executable_p "$ac_path_EGREP" || continue
11870 # Check for GNU ac_path_EGREP and select it if it is found.
11871   # Check for GNU $ac_path_EGREP
11872 case `"$ac_path_EGREP" --version 2>&1` in
11873 *GNU*)
11874   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11875 *)
11876   ac_count=0
11877   $as_echo_n 0123456789 >"conftest.in"
11878   while :
11879   do
11880     cat "conftest.in" "conftest.in" >"conftest.tmp"
11881     mv "conftest.tmp" "conftest.in"
11882     cp "conftest.in" "conftest.nl"
11883     $as_echo 'EGREP' >> "conftest.nl"
11884     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11886     as_fn_arith $ac_count + 1 && ac_count=$as_val
11887     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11888       # Best one so far, save it but keep looking for a better one
11889       ac_cv_path_EGREP="$ac_path_EGREP"
11890       ac_path_EGREP_max=$ac_count
11891     fi
11892     # 10*(2^10) chars as input seems more than enough
11893     test $ac_count -gt 10 && break
11894   done
11895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11896 esac
11897
11898       $ac_path_EGREP_found && break 3
11899     done
11900   done
11901   done
11902 IFS=$as_save_IFS
11903   if test -z "$ac_cv_path_EGREP"; then
11904     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11905   fi
11906 else
11907   ac_cv_path_EGREP=$EGREP
11908 fi
11909
11910    fi
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11913 $as_echo "$ac_cv_path_EGREP" >&6; }
11914  EGREP="$ac_cv_path_EGREP"
11915
11916
11917 # Extract the first word of "sed", so it can be a program name with args.
11918 set dummy sed; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_path_SED+:} false; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   case $SED in
11925   [\\/]* | ?:[\\/]*)
11926   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11927   ;;
11928   *)
11929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932   IFS=$as_save_IFS
11933   test -z "$as_dir" && as_dir=.
11934     for ac_exec_ext in '' $ac_executable_extensions; do
11935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938     break 2
11939   fi
11940 done
11941   done
11942 IFS=$as_save_IFS
11943
11944   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11945   ;;
11946 esac
11947 fi
11948 SED=$ac_cv_path_SED
11949 if test -n "$SED"; then
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11951 $as_echo "$SED" >&6; }
11952 else
11953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11955 fi
11956
11957
11958 # Extract the first word of "perl", so it can be a program name with args.
11959 set dummy perl; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_PERL+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   case $PERL in
11966   [\\/]* | ?:[\\/]*)
11967   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11968   ;;
11969   *)
11970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11972 do
11973   IFS=$as_save_IFS
11974   test -z "$as_dir" && as_dir=.
11975     for ac_exec_ext in '' $ac_executable_extensions; do
11976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979     break 2
11980   fi
11981 done
11982   done
11983 IFS=$as_save_IFS
11984
11985   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11986   ;;
11987 esac
11988 fi
11989 PERL=$ac_cv_path_PERL
11990 if test -n "$PERL"; then
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11992 $as_echo "$PERL" >&6; }
11993 else
11994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11996 fi
11997
11998
11999 # Extract the first word of "ldconfig", so it can be a program name with args.
12000 set dummy ldconfig; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_LDCONFIG+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   case $LDCONFIG in
12007   [\\/]* | ?:[\\/]*)
12008   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12009   ;;
12010   *)
12011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014   IFS=$as_save_IFS
12015   test -z "$as_dir" && as_dir=.
12016     for ac_exec_ext in '' $ac_executable_extensions; do
12017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020     break 2
12021   fi
12022 done
12023   done
12024 IFS=$as_save_IFS
12025
12026   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12027   ;;
12028 esac
12029 fi
12030 LDCONFIG=$ac_cv_path_LDCONFIG
12031 if test -n "$LDCONFIG"; then
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12033 $as_echo "$LDCONFIG" >&6; }
12034 else
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 if test -n "$ac_tool_prefix"; then
12041   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12042 set dummy ${ac_tool_prefix}ar; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_prog_AR+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if test -n "$AR"; then
12049   ac_cv_prog_AR="$AR" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056     for ac_exec_ext in '' $ac_executable_extensions; do
12057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058     ac_cv_prog_AR="${ac_tool_prefix}ar"
12059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060     break 2
12061   fi
12062 done
12063   done
12064 IFS=$as_save_IFS
12065
12066 fi
12067 fi
12068 AR=$ac_cv_prog_AR
12069 if test -n "$AR"; then
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12071 $as_echo "$AR" >&6; }
12072 else
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077
12078 fi
12079 if test -z "$ac_cv_prog_AR"; then
12080   ac_ct_AR=$AR
12081   # Extract the first word of "ar", so it can be a program name with args.
12082 set dummy ar; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   if test -n "$ac_ct_AR"; then
12089   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_exec_ext in '' $ac_executable_extensions; do
12097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098     ac_cv_prog_ac_ct_AR="ar"
12099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100     break 2
12101   fi
12102 done
12103   done
12104 IFS=$as_save_IFS
12105
12106 fi
12107 fi
12108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12109 if test -n "$ac_ct_AR"; then
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12111 $as_echo "$ac_ct_AR" >&6; }
12112 else
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117   if test "x$ac_ct_AR" = x; then
12118     AR="ar"
12119   else
12120     case $cross_compiling:$ac_tool_warned in
12121 yes:)
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12125 esac
12126     AR=$ac_ct_AR
12127   fi
12128 else
12129   AR="$ac_cv_prog_AR"
12130 fi
12131
12132 if test -n "$ac_tool_prefix"; then
12133   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_prog_RANLIB+:} false; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   if test -n "$RANLIB"; then
12141   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12142 else
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146   IFS=$as_save_IFS
12147   test -z "$as_dir" && as_dir=.
12148     for ac_exec_ext in '' $ac_executable_extensions; do
12149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152     break 2
12153   fi
12154 done
12155   done
12156 IFS=$as_save_IFS
12157
12158 fi
12159 fi
12160 RANLIB=$ac_cv_prog_RANLIB
12161 if test -n "$RANLIB"; then
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12163 $as_echo "$RANLIB" >&6; }
12164 else
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170 fi
12171 if test -z "$ac_cv_prog_RANLIB"; then
12172   ac_ct_RANLIB=$RANLIB
12173   # Extract the first word of "ranlib", so it can be a program name with args.
12174 set dummy ranlib; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   if test -n "$ac_ct_RANLIB"; then
12181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12182 else
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12185 do
12186   IFS=$as_save_IFS
12187   test -z "$as_dir" && as_dir=.
12188     for ac_exec_ext in '' $ac_executable_extensions; do
12189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190     ac_cv_prog_ac_ct_RANLIB="ranlib"
12191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192     break 2
12193   fi
12194 done
12195   done
12196 IFS=$as_save_IFS
12197
12198 fi
12199 fi
12200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12201 if test -n "$ac_ct_RANLIB"; then
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12203 $as_echo "$ac_ct_RANLIB" >&6; }
12204 else
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209   if test "x$ac_ct_RANLIB" = x; then
12210     RANLIB=":"
12211   else
12212     case $cross_compiling:$ac_tool_warned in
12213 yes:)
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12216 ac_tool_warned=yes ;;
12217 esac
12218     RANLIB=$ac_ct_RANLIB
12219   fi
12220 else
12221   RANLIB="$ac_cv_prog_RANLIB"
12222 fi
12223
12224 if test -n "$ac_tool_prefix"; then
12225   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12226 set dummy ${ac_tool_prefix}strip; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_STRIP+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if test -n "$STRIP"; then
12233   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240     for ac_exec_ext in '' $ac_executable_extensions; do
12241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247   done
12248 IFS=$as_save_IFS
12249
12250 fi
12251 fi
12252 STRIP=$ac_cv_prog_STRIP
12253 if test -n "$STRIP"; then
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12255 $as_echo "$STRIP" >&6; }
12256 else
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260
12261
12262 fi
12263 if test -z "$ac_cv_prog_STRIP"; then
12264   ac_ct_STRIP=$STRIP
12265   # Extract the first word of "strip", so it can be a program name with args.
12266 set dummy strip; ac_word=$2
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268 $as_echo_n "checking for $ac_word... " >&6; }
12269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   if test -n "$ac_ct_STRIP"; then
12273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12274 else
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12277 do
12278   IFS=$as_save_IFS
12279   test -z "$as_dir" && as_dir=.
12280     for ac_exec_ext in '' $ac_executable_extensions; do
12281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282     ac_cv_prog_ac_ct_STRIP="strip"
12283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284     break 2
12285   fi
12286 done
12287   done
12288 IFS=$as_save_IFS
12289
12290 fi
12291 fi
12292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12293 if test -n "$ac_ct_STRIP"; then
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12295 $as_echo "$ac_ct_STRIP" >&6; }
12296 else
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 fi
12300
12301   if test "x$ac_ct_STRIP" = x; then
12302     STRIP=":"
12303   else
12304     case $cross_compiling:$ac_tool_warned in
12305 yes:)
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308 ac_tool_warned=yes ;;
12309 esac
12310     STRIP=$ac_ct_STRIP
12311   fi
12312 else
12313   STRIP="$ac_cv_prog_STRIP"
12314 fi
12315
12316 # Extract the first word of "makeinfo", so it can be a program name with args.
12317 set dummy makeinfo; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_prog_MAKEINFO+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   if test -n "$MAKEINFO"; then
12324   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12325 else
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12328 do
12329   IFS=$as_save_IFS
12330   test -z "$as_dir" && as_dir=.
12331     for ac_exec_ext in '' $ac_executable_extensions; do
12332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333     ac_cv_prog_MAKEINFO="makeinfo"
12334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335     break 2
12336   fi
12337 done
12338   done
12339 IFS=$as_save_IFS
12340
12341 fi
12342 fi
12343 MAKEINFO=$ac_cv_prog_MAKEINFO
12344 if test -n "$MAKEINFO"; then
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12346 $as_echo "$MAKEINFO" >&6; }
12347 else
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352
12353 if test "_$MAKEINFO" = "_"; then
12354     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12355 else
12356     case "$MAKEINFO" in
12357       */missing.*)
12358         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12359 *** Makeinfo is missing. Info documentation will not be built." >&5
12360 $as_echo "$as_me: WARNING:
12361 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12362         ;;
12363       *)
12364         ;;
12365     esac
12366 fi
12367
12368
12369 # See if we need a separate native compiler.
12370 if test $cross_compiling = no; then
12371   BUILD_CC="$CC"
12372
12373 else
12374   for ac_prog in gcc cc
12375 do
12376   # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_BUILD_CC+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   if test -n "$BUILD_CC"; then
12384   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389   IFS=$as_save_IFS
12390   test -z "$as_dir" && as_dir=.
12391     for ac_exec_ext in '' $ac_executable_extensions; do
12392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393     ac_cv_prog_BUILD_CC="$ac_prog"
12394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395     break 2
12396   fi
12397 done
12398   done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 BUILD_CC=$ac_cv_prog_BUILD_CC
12404 if test -n "$BUILD_CC"; then
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12406 $as_echo "$BUILD_CC" >&6; }
12407 else
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413   test -n "$BUILD_CC" && break
12414 done
12415
12416 fi
12417 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
12418 do :
12419   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12422   cat >>confdefs.h <<_ACEOF
12423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12424 _ACEOF
12425
12426 fi
12427
12428 done
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12431 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12432 DD=
12433 for i in dd gdd ; do
12434         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12435                 DD=$i
12436                 break
12437         fi
12438 done
12439 if test -n "$DD" ; then
12440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12441 $as_echo "$DD" >&6; }
12442 else
12443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12444 $as_echo "not found, using dd" >&6; }
12445         DD=dd
12446         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12447 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12448 fi
12449
12450
12451 for ac_header in net/if.h
12452 do :
12453   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12454 #if HAVE_SYS_TYPES_H
12455 #include <sys/types.h>
12456 #endif
12457 #if HAVE_SYS_SOCKET
12458 #include <sys/socket.h>
12459 #endif
12460
12461 "
12462 if test "x$ac_cv_header_net_if_h" = xyes; then :
12463   cat >>confdefs.h <<_ACEOF
12464 #define HAVE_NET_IF_H 1
12465 _ACEOF
12466
12467 fi
12468
12469 done
12470
12471 for ac_func in vprintf
12472 do :
12473   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12474 if test "x$ac_cv_func_vprintf" = xyes; then :
12475   cat >>confdefs.h <<_ACEOF
12476 #define HAVE_VPRINTF 1
12477 _ACEOF
12478
12479 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12480 if test "x$ac_cv_func__doprnt" = xyes; then :
12481
12482 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12483
12484 fi
12485
12486 fi
12487 done
12488
12489
12490 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12491 "
12492 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12493
12494 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12495
12496 fi
12497
12498 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12499 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12500
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_STRUCT_STAT_ST_ATIM 1
12503 _ACEOF
12504
12505
12506 fi
12507
12508 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12509 "
12510 if test "x$ac_cv_type_ssize_t" = xyes; then :
12511
12512 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12513
12514 fi
12515
12516 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12517 "
12518 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12519
12520 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12521
12522 fi
12523
12524 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12525                  #define _LARGEFILE64_SOURCE
12526                  #include <unistd.h>
12527 "
12528 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12529
12530 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12531
12532 fi
12533
12534 # The cast to long int works around a bug in the HP C Compiler
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12539 $as_echo_n "checking size of short... " >&6; }
12540 if ${ac_cv_sizeof_short+:} false; then :
12541   $as_echo_n "(cached) " >&6
12542 else
12543   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12544
12545 else
12546   if test "$ac_cv_type_short" = yes; then
12547      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12549 as_fn_error 77 "cannot compute sizeof (short)
12550 See \`config.log' for more details" "$LINENO" 5; }
12551    else
12552      ac_cv_sizeof_short=0
12553    fi
12554 fi
12555
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12558 $as_echo "$ac_cv_sizeof_short" >&6; }
12559
12560
12561
12562 cat >>confdefs.h <<_ACEOF
12563 #define SIZEOF_SHORT $ac_cv_sizeof_short
12564 _ACEOF
12565
12566
12567 # The cast to long int works around a bug in the HP C Compiler
12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570 # This bug is HP SR number 8606223364.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12572 $as_echo_n "checking size of int... " >&6; }
12573 if ${ac_cv_sizeof_int+:} false; then :
12574   $as_echo_n "(cached) " >&6
12575 else
12576   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12577
12578 else
12579   if test "$ac_cv_type_int" = yes; then
12580      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12582 as_fn_error 77 "cannot compute sizeof (int)
12583 See \`config.log' for more details" "$LINENO" 5; }
12584    else
12585      ac_cv_sizeof_int=0
12586    fi
12587 fi
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12591 $as_echo "$ac_cv_sizeof_int" >&6; }
12592
12593
12594
12595 cat >>confdefs.h <<_ACEOF
12596 #define SIZEOF_INT $ac_cv_sizeof_int
12597 _ACEOF
12598
12599
12600 # The cast to long int works around a bug in the HP C Compiler
12601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12603 # This bug is HP SR number 8606223364.
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12605 $as_echo_n "checking size of long... " >&6; }
12606 if ${ac_cv_sizeof_long+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12610
12611 else
12612   if test "$ac_cv_type_long" = yes; then
12613      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12615 as_fn_error 77 "cannot compute sizeof (long)
12616 See \`config.log' for more details" "$LINENO" 5; }
12617    else
12618      ac_cv_sizeof_long=0
12619    fi
12620 fi
12621
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12624 $as_echo "$ac_cv_sizeof_long" >&6; }
12625
12626
12627
12628 cat >>confdefs.h <<_ACEOF
12629 #define SIZEOF_LONG $ac_cv_sizeof_long
12630 _ACEOF
12631
12632
12633 # The cast to long int works around a bug in the HP C Compiler
12634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12636 # This bug is HP SR number 8606223364.
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12638 $as_echo_n "checking size of long long... " >&6; }
12639 if ${ac_cv_sizeof_long_long+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12643
12644 else
12645   if test "$ac_cv_type_long_long" = yes; then
12646      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12648 as_fn_error 77 "cannot compute sizeof (long long)
12649 See \`config.log' for more details" "$LINENO" 5; }
12650    else
12651      ac_cv_sizeof_long_long=0
12652    fi
12653 fi
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12657 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12658
12659
12660
12661 cat >>confdefs.h <<_ACEOF
12662 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12663 _ACEOF
12664
12665
12666 # The cast to long int works around a bug in the HP C Compiler
12667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12669 # This bug is HP SR number 8606223364.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12671 $as_echo_n "checking size of off_t... " >&6; }
12672 if ${ac_cv_sizeof_off_t+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12676
12677 else
12678   if test "$ac_cv_type_off_t" = yes; then
12679      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681 as_fn_error 77 "cannot compute sizeof (off_t)
12682 See \`config.log' for more details" "$LINENO" 5; }
12683    else
12684      ac_cv_sizeof_off_t=0
12685    fi
12686 fi
12687
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12690 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12691
12692
12693
12694 cat >>confdefs.h <<_ACEOF
12695 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12696 _ACEOF
12697
12698
12699 # The cast to long int works around a bug in the HP C Compiler
12700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12702 # This bug is HP SR number 8606223364.
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12704 $as_echo_n "checking size of time_t... " >&6; }
12705 if ${ac_cv_sizeof_time_t+:} false; then :
12706   $as_echo_n "(cached) " >&6
12707 else
12708   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12709
12710 else
12711   if test "$ac_cv_type_time_t" = yes; then
12712      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12714 as_fn_error 77 "cannot compute sizeof (time_t)
12715 See \`config.log' for more details" "$LINENO" 5; }
12716    else
12717      ac_cv_sizeof_time_t=0
12718    fi
12719 fi
12720
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12723 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12724
12725
12726
12727 cat >>confdefs.h <<_ACEOF
12728 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12729 _ACEOF
12730
12731
12732 SIZEOF_SHORT=$ac_cv_sizeof_short
12733 SIZEOF_INT=$ac_cv_sizeof_int
12734 SIZEOF_LONG=$ac_cv_sizeof_long
12735 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12736 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12737 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12738
12739
12740
12741
12742
12743
12744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12745 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12746 if ${ac_cv_c_bigendian+:} false; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   ac_cv_c_bigendian=unknown
12750     # See if we're dealing with a universal compiler.
12751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h.  */
12753 #ifndef __APPLE_CC__
12754                not a universal capable compiler
12755              #endif
12756              typedef int dummy;
12757
12758 _ACEOF
12759 if ac_fn_c_try_compile "$LINENO"; then :
12760
12761         # Check for potential -arch flags.  It is not universal unless
12762         # there are at least two -arch flags with different values.
12763         ac_arch=
12764         ac_prev=
12765         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12766          if test -n "$ac_prev"; then
12767            case $ac_word in
12768              i?86 | x86_64 | ppc | ppc64)
12769                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12770                  ac_arch=$ac_word
12771                else
12772                  ac_cv_c_bigendian=universal
12773                  break
12774                fi
12775                ;;
12776            esac
12777            ac_prev=
12778          elif test "x$ac_word" = "x-arch"; then
12779            ac_prev=arch
12780          fi
12781        done
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784     if test $ac_cv_c_bigendian = unknown; then
12785       # See if sys/param.h defines the BYTE_ORDER macro.
12786       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h.  */
12788 #include <sys/types.h>
12789              #include <sys/param.h>
12790
12791 int
12792 main ()
12793 {
12794 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12795                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12796                      && LITTLE_ENDIAN)
12797               bogus endian macros
12798              #endif
12799
12800   ;
12801   return 0;
12802 }
12803 _ACEOF
12804 if ac_fn_c_try_compile "$LINENO"; then :
12805   # It does; now see whether it defined to BIG_ENDIAN or not.
12806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h.  */
12808 #include <sys/types.h>
12809                 #include <sys/param.h>
12810
12811 int
12812 main ()
12813 {
12814 #if BYTE_ORDER != BIG_ENDIAN
12815                  not big endian
12816                 #endif
12817
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823   ac_cv_c_bigendian=yes
12824 else
12825   ac_cv_c_bigendian=no
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830     fi
12831     if test $ac_cv_c_bigendian = unknown; then
12832       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12833       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h.  */
12835 #include <limits.h>
12836
12837 int
12838 main ()
12839 {
12840 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12841               bogus endian macros
12842              #endif
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849   # It does; now see whether it defined to _BIG_ENDIAN or not.
12850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852 #include <limits.h>
12853
12854 int
12855 main ()
12856 {
12857 #ifndef _BIG_ENDIAN
12858                  not big endian
12859                 #endif
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866   ac_cv_c_bigendian=yes
12867 else
12868   ac_cv_c_bigendian=no
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873     fi
12874     if test $ac_cv_c_bigendian = unknown; then
12875       # Compile a test program.
12876       if test "$cross_compiling" = yes; then :
12877   # Try to guess by grepping values from an object file.
12878          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h.  */
12880 short int ascii_mm[] =
12881                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12882                 short int ascii_ii[] =
12883                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12884                 int use_ascii (int i) {
12885                   return ascii_mm[i] + ascii_ii[i];
12886                 }
12887                 short int ebcdic_ii[] =
12888                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12889                 short int ebcdic_mm[] =
12890                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12891                 int use_ebcdic (int i) {
12892                   return ebcdic_mm[i] + ebcdic_ii[i];
12893                 }
12894                 extern int foo;
12895
12896 int
12897 main ()
12898 {
12899 return use_ascii (foo) == use_ebcdic (foo);
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_compile "$LINENO"; then :
12905   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12906               ac_cv_c_bigendian=yes
12907             fi
12908             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12909               if test "$ac_cv_c_bigendian" = unknown; then
12910                 ac_cv_c_bigendian=no
12911               else
12912                 # finding both strings is unlikely to happen, but who knows?
12913                 ac_cv_c_bigendian=unknown
12914               fi
12915             fi
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 else
12919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921 $ac_includes_default
12922 int
12923 main ()
12924 {
12925
12926              /* Are we little or big endian?  From Harbison&Steele.  */
12927              union
12928              {
12929                long int l;
12930                char c[sizeof (long int)];
12931              } u;
12932              u.l = 1;
12933              return u.c[sizeof (long int) - 1] == 1;
12934
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_run "$LINENO"; then :
12940   ac_cv_c_bigendian=no
12941 else
12942   ac_cv_c_bigendian=yes
12943 fi
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945   conftest.$ac_objext conftest.beam conftest.$ac_ext
12946 fi
12947
12948     fi
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12951 $as_echo "$ac_cv_c_bigendian" >&6; }
12952  case $ac_cv_c_bigendian in #(
12953    yes)
12954      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12955 ;; #(
12956    no)
12957       ;; #(
12958    universal)
12959
12960 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12961
12962      ;; #(
12963    *)
12964      as_fn_error $? "unknown endianness
12965  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12966  esac
12967
12968 if test $cross_compiling = no; then
12969   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12970 else
12971   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12972 fi
12973 ASM_TYPES_HEADER=./asm_types.h
12974
12975 echo "/* These defines are needed for the public ext2fs.h header file */" \
12976      > public_config.h
12977 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12978   uniq tmp_config.$$ >> public_config.h
12979 else
12980   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12981 fi
12982 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12983   uniq tmp_config.$$ >> public_config.h
12984 else
12985   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12986 fi
12987 rm -f tmp_config.$$
12988 PUBLIC_CONFIG_HEADER=./public_config.h
12989
12990 for ac_header in inttypes.h
12991 do :
12992   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12993 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12994   cat >>confdefs.h <<_ACEOF
12995 #define HAVE_INTTYPES_H 1
12996 _ACEOF
12997
12998 fi
12999
13000 done
13001
13002 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13003 if test "x$ac_cv_type_intptr_t" = xyes; then :
13004
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_INTPTR_T 1
13007 _ACEOF
13008
13009
13010 fi
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13013 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13014 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h.  */
13019 #include <sys/stat.h>
13020 int
13021 main ()
13022 {
13023 struct stat stat; stat.st_flags = 0;
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029   e2fsprogs_cv_struct_st_flags=yes
13030 else
13031   e2fsprogs_cv_struct_st_flags=no
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 fi
13035
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13037 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13038 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13040 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13041   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13042   $as_echo_n "(cached) " >&6
13043 else
13044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h.  */
13046 #include <sys/stat.h>
13047 int
13048 main ()
13049 {
13050 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_compile "$LINENO"; then :
13056   e2fsprogs_cv_struct_st_flags_immut=yes
13057 else
13058   e2fsprogs_cv_struct_st_flags_immut=no
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061 fi
13062
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13064 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13065   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13066
13067 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13068
13069   fi
13070 fi
13071 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13072          #include <sys/socket.h>
13073 "
13074 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13075
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_SA_LEN 1
13078 _ACEOF
13079
13080 fi
13081
13082 if test -n "$BLKID_CMT"; then
13083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13084 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13085 if ${ac_cv_search_blkid_probe_all+:} false; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088   ac_func_search_save_LIBS=$LIBS
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h.  */
13091
13092 /* Override any GCC internal prototype to avoid an error.
13093    Use char because int might match the return type of a GCC
13094    builtin and then its argument prototype would still apply.  */
13095 #ifdef __cplusplus
13096 extern "C"
13097 #endif
13098 char blkid_probe_all ();
13099 int
13100 main ()
13101 {
13102 return blkid_probe_all ();
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 for ac_lib in '' blkid; do
13108   if test -z "$ac_lib"; then
13109     ac_res="none required"
13110   else
13111     ac_res=-l$ac_lib
13112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13113   fi
13114   if ac_fn_c_try_link "$LINENO"; then :
13115   ac_cv_search_blkid_probe_all=$ac_res
13116 fi
13117 rm -f core conftest.err conftest.$ac_objext \
13118     conftest$ac_exeext
13119   if ${ac_cv_search_blkid_probe_all+:} false; then :
13120   break
13121 fi
13122 done
13123 if ${ac_cv_search_blkid_probe_all+:} false; then :
13124
13125 else
13126   ac_cv_search_blkid_probe_all=no
13127 fi
13128 rm conftest.$ac_ext
13129 LIBS=$ac_func_search_save_LIBS
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13132 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13133 ac_res=$ac_cv_search_blkid_probe_all
13134 if test "$ac_res" != no; then :
13135   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13136
13137 fi
13138
13139 fi
13140 if test -n "$DLOPEN_LIB" ; then
13141    ac_cv_func_dlopen=yes
13142 fi
13143 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
13144 do :
13145   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13148   cat >>confdefs.h <<_ACEOF
13149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13150 _ACEOF
13151
13152 fi
13153 done
13154
13155 SOCKET_LIB=''
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13157 $as_echo_n "checking for socket in -lsocket... " >&6; }
13158 if ${ac_cv_lib_socket_socket+:} false; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lsocket  $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13165
13166 /* Override any GCC internal prototype to avoid an error.
13167    Use char because int might match the return type of a GCC
13168    builtin and then its argument prototype would still apply.  */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char socket ();
13173 int
13174 main ()
13175 {
13176 return socket ();
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182   ac_cv_lib_socket_socket=yes
13183 else
13184   ac_cv_lib_socket_socket=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext \
13187     conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13191 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13192 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13193   SOCKET_LIB=-lsocket
13194 fi
13195
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13198 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13199 if ${ac_cv_lib_magic_magic_file+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202   ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lmagic  $LIBS"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206
13207 /* Override any GCC internal prototype to avoid an error.
13208    Use char because int might match the return type of a GCC
13209    builtin and then its argument prototype would still apply.  */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 char magic_file ();
13214 int
13215 main ()
13216 {
13217 return magic_file ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 if ac_fn_c_try_link "$LINENO"; then :
13223   ac_cv_lib_magic_magic_file=yes
13224 else
13225   ac_cv_lib_magic_magic_file=no
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext \
13228     conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13230 fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13232 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13233 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13234   MAGIC_LIB=-lmagic
13235 for ac_header in magic.h
13236 do :
13237   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13238 if test "x$ac_cv_header_magic_h" = xyes; then :
13239   cat >>confdefs.h <<_ACEOF
13240 #define HAVE_MAGIC_H 1
13241 _ACEOF
13242
13243 fi
13244
13245 done
13246
13247 fi
13248
13249 if test "$ac_cv_func_dlopen" = yes ; then
13250    MAGIC_LIB=$DLOPEN_LIB
13251 fi
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13254 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13255 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13256   $as_echo_n "(cached) " >&6
13257 else
13258   ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lrt  $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h.  */
13262
13263 /* Override any GCC internal prototype to avoid an error.
13264    Use char because int might match the return type of a GCC
13265    builtin and then its argument prototype would still apply.  */
13266 #ifdef __cplusplus
13267 extern "C"
13268 #endif
13269 char clock_gettime ();
13270 int
13271 main ()
13272 {
13273 return clock_gettime ();
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 if ac_fn_c_try_link "$LINENO"; then :
13279   ac_cv_lib_rt_clock_gettime=yes
13280 else
13281   ac_cv_lib_rt_clock_gettime=no
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext \
13284     conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS
13286 fi
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13288 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13289 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13290   CLOCK_GETTIME_LIB=-lrt
13291 fi
13292
13293
13294 FUSE_CMT=
13295 FUSE_LIB=
13296 # Check whether --enable-fuse2fs was given.
13297 if test "${enable_fuse2fs+set}" = set; then :
13298   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13299 then
13300         FUSE_CMT="#"
13301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13302 $as_echo "Disabling fuse2fs" >&6; }
13303 else
13304         for ac_header in pthread.h fuse.h
13305 do :
13306   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13308 #define FUSE_USE_VERSION 29
13309 "
13310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13311   cat >>confdefs.h <<_ACEOF
13312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13313 _ACEOF
13314
13315 else
13316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13318 as_fn_error $? "Cannot find fuse2fs headers.
13319 See \`config.log' for more details" "$LINENO" 5; }
13320 fi
13321
13322 done
13323
13324
13325         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h.  */
13327 #define FUSE_USE_VERSION 29
13328 #ifdef __linux__
13329 #include <linux/fs.h>
13330 #include <linux/falloc.h>
13331 #include <linux/xattr.h>
13332 #endif
13333
13334 int
13335 main ()
13336 {
13337
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 if ac_fn_c_try_cpp "$LINENO"; then :
13343
13344 else
13345   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $? "Cannot find fuse2fs Linux headers.
13348 See \`config.log' for more details" "$LINENO" 5; }
13349 fi
13350 rm -f conftest.err conftest.i conftest.$ac_ext
13351
13352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13353 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13354 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-losxfuse  $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h.  */
13361
13362 /* Override any GCC internal prototype to avoid an error.
13363    Use char because int might match the return type of a GCC
13364    builtin and then its argument prototype would still apply.  */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 char fuse_main ();
13369 int
13370 main ()
13371 {
13372 return fuse_main ();
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_link "$LINENO"; then :
13378   ac_cv_lib_osxfuse_fuse_main=yes
13379 else
13380   ac_cv_lib_osxfuse_fuse_main=no
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext \
13383     conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13387 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13388 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13389   FUSE_LIB=-losxfuse
13390 else
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13392 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13393 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   ac_check_lib_save_LIBS=$LIBS
13397 LIBS="-lfuse  $LIBS"
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h.  */
13400
13401 /* Override any GCC internal prototype to avoid an error.
13402    Use char because int might match the return type of a GCC
13403    builtin and then its argument prototype would still apply.  */
13404 #ifdef __cplusplus
13405 extern "C"
13406 #endif
13407 char fuse_main ();
13408 int
13409 main ()
13410 {
13411 return fuse_main ();
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 if ac_fn_c_try_link "$LINENO"; then :
13417   ac_cv_lib_fuse_fuse_main=yes
13418 else
13419   ac_cv_lib_fuse_fuse_main=no
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext \
13422     conftest$ac_exeext conftest.$ac_ext
13423 LIBS=$ac_check_lib_save_LIBS
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13426 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13427 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13428   FUSE_LIB=-lfuse
13429 else
13430   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13432 as_fn_error $? "Cannot find fuse library.
13433 See \`config.log' for more details" "$LINENO" 5; }
13434 fi
13435
13436 fi
13437
13438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13439 $as_echo "Enabling fuse2fs" >&6; }
13440 fi
13441
13442 else
13443   for ac_header in pthread.h fuse.h
13444 do :
13445   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13447 #define FUSE_USE_VERSION 29
13448 #ifdef __linux__
13449 # include <linux/fs.h>
13450 # include <linux/falloc.h>
13451 # include <linux/xattr.h>
13452 #endif
13453 "
13454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13455   cat >>confdefs.h <<_ACEOF
13456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13457 _ACEOF
13458
13459 else
13460   FUSE_CMT="#"
13461 fi
13462
13463 done
13464
13465 if test -z "$FUSE_CMT"
13466 then
13467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13468 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13469 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13470   $as_echo_n "(cached) " >&6
13471 else
13472   ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-losxfuse  $LIBS"
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h.  */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478    Use char because int might match the return type of a GCC
13479    builtin and then its argument prototype would still apply.  */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char fuse_main ();
13484 int
13485 main ()
13486 {
13487 return fuse_main ();
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"; then :
13493   ac_cv_lib_osxfuse_fuse_main=yes
13494 else
13495   ac_cv_lib_osxfuse_fuse_main=no
13496 fi
13497 rm -f core conftest.err conftest.$ac_objext \
13498     conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13502 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13503 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13504   FUSE_LIB=-losxfuse
13505 else
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13507 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13508 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511   ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-lfuse  $LIBS"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515
13516 /* Override any GCC internal prototype to avoid an error.
13517    Use char because int might match the return type of a GCC
13518    builtin and then its argument prototype would still apply.  */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char fuse_main ();
13523 int
13524 main ()
13525 {
13526 return fuse_main ();
13527   ;
13528   return 0;
13529 }
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532   ac_cv_lib_fuse_fuse_main=yes
13533 else
13534   ac_cv_lib_fuse_fuse_main=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext \
13537     conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13541 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13542 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13543   FUSE_LIB=-lfuse
13544 else
13545   FUSE_CMT="#"
13546 fi
13547
13548 fi
13549
13550 fi
13551 if test -z "$FUSE_CMT"
13552 then
13553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13554 $as_echo "Enabling fuse2fs by default." >&6; }
13555 fi
13556
13557 fi
13558
13559
13560
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13562 $as_echo_n "checking for optreset... " >&6; }
13563 if ${ac_cv_have_optreset+:} false; then :
13564   $as_echo_n "(cached) " >&6
13565 else
13566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568 #include <unistd.h>
13569
13570 _ACEOF
13571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13572   $EGREP "optreset" >/dev/null 2>&1; then :
13573   ac_cv_have_optreset=yes
13574 else
13575   ac_cv_have_optreset=no
13576 fi
13577 rm -f conftest*
13578
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13581 $as_echo "$ac_cv_have_optreset" >&6; }
13582 if test $ac_cv_have_optreset = yes; then
13583
13584 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13585
13586 fi
13587
13588 SEM_INIT_LIB=''
13589 echo GL_THREADS_API: ${gl_threads_api}
13590 if test "${gl_threads_api}" != none
13591 then
13592   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13593 if test "x$ac_cv_func_sem_init" = xyes; then :
13594
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13597 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13598 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lpthread  $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605
13606 /* Override any GCC internal prototype to avoid an error.
13607    Use char because int might match the return type of a GCC
13608    builtin and then its argument prototype would still apply.  */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 char sem_init ();
13613 int
13614 main ()
13615 {
13616 return sem_init ();
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 if ac_fn_c_try_link "$LINENO"; then :
13622   ac_cv_lib_pthread_sem_init=yes
13623 else
13624   ac_cv_lib_pthread_sem_init=no
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext \
13627     conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13629 fi
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13631 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13632 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13633   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13634
13635         SEM_INIT_LIB=-lpthread
13636 else
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13638 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13639 if ${ac_cv_lib_rt_sem_init+:} false; then :
13640   $as_echo_n "(cached) " >&6
13641 else
13642   ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-lrt  $LIBS"
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h.  */
13646
13647 /* Override any GCC internal prototype to avoid an error.
13648    Use char because int might match the return type of a GCC
13649    builtin and then its argument prototype would still apply.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 char sem_init ();
13654 int
13655 main ()
13656 {
13657 return sem_init ();
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 if ac_fn_c_try_link "$LINENO"; then :
13663   ac_cv_lib_rt_sem_init=yes
13664 else
13665   ac_cv_lib_rt_sem_init=no
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext \
13668     conftest$ac_exeext conftest.$ac_ext
13669 LIBS=$ac_check_lib_save_LIBS
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13672 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13673 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13674   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13675
13676         SEM_INIT_LIB=-lrt
13677 else
13678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13679 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13680 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13681   $as_echo_n "(cached) " >&6
13682 else
13683   ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lposix4  $LIBS"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687
13688 /* Override any GCC internal prototype to avoid an error.
13689    Use char because int might match the return type of a GCC
13690    builtin and then its argument prototype would still apply.  */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 char sem_init ();
13695 int
13696 main ()
13697 {
13698 return sem_init ();
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 if ac_fn_c_try_link "$LINENO"; then :
13704   ac_cv_lib_posix4_sem_init=yes
13705 else
13706   ac_cv_lib_posix4_sem_init=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext \
13709     conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13713 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13714 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13715   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13716
13717         SEM_INIT_LIB=-lposix4
13718 fi
13719
13720 fi
13721
13722 fi
13723
13724 fi
13725 fi
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13728 $as_echo_n "checking for unified diff option... " >&6; }
13729 if diff -u $0 $0 > /dev/null 2>&1 ; then
13730    UNI_DIFF_OPTS=-u
13731 else
13732    UNI_DIFF_OPTS=-c
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13735 $as_echo "$UNI_DIFF_OPTS" >&6; }
13736
13737 case "$host_os" in
13738 linux*)
13739
13740 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13741
13742         ;;
13743 esac
13744 # Check whether --enable-lto was given.
13745 if test "${enable_lto+set}" = set; then :
13746   enableval=$enable_lto;
13747 else
13748   enable_lto=probe
13749 fi
13750
13751 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13753 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13754         OLD_CFLAGS="$CFLAGS"
13755         OLD_LDFLAGS="$LDFLAGS"
13756         LTO_FLAGS="-flto -ffat-lto-objects"
13757         CFLAGS="$CFLAGS $LTO_FLAGS"
13758         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13759         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h.  */
13761
13762 int
13763 main ()
13764 {
13765
13766   ;
13767   return 0;
13768 }
13769 _ACEOF
13770 if ac_fn_c_try_link "$LINENO"; then :
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772 $as_echo "yes" >&6; }
13773                 lto_cflags=$LTO_FLAGS
13774                 lto_ldflags=$LTO_FLAGS
13775                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13776 set dummy gcc-ar; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 $as_echo_n "checking for $ac_word... " >&6; }
13779 if ${ac_cv_path_gcc_ar+:} false; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782   case $gcc_ar in
13783   [\\/]* | ?:[\\/]*)
13784   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13785   ;;
13786   *)
13787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13789 do
13790   IFS=$as_save_IFS
13791   test -z "$as_dir" && as_dir=.
13792     for ac_exec_ext in '' $ac_executable_extensions; do
13793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796     break 2
13797   fi
13798 done
13799   done
13800 IFS=$as_save_IFS
13801
13802   ;;
13803 esac
13804 fi
13805 gcc_ar=$ac_cv_path_gcc_ar
13806 if test -n "$gcc_ar"; then
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13808 $as_echo "$gcc_ar" >&6; }
13809 else
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13816 set dummy gcc-ranlib; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_gcc_ranlib+:} false; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822   case $gcc_ranlib in
13823   [\\/]* | ?:[\\/]*)
13824   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13825   ;;
13826   *)
13827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13829 do
13830   IFS=$as_save_IFS
13831   test -z "$as_dir" && as_dir=.
13832     for ac_exec_ext in '' $ac_executable_extensions; do
13833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836     break 2
13837   fi
13838 done
13839   done
13840 IFS=$as_save_IFS
13841
13842   ;;
13843 esac
13844 fi
13845 gcc_ranlib=$ac_cv_path_gcc_ranlib
13846 if test -n "$gcc_ranlib"; then
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13848 $as_echo "$gcc_ranlib" >&6; }
13849 else
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852 fi
13853
13854
13855 else
13856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext \
13860     conftest$ac_exeext conftest.$ac_ext
13861         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13862                 have_lto=yes
13863                 AR="${gcc_ar}"
13864                 RANLIB="${gcc_ranlib}"
13865         fi
13866         CFLAGS="${OLD_CFLAGS}"
13867         LDFLAGS="${OLD_LDFLAGS}"
13868
13869
13870
13871 fi
13872 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13873         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13874 fi
13875 # Check whether --enable-ubsan was given.
13876 if test "${enable_ubsan+set}" = set; then :
13877   enableval=$enable_ubsan;
13878 else
13879   enable_ubsan=no
13880 fi
13881
13882 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13884 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13885         OLD_CFLAGS="$CFLAGS"
13886         OLD_LDFLAGS="$LDFLAGS"
13887         UBSAN_FLAGS="-fsanitize=undefined"
13888         CFLAGS="$CFLAGS $UBSAN_FLAGS"
13889         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h.  */
13892
13893 int
13894 main ()
13895 {
13896
13897   ;
13898   return 0;
13899 }
13900 _ACEOF
13901 if ac_fn_c_try_link "$LINENO"; then :
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13904                 ubsan_cflags=$UBSAN_FLAGS
13905                 ubsan_ldflags=$UBSAN_FLAGS
13906                 have_ubsan=yes
13907 else
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912     conftest$ac_exeext conftest.$ac_ext
13913         CFLAGS="${OLD_CFLAGS}"
13914         LDFLAGS="${OLD_LDFLAGS}"
13915
13916
13917
13918 fi
13919 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13920         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13921 fi
13922 LINUX_CMT="#"
13923 CYGWIN_CMT="#"
13924 UNIX_CMT=
13925 case "$host_os" in
13926 linux*)
13927         LINUX_CMT=
13928         ;;
13929 cygwin)
13930         CYGWIN_CMT=
13931         UNIX_CMT="#"
13932         ;;
13933 esac
13934
13935
13936
13937 E2SCRUB_CMT="$LINUX_CMT"
13938
13939 case "$host_os" in
13940 linux* | gnu* | k*bsd*-gnu)
13941         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13942                 root_prefix="";
13943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13944 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13945         fi
13946         ;;
13947 esac
13948 case "$host_os" in
13949 linux* | gnu* | k*bsd*-gnu)
13950         if test "$prefix" = NONE ; then
13951                 prefix="/usr";
13952                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13953 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13954                 if test "$mandir" = '${prefix}/man' ; then
13955                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13956 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13957                         mandir=/usr/share/man
13958                 fi
13959         fi
13960 ;;
13961 esac
13962 if test "$root_prefix" = NONE ; then
13963         if test "$prefix" = NONE ; then
13964                 root_prefix="$ac_default_prefix"
13965         else
13966                 root_prefix="$prefix"
13967         fi
13968         root_bindir=$bindir
13969         root_sbindir=$sbindir
13970         root_libdir=$libdir
13971         root_sysconfdir=$sysconfdir
13972 else
13973         root_bindir='${root_prefix}/bin'
13974         root_sbindir='${root_prefix}/sbin'
13975         root_libdir='${root_prefix}/lib'
13976         root_sysconfdir='${root_prefix}/etc'
13977 fi
13978 if test "$bindir" != '${exec_prefix}/bin'; then
13979     root_bindir=$bindir
13980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13981 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13982 fi
13983 if test "$sbindir" != '${exec_prefix}/sbin'; then
13984     root_sbindir=$sbindir
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13986 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13987 fi
13988 if test "$libdir" != '${exec_prefix}/lib'; then
13989     root_libdir=$libdir
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13991 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13992 fi
13993 if test "$sysconfdir" != '${prefix}/etc'; then
13994     root_sysconfdir=$sysconfdir
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13996 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13997 fi
13998
13999
14000
14001
14002
14003
14004 # Check whether --with-multiarch was given.
14005 if test "${with_multiarch+set}" = set; then :
14006   withval=$with_multiarch; if test "$withval" = "lib64"; then
14007     libdir=/usr/lib64
14008     root_libdir=/lib64
14009 else
14010     libdir=$libdir/$withval
14011     root_libdir=$root_libdir/$withval
14012 fi
14013
14014 fi
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14017 $as_echo_n "checking whether we can link with -static... " >&6; }
14018 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h.  */
14024 #include <stdio.h>
14025 int
14026 main ()
14027 {
14028 fflush(stdout);
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034   ac_cv_e2fsprogs_use_static=yes
14035 else
14036   ac_cv_e2fsprogs_use_static=no
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext \
14039     conftest$ac_exeext conftest.$ac_ext
14040 LDFLAGS=$SAVE_LDFLAGS
14041 fi
14042
14043 case "$host_os" in
14044 solaris2.*)
14045         ac_cv_e2fsprogs_use_static=no
14046 ;;
14047 esac
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14049 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14050 if test $ac_cv_e2fsprogs_use_static = yes; then
14051         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14052 fi
14053
14054 case "$host_os" in
14055 darwin*)
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14057 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14058
14059 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14060
14061         ;;
14062 esac
14063 if test "$cross_compiling" = yes ; then
14064   DO_TEST_SUITE=
14065 else
14066   DO_TEST_SUITE=check
14067 fi
14068
14069 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14070 if test -n "$CPPFLAGS" ; then
14071         INCLUDES="$INCLUDES $CPPFLAGS"
14072 fi
14073 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14074         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14075 fi
14076 if test -n "$WITH_DIET_LIBC" ; then
14077         INCLUDES="$INCLUDES -D_REENTRANT"
14078 fi
14079
14080
14081         MKINSTALLDIRS=
14082   if test -n "$ac_aux_dir"; then
14083     case "$ac_aux_dir" in
14084       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14085       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14086     esac
14087   fi
14088   if test -z "$MKINSTALLDIRS"; then
14089     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14090   fi
14091
14092
14093 if test $cross_compiling = no; then
14094    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14095    BUILD_LDFLAGS="$LDFLAGS"
14096 fi
14097
14098
14099 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14100 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14101 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14102
14103
14104
14105
14106
14107 # Check whether --with-udev_rules_dir was given.
14108 if test "${with_udev_rules_dir+set}" = set; then :
14109   withval=$with_udev_rules_dir;
14110 else
14111   with_udev_rules_dir=yes
14112 fi
14113
14114 if test "x${with_udev_rules_dir}" != "xno"; then :
14115
14116         if test "x${with_udev_rules_dir}" = "xyes"; then :
14117
14118
14119 pkg_failed=no
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14121 $as_echo_n "checking for udev... " >&6; }
14122
14123 if test -n "$udev_CFLAGS"; then
14124     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14125  elif test -n "$PKG_CONFIG"; then
14126     if test -n "$PKG_CONFIG" && \
14127     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14128   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14129   ac_status=$?
14130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131   test $ac_status = 0; }; then
14132   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14133                       test "x$?" != "x0" && pkg_failed=yes
14134 else
14135   pkg_failed=yes
14136 fi
14137  else
14138     pkg_failed=untried
14139 fi
14140 if test -n "$udev_LIBS"; then
14141     pkg_cv_udev_LIBS="$udev_LIBS"
14142  elif test -n "$PKG_CONFIG"; then
14143     if test -n "$PKG_CONFIG" && \
14144     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14145   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14146   ac_status=$?
14147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14148   test $ac_status = 0; }; then
14149   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14150                       test "x$?" != "x0" && pkg_failed=yes
14151 else
14152   pkg_failed=yes
14153 fi
14154  else
14155     pkg_failed=untried
14156 fi
14157
14158
14159
14160 if test $pkg_failed = yes; then
14161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14163
14164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165         _pkg_short_errors_supported=yes
14166 else
14167         _pkg_short_errors_supported=no
14168 fi
14169         if test $_pkg_short_errors_supported = yes; then
14170                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14171         else
14172                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14173         fi
14174         # Put the nasty error message in config.log where it belongs
14175         echo "$udev_PKG_ERRORS" >&5
14176
14177
14178                         with_udev_rules_dir=""
14179
14180 elif test $pkg_failed = untried; then
14181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14183
14184                         with_udev_rules_dir=""
14185
14186 else
14187         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14188         udev_LIBS=$pkg_cv_udev_LIBS
14189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190 $as_echo "yes" >&6; }
14191
14192                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14193
14194 fi
14195
14196 fi
14197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14198 $as_echo_n "checking for udev rules dir... " >&6; }
14199         pkg_udev_rules_dir="${with_udev_rules_dir}"
14200         if test -n "${pkg_udev_rules_dir}"; then :
14201
14202                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14203 $as_echo "${pkg_udev_rules_dir}" >&6; }
14204                 have_udev="yes"
14205
14206 else
14207
14208                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14210                 have_udev="no"
14211
14212 fi
14213
14214 else
14215
14216         have_udev="disabled"
14217
14218 fi
14219
14220
14221
14222
14223 # Check whether --with-crond_dir was given.
14224 if test "${with_crond_dir+set}" = set; then :
14225   withval=$with_crond_dir;
14226 else
14227   with_crond_dir=yes
14228 fi
14229
14230 if test "x${with_crond_dir}" != "xno"; then :
14231
14232         if test "x${with_crond_dir}" = "xyes"; then :
14233
14234                 if test -d "/etc/cron.d"; then :
14235   with_crond_dir="/etc/cron.d"
14236 fi
14237
14238 fi
14239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14240 $as_echo_n "checking for system crontab dir... " >&6; }
14241         crond_dir="${with_crond_dir}"
14242         if test -n "${crond_dir}"; then :
14243
14244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14245 $as_echo "${crond_dir}" >&6; }
14246                 have_crond="yes"
14247
14248 else
14249
14250                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 $as_echo "no" >&6; }
14252                 have_crond="no"
14253
14254 fi
14255
14256 else
14257
14258         have_crond="disabled"
14259
14260 fi
14261
14262
14263
14264
14265 # Check whether --with-systemd_unit_dir was given.
14266 if test "${with_systemd_unit_dir+set}" = set; then :
14267   withval=$with_systemd_unit_dir;
14268 else
14269   with_systemd_unit_dir=yes
14270 fi
14271
14272 if test "x${with_systemd_unit_dir}" != "xno"; then :
14273
14274         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14275
14276
14277 pkg_failed=no
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14279 $as_echo_n "checking for systemd... " >&6; }
14280
14281 if test -n "$systemd_CFLAGS"; then
14282     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14283  elif test -n "$PKG_CONFIG"; then
14284     if test -n "$PKG_CONFIG" && \
14285     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14286   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14287   ac_status=$?
14288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289   test $ac_status = 0; }; then
14290   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14291                       test "x$?" != "x0" && pkg_failed=yes
14292 else
14293   pkg_failed=yes
14294 fi
14295  else
14296     pkg_failed=untried
14297 fi
14298 if test -n "$systemd_LIBS"; then
14299     pkg_cv_systemd_LIBS="$systemd_LIBS"
14300  elif test -n "$PKG_CONFIG"; then
14301     if test -n "$PKG_CONFIG" && \
14302     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14303   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14304   ac_status=$?
14305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306   test $ac_status = 0; }; then
14307   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14308                       test "x$?" != "x0" && pkg_failed=yes
14309 else
14310   pkg_failed=yes
14311 fi
14312  else
14313     pkg_failed=untried
14314 fi
14315
14316
14317
14318 if test $pkg_failed = yes; then
14319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321
14322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14323         _pkg_short_errors_supported=yes
14324 else
14325         _pkg_short_errors_supported=no
14326 fi
14327         if test $_pkg_short_errors_supported = yes; then
14328                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14329         else
14330                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14331         fi
14332         # Put the nasty error message in config.log where it belongs
14333         echo "$systemd_PKG_ERRORS" >&5
14334
14335
14336                         with_systemd_unit_dir=""
14337
14338 elif test $pkg_failed = untried; then
14339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341
14342                         with_systemd_unit_dir=""
14343
14344 else
14345         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14346         systemd_LIBS=$pkg_cv_systemd_LIBS
14347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 $as_echo "yes" >&6; }
14349
14350                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14351
14352 fi
14353
14354
14355 fi
14356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14357 $as_echo_n "checking for systemd system unit dir... " >&6; }
14358         systemd_system_unit_dir="${with_systemd_unit_dir}"
14359         if test -n "${systemd_system_unit_dir}"; then :
14360
14361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14362 $as_echo "${systemd_system_unit_dir}" >&6; }
14363                 have_systemd="yes"
14364
14365 else
14366
14367                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14369                 have_systemd="no"
14370
14371 fi
14372
14373 else
14374
14375         have_systemd="disabled"
14376
14377 fi
14378
14379
14380
14381 test -d lib || mkdir lib
14382 test -d include || mkdir include
14383 test -d include/linux || mkdir include/linux
14384 test -d include/asm || mkdir include/asm
14385 if test -z "$UUID_CMT" ; then
14386         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14387                 lib/uuid/uuid_types.h"
14388 fi
14389 if test -z "$BLKID_CMT" ; then
14390         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14391                 lib/blkid/blkid_types.h"
14392 fi
14393 for i in MCONFIG Makefile e2fsprogs.spec \
14394         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14395         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14396         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14397         $uuid_out_list $blkid_out_list lib/support/Makefile \
14398         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14399         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14400         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14401         resize/Makefile doc/Makefile intl/Makefile \
14402         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14403         if test -d `dirname ${srcdir}/$i` ; then
14404                 outlist="$outlist $i"
14405         fi
14406 done
14407 ac_config_files="$ac_config_files $outlist"
14408
14409 cat >confcache <<\_ACEOF
14410 # This file is a shell script that caches the results of configure
14411 # tests run on this system so they can be shared between configure
14412 # scripts and configure runs, see configure's option --config-cache.
14413 # It is not useful on other systems.  If it contains results you don't
14414 # want to keep, you may remove or edit it.
14415 #
14416 # config.status only pays attention to the cache file if you give it
14417 # the --recheck option to rerun configure.
14418 #
14419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14421 # following values.
14422
14423 _ACEOF
14424
14425 # The following way of writing the cache mishandles newlines in values,
14426 # but we know of no workaround that is simple, portable, and efficient.
14427 # So, we kill variables containing newlines.
14428 # Ultrix sh set writes to stderr and can't be redirected directly,
14429 # and sets the high bit in the cache file unless we assign to the vars.
14430 (
14431   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14432     eval ac_val=\$$ac_var
14433     case $ac_val in #(
14434     *${as_nl}*)
14435       case $ac_var in #(
14436       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14438       esac
14439       case $ac_var in #(
14440       _ | IFS | as_nl) ;; #(
14441       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14442       *) { eval $ac_var=; unset $ac_var;} ;;
14443       esac ;;
14444     esac
14445   done
14446
14447   (set) 2>&1 |
14448     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14449     *${as_nl}ac_space=\ *)
14450       # `set' does not quote correctly, so add quotes: double-quote
14451       # substitution turns \\\\ into \\, and sed turns \\ into \.
14452       sed -n \
14453         "s/'/'\\\\''/g;
14454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14455       ;; #(
14456     *)
14457       # `set' quotes correctly as required by POSIX, so do not add quotes.
14458       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14459       ;;
14460     esac |
14461     sort
14462 ) |
14463   sed '
14464      /^ac_cv_env_/b end
14465      t clear
14466      :clear
14467      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14468      t end
14469      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14470      :end' >>confcache
14471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14472   if test -w "$cache_file"; then
14473     if test "x$cache_file" != "x/dev/null"; then
14474       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14475 $as_echo "$as_me: updating cache $cache_file" >&6;}
14476       if test ! -f "$cache_file" || test -h "$cache_file"; then
14477         cat confcache >"$cache_file"
14478       else
14479         case $cache_file in #(
14480         */* | ?:*)
14481           mv -f confcache "$cache_file"$$ &&
14482           mv -f "$cache_file"$$ "$cache_file" ;; #(
14483         *)
14484           mv -f confcache "$cache_file" ;;
14485         esac
14486       fi
14487     fi
14488   else
14489     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14491   fi
14492 fi
14493 rm -f confcache
14494
14495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14496 # Let make expand exec_prefix.
14497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14498
14499 DEFS=-DHAVE_CONFIG_H
14500
14501 ac_libobjs=
14502 ac_ltlibobjs=
14503 U=
14504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14505   # 1. Remove the extension, and $U if already installed.
14506   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14507   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14508   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14509   #    will be set to the directory where LIBOBJS objects are built.
14510   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14511   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14512 done
14513 LIBOBJS=$ac_libobjs
14514
14515 LTLIBOBJS=$ac_ltlibobjs
14516
14517
14518
14519
14520 : "${CONFIG_STATUS=./config.status}"
14521 ac_write_fail=0
14522 ac_clean_files_save=$ac_clean_files
14523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14526 as_write_fail=0
14527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14528 #! $SHELL
14529 # Generated by $as_me.
14530 # Run this file to recreate the current configuration.
14531 # Compiler output produced by configure, useful for debugging
14532 # configure, is in config.log if it exists.
14533
14534 debug=false
14535 ac_cs_recheck=false
14536 ac_cs_silent=false
14537
14538 SHELL=\${CONFIG_SHELL-$SHELL}
14539 export SHELL
14540 _ASEOF
14541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14542 ## -------------------- ##
14543 ## M4sh Initialization. ##
14544 ## -------------------- ##
14545
14546 # Be more Bourne compatible
14547 DUALCASE=1; export DUALCASE # for MKS sh
14548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14549   emulate sh
14550   NULLCMD=:
14551   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14552   # is contrary to our usage.  Disable this feature.
14553   alias -g '${1+"$@"}'='"$@"'
14554   setopt NO_GLOB_SUBST
14555 else
14556   case `(set -o) 2>/dev/null` in #(
14557   *posix*) :
14558     set -o posix ;; #(
14559   *) :
14560      ;;
14561 esac
14562 fi
14563
14564
14565 as_nl='
14566 '
14567 export as_nl
14568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14572 # Prefer a ksh shell builtin over an external printf program on Solaris,
14573 # but without wasting forks for bash or zsh.
14574 if test -z "$BASH_VERSION$ZSH_VERSION" \
14575     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14576   as_echo='print -r --'
14577   as_echo_n='print -rn --'
14578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14579   as_echo='printf %s\n'
14580   as_echo_n='printf %s'
14581 else
14582   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14583     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14584     as_echo_n='/usr/ucb/echo -n'
14585   else
14586     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14587     as_echo_n_body='eval
14588       arg=$1;
14589       case $arg in #(
14590       *"$as_nl"*)
14591         expr "X$arg" : "X\\(.*\\)$as_nl";
14592         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14593       esac;
14594       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14595     '
14596     export as_echo_n_body
14597     as_echo_n='sh -c $as_echo_n_body as_echo'
14598   fi
14599   export as_echo_body
14600   as_echo='sh -c $as_echo_body as_echo'
14601 fi
14602
14603 # The user is always right.
14604 if test "${PATH_SEPARATOR+set}" != set; then
14605   PATH_SEPARATOR=:
14606   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14607     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14608       PATH_SEPARATOR=';'
14609   }
14610 fi
14611
14612
14613 # IFS
14614 # We need space, tab and new line, in precisely that order.  Quoting is
14615 # there to prevent editors from complaining about space-tab.
14616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14617 # splitting by setting IFS to empty value.)
14618 IFS=" ""        $as_nl"
14619
14620 # Find who we are.  Look in the path if we contain no directory separator.
14621 as_myself=
14622 case $0 in #((
14623   *[\\/]* ) as_myself=$0 ;;
14624   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14626 do
14627   IFS=$as_save_IFS
14628   test -z "$as_dir" && as_dir=.
14629     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14630   done
14631 IFS=$as_save_IFS
14632
14633      ;;
14634 esac
14635 # We did not find ourselves, most probably we were run as `sh COMMAND'
14636 # in which case we are not to be found in the path.
14637 if test "x$as_myself" = x; then
14638   as_myself=$0
14639 fi
14640 if test ! -f "$as_myself"; then
14641   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14642   exit 1
14643 fi
14644
14645 # Unset variables that we do not need and which cause bugs (e.g. in
14646 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14647 # suppresses any "Segmentation fault" message there.  '((' could
14648 # trigger a bug in pdksh 5.2.14.
14649 for as_var in BASH_ENV ENV MAIL MAILPATH
14650 do eval test x\${$as_var+set} = xset \
14651   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14652 done
14653 PS1='$ '
14654 PS2='> '
14655 PS4='+ '
14656
14657 # NLS nuisances.
14658 LC_ALL=C
14659 export LC_ALL
14660 LANGUAGE=C
14661 export LANGUAGE
14662
14663 # CDPATH.
14664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14665
14666
14667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14668 # ----------------------------------------
14669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14671 # script with STATUS, using 1 if that was 0.
14672 as_fn_error ()
14673 {
14674   as_status=$1; test $as_status -eq 0 && as_status=1
14675   if test "$4"; then
14676     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14677     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14678   fi
14679   $as_echo "$as_me: error: $2" >&2
14680   as_fn_exit $as_status
14681 } # as_fn_error
14682
14683
14684 # as_fn_set_status STATUS
14685 # -----------------------
14686 # Set $? to STATUS, without forking.
14687 as_fn_set_status ()
14688 {
14689   return $1
14690 } # as_fn_set_status
14691
14692 # as_fn_exit STATUS
14693 # -----------------
14694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14695 as_fn_exit ()
14696 {
14697   set +e
14698   as_fn_set_status $1
14699   exit $1
14700 } # as_fn_exit
14701
14702 # as_fn_unset VAR
14703 # ---------------
14704 # Portably unset VAR.
14705 as_fn_unset ()
14706 {
14707   { eval $1=; unset $1;}
14708 }
14709 as_unset=as_fn_unset
14710 # as_fn_append VAR VALUE
14711 # ----------------------
14712 # Append the text in VALUE to the end of the definition contained in VAR. Take
14713 # advantage of any shell optimizations that allow amortized linear growth over
14714 # repeated appends, instead of the typical quadratic growth present in naive
14715 # implementations.
14716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14717   eval 'as_fn_append ()
14718   {
14719     eval $1+=\$2
14720   }'
14721 else
14722   as_fn_append ()
14723   {
14724     eval $1=\$$1\$2
14725   }
14726 fi # as_fn_append
14727
14728 # as_fn_arith ARG...
14729 # ------------------
14730 # Perform arithmetic evaluation on the ARGs, and store the result in the
14731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14732 # must be portable across $(()) and expr.
14733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14734   eval 'as_fn_arith ()
14735   {
14736     as_val=$(( $* ))
14737   }'
14738 else
14739   as_fn_arith ()
14740   {
14741     as_val=`expr "$@" || test $? -eq 1`
14742   }
14743 fi # as_fn_arith
14744
14745
14746 if expr a : '\(a\)' >/dev/null 2>&1 &&
14747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14748   as_expr=expr
14749 else
14750   as_expr=false
14751 fi
14752
14753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14754   as_basename=basename
14755 else
14756   as_basename=false
14757 fi
14758
14759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14760   as_dirname=dirname
14761 else
14762   as_dirname=false
14763 fi
14764
14765 as_me=`$as_basename -- "$0" ||
14766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14767          X"$0" : 'X\(//\)$' \| \
14768          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14769 $as_echo X/"$0" |
14770     sed '/^.*\/\([^/][^/]*\)\/*$/{
14771             s//\1/
14772             q
14773           }
14774           /^X\/\(\/\/\)$/{
14775             s//\1/
14776             q
14777           }
14778           /^X\/\(\/\).*/{
14779             s//\1/
14780             q
14781           }
14782           s/.*/./; q'`
14783
14784 # Avoid depending upon Character Ranges.
14785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14788 as_cr_digits='0123456789'
14789 as_cr_alnum=$as_cr_Letters$as_cr_digits
14790
14791 ECHO_C= ECHO_N= ECHO_T=
14792 case `echo -n x` in #(((((
14793 -n*)
14794   case `echo 'xy\c'` in
14795   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14796   xy)  ECHO_C='\c';;
14797   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14798        ECHO_T=' ';;
14799   esac;;
14800 *)
14801   ECHO_N='-n';;
14802 esac
14803
14804 rm -f conf$$ conf$$.exe conf$$.file
14805 if test -d conf$$.dir; then
14806   rm -f conf$$.dir/conf$$.file
14807 else
14808   rm -f conf$$.dir
14809   mkdir conf$$.dir 2>/dev/null
14810 fi
14811 if (echo >conf$$.file) 2>/dev/null; then
14812   if ln -s conf$$.file conf$$ 2>/dev/null; then
14813     as_ln_s='ln -s'
14814     # ... but there are two gotchas:
14815     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14816     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14817     # In both cases, we have to default to `cp -pR'.
14818     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14819       as_ln_s='cp -pR'
14820   elif ln conf$$.file conf$$ 2>/dev/null; then
14821     as_ln_s=ln
14822   else
14823     as_ln_s='cp -pR'
14824   fi
14825 else
14826   as_ln_s='cp -pR'
14827 fi
14828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14829 rmdir conf$$.dir 2>/dev/null
14830
14831
14832 # as_fn_mkdir_p
14833 # -------------
14834 # Create "$as_dir" as a directory, including parents if necessary.
14835 as_fn_mkdir_p ()
14836 {
14837
14838   case $as_dir in #(
14839   -*) as_dir=./$as_dir;;
14840   esac
14841   test -d "$as_dir" || eval $as_mkdir_p || {
14842     as_dirs=
14843     while :; do
14844       case $as_dir in #(
14845       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14846       *) as_qdir=$as_dir;;
14847       esac
14848       as_dirs="'$as_qdir' $as_dirs"
14849       as_dir=`$as_dirname -- "$as_dir" ||
14850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14851          X"$as_dir" : 'X\(//\)[^/]' \| \
14852          X"$as_dir" : 'X\(//\)$' \| \
14853          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14854 $as_echo X"$as_dir" |
14855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14856             s//\1/
14857             q
14858           }
14859           /^X\(\/\/\)[^/].*/{
14860             s//\1/
14861             q
14862           }
14863           /^X\(\/\/\)$/{
14864             s//\1/
14865             q
14866           }
14867           /^X\(\/\).*/{
14868             s//\1/
14869             q
14870           }
14871           s/.*/./; q'`
14872       test -d "$as_dir" && break
14873     done
14874     test -z "$as_dirs" || eval "mkdir $as_dirs"
14875   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14876
14877
14878 } # as_fn_mkdir_p
14879 if mkdir -p . 2>/dev/null; then
14880   as_mkdir_p='mkdir -p "$as_dir"'
14881 else
14882   test -d ./-p && rmdir ./-p
14883   as_mkdir_p=false
14884 fi
14885
14886
14887 # as_fn_executable_p FILE
14888 # -----------------------
14889 # Test if FILE is an executable regular file.
14890 as_fn_executable_p ()
14891 {
14892   test -f "$1" && test -x "$1"
14893 } # as_fn_executable_p
14894 as_test_x='test -x'
14895 as_executable_p=as_fn_executable_p
14896
14897 # Sed expression to map a string onto a valid CPP name.
14898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14899
14900 # Sed expression to map a string onto a valid variable name.
14901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14902
14903
14904 exec 6>&1
14905 ## ----------------------------------- ##
14906 ## Main body of $CONFIG_STATUS script. ##
14907 ## ----------------------------------- ##
14908 _ASEOF
14909 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14910
14911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912 # Save the log message, to keep $0 and so on meaningful, and to
14913 # report actual input values of CONFIG_FILES etc. instead of their
14914 # values after options handling.
14915 ac_log="
14916 This file was extended by $as_me, which was
14917 generated by GNU Autoconf 2.69.  Invocation command line was
14918
14919   CONFIG_FILES    = $CONFIG_FILES
14920   CONFIG_HEADERS  = $CONFIG_HEADERS
14921   CONFIG_LINKS    = $CONFIG_LINKS
14922   CONFIG_COMMANDS = $CONFIG_COMMANDS
14923   $ $0 $@
14924
14925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14926 "
14927
14928 _ACEOF
14929
14930 case $ac_config_files in *"
14931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14932 esac
14933
14934 case $ac_config_headers in *"
14935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14936 esac
14937
14938
14939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14940 # Files that config.status was made for.
14941 config_files="$ac_config_files"
14942 config_headers="$ac_config_headers"
14943 config_commands="$ac_config_commands"
14944
14945 _ACEOF
14946
14947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948 ac_cs_usage="\
14949 \`$as_me' instantiates files and other configuration actions
14950 from templates according to the current configuration.  Unless the files
14951 and actions are specified as TAGs, all are instantiated by default.
14952
14953 Usage: $0 [OPTION]... [TAG]...
14954
14955   -h, --help       print this help, then exit
14956   -V, --version    print version number and configuration settings, then exit
14957       --config     print configuration, then exit
14958   -q, --quiet, --silent
14959                    do not print progress messages
14960   -d, --debug      don't remove temporary files
14961       --recheck    update $as_me by reconfiguring in the same conditions
14962       --file=FILE[:TEMPLATE]
14963                    instantiate the configuration file FILE
14964       --header=FILE[:TEMPLATE]
14965                    instantiate the configuration header FILE
14966
14967 Configuration files:
14968 $config_files
14969
14970 Configuration headers:
14971 $config_headers
14972
14973 Configuration commands:
14974 $config_commands
14975
14976 Report bugs to the package provider."
14977
14978 _ACEOF
14979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14981 ac_cs_version="\\
14982 config.status
14983 configured by $0, generated by GNU Autoconf 2.69,
14984   with options \\"\$ac_cs_config\\"
14985
14986 Copyright (C) 2012 Free Software Foundation, Inc.
14987 This config.status script is free software; the Free Software Foundation
14988 gives unlimited permission to copy, distribute and modify it."
14989
14990 ac_pwd='$ac_pwd'
14991 srcdir='$srcdir'
14992 INSTALL='$INSTALL'
14993 MKDIR_P='$MKDIR_P'
14994 AWK='$AWK'
14995 test -n "\$AWK" || AWK=awk
14996 _ACEOF
14997
14998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14999 # The default lists apply if the user does not specify any file.
15000 ac_need_defaults=:
15001 while test $# != 0
15002 do
15003   case $1 in
15004   --*=?*)
15005     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15006     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15007     ac_shift=:
15008     ;;
15009   --*=)
15010     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15011     ac_optarg=
15012     ac_shift=:
15013     ;;
15014   *)
15015     ac_option=$1
15016     ac_optarg=$2
15017     ac_shift=shift
15018     ;;
15019   esac
15020
15021   case $ac_option in
15022   # Handling of the options.
15023   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15024     ac_cs_recheck=: ;;
15025   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15026     $as_echo "$ac_cs_version"; exit ;;
15027   --config | --confi | --conf | --con | --co | --c )
15028     $as_echo "$ac_cs_config"; exit ;;
15029   --debug | --debu | --deb | --de | --d | -d )
15030     debug=: ;;
15031   --file | --fil | --fi | --f )
15032     $ac_shift
15033     case $ac_optarg in
15034     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15035     '') as_fn_error $? "missing file argument" ;;
15036     esac
15037     as_fn_append CONFIG_FILES " '$ac_optarg'"
15038     ac_need_defaults=false;;
15039   --header | --heade | --head | --hea )
15040     $ac_shift
15041     case $ac_optarg in
15042     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15043     esac
15044     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15045     ac_need_defaults=false;;
15046   --he | --h)
15047     # Conflict between --help and --header
15048     as_fn_error $? "ambiguous option: \`$1'
15049 Try \`$0 --help' for more information.";;
15050   --help | --hel | -h )
15051     $as_echo "$ac_cs_usage"; exit ;;
15052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15053   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15054     ac_cs_silent=: ;;
15055
15056   # This is an error.
15057   -*) as_fn_error $? "unrecognized option: \`$1'
15058 Try \`$0 --help' for more information." ;;
15059
15060   *) as_fn_append ac_config_targets " $1"
15061      ac_need_defaults=false ;;
15062
15063   esac
15064   shift
15065 done
15066
15067 ac_configure_extra_args=
15068
15069 if $ac_cs_silent; then
15070   exec 6>/dev/null
15071   ac_configure_extra_args="$ac_configure_extra_args --silent"
15072 fi
15073
15074 _ACEOF
15075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076 if \$ac_cs_recheck; then
15077   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15078   shift
15079   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15080   CONFIG_SHELL='$SHELL'
15081   export CONFIG_SHELL
15082   exec "\$@"
15083 fi
15084
15085 _ACEOF
15086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087 exec 5>>config.log
15088 {
15089   echo
15090   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15091 ## Running $as_me. ##
15092 _ASBOX
15093   $as_echo "$ac_log"
15094 } >&5
15095
15096 _ACEOF
15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098 #
15099 # INIT-COMMANDS
15100 #
15101 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15102     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15103     # from automake < 1.5.
15104     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15105     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15106     LINGUAS="${LINGUAS-%UNSET%}"
15107
15108
15109 _ACEOF
15110
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112
15113 # Handling of arguments.
15114 for ac_config_target in $ac_config_targets
15115 do
15116   case $ac_config_target in
15117     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15118     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15119     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15120
15121   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15122   esac
15123 done
15124
15125
15126 # If the user did not use the arguments to specify the items to instantiate,
15127 # then the envvar interface is used.  Set only those that are not.
15128 # We use the long form for the default assignment because of an extremely
15129 # bizarre bug on SunOS 4.1.3.
15130 if $ac_need_defaults; then
15131   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15132   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15133   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15134 fi
15135
15136 # Have a temporary directory for convenience.  Make it in the build tree
15137 # simply because there is no reason against having it here, and in addition,
15138 # creating and moving files from /tmp can sometimes cause problems.
15139 # Hook for its removal unless debugging.
15140 # Note that there is a small window in which the directory will not be cleaned:
15141 # after its creation but before its name has been assigned to `$tmp'.
15142 $debug ||
15143 {
15144   tmp= ac_tmp=
15145   trap 'exit_status=$?
15146   : "${ac_tmp:=$tmp}"
15147   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15148 ' 0
15149   trap 'as_fn_exit 1' 1 2 13 15
15150 }
15151 # Create a (secure) tmp directory for tmp files.
15152
15153 {
15154   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15155   test -d "$tmp"
15156 }  ||
15157 {
15158   tmp=./conf$$-$RANDOM
15159   (umask 077 && mkdir "$tmp")
15160 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15161 ac_tmp=$tmp
15162
15163 # Set up the scripts for CONFIG_FILES section.
15164 # No need to generate them if there are no CONFIG_FILES.
15165 # This happens for instance with `./config.status config.h'.
15166 if test -n "$CONFIG_FILES"; then
15167
15168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15169   ac_cs_awk_getline=:
15170   ac_cs_awk_pipe_init=
15171   ac_cs_awk_read_file='
15172       while ((getline aline < (F[key])) > 0)
15173         print(aline)
15174       close(F[key])'
15175   ac_cs_awk_pipe_fini=
15176 else
15177   ac_cs_awk_getline=false
15178   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15179   ac_cs_awk_read_file='
15180       print "|#_!!_#|"
15181       print "cat " F[key] " &&"
15182       '$ac_cs_awk_pipe_init
15183   # The final `:' finishes the AND list.
15184   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15185 fi
15186 ac_cr=`echo X | tr X '\015'`
15187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15188 # But we know of no other shell where ac_cr would be empty at this
15189 # point, so we can use a bashism as a fallback.
15190 if test "x$ac_cr" = x; then
15191   eval ac_cr=\$\'\\r\'
15192 fi
15193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15195   ac_cs_awk_cr='\\r'
15196 else
15197   ac_cs_awk_cr=$ac_cr
15198 fi
15199
15200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15201 _ACEOF
15202
15203 # Create commands to substitute file output variables.
15204 {
15205   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15206   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15207   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15208   echo "_ACAWK" &&
15209   echo "_ACEOF"
15210 } >conf$$files.sh &&
15211 . ./conf$$files.sh ||
15212   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15213 rm -f conf$$files.sh
15214
15215 {
15216   echo "cat >conf$$subs.awk <<_ACEOF" &&
15217   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15218   echo "_ACEOF"
15219 } >conf$$subs.sh ||
15220   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15222 ac_delim='%!_!# '
15223 for ac_last_try in false false false false false :; do
15224   . ./conf$$subs.sh ||
15225     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15226
15227   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15228   if test $ac_delim_n = $ac_delim_num; then
15229     break
15230   elif $ac_last_try; then
15231     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15232   else
15233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15234   fi
15235 done
15236 rm -f conf$$subs.sh
15237
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15240 _ACEOF
15241 sed -n '
15242 h
15243 s/^/S["/; s/!.*/"]=/
15244 p
15245 g
15246 s/^[^!]*!//
15247 :repl
15248 t repl
15249 s/'"$ac_delim"'$//
15250 t delim
15251 :nl
15252 h
15253 s/\(.\{148\}\)..*/\1/
15254 t more1
15255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15256 p
15257 n
15258 b repl
15259 :more1
15260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15261 p
15262 g
15263 s/.\{148\}//
15264 t nl
15265 :delim
15266 h
15267 s/\(.\{148\}\)..*/\1/
15268 t more2
15269 s/["\\]/\\&/g; s/^/"/; s/$/"/
15270 p
15271 b
15272 :more2
15273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15274 p
15275 g
15276 s/.\{148\}//
15277 t delim
15278 ' <conf$$subs.awk | sed '
15279 /^[^""]/{
15280   N
15281   s/\n//
15282 }
15283 ' >>$CONFIG_STATUS || ac_write_fail=1
15284 rm -f conf$$subs.awk
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 _ACAWK
15287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15288   for (key in S) S_is_set[key] = 1
15289   FS = "\a"
15290   \$ac_cs_awk_pipe_init
15291 }
15292 {
15293   line = $ 0
15294   nfields = split(line, field, "@")
15295   substed = 0
15296   len = length(field[1])
15297   for (i = 2; i < nfields; i++) {
15298     key = field[i]
15299     keylen = length(key)
15300     if (S_is_set[key]) {
15301       value = S[key]
15302       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15303       len += length(value) + length(field[++i])
15304       substed = 1
15305     } else
15306       len += 1 + keylen
15307   }
15308   if (nfields == 3 && !substed) {
15309     key = field[2]
15310     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15311       \$ac_cs_awk_read_file
15312       next
15313     }
15314   }
15315   print line
15316 }
15317 \$ac_cs_awk_pipe_fini
15318 _ACAWK
15319 _ACEOF
15320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15322   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15323 else
15324   cat
15325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15326   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15327 _ACEOF
15328
15329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15331 # trailing colons and then remove the whole line if VPATH becomes empty
15332 # (actually we leave an empty line to preserve line numbers).
15333 if test "x$srcdir" = x.; then
15334   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15335 h
15336 s///
15337 s/^/:/
15338 s/[      ]*$/:/
15339 s/:\$(srcdir):/:/g
15340 s/:\${srcdir}:/:/g
15341 s/:@srcdir@:/:/g
15342 s/^:*//
15343 s/:*$//
15344 x
15345 s/\(=[   ]*\).*/\1/
15346 G
15347 s/\n//
15348 s/^[^=]*=[       ]*$//
15349 }'
15350 fi
15351
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 fi # test -n "$CONFIG_FILES"
15354
15355 # Set up the scripts for CONFIG_HEADERS section.
15356 # No need to generate them if there are no CONFIG_HEADERS.
15357 # This happens for instance with `./config.status Makefile'.
15358 if test -n "$CONFIG_HEADERS"; then
15359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15360 BEGIN {
15361 _ACEOF
15362
15363 # Transform confdefs.h into an awk script `defines.awk', embedded as
15364 # here-document in config.status, that substitutes the proper values into
15365 # config.h.in to produce config.h.
15366
15367 # Create a delimiter string that does not exist in confdefs.h, to ease
15368 # handling of long lines.
15369 ac_delim='%!_!# '
15370 for ac_last_try in false false :; do
15371   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15372   if test -z "$ac_tt"; then
15373     break
15374   elif $ac_last_try; then
15375     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15376   else
15377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15378   fi
15379 done
15380
15381 # For the awk script, D is an array of macro values keyed by name,
15382 # likewise P contains macro parameters if any.  Preserve backslash
15383 # newline sequences.
15384
15385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15386 sed -n '
15387 s/.\{148\}/&'"$ac_delim"'/g
15388 t rset
15389 :rset
15390 s/^[     ]*#[    ]*define[       ][      ]*/ /
15391 t def
15392 d
15393 :def
15394 s/\\$//
15395 t bsnl
15396 s/["\\]/\\&/g
15397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15398 D["\1"]=" \3"/p
15399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15400 d
15401 :bsnl
15402 s/["\\]/\\&/g
15403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15404 D["\1"]=" \3\\\\\\n"\\/p
15405 t cont
15406 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15407 t cont
15408 d
15409 :cont
15410 n
15411 s/.\{148\}/&'"$ac_delim"'/g
15412 t clear
15413 :clear
15414 s/\\$//
15415 t bsnlc
15416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15417 d
15418 :bsnlc
15419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15420 b cont
15421 ' <confdefs.h | sed '
15422 s/'"$ac_delim"'/"\\\
15423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15424
15425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15426   for (key in D) D_is_set[key] = 1
15427   FS = "\a"
15428 }
15429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15430   line = \$ 0
15431   split(line, arg, " ")
15432   if (arg[1] == "#") {
15433     defundef = arg[2]
15434     mac1 = arg[3]
15435   } else {
15436     defundef = substr(arg[1], 2)
15437     mac1 = arg[2]
15438   }
15439   split(mac1, mac2, "(") #)
15440   macro = mac2[1]
15441   prefix = substr(line, 1, index(line, defundef) - 1)
15442   if (D_is_set[macro]) {
15443     # Preserve the white space surrounding the "#".
15444     print prefix "define", macro P[macro] D[macro]
15445     next
15446   } else {
15447     # Replace #undef with comments.  This is necessary, for example,
15448     # in the case of _POSIX_SOURCE, which is predefined and required
15449     # on some systems where configure will not decide to define it.
15450     if (defundef == "undef") {
15451       print "/*", prefix defundef, macro, "*/"
15452       next
15453     }
15454   }
15455 }
15456 { print }
15457 _ACAWK
15458 _ACEOF
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15461 fi # test -n "$CONFIG_HEADERS"
15462
15463
15464 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15465 shift
15466 for ac_tag
15467 do
15468   case $ac_tag in
15469   :[FHLC]) ac_mode=$ac_tag; continue;;
15470   esac
15471   case $ac_mode$ac_tag in
15472   :[FHL]*:*);;
15473   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15474   :[FH]-) ac_tag=-:-;;
15475   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15476   esac
15477   ac_save_IFS=$IFS
15478   IFS=:
15479   set x $ac_tag
15480   IFS=$ac_save_IFS
15481   shift
15482   ac_file=$1
15483   shift
15484
15485   case $ac_mode in
15486   :L) ac_source=$1;;
15487   :[FH])
15488     ac_file_inputs=
15489     for ac_f
15490     do
15491       case $ac_f in
15492       -) ac_f="$ac_tmp/stdin";;
15493       *) # Look for the file first in the build tree, then in the source tree
15494          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15495          # because $ac_f cannot contain `:'.
15496          test -f "$ac_f" ||
15497            case $ac_f in
15498            [\\/$]*) false;;
15499            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15500            esac ||
15501            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15502       esac
15503       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15504       as_fn_append ac_file_inputs " '$ac_f'"
15505     done
15506
15507     # Let's still pretend it is `configure' which instantiates (i.e., don't
15508     # use $as_me), people would be surprised to read:
15509     #    /* config.h.  Generated by config.status.  */
15510     configure_input='Generated from '`
15511           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15512         `' by configure.'
15513     if test x"$ac_file" != x-; then
15514       configure_input="$ac_file.  $configure_input"
15515       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15516 $as_echo "$as_me: creating $ac_file" >&6;}
15517     fi
15518     # Neutralize special characters interpreted by sed in replacement strings.
15519     case $configure_input in #(
15520     *\&* | *\|* | *\\* )
15521        ac_sed_conf_input=`$as_echo "$configure_input" |
15522        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15523     *) ac_sed_conf_input=$configure_input;;
15524     esac
15525
15526     case $ac_tag in
15527     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15528       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15529     esac
15530     ;;
15531   esac
15532
15533   ac_dir=`$as_dirname -- "$ac_file" ||
15534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535          X"$ac_file" : 'X\(//\)[^/]' \| \
15536          X"$ac_file" : 'X\(//\)$' \| \
15537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X"$ac_file" |
15539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15540             s//\1/
15541             q
15542           }
15543           /^X\(\/\/\)[^/].*/{
15544             s//\1/
15545             q
15546           }
15547           /^X\(\/\/\)$/{
15548             s//\1/
15549             q
15550           }
15551           /^X\(\/\).*/{
15552             s//\1/
15553             q
15554           }
15555           s/.*/./; q'`
15556   as_dir="$ac_dir"; as_fn_mkdir_p
15557   ac_builddir=.
15558
15559 case "$ac_dir" in
15560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15561 *)
15562   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15563   # A ".." for each directory in $ac_dir_suffix.
15564   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15565   case $ac_top_builddir_sub in
15566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15568   esac ;;
15569 esac
15570 ac_abs_top_builddir=$ac_pwd
15571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15572 # for backward compatibility:
15573 ac_top_builddir=$ac_top_build_prefix
15574
15575 case $srcdir in
15576   .)  # We are building in place.
15577     ac_srcdir=.
15578     ac_top_srcdir=$ac_top_builddir_sub
15579     ac_abs_top_srcdir=$ac_pwd ;;
15580   [\\/]* | ?:[\\/]* )  # Absolute name.
15581     ac_srcdir=$srcdir$ac_dir_suffix;
15582     ac_top_srcdir=$srcdir
15583     ac_abs_top_srcdir=$srcdir ;;
15584   *) # Relative name.
15585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15586     ac_top_srcdir=$ac_top_build_prefix$srcdir
15587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15588 esac
15589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15590
15591
15592   case $ac_mode in
15593   :F)
15594   #
15595   # CONFIG_FILE
15596   #
15597
15598   case $INSTALL in
15599   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15600   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15601   esac
15602   ac_MKDIR_P=$MKDIR_P
15603   case $MKDIR_P in
15604   [\\/$]* | ?:[\\/]* ) ;;
15605   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15606   esac
15607 _ACEOF
15608
15609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 # If the template does not know about datarootdir, expand it.
15611 # FIXME: This hack should be removed a few years after 2.60.
15612 ac_datarootdir_hack=; ac_datarootdir_seen=
15613 ac_sed_dataroot='
15614 /datarootdir/ {
15615   p
15616   q
15617 }
15618 /@datadir@/p
15619 /@docdir@/p
15620 /@infodir@/p
15621 /@localedir@/p
15622 /@mandir@/p'
15623 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15624 *datarootdir*) ac_datarootdir_seen=yes;;
15625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15626   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15627 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15628 _ACEOF
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630   ac_datarootdir_hack='
15631   s&@datadir@&$datadir&g
15632   s&@docdir@&$docdir&g
15633   s&@infodir@&$infodir&g
15634   s&@localedir@&$localedir&g
15635   s&@mandir@&$mandir&g
15636   s&\\\${datarootdir}&$datarootdir&g' ;;
15637 esac
15638 _ACEOF
15639
15640 # Neutralize VPATH when `$srcdir' = `.'.
15641 # Shell code in configure.ac might set extrasub.
15642 # FIXME: do we really want to maintain this feature?
15643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15644 ac_sed_extra="$ac_vpsub
15645 $extrasub
15646 _ACEOF
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 :t
15649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15650 s|@configure_input@|$ac_sed_conf_input|;t t
15651 s&@top_builddir@&$ac_top_builddir_sub&;t t
15652 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15653 s&@srcdir@&$ac_srcdir&;t t
15654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15655 s&@top_srcdir@&$ac_top_srcdir&;t t
15656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15657 s&@builddir@&$ac_builddir&;t t
15658 s&@abs_builddir@&$ac_abs_builddir&;t t
15659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15660 s&@INSTALL@&$ac_INSTALL&;t t
15661 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15662 $ac_datarootdir_hack
15663 "
15664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15665 if $ac_cs_awk_getline; then
15666   $AWK -f "$ac_tmp/subs.awk"
15667 else
15668   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15669 fi \
15670   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15671
15672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15673   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15674   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15675       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15676   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15677 which seems to be undefined.  Please make sure it is defined" >&5
15678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15679 which seems to be undefined.  Please make sure it is defined" >&2;}
15680
15681   rm -f "$ac_tmp/stdin"
15682   case $ac_file in
15683   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15684   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15685   esac \
15686   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15687  ;;
15688   :H)
15689   #
15690   # CONFIG_HEADER
15691   #
15692   if test x"$ac_file" != x-; then
15693     {
15694       $as_echo "/* $configure_input  */" \
15695       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15696     } >"$ac_tmp/config.h" \
15697       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15698     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15699       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15701     else
15702       rm -f "$ac_file"
15703       mv "$ac_tmp/config.h" "$ac_file" \
15704         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15705     fi
15706   else
15707     $as_echo "/* $configure_input  */" \
15708       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15709       || as_fn_error $? "could not create -" "$LINENO" 5
15710   fi
15711  ;;
15712
15713   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15714 $as_echo "$as_me: executing $ac_file commands" >&6;}
15715  ;;
15716   esac
15717
15718
15719   case $ac_file$ac_mode in
15720     "po-directories":C)
15721     for ac_file in $CONFIG_FILES; do
15722       # Support "outfile[:infile[:infile...]]"
15723       case "$ac_file" in
15724         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15725       esac
15726       # PO directories have a Makefile.in generated from Makefile.in.in.
15727       case "$ac_file" in */Makefile.in)
15728         # Adjust a relative srcdir.
15729         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15730         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15731         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15732         # In autoconf-2.13 it is called $ac_given_srcdir.
15733         # In autoconf-2.50 it is called $srcdir.
15734         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15735         case "$ac_given_srcdir" in
15736           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15737           /*) top_srcdir="$ac_given_srcdir" ;;
15738           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15739         esac
15740         # Treat a directory as a PO directory if and only if it has a
15741         # POTFILES.in file. This allows packages to have multiple PO
15742         # directories under different names or in different locations.
15743         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15744           rm -f "$ac_dir/POTFILES"
15745           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15746           gt_tab=`printf '\t'`
15747           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"
15748           POMAKEFILEDEPS="POTFILES.in"
15749           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15750           # on $ac_dir but don't depend on user-specified configuration
15751           # parameters.
15752           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15753             # The LINGUAS file contains the set of available languages.
15754             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15755               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15756             fi
15757             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15758             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15759             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15760             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15761           else
15762             # The set of available languages was given in configure.in.
15763             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15764             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15765           fi
15766           # Compute POFILES
15767           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15768           # Compute UPDATEPOFILES
15769           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15770           # Compute DUMMYPOFILES
15771           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15772           # Compute GMOFILES
15773           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15774           case "$ac_given_srcdir" in
15775             .) srcdirpre= ;;
15776             *) srcdirpre='$(srcdir)/' ;;
15777           esac
15778           POFILES=
15779           UPDATEPOFILES=
15780           DUMMYPOFILES=
15781           GMOFILES=
15782           for lang in $ALL_LINGUAS; do
15783             POFILES="$POFILES $srcdirpre$lang.po"
15784             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15785             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15786             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15787           done
15788           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15789           # environment variable.
15790           INST_LINGUAS=
15791           if test -n "$ALL_LINGUAS"; then
15792             for presentlang in $ALL_LINGUAS; do
15793               useit=no
15794               if test "%UNSET%" != "$LINGUAS"; then
15795                 desiredlanguages="$LINGUAS"
15796               else
15797                 desiredlanguages="$ALL_LINGUAS"
15798               fi
15799               for desiredlang in $desiredlanguages; do
15800                 # Use the presentlang catalog if desiredlang is
15801                 #   a. equal to presentlang, or
15802                 #   b. a variant of presentlang (because in this case,
15803                 #      presentlang can be used as a fallback for messages
15804                 #      which are not translated in the desiredlang catalog).
15805                 case "$desiredlang" in
15806                   "$presentlang"*) useit=yes;;
15807                 esac
15808               done
15809               if test $useit = yes; then
15810                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15811               fi
15812             done
15813           fi
15814           CATALOGS=
15815           if test -n "$INST_LINGUAS"; then
15816             for lang in $INST_LINGUAS; do
15817               CATALOGS="$CATALOGS $lang.gmo"
15818             done
15819           fi
15820           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15821           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"
15822           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15823             if test -f "$f"; then
15824               case "$f" in
15825                 *.orig | *.bak | *~) ;;
15826                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15827               esac
15828             fi
15829           done
15830         fi
15831         ;;
15832       esac
15833     done ;;
15834
15835   esac
15836 done # for ac_tag
15837
15838
15839 as_fn_exit 0
15840 _ACEOF
15841 ac_clean_files=$ac_clean_files_save
15842
15843 test $ac_write_fail = 0 ||
15844   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15845
15846
15847 # configure is writing to config.log, and then calls config.status.
15848 # config.status does its own redirection, appending to config.log.
15849 # Unfortunately, on DOS this fails, as config.log is still kept open
15850 # by configure, so config.status won't be able to write to it; its
15851 # output is simply discarded.  So we exec the FD to /dev/null,
15852 # effectively closing config.log, so it can be properly (re)opened and
15853 # appended to by config.status.  When coming back to configure, we
15854 # need to make the FD available again.
15855 if test "$no_create" != yes; then
15856   ac_cs_success=:
15857   ac_config_status_args=
15858   test "$silent" = yes &&
15859     ac_config_status_args="$ac_config_status_args --quiet"
15860   exec 5>/dev/null
15861   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15862   exec 5>>config.log
15863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15864   # would make configure fail if this is the last instruction.
15865   $ac_cs_success || as_fn_exit 1
15866 fi
15867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15868   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15870 fi
15871
15872 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi