Whamcloud - gitweb
e2scrub: create online fsck tool of sorts
[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 pkg_udev_rules_dir
629 have_udev
630 udev_LIBS
631 udev_CFLAGS
632 LDFLAGS_SHLIB
633 CFLAGS_STLIB
634 CFLAGS_SHLIB
635 BUILD_LDFLAGS
636 BUILD_CFLAGS
637 MKINSTALLDIRS
638 INCLUDES
639 DO_TEST_SUITE
640 LDFLAGS_STATIC
641 root_sysconfdir
642 root_libdir
643 root_sbindir
644 root_bindir
645 root_prefix
646 E2SCRUB_CMT
647 UNIX_CMT
648 CYGWIN_CMT
649 LINUX_CMT
650 UNI_DIFF_OPTS
651 SEM_INIT_LIB
652 FUSE_CMT
653 FUSE_LIB
654 CLOCK_GETTIME_LIB
655 MAGIC_LIB
656 SOCKET_LIB
657 SIZEOF_TIME_T
658 SIZEOF_OFF_T
659 SIZEOF_LONG_LONG
660 SIZEOF_LONG
661 SIZEOF_INT
662 SIZEOF_SHORT
663 DD
664 BUILD_CC
665 MAKEINFO
666 STRIP
667 AR
668 LDCONFIG
669 PERL
670 AWK
671 CHMOD
672 RM
673 CP
674 MV
675 LN_S
676 LN
677 ifNotGNUmake
678 ifGNUmake
679 BINARY_TYPE
680 POSUB
681 LTLIBINTL
682 LIBINTL
683 INTLLIBS
684 INTL_LIBTOOL_SUFFIX_PREFIX
685 INTLOBJS
686 GENCAT
687 INSTOBJEXT
688 DATADIRNAME
689 CATOBJEXT
690 USE_INCLUDED_LIBINTL
691 BUILD_INCLUDED_LIBINTL
692 LTLIBC
693 WINDRES
694 WOE32
695 WOE32DLL
696 HAVE_WPRINTF
697 HAVE_NEWLOCALE
698 HAVE_SNPRINTF
699 HAVE_ASPRINTF
700 HAVE_POSIX_PRINTF
701 INTL_DEFAULT_VERBOSITY
702 INTL_MACOSX_LIBS
703 GLIBC21
704 INTLBISON
705 LTLIBICONV
706 LIBICONV
707 LTLIBMULTITHREAD
708 LIBMULTITHREAD
709 LTLIBTHREAD
710 LIBTHREAD
711 LIBPTH_PREFIX
712 LTLIBPTH
713 LIBPTH
714 PRI_MACROS_BROKEN
715 ALLOCA
716 HAVE_VISIBILITY
717 CFLAG_VISIBILITY
718 RANLIB
719 GLIBC2
720 XGETTEXT_EXTRA_OPTIONS
721 MSGMERGE
722 XGETTEXT_015
723 XGETTEXT
724 GMSGFMT_015
725 MSGFMT_015
726 GMSGFMT
727 MSGFMT
728 GETTEXT_MACRO_VERSION
729 USE_NLS
730 SED
731 MKDIR_P
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 SET_MAKE
736 VERSION
737 PACKAGE
738 GETTEXT_PACKAGE
739 TDB_MAN_COMMENT
740 TDB_CMT
741 UUIDD_CMT
742 E2INITRD_MAN
743 E2INITRD_PROG
744 FSCK_MAN
745 FSCK_PROG
746 DEFRAG_CMT
747 RESIZER_CMT
748 IMAGER_CMT
749 DEBUGFS_CMT
750 BLKID_CMT
751 DEPPROFILED_LIBBLKID
752 PROFILED_LIBBLKID
753 DEPSTATIC_LIBBLKID
754 STATIC_LIBBLKID
755 DEPLIBBLKID
756 LIBBLKID
757 UUID_CMT
758 DEPPROFILED_LIBUUID
759 PROFILED_LIBUUID
760 DEPSTATIC_LIBUUID
761 STATIC_LIBUUID
762 DEPLIBUUID
763 LIBUUID
764 PKG_CONFIG_LIBDIR
765 PKG_CONFIG_PATH
766 PKG_CONFIG
767 TEST_IO_CMT
768 PRIVATE_LIBS_CMT
769 LDFLAG_DYNAMIC
770 PROFILED_LIB_EXT
771 STATIC_LIB_EXT
772 LIB_EXT
773 PROFILE_CMT
774 BSDLIB_CMT
775 ELF_CMT
776 Q
777 ES
778 E
779 LINK_BUILD_FLAGS
780 SYMLINK_RELATIVE
781 LINK_INSTALL_FLAGS
782 MAINTAINER_CMT
783 EGREP
784 GREP
785 CPP
786 RDYNAMIC
787 DLOPEN_LIB
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 host_os
796 host_vendor
797 host_cpu
798 host
799 build_os
800 build_vendor
801 build_cpu
802 build
803 E2FSPROGS_DATE
804 E2FSPROGS_PKGVER
805 E2FSPROGS_VERSION
806 E2FSPROGS_DAY
807 E2FSPROGS_MONTH
808 E2FSPROGS_YEAR
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 runstatedir
829 localstatedir
830 sharedstatedir
831 sysconfdir
832 datadir
833 datarootdir
834 libexecdir
835 sbindir
836 bindir
837 program_transform_name
838 prefix
839 exec_prefix
840 PACKAGE_URL
841 PACKAGE_BUGREPORT
842 PACKAGE_STRING
843 PACKAGE_VERSION
844 PACKAGE_TARNAME
845 PACKAGE_NAME
846 PATH_SEPARATOR
847 SHELL'
848 ac_subst_files='MCONFIG
849 MAKEFILE_ELF
850 MAKEFILE_BSDLIB
851 MAKEFILE_PROFILE
852 MAKEFILE_LIBRARY
853 ASM_TYPES_HEADER
854 PUBLIC_CONFIG_HEADER'
855 ac_user_opts='
856 enable_option_checking
857 with_diet_libc
858 with_cc
859 with_ccopts
860 with_ldopts
861 with_root_prefix
862 enable_maintainer_mode
863 enable_symlink_install
864 enable_relative_symlinks
865 enable_symlink_relative_symlinks
866 enable_symlink_build
867 enable_verbose_makecmds
868 enable_elf_shlibs
869 enable_bsd_shlibs
870 enable_profile
871 enable_gcov
872 enable_hardening
873 enable_jbd_debug
874 enable_blkid_debug
875 enable_testio_debug
876 enable_libuuid
877 enable_libblkid
878 enable_backtrace
879 enable_debugfs
880 enable_imager
881 enable_resizer
882 enable_defrag
883 enable_fsck
884 enable_e2initrd_helper
885 enable_tls
886 enable_uuidd
887 enable_mmp
888 enable_tdb
889 enable_bmap_stats
890 enable_bmap_stats_ops
891 enable_nls
892 enable_threads
893 with_gnu_ld
894 enable_rpath
895 with_libpth_prefix
896 with_libiconv_prefix
897 with_included_gettext
898 with_libintl_prefix
899 enable_fuse2fs
900 with_multiarch
901 with_udev_rules_dir
902 '
903       ac_precious_vars='build_alias
904 host_alias
905 target_alias
906 CC
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CPP
912 PKG_CONFIG
913 PKG_CONFIG_PATH
914 PKG_CONFIG_LIBDIR
915 udev_CFLAGS
916 udev_LIBS'
917
918
919 # Initialize some variables set by options.
920 ac_init_help=
921 ac_init_version=false
922 ac_unrecognized_opts=
923 ac_unrecognized_sep=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *=)   ac_optarg= ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid feature name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval enable_$ac_useropt=no ;;
1038
1039   -docdir | --docdir | --docdi | --doc | --do)
1040     ac_prev=docdir ;;
1041   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042     docdir=$ac_optarg ;;
1043
1044   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045     ac_prev=dvidir ;;
1046   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047     dvidir=$ac_optarg ;;
1048
1049   -enable-* | --enable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error $? "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067   | --exec | --exe | --ex)
1068     ac_prev=exec_prefix ;;
1069   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071   | --exec=* | --exe=* | --ex=*)
1072     exec_prefix=$ac_optarg ;;
1073
1074   -gas | --gas | --ga | --g)
1075     # Obsolete; use --with-gas.
1076     with_gas=yes ;;
1077
1078   -help | --help | --hel | --he | -h)
1079     ac_init_help=long ;;
1080   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081     ac_init_help=recursive ;;
1082   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083     ac_init_help=short ;;
1084
1085   -host | --host | --hos | --ho)
1086     ac_prev=host_alias ;;
1087   -host=* | --host=* | --hos=* | --ho=*)
1088     host_alias=$ac_optarg ;;
1089
1090   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091     ac_prev=htmldir ;;
1092   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093   | --ht=*)
1094     htmldir=$ac_optarg ;;
1095
1096   -includedir | --includedir | --includedi | --included | --include \
1097   | --includ | --inclu | --incl | --inc)
1098     ac_prev=includedir ;;
1099   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100   | --includ=* | --inclu=* | --incl=* | --inc=*)
1101     includedir=$ac_optarg ;;
1102
1103   -infodir | --infodir | --infodi | --infod | --info | --inf)
1104     ac_prev=infodir ;;
1105   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106     infodir=$ac_optarg ;;
1107
1108   -libdir | --libdir | --libdi | --libd)
1109     ac_prev=libdir ;;
1110   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111     libdir=$ac_optarg ;;
1112
1113   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114   | --libexe | --libex | --libe)
1115     ac_prev=libexecdir ;;
1116   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117   | --libexe=* | --libex=* | --libe=*)
1118     libexecdir=$ac_optarg ;;
1119
1120   -localedir | --localedir | --localedi | --localed | --locale)
1121     ac_prev=localedir ;;
1122   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123     localedir=$ac_optarg ;;
1124
1125   -localstatedir | --localstatedir | --localstatedi | --localstated \
1126   | --localstate | --localstat | --localsta | --localst | --locals)
1127     ac_prev=localstatedir ;;
1128   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130     localstatedir=$ac_optarg ;;
1131
1132   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133     ac_prev=mandir ;;
1134   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135     mandir=$ac_optarg ;;
1136
1137   -nfp | --nfp | --nf)
1138     # Obsolete; use --without-fp.
1139     with_fp=no ;;
1140
1141   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142   | --no-cr | --no-c | -n)
1143     no_create=yes ;;
1144
1145   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147     no_recursion=yes ;;
1148
1149   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151   | --oldin | --oldi | --old | --ol | --o)
1152     ac_prev=oldincludedir ;;
1153   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156     oldincludedir=$ac_optarg ;;
1157
1158   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159     ac_prev=prefix ;;
1160   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161     prefix=$ac_optarg ;;
1162
1163   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164   | --program-pre | --program-pr | --program-p)
1165     ac_prev=program_prefix ;;
1166   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168     program_prefix=$ac_optarg ;;
1169
1170   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171   | --program-suf | --program-su | --program-s)
1172     ac_prev=program_suffix ;;
1173   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175     program_suffix=$ac_optarg ;;
1176
1177   -program-transform-name | --program-transform-name \
1178   | --program-transform-nam | --program-transform-na \
1179   | --program-transform-n | --program-transform- \
1180   | --program-transform | --program-transfor \
1181   | --program-transfo | --program-transf \
1182   | --program-trans | --program-tran \
1183   | --progr-tra | --program-tr | --program-t)
1184     ac_prev=program_transform_name ;;
1185   -program-transform-name=* | --program-transform-name=* \
1186   | --program-transform-nam=* | --program-transform-na=* \
1187   | --program-transform-n=* | --program-transform-=* \
1188   | --program-transform=* | --program-transfor=* \
1189   | --program-transfo=* | --program-transf=* \
1190   | --program-trans=* | --program-tran=* \
1191   | --progr-tra=* | --program-tr=* | --program-t=*)
1192     program_transform_name=$ac_optarg ;;
1193
1194   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195     ac_prev=pdfdir ;;
1196   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197     pdfdir=$ac_optarg ;;
1198
1199   -psdir | --psdir | --psdi | --psd | --ps)
1200     ac_prev=psdir ;;
1201   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202     psdir=$ac_optarg ;;
1203
1204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205   | -silent | --silent | --silen | --sile | --sil)
1206     silent=yes ;;
1207
1208   -runstatedir | --runstatedir | --runstatedi | --runstated \
1209   | --runstate | --runstat | --runsta | --runst | --runs \
1210   | --run | --ru | --r)
1211     ac_prev=runstatedir ;;
1212   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214   | --run=* | --ru=* | --r=*)
1215     runstatedir=$ac_optarg ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266       as_fn_error $? "invalid package name: $ac_useropt"
1267     ac_useropt_orig=$ac_useropt
1268     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269     case $ac_user_opts in
1270       *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274          ac_unrecognized_sep=', ';;
1275     esac
1276     eval with_$ac_useropt=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     case $ac_envvar in #(
1320       '' | [0-9]* | *[!_$as_cr_alnum]* )
1321       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322     esac
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   as_fn_error $? "missing argument to $ac_option"
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343   case $enable_option_checking in
1344     no) ;;
1345     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347   esac
1348 fi
1349
1350 # Check all directory arguments for consistency.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir runstatedir
1355 do
1356   eval ac_val=\$$ac_var
1357   # Remove trailing slashes.
1358   case $ac_val in
1359     */ )
1360       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361       eval $ac_var=\$ac_val;;
1362   esac
1363   # Be sure to have absolute directory names.
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382   elif test "x$build_alias" != "x$host_alias"; then
1383     cross_compiling=yes
1384   fi
1385 fi
1386
1387 ac_tool_prefix=
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390 test "$silent" = yes && exec 6>/dev/null
1391
1392
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396   as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398   as_fn_error $? "pwd does not report name of working directory"
1399
1400
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403   ac_srcdir_defaulted=yes
1404   # Try the directory containing this script, then the parent directory.
1405   ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407          X"$as_myself" : 'X\(//\)[^/]' \| \
1408          X"$as_myself" : 'X\(//\)$' \| \
1409          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)[^/].*/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\).*/{
1424             s//\1/
1425             q
1426           }
1427           s/.*/./; q'`
1428   srcdir=$ac_confdir
1429   if test ! -r "$srcdir/$ac_unique_file"; then
1430     srcdir=..
1431   fi
1432 else
1433   ac_srcdir_defaulted=no
1434 fi
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1438 fi
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440 ac_abs_confdir=`(
1441         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1442         pwd)`
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445   srcdir=.
1446 fi
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1450 case $srcdir in
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452 esac
1453 for ac_var in $ac_precious_vars; do
1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455   eval ac_env_${ac_var}_value=\$${ac_var}
1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458 done
1459
1460 #
1461 # Report the --help message.
1462 #
1463 if test "$ac_init_help" = "long"; then
1464   # Omit some internal or obsolete options to make the list less imposing.
1465   # This message is too long to be a string in the A/UX 3.1 sh.
1466   cat <<_ACEOF
1467 \`configure' configures this package to adapt to many kinds of systems.
1468
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
1473
1474 Defaults for the options are specified in brackets.
1475
1476 Configuration:
1477   -h, --help              display this help and exit
1478       --help=short        display options specific to this package
1479       --help=recursive    display the short help of all the included packages
1480   -V, --version           display version information and exit
1481   -q, --quiet, --silent   do not print \`checking ...' messages
1482       --cache-file=FILE   cache test results in FILE [disabled]
1483   -C, --config-cache      alias for \`--cache-file=config.cache'
1484   -n, --no-create         do not create output files
1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1486
1487 Installation directories:
1488   --prefix=PREFIX         install architecture-independent files in PREFIX
1489                           [$ac_default_prefix]
1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1491                           [PREFIX]
1492
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1497
1498 For better control, use the options below.
1499
1500 Fine tuning of the installation directories:
1501   --bindir=DIR            user executables [EPREFIX/bin]
1502   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1503   --libexecdir=DIR        program executables [EPREFIX/libexec]
1504   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1505   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1506   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1507   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532
1533   cat <<\_ACEOF
1534
1535 Optional Features:
1536   --disable-option-checking  ignore unrecognized --enable/--with options
1537   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1538   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1539   --enable-maintainer-mode enable makefile rules useful for maintainers
1540   --enable-symlink-install use symlinks when installing instead of hard links
1541   --enable-relative-symlinks use relative symlinks when installing
1542
1543   --enable-symlink-build  use symlinks while building instead of hard links
1544   --enable-verbose-makecmds enable verbose make command output
1545   --enable-elf-shlibs     select ELF shared libraries
1546   --enable-bsd-shlibs     select BSD shared libraries
1547   --enable-profile        build profiling libraries
1548   --enable-gcov           build for coverage testing using gcov
1549   --enable-hardening              build for coverage testing using gcov
1550   --enable-jbd-debug      enable journal debugging
1551   --enable-blkid-debug    enable blkid debugging
1552   --disable-testio-debug  disable the use of the test I/O manager for debugging
1553   --enable-libuuid        build and use private uuid library
1554   --enable-libblkid       build and use private blkid library
1555   --disable-backtrace     disable use backtrace
1556   --disable-debugfs       disable support of debugfs program
1557   --disable-imager        disable support of e2image program
1558   --disable-resizer       disable support of e2resize program
1559   --disable-defrag        disable support of e4defrag program
1560   --enable-fsck           build fsck wrapper program
1561   --enable-e2initrd-helper build e2initrd-helper program
1562   --disable-tls           disable use of thread local support
1563   --disable-uuidd         disable building the uuid daemon
1564   --disable-mmp           disable support mmp, Multi Mount Protection
1565   --disable-tdb           disable tdb support
1566   --disable-bmap-stats    disable collection of bitmap stats.
1567   --enable-bmap-stats-ops enable collection of additional bitmap stats
1568   --disable-nls           do not use Native Language Support
1569   --enable-threads={posix|solaris|pth|windows}
1570                           specify multithreading API
1571   --disable-threads       build without multithread safety
1572   --disable-rpath         do not hardcode runtime library paths
1573   --disable-fuse2fs       do not build fuse2fs
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-diet-libc        use diet libc
1579   --with-cc               no longer supported, use CC= instead
1580   --with-ccopts           no longer supported, use CFLAGS= instead
1581   --with-ldopts           no longer supported, use LDFLAGS= instead
1582   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1583   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1584   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1585   --without-libpth-prefix     don't search for libpth in includedir and libdir
1586   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1587   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1588   --with-included-gettext use the GNU gettext library included here
1589   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1590   --without-libintl-prefix     don't search for libintl in includedir and libdir
1591   --with-multiarch=ARCH specify the multiarch triplet
1592   --with-udev-rules-dir[=DIR]
1593                           Install udev rules into DIR.
1594
1595 Some influential environment variables:
1596   CC          C compiler command
1597   CFLAGS      C compiler flags
1598   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1599               nonstandard directory <lib dir>
1600   LIBS        libraries to pass to the linker, e.g. -l<library>
1601   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602               you have headers in a nonstandard directory <include dir>
1603   CPP         C preprocessor
1604   PKG_CONFIG  path to pkg-config utility
1605   PKG_CONFIG_PATH
1606               directories to add to pkg-config's search path
1607   PKG_CONFIG_LIBDIR
1608               path overriding pkg-config's built-in search path
1609   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1610   udev_LIBS   linker flags for udev, overriding pkg-config
1611
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1614
1615 Report bugs to the package provider.
1616 _ACEOF
1617 ac_status=$?
1618 fi
1619
1620 if test "$ac_init_help" = "recursive"; then
1621   # If there are subdirs, report their specific --help.
1622   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623     test -d "$ac_dir" ||
1624       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625       continue
1626     ac_builddir=.
1627
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *)
1631   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632   # A ".." for each directory in $ac_dir_suffix.
1633   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634   case $ac_top_builddir_sub in
1635   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637   esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1643
1644 case $srcdir in
1645   .)  # We are building in place.
1646     ac_srcdir=.
1647     ac_top_srcdir=$ac_top_builddir_sub
1648     ac_abs_top_srcdir=$ac_pwd ;;
1649   [\\/]* | ?:[\\/]* )  # Absolute name.
1650     ac_srcdir=$srcdir$ac_dir_suffix;
1651     ac_top_srcdir=$srcdir
1652     ac_abs_top_srcdir=$srcdir ;;
1653   *) # Relative name.
1654     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655     ac_top_srcdir=$ac_top_build_prefix$srcdir
1656     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660     cd "$ac_dir" || { ac_status=$?; continue; }
1661     # Check for guested configure.
1662     if test -f "$ac_srcdir/configure.gnu"; then
1663       echo &&
1664       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665     elif test -f "$ac_srcdir/configure"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure" --help=recursive
1668     else
1669       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670     fi || ac_status=$?
1671     cd "$ac_pwd" || { ac_status=$?; break; }
1672   done
1673 fi
1674
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677   cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.69
1680
1681 Copyright (C) 2012 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685   exit
1686 fi
1687
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1691
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   rm -f conftest.$ac_objext
1699   if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_compile") 2>conftest.err
1707   ac_status=$?
1708   if test -s conftest.err; then
1709     grep -v '^ *+' conftest.err >conftest.er1
1710     cat conftest.er1 >&5
1711     mv -f conftest.er1 conftest.err
1712   fi
1713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714   test $ac_status = 0; } && {
1715          test -z "$ac_c_werror_flag" ||
1716          test ! -s conftest.err
1717        } && test -s conftest.$ac_objext; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_compile
1729
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_link ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   rm -f conftest.$ac_objext conftest$ac_exeext
1737   if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_link") 2>conftest.err
1745   ac_status=$?
1746   if test -s conftest.err; then
1747     grep -v '^ *+' conftest.err >conftest.er1
1748     cat conftest.er1 >&5
1749     mv -f conftest.er1 conftest.err
1750   fi
1751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752   test $ac_status = 0; } && {
1753          test -z "$ac_c_werror_flag" ||
1754          test ! -s conftest.err
1755        } && test -s conftest$ac_exeext && {
1756          test "$cross_compiling" = yes ||
1757          test -x conftest$ac_exeext
1758        }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768   # interfere with the next link command; also delete a directory that is
1769   # left behind by Apple's compiler.  We do this before executing the actions.
1770   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_link
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_cpp conftest.$ac_ext"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } > conftest.i && {
1798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806     ac_retval=1
1807 fi
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1817 # accordingly.
1818 ac_fn_c_check_header_mongrel ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if eval \${$3+:} false; then :
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 else
1831   # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   ac_header_compiler=yes
1841 else
1842   ac_header_compiler=no
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1847
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856   ac_header_preproc=yes
1857 else
1858   ac_header_preproc=no
1859 fi
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1863
1864 # So?  What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866   yes:no: )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871     ;;
1872   no:yes:* )
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883     ;;
1884 esac
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=\$ac_header_compiler"
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_header_mongrel
1899
1900 # ac_fn_c_try_run LINENO
1901 # ----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903 # that executables *can* be run.
1904 ac_fn_c_try_run ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   if { { ac_try="$ac_link"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_link") 2>&5
1915   ac_status=$?
1916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918   { { case "(($ac_try" in
1919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920   *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924   (eval "$ac_try") 2>&5
1925   ac_status=$?
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; }; }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: program exited with status $ac_status" >&5
1931        $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934        ac_retval=$ac_status
1935 fi
1936   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938   as_fn_set_status $ac_retval
1939
1940 } # ac_fn_c_try_run
1941
1942 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists and can be compiled using the include files in
1945 # INCLUDES, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_compile ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 else
1954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 $4
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   eval "$3=yes"
1961 else
1962   eval "$3=no"
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_header_compile
1972
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983   $as_echo_n "(cached) " >&6
1984 else
1985   eval "$3=no"
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 if (sizeof ($2))
1993          return 0;
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 if (sizeof (($2)))
2006             return 0;
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012
2013 else
2014   eval "$3=yes"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_type
2026
2027 # ac_fn_c_check_func LINENO FUNC VAR
2028 # ----------------------------------
2029 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2030 ac_fn_c_check_func ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 else
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2042 #define $2 innocuous_$2
2043
2044 /* System header to define __stub macros and hopefully few prototypes,
2045     which can conflict with char $2 (); below.
2046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047     <limits.h> exists even on freestanding compilers.  */
2048
2049 #ifdef __STDC__
2050 # include <limits.h>
2051 #else
2052 # include <assert.h>
2053 #endif
2054
2055 #undef $2
2056
2057 /* Override any GCC internal prototype to avoid an error.
2058    Use char because int might match the return type of a GCC
2059    builtin and then its argument prototype would still apply.  */
2060 #ifdef __cplusplus
2061 extern "C"
2062 #endif
2063 char $2 ();
2064 /* The GNU C library defines this for functions which it implements
2065     to always fail with ENOSYS.  Some functions are actually named
2066     something starting with __ and the normal name is an alias.  */
2067 #if defined __stub_$2 || defined __stub___$2
2068 choke me
2069 #endif
2070
2071 int
2072 main ()
2073 {
2074 return $2 ();
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_link "$LINENO"; then :
2080   eval "$3=yes"
2081 else
2082   eval "$3=no"
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext \
2085     conftest$ac_exeext conftest.$ac_ext
2086 fi
2087 eval ac_res=\$$3
2088                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_func
2093
2094 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2095 # ---------------------------------------------
2096 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2097 # accordingly.
2098 ac_fn_c_check_decl ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   as_decl_name=`echo $2|sed 's/ *(.*//'`
2102   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2104 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 else
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 #ifndef $as_decl_name
2115 #ifdef __cplusplus
2116   (void) $as_decl_use;
2117 #else
2118   (void) $as_decl_name;
2119 #endif
2120 #endif
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   eval "$3=yes"
2128 else
2129   eval "$3=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_decl
2139
2140 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141 # --------------------------------------------
2142 # Tries to find the compile-time value of EXPR in a program that includes
2143 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2144 # computed
2145 ac_fn_c_compute_int ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if test "$cross_compiling" = yes; then
2149     # Depending upon the size, compute the lo and hi bounds.
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) >= 0)];
2157 test_array [0] = 0;
2158 return test_array [0];
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   ac_lo=0 ac_mid=0
2166   while :; do
2167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 int
2171 main ()
2172 {
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2174 test_array [0] = 0;
2175 return test_array [0];
2176
2177   ;
2178   return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182   ac_hi=$ac_mid; break
2183 else
2184   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185                         if test $ac_lo -le $ac_mid; then
2186                           ac_lo= ac_hi=
2187                           break
2188                         fi
2189                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192   done
2193 else
2194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h.  */
2196 $4
2197 int
2198 main ()
2199 {
2200 static int test_array [1 - 2 * !(($2) < 0)];
2201 test_array [0] = 0;
2202 return test_array [0];
2203
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209   ac_hi=-1 ac_mid=-1
2210   while :; do
2211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h.  */
2213 $4
2214 int
2215 main ()
2216 {
2217 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2218 test_array [0] = 0;
2219 return test_array [0];
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   ac_lo=$ac_mid; break
2227 else
2228   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2229                         if test $ac_mid -le $ac_hi; then
2230                           ac_lo= ac_hi=
2231                           break
2232                         fi
2233                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2234 fi
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236   done
2237 else
2238   ac_lo= ac_hi=
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 # Binary search between lo and hi bounds.
2244 while test "x$ac_lo" != "x$ac_hi"; do
2245   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2253 test_array [0] = 0;
2254 return test_array [0];
2255
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261   ac_hi=$ac_mid
2262 else
2263   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 done
2267 case $ac_lo in #((
2268 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2269 '') ac_retval=1 ;;
2270 esac
2271   else
2272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h.  */
2274 $4
2275 static long int longval () { return $2; }
2276 static unsigned long int ulongval () { return $2; }
2277 #include <stdio.h>
2278 #include <stdlib.h>
2279 int
2280 main ()
2281 {
2282
2283   FILE *f = fopen ("conftest.val", "w");
2284   if (! f)
2285     return 1;
2286   if (($2) < 0)
2287     {
2288       long int i = longval ();
2289       if (i != ($2))
2290         return 1;
2291       fprintf (f, "%ld", i);
2292     }
2293   else
2294     {
2295       unsigned long int i = ulongval ();
2296       if (i != ($2))
2297         return 1;
2298       fprintf (f, "%lu", i);
2299     }
2300   /* Do not output a trailing newline, as this causes \r\n confusion
2301      on some platforms.  */
2302   return ferror (f) || fclose (f) != 0;
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_run "$LINENO"; then :
2309   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2310 else
2311   ac_retval=1
2312 fi
2313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2314   conftest.$ac_objext conftest.beam conftest.$ac_ext
2315 rm -f conftest.val
2316
2317   fi
2318   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319   as_fn_set_status $ac_retval
2320
2321 } # ac_fn_c_compute_int
2322
2323 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2324 # ----------------------------------------------------
2325 # Tries to find if the field MEMBER exists in type AGGR, after including
2326 # INCLUDES, setting cache variable VAR accordingly.
2327 ac_fn_c_check_member ()
2328 {
2329   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2331 $as_echo_n "checking for $2.$3... " >&6; }
2332 if eval \${$4+:} false; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h.  */
2337 $5
2338 int
2339 main ()
2340 {
2341 static $2 ac_aggr;
2342 if (ac_aggr.$3)
2343 return 0;
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349   eval "$4=yes"
2350 else
2351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $5
2354 int
2355 main ()
2356 {
2357 static $2 ac_aggr;
2358 if (sizeof ac_aggr.$3)
2359 return 0;
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365   eval "$4=yes"
2366 else
2367   eval "$4=no"
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 eval ac_res=\$$4
2374                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377
2378 } # ac_fn_c_check_member
2379 cat >config.log <<_ACEOF
2380 This file contains any messages produced by compilers while
2381 running configure, to aid debugging if configure makes a mistake.
2382
2383 It was created by $as_me, which was
2384 generated by GNU Autoconf 2.69.  Invocation command line was
2385
2386   $ $0 $@
2387
2388 _ACEOF
2389 exec 5>>config.log
2390 {
2391 cat <<_ASUNAME
2392 ## --------- ##
2393 ## Platform. ##
2394 ## --------- ##
2395
2396 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2397 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2398 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2399 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2400 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2401
2402 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2403 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2404
2405 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2406 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2407 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2408 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2409 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2410 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2411 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2412
2413 _ASUNAME
2414
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420     $as_echo "PATH: $as_dir"
2421   done
2422 IFS=$as_save_IFS
2423
2424 } >&5
2425
2426 cat >&5 <<_ACEOF
2427
2428
2429 ## ----------- ##
2430 ## Core tests. ##
2431 ## ----------- ##
2432
2433 _ACEOF
2434
2435
2436 # Keep a trace of the command line.
2437 # Strip out --no-create and --no-recursion so they do not pile up.
2438 # Strip out --silent because we don't want to record it for future runs.
2439 # Also quote any args containing shell meta-characters.
2440 # Make two passes to allow for proper duplicate-argument suppression.
2441 ac_configure_args=
2442 ac_configure_args0=
2443 ac_configure_args1=
2444 ac_must_keep_next=false
2445 for ac_pass in 1 2
2446 do
2447   for ac_arg
2448   do
2449     case $ac_arg in
2450     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2451     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2452     | -silent | --silent | --silen | --sile | --sil)
2453       continue ;;
2454     *\'*)
2455       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2456     esac
2457     case $ac_pass in
2458     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2459     2)
2460       as_fn_append ac_configure_args1 " '$ac_arg'"
2461       if test $ac_must_keep_next = true; then
2462         ac_must_keep_next=false # Got value, back to normal.
2463       else
2464         case $ac_arg in
2465           *=* | --config-cache | -C | -disable-* | --disable-* \
2466           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2467           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2468           | -with-* | --with-* | -without-* | --without-* | --x)
2469             case "$ac_configure_args0 " in
2470               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2471             esac
2472             ;;
2473           -* ) ac_must_keep_next=true ;;
2474         esac
2475       fi
2476       as_fn_append ac_configure_args " '$ac_arg'"
2477       ;;
2478     esac
2479   done
2480 done
2481 { ac_configure_args0=; unset ac_configure_args0;}
2482 { ac_configure_args1=; unset ac_configure_args1;}
2483
2484 # When interrupted or exit'd, cleanup temporary files, and complete
2485 # config.log.  We remove comments because anyway the quotes in there
2486 # would cause problems or look ugly.
2487 # WARNING: Use '\'' to represent an apostrophe within the trap.
2488 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2489 trap 'exit_status=$?
2490   # Save into config.log some information that might help in debugging.
2491   {
2492     echo
2493
2494     $as_echo "## ---------------- ##
2495 ## Cache variables. ##
2496 ## ---------------- ##"
2497     echo
2498     # The following way of writing the cache mishandles newlines in values,
2499 (
2500   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2501     eval ac_val=\$$ac_var
2502     case $ac_val in #(
2503     *${as_nl}*)
2504       case $ac_var in #(
2505       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2507       esac
2508       case $ac_var in #(
2509       _ | IFS | as_nl) ;; #(
2510       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2511       *) { eval $ac_var=; unset $ac_var;} ;;
2512       esac ;;
2513     esac
2514   done
2515   (set) 2>&1 |
2516     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2517     *${as_nl}ac_space=\ *)
2518       sed -n \
2519         "s/'\''/'\''\\\\'\'''\''/g;
2520           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2521       ;; #(
2522     *)
2523       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2524       ;;
2525     esac |
2526     sort
2527 )
2528     echo
2529
2530     $as_echo "## ----------------- ##
2531 ## Output variables. ##
2532 ## ----------------- ##"
2533     echo
2534     for ac_var in $ac_subst_vars
2535     do
2536       eval ac_val=\$$ac_var
2537       case $ac_val in
2538       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539       esac
2540       $as_echo "$ac_var='\''$ac_val'\''"
2541     done | sort
2542     echo
2543
2544     if test -n "$ac_subst_files"; then
2545       $as_echo "## ------------------- ##
2546 ## File substitutions. ##
2547 ## ------------------- ##"
2548       echo
2549       for ac_var in $ac_subst_files
2550       do
2551         eval ac_val=\$$ac_var
2552         case $ac_val in
2553         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2554         esac
2555         $as_echo "$ac_var='\''$ac_val'\''"
2556       done | sort
2557       echo
2558     fi
2559
2560     if test -s confdefs.h; then
2561       $as_echo "## ----------- ##
2562 ## confdefs.h. ##
2563 ## ----------- ##"
2564       echo
2565       cat confdefs.h
2566       echo
2567     fi
2568     test "$ac_signal" != 0 &&
2569       $as_echo "$as_me: caught signal $ac_signal"
2570     $as_echo "$as_me: exit $exit_status"
2571   } >&5
2572   rm -f core *.core core.conftest.* &&
2573     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2574     exit $exit_status
2575 ' 0
2576 for ac_signal in 1 2 13 15; do
2577   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2578 done
2579 ac_signal=0
2580
2581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2582 rm -f -r conftest* confdefs.h
2583
2584 $as_echo "/* confdefs.h */" > confdefs.h
2585
2586 # Predefined preprocessor variables.
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_NAME "$PACKAGE_NAME"
2590 _ACEOF
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_STRING "$PACKAGE_STRING"
2602 _ACEOF
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2606 _ACEOF
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_URL "$PACKAGE_URL"
2610 _ACEOF
2611
2612
2613 # Let the site file select an alternate cache file if it wants to.
2614 # Prefer an explicitly selected file to automatically selected ones.
2615 ac_site_file1=NONE
2616 ac_site_file2=NONE
2617 if test -n "$CONFIG_SITE"; then
2618   # We do not want a PATH search for config.site.
2619   case $CONFIG_SITE in #((
2620     -*)  ac_site_file1=./$CONFIG_SITE;;
2621     */*) ac_site_file1=$CONFIG_SITE;;
2622     *)   ac_site_file1=./$CONFIG_SITE;;
2623   esac
2624 elif test "x$prefix" != xNONE; then
2625   ac_site_file1=$prefix/share/config.site
2626   ac_site_file2=$prefix/etc/config.site
2627 else
2628   ac_site_file1=$ac_default_prefix/share/config.site
2629   ac_site_file2=$ac_default_prefix/etc/config.site
2630 fi
2631 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2632 do
2633   test "x$ac_site_file" = xNONE && continue
2634   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2635     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2636 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2637     sed 's/^/| /' "$ac_site_file" >&5
2638     . "$ac_site_file" \
2639       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 as_fn_error $? "failed to load site script $ac_site_file
2642 See \`config.log' for more details" "$LINENO" 5; }
2643   fi
2644 done
2645
2646 if test -r "$cache_file"; then
2647   # Some versions of bash will fail to source /dev/null (special files
2648   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2649   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2651 $as_echo "$as_me: loading cache $cache_file" >&6;}
2652     case $cache_file in
2653       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2654       *)                      . "./$cache_file";;
2655     esac
2656   fi
2657 else
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2659 $as_echo "$as_me: creating cache $cache_file" >&6;}
2660   >$cache_file
2661 fi
2662
2663 gt_needs="$gt_needs "
2664 as_fn_append ac_header_list " stdlib.h"
2665 as_fn_append ac_header_list " unistd.h"
2666 as_fn_append ac_header_list " sys/param.h"
2667 as_fn_append ac_func_list " symlink"
2668 # Check that the precious variables saved in the cache have kept the same
2669 # value.
2670 ac_cache_corrupted=false
2671 for ac_var in $ac_precious_vars; do
2672   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2673   eval ac_new_set=\$ac_env_${ac_var}_set
2674   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2675   eval ac_new_val=\$ac_env_${ac_var}_value
2676   case $ac_old_set,$ac_new_set in
2677     set,)
2678       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2680       ac_cache_corrupted=: ;;
2681     ,set)
2682       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2684       ac_cache_corrupted=: ;;
2685     ,);;
2686     *)
2687       if test "x$ac_old_val" != "x$ac_new_val"; then
2688         # differences in whitespace do not lead to failure.
2689         ac_old_val_w=`echo x $ac_old_val`
2690         ac_new_val_w=`echo x $ac_new_val`
2691         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2692           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2693 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2694           ac_cache_corrupted=:
2695         else
2696           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2697 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2698           eval $ac_var=\$ac_old_val
2699         fi
2700         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2701 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2702         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2703 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2704       fi;;
2705   esac
2706   # Pass precious variables to config.status.
2707   if test "$ac_new_set" = set; then
2708     case $ac_new_val in
2709     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2710     *) ac_arg=$ac_var=$ac_new_val ;;
2711     esac
2712     case " $ac_configure_args " in
2713       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2714       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2715     esac
2716   fi
2717 done
2718 if $ac_cache_corrupted; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2722 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2723   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2724 fi
2725 ## -------------------- ##
2726 ## Main body of script. ##
2727 ## -------------------- ##
2728
2729 ac_ext=c
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734
2735
2736
2737 ac_aux_dir=
2738 for ac_dir in config "$srcdir"/config; do
2739   if test -f "$ac_dir/install-sh"; then
2740     ac_aux_dir=$ac_dir
2741     ac_install_sh="$ac_aux_dir/install-sh -c"
2742     break
2743   elif test -f "$ac_dir/install.sh"; then
2744     ac_aux_dir=$ac_dir
2745     ac_install_sh="$ac_aux_dir/install.sh -c"
2746     break
2747   elif test -f "$ac_dir/shtool"; then
2748     ac_aux_dir=$ac_dir
2749     ac_install_sh="$ac_aux_dir/shtool install -c"
2750     break
2751   fi
2752 done
2753 if test -z "$ac_aux_dir"; then
2754   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2755 fi
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2764
2765
2766 ac_config_headers="$ac_config_headers lib/config.h"
2767
2768
2769 MCONFIG=./MCONFIG
2770
2771 BINARY_TYPE=bin
2772 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2773         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2774 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2775         | tr \" " " | awk '{print $1}'`
2776 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2777 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2778 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2779
2780 if expr $YEAR ">" 1900 > /dev/null ; then
2781         E2FSPROGS_YEAR=$YEAR
2782 elif expr $YEAR ">" 90 >/dev/null ; then
2783         E2FSPROGS_YEAR=19$YEAR
2784 else
2785         E2FSPROGS_YEAR=20$YEAR
2786 fi
2787
2788 case $MONTH in
2789 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2790 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2791 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2792 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2793 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2794 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2795 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2796 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2797 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2798 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2799 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2800 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2801 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2802 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2803 esac
2804
2805 base_ver=`echo $E2FSPROGS_VERSION | \
2806                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2807
2808 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2809
2810 case $E2FSPROGS_VERSION in
2811 *-WIP|pre-*)
2812         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2813         ;;
2814 *)
2815         E2FSPROGS_PKGVER="$base_ver"
2816         ;;
2817 esac
2818
2819 unset DATE MONTH YEAR base_ver pre_vers date_spec
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2821 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2823 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2824
2825
2826
2827
2828
2829
2830 WITH_DIET_LIBC=
2831
2832 # Check whether --with-diet-libc was given.
2833 if test "${with_diet_libc+set}" = set; then :
2834   withval=$with_diet_libc; CC="diet cc -nostdinc"
2835 WITH_DIET_LIBC=yes
2836 if test -z "$LIBS"
2837 then
2838         LIBS="-lcompat"
2839 else
2840         LIBS="$LIBS -lcompat"
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2843 $as_echo "CC=$CC" >&6; }
2844 fi
2845 # Make sure we can run config.sub.
2846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2847   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2850 $as_echo_n "checking build system type... " >&6; }
2851 if ${ac_cv_build+:} false; then :
2852   $as_echo_n "(cached) " >&6
2853 else
2854   ac_build_alias=$build_alias
2855 test "x$ac_build_alias" = x &&
2856   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2857 test "x$ac_build_alias" = x &&
2858   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2859 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2860   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2861
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2864 $as_echo "$ac_cv_build" >&6; }
2865 case $ac_cv_build in
2866 *-*-*) ;;
2867 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2868 esac
2869 build=$ac_cv_build
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_build
2872 shift
2873 build_cpu=$1
2874 build_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 build_os=$*
2879 IFS=$ac_save_IFS
2880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2881
2882
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2884 $as_echo_n "checking host system type... " >&6; }
2885 if ${ac_cv_host+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test "x$host_alias" = x; then
2889   ac_cv_host=$ac_cv_build
2890 else
2891   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2892     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2893 fi
2894
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2897 $as_echo "$ac_cv_host" >&6; }
2898 case $ac_cv_host in
2899 *-*-*) ;;
2900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2901 esac
2902 host=$ac_cv_host
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_host
2905 shift
2906 host_cpu=$1
2907 host_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 host_os=$*
2912 IFS=$ac_save_IFS
2913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2914
2915
2916 DLOPEN_LIB=''
2917 ac_ext=c
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 if test -n "$ac_tool_prefix"; then
2923   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 fi
2961 if test -z "$ac_cv_prog_CC"; then
2962   ac_ct_CC=$CC
2963   # Extract the first word of "gcc", so it can be a program name with args.
2964 set dummy gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$ac_ct_CC"; then
2971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980     ac_cv_prog_ac_ct_CC="gcc"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 $as_echo "$ac_ct_CC" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999   if test "x$ac_ct_CC" = x; then
3000     CC=""
3001   else
3002     case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008     CC=$ac_ct_CC
3009   fi
3010 else
3011   CC="$ac_cv_prog_CC"
3012 fi
3013
3014 if test -z "$CC"; then
3015           if test -n "$ac_tool_prefix"; then
3016     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$CC"; then
3024   ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033     ac_cv_prog_CC="${ac_tool_prefix}cc"
3034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038   done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053   fi
3054 fi
3055 if test -z "$CC"; then
3056   # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test -n "$CC"; then
3064   ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066   ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075        ac_prog_rejected=yes
3076        continue
3077      fi
3078     ac_cv_prog_CC="cc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 if test $ac_prog_rejected = yes; then
3087   # We found a bogon in the path, so make sure we never use it.
3088   set dummy $ac_cv_prog_CC
3089   shift
3090   if test $# != 0; then
3091     # We chose a different compiler from the bogus one.
3092     # However, it has the same basename, so the bogon will be chosen
3093     # first if we set CC to just the basename; use the full file name.
3094     shift
3095     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096   fi
3097 fi
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$CC"; then
3112   if test -n "$ac_tool_prefix"; then
3113   for ac_prog in cl.exe
3114   do
3115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   if test -n "$CC"; then
3123   ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_exec_ext in '' $ac_executable_extensions; do
3131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137   done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152     test -n "$CC" && break
3153   done
3154 fi
3155 if test -z "$CC"; then
3156   ac_ct_CC=$CC
3157   for ac_prog in cl.exe
3158 do
3159   # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$ac_ct_CC"; then
3167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176     ac_cv_prog_ac_ct_CC="$ac_prog"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196   test -n "$ac_ct_CC" && break
3197 done
3198
3199   if test "x$ac_ct_CC" = x; then
3200     CC=""
3201   else
3202     case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208     CC=$ac_ct_CC
3209   fi
3210 fi
3211
3212 fi
3213
3214
3215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "no acceptable C compiler found in \$PATH
3218 See \`config.log' for more details" "$LINENO" 5; }
3219
3220 # Provide some information about the compiler.
3221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3222 set X $ac_compile
3223 ac_compiler=$2
3224 for ac_option in --version -v -V -qversion; do
3225   { { ac_try="$ac_compiler $ac_option >&5"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233   ac_status=$?
3234   if test -s conftest.err; then
3235     sed '10a\
3236 ... rest of stderr output deleted ...
3237          10q' conftest.err >conftest.er1
3238     cat conftest.er1 >&5
3239   fi
3240   rm -f conftest.er1 conftest.err
3241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242   test $ac_status = 0; }
3243 done
3244
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 ac_clean_files_save=$ac_clean_files
3257 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3258 # Try to create an executable without -o first, disregard a.out.
3259 # It will help us diagnose broken compilers, and finding out an intuition
3260 # of exeext.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3262 $as_echo_n "checking whether the C compiler works... " >&6; }
3263 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264
3265 # The possible output files:
3266 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267
3268 ac_rmfiles=
3269 for ac_file in $ac_files
3270 do
3271   case $ac_file in
3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3274   esac
3275 done
3276 rm -f $ac_rmfiles
3277
3278 if { { ac_try="$ac_link_default"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285   (eval "$ac_link_default") 2>&5
3286   ac_status=$?
3287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288   test $ac_status = 0; }; then :
3289   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3291 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3292 # so that the user can short-circuit this test for compilers unknown to
3293 # Autoconf.
3294 for ac_file in $ac_files ''
3295 do
3296   test -f "$ac_file" || continue
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299         ;;
3300     [ab].out )
3301         # We found the default executable, but exeext='' is most
3302         # certainly right.
3303         break;;
3304     *.* )
3305         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306         then :; else
3307            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308         fi
3309         # We set ac_cv_exeext here because the later test for it is not
3310         # safe: cross compilers may not add the suffix if given an `-o'
3311         # argument, so we may need to know it at that point already.
3312         # Even if this section looks crufty: it has the advantage of
3313         # actually working.
3314         break;;
3315     * )
3316         break;;
3317   esac
3318 done
3319 test "$ac_cv_exeext" = no && ac_cv_exeext=
3320
3321 else
3322   ac_file=''
3323 fi
3324 if test -z "$ac_file"; then :
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error 77 "C compiler cannot create executables
3333 See \`config.log' for more details" "$LINENO" 5; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339 $as_echo_n "checking for C compiler default output file name... " >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3341 $as_echo "$ac_file" >&6; }
3342 ac_exeext=$ac_cv_exeext
3343
3344 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { { ac_try="$ac_link"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355   (eval "$ac_link") 2>&5
3356   ac_status=$?
3357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358   test $ac_status = 0; }; then :
3359   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 # `rm'.
3363 for ac_file in conftest.exe conftest conftest.*; do
3364   test -f "$ac_file" || continue
3365   case $ac_file in
3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368           break;;
3369     * ) break;;
3370   esac
3371 done
3372 else
3373   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details" "$LINENO" 5; }
3377 fi
3378 rm -f conftest conftest$ac_cv_exeext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3380 $as_echo "$ac_cv_exeext" >&6; }
3381
3382 rm -f conftest.$ac_ext
3383 EXEEXT=$ac_cv_exeext
3384 ac_exeext=$EXEEXT
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h.  */
3387 #include <stdio.h>
3388 int
3389 main ()
3390 {
3391 FILE *f = fopen ("conftest.out", "w");
3392  return ferror (f) || fclose (f) != 0;
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files="$ac_clean_files conftest.out"
3399 # Check that the compiler produces executables we can run.  If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 if test "$cross_compiling" != yes; then
3404   { { ac_try="$ac_link"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_link") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }
3415   if { ac_try='./conftest$ac_cv_exeext'
3416   { { case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422   (eval "$ac_try") 2>&5
3423   ac_status=$?
3424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425   test $ac_status = 0; }; }; then
3426     cross_compiling=no
3427   else
3428     if test "$cross_compiling" = maybe; then
3429         cross_compiling=yes
3430     else
3431         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot run C compiled programs.
3434 If you meant to cross compile, use \`--host'.
3435 See \`config.log' for more details" "$LINENO" 5; }
3436     fi
3437   fi
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3441
3442 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if ${ac_cv_objext+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451
3452 int
3453 main ()
3454 {
3455
3456   ;
3457   return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468   (eval "$ac_compile") 2>&5
3469   ac_status=$?
3470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471   test $ac_status = 0; }; then :
3472   for ac_file in conftest.o conftest.obj conftest.*; do
3473   test -f "$ac_file" || continue;
3474   case $ac_file in
3475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477        break;;
3478   esac
3479 done
3480 else
3481   $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details" "$LINENO" 5; }
3488 fi
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if ${ac_cv_c_compiler_gnu+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506 #ifndef __GNUC__
3507        choke me
3508 #endif
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515   ac_compiler_gnu=yes
3516 else
3517   ac_compiler_gnu=no
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3526   GCC=yes
3527 else
3528   GCC=
3529 fi
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if ${ac_cv_prog_cc_g+:} false; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   ac_save_c_werror_flag=$ac_c_werror_flag
3538    ac_c_werror_flag=yes
3539    ac_cv_prog_cc_g=no
3540    CFLAGS="-g"
3541    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553   ac_cv_prog_cc_g=yes
3554 else
3555   CFLAGS=""
3556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568
3569 else
3570   ac_c_werror_flag=$ac_save_c_werror_flag
3571          CFLAGS="-g"
3572          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575 int
3576 main ()
3577 {
3578
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584   ac_cv_prog_cc_g=yes
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 fi
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591    ac_c_werror_flag=$ac_save_c_werror_flag
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596   CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598   if test "$GCC" = yes; then
3599     CFLAGS="-g -O2"
3600   else
3601     CFLAGS="-g"
3602   fi
3603 else
3604   if test "$GCC" = yes; then
3605     CFLAGS="-O2"
3606   else
3607     CFLAGS=
3608   fi
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if ${ac_cv_prog_cc_c89+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   ac_cv_prog_cc_c89=no
3616 ac_save_CC=$CC
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 struct stat;
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3626      char **p;
3627      int i;
3628 {
3629   return p[i];
3630 }
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3632 {
3633   char *s;
3634   va_list v;
3635   va_start (v,p);
3636   s = g (p, va_arg (v,int));
3637   va_end (v);
3638   return s;
3639 }
3640
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3642    function prototypes and stuff, but not '\xHH' hex character constants.
3643    These don't provoke an error unfortunately, instead are silently treated
3644    as 'x'.  The following induces an error, until -std is added to get
3645    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3646    array size at least.  It's necessary to write '\x00'==0 to get something
3647    that's true only with -std.  */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651    inside strings and character constants.  */
3652 #define FOO(x) 'x'
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659 int argc;
3660 char **argv;
3661 int
3662 main ()
3663 {
3664 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 do
3672   CC="$ac_save_CC $ac_arg"
3673   if ac_fn_c_try_compile "$LINENO"; then :
3674   ac_cv_prog_cc_c89=$ac_arg
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext
3677   test "x$ac_cv_prog_cc_c89" != "xno" && break
3678 done
3679 rm -f conftest.$ac_ext
3680 CC=$ac_save_CC
3681
3682 fi
3683 # AC_CACHE_VAL
3684 case "x$ac_cv_prog_cc_c89" in
3685   x)
3686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
3688   xno)
3689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
3691   *)
3692     CC="$CC $ac_cv_prog_cc_c89"
3693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695 esac
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3697
3698 fi
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3709 if ${ac_cv_lib_dl_dlopen+:} false; then :
3710   $as_echo_n "(cached) " >&6
3711 else
3712   ac_check_lib_save_LIBS=$LIBS
3713 LIBS="-ldl  $LIBS"
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716
3717 /* Override any GCC internal prototype to avoid an error.
3718    Use char because int might match the return type of a GCC
3719    builtin and then its argument prototype would still apply.  */
3720 #ifdef __cplusplus
3721 extern "C"
3722 #endif
3723 char dlopen ();
3724 int
3725 main ()
3726 {
3727 return dlopen ();
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_link "$LINENO"; then :
3733   ac_cv_lib_dl_dlopen=yes
3734 else
3735   ac_cv_lib_dl_dlopen=no
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext \
3738     conftest$ac_exeext conftest.$ac_ext
3739 LIBS=$ac_check_lib_save_LIBS
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3743 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3744   DLOPEN_LIB=-ldl
3745 fi
3746
3747
3748
3749 # Check whether --with-cc was given.
3750 if test "${with_cc+set}" = set; then :
3751   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3752 fi
3753
3754
3755 # Check whether --with-ccopts was given.
3756 if test "${with_ccopts+set}" = set; then :
3757   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3758 fi
3759
3760
3761 # Check whether --with-ldopts was given.
3762 if test "${with_ldopts+set}" = set; then :
3763   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3764 fi
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_CC+:} false; then :
3777   $as_echo_n "(cached) " >&6
3778 else
3779   if test -n "$CC"; then
3780   ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785   IFS=$as_save_IFS
3786   test -z "$as_dir" && as_dir=.
3787     for ac_exec_ext in '' $ac_executable_extensions; do
3788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791     break 2
3792   fi
3793 done
3794   done
3795 IFS=$as_save_IFS
3796
3797 fi
3798 fi
3799 CC=$ac_cv_prog_CC
3800 if test -n "$CC"; then
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802 $as_echo "$CC" >&6; }
3803 else
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 fi
3807
3808
3809 fi
3810 if test -z "$ac_cv_prog_CC"; then
3811   ac_ct_CC=$CC
3812   # Extract the first word of "gcc", so it can be a program name with args.
3813 set dummy gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$ac_ct_CC"; then
3820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_ac_ct_CC="gcc"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 $as_echo "$ac_ct_CC" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848   if test "x$ac_ct_CC" = x; then
3849     CC=""
3850   else
3851     case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857     CC=$ac_ct_CC
3858   fi
3859 else
3860   CC="$ac_cv_prog_CC"
3861 fi
3862
3863 if test -z "$CC"; then
3864           if test -n "$ac_tool_prefix"; then
3865     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}cc; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_CC+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   if test -n "$CC"; then
3873   ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880     for ac_exec_ext in '' $ac_executable_extensions; do
3881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_prog_CC="${ac_tool_prefix}cc"
3883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887   done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3896 else
3897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902   fi
3903 fi
3904 if test -z "$CC"; then
3905   # Extract the first word of "cc", so it can be a program name with args.
3906 set dummy cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   if test -n "$CC"; then
3913   ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915   ac_prog_rejected=no
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     for ac_exec_ext in '' $ac_executable_extensions; do
3922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3924        ac_prog_rejected=yes
3925        continue
3926      fi
3927     ac_cv_prog_CC="cc"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 if test $ac_prog_rejected = yes; then
3936   # We found a bogon in the path, so make sure we never use it.
3937   set dummy $ac_cv_prog_CC
3938   shift
3939   if test $# != 0; then
3940     # We chose a different compiler from the bogus one.
3941     # However, it has the same basename, so the bogon will be chosen
3942     # first if we set CC to just the basename; use the full file name.
3943     shift
3944     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3945   fi
3946 fi
3947 fi
3948 fi
3949 CC=$ac_cv_prog_CC
3950 if test -n "$CC"; then
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 $as_echo "$CC" >&6; }
3953 else
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 fi
3957
3958
3959 fi
3960 if test -z "$CC"; then
3961   if test -n "$ac_tool_prefix"; then
3962   for ac_prog in cl.exe
3963   do
3964     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_CC+:} false; then :
3969   $as_echo_n "(cached) " >&6
3970 else
3971   if test -n "$CC"; then
3972   ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979     for ac_exec_ext in '' $ac_executable_extensions; do
3980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983     break 2
3984   fi
3985 done
3986   done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3995 else
3996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001     test -n "$CC" && break
4002   done
4003 fi
4004 if test -z "$CC"; then
4005   ac_ct_CC=$CC
4006   for ac_prog in cl.exe
4007 do
4008   # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -n "$ac_ct_CC"; then
4016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023     for ac_exec_ext in '' $ac_executable_extensions; do
4024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025     ac_cv_prog_ac_ct_CC="$ac_prog"
4026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030   done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036 if test -n "$ac_ct_CC"; then
4037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038 $as_echo "$ac_ct_CC" >&6; }
4039 else
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045   test -n "$ac_ct_CC" && break
4046 done
4047
4048   if test "x$ac_ct_CC" = x; then
4049     CC=""
4050   else
4051     case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057     CC=$ac_ct_CC
4058   fi
4059 fi
4060
4061 fi
4062
4063
4064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "no acceptable C compiler found in \$PATH
4067 See \`config.log' for more details" "$LINENO" 5; }
4068
4069 # Provide some information about the compiler.
4070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4071 set X $ac_compile
4072 ac_compiler=$2
4073 for ac_option in --version -v -V -qversion; do
4074   { { ac_try="$ac_compiler $ac_option >&5"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4082   ac_status=$?
4083   if test -s conftest.err; then
4084     sed '10a\
4085 ... rest of stderr output deleted ...
4086          10q' conftest.err >conftest.er1
4087     cat conftest.er1 >&5
4088   fi
4089   rm -f conftest.er1 conftest.err
4090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091   test $ac_status = 0; }
4092 done
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4095 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4096 if ${ac_cv_c_compiler_gnu+:} false; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101
4102 int
4103 main ()
4104 {
4105 #ifndef __GNUC__
4106        choke me
4107 #endif
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114   ac_compiler_gnu=yes
4115 else
4116   ac_compiler_gnu=no
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4120
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4123 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4124 if test $ac_compiler_gnu = yes; then
4125   GCC=yes
4126 else
4127   GCC=
4128 fi
4129 ac_test_CFLAGS=${CFLAGS+set}
4130 ac_save_CFLAGS=$CFLAGS
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4132 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4133 if ${ac_cv_prog_cc_g+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   ac_save_c_werror_flag=$ac_c_werror_flag
4137    ac_c_werror_flag=yes
4138    ac_cv_prog_cc_g=no
4139    CFLAGS="-g"
4140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h.  */
4142
4143 int
4144 main ()
4145 {
4146
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152   ac_cv_prog_cc_g=yes
4153 else
4154   CFLAGS=""
4155       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167
4168 else
4169   ac_c_werror_flag=$ac_save_c_werror_flag
4170          CFLAGS="-g"
4171          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h.  */
4173
4174 int
4175 main ()
4176 {
4177
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183   ac_cv_prog_cc_g=yes
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190    ac_c_werror_flag=$ac_save_c_werror_flag
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4193 $as_echo "$ac_cv_prog_cc_g" >&6; }
4194 if test "$ac_test_CFLAGS" = set; then
4195   CFLAGS=$ac_save_CFLAGS
4196 elif test $ac_cv_prog_cc_g = yes; then
4197   if test "$GCC" = yes; then
4198     CFLAGS="-g -O2"
4199   else
4200     CFLAGS="-g"
4201   fi
4202 else
4203   if test "$GCC" = yes; then
4204     CFLAGS="-O2"
4205   else
4206     CFLAGS=
4207   fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4211 if ${ac_cv_prog_cc_c89+:} false; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   ac_cv_prog_cc_c89=no
4215 ac_save_CC=$CC
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218 #include <stdarg.h>
4219 #include <stdio.h>
4220 struct stat;
4221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4222 struct buf { int x; };
4223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4224 static char *e (p, i)
4225      char **p;
4226      int i;
4227 {
4228   return p[i];
4229 }
4230 static char *f (char * (*g) (char **, int), char **p, ...)
4231 {
4232   char *s;
4233   va_list v;
4234   va_start (v,p);
4235   s = g (p, va_arg (v,int));
4236   va_end (v);
4237   return s;
4238 }
4239
4240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4241    function prototypes and stuff, but not '\xHH' hex character constants.
4242    These don't provoke an error unfortunately, instead are silently treated
4243    as 'x'.  The following induces an error, until -std is added to get
4244    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4245    array size at least.  It's necessary to write '\x00'==0 to get something
4246    that's true only with -std.  */
4247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4248
4249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4250    inside strings and character constants.  */
4251 #define FOO(x) 'x'
4252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4253
4254 int test (int i, double x);
4255 struct s1 {int (*f) (int a);};
4256 struct s2 {int (*f) (double a);};
4257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4258 int argc;
4259 char **argv;
4260 int
4261 main ()
4262 {
4263 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4269         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4270 do
4271   CC="$ac_save_CC $ac_arg"
4272   if ac_fn_c_try_compile "$LINENO"; then :
4273   ac_cv_prog_cc_c89=$ac_arg
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext
4276   test "x$ac_cv_prog_cc_c89" != "xno" && break
4277 done
4278 rm -f conftest.$ac_ext
4279 CC=$ac_save_CC
4280
4281 fi
4282 # AC_CACHE_VAL
4283 case "x$ac_cv_prog_cc_c89" in
4284   x)
4285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286 $as_echo "none needed" >&6; } ;;
4287   xno)
4288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4289 $as_echo "unsupported" >&6; } ;;
4290   *)
4291     CC="$CC $ac_cv_prog_cc_c89"
4292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4294 esac
4295 if test "x$ac_cv_prog_cc_c89" != xno; then :
4296
4297 fi
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305 if test "$GCC" = yes; then
4306    RDYNAMIC="-rdynamic"
4307
4308 fi
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4315 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4316 # On Suns, sometimes $CPP names a directory.
4317 if test -n "$CPP" && test -d "$CPP"; then
4318   CPP=
4319 fi
4320 if test -z "$CPP"; then
4321   if ${ac_cv_prog_CPP+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324       # Double quotes because CPP needs to be expanded
4325     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4326     do
4327       ac_preproc_ok=false
4328 for ac_c_preproc_warn_flag in '' yes
4329 do
4330   # Use a header file that comes with gcc, so configuring glibc
4331   # with a fresh cross-compiler works.
4332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333   # <limits.h> exists even on freestanding compilers.
4334   # On the NeXT, cc -E runs the code through the compiler's parser,
4335   # not just through cpp. "Syntax error" is here to catch this case.
4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338 #ifdef __STDC__
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4343                      Syntax error
4344 _ACEOF
4345 if ac_fn_c_try_cpp "$LINENO"; then :
4346
4347 else
4348   # Broken: fails on valid input.
4349 continue
4350 fi
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4352
4353   # OK, works on sane cases.  Now check whether nonexistent headers
4354   # can be detected and how.
4355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357 #include <ac_nonexistent.h>
4358 _ACEOF
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4360   # Broken: success on invalid input.
4361 continue
4362 else
4363   # Passes both tests.
4364 ac_preproc_ok=:
4365 break
4366 fi
4367 rm -f conftest.err conftest.i conftest.$ac_ext
4368
4369 done
4370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371 rm -f conftest.i conftest.err conftest.$ac_ext
4372 if $ac_preproc_ok; then :
4373   break
4374 fi
4375
4376     done
4377     ac_cv_prog_CPP=$CPP
4378
4379 fi
4380   CPP=$ac_cv_prog_CPP
4381 else
4382   ac_cv_prog_CPP=$CPP
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4385 $as_echo "$CPP" >&6; }
4386 ac_preproc_ok=false
4387 for ac_c_preproc_warn_flag in '' yes
4388 do
4389   # Use a header file that comes with gcc, so configuring glibc
4390   # with a fresh cross-compiler works.
4391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392   # <limits.h> exists even on freestanding compilers.
4393   # On the NeXT, cc -E runs the code through the compiler's parser,
4394   # not just through cpp. "Syntax error" is here to catch this case.
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397 #ifdef __STDC__
4398 # include <limits.h>
4399 #else
4400 # include <assert.h>
4401 #endif
4402                      Syntax error
4403 _ACEOF
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4405
4406 else
4407   # Broken: fails on valid input.
4408 continue
4409 fi
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4411
4412   # OK, works on sane cases.  Now check whether nonexistent headers
4413   # can be detected and how.
4414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416 #include <ac_nonexistent.h>
4417 _ACEOF
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4419   # Broken: success on invalid input.
4420 continue
4421 else
4422   # Passes both tests.
4423 ac_preproc_ok=:
4424 break
4425 fi
4426 rm -f conftest.err conftest.i conftest.$ac_ext
4427
4428 done
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.i conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then :
4432
4433 else
4434   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4437 See \`config.log' for more details" "$LINENO" 5; }
4438 fi
4439
4440 ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4447 $as_echo_n "checking for additional special compiler flags... " >&6; }
4448 if test "$GCC" = yes
4449 then
4450     case "$host_cpu" in
4451         alpha)          addcflags="-mieee" ;;
4452     esac
4453 fi
4454 if test "x$addcflags" != x
4455 then
4456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4457 $as_echo "$addcflags" >&6; }
4458     CFLAGS="$addcflags $CFLAGS"
4459 else
4460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4461 $as_echo "(none)" >&6; }
4462 fi
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4466 if ${ac_cv_path_GREP+:} false; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469   if test -z "$GREP"; then
4470   ac_path_GREP_found=false
4471   # Loop through the user's path and test for each of PROGNAME-LIST
4472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477     for ac_prog in grep ggrep; do
4478     for ac_exec_ext in '' $ac_executable_extensions; do
4479       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4480       as_fn_executable_p "$ac_path_GREP" || continue
4481 # Check for GNU ac_path_GREP and select it if it is found.
4482   # Check for GNU $ac_path_GREP
4483 case `"$ac_path_GREP" --version 2>&1` in
4484 *GNU*)
4485   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4486 *)
4487   ac_count=0
4488   $as_echo_n 0123456789 >"conftest.in"
4489   while :
4490   do
4491     cat "conftest.in" "conftest.in" >"conftest.tmp"
4492     mv "conftest.tmp" "conftest.in"
4493     cp "conftest.in" "conftest.nl"
4494     $as_echo 'GREP' >> "conftest.nl"
4495     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497     as_fn_arith $ac_count + 1 && ac_count=$as_val
4498     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4499       # Best one so far, save it but keep looking for a better one
4500       ac_cv_path_GREP="$ac_path_GREP"
4501       ac_path_GREP_max=$ac_count
4502     fi
4503     # 10*(2^10) chars as input seems more than enough
4504     test $ac_count -gt 10 && break
4505   done
4506   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 esac
4508
4509       $ac_path_GREP_found && break 3
4510     done
4511   done
4512   done
4513 IFS=$as_save_IFS
4514   if test -z "$ac_cv_path_GREP"; then
4515     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4516   fi
4517 else
4518   ac_cv_path_GREP=$GREP
4519 fi
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4523 $as_echo "$ac_cv_path_GREP" >&6; }
4524  GREP="$ac_cv_path_GREP"
4525
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4528 $as_echo_n "checking for egrep... " >&6; }
4529 if ${ac_cv_path_EGREP+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4533    then ac_cv_path_EGREP="$GREP -E"
4534    else
4535      if test -z "$EGREP"; then
4536   ac_path_EGREP_found=false
4537   # Loop through the user's path and test for each of PROGNAME-LIST
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543     for ac_prog in egrep; do
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4546       as_fn_executable_p "$ac_path_EGREP" || continue
4547 # Check for GNU ac_path_EGREP and select it if it is found.
4548   # Check for GNU $ac_path_EGREP
4549 case `"$ac_path_EGREP" --version 2>&1` in
4550 *GNU*)
4551   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4552 *)
4553   ac_count=0
4554   $as_echo_n 0123456789 >"conftest.in"
4555   while :
4556   do
4557     cat "conftest.in" "conftest.in" >"conftest.tmp"
4558     mv "conftest.tmp" "conftest.in"
4559     cp "conftest.in" "conftest.nl"
4560     $as_echo 'EGREP' >> "conftest.nl"
4561     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563     as_fn_arith $ac_count + 1 && ac_count=$as_val
4564     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4565       # Best one so far, save it but keep looking for a better one
4566       ac_cv_path_EGREP="$ac_path_EGREP"
4567       ac_path_EGREP_max=$ac_count
4568     fi
4569     # 10*(2^10) chars as input seems more than enough
4570     test $ac_count -gt 10 && break
4571   done
4572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4573 esac
4574
4575       $ac_path_EGREP_found && break 3
4576     done
4577   done
4578   done
4579 IFS=$as_save_IFS
4580   if test -z "$ac_cv_path_EGREP"; then
4581     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4582   fi
4583 else
4584   ac_cv_path_EGREP=$EGREP
4585 fi
4586
4587    fi
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4590 $as_echo "$ac_cv_path_EGREP" >&6; }
4591  EGREP="$ac_cv_path_EGREP"
4592
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4595 $as_echo_n "checking for ANSI C header files... " >&6; }
4596 if ${ac_cv_header_stdc+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h.  */
4601 #include <stdlib.h>
4602 #include <stdarg.h>
4603 #include <string.h>
4604 #include <float.h>
4605
4606 int
4607 main ()
4608 {
4609
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615   ac_cv_header_stdc=yes
4616 else
4617   ac_cv_header_stdc=no
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621 if test $ac_cv_header_stdc = yes; then
4622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625 #include <string.h>
4626
4627 _ACEOF
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629   $EGREP "memchr" >/dev/null 2>&1; then :
4630
4631 else
4632   ac_cv_header_stdc=no
4633 fi
4634 rm -f conftest*
4635
4636 fi
4637
4638 if test $ac_cv_header_stdc = yes; then
4639   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642 #include <stdlib.h>
4643
4644 _ACEOF
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4646   $EGREP "free" >/dev/null 2>&1; then :
4647
4648 else
4649   ac_cv_header_stdc=no
4650 fi
4651 rm -f conftest*
4652
4653 fi
4654
4655 if test $ac_cv_header_stdc = yes; then
4656   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4657   if test "$cross_compiling" = yes; then :
4658   :
4659 else
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662 #include <ctype.h>
4663 #include <stdlib.h>
4664 #if ((' ' & 0x0FF) == 0x020)
4665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4667 #else
4668 # define ISLOWER(c) \
4669                    (('a' <= (c) && (c) <= 'i') \
4670                      || ('j' <= (c) && (c) <= 'r') \
4671                      || ('s' <= (c) && (c) <= 'z'))
4672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4673 #endif
4674
4675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4676 int
4677 main ()
4678 {
4679   int i;
4680   for (i = 0; i < 256; i++)
4681     if (XOR (islower (i), ISLOWER (i))
4682         || toupper (i) != TOUPPER (i))
4683       return 2;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_run "$LINENO"; then :
4688
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4693   conftest.$ac_objext conftest.beam conftest.$ac_ext
4694 fi
4695
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4699 $as_echo "$ac_cv_header_stdc" >&6; }
4700 if test $ac_cv_header_stdc = yes; then
4701
4702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4703
4704 fi
4705
4706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4708                   inttypes.h stdint.h unistd.h
4709 do :
4710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4712 "
4713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4714   cat >>confdefs.h <<_ACEOF
4715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716 _ACEOF
4717
4718 fi
4719
4720 done
4721
4722
4723
4724   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4725 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4726   MINIX=yes
4727 else
4728   MINIX=
4729 fi
4730
4731
4732   if test "$MINIX" = yes; then
4733
4734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4735
4736
4737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4738
4739
4740 $as_echo "#define _MINIX 1" >>confdefs.h
4741
4742   fi
4743
4744
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4747 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 #         define __EXTENSIONS__ 1
4754           $ac_includes_default
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764   ac_cv_safe_to_define___extensions__=yes
4765 else
4766   ac_cv_safe_to_define___extensions__=no
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4772   test $ac_cv_safe_to_define___extensions__ = yes &&
4773     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4774
4775   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4776
4777   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4778
4779   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4780
4781   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4782
4783
4784 LIB_EXT=.a
4785 STATIC_LIB_EXT=.a
4786 PROFILED_LIB_EXT=.a
4787
4788 # Check whether --with-root-prefix was given.
4789 if test "${with_root_prefix+set}" = set; then :
4790   withval=$with_root_prefix; root_prefix=$withval
4791 else
4792   root_prefix=NONE
4793 fi
4794 # Check whether --enable-maintainer-mode was given.
4795 if test "${enable_maintainer_mode+set}" = set; then :
4796   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4797 then
4798         MAINTAINER_CMT=#
4799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4800 $as_echo "Disabling maintainer mode" >&6; }
4801 else
4802         MAINTAINER_CMT=
4803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4804 $as_echo "Enabling maintainer mode" >&6; }
4805 fi
4806
4807 else
4808   MAINTAINER_CMT=#
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4810 $as_echo "Disabling maintainer mode by default" >&6; }
4811
4812 fi
4813
4814
4815 # Check whether --enable-symlink-install was given.
4816 if test "${enable_symlink_install+set}" = set; then :
4817   enableval=$enable_symlink_install; if test "$enableval" = "no"
4818 then
4819         LINK_INSTALL_FLAGS=-f
4820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4821 $as_echo "Disabling symlinks for install" >&6; }
4822 else
4823         LINK_INSTALL_FLAGS=-sf
4824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4825 $as_echo "Enabling symlinks for install" >&6; }
4826 fi
4827
4828 else
4829   LINK_INSTALL_FLAGS=-f
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4831 $as_echo "Disabling symlinks for install by default" >&6; }
4832
4833 fi
4834
4835
4836 relative_symlink_defined=
4837 # Check whether --enable-relative-symlinks was given.
4838 if test "${enable_relative_symlinks+set}" = set; then :
4839   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4840 then
4841         SYMLINK_RELATIVE=
4842         relative_symlink_defined=yes
4843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844 $as_echo "Disabling relative symlinks for install" >&6; }
4845 else
4846         SYMLINK_RELATIVE=--relative
4847         relative_symlink_defined=yes
4848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4849 $as_echo "Enabling relative symlinks for install" >&6; }
4850 fi
4851 fi
4852
4853 # Check whether --enable-symlink-relative-symlinks was given.
4854 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4855   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4856 then
4857         SYMLINK_RELATIVE=yes
4858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4859 $as_echo "Disabling relative symlinks for install" >&6; }
4860 else
4861         SYMLINK_RELATIVE=--relative
4862         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4863 $as_echo "Enabling relative symlinks for install" >&6; }
4864 fi
4865
4866 else
4867   if test -z "$relative_symlink_defined"
4868 then
4869         SYMLINK_RELATIVE=
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4871 $as_echo "Disabling relative symlinks for install by default" >&6; }
4872 fi
4873
4874 fi
4875
4876
4877 # Check whether --enable-symlink-build was given.
4878 if test "${enable_symlink_build+set}" = set; then :
4879   enableval=$enable_symlink_build; if test "$enableval" = "no"
4880 then
4881         LINK_BUILD_FLAGS=
4882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4883 $as_echo "Disabling symlinks for build" >&6; }
4884 else
4885         LINK_BUILD_FLAGS=-s
4886         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4887 $as_echo "Enabling symlinks for build" >&6; }
4888 fi
4889
4890 else
4891   LINK_BUILD_FLAGS=
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4893 $as_echo "Disabling symlinks for build by default" >&6; }
4894
4895 fi
4896
4897
4898 # Check whether --enable-verbose-makecmds was given.
4899 if test "${enable_verbose_makecmds+set}" = set; then :
4900   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4901 then
4902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4903 $as_echo "Disabling verbose make commands" >&6; }
4904         E=@echo
4905         ES=echo
4906         Q=@
4907 else
4908         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4909 $as_echo "Enabling verbose make commands" >&6; }
4910         E=@\\#
4911         ES=\\#
4912         Q=
4913 fi
4914
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4917 $as_echo "Disabling verbose make commands" >&6; }
4918 E=@echo
4919 ES=echo
4920 Q=@
4921
4922 fi
4923
4924
4925
4926
4927 E2_PKG_CONFIG_STATIC=--static
4928 LDFLAG_DYNAMIC=
4929 PRIVATE_LIBS_CMT=
4930 # Check whether --enable-elf-shlibs was given.
4931 if test "${enable_elf_shlibs+set}" = set; then :
4932   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4933 then
4934         ELF_CMT=#
4935         MAKEFILE_ELF=/dev/null
4936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4937 $as_echo "Disabling ELF shared libraries" >&6; }
4938 else
4939         E2_PKG_CONFIG_STATIC=
4940         ELF_CMT=
4941         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4942         case "$host_os" in
4943         solaris2.*)
4944                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4945         ;;
4946         esac
4947         BINARY_TYPE=elfbin
4948         LIB_EXT=.so
4949         PRIVATE_LIBS_CMT=#
4950         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4952 $as_echo "Enabling ELF shared libraries" >&6; }
4953 fi
4954
4955 else
4956   MAKEFILE_ELF=/dev/null
4957 ELF_CMT=#
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4959 $as_echo "Disabling ELF shared libraries by default" >&6; }
4960
4961 fi
4962
4963
4964
4965 # Check whether --enable-bsd-shlibs was given.
4966 if test "${enable_bsd_shlibs+set}" = set; then :
4967   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4968 then
4969         BSDLIB_CMT=#
4970         MAKEFILE_BSDLIB=/dev/null
4971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4972 $as_echo "Disabling BSD shared libraries" >&6; }
4973 else
4974         E2_PKG_CONFIG_STATIC=
4975         BSDLIB_CMT=
4976         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4977         LIB_EXT=.so
4978         case "$host_os" in
4979         darwin*)
4980                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4981                 LIB_EXT=.dylib
4982         ;;
4983         esac
4984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4985 $as_echo "Enabling BSD shared libraries" >&6; }
4986 fi
4987
4988 else
4989   MAKEFILE_BSDLIB=/dev/null
4990 BSDLIB_CMT=#
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4992 $as_echo "Disabling BSD shared libraries by default" >&6; }
4993
4994 fi
4995
4996
4997
4998 # Check whether --enable-profile was given.
4999 if test "${enable_profile+set}" = set; then :
5000   enableval=$enable_profile; if test "$enableval" = "no"
5001 then
5002         PROFILE_CMT=#
5003         MAKEFILE_PROFILE=/dev/null
5004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5005 $as_echo "Disabling profiling libraries" >&6; }
5006 else
5007         PROFILE_CMT=
5008         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5009         PROFILED_LIB_EXT=_p.a
5010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5011 $as_echo "Building profiling libraries" >&6; }
5012 fi
5013
5014 else
5015   PROFILE_CMT=#
5016 MAKEFILE_PROFILE=/dev/null
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5018 $as_echo "Disabling profiling libraries by default" >&6; }
5019
5020 fi
5021
5022
5023
5024 # Check whether --enable-gcov was given.
5025 if test "${enable_gcov+set}" = set; then :
5026   enableval=$enable_gcov; if test "$enableval" = "yes"
5027 then
5028         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5029         LDFLAGS="-fprofile-arcs -ftest-coverage"
5030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5031 $as_echo "Enabling gcov support" >&6; }
5032 fi
5033
5034 fi
5035
5036 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5037 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5038 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5039 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5040 # Check whether --enable-hardening was given.
5041 if test "${enable_hardening+set}" = set; then :
5042   enableval=$enable_hardening; if test "$enableval" = "yes"
5043 then
5044         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5045         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5046         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5047         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5048         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5049         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5050         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5051         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5052         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5053 $as_echo "Enabling hardening support" >&6; }
5054 fi
5055
5056 fi
5057
5058
5059
5060
5061
5062
5063 # Check whether --enable-jbd-debug was given.
5064 if test "${enable_jbd_debug+set}" = set; then :
5065   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5066 then
5067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5068 $as_echo "Disabling journal debugging" >&6; }
5069 else
5070
5071 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5072
5073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5074 $as_echo "Enabling journal debugging" >&6; }
5075 fi
5076
5077 else
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5079 $as_echo "Disabling journal debugging by default" >&6; }
5080
5081 fi
5082
5083 # Check whether --enable-blkid-debug was given.
5084 if test "${enable_blkid_debug+set}" = set; then :
5085   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5086 then
5087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5088 $as_echo "Disabling blkid debugging" >&6; }
5089 else
5090
5091 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5092
5093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5094 $as_echo "Enabling blkid debugging" >&6; }
5095 fi
5096
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5099 $as_echo "Disabling blkid debugging by default" >&6; }
5100
5101 fi
5102
5103 # Check whether --enable-testio-debug was given.
5104 if test "${enable_testio_debug+set}" = set; then :
5105   enableval=$enable_testio_debug;
5106 if test "$enableval" = "no"
5107 then
5108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5109 $as_echo "Disabling testio debugging" >&6; }
5110         TEST_IO_CMT="#"
5111 else
5112         TEST_IO_CMT=
5113         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5114
5115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5116 $as_echo "Enabling testio debugging" >&6; }
5117 fi
5118
5119 else
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5121 $as_echo "Enabling testio debugging by default" >&6; }
5122 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5123
5124 TEST_IO_CMT=
5125
5126 fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5137         if test -n "$ac_tool_prefix"; then
5138   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $PKG_CONFIG in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164
5165   ;;
5166 esac
5167 fi
5168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5169 if test -n "$PKG_CONFIG"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5171 $as_echo "$PKG_CONFIG" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$ac_cv_path_PKG_CONFIG"; then
5180   ac_pt_PKG_CONFIG=$PKG_CONFIG
5181   # Extract the first word of "pkg-config", so it can be a program name with args.
5182 set dummy pkg-config; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case $ac_pt_PKG_CONFIG in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207
5208   ;;
5209 esac
5210 fi
5211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5212 if test -n "$ac_pt_PKG_CONFIG"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220   if test "x$ac_pt_PKG_CONFIG" = x; then
5221     PKG_CONFIG=""
5222   else
5223     case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229     PKG_CONFIG=$ac_pt_PKG_CONFIG
5230   fi
5231 else
5232   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5233 fi
5234
5235 fi
5236 if test -n "$PKG_CONFIG"; then
5237         _pkg_min_version=0.9.0
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5240         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5241                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5243         else
5244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246                 PKG_CONFIG=""
5247         fi
5248 fi
5249 LIBUUID=
5250 DEPLIBUUID=
5251 STATIC_LIBUUID=
5252 DEPSTATIC_LIBUUID=
5253 PROFILED_LIBUUID=
5254 DEPPROFILED_LIBUUID=
5255 UUID_CMT=
5256 # Check whether --enable-libuuid was given.
5257 if test "${enable_libuuid+set}" = set; then :
5258   enableval=$enable_libuuid; if test "$enableval" = "no"
5259 then
5260         if test -z "$PKG_CONFIG"; then
5261                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5262         fi
5263
5264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5265 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5266 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-luuid  $LIBS"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273
5274 /* Override any GCC internal prototype to avoid an error.
5275    Use char because int might match the return type of a GCC
5276    builtin and then its argument prototype would still apply.  */
5277 #ifdef __cplusplus
5278 extern "C"
5279 #endif
5280 char uuid_generate ();
5281 int
5282 main ()
5283 {
5284 return uuid_generate ();
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_link "$LINENO"; then :
5290   ac_cv_lib_uuid_uuid_generate=yes
5291 else
5292   ac_cv_lib_uuid_uuid_generate=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext \
5295     conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5299 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5300 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5301   LIBUUID=`$PKG_CONFIG --libs uuid`;
5302                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5303 else
5304   as_fn_error $? "external uuid library not found" "$LINENO" 5
5305 fi
5306
5307         PROFILED_LIBUUID=$LIBUUID
5308         UUID_CMT=#
5309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5310 $as_echo "Disabling private uuid library" >&6; }
5311 else
5312         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5313         DEPLIBUUID=$LIBUUID
5314         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5315         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5316         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5317         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5319 $as_echo "Enabling private uuid library" >&6; }
5320 fi
5321
5322 else
5323   if test -n "$PKG_CONFIG"; then
5324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5325 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5326 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   ac_check_lib_save_LIBS=$LIBS
5330 LIBS="-luuid  $LIBS"
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h.  */
5333
5334 /* Override any GCC internal prototype to avoid an error.
5335    Use char because int might match the return type of a GCC
5336    builtin and then its argument prototype would still apply.  */
5337 #ifdef __cplusplus
5338 extern "C"
5339 #endif
5340 char uuid_generate ();
5341 int
5342 main ()
5343 {
5344 return uuid_generate ();
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_link "$LINENO"; then :
5350   ac_cv_lib_uuid_uuid_generate=yes
5351 else
5352   ac_cv_lib_uuid_uuid_generate=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext \
5355     conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5359 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5360 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5361   LIBUUID=`$PKG_CONFIG --libs uuid`;
5362                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5363 fi
5364
5365 fi
5366 if test -n "$LIBUUID"; then
5367         PROFILED_LIBUUID=$LIBUUID
5368         UUID_CMT=#
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5370 $as_echo "Using system uuid by default" >&6; }
5371 else
5372         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5373         DEPLIBUUID=$LIBUUID
5374         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5375         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5376         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5377         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5379 $as_echo "Enabling private uuid library by default" >&6; }
5380 fi
5381
5382 fi
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5399         if test -n "$ac_tool_prefix"; then
5400   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   case $PKG_CONFIG in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427   ;;
5428 esac
5429 fi
5430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5431 if test -n "$PKG_CONFIG"; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5433 $as_echo "$PKG_CONFIG" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 fi
5441 if test -z "$ac_cv_path_PKG_CONFIG"; then
5442   ac_pt_PKG_CONFIG=$PKG_CONFIG
5443   # Extract the first word of "pkg-config", so it can be a program name with args.
5444 set dummy pkg-config; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   case $ac_pt_PKG_CONFIG in
5451   [\\/]* | ?:[\\/]*)
5452   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5453   ;;
5454   *)
5455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470   ;;
5471 esac
5472 fi
5473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5474 if test -n "$ac_pt_PKG_CONFIG"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5476 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482   if test "x$ac_pt_PKG_CONFIG" = x; then
5483     PKG_CONFIG=""
5484   else
5485     case $cross_compiling:$ac_tool_warned in
5486 yes:)
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489 ac_tool_warned=yes ;;
5490 esac
5491     PKG_CONFIG=$ac_pt_PKG_CONFIG
5492   fi
5493 else
5494   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5495 fi
5496
5497 fi
5498 if test -n "$PKG_CONFIG"; then
5499         _pkg_min_version=0.9.0
5500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5501 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5502         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5503                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505         else
5506                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508                 PKG_CONFIG=""
5509         fi
5510 fi
5511 LIBBLKID=
5512 DEPLIBBLKID=
5513 STATIC_LIBBLKID=
5514 DEPSTATIC_LIBBLKID=
5515 PROFILED_LIBBLKID=
5516 DEPPROFILED_LIBBLKID=
5517 BLKID_CMT=
5518
5519 # Check whether --enable-libblkid was given.
5520 if test "${enable_libblkid+set}" = set; then :
5521   enableval=$enable_libblkid; if test "$enableval" = "no"
5522 then
5523         if test -z "$PKG_CONFIG"; then
5524                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5525         fi
5526
5527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5528 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5529 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5530   $as_echo_n "(cached) " >&6
5531 else
5532   ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-lblkid -luuid $LIBS"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536
5537 /* Override any GCC internal prototype to avoid an error.
5538    Use char because int might match the return type of a GCC
5539    builtin and then its argument prototype would still apply.  */
5540 #ifdef __cplusplus
5541 extern "C"
5542 #endif
5543 char blkid_get_cache ();
5544 int
5545 main ()
5546 {
5547 return blkid_get_cache ();
5548   ;
5549   return 0;
5550 }
5551 _ACEOF
5552 if ac_fn_c_try_link "$LINENO"; then :
5553   ac_cv_lib_blkid_blkid_get_cache=yes
5554 else
5555   ac_cv_lib_blkid_blkid_get_cache=no
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext \
5558     conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5562 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5563 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5564   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5565                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5566 else
5567   as_fn_error $? "external blkid library not found" "$LINENO" 5
5568 fi
5569
5570         BLKID_CMT=#
5571         PROFILED_LIBBLKID=$LIBBLKID
5572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5573 $as_echo "Disabling private blkid library" >&6; }
5574 else
5575         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5576         DEPLIBBLKID=$LIBBLKID
5577         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5578         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5579         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5580         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5581         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5582
5583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5584 $as_echo "Enabling private blkid library" >&6; }
5585 fi
5586
5587 else
5588   if test -n "$PKG_CONFIG"; then
5589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5590 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5591 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   ac_check_lib_save_LIBS=$LIBS
5595 LIBS="-lblkid  $LIBS"
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h.  */
5598
5599 /* Override any GCC internal prototype to avoid an error.
5600    Use char because int might match the return type of a GCC
5601    builtin and then its argument prototype would still apply.  */
5602 #ifdef __cplusplus
5603 extern "C"
5604 #endif
5605 char blkid_get_cache ();
5606 int
5607 main ()
5608 {
5609 return blkid_get_cache ();
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_c_try_link "$LINENO"; then :
5615   ac_cv_lib_blkid_blkid_get_cache=yes
5616 else
5617   ac_cv_lib_blkid_blkid_get_cache=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext \
5620     conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5624 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5625 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5626   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5627                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5628 fi
5629
5630 fi
5631 if test -n "$LIBBLKID"; then
5632         BLKID_CMT=#
5633         PROFILED_LIBBLKID=$LIBBLKID
5634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5635 $as_echo "Using system blkid library by default" >&6; }
5636 else
5637         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5638         DEPLIBBLKID=$LIBBLKID
5639         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5640         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5641         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5642         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5643         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5644
5645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5646 $as_echo "Enabling private blkid library by default" >&6; }
5647 fi
5648
5649 fi
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 # Check whether --enable-backtrace was given.
5660 if test "${enable_backtrace+set}" = set; then :
5661   enableval=$enable_backtrace; if test "$enableval" = "no"
5662 then
5663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5664 $as_echo "Disabling use of backtrace" >&6; }
5665         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5666
5667 else
5668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5669 $as_echo "Enabling use of backtrace" >&6; }
5670 fi
5671
5672 else
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5674 $as_echo "Enabling use of backtrace by default" >&6; }
5675
5676 fi
5677
5678 # Check whether --enable-debugfs was given.
5679 if test "${enable_debugfs+set}" = set; then :
5680   enableval=$enable_debugfs; if test "$enableval" = "no"
5681 then
5682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5683 $as_echo "Disabling debugfs support" >&6; }
5684         DEBUGFS_CMT="#"
5685 else
5686         DEBUGFS_CMT=
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5688 $as_echo "Enabling debugfs support" >&6; }
5689 fi
5690
5691 else
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5693 $as_echo "Enabling debugfs support by default" >&6; }
5694 DEBUGFS_CMT=
5695
5696 fi
5697
5698
5699 # Check whether --enable-imager was given.
5700 if test "${enable_imager+set}" = set; then :
5701   enableval=$enable_imager; if test "$enableval" = "no"
5702 then
5703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5704 $as_echo "Disabling e2image support" >&6; }
5705         IMAGER_CMT="#"
5706 else
5707         IMAGER_CMT=
5708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5709 $as_echo "Enabling e2image support" >&6; }
5710 fi
5711
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5714 $as_echo "Enabling e2image support by default" >&6; }
5715 IMAGER_CMT=
5716
5717 fi
5718
5719
5720 # Check whether --enable-resizer was given.
5721 if test "${enable_resizer+set}" = set; then :
5722   enableval=$enable_resizer; if test "$enableval" = "no"
5723 then
5724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5725 $as_echo "Disabling e2resize support" >&6; }
5726         RESIZER_CMT="#"
5727 else
5728         RESIZER_CMT=
5729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5730 $as_echo "Enabling e2resize support" >&6; }
5731 fi
5732
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5735 $as_echo "Enabling e2resize support by default" >&6; }
5736 RESIZER_CMT=
5737
5738 fi
5739
5740
5741 # Check whether --enable-defrag was given.
5742 if test "${enable_defrag+set}" = set; then :
5743   enableval=$enable_defrag; if test "$enableval" = "no"
5744 then
5745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5746 $as_echo "Disabling e4defrag support" >&6; }
5747         DEFRAG_CMT="#"
5748 else
5749         DEFRAG_CMT=
5750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5751 $as_echo "Enabling e4defrag support" >&6; }
5752 fi
5753
5754 else
5755   if test -z "$WITH_DIET_LIBC"
5756 then
5757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5758 $as_echo "Enabling e4defrag support by default" >&6; }
5759         DEFRAG_CMT=
5760 else
5761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5762 $as_echo "Disabling e4defrag support by default" >&6; }
5763         DEFRAG_CMT="#"
5764 fi
5765
5766 fi
5767
5768
5769 # Check whether --enable-fsck was given.
5770 if test "${enable_fsck+set}" = set; then :
5771   enableval=$enable_fsck; if test "$enableval" = "no"
5772 then
5773         FSCK_PROG='' FSCK_MAN=''
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5775 $as_echo "Not building fsck wrapper" >&6; }
5776 else
5777         FSCK_PROG=fsck FSCK_MAN=fsck.8
5778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5779 $as_echo "Building fsck wrapper" >&6; }
5780 fi
5781
5782 else
5783   case "$host_os" in
5784   gnu*)
5785     FSCK_PROG='' FSCK_MAN=''
5786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5787 $as_echo "Not building fsck wrapper by default" >&6; }
5788     ;;
5789   *)
5790     FSCK_PROG=fsck FSCK_MAN=fsck.8
5791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5792 $as_echo "Building fsck wrapper by default" >&6; }
5793 esac
5794
5795 fi
5796
5797
5798
5799 # Check whether --enable-e2initrd-helper was given.
5800 if test "${enable_e2initrd_helper+set}" = set; then :
5801   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5802 then
5803         E2INITRD_PROG='' E2INITRD_MAN=''
5804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5805 $as_echo "Not building e2initrd helper" >&6; }
5806 else
5807         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5809 $as_echo "Building e2initrd helper" >&6; }
5810 fi
5811
5812 else
5813   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5815 $as_echo "Building e2initrd helper by default" >&6; }
5816
5817 fi
5818
5819
5820
5821 # Check whether --enable-tls was given.
5822 if test "${enable_tls+set}" = set; then :
5823   enableval=$enable_tls; if test "$enableval" = "no"
5824 then
5825         try_tls=""
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5827 $as_echo "Disabling thread local support" >&6; }
5828 else
5829         try_tls="yes"
5830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5831 $as_echo "Enabling thread local support" >&6; }
5832 fi
5833
5834 else
5835   if test -n "$WITH_DIET_LIBC"
5836 then
5837         try_tls=""
5838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5839 $as_echo "Diet libc does not support thread local support" >&6; }
5840 else
5841         try_tls="yes"
5842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5843 $as_echo "Try using thread local support by default" >&6; }
5844 fi
5845
5846 fi
5847
5848 if test "$try_tls" = "yes"
5849 then
5850
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5852 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5853   if ${ac_cv_tls+:} false; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856
5857     ax_tls_keywords="__thread __declspec(thread) none"
5858     for ax_tls_keyword in $ax_tls_keywords; do
5859        case $ax_tls_keyword in
5860           none) ac_cv_tls=none ; break ;;
5861           *)
5862              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h.  */
5864 #include <stdlib.h>
5865                  static void
5866                  foo(void) {
5867                  static  $ax_tls_keyword  int bar;
5868                  exit(1);
5869                  }
5870 int
5871 main ()
5872 {
5873
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879   ac_cv_tls=$ax_tls_keyword ; break
5880 else
5881   ac_cv_tls=none
5882
5883 fi
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885           esac
5886     done
5887
5888 fi
5889
5890
5891   if test "$ac_cv_tls" != "none"; then
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define TLS $ac_cv_tls
5895 _ACEOF
5896
5897   fi
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5899 $as_echo "$ac_cv_tls" >&6; }
5900
5901 fi
5902
5903 # Check whether --enable-uuidd was given.
5904 if test "${enable_uuidd+set}" = set; then :
5905   enableval=$enable_uuidd; if test "$enableval" = "no"
5906 then
5907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5908 $as_echo "Not building uuidd" >&6; }
5909         UUIDD_CMT="#"
5910 else
5911         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5912
5913         UUIDD_CMT=""
5914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5915 $as_echo "Building uuidd" >&6; }
5916 fi
5917
5918 else
5919   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5920
5921 if test -z "$UUID_CMT"
5922 then
5923         UUIDD_CMT=""
5924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5925 $as_echo "Building uuidd by default" >&6; }
5926 else
5927         UUIDD_CMT="#"
5928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5929 $as_echo "Disabling uuidd by default" >&6; }
5930 fi
5931
5932 fi
5933
5934
5935
5936 # Check whether --enable-mmp was given.
5937 if test "${enable_mmp+set}" = set; then :
5938   enableval=$enable_mmp; if test "$enableval" = "no"
5939 then
5940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5941 $as_echo "Disabling mmp support" >&6; }
5942 else
5943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5944 $as_echo "Enabling mmp support" >&6; }
5945         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5946
5947 fi
5948
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5951 $as_echo "Enabling mmp support by default" >&6; }
5952 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5953
5954
5955 fi
5956
5957
5958 # Check whether --enable-tdb was given.
5959 if test "${enable_tdb+set}" = set; then :
5960   enableval=$enable_tdb; if test "$enableval" = "no"
5961 then
5962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5963 $as_echo "Disabling tdb support" >&6; }
5964         TDB_CMT="#"
5965         TDB_MAN_COMMENT='.\"'
5966 else
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5968 $as_echo "Enabling tdb support" >&6; }
5969         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5970
5971         TDB_CMT=""
5972         TDB_MAN_COMMENT=""
5973 fi
5974
5975 else
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5977 $as_echo "Enabling mmp support by default" >&6; }
5978 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5979
5980 TDB_CMT=""
5981 TDB_MAN_COMMENT=""
5982
5983 fi
5984
5985
5986
5987
5988 # Check whether --enable-bmap-stats was given.
5989 if test "${enable_bmap_stats+set}" = set; then :
5990   enableval=$enable_bmap_stats; if test "$enableval" = "no"
5991 then
5992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5993 $as_echo "Disabling bitmap statistics support" >&6; }
5994 else
5995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5996 $as_echo "Enabling bitmap statistics support" >&6; }
5997         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5998
5999 fi
6000
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6003 $as_echo "Enabling bitmap statistics support by default" >&6; }
6004 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6005
6006
6007 fi
6008
6009
6010 # Check whether --enable-bmap-stats-ops was given.
6011 if test "${enable_bmap_stats_ops+set}" = set; then :
6012   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6013 then
6014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6015 $as_echo "Disabling additional bitmap statistics" >&6; }
6016 else
6017                 if test "x${enable_bmap_stats}" = "xno"; then :
6018   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6020 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6021 See \`config.log' for more details" "$LINENO" 5; }
6022 fi
6023
6024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6025 $as_echo "Enabling additional bitmap statistics" >&6; }
6026         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6027
6028 fi
6029
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6032 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6033
6034 fi
6035
6036 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6037
6038 GETTEXT_PACKAGE=e2fsprogs
6039 PACKAGE=e2fsprogs
6040 VERSION="$E2FSPROGS_VERSION"
6041 VERSION=0.14.1
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define PACKAGE "$PACKAGE"
6045 _ACEOF
6046
6047
6048 cat >>confdefs.h <<_ACEOF
6049 #define VERSION "$VERSION"
6050 _ACEOF
6051
6052
6053
6054
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6058 set x ${MAKE-make}
6059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   cat >conftest.make <<\_ACEOF
6064 SHELL = /bin/sh
6065 all:
6066         @echo '@@@%%%=$(MAKE)=@@@%%%'
6067 _ACEOF
6068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6070   *@@@%%%=?*=@@@%%%*)
6071     eval ac_cv_prog_make_${ac_make}_set=yes;;
6072   *)
6073     eval ac_cv_prog_make_${ac_make}_set=no;;
6074 esac
6075 rm -f conftest.make
6076 fi
6077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079 $as_echo "yes" >&6; }
6080   SET_MAKE=
6081 else
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084   SET_MAKE="MAKE=${MAKE-make}"
6085 fi
6086
6087 # Find a good install program.  We prefer a C program (faster),
6088 # so one script is as good as another.  But avoid the broken or
6089 # incompatible versions:
6090 # SysV /etc/install, /usr/sbin/install
6091 # SunOS /usr/etc/install
6092 # IRIX /sbin/install
6093 # AIX /bin/install
6094 # AmigaOS /C/install, which installs bootblocks on floppy discs
6095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6098 # OS/2's system install, which has a completely different semantic
6099 # ./install, which can be erroneously created by make from ./install.sh.
6100 # Reject install programs that cannot install multiple files.
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6102 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6103 if test -z "$INSTALL"; then
6104 if ${ac_cv_path_install+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     # Account for people who put trailing slashes in PATH elements.
6113 case $as_dir/ in #((
6114   ./ | .// | /[cC]/* | \
6115   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6116   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6117   /usr/ucb/* ) ;;
6118   *)
6119     # OSF1 and SCO ODT 3.0 have their own names for install.
6120     # Don't use installbsd from OSF since it installs stuff as root
6121     # by default.
6122     for ac_prog in ginstall scoinst install; do
6123       for ac_exec_ext in '' $ac_executable_extensions; do
6124         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6125           if test $ac_prog = install &&
6126             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6127             # AIX install.  It has an incompatible calling convention.
6128             :
6129           elif test $ac_prog = install &&
6130             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6131             # program-specific install script used by HP pwplus--don't use.
6132             :
6133           else
6134             rm -rf conftest.one conftest.two conftest.dir
6135             echo one > conftest.one
6136             echo two > conftest.two
6137             mkdir conftest.dir
6138             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6139               test -s conftest.one && test -s conftest.two &&
6140               test -s conftest.dir/conftest.one &&
6141               test -s conftest.dir/conftest.two
6142             then
6143               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6144               break 3
6145             fi
6146           fi
6147         fi
6148       done
6149     done
6150     ;;
6151 esac
6152
6153   done
6154 IFS=$as_save_IFS
6155
6156 rm -rf conftest.one conftest.two conftest.dir
6157
6158 fi
6159   if test "${ac_cv_path_install+set}" = set; then
6160     INSTALL=$ac_cv_path_install
6161   else
6162     # As a last resort, use the slow shell script.  Don't cache a
6163     # value for INSTALL within a source directory, because that will
6164     # break other packages using the cache if that directory is
6165     # removed, or if the value is a relative name.
6166     INSTALL=$ac_install_sh
6167   fi
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6170 $as_echo "$INSTALL" >&6; }
6171
6172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6173 # It thinks the first close brace ends the variable substitution.
6174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6175
6176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6177
6178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6182 if test -z "$MKDIR_P"; then
6183   if ${ac_cv_path_mkdir+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_prog in mkdir gmkdir; do
6192          for ac_exec_ext in '' $ac_executable_extensions; do
6193            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6194            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6195              'mkdir (GNU coreutils) '* | \
6196              'mkdir (coreutils) '* | \
6197              'mkdir (fileutils) '4.1*)
6198                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6199                break 3;;
6200            esac
6201          done
6202        done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207
6208   test -d ./--version && rmdir ./--version
6209   if test "${ac_cv_path_mkdir+set}" = set; then
6210     MKDIR_P="$ac_cv_path_mkdir -p"
6211   else
6212     # As a last resort, use the slow shell script.  Don't cache a
6213     # value for MKDIR_P within a source directory, because that will
6214     # break other packages using the cache if that directory is
6215     # removed, or if the value is a relative name.
6216     MKDIR_P="$ac_install_sh -d"
6217   fi
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6220 $as_echo "$MKDIR_P" >&6; }
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6223 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6224 if ${ac_cv_path_SED+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6228      for ac_i in 1 2 3 4 5 6 7; do
6229        ac_script="$ac_script$as_nl$ac_script"
6230      done
6231      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6232      { ac_script=; unset ac_script;}
6233      if test -z "$SED"; then
6234   ac_path_SED_found=false
6235   # Loop through the user's path and test for each of PROGNAME-LIST
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_prog in sed gsed; do
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6244       as_fn_executable_p "$ac_path_SED" || continue
6245 # Check for GNU ac_path_SED and select it if it is found.
6246   # Check for GNU $ac_path_SED
6247 case `"$ac_path_SED" --version 2>&1` in
6248 *GNU*)
6249   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6250 *)
6251   ac_count=0
6252   $as_echo_n 0123456789 >"conftest.in"
6253   while :
6254   do
6255     cat "conftest.in" "conftest.in" >"conftest.tmp"
6256     mv "conftest.tmp" "conftest.in"
6257     cp "conftest.in" "conftest.nl"
6258     $as_echo '' >> "conftest.nl"
6259     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261     as_fn_arith $ac_count + 1 && ac_count=$as_val
6262     if test $ac_count -gt ${ac_path_SED_max-0}; then
6263       # Best one so far, save it but keep looking for a better one
6264       ac_cv_path_SED="$ac_path_SED"
6265       ac_path_SED_max=$ac_count
6266     fi
6267     # 10*(2^10) chars as input seems more than enough
6268     test $ac_count -gt 10 && break
6269   done
6270   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6271 esac
6272
6273       $ac_path_SED_found && break 3
6274     done
6275   done
6276   done
6277 IFS=$as_save_IFS
6278   if test -z "$ac_cv_path_SED"; then
6279     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6280   fi
6281 else
6282   ac_cv_path_SED=$SED
6283 fi
6284
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6287 $as_echo "$ac_cv_path_SED" >&6; }
6288  SED="$ac_cv_path_SED"
6289   rm -f conftest.sed
6290
6291
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6293 $as_echo_n "checking whether NLS is requested... " >&6; }
6294     # Check whether --enable-nls was given.
6295 if test "${enable_nls+set}" = set; then :
6296   enableval=$enable_nls; USE_NLS=$enableval
6297 else
6298   USE_NLS=yes
6299 fi
6300
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6302 $as_echo "$USE_NLS" >&6; }
6303
6304
6305
6306
6307       GETTEXT_MACRO_VERSION=0.18
6308
6309
6310
6311
6312 # Prepare PATH_SEPARATOR.
6313 # The user is always right.
6314 if test "${PATH_SEPARATOR+set}" != set; then
6315   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6316   # contains only /bin. Note that ksh looks also at the FPATH variable,
6317   # so we have to set that as well for the test.
6318   PATH_SEPARATOR=:
6319   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6320     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6321            || PATH_SEPARATOR=';'
6322        }
6323 fi
6324
6325 # Find out how to test for executable files. Don't use a zero-byte file,
6326 # as systems may use methods other than mode bits to determine executability.
6327 cat >conf$$.file <<_ASEOF
6328 #! /bin/sh
6329 exit 0
6330 _ASEOF
6331 chmod +x conf$$.file
6332 if test -x conf$$.file >/dev/null 2>&1; then
6333   ac_executable_p="test -x"
6334 else
6335   ac_executable_p="test -f"
6336 fi
6337 rm -f conf$$.file
6338
6339 # Extract the first word of "msgfmt", so it can be a program name with args.
6340 set dummy msgfmt; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_path_MSGFMT+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   case "$MSGFMT" in
6347   [\\/]* | ?:[\\/]*)
6348     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6349     ;;
6350   *)
6351     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6352     for ac_dir in $PATH; do
6353       IFS="$ac_save_IFS"
6354       test -z "$ac_dir" && ac_dir=.
6355       for ac_exec_ext in '' $ac_executable_extensions; do
6356         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6357           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6358           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6359      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6360             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6361             break 2
6362           fi
6363         fi
6364       done
6365     done
6366     IFS="$ac_save_IFS"
6367   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6368     ;;
6369 esac
6370 fi
6371 MSGFMT="$ac_cv_path_MSGFMT"
6372 if test "$MSGFMT" != ":"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6374 $as_echo "$MSGFMT" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6381 set dummy gmsgfmt; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_path_GMSGFMT+:} false; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   case $GMSGFMT in
6388   [\\/]* | ?:[\\/]*)
6389   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6390   ;;
6391   *)
6392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397     for ac_exec_ext in '' $ac_executable_extensions; do
6398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404   done
6405 IFS=$as_save_IFS
6406
6407   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6408   ;;
6409 esac
6410 fi
6411 GMSGFMT=$ac_cv_path_GMSGFMT
6412 if test -n "$GMSGFMT"; then
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6414 $as_echo "$GMSGFMT" >&6; }
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421
6422     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6423     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6424     *) MSGFMT_015=$MSGFMT ;;
6425   esac
6426
6427   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6428     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6429     *) GMSGFMT_015=$GMSGFMT ;;
6430   esac
6431
6432
6433
6434 # Prepare PATH_SEPARATOR.
6435 # The user is always right.
6436 if test "${PATH_SEPARATOR+set}" != set; then
6437   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6438   # contains only /bin. Note that ksh looks also at the FPATH variable,
6439   # so we have to set that as well for the test.
6440   PATH_SEPARATOR=:
6441   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6442     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6443            || PATH_SEPARATOR=';'
6444        }
6445 fi
6446
6447 # Find out how to test for executable files. Don't use a zero-byte file,
6448 # as systems may use methods other than mode bits to determine executability.
6449 cat >conf$$.file <<_ASEOF
6450 #! /bin/sh
6451 exit 0
6452 _ASEOF
6453 chmod +x conf$$.file
6454 if test -x conf$$.file >/dev/null 2>&1; then
6455   ac_executable_p="test -x"
6456 else
6457   ac_executable_p="test -f"
6458 fi
6459 rm -f conf$$.file
6460
6461 # Extract the first word of "xgettext", so it can be a program name with args.
6462 set dummy xgettext; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_path_XGETTEXT+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   case "$XGETTEXT" in
6469   [\\/]* | ?:[\\/]*)
6470     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6471     ;;
6472   *)
6473     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6474     for ac_dir in $PATH; do
6475       IFS="$ac_save_IFS"
6476       test -z "$ac_dir" && ac_dir=.
6477       for ac_exec_ext in '' $ac_executable_extensions; do
6478         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6479           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6480           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6481      (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
6482             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6483             break 2
6484           fi
6485         fi
6486       done
6487     done
6488     IFS="$ac_save_IFS"
6489   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6490     ;;
6491 esac
6492 fi
6493 XGETTEXT="$ac_cv_path_XGETTEXT"
6494 if test "$XGETTEXT" != ":"; then
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6496 $as_echo "$XGETTEXT" >&6; }
6497 else
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6500 fi
6501
6502     rm -f messages.po
6503
6504     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6505     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6506     *) XGETTEXT_015=$XGETTEXT ;;
6507   esac
6508
6509
6510
6511 # Prepare PATH_SEPARATOR.
6512 # The user is always right.
6513 if test "${PATH_SEPARATOR+set}" != set; then
6514   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6515   # contains only /bin. Note that ksh looks also at the FPATH variable,
6516   # so we have to set that as well for the test.
6517   PATH_SEPARATOR=:
6518   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6519     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6520            || PATH_SEPARATOR=';'
6521        }
6522 fi
6523
6524 # Find out how to test for executable files. Don't use a zero-byte file,
6525 # as systems may use methods other than mode bits to determine executability.
6526 cat >conf$$.file <<_ASEOF
6527 #! /bin/sh
6528 exit 0
6529 _ASEOF
6530 chmod +x conf$$.file
6531 if test -x conf$$.file >/dev/null 2>&1; then
6532   ac_executable_p="test -x"
6533 else
6534   ac_executable_p="test -f"
6535 fi
6536 rm -f conf$$.file
6537
6538 # Extract the first word of "msgmerge", so it can be a program name with args.
6539 set dummy msgmerge; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_path_MSGMERGE+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   case "$MSGMERGE" in
6546   [\\/]* | ?:[\\/]*)
6547     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6548     ;;
6549   *)
6550     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6551     for ac_dir in $PATH; do
6552       IFS="$ac_save_IFS"
6553       test -z "$ac_dir" && ac_dir=.
6554       for ac_exec_ext in '' $ac_executable_extensions; do
6555         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6556           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6557           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6558             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6559             break 2
6560           fi
6561         fi
6562       done
6563     done
6564     IFS="$ac_save_IFS"
6565   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6566     ;;
6567 esac
6568 fi
6569 MSGMERGE="$ac_cv_path_MSGMERGE"
6570 if test "$MSGMERGE" != ":"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6572 $as_echo "$MSGMERGE" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579         test -n "$localedir" || localedir='${datadir}/locale'
6580
6581
6582     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6583
6584
6585   ac_config_commands="$ac_config_commands po-directories"
6586
6587
6588
6589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6590 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6591 if ${ac_cv_gnu_library_2+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h.  */
6596
6597 #include <features.h>
6598 #ifdef __GNU_LIBRARY__
6599  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6600   Lucky GNU user
6601  #endif
6602 #endif
6603
6604 _ACEOF
6605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6607   ac_cv_gnu_library_2=yes
6608 else
6609   ac_cv_gnu_library_2=no
6610 fi
6611 rm -f conftest*
6612
6613
6614
6615 fi
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6617 $as_echo "$ac_cv_gnu_library_2" >&6; }
6618
6619     GLIBC2="$ac_cv_gnu_library_2"
6620
6621
6622 if test -n "$ac_tool_prefix"; then
6623   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_RANLIB+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   if test -n "$RANLIB"; then
6631   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_exec_ext in '' $ac_executable_extensions; do
6639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645   done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 RANLIB=$ac_cv_prog_RANLIB
6651 if test -n "$RANLIB"; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6653 $as_echo "$RANLIB" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_RANLIB"; then
6662   ac_ct_RANLIB=$RANLIB
6663   # Extract the first word of "ranlib", so it can be a program name with args.
6664 set dummy ranlib; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -n "$ac_ct_RANLIB"; then
6671   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_exec_ext in '' $ac_executable_extensions; do
6679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680     ac_cv_prog_ac_ct_RANLIB="ranlib"
6681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685   done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6691 if test -n "$ac_ct_RANLIB"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6693 $as_echo "$ac_ct_RANLIB" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699   if test "x$ac_ct_RANLIB" = x; then
6700     RANLIB=":"
6701   else
6702     case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708     RANLIB=$ac_ct_RANLIB
6709   fi
6710 else
6711   RANLIB="$ac_cv_prog_RANLIB"
6712 fi
6713
6714
6715
6716   CFLAG_VISIBILITY=
6717   HAVE_VISIBILITY=0
6718   if test -n "$GCC"; then
6719                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6720 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6721     if ${gl_cv_cc_vis_werror+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724
6725       gl_save_CFLAGS="$CFLAGS"
6726       CFLAGS="$CFLAGS -Werror"
6727       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h.  */
6729
6730 int
6731 main ()
6732 {
6733
6734   ;
6735   return 0;
6736 }
6737 _ACEOF
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739   gl_cv_cc_vis_werror=yes
6740 else
6741   gl_cv_cc_vis_werror=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744       CFLAGS="$gl_save_CFLAGS"
6745 fi
6746
6747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6748 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6750 $as_echo_n "checking for simple visibility declarations... " >&6; }
6751     if ${gl_cv_cc_visibility+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754
6755       gl_save_CFLAGS="$CFLAGS"
6756       CFLAGS="$CFLAGS -fvisibility=hidden"
6757                                     if test $gl_cv_cc_vis_werror = yes; then
6758         CFLAGS="$CFLAGS -Werror"
6759       fi
6760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6763              extern __attribute__((__visibility__("default"))) int exportedvar;
6764              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6765              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6766              void dummyfunc (void) {}
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777   gl_cv_cc_visibility=yes
6778 else
6779   gl_cv_cc_visibility=no
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782       CFLAGS="$gl_save_CFLAGS"
6783 fi
6784
6785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6786 $as_echo "$gl_cv_cc_visibility" >&6; }
6787     if test $gl_cv_cc_visibility = yes; then
6788       CFLAG_VISIBILITY="-fvisibility=hidden"
6789       HAVE_VISIBILITY=1
6790     fi
6791   fi
6792
6793
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6797 _ACEOF
6798
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6801 $as_echo_n "checking for inline... " >&6; }
6802 if ${ac_cv_c_inline+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   ac_cv_c_inline=no
6806 for ac_kw in inline __inline__ __inline; do
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 #ifndef __cplusplus
6810 typedef int foo_t;
6811 static $ac_kw foo_t static_foo () {return 0; }
6812 $ac_kw foo_t foo () {return 0; }
6813 #endif
6814
6815 _ACEOF
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817   ac_cv_c_inline=$ac_kw
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820   test "$ac_cv_c_inline" != no && break
6821 done
6822
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6825 $as_echo "$ac_cv_c_inline" >&6; }
6826
6827 case $ac_cv_c_inline in
6828   inline | yes) ;;
6829   *)
6830     case $ac_cv_c_inline in
6831       no) ac_val=;;
6832       *) ac_val=$ac_cv_c_inline;;
6833     esac
6834     cat >>confdefs.h <<_ACEOF
6835 #ifndef __cplusplus
6836 #define inline $ac_val
6837 #endif
6838 _ACEOF
6839     ;;
6840 esac
6841
6842 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6843 if test "x$ac_cv_type_size_t" = xyes; then :
6844
6845 else
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define size_t unsigned int
6849 _ACEOF
6850
6851 fi
6852
6853
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6855 $as_echo_n "checking for stdint.h... " >&6; }
6856 if ${gl_cv_header_stdint_h+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h.  */
6861 #include <sys/types.h>
6862             #include <stdint.h>
6863 int
6864 main ()
6865 {
6866 uintmax_t i = (uintmax_t) -1; return !i;
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872   gl_cv_header_stdint_h=yes
6873 else
6874   gl_cv_header_stdint_h=no
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6879 $as_echo "$gl_cv_header_stdint_h" >&6; }
6880   if test $gl_cv_header_stdint_h = yes; then
6881
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_STDINT_H_WITH_UINTMAX 1
6884 _ACEOF
6885
6886   fi
6887
6888 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6889 # for constant arguments.  Useless!
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6891 $as_echo_n "checking for working alloca.h... " >&6; }
6892 if ${ac_cv_working_alloca_h+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897 #include <alloca.h>
6898 int
6899 main ()
6900 {
6901 char *p = (char *) alloca (2 * sizeof (int));
6902                           if (p) return 0;
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"; then :
6908   ac_cv_working_alloca_h=yes
6909 else
6910   ac_cv_working_alloca_h=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext \
6913     conftest$ac_exeext conftest.$ac_ext
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6916 $as_echo "$ac_cv_working_alloca_h" >&6; }
6917 if test $ac_cv_working_alloca_h = yes; then
6918
6919 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6920
6921 fi
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6924 $as_echo_n "checking for alloca... " >&6; }
6925 if ${ac_cv_func_alloca_works+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930 #ifdef __GNUC__
6931 # define alloca __builtin_alloca
6932 #else
6933 # ifdef _MSC_VER
6934 #  include <malloc.h>
6935 #  define alloca _alloca
6936 # else
6937 #  ifdef HAVE_ALLOCA_H
6938 #   include <alloca.h>
6939 #  else
6940 #   ifdef _AIX
6941  #pragma alloca
6942 #   else
6943 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6944 void *alloca (size_t);
6945 #    endif
6946 #   endif
6947 #  endif
6948 # endif
6949 #endif
6950
6951 int
6952 main ()
6953 {
6954 char *p = (char *) alloca (1);
6955                                     if (p) return 0;
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961   ac_cv_func_alloca_works=yes
6962 else
6963   ac_cv_func_alloca_works=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext \
6966     conftest$ac_exeext conftest.$ac_ext
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6969 $as_echo "$ac_cv_func_alloca_works" >&6; }
6970
6971 if test $ac_cv_func_alloca_works = yes; then
6972
6973 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6974
6975 else
6976   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6977 # that cause trouble.  Some versions do not even contain alloca or
6978 # contain a buggy version.  If you still want to use their alloca,
6979 # use ar to extract alloca.o from them instead of compiling alloca.c.
6980
6981 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6982
6983 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6984
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6987 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6988 if ${ac_cv_os_cray+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h.  */
6993 #if defined CRAY && ! defined CRAY2
6994 webecray
6995 #else
6996 wenotbecray
6997 #endif
6998
6999 _ACEOF
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001   $EGREP "webecray" >/dev/null 2>&1; then :
7002   ac_cv_os_cray=yes
7003 else
7004   ac_cv_os_cray=no
7005 fi
7006 rm -f conftest*
7007
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7010 $as_echo "$ac_cv_os_cray" >&6; }
7011 if test $ac_cv_os_cray = yes; then
7012   for ac_func in _getb67 GETB67 getb67; do
7013     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7015 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define CRAY_STACKSEG_END $ac_func
7019 _ACEOF
7020
7021     break
7022 fi
7023
7024   done
7025 fi
7026
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7028 $as_echo_n "checking stack direction for C alloca... " >&6; }
7029 if ${ac_cv_c_stack_direction+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   if test "$cross_compiling" = yes; then :
7033   ac_cv_c_stack_direction=0
7034 else
7035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h.  */
7037 $ac_includes_default
7038 int
7039 find_stack_direction (int *addr, int depth)
7040 {
7041   int dir, dummy = 0;
7042   if (! addr)
7043     addr = &dummy;
7044   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7045   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7046   return dir + dummy;
7047 }
7048
7049 int
7050 main (int argc, char **argv)
7051 {
7052   return find_stack_direction (0, argc + !argv + 20) < 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_run "$LINENO"; then :
7056   ac_cv_c_stack_direction=1
7057 else
7058   ac_cv_c_stack_direction=-1
7059 fi
7060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7061   conftest.$ac_objext conftest.beam conftest.$ac_ext
7062 fi
7063
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7066 $as_echo "$ac_cv_c_stack_direction" >&6; }
7067 cat >>confdefs.h <<_ACEOF
7068 #define STACK_DIRECTION $ac_cv_c_stack_direction
7069 _ACEOF
7070
7071
7072 fi
7073
7074
7075
7076
7077   for ac_header in $ac_header_list
7078 do :
7079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7081 "
7082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083   cat >>confdefs.h <<_ACEOF
7084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7085 _ACEOF
7086
7087 fi
7088
7089 done
7090
7091
7092
7093
7094
7095
7096
7097
7098 for ac_func in getpagesize
7099 do :
7100   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7101 if test "x$ac_cv_func_getpagesize" = xyes; then :
7102   cat >>confdefs.h <<_ACEOF
7103 #define HAVE_GETPAGESIZE 1
7104 _ACEOF
7105
7106 fi
7107 done
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7110 $as_echo_n "checking for working mmap... " >&6; }
7111 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if test "$cross_compiling" = yes; then :
7115   ac_cv_func_mmap_fixed_mapped=no
7116 else
7117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h.  */
7119 $ac_includes_default
7120 /* malloc might have been renamed as rpl_malloc. */
7121 #undef malloc
7122
7123 /* Thanks to Mike Haertel and Jim Avera for this test.
7124    Here is a matrix of mmap possibilities:
7125         mmap private not fixed
7126         mmap private fixed at somewhere currently unmapped
7127         mmap private fixed at somewhere already mapped
7128         mmap shared not fixed
7129         mmap shared fixed at somewhere currently unmapped
7130         mmap shared fixed at somewhere already mapped
7131    For private mappings, we should verify that changes cannot be read()
7132    back from the file, nor mmap's back from the file at a different
7133    address.  (There have been systems where private was not correctly
7134    implemented like the infamous i386 svr4.0, and systems where the
7135    VM page cache was not coherent with the file system buffer cache
7136    like early versions of FreeBSD and possibly contemporary NetBSD.)
7137    For shared mappings, we should conversely verify that changes get
7138    propagated back to all the places they're supposed to be.
7139
7140    Grep wants private fixed already mapped.
7141    The main things grep needs to know about mmap are:
7142    * does it exist and is it safe to write into the mmap'd area
7143    * how to use it (BSD variants)  */
7144
7145 #include <fcntl.h>
7146 #include <sys/mman.h>
7147
7148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7149 char *malloc ();
7150 #endif
7151
7152 /* This mess was copied from the GNU getpagesize.h.  */
7153 #ifndef HAVE_GETPAGESIZE
7154 # ifdef _SC_PAGESIZE
7155 #  define getpagesize() sysconf(_SC_PAGESIZE)
7156 # else /* no _SC_PAGESIZE */
7157 #  ifdef HAVE_SYS_PARAM_H
7158 #   include <sys/param.h>
7159 #   ifdef EXEC_PAGESIZE
7160 #    define getpagesize() EXEC_PAGESIZE
7161 #   else /* no EXEC_PAGESIZE */
7162 #    ifdef NBPG
7163 #     define getpagesize() NBPG * CLSIZE
7164 #     ifndef CLSIZE
7165 #      define CLSIZE 1
7166 #     endif /* no CLSIZE */
7167 #    else /* no NBPG */
7168 #     ifdef NBPC
7169 #      define getpagesize() NBPC
7170 #     else /* no NBPC */
7171 #      ifdef PAGESIZE
7172 #       define getpagesize() PAGESIZE
7173 #      endif /* PAGESIZE */
7174 #     endif /* no NBPC */
7175 #    endif /* no NBPG */
7176 #   endif /* no EXEC_PAGESIZE */
7177 #  else /* no HAVE_SYS_PARAM_H */
7178 #   define getpagesize() 8192   /* punt totally */
7179 #  endif /* no HAVE_SYS_PARAM_H */
7180 # endif /* no _SC_PAGESIZE */
7181
7182 #endif /* no HAVE_GETPAGESIZE */
7183
7184 int
7185 main ()
7186 {
7187   char *data, *data2, *data3;
7188   const char *cdata2;
7189   int i, pagesize;
7190   int fd, fd2;
7191
7192   pagesize = getpagesize ();
7193
7194   /* First, make a file with some known garbage in it. */
7195   data = (char *) malloc (pagesize);
7196   if (!data)
7197     return 1;
7198   for (i = 0; i < pagesize; ++i)
7199     *(data + i) = rand ();
7200   umask (0);
7201   fd = creat ("conftest.mmap", 0600);
7202   if (fd < 0)
7203     return 2;
7204   if (write (fd, data, pagesize) != pagesize)
7205     return 3;
7206   close (fd);
7207
7208   /* Next, check that the tail of a page is zero-filled.  File must have
7209      non-zero length, otherwise we risk SIGBUS for entire page.  */
7210   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7211   if (fd2 < 0)
7212     return 4;
7213   cdata2 = "";
7214   if (write (fd2, cdata2, 1) != 1)
7215     return 5;
7216   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7217   if (data2 == MAP_FAILED)
7218     return 6;
7219   for (i = 0; i < pagesize; ++i)
7220     if (*(data2 + i))
7221       return 7;
7222   close (fd2);
7223   if (munmap (data2, pagesize))
7224     return 8;
7225
7226   /* Next, try to mmap the file at a fixed address which already has
7227      something else allocated at it.  If we can, also make sure that
7228      we see the same garbage.  */
7229   fd = open ("conftest.mmap", O_RDWR);
7230   if (fd < 0)
7231     return 9;
7232   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7233                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7234     return 10;
7235   for (i = 0; i < pagesize; ++i)
7236     if (*(data + i) != *(data2 + i))
7237       return 11;
7238
7239   /* Finally, make sure that changes to the mapped area do not
7240      percolate back to the file as seen by read().  (This is a bug on
7241      some variants of i386 svr4.0.)  */
7242   for (i = 0; i < pagesize; ++i)
7243     *(data2 + i) = *(data2 + i) + 1;
7244   data3 = (char *) malloc (pagesize);
7245   if (!data3)
7246     return 12;
7247   if (read (fd, data3, pagesize) != pagesize)
7248     return 13;
7249   for (i = 0; i < pagesize; ++i)
7250     if (*(data + i) != *(data3 + i))
7251       return 14;
7252   close (fd);
7253   return 0;
7254 }
7255 _ACEOF
7256 if ac_fn_c_try_run "$LINENO"; then :
7257   ac_cv_func_mmap_fixed_mapped=yes
7258 else
7259   ac_cv_func_mmap_fixed_mapped=no
7260 fi
7261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7262   conftest.$ac_objext conftest.beam conftest.$ac_ext
7263 fi
7264
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7267 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7269
7270 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7271
7272 fi
7273 rm -f conftest.mmap conftest.txt
7274
7275
7276
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7278 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7279 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282
7283       gt_cv_int_divbyzero_sigfpe=
7284       case "$host_os" in
7285         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7286           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7287           # compiling. If we were to perform the real test, 1 Crash Report
7288           # dialog window would pop up.
7289           case "$host_cpu" in
7290             i[34567]86 | x86_64)
7291               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7292           esac
7293           ;;
7294       esac
7295       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7296         if test "$cross_compiling" = yes; then :
7297
7298             # Guess based on the CPU.
7299             case "$host_cpu" in
7300               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7301                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7302               *)
7303                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7304             esac
7305
7306 else
7307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310 #include <stdlib.h>
7311 #include <signal.h>
7312
7313 static void
7314 sigfpe_handler (int sig)
7315 {
7316   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7317   exit (sig != SIGFPE);
7318 }
7319
7320 int x = 1;
7321 int y = 0;
7322 int z;
7323 int nan;
7324
7325 int main ()
7326 {
7327   signal (SIGFPE, sigfpe_handler);
7328 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7329 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7330   signal (SIGTRAP, sigfpe_handler);
7331 #endif
7332 /* Linux/SPARC yields signal SIGILL.  */
7333 #if defined (__sparc__) && defined (__linux__)
7334   signal (SIGILL, sigfpe_handler);
7335 #endif
7336
7337   z = x / y;
7338   nan = y / y;
7339   exit (2);
7340 }
7341
7342 _ACEOF
7343 if ac_fn_c_try_run "$LINENO"; then :
7344   gt_cv_int_divbyzero_sigfpe=yes
7345 else
7346   gt_cv_int_divbyzero_sigfpe=no
7347 fi
7348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7349   conftest.$ac_objext conftest.beam conftest.$ac_ext
7350 fi
7351
7352       fi
7353
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7356 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7357   case "$gt_cv_int_divbyzero_sigfpe" in
7358     *yes) value=1;;
7359     *) value=0;;
7360   esac
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define INTDIV0_RAISES_SIGFPE $value
7364 _ACEOF
7365
7366
7367
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7369 $as_echo_n "checking for inttypes.h... " >&6; }
7370 if ${gl_cv_header_inttypes_h+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h.  */
7375
7376 #include <sys/types.h>
7377 #include <inttypes.h>
7378
7379 int
7380 main ()
7381 {
7382 uintmax_t i = (uintmax_t) -1; return !i;
7383   ;
7384   return 0;
7385 }
7386 _ACEOF
7387 if ac_fn_c_try_compile "$LINENO"; then :
7388   gl_cv_header_inttypes_h=yes
7389 else
7390   gl_cv_header_inttypes_h=no
7391 fi
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7395 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7396   if test $gl_cv_header_inttypes_h = yes; then
7397
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7400 _ACEOF
7401
7402   fi
7403
7404
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7406 $as_echo_n "checking for unsigned long long int... " >&6; }
7407 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   ac_cv_type_unsigned_long_long_int=yes
7411      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7412        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h.  */
7414
7415   /* For now, do not test the preprocessor; as of 2007 there are too many
7416          implementations with broken preprocessors.  Perhaps this can
7417          be revisited in 2012.  In the meantime, code should not expect
7418          #if to work with literals wider than 32 bits.  */
7419       /* Test literals.  */
7420       long long int ll = 9223372036854775807ll;
7421       long long int nll = -9223372036854775807LL;
7422       unsigned long long int ull = 18446744073709551615ULL;
7423       /* Test constant expressions.   */
7424       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7425                      ? 1 : -1)];
7426       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7427                      ? 1 : -1)];
7428       int i = 63;
7429 int
7430 main ()
7431 {
7432 /* Test availability of runtime routines for shift and division.  */
7433       long long int llmax = 9223372036854775807ll;
7434       unsigned long long int ullmax = 18446744073709551615ull;
7435       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7436               | (llmax / ll) | (llmax % ll)
7437               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7438               | (ullmax / ull) | (ullmax % ull));
7439   ;
7440   return 0;
7441 }
7442
7443 _ACEOF
7444 if ac_fn_c_try_link "$LINENO"; then :
7445
7446 else
7447   ac_cv_type_unsigned_long_long_int=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext \
7450     conftest$ac_exeext conftest.$ac_ext
7451      fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7454 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7455   if test $ac_cv_type_unsigned_long_long_int = yes; then
7456
7457 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7458
7459   fi
7460
7461
7462
7463
7464   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7465
7466     test $ac_cv_type_unsigned_long_long_int = yes \
7467       && ac_type='unsigned long long' \
7468       || ac_type='unsigned long'
7469
7470 cat >>confdefs.h <<_ACEOF
7471 #define uintmax_t $ac_type
7472 _ACEOF
7473
7474   else
7475
7476 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7477
7478   fi
7479
7480
7481   for ac_header in inttypes.h
7482 do :
7483   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7484 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7485   cat >>confdefs.h <<_ACEOF
7486 #define HAVE_INTTYPES_H 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493   if test $ac_cv_header_inttypes_h = yes; then
7494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7495 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7496 if ${gt_cv_inttypes_pri_broken+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499
7500         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h.  */
7502
7503 #include <inttypes.h>
7504 #ifdef PRId32
7505 char *p = PRId32;
7506 #endif
7507
7508 int
7509 main ()
7510 {
7511
7512   ;
7513   return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517   gt_cv_inttypes_pri_broken=no
7518 else
7519   gt_cv_inttypes_pri_broken=yes
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7525 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7526   fi
7527   if test "$gt_cv_inttypes_pri_broken" = yes; then
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define PRI_MACROS_BROKEN 1
7531 _ACEOF
7532
7533     PRI_MACROS_BROKEN=1
7534   else
7535     PRI_MACROS_BROKEN=0
7536   fi
7537
7538
7539
7540
7541
7542
7543
7544   # Check whether --enable-threads was given.
7545 if test "${enable_threads+set}" = set; then :
7546   enableval=$enable_threads; gl_use_threads=$enableval
7547 else
7548   if test -n "$gl_use_threads_default"; then
7549        gl_use_threads="$gl_use_threads_default"
7550      else
7551        case "$host_os" in
7552                                                                osf*) gl_use_threads=no ;;
7553          cygwin*)
7554                case `uname -r` in
7555                  1.[0-5].*) gl_use_threads=no ;;
7556                  *)         gl_use_threads=yes ;;
7557                esac
7558                ;;
7559          *)    gl_use_threads=yes ;;
7560        esac
7561      fi
7562
7563 fi
7564
7565   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7566     # For using <pthread.h>:
7567     case "$host_os" in
7568       osf*)
7569         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7570         # groks <pthread.h>. cc also understands the flag -pthread, but
7571         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7572         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7573         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7574         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7575         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7576         ;;
7577     esac
7578     # Some systems optimize for single-threaded programs by default, and
7579     # need special flags to disable these optimizations. For example, the
7580     # definition of 'errno' in <errno.h>.
7581     case "$host_os" in
7582       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7583       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7584     esac
7585   fi
7586
7587
7588
7589
7590
7591       if test "X$prefix" = "XNONE"; then
7592     acl_final_prefix="$ac_default_prefix"
7593   else
7594     acl_final_prefix="$prefix"
7595   fi
7596   if test "X$exec_prefix" = "XNONE"; then
7597     acl_final_exec_prefix='${prefix}'
7598   else
7599     acl_final_exec_prefix="$exec_prefix"
7600   fi
7601   acl_save_prefix="$prefix"
7602   prefix="$acl_final_prefix"
7603   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7604   prefix="$acl_save_prefix"
7605
7606
7607
7608 # Check whether --with-gnu-ld was given.
7609 if test "${with_gnu_ld+set}" = set; then :
7610   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7611 else
7612   with_gnu_ld=no
7613 fi
7614
7615 # Prepare PATH_SEPARATOR.
7616 # The user is always right.
7617 if test "${PATH_SEPARATOR+set}" != set; then
7618   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7619   # contains only /bin. Note that ksh looks also at the FPATH variable,
7620   # so we have to set that as well for the test.
7621   PATH_SEPARATOR=:
7622   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7623     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7624            || PATH_SEPARATOR=';'
7625        }
7626 fi
7627
7628 ac_prog=ld
7629 if test "$GCC" = yes; then
7630   # Check if gcc -print-prog-name=ld gives a path.
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7632 $as_echo_n "checking for ld used by $CC... " >&6; }
7633   case $host in
7634   *-*-mingw*)
7635     # gcc leaves a trailing carriage return which upsets mingw
7636     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7637   *)
7638     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7639   esac
7640   case $ac_prog in
7641     # Accept absolute paths.
7642     [\\/]* | ?:[\\/]*)
7643       re_direlt='/[^/][^/]*/\.\./'
7644       # Canonicalize the pathname of ld
7645       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7646       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7647         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7648       done
7649       test -z "$LD" && LD="$ac_prog"
7650       ;;
7651   "")
7652     # If it fails, then pretend we aren't using GCC.
7653     ac_prog=ld
7654     ;;
7655   *)
7656     # If it is relative, then search for the first ld in PATH.
7657     with_gnu_ld=unknown
7658     ;;
7659   esac
7660 elif test "$with_gnu_ld" = yes; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7662 $as_echo_n "checking for GNU ld... " >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7665 $as_echo_n "checking for non-GNU ld... " >&6; }
7666 fi
7667 if ${acl_cv_path_LD+:} false; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   if test -z "$LD"; then
7671   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672   for ac_dir in $PATH; do
7673     IFS="$acl_save_ifs"
7674     test -z "$ac_dir" && ac_dir=.
7675     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7676       acl_cv_path_LD="$ac_dir/$ac_prog"
7677       # Check to see if the program is GNU ld.  I'd rather use --version,
7678       # but apparently some variants of GNU ld only accept -v.
7679       # Break only if it was the GNU/non-GNU ld that we prefer.
7680       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7681       *GNU* | *'with BFD'*)
7682         test "$with_gnu_ld" != no && break
7683         ;;
7684       *)
7685         test "$with_gnu_ld" != yes && break
7686         ;;
7687       esac
7688     fi
7689   done
7690   IFS="$acl_save_ifs"
7691 else
7692   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7693 fi
7694 fi
7695
7696 LD="$acl_cv_path_LD"
7697 if test -n "$LD"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7699 $as_echo "$LD" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7706 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7707 if ${acl_cv_prog_gnu_ld+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7711 case `$LD -v 2>&1 </dev/null` in
7712 *GNU* | *'with BFD'*)
7713   acl_cv_prog_gnu_ld=yes
7714   ;;
7715 *)
7716   acl_cv_prog_gnu_ld=no
7717   ;;
7718 esac
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7721 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7722 with_gnu_ld=$acl_cv_prog_gnu_ld
7723
7724
7725
7726
7727                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7728 $as_echo_n "checking for shared library run path origin... " >&6; }
7729 if ${acl_cv_rpath+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732
7733     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7734     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7735     . ./conftest.sh
7736     rm -f ./conftest.sh
7737     acl_cv_rpath=done
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7741 $as_echo "$acl_cv_rpath" >&6; }
7742   wl="$acl_cv_wl"
7743   acl_libext="$acl_cv_libext"
7744   acl_shlibext="$acl_cv_shlibext"
7745   acl_libname_spec="$acl_cv_libname_spec"
7746   acl_library_names_spec="$acl_cv_library_names_spec"
7747   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7748   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7749   acl_hardcode_direct="$acl_cv_hardcode_direct"
7750   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7751     # Check whether --enable-rpath was given.
7752 if test "${enable_rpath+set}" = set; then :
7753   enableval=$enable_rpath; :
7754 else
7755   enable_rpath=yes
7756 fi
7757
7758
7759
7760
7761   acl_libdirstem=lib
7762   acl_libdirstem2=
7763   case "$host_os" in
7764     solaris*)
7765                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7766 $as_echo_n "checking for 64-bit host... " >&6; }
7767 if ${gl_cv_solaris_64bit+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h.  */
7772
7773 #ifdef _LP64
7774 sixtyfour bits
7775 #endif
7776
7777 _ACEOF
7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7780   gl_cv_solaris_64bit=yes
7781 else
7782   gl_cv_solaris_64bit=no
7783 fi
7784 rm -f conftest*
7785
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7789 $as_echo "$gl_cv_solaris_64bit" >&6; }
7790       if test $gl_cv_solaris_64bit = yes; then
7791         acl_libdirstem=lib/64
7792         case "$host_cpu" in
7793           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7794           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7795         esac
7796       fi
7797       ;;
7798     *)
7799       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7800       if test -n "$searchpath"; then
7801         acl_save_IFS="${IFS=    }"; IFS=":"
7802         for searchdir in $searchpath; do
7803           if test -d "$searchdir"; then
7804             case "$searchdir" in
7805               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7806               */../ | */.. )
7807                 # Better ignore directories of this form. They are misleading.
7808                 ;;
7809               *) searchdir=`cd "$searchdir" && pwd`
7810                  case "$searchdir" in
7811                    */lib64 ) acl_libdirstem=lib64 ;;
7812                  esac ;;
7813             esac
7814           fi
7815         done
7816         IFS="$acl_save_IFS"
7817       fi
7818       ;;
7819   esac
7820   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7821
7822
7823
7824   gl_threads_api=none
7825   LIBTHREAD=
7826   LTLIBTHREAD=
7827   LIBMULTITHREAD=
7828   LTLIBMULTITHREAD=
7829   if test "$gl_use_threads" != no; then
7830         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7831 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7832 if ${gl_cv_have_weak+:} false; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   gl_cv_have_weak=no
7836               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h.  */
7838 extern void xyzzy ();
7839 #pragma weak xyzzy
7840 int
7841 main ()
7842 {
7843 xyzzy();
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_link "$LINENO"; then :
7849   gl_cv_have_weak=maybe
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext \
7852     conftest$ac_exeext conftest.$ac_ext
7853        if test $gl_cv_have_weak = maybe; then
7854                            if test "$cross_compiling" = yes; then :
7855                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857 #ifdef __ELF__
7858                Extensible Linking Format
7859                #endif
7860
7861 _ACEOF
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7864   gl_cv_have_weak="guessing yes"
7865 else
7866   gl_cv_have_weak="guessing no"
7867 fi
7868 rm -f conftest*
7869
7870
7871 else
7872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h.  */
7874
7875 #include <stdio.h>
7876 #pragma weak fputs
7877 int main ()
7878 {
7879   return (fputs == NULL);
7880 }
7881 _ACEOF
7882 if ac_fn_c_try_run "$LINENO"; then :
7883   gl_cv_have_weak=yes
7884 else
7885   gl_cv_have_weak=no
7886 fi
7887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7888   conftest.$ac_objext conftest.beam conftest.$ac_ext
7889 fi
7890
7891        fi
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7895 $as_echo "$gl_cv_have_weak" >&6; }
7896     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7897       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7898       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7899       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7900 if test "x$ac_cv_header_pthread_h" = xyes; then :
7901   gl_have_pthread_h=yes
7902 else
7903   gl_have_pthread_h=no
7904 fi
7905
7906
7907       if test "$gl_have_pthread_h" = yes; then
7908         # Other possible tests:
7909         #   -lpthreads (FSU threads, PCthreads)
7910         #   -lgthreads
7911         gl_have_pthread=
7912         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7913         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7914         # the second one only in libpthread, and lock.c needs it.
7915         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917 #include <pthread.h>
7918 int
7919 main ()
7920 {
7921 pthread_mutex_lock((pthread_mutex_t*)0);
7922                pthread_mutexattr_init((pthread_mutexattr_t*)0);
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928   gl_have_pthread=yes
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext \
7931     conftest$ac_exeext conftest.$ac_ext
7932         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7933         # since it is defined as a macro on OSF/1.)
7934         if test -n "$gl_have_pthread"; then
7935           # The program links fine without libpthread. But it may actually
7936           # need to link with libpthread in order to create multiple threads.
7937           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7938 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7939 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7940   $as_echo_n "(cached) " >&6
7941 else
7942   ac_check_lib_save_LIBS=$LIBS
7943 LIBS="-lpthread  $LIBS"
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946
7947 /* Override any GCC internal prototype to avoid an error.
7948    Use char because int might match the return type of a GCC
7949    builtin and then its argument prototype would still apply.  */
7950 #ifdef __cplusplus
7951 extern "C"
7952 #endif
7953 char pthread_kill ();
7954 int
7955 main ()
7956 {
7957 return pthread_kill ();
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_link "$LINENO"; then :
7963   ac_cv_lib_pthread_pthread_kill=yes
7964 else
7965   ac_cv_lib_pthread_pthread_kill=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext \
7968     conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7972 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7973 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7974   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7975              # On Solaris and HP-UX, most pthread functions exist also in libc.
7976              # Therefore pthread_in_use() needs to actually try to create a
7977              # thread: pthread_create from libc will fail, whereas
7978              # pthread_create will actually create a thread.
7979              case "$host_os" in
7980                solaris* | hpux*)
7981
7982 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7983
7984              esac
7985
7986 fi
7987
7988         else
7989           # Some library is needed. Try libpthread and libc_r.
7990           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7991 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7992 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-lpthread  $LIBS"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h.  */
7999
8000 /* Override any GCC internal prototype to avoid an error.
8001    Use char because int might match the return type of a GCC
8002    builtin and then its argument prototype would still apply.  */
8003 #ifdef __cplusplus
8004 extern "C"
8005 #endif
8006 char pthread_kill ();
8007 int
8008 main ()
8009 {
8010 return pthread_kill ();
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_link "$LINENO"; then :
8016   ac_cv_lib_pthread_pthread_kill=yes
8017 else
8018   ac_cv_lib_pthread_pthread_kill=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext \
8021     conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8023 fi
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8025 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8026 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8027   gl_have_pthread=yes
8028              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8029              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8030 fi
8031
8032           if test -z "$gl_have_pthread"; then
8033             # For FreeBSD 4.
8034             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8035 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8036 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   ac_check_lib_save_LIBS=$LIBS
8040 LIBS="-lc_r  $LIBS"
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043
8044 /* Override any GCC internal prototype to avoid an error.
8045    Use char because int might match the return type of a GCC
8046    builtin and then its argument prototype would still apply.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char pthread_kill ();
8051 int
8052 main ()
8053 {
8054 return pthread_kill ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060   ac_cv_lib_c_r_pthread_kill=yes
8061 else
8062   ac_cv_lib_c_r_pthread_kill=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065     conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8069 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8070 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8071   gl_have_pthread=yes
8072                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8073                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8074 fi
8075
8076           fi
8077         fi
8078         if test -n "$gl_have_pthread"; then
8079           gl_threads_api=posix
8080
8081 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8082
8083           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8084             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8085
8086 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8087
8088               LIBTHREAD=
8089               LTLIBTHREAD=
8090             fi
8091           fi
8092         fi
8093       fi
8094     fi
8095     if test -z "$gl_have_pthread"; then
8096       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8097         gl_have_solaristhread=
8098         gl_save_LIBS="$LIBS"
8099         LIBS="$LIBS -lthread"
8100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102
8103 #include <thread.h>
8104 #include <synch.h>
8105
8106 int
8107 main ()
8108 {
8109 thr_self();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_link "$LINENO"; then :
8115   gl_have_solaristhread=yes
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118     conftest$ac_exeext conftest.$ac_ext
8119         LIBS="$gl_save_LIBS"
8120         if test -n "$gl_have_solaristhread"; then
8121           gl_threads_api=solaris
8122           LIBTHREAD=-lthread
8123           LTLIBTHREAD=-lthread
8124           LIBMULTITHREAD="$LIBTHREAD"
8125           LTLIBMULTITHREAD="$LTLIBTHREAD"
8126
8127 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8128
8129           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8130
8131 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8132
8133             LIBTHREAD=
8134             LTLIBTHREAD=
8135           fi
8136         fi
8137       fi
8138     fi
8139     if test "$gl_use_threads" = pth; then
8140       gl_save_CPPFLAGS="$CPPFLAGS"
8141
8142
8143
8144
8145
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8147 $as_echo_n "checking how to link with libpth... " >&6; }
8148 if ${ac_cv_libpth_libs+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151
8152
8153
8154
8155
8156
8157
8158
8159     use_additional=yes
8160
8161   acl_save_prefix="$prefix"
8162   prefix="$acl_final_prefix"
8163   acl_save_exec_prefix="$exec_prefix"
8164   exec_prefix="$acl_final_exec_prefix"
8165
8166     eval additional_includedir=\"$includedir\"
8167     eval additional_libdir=\"$libdir\"
8168
8169   exec_prefix="$acl_save_exec_prefix"
8170   prefix="$acl_save_prefix"
8171
8172
8173 # Check whether --with-libpth-prefix was given.
8174 if test "${with_libpth_prefix+set}" = set; then :
8175   withval=$with_libpth_prefix;
8176     if test "X$withval" = "Xno"; then
8177       use_additional=no
8178     else
8179       if test "X$withval" = "X"; then
8180
8181   acl_save_prefix="$prefix"
8182   prefix="$acl_final_prefix"
8183   acl_save_exec_prefix="$exec_prefix"
8184   exec_prefix="$acl_final_exec_prefix"
8185
8186           eval additional_includedir=\"$includedir\"
8187           eval additional_libdir=\"$libdir\"
8188
8189   exec_prefix="$acl_save_exec_prefix"
8190   prefix="$acl_save_prefix"
8191
8192       else
8193         additional_includedir="$withval/include"
8194         additional_libdir="$withval/$acl_libdirstem"
8195         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8196            && ! test -d "$withval/$acl_libdirstem"; then
8197           additional_libdir="$withval/$acl_libdirstem2"
8198         fi
8199       fi
8200     fi
8201
8202 fi
8203
8204       LIBPTH=
8205   LTLIBPTH=
8206   INCPTH=
8207   LIBPTH_PREFIX=
8208       HAVE_LIBPTH=
8209   rpathdirs=
8210   ltrpathdirs=
8211   names_already_handled=
8212   names_next_round='pth '
8213   while test -n "$names_next_round"; do
8214     names_this_round="$names_next_round"
8215     names_next_round=
8216     for name in $names_this_round; do
8217       already_handled=
8218       for n in $names_already_handled; do
8219         if test "$n" = "$name"; then
8220           already_handled=yes
8221           break
8222         fi
8223       done
8224       if test -z "$already_handled"; then
8225         names_already_handled="$names_already_handled $name"
8226                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8227         eval value=\"\$HAVE_LIB$uppername\"
8228         if test -n "$value"; then
8229           if test "$value" = yes; then
8230             eval value=\"\$LIB$uppername\"
8231             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8232             eval value=\"\$LTLIB$uppername\"
8233             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8234           else
8235                                     :
8236           fi
8237         else
8238                               found_dir=
8239           found_la=
8240           found_so=
8241           found_a=
8242           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8243           if test -n "$acl_shlibext"; then
8244             shrext=".$acl_shlibext"             # typically: shrext=.so
8245           else
8246             shrext=
8247           fi
8248           if test $use_additional = yes; then
8249             dir="$additional_libdir"
8250                                     if test -n "$acl_shlibext"; then
8251               if test -f "$dir/$libname$shrext"; then
8252                 found_dir="$dir"
8253                 found_so="$dir/$libname$shrext"
8254               else
8255                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8256                   ver=`(cd "$dir" && \
8257                         for f in "$libname$shrext".*; do echo "$f"; done \
8258                         | sed -e "s,^$libname$shrext\\\\.,," \
8259                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8260                         | sed 1q ) 2>/dev/null`
8261                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8262                     found_dir="$dir"
8263                     found_so="$dir/$libname$shrext.$ver"
8264                   fi
8265                 else
8266                   eval library_names=\"$acl_library_names_spec\"
8267                   for f in $library_names; do
8268                     if test -f "$dir/$f"; then
8269                       found_dir="$dir"
8270                       found_so="$dir/$f"
8271                       break
8272                     fi
8273                   done
8274                 fi
8275               fi
8276             fi
8277                         if test "X$found_dir" = "X"; then
8278               if test -f "$dir/$libname.$acl_libext"; then
8279                 found_dir="$dir"
8280                 found_a="$dir/$libname.$acl_libext"
8281               fi
8282             fi
8283             if test "X$found_dir" != "X"; then
8284               if test -f "$dir/$libname.la"; then
8285                 found_la="$dir/$libname.la"
8286               fi
8287             fi
8288           fi
8289           if test "X$found_dir" = "X"; then
8290             for x in $LDFLAGS $LTLIBPTH; do
8291
8292   acl_save_prefix="$prefix"
8293   prefix="$acl_final_prefix"
8294   acl_save_exec_prefix="$exec_prefix"
8295   exec_prefix="$acl_final_exec_prefix"
8296   eval x=\"$x\"
8297   exec_prefix="$acl_save_exec_prefix"
8298   prefix="$acl_save_prefix"
8299
8300               case "$x" in
8301                 -L*)
8302                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8303                                     if test -n "$acl_shlibext"; then
8304                     if test -f "$dir/$libname$shrext"; then
8305                       found_dir="$dir"
8306                       found_so="$dir/$libname$shrext"
8307                     else
8308                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8309                         ver=`(cd "$dir" && \
8310                               for f in "$libname$shrext".*; do echo "$f"; done \
8311                               | sed -e "s,^$libname$shrext\\\\.,," \
8312                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8313                               | sed 1q ) 2>/dev/null`
8314                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8315                           found_dir="$dir"
8316                           found_so="$dir/$libname$shrext.$ver"
8317                         fi
8318                       else
8319                         eval library_names=\"$acl_library_names_spec\"
8320                         for f in $library_names; do
8321                           if test -f "$dir/$f"; then
8322                             found_dir="$dir"
8323                             found_so="$dir/$f"
8324                             break
8325                           fi
8326                         done
8327                       fi
8328                     fi
8329                   fi
8330                                     if test "X$found_dir" = "X"; then
8331                     if test -f "$dir/$libname.$acl_libext"; then
8332                       found_dir="$dir"
8333                       found_a="$dir/$libname.$acl_libext"
8334                     fi
8335                   fi
8336                   if test "X$found_dir" != "X"; then
8337                     if test -f "$dir/$libname.la"; then
8338                       found_la="$dir/$libname.la"
8339                     fi
8340                   fi
8341                   ;;
8342               esac
8343               if test "X$found_dir" != "X"; then
8344                 break
8345               fi
8346             done
8347           fi
8348           if test "X$found_dir" != "X"; then
8349                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8350             if test "X$found_so" != "X"; then
8351                                                         if test "$enable_rpath" = no \
8352                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8353                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8354                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8355               else
8356                                                                                 haveit=
8357                 for x in $ltrpathdirs; do
8358                   if test "X$x" = "X$found_dir"; then
8359                     haveit=yes
8360                     break
8361                   fi
8362                 done
8363                 if test -z "$haveit"; then
8364                   ltrpathdirs="$ltrpathdirs $found_dir"
8365                 fi
8366                                 if test "$acl_hardcode_direct" = yes; then
8367                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8368                 else
8369                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8370                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8371                                                             haveit=
8372                     for x in $rpathdirs; do
8373                       if test "X$x" = "X$found_dir"; then
8374                         haveit=yes
8375                         break
8376                       fi
8377                     done
8378                     if test -z "$haveit"; then
8379                       rpathdirs="$rpathdirs $found_dir"
8380                     fi
8381                   else
8382                                                                                 haveit=
8383                     for x in $LDFLAGS $LIBPTH; do
8384
8385   acl_save_prefix="$prefix"
8386   prefix="$acl_final_prefix"
8387   acl_save_exec_prefix="$exec_prefix"
8388   exec_prefix="$acl_final_exec_prefix"
8389   eval x=\"$x\"
8390   exec_prefix="$acl_save_exec_prefix"
8391   prefix="$acl_save_prefix"
8392
8393                       if test "X$x" = "X-L$found_dir"; then
8394                         haveit=yes
8395                         break
8396                       fi
8397                     done
8398                     if test -z "$haveit"; then
8399                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8400                     fi
8401                     if test "$acl_hardcode_minus_L" != no; then
8402                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8403                     else
8404                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8405                     fi
8406                   fi
8407                 fi
8408               fi
8409             else
8410               if test "X$found_a" != "X"; then
8411                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8412               else
8413                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8414               fi
8415             fi
8416                         additional_includedir=
8417             case "$found_dir" in
8418               */$acl_libdirstem | */$acl_libdirstem/)
8419                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8420                 if test "$name" = 'pth'; then
8421                   LIBPTH_PREFIX="$basedir"
8422                 fi
8423                 additional_includedir="$basedir/include"
8424                 ;;
8425               */$acl_libdirstem2 | */$acl_libdirstem2/)
8426                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8427                 if test "$name" = 'pth'; then
8428                   LIBPTH_PREFIX="$basedir"
8429                 fi
8430                 additional_includedir="$basedir/include"
8431                 ;;
8432             esac
8433             if test "X$additional_includedir" != "X"; then
8434                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8435                 haveit=
8436                 if test "X$additional_includedir" = "X/usr/local/include"; then
8437                   if test -n "$GCC"; then
8438                     case $host_os in
8439                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8440                     esac
8441                   fi
8442                 fi
8443                 if test -z "$haveit"; then
8444                   for x in $CPPFLAGS $INCPTH; do
8445
8446   acl_save_prefix="$prefix"
8447   prefix="$acl_final_prefix"
8448   acl_save_exec_prefix="$exec_prefix"
8449   exec_prefix="$acl_final_exec_prefix"
8450   eval x=\"$x\"
8451   exec_prefix="$acl_save_exec_prefix"
8452   prefix="$acl_save_prefix"
8453
8454                     if test "X$x" = "X-I$additional_includedir"; then
8455                       haveit=yes
8456                       break
8457                     fi
8458                   done
8459                   if test -z "$haveit"; then
8460                     if test -d "$additional_includedir"; then
8461                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8462                     fi
8463                   fi
8464                 fi
8465               fi
8466             fi
8467                         if test -n "$found_la"; then
8468                                                         save_libdir="$libdir"
8469               case "$found_la" in
8470                 */* | *\\*) . "$found_la" ;;
8471                 *) . "./$found_la" ;;
8472               esac
8473               libdir="$save_libdir"
8474                             for dep in $dependency_libs; do
8475                 case "$dep" in
8476                   -L*)
8477                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8478                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8479                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8480                       haveit=
8481                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8482                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8483                         if test -n "$GCC"; then
8484                           case $host_os in
8485                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8486                           esac
8487                         fi
8488                       fi
8489                       if test -z "$haveit"; then
8490                         haveit=
8491                         for x in $LDFLAGS $LIBPTH; do
8492
8493   acl_save_prefix="$prefix"
8494   prefix="$acl_final_prefix"
8495   acl_save_exec_prefix="$exec_prefix"
8496   exec_prefix="$acl_final_exec_prefix"
8497   eval x=\"$x\"
8498   exec_prefix="$acl_save_exec_prefix"
8499   prefix="$acl_save_prefix"
8500
8501                           if test "X$x" = "X-L$additional_libdir"; then
8502                             haveit=yes
8503                             break
8504                           fi
8505                         done
8506                         if test -z "$haveit"; then
8507                           if test -d "$additional_libdir"; then
8508                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8509                           fi
8510                         fi
8511                         haveit=
8512                         for x in $LDFLAGS $LTLIBPTH; do
8513
8514   acl_save_prefix="$prefix"
8515   prefix="$acl_final_prefix"
8516   acl_save_exec_prefix="$exec_prefix"
8517   exec_prefix="$acl_final_exec_prefix"
8518   eval x=\"$x\"
8519   exec_prefix="$acl_save_exec_prefix"
8520   prefix="$acl_save_prefix"
8521
8522                           if test "X$x" = "X-L$additional_libdir"; then
8523                             haveit=yes
8524                             break
8525                           fi
8526                         done
8527                         if test -z "$haveit"; then
8528                           if test -d "$additional_libdir"; then
8529                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8530                           fi
8531                         fi
8532                       fi
8533                     fi
8534                     ;;
8535                   -R*)
8536                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8537                     if test "$enable_rpath" != no; then
8538                                                                   haveit=
8539                       for x in $rpathdirs; do
8540                         if test "X$x" = "X$dir"; then
8541                           haveit=yes
8542                           break
8543                         fi
8544                       done
8545                       if test -z "$haveit"; then
8546                         rpathdirs="$rpathdirs $dir"
8547                       fi
8548                                                                   haveit=
8549                       for x in $ltrpathdirs; do
8550                         if test "X$x" = "X$dir"; then
8551                           haveit=yes
8552                           break
8553                         fi
8554                       done
8555                       if test -z "$haveit"; then
8556                         ltrpathdirs="$ltrpathdirs $dir"
8557                       fi
8558                     fi
8559                     ;;
8560                   -l*)
8561                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8562                     ;;
8563                   *.la)
8564                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8565                     ;;
8566                   *)
8567                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8568                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8569                     ;;
8570                 esac
8571               done
8572             fi
8573           else
8574                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8575             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8576           fi
8577         fi
8578       fi
8579     done
8580   done
8581   if test "X$rpathdirs" != "X"; then
8582     if test -n "$acl_hardcode_libdir_separator"; then
8583                         alldirs=
8584       for found_dir in $rpathdirs; do
8585         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8586       done
8587             acl_save_libdir="$libdir"
8588       libdir="$alldirs"
8589       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8590       libdir="$acl_save_libdir"
8591       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8592     else
8593             for found_dir in $rpathdirs; do
8594         acl_save_libdir="$libdir"
8595         libdir="$found_dir"
8596         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8597         libdir="$acl_save_libdir"
8598         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8599       done
8600     fi
8601   fi
8602   if test "X$ltrpathdirs" != "X"; then
8603             for found_dir in $ltrpathdirs; do
8604       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8605     done
8606   fi
8607
8608
8609
8610
8611
8612
8613     ac_cv_libpth_libs="$LIBPTH"
8614     ac_cv_libpth_ltlibs="$LTLIBPTH"
8615     ac_cv_libpth_cppflags="$INCPTH"
8616     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8617
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8620 $as_echo "$ac_cv_libpth_libs" >&6; }
8621   LIBPTH="$ac_cv_libpth_libs"
8622   LTLIBPTH="$ac_cv_libpth_ltlibs"
8623   INCPTH="$ac_cv_libpth_cppflags"
8624   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8625
8626   for element in $INCPTH; do
8627     haveit=
8628     for x in $CPPFLAGS; do
8629
8630   acl_save_prefix="$prefix"
8631   prefix="$acl_final_prefix"
8632   acl_save_exec_prefix="$exec_prefix"
8633   exec_prefix="$acl_final_exec_prefix"
8634   eval x=\"$x\"
8635   exec_prefix="$acl_save_exec_prefix"
8636   prefix="$acl_save_prefix"
8637
8638       if test "X$x" = "X$element"; then
8639         haveit=yes
8640         break
8641       fi
8642     done
8643     if test -z "$haveit"; then
8644       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8645     fi
8646   done
8647
8648
8649
8650
8651       HAVE_LIBPTH=yes
8652
8653
8654
8655       gl_have_pth=
8656       gl_save_LIBS="$LIBS"
8657       LIBS="$LIBS $LIBPTH"
8658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h.  */
8660 #include <pth.h>
8661 int
8662 main ()
8663 {
8664 pth_self();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670   gl_have_pth=yes
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext \
8673     conftest$ac_exeext conftest.$ac_ext
8674       LIBS="$gl_save_LIBS"
8675       if test -n "$gl_have_pth"; then
8676         gl_threads_api=pth
8677         LIBTHREAD="$LIBPTH"
8678         LTLIBTHREAD="$LTLIBPTH"
8679         LIBMULTITHREAD="$LIBTHREAD"
8680         LTLIBMULTITHREAD="$LTLIBTHREAD"
8681
8682 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8683
8684         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8685           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8686
8687 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8688
8689             LIBTHREAD=
8690             LTLIBTHREAD=
8691           fi
8692         fi
8693       else
8694         CPPFLAGS="$gl_save_CPPFLAGS"
8695       fi
8696     fi
8697     if test -z "$gl_have_pthread"; then
8698       case "$gl_use_threads" in
8699         yes | windows | win32) # The 'win32' is for backward compatibility.
8700           if { case "$host_os" in
8701                  mingw*) true;;
8702                  *) false;;
8703                esac
8704              }; then
8705             gl_threads_api=windows
8706
8707 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8708
8709           fi
8710           ;;
8711       esac
8712     fi
8713   fi
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8715 $as_echo_n "checking for multithread API to use... " >&6; }
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8717 $as_echo "$gl_threads_api" >&6; }
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729   if test "$gl_threads_api" = posix; then
8730     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8731     # pthread_rwlock_* functions.
8732     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8733 "
8734 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8735
8736 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8737
8738 fi
8739
8740     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h.  */
8743
8744       #include <pthread.h>
8745 int
8746 main ()
8747 {
8748
8749 #if __FreeBSD__ == 4
8750 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8751 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8752        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8753 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8754 #else
8755 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8756 return !x;
8757 #endif
8758
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764
8765 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8766
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769   fi
8770   :
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783     use_additional=yes
8784
8785   acl_save_prefix="$prefix"
8786   prefix="$acl_final_prefix"
8787   acl_save_exec_prefix="$exec_prefix"
8788   exec_prefix="$acl_final_exec_prefix"
8789
8790     eval additional_includedir=\"$includedir\"
8791     eval additional_libdir=\"$libdir\"
8792
8793   exec_prefix="$acl_save_exec_prefix"
8794   prefix="$acl_save_prefix"
8795
8796
8797 # Check whether --with-libiconv-prefix was given.
8798 if test "${with_libiconv_prefix+set}" = set; then :
8799   withval=$with_libiconv_prefix;
8800     if test "X$withval" = "Xno"; then
8801       use_additional=no
8802     else
8803       if test "X$withval" = "X"; then
8804
8805   acl_save_prefix="$prefix"
8806   prefix="$acl_final_prefix"
8807   acl_save_exec_prefix="$exec_prefix"
8808   exec_prefix="$acl_final_exec_prefix"
8809
8810           eval additional_includedir=\"$includedir\"
8811           eval additional_libdir=\"$libdir\"
8812
8813   exec_prefix="$acl_save_exec_prefix"
8814   prefix="$acl_save_prefix"
8815
8816       else
8817         additional_includedir="$withval/include"
8818         additional_libdir="$withval/$acl_libdirstem"
8819         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8820            && ! test -d "$withval/$acl_libdirstem"; then
8821           additional_libdir="$withval/$acl_libdirstem2"
8822         fi
8823       fi
8824     fi
8825
8826 fi
8827
8828       LIBICONV=
8829   LTLIBICONV=
8830   INCICONV=
8831   LIBICONV_PREFIX=
8832       HAVE_LIBICONV=
8833   rpathdirs=
8834   ltrpathdirs=
8835   names_already_handled=
8836   names_next_round='iconv '
8837   while test -n "$names_next_round"; do
8838     names_this_round="$names_next_round"
8839     names_next_round=
8840     for name in $names_this_round; do
8841       already_handled=
8842       for n in $names_already_handled; do
8843         if test "$n" = "$name"; then
8844           already_handled=yes
8845           break
8846         fi
8847       done
8848       if test -z "$already_handled"; then
8849         names_already_handled="$names_already_handled $name"
8850                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8851         eval value=\"\$HAVE_LIB$uppername\"
8852         if test -n "$value"; then
8853           if test "$value" = yes; then
8854             eval value=\"\$LIB$uppername\"
8855             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8856             eval value=\"\$LTLIB$uppername\"
8857             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8858           else
8859                                     :
8860           fi
8861         else
8862                               found_dir=
8863           found_la=
8864           found_so=
8865           found_a=
8866           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8867           if test -n "$acl_shlibext"; then
8868             shrext=".$acl_shlibext"             # typically: shrext=.so
8869           else
8870             shrext=
8871           fi
8872           if test $use_additional = yes; then
8873             dir="$additional_libdir"
8874                                     if test -n "$acl_shlibext"; then
8875               if test -f "$dir/$libname$shrext"; then
8876                 found_dir="$dir"
8877                 found_so="$dir/$libname$shrext"
8878               else
8879                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8880                   ver=`(cd "$dir" && \
8881                         for f in "$libname$shrext".*; do echo "$f"; done \
8882                         | sed -e "s,^$libname$shrext\\\\.,," \
8883                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8884                         | sed 1q ) 2>/dev/null`
8885                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8886                     found_dir="$dir"
8887                     found_so="$dir/$libname$shrext.$ver"
8888                   fi
8889                 else
8890                   eval library_names=\"$acl_library_names_spec\"
8891                   for f in $library_names; do
8892                     if test -f "$dir/$f"; then
8893                       found_dir="$dir"
8894                       found_so="$dir/$f"
8895                       break
8896                     fi
8897                   done
8898                 fi
8899               fi
8900             fi
8901                         if test "X$found_dir" = "X"; then
8902               if test -f "$dir/$libname.$acl_libext"; then
8903                 found_dir="$dir"
8904                 found_a="$dir/$libname.$acl_libext"
8905               fi
8906             fi
8907             if test "X$found_dir" != "X"; then
8908               if test -f "$dir/$libname.la"; then
8909                 found_la="$dir/$libname.la"
8910               fi
8911             fi
8912           fi
8913           if test "X$found_dir" = "X"; then
8914             for x in $LDFLAGS $LTLIBICONV; do
8915
8916   acl_save_prefix="$prefix"
8917   prefix="$acl_final_prefix"
8918   acl_save_exec_prefix="$exec_prefix"
8919   exec_prefix="$acl_final_exec_prefix"
8920   eval x=\"$x\"
8921   exec_prefix="$acl_save_exec_prefix"
8922   prefix="$acl_save_prefix"
8923
8924               case "$x" in
8925                 -L*)
8926                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8927                                     if test -n "$acl_shlibext"; then
8928                     if test -f "$dir/$libname$shrext"; then
8929                       found_dir="$dir"
8930                       found_so="$dir/$libname$shrext"
8931                     else
8932                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8933                         ver=`(cd "$dir" && \
8934                               for f in "$libname$shrext".*; do echo "$f"; done \
8935                               | sed -e "s,^$libname$shrext\\\\.,," \
8936                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8937                               | sed 1q ) 2>/dev/null`
8938                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8939                           found_dir="$dir"
8940                           found_so="$dir/$libname$shrext.$ver"
8941                         fi
8942                       else
8943                         eval library_names=\"$acl_library_names_spec\"
8944                         for f in $library_names; do
8945                           if test -f "$dir/$f"; then
8946                             found_dir="$dir"
8947                             found_so="$dir/$f"
8948                             break
8949                           fi
8950                         done
8951                       fi
8952                     fi
8953                   fi
8954                                     if test "X$found_dir" = "X"; then
8955                     if test -f "$dir/$libname.$acl_libext"; then
8956                       found_dir="$dir"
8957                       found_a="$dir/$libname.$acl_libext"
8958                     fi
8959                   fi
8960                   if test "X$found_dir" != "X"; then
8961                     if test -f "$dir/$libname.la"; then
8962                       found_la="$dir/$libname.la"
8963                     fi
8964                   fi
8965                   ;;
8966               esac
8967               if test "X$found_dir" != "X"; then
8968                 break
8969               fi
8970             done
8971           fi
8972           if test "X$found_dir" != "X"; then
8973                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8974             if test "X$found_so" != "X"; then
8975                                                         if test "$enable_rpath" = no \
8976                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8977                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8978                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8979               else
8980                                                                                 haveit=
8981                 for x in $ltrpathdirs; do
8982                   if test "X$x" = "X$found_dir"; then
8983                     haveit=yes
8984                     break
8985                   fi
8986                 done
8987                 if test -z "$haveit"; then
8988                   ltrpathdirs="$ltrpathdirs $found_dir"
8989                 fi
8990                                 if test "$acl_hardcode_direct" = yes; then
8991                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8992                 else
8993                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8994                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8995                                                             haveit=
8996                     for x in $rpathdirs; do
8997                       if test "X$x" = "X$found_dir"; then
8998                         haveit=yes
8999                         break
9000                       fi
9001                     done
9002                     if test -z "$haveit"; then
9003                       rpathdirs="$rpathdirs $found_dir"
9004                     fi
9005                   else
9006                                                                                 haveit=
9007                     for x in $LDFLAGS $LIBICONV; do
9008
9009   acl_save_prefix="$prefix"
9010   prefix="$acl_final_prefix"
9011   acl_save_exec_prefix="$exec_prefix"
9012   exec_prefix="$acl_final_exec_prefix"
9013   eval x=\"$x\"
9014   exec_prefix="$acl_save_exec_prefix"
9015   prefix="$acl_save_prefix"
9016
9017                       if test "X$x" = "X-L$found_dir"; then
9018                         haveit=yes
9019                         break
9020                       fi
9021                     done
9022                     if test -z "$haveit"; then
9023                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9024                     fi
9025                     if test "$acl_hardcode_minus_L" != no; then
9026                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9027                     else
9028                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9029                     fi
9030                   fi
9031                 fi
9032               fi
9033             else
9034               if test "X$found_a" != "X"; then
9035                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9036               else
9037                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9038               fi
9039             fi
9040                         additional_includedir=
9041             case "$found_dir" in
9042               */$acl_libdirstem | */$acl_libdirstem/)
9043                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9044                 if test "$name" = 'iconv'; then
9045                   LIBICONV_PREFIX="$basedir"
9046                 fi
9047                 additional_includedir="$basedir/include"
9048                 ;;
9049               */$acl_libdirstem2 | */$acl_libdirstem2/)
9050                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9051                 if test "$name" = 'iconv'; then
9052                   LIBICONV_PREFIX="$basedir"
9053                 fi
9054                 additional_includedir="$basedir/include"
9055                 ;;
9056             esac
9057             if test "X$additional_includedir" != "X"; then
9058                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9059                 haveit=
9060                 if test "X$additional_includedir" = "X/usr/local/include"; then
9061                   if test -n "$GCC"; then
9062                     case $host_os in
9063                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9064                     esac
9065                   fi
9066                 fi
9067                 if test -z "$haveit"; then
9068                   for x in $CPPFLAGS $INCICONV; do
9069
9070   acl_save_prefix="$prefix"
9071   prefix="$acl_final_prefix"
9072   acl_save_exec_prefix="$exec_prefix"
9073   exec_prefix="$acl_final_exec_prefix"
9074   eval x=\"$x\"
9075   exec_prefix="$acl_save_exec_prefix"
9076   prefix="$acl_save_prefix"
9077
9078                     if test "X$x" = "X-I$additional_includedir"; then
9079                       haveit=yes
9080                       break
9081                     fi
9082                   done
9083                   if test -z "$haveit"; then
9084                     if test -d "$additional_includedir"; then
9085                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9086                     fi
9087                   fi
9088                 fi
9089               fi
9090             fi
9091                         if test -n "$found_la"; then
9092                                                         save_libdir="$libdir"
9093               case "$found_la" in
9094                 */* | *\\*) . "$found_la" ;;
9095                 *) . "./$found_la" ;;
9096               esac
9097               libdir="$save_libdir"
9098                             for dep in $dependency_libs; do
9099                 case "$dep" in
9100                   -L*)
9101                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9102                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9103                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9104                       haveit=
9105                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9106                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9107                         if test -n "$GCC"; then
9108                           case $host_os in
9109                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9110                           esac
9111                         fi
9112                       fi
9113                       if test -z "$haveit"; then
9114                         haveit=
9115                         for x in $LDFLAGS $LIBICONV; do
9116
9117   acl_save_prefix="$prefix"
9118   prefix="$acl_final_prefix"
9119   acl_save_exec_prefix="$exec_prefix"
9120   exec_prefix="$acl_final_exec_prefix"
9121   eval x=\"$x\"
9122   exec_prefix="$acl_save_exec_prefix"
9123   prefix="$acl_save_prefix"
9124
9125                           if test "X$x" = "X-L$additional_libdir"; then
9126                             haveit=yes
9127                             break
9128                           fi
9129                         done
9130                         if test -z "$haveit"; then
9131                           if test -d "$additional_libdir"; then
9132                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9133                           fi
9134                         fi
9135                         haveit=
9136                         for x in $LDFLAGS $LTLIBICONV; do
9137
9138   acl_save_prefix="$prefix"
9139   prefix="$acl_final_prefix"
9140   acl_save_exec_prefix="$exec_prefix"
9141   exec_prefix="$acl_final_exec_prefix"
9142   eval x=\"$x\"
9143   exec_prefix="$acl_save_exec_prefix"
9144   prefix="$acl_save_prefix"
9145
9146                           if test "X$x" = "X-L$additional_libdir"; then
9147                             haveit=yes
9148                             break
9149                           fi
9150                         done
9151                         if test -z "$haveit"; then
9152                           if test -d "$additional_libdir"; then
9153                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9154                           fi
9155                         fi
9156                       fi
9157                     fi
9158                     ;;
9159                   -R*)
9160                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9161                     if test "$enable_rpath" != no; then
9162                                                                   haveit=
9163                       for x in $rpathdirs; do
9164                         if test "X$x" = "X$dir"; then
9165                           haveit=yes
9166                           break
9167                         fi
9168                       done
9169                       if test -z "$haveit"; then
9170                         rpathdirs="$rpathdirs $dir"
9171                       fi
9172                                                                   haveit=
9173                       for x in $ltrpathdirs; do
9174                         if test "X$x" = "X$dir"; then
9175                           haveit=yes
9176                           break
9177                         fi
9178                       done
9179                       if test -z "$haveit"; then
9180                         ltrpathdirs="$ltrpathdirs $dir"
9181                       fi
9182                     fi
9183                     ;;
9184                   -l*)
9185                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9186                     ;;
9187                   *.la)
9188                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9189                     ;;
9190                   *)
9191                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9192                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9193                     ;;
9194                 esac
9195               done
9196             fi
9197           else
9198                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9199             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9200           fi
9201         fi
9202       fi
9203     done
9204   done
9205   if test "X$rpathdirs" != "X"; then
9206     if test -n "$acl_hardcode_libdir_separator"; then
9207                         alldirs=
9208       for found_dir in $rpathdirs; do
9209         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9210       done
9211             acl_save_libdir="$libdir"
9212       libdir="$alldirs"
9213       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9214       libdir="$acl_save_libdir"
9215       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9216     else
9217             for found_dir in $rpathdirs; do
9218         acl_save_libdir="$libdir"
9219         libdir="$found_dir"
9220         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9221         libdir="$acl_save_libdir"
9222         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9223       done
9224     fi
9225   fi
9226   if test "X$ltrpathdirs" != "X"; then
9227             for found_dir in $ltrpathdirs; do
9228       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9229     done
9230   fi
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243           am_save_CPPFLAGS="$CPPFLAGS"
9244
9245   for element in $INCICONV; do
9246     haveit=
9247     for x in $CPPFLAGS; do
9248
9249   acl_save_prefix="$prefix"
9250   prefix="$acl_final_prefix"
9251   acl_save_exec_prefix="$exec_prefix"
9252   exec_prefix="$acl_final_exec_prefix"
9253   eval x=\"$x\"
9254   exec_prefix="$acl_save_exec_prefix"
9255   prefix="$acl_save_prefix"
9256
9257       if test "X$x" = "X$element"; then
9258         haveit=yes
9259         break
9260       fi
9261     done
9262     if test -z "$haveit"; then
9263       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9264     fi
9265   done
9266
9267
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9269 $as_echo_n "checking for iconv... " >&6; }
9270 if ${am_cv_func_iconv+:} false; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273
9274     am_cv_func_iconv="no, consider installing GNU libiconv"
9275     am_cv_lib_iconv=no
9276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h.  */
9278
9279 #include <stdlib.h>
9280 #include <iconv.h>
9281
9282 int
9283 main ()
9284 {
9285 iconv_t cd = iconv_open("","");
9286            iconv(cd,NULL,NULL,NULL,NULL);
9287            iconv_close(cd);
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293   am_cv_func_iconv=yes
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext \
9296     conftest$ac_exeext conftest.$ac_ext
9297     if test "$am_cv_func_iconv" != yes; then
9298       am_save_LIBS="$LIBS"
9299       LIBS="$LIBS $LIBICONV"
9300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h.  */
9302
9303 #include <stdlib.h>
9304 #include <iconv.h>
9305
9306 int
9307 main ()
9308 {
9309 iconv_t cd = iconv_open("","");
9310              iconv(cd,NULL,NULL,NULL,NULL);
9311              iconv_close(cd);
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317   am_cv_lib_iconv=yes
9318         am_cv_func_iconv=yes
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322       LIBS="$am_save_LIBS"
9323     fi
9324
9325 fi
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9327 $as_echo "$am_cv_func_iconv" >&6; }
9328   if test "$am_cv_func_iconv" = yes; then
9329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9330 $as_echo_n "checking for working iconv... " >&6; }
9331 if ${am_cv_func_iconv_works+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334
9335                   am_save_LIBS="$LIBS"
9336       if test $am_cv_lib_iconv = yes; then
9337         LIBS="$LIBS $LIBICONV"
9338       fi
9339       if test "$cross_compiling" = yes; then :
9340
9341          case "$host_os" in
9342            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9343            *)            am_cv_func_iconv_works="guessing yes" ;;
9344          esac
9345
9346 else
9347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h.  */
9349
9350 #include <iconv.h>
9351 #include <string.h>
9352 int main ()
9353 {
9354   int result = 0;
9355   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9356      returns.  */
9357   {
9358     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9359     if (cd_utf8_to_88591 != (iconv_t)(-1))
9360       {
9361         static const char input[] = "\342\202\254"; /* EURO SIGN */
9362         char buf[10];
9363         const char *inptr = input;
9364         size_t inbytesleft = strlen (input);
9365         char *outptr = buf;
9366         size_t outbytesleft = sizeof (buf);
9367         size_t res = iconv (cd_utf8_to_88591,
9368                             (char **) &inptr, &inbytesleft,
9369                             &outptr, &outbytesleft);
9370         if (res == 0)
9371           result |= 1;
9372         iconv_close (cd_utf8_to_88591);
9373       }
9374   }
9375   /* Test against Solaris 10 bug: Failures are not distinguishable from
9376      successful returns.  */
9377   {
9378     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9379     if (cd_ascii_to_88591 != (iconv_t)(-1))
9380       {
9381         static const char input[] = "\263";
9382         char buf[10];
9383         const char *inptr = input;
9384         size_t inbytesleft = strlen (input);
9385         char *outptr = buf;
9386         size_t outbytesleft = sizeof (buf);
9387         size_t res = iconv (cd_ascii_to_88591,
9388                             (char **) &inptr, &inbytesleft,
9389                             &outptr, &outbytesleft);
9390         if (res == 0)
9391           result |= 2;
9392         iconv_close (cd_ascii_to_88591);
9393       }
9394   }
9395   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9396   {
9397     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9398     if (cd_88591_to_utf8 != (iconv_t)(-1))
9399       {
9400         static const char input[] = "\304";
9401         static char buf[2] = { (char)0xDE, (char)0xAD };
9402         const char *inptr = input;
9403         size_t inbytesleft = 1;
9404         char *outptr = buf;
9405         size_t outbytesleft = 1;
9406         size_t res = iconv (cd_88591_to_utf8,
9407                             (char **) &inptr, &inbytesleft,
9408                             &outptr, &outbytesleft);
9409         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9410           result |= 4;
9411         iconv_close (cd_88591_to_utf8);
9412       }
9413   }
9414 #if 0 /* This bug could be worked around by the caller.  */
9415   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9416   {
9417     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9418     if (cd_88591_to_utf8 != (iconv_t)(-1))
9419       {
9420         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9421         char buf[50];
9422         const char *inptr = input;
9423         size_t inbytesleft = strlen (input);
9424         char *outptr = buf;
9425         size_t outbytesleft = sizeof (buf);
9426         size_t res = iconv (cd_88591_to_utf8,
9427                             (char **) &inptr, &inbytesleft,
9428                             &outptr, &outbytesleft);
9429         if ((int)res > 0)
9430           result |= 8;
9431         iconv_close (cd_88591_to_utf8);
9432       }
9433   }
9434 #endif
9435   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9436      provided.  */
9437   if (/* Try standardized names.  */
9438       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9439       /* Try IRIX, OSF/1 names.  */
9440       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9441       /* Try AIX names.  */
9442       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9443       /* Try HP-UX names.  */
9444       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9445     result |= 16;
9446   return result;
9447 }
9448 _ACEOF
9449 if ac_fn_c_try_run "$LINENO"; then :
9450   am_cv_func_iconv_works=yes
9451 else
9452   am_cv_func_iconv_works=no
9453 fi
9454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9455   conftest.$ac_objext conftest.beam conftest.$ac_ext
9456 fi
9457
9458       LIBS="$am_save_LIBS"
9459
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9462 $as_echo "$am_cv_func_iconv_works" >&6; }
9463     case "$am_cv_func_iconv_works" in
9464       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9465       *)   am_func_iconv=yes ;;
9466     esac
9467   else
9468     am_func_iconv=no am_cv_lib_iconv=no
9469   fi
9470   if test "$am_func_iconv" = yes; then
9471
9472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9473
9474   fi
9475   if test "$am_cv_lib_iconv" = yes; then
9476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9477 $as_echo_n "checking how to link with libiconv... " >&6; }
9478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9479 $as_echo "$LIBICONV" >&6; }
9480   else
9481             CPPFLAGS="$am_save_CPPFLAGS"
9482     LIBICONV=
9483     LTLIBICONV=
9484   fi
9485
9486
9487
9488   if test "$am_cv_func_iconv" = yes; then
9489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9490 $as_echo_n "checking for iconv declaration... " >&6; }
9491     if ${am_cv_proto_iconv+:} false; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494
9495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h.  */
9497
9498 #include <stdlib.h>
9499 #include <iconv.h>
9500 extern
9501 #ifdef __cplusplus
9502 "C"
9503 #endif
9504 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9506 #else
9507 size_t iconv();
9508 #endif
9509
9510 int
9511 main ()
9512 {
9513
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 if ac_fn_c_try_compile "$LINENO"; then :
9519   am_cv_proto_iconv_arg1=""
9520 else
9521   am_cv_proto_iconv_arg1="const"
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524       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);"
9525 fi
9526
9527     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9528     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9529          $am_cv_proto_iconv" >&5
9530 $as_echo "
9531          $am_cv_proto_iconv" >&6; }
9532
9533 cat >>confdefs.h <<_ACEOF
9534 #define ICONV_CONST $am_cv_proto_iconv_arg1
9535 _ACEOF
9536
9537
9538   fi
9539
9540
9541
9542
9543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h.  */
9545 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9546 int
9547 main ()
9548 {
9549
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555
9556 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9557
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560     conftest$ac_exeext conftest.$ac_ext
9561
9562   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9563 do :
9564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9567   cat >>confdefs.h <<_ACEOF
9568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9569 _ACEOF
9570
9571 fi
9572
9573 done
9574
9575   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9576     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9577     argz_stringify argz_next __fsetlocking
9578 do :
9579   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9582   cat >>confdefs.h <<_ACEOF
9583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9584 _ACEOF
9585
9586 fi
9587 done
9588
9589
9590           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9591 "
9592 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9593   ac_have_decl=1
9594 else
9595   ac_have_decl=0
9596 fi
9597
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9600 _ACEOF
9601 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9602 "
9603 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9604   ac_have_decl=1
9605 else
9606   ac_have_decl=0
9607 fi
9608
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9611 _ACEOF
9612
9613
9614
9615
9616                       for ac_prog in bison
9617 do
9618   # Extract the first word of "$ac_prog", so it can be a program name with args.
9619 set dummy $ac_prog; ac_word=$2
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 $as_echo_n "checking for $ac_word... " >&6; }
9622 if ${ac_cv_prog_INTLBISON+:} false; then :
9623   $as_echo_n "(cached) " >&6
9624 else
9625   if test -n "$INTLBISON"; then
9626   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9627 else
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 for as_dir in $PATH
9630 do
9631   IFS=$as_save_IFS
9632   test -z "$as_dir" && as_dir=.
9633     for ac_exec_ext in '' $ac_executable_extensions; do
9634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635     ac_cv_prog_INTLBISON="$ac_prog"
9636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637     break 2
9638   fi
9639 done
9640   done
9641 IFS=$as_save_IFS
9642
9643 fi
9644 fi
9645 INTLBISON=$ac_cv_prog_INTLBISON
9646 if test -n "$INTLBISON"; then
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9648 $as_echo "$INTLBISON" >&6; }
9649 else
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9652 fi
9653
9654
9655   test -n "$INTLBISON" && break
9656 done
9657
9658   if test -z "$INTLBISON"; then
9659     ac_verc_fail=yes
9660   else
9661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9662 $as_echo_n "checking version of bison... " >&6; }
9663     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9664     case $ac_prog_version in
9665       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9666       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9667          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9668       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9669     esac
9670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9671 $as_echo "$ac_prog_version" >&6; }
9672   fi
9673   if test $ac_verc_fail = yes; then
9674     INTLBISON=:
9675   fi
9676
9677
9678
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9680 $as_echo_n "checking for long long int... " >&6; }
9681 if ${ac_cv_type_long_long_int+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   ac_cv_type_long_long_int=yes
9685       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9686         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9687         if test $ac_cv_type_long_long_int = yes; then
9688                                         if test "$cross_compiling" = yes; then :
9689   :
9690 else
9691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h.  */
9693 #include <limits.h>
9694                  #ifndef LLONG_MAX
9695                  # define HALF \
9696                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9697                  # define LLONG_MAX (HALF - 1 + HALF)
9698                  #endif
9699 int
9700 main ()
9701 {
9702 long long int n = 1;
9703                  int i;
9704                  for (i = 0; ; i++)
9705                    {
9706                      long long int m = n << i;
9707                      if (m >> i != n)
9708                        return 1;
9709                      if (LLONG_MAX / 2 < m)
9710                        break;
9711                    }
9712                  return 0;
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_run "$LINENO"; then :
9718
9719 else
9720   ac_cv_type_long_long_int=no
9721 fi
9722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9723   conftest.$ac_objext conftest.beam conftest.$ac_ext
9724 fi
9725
9726         fi
9727       fi
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9730 $as_echo "$ac_cv_type_long_long_int" >&6; }
9731   if test $ac_cv_type_long_long_int = yes; then
9732
9733 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9734
9735   fi
9736
9737
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9739 $as_echo_n "checking for wchar_t... " >&6; }
9740 if ${gt_cv_c_wchar_t+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h.  */
9745 #include <stddef.h>
9746             wchar_t foo = (wchar_t)'\0';
9747 int
9748 main ()
9749 {
9750
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756   gt_cv_c_wchar_t=yes
9757 else
9758   gt_cv_c_wchar_t=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9763 $as_echo "$gt_cv_c_wchar_t" >&6; }
9764   if test $gt_cv_c_wchar_t = yes; then
9765
9766 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9767
9768   fi
9769
9770
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9772 $as_echo_n "checking for wint_t... " >&6; }
9773 if ${gt_cv_c_wint_t+:} false; then :
9774   $as_echo_n "(cached) " >&6
9775 else
9776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h.  */
9778
9779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9780    <wchar.h>.
9781    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9782    before <wchar.h>.  */
9783 #include <stddef.h>
9784 #include <stdio.h>
9785 #include <time.h>
9786 #include <wchar.h>
9787             wint_t foo = (wchar_t)'\0';
9788 int
9789 main ()
9790 {
9791
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797   gt_cv_c_wint_t=yes
9798 else
9799   gt_cv_c_wint_t=no
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9804 $as_echo "$gt_cv_c_wint_t" >&6; }
9805   if test $gt_cv_c_wint_t = yes; then
9806
9807 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9808
9809   fi
9810
9811
9812
9813
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9815 $as_echo_n "checking for intmax_t... " >&6; }
9816 if ${gt_cv_c_intmax_t+:} false; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h.  */
9821
9822 #include <stddef.h>
9823 #include <stdlib.h>
9824 #if HAVE_STDINT_H_WITH_UINTMAX
9825 #include <stdint.h>
9826 #endif
9827 #if HAVE_INTTYPES_H_WITH_UINTMAX
9828 #include <inttypes.h>
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 intmax_t x = -1;
9835             return !x;
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841   gt_cv_c_intmax_t=yes
9842 else
9843   gt_cv_c_intmax_t=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9848 $as_echo "$gt_cv_c_intmax_t" >&6; }
9849   if test $gt_cv_c_intmax_t = yes; then
9850
9851 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9852
9853   fi
9854
9855
9856
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9858 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9859 if ${gt_cv_func_printf_posix+:} false; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862
9863       if test "$cross_compiling" = yes; then :
9864
9865           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867
9868 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9869   notposix
9870 #endif
9871
9872 _ACEOF
9873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9874   $EGREP "notposix" >/dev/null 2>&1; then :
9875   gt_cv_func_printf_posix="guessing no"
9876 else
9877   gt_cv_func_printf_posix="guessing yes"
9878 fi
9879 rm -f conftest*
9880
9881
9882 else
9883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h.  */
9885
9886 #include <stdio.h>
9887 #include <string.h>
9888 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9889    dollar expansion (possibly an autoconf bug).  */
9890 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9891 static char buf[100];
9892 int main ()
9893 {
9894   sprintf (buf, format, 33, 55);
9895   return (strcmp (buf, "55 33") != 0);
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_run "$LINENO"; then :
9899   gt_cv_func_printf_posix=yes
9900 else
9901   gt_cv_func_printf_posix=no
9902 fi
9903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9904   conftest.$ac_objext conftest.beam conftest.$ac_ext
9905 fi
9906
9907
9908 fi
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9910 $as_echo "$gt_cv_func_printf_posix" >&6; }
9911   case $gt_cv_func_printf_posix in
9912     *yes)
9913
9914 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9915
9916       ;;
9917   esac
9918
9919
9920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9921 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9922 if ${ac_cv_gnu_library_2_1+:} false; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h.  */
9927
9928 #include <features.h>
9929 #ifdef __GNU_LIBRARY__
9930  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9931   Lucky GNU user
9932  #endif
9933 #endif
9934 #ifdef __UCLIBC__
9935  Lucky user
9936 #endif
9937
9938 _ACEOF
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940   $EGREP "Lucky" >/dev/null 2>&1; then :
9941   ac_cv_gnu_library_2_1=yes
9942 else
9943   ac_cv_gnu_library_2_1=no
9944 fi
9945 rm -f conftest*
9946
9947
9948
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9951 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9952
9953     GLIBC21="$ac_cv_gnu_library_2_1"
9954
9955
9956
9957   for ac_header in stdint.h
9958 do :
9959   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9960 if test "x$ac_cv_header_stdint_h" = xyes; then :
9961   cat >>confdefs.h <<_ACEOF
9962 #define HAVE_STDINT_H 1
9963 _ACEOF
9964
9965 fi
9966
9967 done
9968
9969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9970 $as_echo_n "checking for SIZE_MAX... " >&6; }
9971 if ${gl_cv_size_max+:} false; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974
9975     gl_cv_size_max=
9976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h.  */
9978
9979 #include <limits.h>
9980 #if HAVE_STDINT_H
9981 #include <stdint.h>
9982 #endif
9983 #ifdef SIZE_MAX
9984 Found it
9985 #endif
9986
9987 _ACEOF
9988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9989   $EGREP "Found it" >/dev/null 2>&1; then :
9990   gl_cv_size_max=yes
9991 fi
9992 rm -f conftest*
9993
9994     if test -z "$gl_cv_size_max"; then
9995                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9996 #include <limits.h>"; then :
9997
9998 else
9999   size_t_bits_minus_1=
10000 fi
10001
10002       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10003
10004 else
10005   fits_in_uint=
10006 fi
10007
10008       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10009         if test $fits_in_uint = 1; then
10010                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h.  */
10012 #include <stddef.h>
10013                  extern size_t foo;
10014                  extern unsigned long foo;
10015
10016 int
10017 main ()
10018 {
10019
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025   fits_in_uint=0
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028         fi
10029                                 if test $fits_in_uint = 1; then
10030           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10031         else
10032           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10033         fi
10034       else
10035                 gl_cv_size_max='((size_t)~(size_t)0)'
10036       fi
10037     fi
10038
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10041 $as_echo "$gl_cv_size_max" >&6; }
10042   if test "$gl_cv_size_max" != yes; then
10043
10044 cat >>confdefs.h <<_ACEOF
10045 #define SIZE_MAX $gl_cv_size_max
10046 _ACEOF
10047
10048   fi
10049
10050
10051
10052
10053   for ac_header in stdint.h
10054 do :
10055   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10056 if test "x$ac_cv_header_stdint_h" = xyes; then :
10057   cat >>confdefs.h <<_ACEOF
10058 #define HAVE_STDINT_H 1
10059 _ACEOF
10060
10061 fi
10062
10063 done
10064
10065
10066
10067
10068
10069   for ac_func in $ac_func_list
10070 do :
10071   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10074   cat >>confdefs.h <<_ACEOF
10075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 fi
10079 done
10080
10081
10082
10083
10084
10085
10086
10087
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10089 $as_echo_n "checking for working fcntl.h... " >&6; }
10090 if ${gl_cv_header_working_fcntl_h+:} false; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   if test "$cross_compiling" = yes; then :
10094   gl_cv_header_working_fcntl_h=cross-compiling
10095 else
10096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h.  */
10098 #include <sys/types.h>
10099            #include <sys/stat.h>
10100            #if HAVE_UNISTD_H
10101            # include <unistd.h>
10102            #else /* on Windows with MSVC */
10103            # include <io.h>
10104            # include <stdlib.h>
10105            # defined sleep(n) _sleep ((n) * 1000)
10106            #endif
10107            #include <fcntl.h>
10108            #ifndef O_NOATIME
10109             #define O_NOATIME 0
10110            #endif
10111            #ifndef O_NOFOLLOW
10112             #define O_NOFOLLOW 0
10113            #endif
10114            static int const constants[] =
10115             {
10116               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10117               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10118             };
10119
10120 int
10121 main ()
10122 {
10123
10124             int result = !constants;
10125             #if HAVE_SYMLINK
10126             {
10127               static char const sym[] = "conftest.sym";
10128               if (symlink ("/dev/null", sym) != 0)
10129                 result |= 2;
10130               else
10131                 {
10132                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10133                   if (fd >= 0)
10134                     {
10135                       close (fd);
10136                       result |= 4;
10137                     }
10138                 }
10139               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10140                 result |= 2;
10141               else
10142                 {
10143                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10144                   if (fd >= 0)
10145                     {
10146                       close (fd);
10147                       result |= 4;
10148                     }
10149                 }
10150               unlink (sym);
10151             }
10152             #endif
10153             {
10154               static char const file[] = "confdefs.h";
10155               int fd = open (file, O_RDONLY | O_NOATIME);
10156               if (fd < 0)
10157                 result |= 8;
10158               else
10159                 {
10160                   struct stat st0;
10161                   if (fstat (fd, &st0) != 0)
10162                     result |= 16;
10163                   else
10164                     {
10165                       char c;
10166                       sleep (1);
10167                       if (read (fd, &c, 1) != 1)
10168                         result |= 24;
10169                       else
10170                         {
10171                           if (close (fd) != 0)
10172                             result |= 32;
10173                           else
10174                             {
10175                               struct stat st1;
10176                               if (stat (file, &st1) != 0)
10177                                 result |= 40;
10178                               else
10179                                 if (st0.st_atime != st1.st_atime)
10180                                   result |= 64;
10181                             }
10182                         }
10183                     }
10184                 }
10185             }
10186             return result;
10187   ;
10188   return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_run "$LINENO"; then :
10192   gl_cv_header_working_fcntl_h=yes
10193 else
10194   case $? in #(
10195         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10196         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10197         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10198          *) gl_cv_header_working_fcntl_h='no';;
10199         esac
10200 fi
10201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10202   conftest.$ac_objext conftest.beam conftest.$ac_ext
10203 fi
10204
10205 fi
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10207 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10208
10209   case $gl_cv_header_working_fcntl_h in #(
10210   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10211   *) ac_val=1;;
10212   esac
10213
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_WORKING_O_NOATIME $ac_val
10216 _ACEOF
10217
10218
10219   case $gl_cv_header_working_fcntl_h in #(
10220   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10221   *) ac_val=1;;
10222   esac
10223
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10226 _ACEOF
10227
10228
10229
10230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10231 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10232 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   gt_save_LIBS="$LIBS"
10236      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10237      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239 #include <CoreFoundation/CFPreferences.h>
10240 int
10241 main ()
10242 {
10243 CFPreferencesCopyAppValue(NULL, NULL)
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"; then :
10249   gt_cv_func_CFPreferencesCopyAppValue=yes
10250 else
10251   gt_cv_func_CFPreferencesCopyAppValue=no
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254     conftest$ac_exeext conftest.$ac_ext
10255      LIBS="$gt_save_LIBS"
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10258 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10259   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10260
10261 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10262
10263   fi
10264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10265 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10266 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   gt_save_LIBS="$LIBS"
10270      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10271      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h.  */
10273 #include <CoreFoundation/CFLocale.h>
10274 int
10275 main ()
10276 {
10277 CFLocaleCopyCurrent();
10278   ;
10279   return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283   gt_cv_func_CFLocaleCopyCurrent=yes
10284 else
10285   gt_cv_func_CFLocaleCopyCurrent=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288     conftest$ac_exeext conftest.$ac_ext
10289      LIBS="$gt_save_LIBS"
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10292 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10293   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10294
10295 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10296
10297   fi
10298   INTL_MACOSX_LIBS=
10299   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10300     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10301   fi
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312     case "$enable_silent_rules" in
10313     yes) INTL_DEFAULT_VERBOSITY=0;;
10314     no)  INTL_DEFAULT_VERBOSITY=1;;
10315     *)   INTL_DEFAULT_VERBOSITY=1;;
10316   esac
10317
10318
10319   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10320 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10321
10322 else
10323
10324 $as_echo "#define ptrdiff_t long" >>confdefs.h
10325
10326
10327 fi
10328
10329   for ac_header in features.h stddef.h stdlib.h string.h
10330 do :
10331   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10334   cat >>confdefs.h <<_ACEOF
10335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10336 _ACEOF
10337
10338 fi
10339
10340 done
10341
10342   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10343     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10344 do :
10345   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10348   cat >>confdefs.h <<_ACEOF
10349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10350 _ACEOF
10351
10352 fi
10353 done
10354
10355
10356       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10357 "
10358 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10359   ac_have_decl=1
10360 else
10361   ac_have_decl=0
10362 fi
10363
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL__SNPRINTF $ac_have_decl
10366 _ACEOF
10367 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10368 "
10369 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10370   ac_have_decl=1
10371 else
10372   ac_have_decl=0
10373 fi
10374
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10377 _ACEOF
10378
10379
10380           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10381 "
10382 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10383   ac_have_decl=1
10384 else
10385   ac_have_decl=0
10386 fi
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10390 _ACEOF
10391
10392
10393   case $gt_cv_func_printf_posix in
10394     *yes) HAVE_POSIX_PRINTF=1 ;;
10395     *) HAVE_POSIX_PRINTF=0 ;;
10396   esac
10397
10398   if test "$ac_cv_func_asprintf" = yes; then
10399     HAVE_ASPRINTF=1
10400   else
10401     HAVE_ASPRINTF=0
10402   fi
10403
10404   if test "$ac_cv_func_snprintf" = yes; then
10405     HAVE_SNPRINTF=1
10406   else
10407     HAVE_SNPRINTF=0
10408   fi
10409
10410   if test "$ac_cv_func_newlocale" = yes; then
10411     HAVE_NEWLOCALE=1
10412   else
10413     HAVE_NEWLOCALE=0
10414   fi
10415
10416   if test "$ac_cv_func_wprintf" = yes; then
10417     HAVE_WPRINTF=1
10418   else
10419     HAVE_WPRINTF=0
10420   fi
10421
10422
10423
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10425 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10426 if ${am_cv_langinfo_codeset+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431 #include <langinfo.h>
10432 int
10433 main ()
10434 {
10435 char* cs = nl_langinfo(CODESET); return !cs;
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441   am_cv_langinfo_codeset=yes
10442 else
10443   am_cv_langinfo_codeset=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext \
10446     conftest$ac_exeext conftest.$ac_ext
10447
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10450 $as_echo "$am_cv_langinfo_codeset" >&6; }
10451   if test $am_cv_langinfo_codeset = yes; then
10452
10453 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10454
10455   fi
10456
10457
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10459 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10460 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465 #include <locale.h>
10466 int
10467 main ()
10468 {
10469 return LC_MESSAGES
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_link "$LINENO"; then :
10475   gt_cv_val_LC_MESSAGES=yes
10476 else
10477   gt_cv_val_LC_MESSAGES=no
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext \
10480     conftest$ac_exeext conftest.$ac_ext
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10483 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10484   if test $gt_cv_val_LC_MESSAGES = yes; then
10485
10486 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10487
10488   fi
10489
10490
10491                 if test "$enable_shared" = yes; then
10492     case "$host_os" in
10493       mingw* | cygwin*) is_woe32dll=yes ;;
10494       *) is_woe32dll=no ;;
10495     esac
10496   else
10497     is_woe32dll=no
10498   fi
10499   WOE32DLL=$is_woe32dll
10500
10501
10502       case "$host_os" in
10503     mingw* | cygwin*) is_woe32=yes ;;
10504     *) is_woe32=no ;;
10505   esac
10506   WOE32=$is_woe32
10507
10508   if test $WOE32 = yes; then
10509         if test -n "$ac_tool_prefix"; then
10510   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10511 set dummy ${ac_tool_prefix}windres; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if ${ac_cv_prog_WINDRES+:} false; then :
10515   $as_echo_n "(cached) " >&6
10516 else
10517   if test -n "$WINDRES"; then
10518   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10519 else
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10522 do
10523   IFS=$as_save_IFS
10524   test -z "$as_dir" && as_dir=.
10525     for ac_exec_ext in '' $ac_executable_extensions; do
10526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10527     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529     break 2
10530   fi
10531 done
10532   done
10533 IFS=$as_save_IFS
10534
10535 fi
10536 fi
10537 WINDRES=$ac_cv_prog_WINDRES
10538 if test -n "$WINDRES"; then
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10540 $as_echo "$WINDRES" >&6; }
10541 else
10542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10544 fi
10545
10546
10547 fi
10548 if test -z "$ac_cv_prog_WINDRES"; then
10549   ac_ct_WINDRES=$WINDRES
10550   # Extract the first word of "windres", so it can be a program name with args.
10551 set dummy windres; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   if test -n "$ac_ct_WINDRES"; then
10558   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_prog_ac_ct_WINDRES="windres"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574
10575 fi
10576 fi
10577 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10578 if test -n "$ac_ct_WINDRES"; then
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10580 $as_echo "$ac_ct_WINDRES" >&6; }
10581 else
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585
10586   if test "x$ac_ct_WINDRES" = x; then
10587     WINDRES=""
10588   else
10589     case $cross_compiling:$ac_tool_warned in
10590 yes:)
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10593 ac_tool_warned=yes ;;
10594 esac
10595     WINDRES=$ac_ct_WINDRES
10596   fi
10597 else
10598   WINDRES="$ac_cv_prog_WINDRES"
10599 fi
10600
10601   fi
10602
10603               case "$host_os" in
10604     hpux*) LTLIBC="" ;;
10605     *)     LTLIBC="-lc" ;;
10606   esac
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10635 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10636 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   gt_save_LIBS="$LIBS"
10640      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10641      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h.  */
10643 #include <CoreFoundation/CFPreferences.h>
10644 int
10645 main ()
10646 {
10647 CFPreferencesCopyAppValue(NULL, NULL)
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653   gt_cv_func_CFPreferencesCopyAppValue=yes
10654 else
10655   gt_cv_func_CFPreferencesCopyAppValue=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658     conftest$ac_exeext conftest.$ac_ext
10659      LIBS="$gt_save_LIBS"
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10662 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10663   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10664
10665 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10666
10667   fi
10668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10669 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10670 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10671   $as_echo_n "(cached) " >&6
10672 else
10673   gt_save_LIBS="$LIBS"
10674      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10675      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h.  */
10677 #include <CoreFoundation/CFLocale.h>
10678 int
10679 main ()
10680 {
10681 CFLocaleCopyCurrent();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687   gt_cv_func_CFLocaleCopyCurrent=yes
10688 else
10689   gt_cv_func_CFLocaleCopyCurrent=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692     conftest$ac_exeext conftest.$ac_ext
10693      LIBS="$gt_save_LIBS"
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10696 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10697   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10698
10699 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10700
10701   fi
10702   INTL_MACOSX_LIBS=
10703   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10704     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10705   fi
10706
10707
10708
10709
10710
10711
10712     BUILD_INCLUDED_LIBINTL=no
10713     USE_INCLUDED_LIBINTL=no
10714
10715   LIBINTL=
10716   LTLIBINTL=
10717   POSUB=
10718
10719     case " $gt_needs " in
10720     *" need-formatstring-macros "*) gt_api_version=3 ;;
10721     *" need-ngettext "*) gt_api_version=2 ;;
10722     *) gt_api_version=1 ;;
10723   esac
10724   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10725   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10726
10727     if test "$USE_NLS" = "yes"; then
10728     gt_use_preinstalled_gnugettext=no
10729
10730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10731 $as_echo_n "checking whether included gettext is requested... " >&6; }
10732
10733 # Check whether --with-included-gettext was given.
10734 if test "${with_included_gettext+set}" = set; then :
10735   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10736 else
10737   nls_cv_force_use_gnu_gettext=no
10738 fi
10739
10740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10741 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10742
10743       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10744       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10745
10746
10747         if test $gt_api_version -ge 3; then
10748           gt_revision_test_code='
10749 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10750 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10751 #endif
10752 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10753 '
10754         else
10755           gt_revision_test_code=
10756         fi
10757         if test $gt_api_version -ge 2; then
10758           gt_expression_test_code=' + * ngettext ("", "", 0)'
10759         else
10760           gt_expression_test_code=
10761         fi
10762
10763         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10764 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10765 if eval \${$gt_func_gnugettext_libc+:} false; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 #include <libintl.h>
10772 $gt_revision_test_code
10773 extern int _nl_msg_cat_cntr;
10774 extern int *_nl_domain_bindings;
10775
10776 int
10777 main ()
10778 {
10779
10780 bindtextdomain ("", "");
10781 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10782
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788   eval "$gt_func_gnugettext_libc=yes"
10789 else
10790   eval "$gt_func_gnugettext_libc=no"
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793     conftest$ac_exeext conftest.$ac_ext
10794 fi
10795 eval ac_res=\$$gt_func_gnugettext_libc
10796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10798
10799         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10800
10801
10802
10803
10804
10805
10806
10807
10808     use_additional=yes
10809
10810   acl_save_prefix="$prefix"
10811   prefix="$acl_final_prefix"
10812   acl_save_exec_prefix="$exec_prefix"
10813   exec_prefix="$acl_final_exec_prefix"
10814
10815     eval additional_includedir=\"$includedir\"
10816     eval additional_libdir=\"$libdir\"
10817
10818   exec_prefix="$acl_save_exec_prefix"
10819   prefix="$acl_save_prefix"
10820
10821
10822 # Check whether --with-libintl-prefix was given.
10823 if test "${with_libintl_prefix+set}" = set; then :
10824   withval=$with_libintl_prefix;
10825     if test "X$withval" = "Xno"; then
10826       use_additional=no
10827     else
10828       if test "X$withval" = "X"; then
10829
10830   acl_save_prefix="$prefix"
10831   prefix="$acl_final_prefix"
10832   acl_save_exec_prefix="$exec_prefix"
10833   exec_prefix="$acl_final_exec_prefix"
10834
10835           eval additional_includedir=\"$includedir\"
10836           eval additional_libdir=\"$libdir\"
10837
10838   exec_prefix="$acl_save_exec_prefix"
10839   prefix="$acl_save_prefix"
10840
10841       else
10842         additional_includedir="$withval/include"
10843         additional_libdir="$withval/$acl_libdirstem"
10844         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10845            && ! test -d "$withval/$acl_libdirstem"; then
10846           additional_libdir="$withval/$acl_libdirstem2"
10847         fi
10848       fi
10849     fi
10850
10851 fi
10852
10853       LIBINTL=
10854   LTLIBINTL=
10855   INCINTL=
10856   LIBINTL_PREFIX=
10857       HAVE_LIBINTL=
10858   rpathdirs=
10859   ltrpathdirs=
10860   names_already_handled=
10861   names_next_round='intl '
10862   while test -n "$names_next_round"; do
10863     names_this_round="$names_next_round"
10864     names_next_round=
10865     for name in $names_this_round; do
10866       already_handled=
10867       for n in $names_already_handled; do
10868         if test "$n" = "$name"; then
10869           already_handled=yes
10870           break
10871         fi
10872       done
10873       if test -z "$already_handled"; then
10874         names_already_handled="$names_already_handled $name"
10875                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10876         eval value=\"\$HAVE_LIB$uppername\"
10877         if test -n "$value"; then
10878           if test "$value" = yes; then
10879             eval value=\"\$LIB$uppername\"
10880             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10881             eval value=\"\$LTLIB$uppername\"
10882             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10883           else
10884                                     :
10885           fi
10886         else
10887                               found_dir=
10888           found_la=
10889           found_so=
10890           found_a=
10891           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10892           if test -n "$acl_shlibext"; then
10893             shrext=".$acl_shlibext"             # typically: shrext=.so
10894           else
10895             shrext=
10896           fi
10897           if test $use_additional = yes; then
10898             dir="$additional_libdir"
10899                                     if test -n "$acl_shlibext"; then
10900               if test -f "$dir/$libname$shrext"; then
10901                 found_dir="$dir"
10902                 found_so="$dir/$libname$shrext"
10903               else
10904                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10905                   ver=`(cd "$dir" && \
10906                         for f in "$libname$shrext".*; do echo "$f"; done \
10907                         | sed -e "s,^$libname$shrext\\\\.,," \
10908                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10909                         | sed 1q ) 2>/dev/null`
10910                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10911                     found_dir="$dir"
10912                     found_so="$dir/$libname$shrext.$ver"
10913                   fi
10914                 else
10915                   eval library_names=\"$acl_library_names_spec\"
10916                   for f in $library_names; do
10917                     if test -f "$dir/$f"; then
10918                       found_dir="$dir"
10919                       found_so="$dir/$f"
10920                       break
10921                     fi
10922                   done
10923                 fi
10924               fi
10925             fi
10926                         if test "X$found_dir" = "X"; then
10927               if test -f "$dir/$libname.$acl_libext"; then
10928                 found_dir="$dir"
10929                 found_a="$dir/$libname.$acl_libext"
10930               fi
10931             fi
10932             if test "X$found_dir" != "X"; then
10933               if test -f "$dir/$libname.la"; then
10934                 found_la="$dir/$libname.la"
10935               fi
10936             fi
10937           fi
10938           if test "X$found_dir" = "X"; then
10939             for x in $LDFLAGS $LTLIBINTL; do
10940
10941   acl_save_prefix="$prefix"
10942   prefix="$acl_final_prefix"
10943   acl_save_exec_prefix="$exec_prefix"
10944   exec_prefix="$acl_final_exec_prefix"
10945   eval x=\"$x\"
10946   exec_prefix="$acl_save_exec_prefix"
10947   prefix="$acl_save_prefix"
10948
10949               case "$x" in
10950                 -L*)
10951                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10952                                     if test -n "$acl_shlibext"; then
10953                     if test -f "$dir/$libname$shrext"; then
10954                       found_dir="$dir"
10955                       found_so="$dir/$libname$shrext"
10956                     else
10957                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10958                         ver=`(cd "$dir" && \
10959                               for f in "$libname$shrext".*; do echo "$f"; done \
10960                               | sed -e "s,^$libname$shrext\\\\.,," \
10961                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10962                               | sed 1q ) 2>/dev/null`
10963                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10964                           found_dir="$dir"
10965                           found_so="$dir/$libname$shrext.$ver"
10966                         fi
10967                       else
10968                         eval library_names=\"$acl_library_names_spec\"
10969                         for f in $library_names; do
10970                           if test -f "$dir/$f"; then
10971                             found_dir="$dir"
10972                             found_so="$dir/$f"
10973                             break
10974                           fi
10975                         done
10976                       fi
10977                     fi
10978                   fi
10979                                     if test "X$found_dir" = "X"; then
10980                     if test -f "$dir/$libname.$acl_libext"; then
10981                       found_dir="$dir"
10982                       found_a="$dir/$libname.$acl_libext"
10983                     fi
10984                   fi
10985                   if test "X$found_dir" != "X"; then
10986                     if test -f "$dir/$libname.la"; then
10987                       found_la="$dir/$libname.la"
10988                     fi
10989                   fi
10990                   ;;
10991               esac
10992               if test "X$found_dir" != "X"; then
10993                 break
10994               fi
10995             done
10996           fi
10997           if test "X$found_dir" != "X"; then
10998                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10999             if test "X$found_so" != "X"; then
11000                                                         if test "$enable_rpath" = no \
11001                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11002                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11003                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11004               else
11005                                                                                 haveit=
11006                 for x in $ltrpathdirs; do
11007                   if test "X$x" = "X$found_dir"; then
11008                     haveit=yes
11009                     break
11010                   fi
11011                 done
11012                 if test -z "$haveit"; then
11013                   ltrpathdirs="$ltrpathdirs $found_dir"
11014                 fi
11015                                 if test "$acl_hardcode_direct" = yes; then
11016                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11017                 else
11018                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11019                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11020                                                             haveit=
11021                     for x in $rpathdirs; do
11022                       if test "X$x" = "X$found_dir"; then
11023                         haveit=yes
11024                         break
11025                       fi
11026                     done
11027                     if test -z "$haveit"; then
11028                       rpathdirs="$rpathdirs $found_dir"
11029                     fi
11030                   else
11031                                                                                 haveit=
11032                     for x in $LDFLAGS $LIBINTL; do
11033
11034   acl_save_prefix="$prefix"
11035   prefix="$acl_final_prefix"
11036   acl_save_exec_prefix="$exec_prefix"
11037   exec_prefix="$acl_final_exec_prefix"
11038   eval x=\"$x\"
11039   exec_prefix="$acl_save_exec_prefix"
11040   prefix="$acl_save_prefix"
11041
11042                       if test "X$x" = "X-L$found_dir"; then
11043                         haveit=yes
11044                         break
11045                       fi
11046                     done
11047                     if test -z "$haveit"; then
11048                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11049                     fi
11050                     if test "$acl_hardcode_minus_L" != no; then
11051                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11052                     else
11053                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11054                     fi
11055                   fi
11056                 fi
11057               fi
11058             else
11059               if test "X$found_a" != "X"; then
11060                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11061               else
11062                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11063               fi
11064             fi
11065                         additional_includedir=
11066             case "$found_dir" in
11067               */$acl_libdirstem | */$acl_libdirstem/)
11068                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11069                 if test "$name" = 'intl'; then
11070                   LIBINTL_PREFIX="$basedir"
11071                 fi
11072                 additional_includedir="$basedir/include"
11073                 ;;
11074               */$acl_libdirstem2 | */$acl_libdirstem2/)
11075                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11076                 if test "$name" = 'intl'; then
11077                   LIBINTL_PREFIX="$basedir"
11078                 fi
11079                 additional_includedir="$basedir/include"
11080                 ;;
11081             esac
11082             if test "X$additional_includedir" != "X"; then
11083                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11084                 haveit=
11085                 if test "X$additional_includedir" = "X/usr/local/include"; then
11086                   if test -n "$GCC"; then
11087                     case $host_os in
11088                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11089                     esac
11090                   fi
11091                 fi
11092                 if test -z "$haveit"; then
11093                   for x in $CPPFLAGS $INCINTL; do
11094
11095   acl_save_prefix="$prefix"
11096   prefix="$acl_final_prefix"
11097   acl_save_exec_prefix="$exec_prefix"
11098   exec_prefix="$acl_final_exec_prefix"
11099   eval x=\"$x\"
11100   exec_prefix="$acl_save_exec_prefix"
11101   prefix="$acl_save_prefix"
11102
11103                     if test "X$x" = "X-I$additional_includedir"; then
11104                       haveit=yes
11105                       break
11106                     fi
11107                   done
11108                   if test -z "$haveit"; then
11109                     if test -d "$additional_includedir"; then
11110                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11111                     fi
11112                   fi
11113                 fi
11114               fi
11115             fi
11116                         if test -n "$found_la"; then
11117                                                         save_libdir="$libdir"
11118               case "$found_la" in
11119                 */* | *\\*) . "$found_la" ;;
11120                 *) . "./$found_la" ;;
11121               esac
11122               libdir="$save_libdir"
11123                             for dep in $dependency_libs; do
11124                 case "$dep" in
11125                   -L*)
11126                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11127                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11128                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11129                       haveit=
11130                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11131                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11132                         if test -n "$GCC"; then
11133                           case $host_os in
11134                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11135                           esac
11136                         fi
11137                       fi
11138                       if test -z "$haveit"; then
11139                         haveit=
11140                         for x in $LDFLAGS $LIBINTL; do
11141
11142   acl_save_prefix="$prefix"
11143   prefix="$acl_final_prefix"
11144   acl_save_exec_prefix="$exec_prefix"
11145   exec_prefix="$acl_final_exec_prefix"
11146   eval x=\"$x\"
11147   exec_prefix="$acl_save_exec_prefix"
11148   prefix="$acl_save_prefix"
11149
11150                           if test "X$x" = "X-L$additional_libdir"; then
11151                             haveit=yes
11152                             break
11153                           fi
11154                         done
11155                         if test -z "$haveit"; then
11156                           if test -d "$additional_libdir"; then
11157                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11158                           fi
11159                         fi
11160                         haveit=
11161                         for x in $LDFLAGS $LTLIBINTL; do
11162
11163   acl_save_prefix="$prefix"
11164   prefix="$acl_final_prefix"
11165   acl_save_exec_prefix="$exec_prefix"
11166   exec_prefix="$acl_final_exec_prefix"
11167   eval x=\"$x\"
11168   exec_prefix="$acl_save_exec_prefix"
11169   prefix="$acl_save_prefix"
11170
11171                           if test "X$x" = "X-L$additional_libdir"; then
11172                             haveit=yes
11173                             break
11174                           fi
11175                         done
11176                         if test -z "$haveit"; then
11177                           if test -d "$additional_libdir"; then
11178                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11179                           fi
11180                         fi
11181                       fi
11182                     fi
11183                     ;;
11184                   -R*)
11185                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11186                     if test "$enable_rpath" != no; then
11187                                                                   haveit=
11188                       for x in $rpathdirs; do
11189                         if test "X$x" = "X$dir"; then
11190                           haveit=yes
11191                           break
11192                         fi
11193                       done
11194                       if test -z "$haveit"; then
11195                         rpathdirs="$rpathdirs $dir"
11196                       fi
11197                                                                   haveit=
11198                       for x in $ltrpathdirs; do
11199                         if test "X$x" = "X$dir"; then
11200                           haveit=yes
11201                           break
11202                         fi
11203                       done
11204                       if test -z "$haveit"; then
11205                         ltrpathdirs="$ltrpathdirs $dir"
11206                       fi
11207                     fi
11208                     ;;
11209                   -l*)
11210                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11211                     ;;
11212                   *.la)
11213                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11214                     ;;
11215                   *)
11216                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11217                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11218                     ;;
11219                 esac
11220               done
11221             fi
11222           else
11223                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11224             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11225           fi
11226         fi
11227       fi
11228     done
11229   done
11230   if test "X$rpathdirs" != "X"; then
11231     if test -n "$acl_hardcode_libdir_separator"; then
11232                         alldirs=
11233       for found_dir in $rpathdirs; do
11234         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11235       done
11236             acl_save_libdir="$libdir"
11237       libdir="$alldirs"
11238       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11239       libdir="$acl_save_libdir"
11240       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11241     else
11242             for found_dir in $rpathdirs; do
11243         acl_save_libdir="$libdir"
11244         libdir="$found_dir"
11245         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11246         libdir="$acl_save_libdir"
11247         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11248       done
11249     fi
11250   fi
11251   if test "X$ltrpathdirs" != "X"; then
11252             for found_dir in $ltrpathdirs; do
11253       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11254     done
11255   fi
11256
11257
11258
11259
11260
11261
11262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11263 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11264 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11265   $as_echo_n "(cached) " >&6
11266 else
11267   gt_save_CPPFLAGS="$CPPFLAGS"
11268             CPPFLAGS="$CPPFLAGS $INCINTL"
11269             gt_save_LIBS="$LIBS"
11270             LIBS="$LIBS $LIBINTL"
11271                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h.  */
11273
11274 #include <libintl.h>
11275 $gt_revision_test_code
11276 extern int _nl_msg_cat_cntr;
11277 extern
11278 #ifdef __cplusplus
11279 "C"
11280 #endif
11281 const char *_nl_expand_alias (const char *);
11282
11283 int
11284 main ()
11285 {
11286
11287 bindtextdomain ("", "");
11288 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11289
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295   eval "$gt_func_gnugettext_libintl=yes"
11296 else
11297   eval "$gt_func_gnugettext_libintl=no"
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300     conftest$ac_exeext conftest.$ac_ext
11301                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11302               LIBS="$LIBS $LIBICONV"
11303               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h.  */
11305
11306 #include <libintl.h>
11307 $gt_revision_test_code
11308 extern int _nl_msg_cat_cntr;
11309 extern
11310 #ifdef __cplusplus
11311 "C"
11312 #endif
11313 const char *_nl_expand_alias (const char *);
11314
11315 int
11316 main ()
11317 {
11318
11319 bindtextdomain ("", "");
11320 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11321
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327   LIBINTL="$LIBINTL $LIBICONV"
11328                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11329                  eval "$gt_func_gnugettext_libintl=yes"
11330
11331 fi
11332 rm -f core conftest.err conftest.$ac_objext \
11333     conftest$ac_exeext conftest.$ac_ext
11334             fi
11335             CPPFLAGS="$gt_save_CPPFLAGS"
11336             LIBS="$gt_save_LIBS"
11337 fi
11338 eval ac_res=\$$gt_func_gnugettext_libintl
11339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11340 $as_echo "$ac_res" >&6; }
11341         fi
11342
11343                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11344            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11345                 && test "$PACKAGE" != gettext-runtime \
11346                 && test "$PACKAGE" != gettext-tools; }; then
11347           gt_use_preinstalled_gnugettext=yes
11348         else
11349                     LIBINTL=
11350           LTLIBINTL=
11351           INCINTL=
11352         fi
11353
11354
11355         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11356                               nls_cv_use_gnu_gettext=yes
11357         fi
11358       fi
11359
11360       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11361                 BUILD_INCLUDED_LIBINTL=yes
11362         USE_INCLUDED_LIBINTL=yes
11363         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11364         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11365         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11366       fi
11367
11368       CATOBJEXT=
11369       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11370          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11371                 CATOBJEXT=.gmo
11372       fi
11373
11374
11375     if test -n "$INTL_MACOSX_LIBS"; then
11376       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11377          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11378                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11379         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11380       fi
11381     fi
11382
11383     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11384        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11385
11386 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11387
11388     else
11389       USE_NLS=no
11390     fi
11391   fi
11392
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11394 $as_echo_n "checking whether to use NLS... " >&6; }
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11396 $as_echo "$USE_NLS" >&6; }
11397   if test "$USE_NLS" = "yes"; then
11398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11399 $as_echo_n "checking where the gettext function comes from... " >&6; }
11400     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11401       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11402         gt_source="external libintl"
11403       else
11404         gt_source="libc"
11405       fi
11406     else
11407       gt_source="included intl directory"
11408     fi
11409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11410 $as_echo "$gt_source" >&6; }
11411   fi
11412
11413   if test "$USE_NLS" = "yes"; then
11414
11415     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11416       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11418 $as_echo_n "checking how to link with libintl... " >&6; }
11419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11420 $as_echo "$LIBINTL" >&6; }
11421
11422   for element in $INCINTL; do
11423     haveit=
11424     for x in $CPPFLAGS; do
11425
11426   acl_save_prefix="$prefix"
11427   prefix="$acl_final_prefix"
11428   acl_save_exec_prefix="$exec_prefix"
11429   exec_prefix="$acl_final_exec_prefix"
11430   eval x=\"$x\"
11431   exec_prefix="$acl_save_exec_prefix"
11432   prefix="$acl_save_prefix"
11433
11434       if test "X$x" = "X$element"; then
11435         haveit=yes
11436         break
11437       fi
11438     done
11439     if test -z "$haveit"; then
11440       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11441     fi
11442   done
11443
11444       fi
11445
11446
11447 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11448
11449
11450 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11451
11452     fi
11453
11454         POSUB=po
11455   fi
11456
11457
11458             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11459       BUILD_INCLUDED_LIBINTL=yes
11460     fi
11461
11462
11463
11464
11465
11466         nls_cv_header_intl=
11467     nls_cv_header_libgt=
11468
11469         DATADIRNAME=share
11470
11471
11472         INSTOBJEXT=.mo
11473
11474
11475         GENCAT=gencat
11476
11477
11478         INTLOBJS=
11479     if test "$USE_INCLUDED_LIBINTL" = yes; then
11480       INTLOBJS="\$(GETTOBJS)"
11481     fi
11482
11483
11484         INTL_LIBTOOL_SUFFIX_PREFIX=
11485
11486
11487
11488     INTLLIBS="$LIBINTL"
11489
11490
11491
11492
11493
11494
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11497 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11498 set x ${MAKE-make}
11499 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11500 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   cat >conftest.make <<\_ACEOF
11504 SHELL = /bin/sh
11505 all:
11506         @echo '@@@%%%=$(MAKE)=@@@%%%'
11507 _ACEOF
11508 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11510   *@@@%%%=?*=@@@%%%*)
11511     eval ac_cv_prog_make_${ac_make}_set=yes;;
11512   *)
11513     eval ac_cv_prog_make_${ac_make}_set=no;;
11514 esac
11515 rm -f conftest.make
11516 fi
11517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 $as_echo "yes" >&6; }
11520   SET_MAKE=
11521 else
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524   SET_MAKE="MAKE=${MAKE-make}"
11525 fi
11526
11527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11528 $as_echo_n "checking for GNU make... " >&6; }
11529 if ${_cv_gnu_make_command+:} false; then :
11530   $as_echo_n "(cached) " >&6
11531 else
11532   _cv_gnu_make_command='' ;
11533                 if test -n "$FORCE_NATIVE_MAKE" ; then
11534                    MAKES="make"
11535                 else
11536                    MAKES="make gmake gnumake"
11537                 fi
11538                 for a in "$MAKE" $MAKES ; do
11539                         if test -z "$a" ; then continue ; fi ;
11540                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11541                                 _cv_gnu_make_command=$a ;
11542                                 break;
11543                         fi
11544                 done ;
11545
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11548 $as_echo "$_cv_gnu_make_command" >&6; } ;
11549         if test  "x$_cv_gnu_make_command" != "x"  ; then
11550                 ifGNUmake='' ;
11551                 ifNotGNUmake='#' ;
11552         else
11553                 ifGNUmake='#' ;
11554                 ifNotGNUmake='' ;
11555                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11556 $as_echo "\"Not found\"" >&6; };
11557         fi
11558
11559
11560
11561 # Extract the first word of "ln", so it can be a program name with args.
11562 set dummy ln; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if ${ac_cv_path_LN+:} false; then :
11566   $as_echo_n "(cached) " >&6
11567 else
11568   case $LN in
11569   [\\/]* | ?:[\\/]*)
11570   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11571   ;;
11572   *)
11573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11575 do
11576   IFS=$as_save_IFS
11577   test -z "$as_dir" && as_dir=.
11578     for ac_exec_ext in '' $ac_executable_extensions; do
11579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11580     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582     break 2
11583   fi
11584 done
11585   done
11586 IFS=$as_save_IFS
11587
11588   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11589   ;;
11590 esac
11591 fi
11592 LN=$ac_cv_path_LN
11593 if test -n "$LN"; then
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11595 $as_echo "$LN" >&6; }
11596 else
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11603 $as_echo_n "checking whether ln -s works... " >&6; }
11604 LN_S=$as_ln_s
11605 if test "$LN_S" = "ln -s"; then
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11608 else
11609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11610 $as_echo "no, using $LN_S" >&6; }
11611 fi
11612
11613 # Extract the first word of "mv", so it can be a program name with args.
11614 set dummy mv; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_path_MV+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620   case $MV in
11621   [\\/]* | ?:[\\/]*)
11622   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11623   ;;
11624   *)
11625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630     for ac_exec_ext in '' $ac_executable_extensions; do
11631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11634     break 2
11635   fi
11636 done
11637   done
11638 IFS=$as_save_IFS
11639
11640   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11641   ;;
11642 esac
11643 fi
11644 MV=$ac_cv_path_MV
11645 if test -n "$MV"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11647 $as_echo "$MV" >&6; }
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652
11653
11654 # Extract the first word of "cp", so it can be a program name with args.
11655 set dummy cp; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_CP+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $CP in
11662   [\\/]* | ?:[\\/]*)
11663   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11664   ;;
11665   *)
11666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680
11681   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11682   ;;
11683 esac
11684 fi
11685 CP=$ac_cv_path_CP
11686 if test -n "$CP"; then
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11688 $as_echo "$CP" >&6; }
11689 else
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692 fi
11693
11694
11695 # Extract the first word of "rm", so it can be a program name with args.
11696 set dummy rm; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_RM+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   case $RM in
11703   [\\/]* | ?:[\\/]*)
11704   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11705   ;;
11706   *)
11707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712     for ac_exec_ext in '' $ac_executable_extensions; do
11713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719   done
11720 IFS=$as_save_IFS
11721
11722   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11723   ;;
11724 esac
11725 fi
11726 RM=$ac_cv_path_RM
11727 if test -n "$RM"; then
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11729 $as_echo "$RM" >&6; }
11730 else
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11733 fi
11734
11735
11736 # Extract the first word of "chmod", so it can be a program name with args.
11737 set dummy chmod; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_CHMOD+:} false; then :
11741   $as_echo_n "(cached) " >&6
11742 else
11743   case $CHMOD in
11744   [\\/]* | ?:[\\/]*)
11745   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11746   ;;
11747   *)
11748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753     for ac_exec_ext in '' $ac_executable_extensions; do
11754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760   done
11761 IFS=$as_save_IFS
11762
11763   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11764   ;;
11765 esac
11766 fi
11767 CHMOD=$ac_cv_path_CHMOD
11768 if test -n "$CHMOD"; then
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11770 $as_echo "$CHMOD" >&6; }
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 for ac_prog in gawk mawk nawk awk
11778 do
11779   # Extract the first word of "$ac_prog", so it can be a program name with args.
11780 set dummy $ac_prog; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_prog_AWK+:} false; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   if test -n "$AWK"; then
11787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11788 else
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11791 do
11792   IFS=$as_save_IFS
11793   test -z "$as_dir" && as_dir=.
11794     for ac_exec_ext in '' $ac_executable_extensions; do
11795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796     ac_cv_prog_AWK="$ac_prog"
11797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798     break 2
11799   fi
11800 done
11801   done
11802 IFS=$as_save_IFS
11803
11804 fi
11805 fi
11806 AWK=$ac_cv_prog_AWK
11807 if test -n "$AWK"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11809 $as_echo "$AWK" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815
11816   test -n "$AWK" && break
11817 done
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11820 $as_echo_n "checking for egrep... " >&6; }
11821 if ${ac_cv_path_EGREP+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11825    then ac_cv_path_EGREP="$GREP -E"
11826    else
11827      if test -z "$EGREP"; then
11828   ac_path_EGREP_found=false
11829   # Loop through the user's path and test for each of PROGNAME-LIST
11830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_prog in egrep; do
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11838       as_fn_executable_p "$ac_path_EGREP" || continue
11839 # Check for GNU ac_path_EGREP and select it if it is found.
11840   # Check for GNU $ac_path_EGREP
11841 case `"$ac_path_EGREP" --version 2>&1` in
11842 *GNU*)
11843   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11844 *)
11845   ac_count=0
11846   $as_echo_n 0123456789 >"conftest.in"
11847   while :
11848   do
11849     cat "conftest.in" "conftest.in" >"conftest.tmp"
11850     mv "conftest.tmp" "conftest.in"
11851     cp "conftest.in" "conftest.nl"
11852     $as_echo 'EGREP' >> "conftest.nl"
11853     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11854     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11855     as_fn_arith $ac_count + 1 && ac_count=$as_val
11856     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11857       # Best one so far, save it but keep looking for a better one
11858       ac_cv_path_EGREP="$ac_path_EGREP"
11859       ac_path_EGREP_max=$ac_count
11860     fi
11861     # 10*(2^10) chars as input seems more than enough
11862     test $ac_count -gt 10 && break
11863   done
11864   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11865 esac
11866
11867       $ac_path_EGREP_found && break 3
11868     done
11869   done
11870   done
11871 IFS=$as_save_IFS
11872   if test -z "$ac_cv_path_EGREP"; then
11873     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11874   fi
11875 else
11876   ac_cv_path_EGREP=$EGREP
11877 fi
11878
11879    fi
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11882 $as_echo "$ac_cv_path_EGREP" >&6; }
11883  EGREP="$ac_cv_path_EGREP"
11884
11885
11886 # Extract the first word of "sed", so it can be a program name with args.
11887 set dummy sed; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if ${ac_cv_path_SED+:} false; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   case $SED in
11894   [\\/]* | ?:[\\/]*)
11895   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11896   ;;
11897   *)
11898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11900 do
11901   IFS=$as_save_IFS
11902   test -z "$as_dir" && as_dir=.
11903     for ac_exec_ext in '' $ac_executable_extensions; do
11904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11905     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907     break 2
11908   fi
11909 done
11910   done
11911 IFS=$as_save_IFS
11912
11913   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11914   ;;
11915 esac
11916 fi
11917 SED=$ac_cv_path_SED
11918 if test -n "$SED"; then
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11920 $as_echo "$SED" >&6; }
11921 else
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925
11926
11927 # Extract the first word of "perl", so it can be a program name with args.
11928 set dummy perl; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_PERL+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   case $PERL in
11935   [\\/]* | ?:[\\/]*)
11936   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11937   ;;
11938   *)
11939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11955   ;;
11956 esac
11957 fi
11958 PERL=$ac_cv_path_PERL
11959 if test -n "$PERL"; then
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11961 $as_echo "$PERL" >&6; }
11962 else
11963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11965 fi
11966
11967
11968 # Extract the first word of "ldconfig", so it can be a program name with args.
11969 set dummy ldconfig; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_LDCONFIG+:} false; then :
11973   $as_echo_n "(cached) " >&6
11974 else
11975   case $LDCONFIG in
11976   [\\/]* | ?:[\\/]*)
11977   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11978   ;;
11979   *)
11980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11982 do
11983   IFS=$as_save_IFS
11984   test -z "$as_dir" && as_dir=.
11985     for ac_exec_ext in '' $ac_executable_extensions; do
11986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989     break 2
11990   fi
11991 done
11992   done
11993 IFS=$as_save_IFS
11994
11995   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11996   ;;
11997 esac
11998 fi
11999 LDCONFIG=$ac_cv_path_LDCONFIG
12000 if test -n "$LDCONFIG"; then
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12002 $as_echo "$LDCONFIG" >&6; }
12003 else
12004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 fi
12007
12008
12009 if test -n "$ac_tool_prefix"; then
12010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12011 set dummy ${ac_tool_prefix}ar; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_prog_AR+:} false; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   if test -n "$AR"; then
12018   ac_cv_prog_AR="$AR" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023   IFS=$as_save_IFS
12024   test -z "$as_dir" && as_dir=.
12025     for ac_exec_ext in '' $ac_executable_extensions; do
12026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027     ac_cv_prog_AR="${ac_tool_prefix}ar"
12028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029     break 2
12030   fi
12031 done
12032   done
12033 IFS=$as_save_IFS
12034
12035 fi
12036 fi
12037 AR=$ac_cv_prog_AR
12038 if test -n "$AR"; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12040 $as_echo "$AR" >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045
12046
12047 fi
12048 if test -z "$ac_cv_prog_AR"; then
12049   ac_ct_AR=$AR
12050   # Extract the first word of "ar", so it can be a program name with args.
12051 set dummy ar; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12055   $as_echo_n "(cached) " >&6
12056 else
12057   if test -n "$ac_ct_AR"; then
12058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12059 else
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_exec_ext in '' $ac_executable_extensions; do
12066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067     ac_cv_prog_ac_ct_AR="ar"
12068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069     break 2
12070   fi
12071 done
12072   done
12073 IFS=$as_save_IFS
12074
12075 fi
12076 fi
12077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12078 if test -n "$ac_ct_AR"; then
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12080 $as_echo "$ac_ct_AR" >&6; }
12081 else
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 fi
12085
12086   if test "x$ac_ct_AR" = x; then
12087     AR="ar"
12088   else
12089     case $cross_compiling:$ac_tool_warned in
12090 yes:)
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12093 ac_tool_warned=yes ;;
12094 esac
12095     AR=$ac_ct_AR
12096   fi
12097 else
12098   AR="$ac_cv_prog_AR"
12099 fi
12100
12101 if test -n "$ac_tool_prefix"; then
12102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_prog_RANLIB+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   if test -n "$RANLIB"; then
12110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12111 else
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115   IFS=$as_save_IFS
12116   test -z "$as_dir" && as_dir=.
12117     for ac_exec_ext in '' $ac_executable_extensions; do
12118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121     break 2
12122   fi
12123 done
12124   done
12125 IFS=$as_save_IFS
12126
12127 fi
12128 fi
12129 RANLIB=$ac_cv_prog_RANLIB
12130 if test -n "$RANLIB"; then
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12132 $as_echo "$RANLIB" >&6; }
12133 else
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138
12139 fi
12140 if test -z "$ac_cv_prog_RANLIB"; then
12141   ac_ct_RANLIB=$RANLIB
12142   # Extract the first word of "ranlib", so it can be a program name with args.
12143 set dummy ranlib; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12147   $as_echo_n "(cached) " >&6
12148 else
12149   if test -n "$ac_ct_RANLIB"; then
12150   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12151 else
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12154 do
12155   IFS=$as_save_IFS
12156   test -z "$as_dir" && as_dir=.
12157     for ac_exec_ext in '' $ac_executable_extensions; do
12158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159     ac_cv_prog_ac_ct_RANLIB="ranlib"
12160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161     break 2
12162   fi
12163 done
12164   done
12165 IFS=$as_save_IFS
12166
12167 fi
12168 fi
12169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12170 if test -n "$ac_ct_RANLIB"; then
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12172 $as_echo "$ac_ct_RANLIB" >&6; }
12173 else
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176 fi
12177
12178   if test "x$ac_ct_RANLIB" = x; then
12179     RANLIB=":"
12180   else
12181     case $cross_compiling:$ac_tool_warned in
12182 yes:)
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12185 ac_tool_warned=yes ;;
12186 esac
12187     RANLIB=$ac_ct_RANLIB
12188   fi
12189 else
12190   RANLIB="$ac_cv_prog_RANLIB"
12191 fi
12192
12193 if test -n "$ac_tool_prefix"; then
12194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12195 set dummy ${ac_tool_prefix}strip; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_STRIP+:} false; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201   if test -n "$STRIP"; then
12202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_exec_ext in '' $ac_executable_extensions; do
12210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216   done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 STRIP=$ac_cv_prog_STRIP
12222 if test -n "$STRIP"; then
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12224 $as_echo "$STRIP" >&6; }
12225 else
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_prog_STRIP"; then
12233   ac_ct_STRIP=$STRIP
12234   # Extract the first word of "strip", so it can be a program name with args.
12235 set dummy strip; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   if test -n "$ac_ct_STRIP"; then
12242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247   IFS=$as_save_IFS
12248   test -z "$as_dir" && as_dir=.
12249     for ac_exec_ext in '' $ac_executable_extensions; do
12250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251     ac_cv_prog_ac_ct_STRIP="strip"
12252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253     break 2
12254   fi
12255 done
12256   done
12257 IFS=$as_save_IFS
12258
12259 fi
12260 fi
12261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12262 if test -n "$ac_ct_STRIP"; then
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12264 $as_echo "$ac_ct_STRIP" >&6; }
12265 else
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12268 fi
12269
12270   if test "x$ac_ct_STRIP" = x; then
12271     STRIP=":"
12272   else
12273     case $cross_compiling:$ac_tool_warned in
12274 yes:)
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277 ac_tool_warned=yes ;;
12278 esac
12279     STRIP=$ac_ct_STRIP
12280   fi
12281 else
12282   STRIP="$ac_cv_prog_STRIP"
12283 fi
12284
12285 # Extract the first word of "makeinfo", so it can be a program name with args.
12286 set dummy makeinfo; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_MAKEINFO+:} false; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292   if test -n "$MAKEINFO"; then
12293   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298   IFS=$as_save_IFS
12299   test -z "$as_dir" && as_dir=.
12300     for ac_exec_ext in '' $ac_executable_extensions; do
12301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302     ac_cv_prog_MAKEINFO="makeinfo"
12303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304     break 2
12305   fi
12306 done
12307   done
12308 IFS=$as_save_IFS
12309
12310 fi
12311 fi
12312 MAKEINFO=$ac_cv_prog_MAKEINFO
12313 if test -n "$MAKEINFO"; then
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12315 $as_echo "$MAKEINFO" >&6; }
12316 else
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322 if test "_$MAKEINFO" = "_"; then
12323     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12324 else
12325     case "$MAKEINFO" in
12326       */missing.*)
12327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12328 *** Makeinfo is missing. Info documentation will not be built." >&5
12329 $as_echo "$as_me: WARNING:
12330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12331         ;;
12332       *)
12333         ;;
12334     esac
12335 fi
12336
12337
12338 # See if we need a separate native compiler.
12339 if test $cross_compiling = no; then
12340   BUILD_CC="$CC"
12341
12342 else
12343   for ac_prog in gcc cc
12344 do
12345   # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_BUILD_CC+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   if test -n "$BUILD_CC"; then
12353   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12354 else
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12357 do
12358   IFS=$as_save_IFS
12359   test -z "$as_dir" && as_dir=.
12360     for ac_exec_ext in '' $ac_executable_extensions; do
12361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362     ac_cv_prog_BUILD_CC="$ac_prog"
12363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12364     break 2
12365   fi
12366 done
12367   done
12368 IFS=$as_save_IFS
12369
12370 fi
12371 fi
12372 BUILD_CC=$ac_cv_prog_BUILD_CC
12373 if test -n "$BUILD_CC"; then
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12375 $as_echo "$BUILD_CC" >&6; }
12376 else
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 fi
12380
12381
12382   test -n "$BUILD_CC" && break
12383 done
12384
12385 fi
12386 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
12387 do :
12388   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12391   cat >>confdefs.h <<_ACEOF
12392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 _ACEOF
12394
12395 fi
12396
12397 done
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12400 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12401 DD=
12402 for i in dd gdd ; do
12403         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12404                 DD=$i
12405                 break
12406         fi
12407 done
12408 if test -n "$DD" ; then
12409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12410 $as_echo "$DD" >&6; }
12411 else
12412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12413 $as_echo "not found, using dd" >&6; }
12414         DD=dd
12415         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12416 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12417 fi
12418
12419
12420 for ac_header in net/if.h
12421 do :
12422   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12423 #if HAVE_SYS_TYPES_H
12424 #include <sys/types.h>
12425 #endif
12426 #if HAVE_SYS_SOCKET
12427 #include <sys/socket.h>
12428 #endif
12429
12430 "
12431 if test "x$ac_cv_header_net_if_h" = xyes; then :
12432   cat >>confdefs.h <<_ACEOF
12433 #define HAVE_NET_IF_H 1
12434 _ACEOF
12435
12436 fi
12437
12438 done
12439
12440 for ac_func in vprintf
12441 do :
12442   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12443 if test "x$ac_cv_func_vprintf" = xyes; then :
12444   cat >>confdefs.h <<_ACEOF
12445 #define HAVE_VPRINTF 1
12446 _ACEOF
12447
12448 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12449 if test "x$ac_cv_func__doprnt" = xyes; then :
12450
12451 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12452
12453 fi
12454
12455 fi
12456 done
12457
12458
12459 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12460 "
12461 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12462
12463 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12464
12465 fi
12466
12467 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12468 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12469
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_STRUCT_STAT_ST_ATIM 1
12472 _ACEOF
12473
12474
12475 fi
12476
12477 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12478 "
12479 if test "x$ac_cv_type_ssize_t" = xyes; then :
12480
12481 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12482
12483 fi
12484
12485 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12486 "
12487 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12488
12489 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12490
12491 fi
12492
12493 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12494                  #define _LARGEFILE64_SOURCE
12495                  #include <unistd.h>
12496 "
12497 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12498
12499 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12500
12501 fi
12502
12503 # The cast to long int works around a bug in the HP C Compiler
12504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12506 # This bug is HP SR number 8606223364.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12508 $as_echo_n "checking size of short... " >&6; }
12509 if ${ac_cv_sizeof_short+:} false; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12513
12514 else
12515   if test "$ac_cv_type_short" = yes; then
12516      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12518 as_fn_error 77 "cannot compute sizeof (short)
12519 See \`config.log' for more details" "$LINENO" 5; }
12520    else
12521      ac_cv_sizeof_short=0
12522    fi
12523 fi
12524
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12527 $as_echo "$ac_cv_sizeof_short" >&6; }
12528
12529
12530
12531 cat >>confdefs.h <<_ACEOF
12532 #define SIZEOF_SHORT $ac_cv_sizeof_short
12533 _ACEOF
12534
12535
12536 # The cast to long int works around a bug in the HP C Compiler
12537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12539 # This bug is HP SR number 8606223364.
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12541 $as_echo_n "checking size of int... " >&6; }
12542 if ${ac_cv_sizeof_int+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12546
12547 else
12548   if test "$ac_cv_type_int" = yes; then
12549      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12551 as_fn_error 77 "cannot compute sizeof (int)
12552 See \`config.log' for more details" "$LINENO" 5; }
12553    else
12554      ac_cv_sizeof_int=0
12555    fi
12556 fi
12557
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12560 $as_echo "$ac_cv_sizeof_int" >&6; }
12561
12562
12563
12564 cat >>confdefs.h <<_ACEOF
12565 #define SIZEOF_INT $ac_cv_sizeof_int
12566 _ACEOF
12567
12568
12569 # The cast to long int works around a bug in the HP C Compiler
12570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12572 # This bug is HP SR number 8606223364.
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12574 $as_echo_n "checking size of long... " >&6; }
12575 if ${ac_cv_sizeof_long+:} false; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12579
12580 else
12581   if test "$ac_cv_type_long" = yes; then
12582      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12584 as_fn_error 77 "cannot compute sizeof (long)
12585 See \`config.log' for more details" "$LINENO" 5; }
12586    else
12587      ac_cv_sizeof_long=0
12588    fi
12589 fi
12590
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12593 $as_echo "$ac_cv_sizeof_long" >&6; }
12594
12595
12596
12597 cat >>confdefs.h <<_ACEOF
12598 #define SIZEOF_LONG $ac_cv_sizeof_long
12599 _ACEOF
12600
12601
12602 # The cast to long int works around a bug in the HP C Compiler
12603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12605 # This bug is HP SR number 8606223364.
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12607 $as_echo_n "checking size of long long... " >&6; }
12608 if ${ac_cv_sizeof_long_long+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12612
12613 else
12614   if test "$ac_cv_type_long_long" = yes; then
12615      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12617 as_fn_error 77 "cannot compute sizeof (long long)
12618 See \`config.log' for more details" "$LINENO" 5; }
12619    else
12620      ac_cv_sizeof_long_long=0
12621    fi
12622 fi
12623
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12626 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12627
12628
12629
12630 cat >>confdefs.h <<_ACEOF
12631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12632 _ACEOF
12633
12634
12635 # The cast to long int works around a bug in the HP C Compiler
12636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12638 # This bug is HP SR number 8606223364.
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12640 $as_echo_n "checking size of off_t... " >&6; }
12641 if ${ac_cv_sizeof_off_t+:} false; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12645
12646 else
12647   if test "$ac_cv_type_off_t" = yes; then
12648      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12650 as_fn_error 77 "cannot compute sizeof (off_t)
12651 See \`config.log' for more details" "$LINENO" 5; }
12652    else
12653      ac_cv_sizeof_off_t=0
12654    fi
12655 fi
12656
12657 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12659 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12660
12661
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12665 _ACEOF
12666
12667
12668 # The cast to long int works around a bug in the HP C Compiler
12669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12671 # This bug is HP SR number 8606223364.
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12673 $as_echo_n "checking size of time_t... " >&6; }
12674 if ${ac_cv_sizeof_time_t+:} false; then :
12675   $as_echo_n "(cached) " >&6
12676 else
12677   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12678
12679 else
12680   if test "$ac_cv_type_time_t" = yes; then
12681      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12683 as_fn_error 77 "cannot compute sizeof (time_t)
12684 See \`config.log' for more details" "$LINENO" 5; }
12685    else
12686      ac_cv_sizeof_time_t=0
12687    fi
12688 fi
12689
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12692 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12693
12694
12695
12696 cat >>confdefs.h <<_ACEOF
12697 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12698 _ACEOF
12699
12700
12701 SIZEOF_SHORT=$ac_cv_sizeof_short
12702 SIZEOF_INT=$ac_cv_sizeof_int
12703 SIZEOF_LONG=$ac_cv_sizeof_long
12704 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12705 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12706 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12707
12708
12709
12710
12711
12712
12713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12714 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12715 if ${ac_cv_c_bigendian+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   ac_cv_c_bigendian=unknown
12719     # See if we're dealing with a universal compiler.
12720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h.  */
12722 #ifndef __APPLE_CC__
12723                not a universal capable compiler
12724              #endif
12725              typedef int dummy;
12726
12727 _ACEOF
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729
12730         # Check for potential -arch flags.  It is not universal unless
12731         # there are at least two -arch flags with different values.
12732         ac_arch=
12733         ac_prev=
12734         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12735          if test -n "$ac_prev"; then
12736            case $ac_word in
12737              i?86 | x86_64 | ppc | ppc64)
12738                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12739                  ac_arch=$ac_word
12740                else
12741                  ac_cv_c_bigendian=universal
12742                  break
12743                fi
12744                ;;
12745            esac
12746            ac_prev=
12747          elif test "x$ac_word" = "x-arch"; then
12748            ac_prev=arch
12749          fi
12750        done
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753     if test $ac_cv_c_bigendian = unknown; then
12754       # See if sys/param.h defines the BYTE_ORDER macro.
12755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h.  */
12757 #include <sys/types.h>
12758              #include <sys/param.h>
12759
12760 int
12761 main ()
12762 {
12763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12764                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12765                      && LITTLE_ENDIAN)
12766               bogus endian macros
12767              #endif
12768
12769   ;
12770   return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774   # It does; now see whether it defined to BIG_ENDIAN or not.
12775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h.  */
12777 #include <sys/types.h>
12778                 #include <sys/param.h>
12779
12780 int
12781 main ()
12782 {
12783 #if BYTE_ORDER != BIG_ENDIAN
12784                  not big endian
12785                 #endif
12786
12787   ;
12788   return 0;
12789 }
12790 _ACEOF
12791 if ac_fn_c_try_compile "$LINENO"; then :
12792   ac_cv_c_bigendian=yes
12793 else
12794   ac_cv_c_bigendian=no
12795 fi
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799     fi
12800     if test $ac_cv_c_bigendian = unknown; then
12801       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804 #include <limits.h>
12805
12806 int
12807 main ()
12808 {
12809 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12810               bogus endian macros
12811              #endif
12812
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818   # It does; now see whether it defined to _BIG_ENDIAN or not.
12819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h.  */
12821 #include <limits.h>
12822
12823 int
12824 main ()
12825 {
12826 #ifndef _BIG_ENDIAN
12827                  not big endian
12828                 #endif
12829
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835   ac_cv_c_bigendian=yes
12836 else
12837   ac_cv_c_bigendian=no
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 fi
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842     fi
12843     if test $ac_cv_c_bigendian = unknown; then
12844       # Compile a test program.
12845       if test "$cross_compiling" = yes; then :
12846   # Try to guess by grepping values from an object file.
12847          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849 short int ascii_mm[] =
12850                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12851                 short int ascii_ii[] =
12852                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12853                 int use_ascii (int i) {
12854                   return ascii_mm[i] + ascii_ii[i];
12855                 }
12856                 short int ebcdic_ii[] =
12857                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12858                 short int ebcdic_mm[] =
12859                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12860                 int use_ebcdic (int i) {
12861                   return ebcdic_mm[i] + ebcdic_ii[i];
12862                 }
12863                 extern int foo;
12864
12865 int
12866 main ()
12867 {
12868 return use_ascii (foo) == use_ebcdic (foo);
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 if ac_fn_c_try_compile "$LINENO"; then :
12874   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12875               ac_cv_c_bigendian=yes
12876             fi
12877             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12878               if test "$ac_cv_c_bigendian" = unknown; then
12879                 ac_cv_c_bigendian=no
12880               else
12881                 # finding both strings is unlikely to happen, but who knows?
12882                 ac_cv_c_bigendian=unknown
12883               fi
12884             fi
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 else
12888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 int
12892 main ()
12893 {
12894
12895              /* Are we little or big endian?  From Harbison&Steele.  */
12896              union
12897              {
12898                long int l;
12899                char c[sizeof (long int)];
12900              } u;
12901              u.l = 1;
12902              return u.c[sizeof (long int) - 1] == 1;
12903
12904   ;
12905   return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_run "$LINENO"; then :
12909   ac_cv_c_bigendian=no
12910 else
12911   ac_cv_c_bigendian=yes
12912 fi
12913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12914   conftest.$ac_objext conftest.beam conftest.$ac_ext
12915 fi
12916
12917     fi
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12920 $as_echo "$ac_cv_c_bigendian" >&6; }
12921  case $ac_cv_c_bigendian in #(
12922    yes)
12923      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12924 ;; #(
12925    no)
12926       ;; #(
12927    universal)
12928
12929 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12930
12931      ;; #(
12932    *)
12933      as_fn_error $? "unknown endianness
12934  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12935  esac
12936
12937 if test $cross_compiling = no; then
12938   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12939 else
12940   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12941 fi
12942 ASM_TYPES_HEADER=./asm_types.h
12943
12944 echo "/* These defines are needed for the public ext2fs.h header file */" \
12945      > public_config.h
12946 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12947   uniq tmp_config.$$ >> public_config.h
12948 else
12949   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12950 fi
12951 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12952   uniq tmp_config.$$ >> public_config.h
12953 else
12954   echo "#undef WORDS_BIGENDIAN" >> public_config.h
12955 fi
12956 rm -f tmp_config.$$
12957 PUBLIC_CONFIG_HEADER=./public_config.h
12958
12959 for ac_header in inttypes.h
12960 do :
12961   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12962 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12963   cat >>confdefs.h <<_ACEOF
12964 #define HAVE_INTTYPES_H 1
12965 _ACEOF
12966
12967 fi
12968
12969 done
12970
12971 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12972 if test "x$ac_cv_type_intptr_t" = xyes; then :
12973
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_INTPTR_T 1
12976 _ACEOF
12977
12978
12979 fi
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12982 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12983 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12984   $as_echo_n "(cached) " >&6
12985 else
12986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h.  */
12988 #include <sys/stat.h>
12989 int
12990 main ()
12991 {
12992 struct stat stat; stat.st_flags = 0;
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998   e2fsprogs_cv_struct_st_flags=yes
12999 else
13000   e2fsprogs_cv_struct_st_flags=no
13001 fi
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 fi
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13006 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13007 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13009 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13010   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13011   $as_echo_n "(cached) " >&6
13012 else
13013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h.  */
13015 #include <sys/stat.h>
13016 int
13017 main ()
13018 {
13019 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 if ac_fn_c_try_compile "$LINENO"; then :
13025   e2fsprogs_cv_struct_st_flags_immut=yes
13026 else
13027   e2fsprogs_cv_struct_st_flags_immut=no
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 fi
13031
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13033 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13034   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13035
13036 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13037
13038   fi
13039 fi
13040 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13041          #include <sys/socket.h>
13042 "
13043 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13044
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_SA_LEN 1
13047 _ACEOF
13048
13049 fi
13050
13051 if test -n "$BLKID_CMT"; then
13052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13053 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13054 if ${ac_cv_search_blkid_probe_all+:} false; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   ac_func_search_save_LIBS=$LIBS
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h.  */
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062    Use char because int might match the return type of a GCC
13063    builtin and then its argument prototype would still apply.  */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char blkid_probe_all ();
13068 int
13069 main ()
13070 {
13071 return blkid_probe_all ();
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 for ac_lib in '' blkid; do
13077   if test -z "$ac_lib"; then
13078     ac_res="none required"
13079   else
13080     ac_res=-l$ac_lib
13081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13082   fi
13083   if ac_fn_c_try_link "$LINENO"; then :
13084   ac_cv_search_blkid_probe_all=$ac_res
13085 fi
13086 rm -f core conftest.err conftest.$ac_objext \
13087     conftest$ac_exeext
13088   if ${ac_cv_search_blkid_probe_all+:} false; then :
13089   break
13090 fi
13091 done
13092 if ${ac_cv_search_blkid_probe_all+:} false; then :
13093
13094 else
13095   ac_cv_search_blkid_probe_all=no
13096 fi
13097 rm conftest.$ac_ext
13098 LIBS=$ac_func_search_save_LIBS
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13101 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13102 ac_res=$ac_cv_search_blkid_probe_all
13103 if test "$ac_res" != no; then :
13104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13105
13106 fi
13107
13108 fi
13109 if test -n "$DLOPEN_LIB" ; then
13110    ac_cv_func_dlopen=yes
13111 fi
13112 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
13113 do :
13114   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13117   cat >>confdefs.h <<_ACEOF
13118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 _ACEOF
13120
13121 fi
13122 done
13123
13124 SOCKET_LIB=''
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13126 $as_echo_n "checking for socket in -lsocket... " >&6; }
13127 if ${ac_cv_lib_socket_socket+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lsocket  $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h.  */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136    Use char because int might match the return type of a GCC
13137    builtin and then its argument prototype would still apply.  */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char socket ();
13142 int
13143 main ()
13144 {
13145 return socket ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151   ac_cv_lib_socket_socket=yes
13152 else
13153   ac_cv_lib_socket_socket=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156     conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13160 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13161 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13162   SOCKET_LIB=-lsocket
13163 fi
13164
13165
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13167 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13168 if ${ac_cv_lib_magic_magic_file+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lmagic  $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char magic_file ();
13183 int
13184 main ()
13185 {
13186 return magic_file ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 if ac_fn_c_try_link "$LINENO"; then :
13192   ac_cv_lib_magic_magic_file=yes
13193 else
13194   ac_cv_lib_magic_magic_file=no
13195 fi
13196 rm -f core conftest.err conftest.$ac_objext \
13197     conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13199 fi
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13201 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13202 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13203   MAGIC_LIB=-lmagic
13204 for ac_header in magic.h
13205 do :
13206   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13207 if test "x$ac_cv_header_magic_h" = xyes; then :
13208   cat >>confdefs.h <<_ACEOF
13209 #define HAVE_MAGIC_H 1
13210 _ACEOF
13211
13212 fi
13213
13214 done
13215
13216 fi
13217
13218 if test "$ac_cv_func_dlopen" = yes ; then
13219    MAGIC_LIB=$DLOPEN_LIB
13220 fi
13221
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13223 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13224 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   ac_check_lib_save_LIBS=$LIBS
13228 LIBS="-lrt  $LIBS"
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h.  */
13231
13232 /* Override any GCC internal prototype to avoid an error.
13233    Use char because int might match the return type of a GCC
13234    builtin and then its argument prototype would still apply.  */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char clock_gettime ();
13239 int
13240 main ()
13241 {
13242 return clock_gettime ();
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"; then :
13248   ac_cv_lib_rt_clock_gettime=yes
13249 else
13250   ac_cv_lib_rt_clock_gettime=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext \
13253     conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13255 fi
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13257 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13258 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13259   CLOCK_GETTIME_LIB=-lrt
13260 fi
13261
13262
13263 FUSE_CMT=
13264 FUSE_LIB=
13265 # Check whether --enable-fuse2fs was given.
13266 if test "${enable_fuse2fs+set}" = set; then :
13267   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13268 then
13269         FUSE_CMT="#"
13270         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13271 $as_echo "Disabling fuse2fs" >&6; }
13272 else
13273         for ac_header in pthread.h fuse.h
13274 do :
13275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13277 #define FUSE_USE_VERSION 29
13278 "
13279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13280   cat >>confdefs.h <<_ACEOF
13281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13282 _ACEOF
13283
13284 else
13285   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $? "Cannot find fuse2fs headers.
13288 See \`config.log' for more details" "$LINENO" 5; }
13289 fi
13290
13291 done
13292
13293
13294         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h.  */
13296 #define FUSE_USE_VERSION 29
13297 #ifdef __linux__
13298 #include <linux/fs.h>
13299 #include <linux/falloc.h>
13300 #include <linux/xattr.h>
13301 #endif
13302
13303 int
13304 main ()
13305 {
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_cpp "$LINENO"; then :
13312
13313 else
13314   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13316 as_fn_error $? "Cannot find fuse2fs Linux headers.
13317 See \`config.log' for more details" "$LINENO" 5; }
13318 fi
13319 rm -f conftest.err conftest.i conftest.$ac_ext
13320
13321         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13322 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13323 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-losxfuse  $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h.  */
13330
13331 /* Override any GCC internal prototype to avoid an error.
13332    Use char because int might match the return type of a GCC
13333    builtin and then its argument prototype would still apply.  */
13334 #ifdef __cplusplus
13335 extern "C"
13336 #endif
13337 char fuse_main ();
13338 int
13339 main ()
13340 {
13341 return fuse_main ();
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_link "$LINENO"; then :
13347   ac_cv_lib_osxfuse_fuse_main=yes
13348 else
13349   ac_cv_lib_osxfuse_fuse_main=no
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext \
13352     conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13356 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13357 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13358   FUSE_LIB=-losxfuse
13359 else
13360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13361 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13362 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13363   $as_echo_n "(cached) " >&6
13364 else
13365   ac_check_lib_save_LIBS=$LIBS
13366 LIBS="-lfuse  $LIBS"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h.  */
13369
13370 /* Override any GCC internal prototype to avoid an error.
13371    Use char because int might match the return type of a GCC
13372    builtin and then its argument prototype would still apply.  */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 char fuse_main ();
13377 int
13378 main ()
13379 {
13380 return fuse_main ();
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_link "$LINENO"; then :
13386   ac_cv_lib_fuse_fuse_main=yes
13387 else
13388   ac_cv_lib_fuse_fuse_main=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext \
13391     conftest$ac_exeext conftest.$ac_ext
13392 LIBS=$ac_check_lib_save_LIBS
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13395 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13396 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13397   FUSE_LIB=-lfuse
13398 else
13399   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13401 as_fn_error $? "Cannot find fuse library.
13402 See \`config.log' for more details" "$LINENO" 5; }
13403 fi
13404
13405 fi
13406
13407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13408 $as_echo "Enabling fuse2fs" >&6; }
13409 fi
13410
13411 else
13412   for ac_header in pthread.h fuse.h
13413 do :
13414   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13416 #define FUSE_USE_VERSION 29
13417 #ifdef __linux__
13418 # include <linux/fs.h>
13419 # include <linux/falloc.h>
13420 # include <linux/xattr.h>
13421 #endif
13422 "
13423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13424   cat >>confdefs.h <<_ACEOF
13425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13426 _ACEOF
13427
13428 else
13429   FUSE_CMT="#"
13430 fi
13431
13432 done
13433
13434 if test -z "$FUSE_CMT"
13435 then
13436         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13437 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13438 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-losxfuse  $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h.  */
13445
13446 /* Override any GCC internal prototype to avoid an error.
13447    Use char because int might match the return type of a GCC
13448    builtin and then its argument prototype would still apply.  */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char fuse_main ();
13453 int
13454 main ()
13455 {
13456 return fuse_main ();
13457   ;
13458   return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462   ac_cv_lib_osxfuse_fuse_main=yes
13463 else
13464   ac_cv_lib_osxfuse_fuse_main=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467     conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13471 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13472 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13473   FUSE_LIB=-losxfuse
13474 else
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13476 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13477 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13478   $as_echo_n "(cached) " >&6
13479 else
13480   ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-lfuse  $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h.  */
13484
13485 /* Override any GCC internal prototype to avoid an error.
13486    Use char because int might match the return type of a GCC
13487    builtin and then its argument prototype would still apply.  */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 char fuse_main ();
13492 int
13493 main ()
13494 {
13495 return fuse_main ();
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501   ac_cv_lib_fuse_fuse_main=yes
13502 else
13503   ac_cv_lib_fuse_fuse_main=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext \
13506     conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13510 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13511 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13512   FUSE_LIB=-lfuse
13513 else
13514   FUSE_CMT="#"
13515 fi
13516
13517 fi
13518
13519 fi
13520 if test -z "$FUSE_CMT"
13521 then
13522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13523 $as_echo "Enabling fuse2fs by default." >&6; }
13524 fi
13525
13526 fi
13527
13528
13529
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13531 $as_echo_n "checking for optreset... " >&6; }
13532 if ${ac_cv_have_optreset+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h.  */
13537 #include <unistd.h>
13538
13539 _ACEOF
13540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13541   $EGREP "optreset" >/dev/null 2>&1; then :
13542   ac_cv_have_optreset=yes
13543 else
13544   ac_cv_have_optreset=no
13545 fi
13546 rm -f conftest*
13547
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13550 $as_echo "$ac_cv_have_optreset" >&6; }
13551 if test $ac_cv_have_optreset = yes; then
13552
13553 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13554
13555 fi
13556
13557 SEM_INIT_LIB=''
13558 echo GL_THREADS_API: ${gl_threads_api}
13559 if test "${gl_threads_api}" != none
13560 then
13561   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13562 if test "x$ac_cv_func_sem_init" = xyes; then :
13563
13564 else
13565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13566 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13567 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13568   $as_echo_n "(cached) " >&6
13569 else
13570   ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-lpthread  $LIBS"
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h.  */
13574
13575 /* Override any GCC internal prototype to avoid an error.
13576    Use char because int might match the return type of a GCC
13577    builtin and then its argument prototype would still apply.  */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 char sem_init ();
13582 int
13583 main ()
13584 {
13585 return sem_init ();
13586   ;
13587   return 0;
13588 }
13589 _ACEOF
13590 if ac_fn_c_try_link "$LINENO"; then :
13591   ac_cv_lib_pthread_sem_init=yes
13592 else
13593   ac_cv_lib_pthread_sem_init=no
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext \
13596     conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13600 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13601 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13602   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13603
13604         SEM_INIT_LIB=-lpthread
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13607 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13608 if ${ac_cv_lib_rt_sem_init+:} false; then :
13609   $as_echo_n "(cached) " >&6
13610 else
13611   ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lrt  $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615
13616 /* Override any GCC internal prototype to avoid an error.
13617    Use char because int might match the return type of a GCC
13618    builtin and then its argument prototype would still apply.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char sem_init ();
13623 int
13624 main ()
13625 {
13626 return sem_init ();
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_link "$LINENO"; then :
13632   ac_cv_lib_rt_sem_init=yes
13633 else
13634   ac_cv_lib_rt_sem_init=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637     conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13641 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13642 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13643   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13644
13645         SEM_INIT_LIB=-lrt
13646 else
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13648 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13649 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lposix4  $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h.  */
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char sem_init ();
13664 int
13665 main ()
13666 {
13667 return sem_init ();
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673   ac_cv_lib_posix4_sem_init=yes
13674 else
13675   ac_cv_lib_posix4_sem_init=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext \
13678     conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13682 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13683 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13684   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13685
13686         SEM_INIT_LIB=-lposix4
13687 fi
13688
13689 fi
13690
13691 fi
13692
13693 fi
13694 fi
13695
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13697 $as_echo_n "checking for unified diff option... " >&6; }
13698 if diff -u $0 $0 > /dev/null 2>&1 ; then
13699    UNI_DIFF_OPTS=-u
13700 else
13701    UNI_DIFF_OPTS=-c
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13704 $as_echo "$UNI_DIFF_OPTS" >&6; }
13705
13706 case "$host_os" in
13707 linux*)
13708
13709 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13710
13711         ;;
13712 esac
13713 LINUX_CMT="#"
13714 CYGWIN_CMT="#"
13715 UNIX_CMT=
13716 case "$host_os" in
13717 linux*)
13718         LINUX_CMT=
13719         ;;
13720 cygwin)
13721         CYGWIN_CMT=
13722         UNIX_CMT="#"
13723         ;;
13724 esac
13725
13726
13727
13728 E2SCRUB_CMT="$LINUX_CMT"
13729
13730 case "$host_os" in
13731 linux* | gnu* | k*bsd*-gnu)
13732         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13733                 root_prefix="";
13734                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13735 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13736         fi
13737         ;;
13738 esac
13739 case "$host_os" in
13740 linux* | gnu* | k*bsd*-gnu)
13741         if test "$prefix" = NONE ; then
13742                 prefix="/usr";
13743                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13744 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13745                 if test "$mandir" = '${prefix}/man' ; then
13746                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13747 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13748                         mandir=/usr/share/man
13749                 fi
13750         fi
13751 ;;
13752 esac
13753 if test "$root_prefix" = NONE ; then
13754         if test "$prefix" = NONE ; then
13755                 root_prefix="$ac_default_prefix"
13756         else
13757                 root_prefix="$prefix"
13758         fi
13759         root_bindir=$bindir
13760         root_sbindir=$sbindir
13761         root_libdir=$libdir
13762         root_sysconfdir=$sysconfdir
13763 else
13764         root_bindir='${root_prefix}/bin'
13765         root_sbindir='${root_prefix}/sbin'
13766         root_libdir='${root_prefix}/lib'
13767         root_sysconfdir='${root_prefix}/etc'
13768 fi
13769 if test "$bindir" != '${exec_prefix}/bin'; then
13770     root_bindir=$bindir
13771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13772 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13773 fi
13774 if test "$sbindir" != '${exec_prefix}/sbin'; then
13775     root_sbindir=$sbindir
13776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13777 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13778 fi
13779 if test "$libdir" != '${exec_prefix}/lib'; then
13780     root_libdir=$libdir
13781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13782 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13783 fi
13784 if test "$sysconfdir" != '${prefix}/etc'; then
13785     root_sysconfdir=$sysconfdir
13786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13787 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13788 fi
13789
13790
13791
13792
13793
13794
13795 # Check whether --with-multiarch was given.
13796 if test "${with_multiarch+set}" = set; then :
13797   withval=$with_multiarch; if test "$withval" = "lib64"; then
13798     libdir=/usr/lib64
13799     root_libdir=/lib64
13800 else
13801     libdir=$libdir/$withval
13802     root_libdir=$root_libdir/$withval
13803 fi
13804
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13807 $as_echo_n "checking whether we can link with -static... " >&6; }
13808 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13809   $as_echo_n "(cached) " >&6
13810 else
13811   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h.  */
13814 #include <stdio.h>
13815 int
13816 main ()
13817 {
13818 fflush(stdout);
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824   ac_cv_e2fsprogs_use_static=yes
13825 else
13826   ac_cv_e2fsprogs_use_static=no
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext \
13829     conftest$ac_exeext conftest.$ac_ext
13830 LDFLAGS=$SAVE_LDFLAGS
13831 fi
13832
13833 case "$host_os" in
13834 solaris2.*)
13835         ac_cv_e2fsprogs_use_static=no
13836 ;;
13837 esac
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13839 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13840 if test $ac_cv_e2fsprogs_use_static = yes; then
13841         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13842 fi
13843
13844 case "$host_os" in
13845 darwin*)
13846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13847 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13848
13849 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13850
13851         ;;
13852 esac
13853 if test "$cross_compiling" = yes ; then
13854   DO_TEST_SUITE=
13855 else
13856   DO_TEST_SUITE=check
13857 fi
13858
13859 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13860 if test -n "$CPPFLAGS" ; then
13861         INCLUDES="$INCLUDES $CPPFLAGS"
13862 fi
13863 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13864         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13865 fi
13866 if test -n "$WITH_DIET_LIBC" ; then
13867         INCLUDES="$INCLUDES -D_REENTRANT"
13868 fi
13869
13870
13871         MKINSTALLDIRS=
13872   if test -n "$ac_aux_dir"; then
13873     case "$ac_aux_dir" in
13874       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13875       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13876     esac
13877   fi
13878   if test -z "$MKINSTALLDIRS"; then
13879     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13880   fi
13881
13882
13883 if test $cross_compiling = no; then
13884    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13885    BUILD_LDFLAGS="$LDFLAGS"
13886 fi
13887
13888
13889 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13890 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13891 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13892
13893
13894
13895
13896
13897 # Check whether --with-udev_rules_dir was given.
13898 if test "${with_udev_rules_dir+set}" = set; then :
13899   withval=$with_udev_rules_dir;
13900 else
13901   with_udev_rules_dir=yes
13902 fi
13903
13904 if test "x${with_udev_rules_dir}" != "xno"; then :
13905
13906         if test "x${with_udev_rules_dir}" = "xyes"; then :
13907
13908
13909 pkg_failed=no
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
13911 $as_echo_n "checking for udev... " >&6; }
13912
13913 if test -n "$udev_CFLAGS"; then
13914     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
13915  elif test -n "$PKG_CONFIG"; then
13916     if test -n "$PKG_CONFIG" && \
13917     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13918   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13919   ac_status=$?
13920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921   test $ac_status = 0; }; then
13922   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
13923                       test "x$?" != "x0" && pkg_failed=yes
13924 else
13925   pkg_failed=yes
13926 fi
13927  else
13928     pkg_failed=untried
13929 fi
13930 if test -n "$udev_LIBS"; then
13931     pkg_cv_udev_LIBS="$udev_LIBS"
13932  elif test -n "$PKG_CONFIG"; then
13933     if test -n "$PKG_CONFIG" && \
13934     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13935   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13936   ac_status=$?
13937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938   test $ac_status = 0; }; then
13939   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
13940                       test "x$?" != "x0" && pkg_failed=yes
13941 else
13942   pkg_failed=yes
13943 fi
13944  else
13945     pkg_failed=untried
13946 fi
13947
13948
13949
13950 if test $pkg_failed = yes; then
13951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13953
13954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13955         _pkg_short_errors_supported=yes
13956 else
13957         _pkg_short_errors_supported=no
13958 fi
13959         if test $_pkg_short_errors_supported = yes; then
13960                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
13961         else
13962                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
13963         fi
13964         # Put the nasty error message in config.log where it belongs
13965         echo "$udev_PKG_ERRORS" >&5
13966
13967
13968                         with_udev_rules_dir=""
13969
13970 elif test $pkg_failed = untried; then
13971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973
13974                         with_udev_rules_dir=""
13975
13976 else
13977         udev_CFLAGS=$pkg_cv_udev_CFLAGS
13978         udev_LIBS=$pkg_cv_udev_LIBS
13979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13980 $as_echo "yes" >&6; }
13981
13982                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
13983
13984 fi
13985
13986 fi
13987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
13988 $as_echo_n "checking for udev rules dir... " >&6; }
13989         pkg_udev_rules_dir="${with_udev_rules_dir}"
13990         if test -n "${pkg_udev_rules_dir}"; then :
13991
13992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
13993 $as_echo "${pkg_udev_rules_dir}" >&6; }
13994                 have_udev="yes"
13995
13996 else
13997
13998                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14000                 have_udev="no"
14001
14002 fi
14003
14004 else
14005
14006         have_udev="disabled"
14007
14008 fi
14009
14010
14011
14012 test -d lib || mkdir lib
14013 test -d include || mkdir include
14014 test -d include/linux || mkdir include/linux
14015 test -d include/asm || mkdir include/asm
14016 if test -z "$UUID_CMT" ; then
14017         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14018                 lib/uuid/uuid_types.h"
14019 fi
14020 if test -z "$BLKID_CMT" ; then
14021         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14022                 lib/blkid/blkid_types.h"
14023 fi
14024 for i in MCONFIG Makefile e2fsprogs.spec \
14025         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14026         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14027         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14028         $uuid_out_list $blkid_out_list lib/support/Makefile \
14029         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14030         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14031         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14032         resize/Makefile doc/Makefile intl/Makefile \
14033         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14034         if test -d `dirname ${srcdir}/$i` ; then
14035                 outlist="$outlist $i"
14036         fi
14037 done
14038 ac_config_files="$ac_config_files $outlist"
14039
14040 cat >confcache <<\_ACEOF
14041 # This file is a shell script that caches the results of configure
14042 # tests run on this system so they can be shared between configure
14043 # scripts and configure runs, see configure's option --config-cache.
14044 # It is not useful on other systems.  If it contains results you don't
14045 # want to keep, you may remove or edit it.
14046 #
14047 # config.status only pays attention to the cache file if you give it
14048 # the --recheck option to rerun configure.
14049 #
14050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14052 # following values.
14053
14054 _ACEOF
14055
14056 # The following way of writing the cache mishandles newlines in values,
14057 # but we know of no workaround that is simple, portable, and efficient.
14058 # So, we kill variables containing newlines.
14059 # Ultrix sh set writes to stderr and can't be redirected directly,
14060 # and sets the high bit in the cache file unless we assign to the vars.
14061 (
14062   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14063     eval ac_val=\$$ac_var
14064     case $ac_val in #(
14065     *${as_nl}*)
14066       case $ac_var in #(
14067       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14069       esac
14070       case $ac_var in #(
14071       _ | IFS | as_nl) ;; #(
14072       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14073       *) { eval $ac_var=; unset $ac_var;} ;;
14074       esac ;;
14075     esac
14076   done
14077
14078   (set) 2>&1 |
14079     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14080     *${as_nl}ac_space=\ *)
14081       # `set' does not quote correctly, so add quotes: double-quote
14082       # substitution turns \\\\ into \\, and sed turns \\ into \.
14083       sed -n \
14084         "s/'/'\\\\''/g;
14085           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14086       ;; #(
14087     *)
14088       # `set' quotes correctly as required by POSIX, so do not add quotes.
14089       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14090       ;;
14091     esac |
14092     sort
14093 ) |
14094   sed '
14095      /^ac_cv_env_/b end
14096      t clear
14097      :clear
14098      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14099      t end
14100      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14101      :end' >>confcache
14102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14103   if test -w "$cache_file"; then
14104     if test "x$cache_file" != "x/dev/null"; then
14105       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14106 $as_echo "$as_me: updating cache $cache_file" >&6;}
14107       if test ! -f "$cache_file" || test -h "$cache_file"; then
14108         cat confcache >"$cache_file"
14109       else
14110         case $cache_file in #(
14111         */* | ?:*)
14112           mv -f confcache "$cache_file"$$ &&
14113           mv -f "$cache_file"$$ "$cache_file" ;; #(
14114         *)
14115           mv -f confcache "$cache_file" ;;
14116         esac
14117       fi
14118     fi
14119   else
14120     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14121 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14122   fi
14123 fi
14124 rm -f confcache
14125
14126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14127 # Let make expand exec_prefix.
14128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14129
14130 DEFS=-DHAVE_CONFIG_H
14131
14132 ac_libobjs=
14133 ac_ltlibobjs=
14134 U=
14135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14136   # 1. Remove the extension, and $U if already installed.
14137   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14138   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14139   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14140   #    will be set to the directory where LIBOBJS objects are built.
14141   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14142   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14143 done
14144 LIBOBJS=$ac_libobjs
14145
14146 LTLIBOBJS=$ac_ltlibobjs
14147
14148
14149
14150
14151 : "${CONFIG_STATUS=./config.status}"
14152 ac_write_fail=0
14153 ac_clean_files_save=$ac_clean_files
14154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14156 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14157 as_write_fail=0
14158 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14159 #! $SHELL
14160 # Generated by $as_me.
14161 # Run this file to recreate the current configuration.
14162 # Compiler output produced by configure, useful for debugging
14163 # configure, is in config.log if it exists.
14164
14165 debug=false
14166 ac_cs_recheck=false
14167 ac_cs_silent=false
14168
14169 SHELL=\${CONFIG_SHELL-$SHELL}
14170 export SHELL
14171 _ASEOF
14172 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14173 ## -------------------- ##
14174 ## M4sh Initialization. ##
14175 ## -------------------- ##
14176
14177 # Be more Bourne compatible
14178 DUALCASE=1; export DUALCASE # for MKS sh
14179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14180   emulate sh
14181   NULLCMD=:
14182   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14183   # is contrary to our usage.  Disable this feature.
14184   alias -g '${1+"$@"}'='"$@"'
14185   setopt NO_GLOB_SUBST
14186 else
14187   case `(set -o) 2>/dev/null` in #(
14188   *posix*) :
14189     set -o posix ;; #(
14190   *) :
14191      ;;
14192 esac
14193 fi
14194
14195
14196 as_nl='
14197 '
14198 export as_nl
14199 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14200 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14202 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14203 # Prefer a ksh shell builtin over an external printf program on Solaris,
14204 # but without wasting forks for bash or zsh.
14205 if test -z "$BASH_VERSION$ZSH_VERSION" \
14206     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14207   as_echo='print -r --'
14208   as_echo_n='print -rn --'
14209 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14210   as_echo='printf %s\n'
14211   as_echo_n='printf %s'
14212 else
14213   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14214     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14215     as_echo_n='/usr/ucb/echo -n'
14216   else
14217     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14218     as_echo_n_body='eval
14219       arg=$1;
14220       case $arg in #(
14221       *"$as_nl"*)
14222         expr "X$arg" : "X\\(.*\\)$as_nl";
14223         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14224       esac;
14225       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14226     '
14227     export as_echo_n_body
14228     as_echo_n='sh -c $as_echo_n_body as_echo'
14229   fi
14230   export as_echo_body
14231   as_echo='sh -c $as_echo_body as_echo'
14232 fi
14233
14234 # The user is always right.
14235 if test "${PATH_SEPARATOR+set}" != set; then
14236   PATH_SEPARATOR=:
14237   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14238     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14239       PATH_SEPARATOR=';'
14240   }
14241 fi
14242
14243
14244 # IFS
14245 # We need space, tab and new line, in precisely that order.  Quoting is
14246 # there to prevent editors from complaining about space-tab.
14247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14248 # splitting by setting IFS to empty value.)
14249 IFS=" ""        $as_nl"
14250
14251 # Find who we are.  Look in the path if we contain no directory separator.
14252 as_myself=
14253 case $0 in #((
14254   *[\\/]* ) as_myself=$0 ;;
14255   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14257 do
14258   IFS=$as_save_IFS
14259   test -z "$as_dir" && as_dir=.
14260     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14261   done
14262 IFS=$as_save_IFS
14263
14264      ;;
14265 esac
14266 # We did not find ourselves, most probably we were run as `sh COMMAND'
14267 # in which case we are not to be found in the path.
14268 if test "x$as_myself" = x; then
14269   as_myself=$0
14270 fi
14271 if test ! -f "$as_myself"; then
14272   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14273   exit 1
14274 fi
14275
14276 # Unset variables that we do not need and which cause bugs (e.g. in
14277 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14278 # suppresses any "Segmentation fault" message there.  '((' could
14279 # trigger a bug in pdksh 5.2.14.
14280 for as_var in BASH_ENV ENV MAIL MAILPATH
14281 do eval test x\${$as_var+set} = xset \
14282   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14283 done
14284 PS1='$ '
14285 PS2='> '
14286 PS4='+ '
14287
14288 # NLS nuisances.
14289 LC_ALL=C
14290 export LC_ALL
14291 LANGUAGE=C
14292 export LANGUAGE
14293
14294 # CDPATH.
14295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14296
14297
14298 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14299 # ----------------------------------------
14300 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14301 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14302 # script with STATUS, using 1 if that was 0.
14303 as_fn_error ()
14304 {
14305   as_status=$1; test $as_status -eq 0 && as_status=1
14306   if test "$4"; then
14307     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14308     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14309   fi
14310   $as_echo "$as_me: error: $2" >&2
14311   as_fn_exit $as_status
14312 } # as_fn_error
14313
14314
14315 # as_fn_set_status STATUS
14316 # -----------------------
14317 # Set $? to STATUS, without forking.
14318 as_fn_set_status ()
14319 {
14320   return $1
14321 } # as_fn_set_status
14322
14323 # as_fn_exit STATUS
14324 # -----------------
14325 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14326 as_fn_exit ()
14327 {
14328   set +e
14329   as_fn_set_status $1
14330   exit $1
14331 } # as_fn_exit
14332
14333 # as_fn_unset VAR
14334 # ---------------
14335 # Portably unset VAR.
14336 as_fn_unset ()
14337 {
14338   { eval $1=; unset $1;}
14339 }
14340 as_unset=as_fn_unset
14341 # as_fn_append VAR VALUE
14342 # ----------------------
14343 # Append the text in VALUE to the end of the definition contained in VAR. Take
14344 # advantage of any shell optimizations that allow amortized linear growth over
14345 # repeated appends, instead of the typical quadratic growth present in naive
14346 # implementations.
14347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14348   eval 'as_fn_append ()
14349   {
14350     eval $1+=\$2
14351   }'
14352 else
14353   as_fn_append ()
14354   {
14355     eval $1=\$$1\$2
14356   }
14357 fi # as_fn_append
14358
14359 # as_fn_arith ARG...
14360 # ------------------
14361 # Perform arithmetic evaluation on the ARGs, and store the result in the
14362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14363 # must be portable across $(()) and expr.
14364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14365   eval 'as_fn_arith ()
14366   {
14367     as_val=$(( $* ))
14368   }'
14369 else
14370   as_fn_arith ()
14371   {
14372     as_val=`expr "$@" || test $? -eq 1`
14373   }
14374 fi # as_fn_arith
14375
14376
14377 if expr a : '\(a\)' >/dev/null 2>&1 &&
14378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14379   as_expr=expr
14380 else
14381   as_expr=false
14382 fi
14383
14384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14385   as_basename=basename
14386 else
14387   as_basename=false
14388 fi
14389
14390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14391   as_dirname=dirname
14392 else
14393   as_dirname=false
14394 fi
14395
14396 as_me=`$as_basename -- "$0" ||
14397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14398          X"$0" : 'X\(//\)$' \| \
14399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14400 $as_echo X/"$0" |
14401     sed '/^.*\/\([^/][^/]*\)\/*$/{
14402             s//\1/
14403             q
14404           }
14405           /^X\/\(\/\/\)$/{
14406             s//\1/
14407             q
14408           }
14409           /^X\/\(\/\).*/{
14410             s//\1/
14411             q
14412           }
14413           s/.*/./; q'`
14414
14415 # Avoid depending upon Character Ranges.
14416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14419 as_cr_digits='0123456789'
14420 as_cr_alnum=$as_cr_Letters$as_cr_digits
14421
14422 ECHO_C= ECHO_N= ECHO_T=
14423 case `echo -n x` in #(((((
14424 -n*)
14425   case `echo 'xy\c'` in
14426   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14427   xy)  ECHO_C='\c';;
14428   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14429        ECHO_T=' ';;
14430   esac;;
14431 *)
14432   ECHO_N='-n';;
14433 esac
14434
14435 rm -f conf$$ conf$$.exe conf$$.file
14436 if test -d conf$$.dir; then
14437   rm -f conf$$.dir/conf$$.file
14438 else
14439   rm -f conf$$.dir
14440   mkdir conf$$.dir 2>/dev/null
14441 fi
14442 if (echo >conf$$.file) 2>/dev/null; then
14443   if ln -s conf$$.file conf$$ 2>/dev/null; then
14444     as_ln_s='ln -s'
14445     # ... but there are two gotchas:
14446     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14447     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14448     # In both cases, we have to default to `cp -pR'.
14449     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14450       as_ln_s='cp -pR'
14451   elif ln conf$$.file conf$$ 2>/dev/null; then
14452     as_ln_s=ln
14453   else
14454     as_ln_s='cp -pR'
14455   fi
14456 else
14457   as_ln_s='cp -pR'
14458 fi
14459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14460 rmdir conf$$.dir 2>/dev/null
14461
14462
14463 # as_fn_mkdir_p
14464 # -------------
14465 # Create "$as_dir" as a directory, including parents if necessary.
14466 as_fn_mkdir_p ()
14467 {
14468
14469   case $as_dir in #(
14470   -*) as_dir=./$as_dir;;
14471   esac
14472   test -d "$as_dir" || eval $as_mkdir_p || {
14473     as_dirs=
14474     while :; do
14475       case $as_dir in #(
14476       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14477       *) as_qdir=$as_dir;;
14478       esac
14479       as_dirs="'$as_qdir' $as_dirs"
14480       as_dir=`$as_dirname -- "$as_dir" ||
14481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14482          X"$as_dir" : 'X\(//\)[^/]' \| \
14483          X"$as_dir" : 'X\(//\)$' \| \
14484          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14485 $as_echo X"$as_dir" |
14486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14487             s//\1/
14488             q
14489           }
14490           /^X\(\/\/\)[^/].*/{
14491             s//\1/
14492             q
14493           }
14494           /^X\(\/\/\)$/{
14495             s//\1/
14496             q
14497           }
14498           /^X\(\/\).*/{
14499             s//\1/
14500             q
14501           }
14502           s/.*/./; q'`
14503       test -d "$as_dir" && break
14504     done
14505     test -z "$as_dirs" || eval "mkdir $as_dirs"
14506   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14507
14508
14509 } # as_fn_mkdir_p
14510 if mkdir -p . 2>/dev/null; then
14511   as_mkdir_p='mkdir -p "$as_dir"'
14512 else
14513   test -d ./-p && rmdir ./-p
14514   as_mkdir_p=false
14515 fi
14516
14517
14518 # as_fn_executable_p FILE
14519 # -----------------------
14520 # Test if FILE is an executable regular file.
14521 as_fn_executable_p ()
14522 {
14523   test -f "$1" && test -x "$1"
14524 } # as_fn_executable_p
14525 as_test_x='test -x'
14526 as_executable_p=as_fn_executable_p
14527
14528 # Sed expression to map a string onto a valid CPP name.
14529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14530
14531 # Sed expression to map a string onto a valid variable name.
14532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14533
14534
14535 exec 6>&1
14536 ## ----------------------------------- ##
14537 ## Main body of $CONFIG_STATUS script. ##
14538 ## ----------------------------------- ##
14539 _ASEOF
14540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14541
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14543 # Save the log message, to keep $0 and so on meaningful, and to
14544 # report actual input values of CONFIG_FILES etc. instead of their
14545 # values after options handling.
14546 ac_log="
14547 This file was extended by $as_me, which was
14548 generated by GNU Autoconf 2.69.  Invocation command line was
14549
14550   CONFIG_FILES    = $CONFIG_FILES
14551   CONFIG_HEADERS  = $CONFIG_HEADERS
14552   CONFIG_LINKS    = $CONFIG_LINKS
14553   CONFIG_COMMANDS = $CONFIG_COMMANDS
14554   $ $0 $@
14555
14556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14557 "
14558
14559 _ACEOF
14560
14561 case $ac_config_files in *"
14562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14563 esac
14564
14565 case $ac_config_headers in *"
14566 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14567 esac
14568
14569
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 # Files that config.status was made for.
14572 config_files="$ac_config_files"
14573 config_headers="$ac_config_headers"
14574 config_commands="$ac_config_commands"
14575
14576 _ACEOF
14577
14578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14579 ac_cs_usage="\
14580 \`$as_me' instantiates files and other configuration actions
14581 from templates according to the current configuration.  Unless the files
14582 and actions are specified as TAGs, all are instantiated by default.
14583
14584 Usage: $0 [OPTION]... [TAG]...
14585
14586   -h, --help       print this help, then exit
14587   -V, --version    print version number and configuration settings, then exit
14588       --config     print configuration, then exit
14589   -q, --quiet, --silent
14590                    do not print progress messages
14591   -d, --debug      don't remove temporary files
14592       --recheck    update $as_me by reconfiguring in the same conditions
14593       --file=FILE[:TEMPLATE]
14594                    instantiate the configuration file FILE
14595       --header=FILE[:TEMPLATE]
14596                    instantiate the configuration header FILE
14597
14598 Configuration files:
14599 $config_files
14600
14601 Configuration headers:
14602 $config_headers
14603
14604 Configuration commands:
14605 $config_commands
14606
14607 Report bugs to the package provider."
14608
14609 _ACEOF
14610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14612 ac_cs_version="\\
14613 config.status
14614 configured by $0, generated by GNU Autoconf 2.69,
14615   with options \\"\$ac_cs_config\\"
14616
14617 Copyright (C) 2012 Free Software Foundation, Inc.
14618 This config.status script is free software; the Free Software Foundation
14619 gives unlimited permission to copy, distribute and modify it."
14620
14621 ac_pwd='$ac_pwd'
14622 srcdir='$srcdir'
14623 INSTALL='$INSTALL'
14624 MKDIR_P='$MKDIR_P'
14625 AWK='$AWK'
14626 test -n "\$AWK" || AWK=awk
14627 _ACEOF
14628
14629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14630 # The default lists apply if the user does not specify any file.
14631 ac_need_defaults=:
14632 while test $# != 0
14633 do
14634   case $1 in
14635   --*=?*)
14636     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14637     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14638     ac_shift=:
14639     ;;
14640   --*=)
14641     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14642     ac_optarg=
14643     ac_shift=:
14644     ;;
14645   *)
14646     ac_option=$1
14647     ac_optarg=$2
14648     ac_shift=shift
14649     ;;
14650   esac
14651
14652   case $ac_option in
14653   # Handling of the options.
14654   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14655     ac_cs_recheck=: ;;
14656   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14657     $as_echo "$ac_cs_version"; exit ;;
14658   --config | --confi | --conf | --con | --co | --c )
14659     $as_echo "$ac_cs_config"; exit ;;
14660   --debug | --debu | --deb | --de | --d | -d )
14661     debug=: ;;
14662   --file | --fil | --fi | --f )
14663     $ac_shift
14664     case $ac_optarg in
14665     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14666     '') as_fn_error $? "missing file argument" ;;
14667     esac
14668     as_fn_append CONFIG_FILES " '$ac_optarg'"
14669     ac_need_defaults=false;;
14670   --header | --heade | --head | --hea )
14671     $ac_shift
14672     case $ac_optarg in
14673     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14674     esac
14675     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14676     ac_need_defaults=false;;
14677   --he | --h)
14678     # Conflict between --help and --header
14679     as_fn_error $? "ambiguous option: \`$1'
14680 Try \`$0 --help' for more information.";;
14681   --help | --hel | -h )
14682     $as_echo "$ac_cs_usage"; exit ;;
14683   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14684   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14685     ac_cs_silent=: ;;
14686
14687   # This is an error.
14688   -*) as_fn_error $? "unrecognized option: \`$1'
14689 Try \`$0 --help' for more information." ;;
14690
14691   *) as_fn_append ac_config_targets " $1"
14692      ac_need_defaults=false ;;
14693
14694   esac
14695   shift
14696 done
14697
14698 ac_configure_extra_args=
14699
14700 if $ac_cs_silent; then
14701   exec 6>/dev/null
14702   ac_configure_extra_args="$ac_configure_extra_args --silent"
14703 fi
14704
14705 _ACEOF
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 if \$ac_cs_recheck; then
14708   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14709   shift
14710   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14711   CONFIG_SHELL='$SHELL'
14712   export CONFIG_SHELL
14713   exec "\$@"
14714 fi
14715
14716 _ACEOF
14717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718 exec 5>>config.log
14719 {
14720   echo
14721   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14722 ## Running $as_me. ##
14723 _ASBOX
14724   $as_echo "$ac_log"
14725 } >&5
14726
14727 _ACEOF
14728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729 #
14730 # INIT-COMMANDS
14731 #
14732 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14733     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14734     # from automake < 1.5.
14735     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14736     # Capture the value of LINGUAS because we need it to compute CATALOGS.
14737     LINGUAS="${LINGUAS-%UNSET%}"
14738
14739
14740 _ACEOF
14741
14742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14743
14744 # Handling of arguments.
14745 for ac_config_target in $ac_config_targets
14746 do
14747   case $ac_config_target in
14748     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14749     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14750     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14751
14752   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14753   esac
14754 done
14755
14756
14757 # If the user did not use the arguments to specify the items to instantiate,
14758 # then the envvar interface is used.  Set only those that are not.
14759 # We use the long form for the default assignment because of an extremely
14760 # bizarre bug on SunOS 4.1.3.
14761 if $ac_need_defaults; then
14762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14764   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14765 fi
14766
14767 # Have a temporary directory for convenience.  Make it in the build tree
14768 # simply because there is no reason against having it here, and in addition,
14769 # creating and moving files from /tmp can sometimes cause problems.
14770 # Hook for its removal unless debugging.
14771 # Note that there is a small window in which the directory will not be cleaned:
14772 # after its creation but before its name has been assigned to `$tmp'.
14773 $debug ||
14774 {
14775   tmp= ac_tmp=
14776   trap 'exit_status=$?
14777   : "${ac_tmp:=$tmp}"
14778   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14779 ' 0
14780   trap 'as_fn_exit 1' 1 2 13 15
14781 }
14782 # Create a (secure) tmp directory for tmp files.
14783
14784 {
14785   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14786   test -d "$tmp"
14787 }  ||
14788 {
14789   tmp=./conf$$-$RANDOM
14790   (umask 077 && mkdir "$tmp")
14791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14792 ac_tmp=$tmp
14793
14794 # Set up the scripts for CONFIG_FILES section.
14795 # No need to generate them if there are no CONFIG_FILES.
14796 # This happens for instance with `./config.status config.h'.
14797 if test -n "$CONFIG_FILES"; then
14798
14799 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14800   ac_cs_awk_getline=:
14801   ac_cs_awk_pipe_init=
14802   ac_cs_awk_read_file='
14803       while ((getline aline < (F[key])) > 0)
14804         print(aline)
14805       close(F[key])'
14806   ac_cs_awk_pipe_fini=
14807 else
14808   ac_cs_awk_getline=false
14809   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14810   ac_cs_awk_read_file='
14811       print "|#_!!_#|"
14812       print "cat " F[key] " &&"
14813       '$ac_cs_awk_pipe_init
14814   # The final `:' finishes the AND list.
14815   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14816 fi
14817 ac_cr=`echo X | tr X '\015'`
14818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14819 # But we know of no other shell where ac_cr would be empty at this
14820 # point, so we can use a bashism as a fallback.
14821 if test "x$ac_cr" = x; then
14822   eval ac_cr=\$\'\\r\'
14823 fi
14824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14826   ac_cs_awk_cr='\\r'
14827 else
14828   ac_cs_awk_cr=$ac_cr
14829 fi
14830
14831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14832 _ACEOF
14833
14834 # Create commands to substitute file output variables.
14835 {
14836   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14837   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14838   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14839   echo "_ACAWK" &&
14840   echo "_ACEOF"
14841 } >conf$$files.sh &&
14842 . ./conf$$files.sh ||
14843   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14844 rm -f conf$$files.sh
14845
14846 {
14847   echo "cat >conf$$subs.awk <<_ACEOF" &&
14848   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14849   echo "_ACEOF"
14850 } >conf$$subs.sh ||
14851   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14852 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14853 ac_delim='%!_!# '
14854 for ac_last_try in false false false false false :; do
14855   . ./conf$$subs.sh ||
14856     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14857
14858   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14859   if test $ac_delim_n = $ac_delim_num; then
14860     break
14861   elif $ac_last_try; then
14862     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14863   else
14864     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14865   fi
14866 done
14867 rm -f conf$$subs.sh
14868
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14871 _ACEOF
14872 sed -n '
14873 h
14874 s/^/S["/; s/!.*/"]=/
14875 p
14876 g
14877 s/^[^!]*!//
14878 :repl
14879 t repl
14880 s/'"$ac_delim"'$//
14881 t delim
14882 :nl
14883 h
14884 s/\(.\{148\}\)..*/\1/
14885 t more1
14886 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14887 p
14888 n
14889 b repl
14890 :more1
14891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14892 p
14893 g
14894 s/.\{148\}//
14895 t nl
14896 :delim
14897 h
14898 s/\(.\{148\}\)..*/\1/
14899 t more2
14900 s/["\\]/\\&/g; s/^/"/; s/$/"/
14901 p
14902 b
14903 :more2
14904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14905 p
14906 g
14907 s/.\{148\}//
14908 t delim
14909 ' <conf$$subs.awk | sed '
14910 /^[^""]/{
14911   N
14912   s/\n//
14913 }
14914 ' >>$CONFIG_STATUS || ac_write_fail=1
14915 rm -f conf$$subs.awk
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917 _ACAWK
14918 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14919   for (key in S) S_is_set[key] = 1
14920   FS = "\a"
14921   \$ac_cs_awk_pipe_init
14922 }
14923 {
14924   line = $ 0
14925   nfields = split(line, field, "@")
14926   substed = 0
14927   len = length(field[1])
14928   for (i = 2; i < nfields; i++) {
14929     key = field[i]
14930     keylen = length(key)
14931     if (S_is_set[key]) {
14932       value = S[key]
14933       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14934       len += length(value) + length(field[++i])
14935       substed = 1
14936     } else
14937       len += 1 + keylen
14938   }
14939   if (nfields == 3 && !substed) {
14940     key = field[2]
14941     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14942       \$ac_cs_awk_read_file
14943       next
14944     }
14945   }
14946   print line
14947 }
14948 \$ac_cs_awk_pipe_fini
14949 _ACAWK
14950 _ACEOF
14951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14953   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14954 else
14955   cat
14956 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14957   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14958 _ACEOF
14959
14960 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14961 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14962 # trailing colons and then remove the whole line if VPATH becomes empty
14963 # (actually we leave an empty line to preserve line numbers).
14964 if test "x$srcdir" = x.; then
14965   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14966 h
14967 s///
14968 s/^/:/
14969 s/[      ]*$/:/
14970 s/:\$(srcdir):/:/g
14971 s/:\${srcdir}:/:/g
14972 s/:@srcdir@:/:/g
14973 s/^:*//
14974 s/:*$//
14975 x
14976 s/\(=[   ]*\).*/\1/
14977 G
14978 s/\n//
14979 s/^[^=]*=[       ]*$//
14980 }'
14981 fi
14982
14983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984 fi # test -n "$CONFIG_FILES"
14985
14986 # Set up the scripts for CONFIG_HEADERS section.
14987 # No need to generate them if there are no CONFIG_HEADERS.
14988 # This happens for instance with `./config.status Makefile'.
14989 if test -n "$CONFIG_HEADERS"; then
14990 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14991 BEGIN {
14992 _ACEOF
14993
14994 # Transform confdefs.h into an awk script `defines.awk', embedded as
14995 # here-document in config.status, that substitutes the proper values into
14996 # config.h.in to produce config.h.
14997
14998 # Create a delimiter string that does not exist in confdefs.h, to ease
14999 # handling of long lines.
15000 ac_delim='%!_!# '
15001 for ac_last_try in false false :; do
15002   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15003   if test -z "$ac_tt"; then
15004     break
15005   elif $ac_last_try; then
15006     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15007   else
15008     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15009   fi
15010 done
15011
15012 # For the awk script, D is an array of macro values keyed by name,
15013 # likewise P contains macro parameters if any.  Preserve backslash
15014 # newline sequences.
15015
15016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15017 sed -n '
15018 s/.\{148\}/&'"$ac_delim"'/g
15019 t rset
15020 :rset
15021 s/^[     ]*#[    ]*define[       ][      ]*/ /
15022 t def
15023 d
15024 :def
15025 s/\\$//
15026 t bsnl
15027 s/["\\]/\\&/g
15028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15029 D["\1"]=" \3"/p
15030 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15031 d
15032 :bsnl
15033 s/["\\]/\\&/g
15034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15035 D["\1"]=" \3\\\\\\n"\\/p
15036 t cont
15037 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15038 t cont
15039 d
15040 :cont
15041 n
15042 s/.\{148\}/&'"$ac_delim"'/g
15043 t clear
15044 :clear
15045 s/\\$//
15046 t bsnlc
15047 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15048 d
15049 :bsnlc
15050 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15051 b cont
15052 ' <confdefs.h | sed '
15053 s/'"$ac_delim"'/"\\\
15054 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15055
15056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057   for (key in D) D_is_set[key] = 1
15058   FS = "\a"
15059 }
15060 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15061   line = \$ 0
15062   split(line, arg, " ")
15063   if (arg[1] == "#") {
15064     defundef = arg[2]
15065     mac1 = arg[3]
15066   } else {
15067     defundef = substr(arg[1], 2)
15068     mac1 = arg[2]
15069   }
15070   split(mac1, mac2, "(") #)
15071   macro = mac2[1]
15072   prefix = substr(line, 1, index(line, defundef) - 1)
15073   if (D_is_set[macro]) {
15074     # Preserve the white space surrounding the "#".
15075     print prefix "define", macro P[macro] D[macro]
15076     next
15077   } else {
15078     # Replace #undef with comments.  This is necessary, for example,
15079     # in the case of _POSIX_SOURCE, which is predefined and required
15080     # on some systems where configure will not decide to define it.
15081     if (defundef == "undef") {
15082       print "/*", prefix defundef, macro, "*/"
15083       next
15084     }
15085   }
15086 }
15087 { print }
15088 _ACAWK
15089 _ACEOF
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15092 fi # test -n "$CONFIG_HEADERS"
15093
15094
15095 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15096 shift
15097 for ac_tag
15098 do
15099   case $ac_tag in
15100   :[FHLC]) ac_mode=$ac_tag; continue;;
15101   esac
15102   case $ac_mode$ac_tag in
15103   :[FHL]*:*);;
15104   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15105   :[FH]-) ac_tag=-:-;;
15106   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15107   esac
15108   ac_save_IFS=$IFS
15109   IFS=:
15110   set x $ac_tag
15111   IFS=$ac_save_IFS
15112   shift
15113   ac_file=$1
15114   shift
15115
15116   case $ac_mode in
15117   :L) ac_source=$1;;
15118   :[FH])
15119     ac_file_inputs=
15120     for ac_f
15121     do
15122       case $ac_f in
15123       -) ac_f="$ac_tmp/stdin";;
15124       *) # Look for the file first in the build tree, then in the source tree
15125          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15126          # because $ac_f cannot contain `:'.
15127          test -f "$ac_f" ||
15128            case $ac_f in
15129            [\\/$]*) false;;
15130            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15131            esac ||
15132            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15133       esac
15134       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15135       as_fn_append ac_file_inputs " '$ac_f'"
15136     done
15137
15138     # Let's still pretend it is `configure' which instantiates (i.e., don't
15139     # use $as_me), people would be surprised to read:
15140     #    /* config.h.  Generated by config.status.  */
15141     configure_input='Generated from '`
15142           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15143         `' by configure.'
15144     if test x"$ac_file" != x-; then
15145       configure_input="$ac_file.  $configure_input"
15146       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15147 $as_echo "$as_me: creating $ac_file" >&6;}
15148     fi
15149     # Neutralize special characters interpreted by sed in replacement strings.
15150     case $configure_input in #(
15151     *\&* | *\|* | *\\* )
15152        ac_sed_conf_input=`$as_echo "$configure_input" |
15153        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15154     *) ac_sed_conf_input=$configure_input;;
15155     esac
15156
15157     case $ac_tag in
15158     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15159       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15160     esac
15161     ;;
15162   esac
15163
15164   ac_dir=`$as_dirname -- "$ac_file" ||
15165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15166          X"$ac_file" : 'X\(//\)[^/]' \| \
15167          X"$ac_file" : 'X\(//\)$' \| \
15168          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15169 $as_echo X"$ac_file" |
15170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15171             s//\1/
15172             q
15173           }
15174           /^X\(\/\/\)[^/].*/{
15175             s//\1/
15176             q
15177           }
15178           /^X\(\/\/\)$/{
15179             s//\1/
15180             q
15181           }
15182           /^X\(\/\).*/{
15183             s//\1/
15184             q
15185           }
15186           s/.*/./; q'`
15187   as_dir="$ac_dir"; as_fn_mkdir_p
15188   ac_builddir=.
15189
15190 case "$ac_dir" in
15191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15192 *)
15193   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15194   # A ".." for each directory in $ac_dir_suffix.
15195   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15196   case $ac_top_builddir_sub in
15197   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15198   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15199   esac ;;
15200 esac
15201 ac_abs_top_builddir=$ac_pwd
15202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15203 # for backward compatibility:
15204 ac_top_builddir=$ac_top_build_prefix
15205
15206 case $srcdir in
15207   .)  # We are building in place.
15208     ac_srcdir=.
15209     ac_top_srcdir=$ac_top_builddir_sub
15210     ac_abs_top_srcdir=$ac_pwd ;;
15211   [\\/]* | ?:[\\/]* )  # Absolute name.
15212     ac_srcdir=$srcdir$ac_dir_suffix;
15213     ac_top_srcdir=$srcdir
15214     ac_abs_top_srcdir=$srcdir ;;
15215   *) # Relative name.
15216     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15217     ac_top_srcdir=$ac_top_build_prefix$srcdir
15218     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15219 esac
15220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15221
15222
15223   case $ac_mode in
15224   :F)
15225   #
15226   # CONFIG_FILE
15227   #
15228
15229   case $INSTALL in
15230   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15231   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15232   esac
15233   ac_MKDIR_P=$MKDIR_P
15234   case $MKDIR_P in
15235   [\\/$]* | ?:[\\/]* ) ;;
15236   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15237   esac
15238 _ACEOF
15239
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 # If the template does not know about datarootdir, expand it.
15242 # FIXME: This hack should be removed a few years after 2.60.
15243 ac_datarootdir_hack=; ac_datarootdir_seen=
15244 ac_sed_dataroot='
15245 /datarootdir/ {
15246   p
15247   q
15248 }
15249 /@datadir@/p
15250 /@docdir@/p
15251 /@infodir@/p
15252 /@localedir@/p
15253 /@mandir@/p'
15254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15255 *datarootdir*) ac_datarootdir_seen=yes;;
15256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15258 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261   ac_datarootdir_hack='
15262   s&@datadir@&$datadir&g
15263   s&@docdir@&$docdir&g
15264   s&@infodir@&$infodir&g
15265   s&@localedir@&$localedir&g
15266   s&@mandir@&$mandir&g
15267   s&\\\${datarootdir}&$datarootdir&g' ;;
15268 esac
15269 _ACEOF
15270
15271 # Neutralize VPATH when `$srcdir' = `.'.
15272 # Shell code in configure.ac might set extrasub.
15273 # FIXME: do we really want to maintain this feature?
15274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15275 ac_sed_extra="$ac_vpsub
15276 $extrasub
15277 _ACEOF
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279 :t
15280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15281 s|@configure_input@|$ac_sed_conf_input|;t t
15282 s&@top_builddir@&$ac_top_builddir_sub&;t t
15283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15284 s&@srcdir@&$ac_srcdir&;t t
15285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15286 s&@top_srcdir@&$ac_top_srcdir&;t t
15287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15288 s&@builddir@&$ac_builddir&;t t
15289 s&@abs_builddir@&$ac_abs_builddir&;t t
15290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15291 s&@INSTALL@&$ac_INSTALL&;t t
15292 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15293 $ac_datarootdir_hack
15294 "
15295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15296 if $ac_cs_awk_getline; then
15297   $AWK -f "$ac_tmp/subs.awk"
15298 else
15299   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15300 fi \
15301   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15302
15303 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15304   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15305   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15306       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15307   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15308 which seems to be undefined.  Please make sure it is defined" >&5
15309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15310 which seems to be undefined.  Please make sure it is defined" >&2;}
15311
15312   rm -f "$ac_tmp/stdin"
15313   case $ac_file in
15314   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15315   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15316   esac \
15317   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15318  ;;
15319   :H)
15320   #
15321   # CONFIG_HEADER
15322   #
15323   if test x"$ac_file" != x-; then
15324     {
15325       $as_echo "/* $configure_input  */" \
15326       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15327     } >"$ac_tmp/config.h" \
15328       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15329     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15330       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15332     else
15333       rm -f "$ac_file"
15334       mv "$ac_tmp/config.h" "$ac_file" \
15335         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15336     fi
15337   else
15338     $as_echo "/* $configure_input  */" \
15339       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15340       || as_fn_error $? "could not create -" "$LINENO" 5
15341   fi
15342  ;;
15343
15344   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15345 $as_echo "$as_me: executing $ac_file commands" >&6;}
15346  ;;
15347   esac
15348
15349
15350   case $ac_file$ac_mode in
15351     "po-directories":C)
15352     for ac_file in $CONFIG_FILES; do
15353       # Support "outfile[:infile[:infile...]]"
15354       case "$ac_file" in
15355         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15356       esac
15357       # PO directories have a Makefile.in generated from Makefile.in.in.
15358       case "$ac_file" in */Makefile.in)
15359         # Adjust a relative srcdir.
15360         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15361         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15362         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15363         # In autoconf-2.13 it is called $ac_given_srcdir.
15364         # In autoconf-2.50 it is called $srcdir.
15365         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15366         case "$ac_given_srcdir" in
15367           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15368           /*) top_srcdir="$ac_given_srcdir" ;;
15369           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15370         esac
15371         # Treat a directory as a PO directory if and only if it has a
15372         # POTFILES.in file. This allows packages to have multiple PO
15373         # directories under different names or in different locations.
15374         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15375           rm -f "$ac_dir/POTFILES"
15376           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15377           gt_tab=`printf '\t'`
15378           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"
15379           POMAKEFILEDEPS="POTFILES.in"
15380           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15381           # on $ac_dir but don't depend on user-specified configuration
15382           # parameters.
15383           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15384             # The LINGUAS file contains the set of available languages.
15385             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15386               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15387             fi
15388             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15389             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15390             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15391             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15392           else
15393             # The set of available languages was given in configure.in.
15394             # Hide the ALL_LINGUAS assignment from automake < 1.5.
15395             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15396           fi
15397           # Compute POFILES
15398           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15399           # Compute UPDATEPOFILES
15400           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15401           # Compute DUMMYPOFILES
15402           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15403           # Compute GMOFILES
15404           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15405           case "$ac_given_srcdir" in
15406             .) srcdirpre= ;;
15407             *) srcdirpre='$(srcdir)/' ;;
15408           esac
15409           POFILES=
15410           UPDATEPOFILES=
15411           DUMMYPOFILES=
15412           GMOFILES=
15413           for lang in $ALL_LINGUAS; do
15414             POFILES="$POFILES $srcdirpre$lang.po"
15415             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15416             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15417             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15418           done
15419           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15420           # environment variable.
15421           INST_LINGUAS=
15422           if test -n "$ALL_LINGUAS"; then
15423             for presentlang in $ALL_LINGUAS; do
15424               useit=no
15425               if test "%UNSET%" != "$LINGUAS"; then
15426                 desiredlanguages="$LINGUAS"
15427               else
15428                 desiredlanguages="$ALL_LINGUAS"
15429               fi
15430               for desiredlang in $desiredlanguages; do
15431                 # Use the presentlang catalog if desiredlang is
15432                 #   a. equal to presentlang, or
15433                 #   b. a variant of presentlang (because in this case,
15434                 #      presentlang can be used as a fallback for messages
15435                 #      which are not translated in the desiredlang catalog).
15436                 case "$desiredlang" in
15437                   "$presentlang"*) useit=yes;;
15438                 esac
15439               done
15440               if test $useit = yes; then
15441                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15442               fi
15443             done
15444           fi
15445           CATALOGS=
15446           if test -n "$INST_LINGUAS"; then
15447             for lang in $INST_LINGUAS; do
15448               CATALOGS="$CATALOGS $lang.gmo"
15449             done
15450           fi
15451           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15452           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"
15453           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15454             if test -f "$f"; then
15455               case "$f" in
15456                 *.orig | *.bak | *~) ;;
15457                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15458               esac
15459             fi
15460           done
15461         fi
15462         ;;
15463       esac
15464     done ;;
15465
15466   esac
15467 done # for ac_tag
15468
15469
15470 as_fn_exit 0
15471 _ACEOF
15472 ac_clean_files=$ac_clean_files_save
15473
15474 test $ac_write_fail = 0 ||
15475   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15476
15477
15478 # configure is writing to config.log, and then calls config.status.
15479 # config.status does its own redirection, appending to config.log.
15480 # Unfortunately, on DOS this fails, as config.log is still kept open
15481 # by configure, so config.status won't be able to write to it; its
15482 # output is simply discarded.  So we exec the FD to /dev/null,
15483 # effectively closing config.log, so it can be properly (re)opened and
15484 # appended to by config.status.  When coming back to configure, we
15485 # need to make the FD available again.
15486 if test "$no_create" != yes; then
15487   ac_cs_success=:
15488   ac_config_status_args=
15489   test "$silent" = yes &&
15490     ac_config_status_args="$ac_config_status_args --quiet"
15491   exec 5>/dev/null
15492   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15493   exec 5>>config.log
15494   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15495   # would make configure fail if this is the last instruction.
15496   $ac_cs_success || as_fn_exit 1
15497 fi
15498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15501 fi
15502
15503 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi