Whamcloud - gitweb
build: update version to 1.45.6.wc7
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_header_list=
624 gl_use_threads_default=
625 ac_func_list=
626 ac_subst_vars='LTLIBOBJS
627 LIBOBJS
628 systemd_system_unit_dir
629 have_systemd
630 systemd_LIBS
631 systemd_CFLAGS
632 crond_dir
633 have_crond
634 pkg_udev_rules_dir
635 have_udev
636 udev_LIBS
637 udev_CFLAGS
638 LDFLAGS_SHLIB
639 CFLAGS_STLIB
640 CFLAGS_SHLIB
641 BUILD_LDFLAGS
642 BUILD_CFLAGS
643 INCLUDES
644 DO_TEST_SUITE
645 LDFLAGS_STATIC
646 root_sysconfdir
647 root_libdir
648 root_sbindir
649 root_bindir
650 root_prefix
651 E2SCRUB_CMT
652 UNIX_CMT
653 CYGWIN_CMT
654 LINUX_CMT
655 threadsan_ldflags
656 threadsan_cflags
657 have_threadsan
658 addrsan_ldflags
659 addrsan_cflags
660 have_addrsan
661 ubsan_ldflags
662 ubsan_cflags
663 have_ubsan
664 lto_ldflags
665 lto_cflags
666 have_lto
667 gcc_ranlib
668 gcc_ar
669 UNI_DIFF_OPTS
670 SEM_INIT_LIB
671 FUSE_CMT
672 FUSE_LIB
673 CLOCK_GETTIME_LIB
674 MAGIC_LIB
675 SOCKET_LIB
676 SIZEOF_TIME_T
677 SIZEOF_OFF_T
678 SIZEOF_LONG_LONG
679 SIZEOF_LONG
680 SIZEOF_INT
681 SIZEOF_SHORT
682 DD
683 BUILD_CC
684 MAKEINFO
685 STRIP
686 AR
687 LDCONFIG
688 PERL
689 AWK
690 CHMOD
691 RM
692 CP
693 MV
694 LN_S
695 LN
696 ifNotGNUmake
697 ifGNUmake
698 BINARY_TYPE
699 POSUB
700 LTLIBINTL
701 LIBINTL
702 INTLLIBS
703 INTL_LIBTOOL_SUFFIX_PREFIX
704 INTLOBJS
705 GENCAT
706 INSTOBJEXT
707 DATADIRNAME
708 CATOBJEXT
709 USE_INCLUDED_LIBINTL
710 BUILD_INCLUDED_LIBINTL
711 LTLIBC
712 WINDRES
713 WOE32
714 WOE32DLL
715 HAVE_WPRINTF
716 HAVE_NEWLOCALE
717 HAVE_SNPRINTF
718 HAVE_ASPRINTF
719 HAVE_POSIX_PRINTF
720 INTL_DEFAULT_VERBOSITY
721 INTL_MACOSX_LIBS
722 GLIBC21
723 INTLBISON
724 LTLIBICONV
725 LIBICONV
726 LTLIBMULTITHREAD
727 LIBMULTITHREAD
728 LTLIBTHREAD
729 LIBTHREAD
730 LIBPTH_PREFIX
731 LTLIBPTH
732 LIBPTH
733 PRI_MACROS_BROKEN
734 ALLOCA
735 HAVE_VISIBILITY
736 CFLAG_VISIBILITY
737 RANLIB
738 GLIBC2
739 XGETTEXT_EXTRA_OPTIONS
740 MSGMERGE
741 XGETTEXT_015
742 XGETTEXT
743 GMSGFMT_015
744 MSGFMT_015
745 GMSGFMT
746 MSGFMT
747 GETTEXT_MACRO_VERSION
748 USE_NLS
749 SED
750 MKDIR_P
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 SET_MAKE
755 VERSION
756 PACKAGE
757 GETTEXT_PACKAGE
758 PTHREAD_LIB
759 TDB_MAN_COMMENT
760 TDB_CMT
761 UUIDD_CMT
762 E2INITRD_MAN
763 E2INITRD_PROG
764 FSCK_MAN
765 FSCK_PROG
766 DEFRAG_CMT
767 RESIZER_CMT
768 IMAGER_CMT
769 DEBUGFS_CMT
770 SUBSET_CMT
771 ALL_CMT
772 BLKID_CMT
773 DEPPROFILED_LIBBLKID
774 PROFILED_LIBBLKID
775 DEPSTATIC_LIBBLKID
776 STATIC_LIBBLKID
777 DEPLIBBLKID
778 LIBBLKID
779 UUID_CMT
780 DEPPROFILED_LIBUUID
781 PROFILED_LIBUUID
782 DEPSTATIC_LIBUUID
783 STATIC_LIBUUID
784 DEPLIBUUID
785 LIBUUID
786 PKG_CONFIG_LIBDIR
787 PKG_CONFIG_PATH
788 PKG_CONFIG
789 TEST_IO_CMT
790 PRIVATE_LIBS_CMT
791 LDFLAG_DYNAMIC
792 PROFILED_LIB_EXT
793 STATIC_LIB_EXT
794 LIB_EXT
795 PROFILE_CMT
796 BSDLIB_CMT
797 ELF_CMT
798 Q
799 ES
800 E
801 LINK_BUILD_FLAGS
802 SYMLINK_RELATIVE
803 LINK_INSTALL_FLAGS
804 MAINTAINER_CMT
805 EGREP
806 GREP
807 CPP
808 RDYNAMIC
809 DLOPEN_LIB
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
816 CC
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 E2FSPROGS_DATE
826 E2FSPROGS_PKGVER
827 E2FSPROGS_VERSION
828 E2FSPROGS_DAY
829 E2FSPROGS_MONTH
830 E2FSPROGS_YEAR
831 target_alias
832 host_alias
833 build_alias
834 LIBS
835 ECHO_T
836 ECHO_N
837 ECHO_C
838 DEFS
839 mandir
840 localedir
841 libdir
842 psdir
843 pdfdir
844 dvidir
845 htmldir
846 infodir
847 docdir
848 oldincludedir
849 includedir
850 localstatedir
851 sharedstatedir
852 sysconfdir
853 datadir
854 datarootdir
855 libexecdir
856 sbindir
857 bindir
858 program_transform_name
859 prefix
860 exec_prefix
861 PACKAGE_URL
862 PACKAGE_BUGREPORT
863 PACKAGE_STRING
864 PACKAGE_VERSION
865 PACKAGE_TARNAME
866 PACKAGE_NAME
867 PATH_SEPARATOR
868 SHELL'
869 ac_subst_files='MCONFIG
870 MAKEFILE_ELF
871 MAKEFILE_BSDLIB
872 MAKEFILE_PROFILE
873 MAKEFILE_LIBRARY
874 ASM_TYPES_HEADER
875 PUBLIC_CONFIG_HEADER'
876 ac_user_opts='
877 enable_option_checking
878 with_diet_libc
879 with_cc
880 with_ccopts
881 with_ldopts
882 with_root_prefix
883 enable_maintainer_mode
884 enable_symlink_install
885 enable_relative_symlinks
886 enable_symlink_relative_symlinks
887 enable_symlink_build
888 enable_verbose_makecmds
889 enable_elf_shlibs
890 enable_bsd_shlibs
891 enable_profile
892 enable_gcov
893 enable_hardening
894 enable_jbd_debug
895 enable_blkid_debug
896 enable_testio_debug
897 enable_libuuid
898 enable_libblkid
899 enable_subset
900 enable_backtrace
901 enable_debugfs
902 enable_imager
903 enable_resizer
904 enable_defrag
905 enable_fsck
906 enable_e2initrd_helper
907 enable_tls
908 enable_uuidd
909 enable_mmp
910 enable_tdb
911 enable_bmap_stats
912 enable_bmap_stats_ops
913 enable_pfsck
914 enable_nls
915 enable_threads
916 with_gnu_ld
917 enable_rpath
918 with_libpth_prefix
919 with_libiconv_prefix
920 with_included_gettext
921 with_libintl_prefix
922 enable_fuse2fs
923 enable_lto
924 enable_ubsan
925 enable_addrsan
926 enable_threadsan
927 with_multiarch
928 with_udev_rules_dir
929 with_crond_dir
930 with_systemd_unit_dir
931 '
932       ac_precious_vars='build_alias
933 host_alias
934 target_alias
935 CC
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
940 CPP
941 PKG_CONFIG
942 PKG_CONFIG_PATH
943 PKG_CONFIG_LIBDIR
944 udev_CFLAGS
945 udev_LIBS
946 systemd_CFLAGS
947 systemd_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *=)   ac_optarg= ;;
1012   *)    ac_optarg=yes ;;
1013   esac
1014
1015   # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017   case $ac_dashdash$ac_option in
1018   --)
1019     ac_dashdash=yes ;;
1020
1021   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022     ac_prev=bindir ;;
1023   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024     bindir=$ac_optarg ;;
1025
1026   -build | --build | --buil | --bui | --bu)
1027     ac_prev=build_alias ;;
1028   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029     build_alias=$ac_optarg ;;
1030
1031   -cache-file | --cache-file | --cache-fil | --cache-fi \
1032   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033     ac_prev=cache_file ;;
1034   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036     cache_file=$ac_optarg ;;
1037
1038   --config-cache | -C)
1039     cache_file=config.cache ;;
1040
1041   -datadir | --datadir | --datadi | --datad)
1042     ac_prev=datadir ;;
1043   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044     datadir=$ac_optarg ;;
1045
1046   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047   | --dataroo | --dataro | --datar)
1048     ac_prev=datarootdir ;;
1049   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051     datarootdir=$ac_optarg ;;
1052
1053   -disable-* | --disable-*)
1054     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057       as_fn_error $? "invalid feature name: $ac_useropt"
1058     ac_useropt_orig=$ac_useropt
1059     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060     case $ac_user_opts in
1061       *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065          ac_unrecognized_sep=', ';;
1066     esac
1067     eval enable_$ac_useropt=no ;;
1068
1069   -docdir | --docdir | --docdi | --doc | --do)
1070     ac_prev=docdir ;;
1071   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072     docdir=$ac_optarg ;;
1073
1074   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075     ac_prev=dvidir ;;
1076   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077     dvidir=$ac_optarg ;;
1078
1079   -enable-* | --enable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error $? "invalid feature name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval enable_$ac_useropt=\$ac_optarg ;;
1094
1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097   | --exec | --exe | --ex)
1098     ac_prev=exec_prefix ;;
1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101   | --exec=* | --exe=* | --ex=*)
1102     exec_prefix=$ac_optarg ;;
1103
1104   -gas | --gas | --ga | --g)
1105     # Obsolete; use --with-gas.
1106     with_gas=yes ;;
1107
1108   -help | --help | --hel | --he | -h)
1109     ac_init_help=long ;;
1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111     ac_init_help=recursive ;;
1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113     ac_init_help=short ;;
1114
1115   -host | --host | --hos | --ho)
1116     ac_prev=host_alias ;;
1117   -host=* | --host=* | --hos=* | --ho=*)
1118     host_alias=$ac_optarg ;;
1119
1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121     ac_prev=htmldir ;;
1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123   | --ht=*)
1124     htmldir=$ac_optarg ;;
1125
1126   -includedir | --includedir | --includedi | --included | --include \
1127   | --includ | --inclu | --incl | --inc)
1128     ac_prev=includedir ;;
1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
1131     includedir=$ac_optarg ;;
1132
1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
1134     ac_prev=infodir ;;
1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136     infodir=$ac_optarg ;;
1137
1138   -libdir | --libdir | --libdi | --libd)
1139     ac_prev=libdir ;;
1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141     libdir=$ac_optarg ;;
1142
1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144   | --libexe | --libex | --libe)
1145     ac_prev=libexecdir ;;
1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147   | --libexe=* | --libex=* | --libe=*)
1148     libexecdir=$ac_optarg ;;
1149
1150   -localedir | --localedir | --localedi | --localed | --locale)
1151     ac_prev=localedir ;;
1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153     localedir=$ac_optarg ;;
1154
1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
1156   | --localstate | --localstat | --localsta | --localst | --locals)
1157     ac_prev=localstatedir ;;
1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160     localstatedir=$ac_optarg ;;
1161
1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163     ac_prev=mandir ;;
1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165     mandir=$ac_optarg ;;
1166
1167   -nfp | --nfp | --nf)
1168     # Obsolete; use --without-fp.
1169     with_fp=no ;;
1170
1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172   | --no-cr | --no-c | -n)
1173     no_create=yes ;;
1174
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     no_recursion=yes ;;
1178
1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181   | --oldin | --oldi | --old | --ol | --o)
1182     ac_prev=oldincludedir ;;
1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186     oldincludedir=$ac_optarg ;;
1187
1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189     ac_prev=prefix ;;
1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191     prefix=$ac_optarg ;;
1192
1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194   | --program-pre | --program-pr | --program-p)
1195     ac_prev=program_prefix ;;
1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198     program_prefix=$ac_optarg ;;
1199
1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201   | --program-suf | --program-su | --program-s)
1202     ac_prev=program_suffix ;;
1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205     program_suffix=$ac_optarg ;;
1206
1207   -program-transform-name | --program-transform-name \
1208   | --program-transform-nam | --program-transform-na \
1209   | --program-transform-n | --program-transform- \
1210   | --program-transform | --program-transfor \
1211   | --program-transfo | --program-transf \
1212   | --program-trans | --program-tran \
1213   | --progr-tra | --program-tr | --program-t)
1214     ac_prev=program_transform_name ;;
1215   -program-transform-name=* | --program-transform-name=* \
1216   | --program-transform-nam=* | --program-transform-na=* \
1217   | --program-transform-n=* | --program-transform-=* \
1218   | --program-transform=* | --program-transfor=* \
1219   | --program-transfo=* | --program-transf=* \
1220   | --program-trans=* | --program-tran=* \
1221   | --progr-tra=* | --program-tr=* | --program-t=*)
1222     program_transform_name=$ac_optarg ;;
1223
1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225     ac_prev=pdfdir ;;
1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227     pdfdir=$ac_optarg ;;
1228
1229   -psdir | --psdir | --psdi | --psd | --ps)
1230     ac_prev=psdir ;;
1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232     psdir=$ac_optarg ;;
1233
1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235   | -silent | --silent | --silen | --sile | --sil)
1236     silent=yes ;;
1237
1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239     ac_prev=sbindir ;;
1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241   | --sbi=* | --sb=*)
1242     sbindir=$ac_optarg ;;
1243
1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246   | --sharedst | --shareds | --shared | --share | --shar \
1247   | --sha | --sh)
1248     ac_prev=sharedstatedir ;;
1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252   | --sha=* | --sh=*)
1253     sharedstatedir=$ac_optarg ;;
1254
1255   -site | --site | --sit)
1256     ac_prev=site ;;
1257   -site=* | --site=* | --sit=*)
1258     site=$ac_optarg ;;
1259
1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261     ac_prev=srcdir ;;
1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263     srcdir=$ac_optarg ;;
1264
1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266   | --syscon | --sysco | --sysc | --sys | --sy)
1267     ac_prev=sysconfdir ;;
1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270     sysconfdir=$ac_optarg ;;
1271
1272   -target | --target | --targe | --targ | --tar | --ta | --t)
1273     ac_prev=target_alias ;;
1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275     target_alias=$ac_optarg ;;
1276
1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278     verbose=yes ;;
1279
1280   -version | --version | --versio | --versi | --vers | -V)
1281     ac_init_version=: ;;
1282
1283   -with-* | --with-*)
1284     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287       as_fn_error $? "invalid package name: $ac_useropt"
1288     ac_useropt_orig=$ac_useropt
1289     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290     case $ac_user_opts in
1291       *"
1292 "with_$ac_useropt"
1293 "*) ;;
1294       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295          ac_unrecognized_sep=', ';;
1296     esac
1297     eval with_$ac_useropt=\$ac_optarg ;;
1298
1299   -without-* | --without-*)
1300     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303       as_fn_error $? "invalid package name: $ac_useropt"
1304     ac_useropt_orig=$ac_useropt
1305     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306     case $ac_user_opts in
1307       *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311          ac_unrecognized_sep=', ';;
1312     esac
1313     eval with_$ac_useropt=no ;;
1314
1315   --x)
1316     # Obsolete; use --with-x.
1317     with_x=yes ;;
1318
1319   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320   | --x-incl | --x-inc | --x-in | --x-i)
1321     ac_prev=x_includes ;;
1322   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324     x_includes=$ac_optarg ;;
1325
1326   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328     ac_prev=x_libraries ;;
1329   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331     x_libraries=$ac_optarg ;;
1332
1333   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1335     ;;
1336
1337   *=*)
1338     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339     # Reject names that are not valid shell variable names.
1340     case $ac_envvar in #(
1341       '' | [0-9]* | *[!_$as_cr_alnum]* )
1342       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343     esac
1344     eval $ac_envvar=\$ac_optarg
1345     export $ac_envvar ;;
1346
1347   *)
1348     # FIXME: should be removed in autoconf 3.0.
1349     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353     ;;
1354
1355   esac
1356 done
1357
1358 if test -n "$ac_prev"; then
1359   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360   as_fn_error $? "missing argument to $ac_option"
1361 fi
1362
1363 if test -n "$ac_unrecognized_opts"; then
1364   case $enable_option_checking in
1365     no) ;;
1366     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368   esac
1369 fi
1370
1371 # Check all directory arguments for consistency.
1372 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373                 datadir sysconfdir sharedstatedir localstatedir includedir \
1374                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375                 libdir localedir mandir
1376 do
1377   eval ac_val=\$$ac_var
1378   # Remove trailing slashes.
1379   case $ac_val in
1380     */ )
1381       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382       eval $ac_var=\$ac_val;;
1383   esac
1384   # Be sure to have absolute directory names.
1385   case $ac_val in
1386     [\\/$]* | ?:[\\/]* )  continue;;
1387     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388   esac
1389   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1391
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1398
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401   if test "x$build_alias" = x; then
1402     cross_compiling=maybe
1403   elif test "x$build_alias" != "x$host_alias"; then
1404     cross_compiling=yes
1405   fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417   as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419   as_fn_error $? "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424   ac_srcdir_defaulted=yes
1425   # Try the directory containing this script, then the parent directory.
1426   ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428          X"$as_myself" : 'X\(//\)[^/]' \| \
1429          X"$as_myself" : 'X\(//\)$' \| \
1430          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)[^/].*/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\).*/{
1445             s//\1/
1446             q
1447           }
1448           s/.*/./; q'`
1449   srcdir=$ac_confdir
1450   if test ! -r "$srcdir/$ac_unique_file"; then
1451     srcdir=..
1452   fi
1453 else
1454   ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463         pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466   srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_env_${ac_var}_value=\$${ac_var}
1477   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485   # Omit some internal or obsolete options to make the list less imposing.
1486   # This message is too long to be a string in the A/UX 3.1 sh.
1487   cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498   -h, --help              display this help and exit
1499       --help=short        display options specific to this package
1500       --help=recursive    display the short help of all the included packages
1501   -V, --version           display version information and exit
1502   -q, --quiet, --silent   do not print \`checking ...' messages
1503       --cache-file=FILE   cache test results in FILE [disabled]
1504   -C, --config-cache      alias for \`--cache-file=config.cache'
1505   -n, --no-create         do not create output files
1506       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509   --prefix=PREFIX         install architecture-independent files in PREFIX
1510                           [$ac_default_prefix]
1511   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                           [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522   --bindir=DIR            user executables [EPREFIX/bin]
1523   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524   --libexecdir=DIR        program executables [EPREFIX/libexec]
1525   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 System types:
1546   --build=BUILD     configure for building on BUILD [guessed]
1547   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --enable-maintainer-mode enable makefile rules useful for maintainers
1560   --enable-symlink-install use symlinks when installing instead of hard links
1561   --enable-relative-symlinks use relative symlinks when installing
1562
1563   --enable-symlink-build  use symlinks while building instead of hard links
1564   --enable-verbose-makecmds enable verbose make command output
1565   --enable-elf-shlibs     select ELF shared libraries
1566   --enable-bsd-shlibs     select BSD shared libraries
1567   --enable-profile        build profiling libraries
1568   --enable-gcov           build for coverage testing using gcov
1569   --enable-hardening              build for coverage testing using gcov
1570   --enable-jbd-debug      enable journal debugging
1571   --enable-blkid-debug    enable blkid debugging
1572   --disable-testio-debug  disable the use of the test I/O manager for debugging
1573   --enable-libuuid        build and use private uuid library
1574   --enable-libblkid       build and use private blkid library
1575   --enable-subset         enable subset-only build
1576   --disable-backtrace     disable use backtrace
1577   --disable-debugfs       disable support of debugfs program
1578   --disable-imager        disable support of e2image program
1579   --disable-resizer       disable support of e2resize program
1580   --disable-defrag        disable support of e4defrag program
1581   --enable-fsck           build fsck wrapper program
1582   --enable-e2initrd-helper build e2initrd-helper program
1583   --disable-tls           disable use of thread local support
1584   --disable-uuidd         disable building the uuid daemon
1585   --disable-mmp           disable support mmp, Multi Mount Protection
1586   --disable-tdb           disable tdb support
1587   --disable-bmap-stats    disable collection of bitmap stats.
1588   --enable-bmap-stats-ops enable collection of additional bitmap stats
1589   --disable-pfsck     disable parallel e2fsck
1590   --disable-nls           do not use Native Language Support
1591   --enable-threads={posix|solaris|pth|windows}
1592                           specify multithreading API
1593   --disable-threads       build without multithread safety
1594   --disable-rpath         do not hardcode runtime library paths
1595   --disable-fuse2fs       do not build fuse2fs
1596   --enable-lto            enable link time optimization
1597   --enable-ubsan          enable undefined behavior sanitizer
1598   --enable-addrsan        enable address sanitizer
1599   --enable-threadsan      enable thread sanitizer
1600
1601 Optional Packages:
1602   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1603   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1604   --with-diet-libc        use diet libc
1605   --with-cc               no longer supported, use CC= instead
1606   --with-ccopts           no longer supported, use CFLAGS= instead
1607   --with-ldopts           no longer supported, use LDFLAGS= instead
1608   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1611   --without-libpth-prefix     don't search for libpth in includedir and libdir
1612   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1613   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1614   --with-included-gettext use the GNU gettext library included here
1615   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1616   --without-libintl-prefix     don't search for libintl in includedir and libdir
1617   --with-multiarch=ARCH specify the multiarch triplet
1618   --with-udev-rules-dir[=DIR]
1619                           Install udev rules into DIR.
1620   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1621   --with-systemd-unit-dir[=DIR]
1622                           Install systemd system units into DIR.
1623
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   LIBS        libraries to pass to the linker, e.g. -l<library>
1630   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631               you have headers in a nonstandard directory <include dir>
1632   CPP         C preprocessor
1633   PKG_CONFIG  path to pkg-config utility
1634   PKG_CONFIG_PATH
1635               directories to add to pkg-config's search path
1636   PKG_CONFIG_LIBDIR
1637               path overriding pkg-config's built-in search path
1638   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1639   udev_LIBS   linker flags for udev, overriding pkg-config
1640   systemd_CFLAGS
1641               C compiler flags for systemd, overriding pkg-config
1642   systemd_LIBS
1643               linker flags for systemd, overriding pkg-config
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 Report bugs to the package provider.
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654   # If there are subdirs, report their specific --help.
1655   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656     test -d "$ac_dir" ||
1657       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658       continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.69
1713
1714 Copyright (C) 2012 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717 _ACEOF
1718   exit
1719 fi
1720
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1724
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   rm -f conftest.$ac_objext
1732   if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_compile") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && {
1748          test -z "$ac_c_werror_flag" ||
1749          test ! -s conftest.err
1750        } && test -s conftest.$ac_objext; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   rm -f conftest.$ac_objext conftest$ac_exeext
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && {
1786          test -z "$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        } && test -s conftest$ac_exeext && {
1789          test "$cross_compiling" = yes ||
1790          test -x conftest$ac_exeext
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801   # interfere with the next link command; also delete a directory that is
1802   # left behind by Apple's compiler.  We do this before executing the actions.
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } > conftest.i && {
1831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        }; then :
1834   ac_retval=0
1835 else
1836   $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839     ac_retval=1
1840 fi
1841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842   as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1850 # accordingly.
1851 ac_fn_c_check_header_mongrel ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   if eval \${$3+:} false; then :
1855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858   $as_echo_n "(cached) " >&6
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 else
1864   # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873   ac_header_compiler=yes
1874 else
1875   ac_header_compiler=no
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1880
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889   ac_header_preproc=yes
1890 else
1891   ac_header_preproc=no
1892 fi
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1896
1897 # So?  What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899   yes:no: )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904     ;;
1905   no:yes:* )
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916     ;;
1917 esac
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   eval "$3=\$ac_header_compiler"
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 fi
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_mongrel
1932
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1937 ac_fn_c_try_run ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943   *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947   (eval "$ac_link") 2>&5
1948   ac_status=$?
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951   { { case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_try") 2>&5
1958   ac_status=$?
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; }; }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: program exited with status $ac_status" >&5
1964        $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967        ac_retval=$ac_status
1968 fi
1969   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971   as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_try_run
1974
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985   $as_echo_n "(cached) " >&6
1986 else
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   eval "$3=yes"
1994 else
1995   eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_header_compile
2005
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   eval "$3=no"
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 int
2023 main ()
2024 {
2025 if (sizeof ($2))
2026          return 0;
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h.  */
2034 $4
2035 int
2036 main ()
2037 {
2038 if (sizeof (($2)))
2039             return 0;
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045
2046 else
2047   eval "$3=yes"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_type
2059
2060 # ac_fn_c_check_func LINENO FUNC VAR
2061 # ----------------------------------
2062 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2063 ac_fn_c_check_func ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2075 #define $2 innocuous_$2
2076
2077 /* System header to define __stub macros and hopefully few prototypes,
2078     which can conflict with char $2 (); below.
2079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2080     <limits.h> exists even on freestanding compilers.  */
2081
2082 #ifdef __STDC__
2083 # include <limits.h>
2084 #else
2085 # include <assert.h>
2086 #endif
2087
2088 #undef $2
2089
2090 /* Override any GCC internal prototype to avoid an error.
2091    Use char because int might match the return type of a GCC
2092    builtin and then its argument prototype would still apply.  */
2093 #ifdef __cplusplus
2094 extern "C"
2095 #endif
2096 char $2 ();
2097 /* The GNU C library defines this for functions which it implements
2098     to always fail with ENOSYS.  Some functions are actually named
2099     something starting with __ and the normal name is an alias.  */
2100 #if defined __stub_$2 || defined __stub___$2
2101 choke me
2102 #endif
2103
2104 int
2105 main ()
2106 {
2107 return $2 ();
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_link "$LINENO"; then :
2113   eval "$3=yes"
2114 else
2115   eval "$3=no"
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext \
2118     conftest$ac_exeext conftest.$ac_ext
2119 fi
2120 eval ac_res=\$$3
2121                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125 } # ac_fn_c_check_func
2126
2127 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2128 # ---------------------------------------------
2129 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2130 # accordingly.
2131 ac_fn_c_check_decl ()
2132 {
2133   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134   as_decl_name=`echo $2|sed 's/ *(.*//'`
2135   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2137 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2138 if eval \${$3+:} false; then :
2139   $as_echo_n "(cached) " >&6
2140 else
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 #ifndef $as_decl_name
2148 #ifdef __cplusplus
2149   (void) $as_decl_use;
2150 #else
2151   (void) $as_decl_name;
2152 #endif
2153 #endif
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160   eval "$3=yes"
2161 else
2162   eval "$3=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 eval ac_res=\$$3
2167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171 } # ac_fn_c_check_decl
2172
2173 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2174 # --------------------------------------------
2175 # Tries to find the compile-time value of EXPR in a program that includes
2176 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2177 # computed
2178 ac_fn_c_compute_int ()
2179 {
2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181   if test "$cross_compiling" = yes; then
2182     # Depending upon the size, compute the lo and hi bounds.
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h.  */
2185 $4
2186 int
2187 main ()
2188 {
2189 static int test_array [1 - 2 * !(($2) >= 0)];
2190 test_array [0] = 0;
2191 return test_array [0];
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198   ac_lo=0 ac_mid=0
2199   while :; do
2200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h.  */
2202 $4
2203 int
2204 main ()
2205 {
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 test_array [0] = 0;
2208 return test_array [0];
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215   ac_hi=$ac_mid; break
2216 else
2217   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218                         if test $ac_lo -le $ac_mid; then
2219                           ac_lo= ac_hi=
2220                           break
2221                         fi
2222                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225   done
2226 else
2227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h.  */
2229 $4
2230 int
2231 main ()
2232 {
2233 static int test_array [1 - 2 * !(($2) < 0)];
2234 test_array [0] = 0;
2235 return test_array [0];
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242   ac_hi=-1 ac_mid=-1
2243   while :; do
2244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251 test_array [0] = 0;
2252 return test_array [0];
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259   ac_lo=$ac_mid; break
2260 else
2261   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262                         if test $ac_mid -le $ac_hi; then
2263                           ac_lo= ac_hi=
2264                           break
2265                         fi
2266                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269   done
2270 else
2271   ac_lo= ac_hi=
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h.  */
2281 $4
2282 int
2283 main ()
2284 {
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 test_array [0] = 0;
2287 return test_array [0];
2288
2289   ;
2290   return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294   ac_hi=$ac_mid
2295 else
2296   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 case $ac_lo in #((
2301 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2302 '') ac_retval=1 ;;
2303 esac
2304   else
2305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2310 #include <stdio.h>
2311 #include <stdlib.h>
2312 int
2313 main ()
2314 {
2315
2316   FILE *f = fopen ("conftest.val", "w");
2317   if (! f)
2318     return 1;
2319   if (($2) < 0)
2320     {
2321       long int i = longval ();
2322       if (i != ($2))
2323         return 1;
2324       fprintf (f, "%ld", i);
2325     }
2326   else
2327     {
2328       unsigned long int i = ulongval ();
2329       if (i != ($2))
2330         return 1;
2331       fprintf (f, "%lu", i);
2332     }
2333   /* Do not output a trailing newline, as this causes \r\n confusion
2334      on some platforms.  */
2335   return ferror (f) || fclose (f) != 0;
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_run "$LINENO"; then :
2342   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2343 else
2344   ac_retval=1
2345 fi
2346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347   conftest.$ac_objext conftest.beam conftest.$ac_ext
2348 rm -f conftest.val
2349
2350   fi
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352   as_fn_set_status $ac_retval
2353
2354 } # ac_fn_c_compute_int
2355
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2361 {
2362   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if eval \${$4+:} false; then :
2366   $as_echo_n "(cached) " >&6
2367 else
2368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (ac_aggr.$3)
2376 return 0;
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382   eval "$4=yes"
2383 else
2384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h.  */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (sizeof ac_aggr.$3)
2392 return 0;
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398   eval "$4=yes"
2399 else
2400   eval "$4=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$4
2407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410
2411 } # ac_fn_c_check_member
2412 cat >config.log <<_ACEOF
2413 This file contains any messages produced by compilers while
2414 running configure, to aid debugging if configure makes a mistake.
2415
2416 It was created by $as_me, which was
2417 generated by GNU Autoconf 2.69.  Invocation command line was
2418
2419   $ $0 $@
2420
2421 _ACEOF
2422 exec 5>>config.log
2423 {
2424 cat <<_ASUNAME
2425 ## --------- ##
2426 ## Platform. ##
2427 ## --------- ##
2428
2429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2434
2435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2436 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2437
2438 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2439 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2441 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2442 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2443 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2444 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2445
2446 _ASUNAME
2447
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453     $as_echo "PATH: $as_dir"
2454   done
2455 IFS=$as_save_IFS
2456
2457 } >&5
2458
2459 cat >&5 <<_ACEOF
2460
2461
2462 ## ----------- ##
2463 ## Core tests. ##
2464 ## ----------- ##
2465
2466 _ACEOF
2467
2468
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2474 ac_configure_args=
2475 ac_configure_args0=
2476 ac_configure_args1=
2477 ac_must_keep_next=false
2478 for ac_pass in 1 2
2479 do
2480   for ac_arg
2481   do
2482     case $ac_arg in
2483     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485     | -silent | --silent | --silen | --sile | --sil)
2486       continue ;;
2487     *\'*)
2488       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489     esac
2490     case $ac_pass in
2491     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2492     2)
2493       as_fn_append ac_configure_args1 " '$ac_arg'"
2494       if test $ac_must_keep_next = true; then
2495         ac_must_keep_next=false # Got value, back to normal.
2496       else
2497         case $ac_arg in
2498           *=* | --config-cache | -C | -disable-* | --disable-* \
2499           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501           | -with-* | --with-* | -without-* | --without-* | --x)
2502             case "$ac_configure_args0 " in
2503               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504             esac
2505             ;;
2506           -* ) ac_must_keep_next=true ;;
2507         esac
2508       fi
2509       as_fn_append ac_configure_args " '$ac_arg'"
2510       ;;
2511     esac
2512   done
2513 done
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2516
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log.  We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2523   # Save into config.log some information that might help in debugging.
2524   {
2525     echo
2526
2527     $as_echo "## ---------------- ##
2528 ## Cache variables. ##
2529 ## ---------------- ##"
2530     echo
2531     # The following way of writing the cache mishandles newlines in values,
2532 (
2533   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2534     eval ac_val=\$$ac_var
2535     case $ac_val in #(
2536     *${as_nl}*)
2537       case $ac_var in #(
2538       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540       esac
2541       case $ac_var in #(
2542       _ | IFS | as_nl) ;; #(
2543       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2544       *) { eval $ac_var=; unset $ac_var;} ;;
2545       esac ;;
2546     esac
2547   done
2548   (set) 2>&1 |
2549     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2550     *${as_nl}ac_space=\ *)
2551       sed -n \
2552         "s/'\''/'\''\\\\'\'''\''/g;
2553           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554       ;; #(
2555     *)
2556       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2557       ;;
2558     esac |
2559     sort
2560 )
2561     echo
2562
2563     $as_echo "## ----------------- ##
2564 ## Output variables. ##
2565 ## ----------------- ##"
2566     echo
2567     for ac_var in $ac_subst_vars
2568     do
2569       eval ac_val=\$$ac_var
2570       case $ac_val in
2571       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572       esac
2573       $as_echo "$ac_var='\''$ac_val'\''"
2574     done | sort
2575     echo
2576
2577     if test -n "$ac_subst_files"; then
2578       $as_echo "## ------------------- ##
2579 ## File substitutions. ##
2580 ## ------------------- ##"
2581       echo
2582       for ac_var in $ac_subst_files
2583       do
2584         eval ac_val=\$$ac_var
2585         case $ac_val in
2586         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587         esac
2588         $as_echo "$ac_var='\''$ac_val'\''"
2589       done | sort
2590       echo
2591     fi
2592
2593     if test -s confdefs.h; then
2594       $as_echo "## ----------- ##
2595 ## confdefs.h. ##
2596 ## ----------- ##"
2597       echo
2598       cat confdefs.h
2599       echo
2600     fi
2601     test "$ac_signal" != 0 &&
2602       $as_echo "$as_me: caught signal $ac_signal"
2603     $as_echo "$as_me: exit $exit_status"
2604   } >&5
2605   rm -f core *.core core.conftest.* &&
2606     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607     exit $exit_status
2608 ' 0
2609 for ac_signal in 1 2 13 15; do
2610   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 done
2612 ac_signal=0
2613
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2616
2617 $as_echo "/* confdefs.h */" > confdefs.h
2618
2619 # Predefined preprocessor variables.
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 _ACEOF
2624
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 _ACEOF
2628
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 _ACEOF
2632
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 _ACEOF
2636
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 _ACEOF
2640
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2643 _ACEOF
2644
2645
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2648 ac_site_file1=NONE
2649 ac_site_file2=NONE
2650 if test -n "$CONFIG_SITE"; then
2651   # We do not want a PATH search for config.site.
2652   case $CONFIG_SITE in #((
2653     -*)  ac_site_file1=./$CONFIG_SITE;;
2654     */*) ac_site_file1=$CONFIG_SITE;;
2655     *)   ac_site_file1=./$CONFIG_SITE;;
2656   esac
2657 elif test "x$prefix" != xNONE; then
2658   ac_site_file1=$prefix/share/config.site
2659   ac_site_file2=$prefix/etc/config.site
2660 else
2661   ac_site_file1=$ac_default_prefix/share/config.site
2662   ac_site_file2=$ac_default_prefix/etc/config.site
2663 fi
2664 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2665 do
2666   test "x$ac_site_file" = xNONE && continue
2667   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2669 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2670     sed 's/^/| /' "$ac_site_file" >&5
2671     . "$ac_site_file" \
2672       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error $? "failed to load site script $ac_site_file
2675 See \`config.log' for more details" "$LINENO" 5; }
2676   fi
2677 done
2678
2679 if test -r "$cache_file"; then
2680   # Some versions of bash will fail to source /dev/null (special files
2681   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2682   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2683     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2684 $as_echo "$as_me: loading cache $cache_file" >&6;}
2685     case $cache_file in
2686       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2687       *)                      . "./$cache_file";;
2688     esac
2689   fi
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2692 $as_echo "$as_me: creating cache $cache_file" >&6;}
2693   >$cache_file
2694 fi
2695
2696 gt_needs="$gt_needs "
2697 as_fn_append ac_header_list " stdlib.h"
2698 as_fn_append ac_header_list " unistd.h"
2699 as_fn_append ac_header_list " sys/param.h"
2700 as_fn_append ac_func_list " symlink"
2701 # Check that the precious variables saved in the cache have kept the same
2702 # value.
2703 ac_cache_corrupted=false
2704 for ac_var in $ac_precious_vars; do
2705   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2706   eval ac_new_set=\$ac_env_${ac_var}_set
2707   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2708   eval ac_new_val=\$ac_env_${ac_var}_value
2709   case $ac_old_set,$ac_new_set in
2710     set,)
2711       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2713       ac_cache_corrupted=: ;;
2714     ,set)
2715       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2716 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2717       ac_cache_corrupted=: ;;
2718     ,);;
2719     *)
2720       if test "x$ac_old_val" != "x$ac_new_val"; then
2721         # differences in whitespace do not lead to failure.
2722         ac_old_val_w=`echo x $ac_old_val`
2723         ac_new_val_w=`echo x $ac_new_val`
2724         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2725           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2726 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2727           ac_cache_corrupted=:
2728         else
2729           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2730 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2731           eval $ac_var=\$ac_old_val
2732         fi
2733         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2734 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2735         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2736 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2737       fi;;
2738   esac
2739   # Pass precious variables to config.status.
2740   if test "$ac_new_set" = set; then
2741     case $ac_new_val in
2742     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2743     *) ac_arg=$ac_var=$ac_new_val ;;
2744     esac
2745     case " $ac_configure_args " in
2746       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2747       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2748     esac
2749   fi
2750 done
2751 if $ac_cache_corrupted; then
2752   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2755 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2756   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2757 fi
2758 ## -------------------- ##
2759 ## Main body of script. ##
2760 ## -------------------- ##
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768
2769
2770 ac_aux_dir=
2771 for ac_dir in config "$srcdir"/config; do
2772   if test -f "$ac_dir/install-sh"; then
2773     ac_aux_dir=$ac_dir
2774     ac_install_sh="$ac_aux_dir/install-sh -c"
2775     break
2776   elif test -f "$ac_dir/install.sh"; then
2777     ac_aux_dir=$ac_dir
2778     ac_install_sh="$ac_aux_dir/install.sh -c"
2779     break
2780   elif test -f "$ac_dir/shtool"; then
2781     ac_aux_dir=$ac_dir
2782     ac_install_sh="$ac_aux_dir/shtool install -c"
2783     break
2784   fi
2785 done
2786 if test -z "$ac_aux_dir"; then
2787   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2788 fi
2789
2790 # These three variables are undocumented and unsupported,
2791 # and are intended to be withdrawn in a future Autoconf release.
2792 # They can cause serious problems if a builder's source tree is in a directory
2793 # whose full name contains unusual characters.
2794 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2795 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2796 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2797
2798
2799 ac_config_headers="$ac_config_headers lib/config.h"
2800
2801
2802 MCONFIG=./MCONFIG
2803
2804 BINARY_TYPE=bin
2805 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
2806         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2807 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2808         | tr \" " " | awk '{print $1}'`
2809 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2810 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2811 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2812
2813 if expr $YEAR ">" 1900 > /dev/null ; then
2814         E2FSPROGS_YEAR=$YEAR
2815 elif expr $YEAR ">" 90 >/dev/null ; then
2816         E2FSPROGS_YEAR=19$YEAR
2817 else
2818         E2FSPROGS_YEAR=20$YEAR
2819 fi
2820
2821 case $MONTH in
2822 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2823 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2824 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2825 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2826 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2827 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2828 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2829 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2830 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2831 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2832 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2833 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2834 *)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2835 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2836 esac
2837
2838 base_ver=`echo $E2FSPROGS_VERSION | \
2839                sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2840
2841 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2842
2843 case $E2FSPROGS_VERSION in
2844 *-WIP|pre-*)
2845         E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2846         ;;
2847 *)
2848         E2FSPROGS_PKGVER="$base_ver"
2849         ;;
2850 esac
2851
2852 unset DATE MONTH YEAR base_ver pre_vers date_spec
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2854 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2856 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2857
2858
2859
2860
2861
2862
2863 WITH_DIET_LIBC=
2864
2865 # Check whether --with-diet-libc was given.
2866 if test "${with_diet_libc+set}" = set; then :
2867   withval=$with_diet_libc; CC="diet cc -nostdinc"
2868 WITH_DIET_LIBC=yes
2869 if test -z "$LIBS"
2870 then
2871         LIBS="-lcompat"
2872 else
2873         LIBS="$LIBS -lcompat"
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2876 $as_echo "CC=$CC" >&6; }
2877 fi
2878 # Make sure we can run config.sub.
2879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2880   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883 $as_echo_n "checking build system type... " >&6; }
2884 if ${ac_cv_build+:} false; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   ac_build_alias=$build_alias
2888 test "x$ac_build_alias" = x &&
2889   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2890 test "x$ac_build_alias" = x &&
2891   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2894
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897 $as_echo "$ac_cv_build" >&6; }
2898 case $ac_cv_build in
2899 *-*-*) ;;
2900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2901 esac
2902 build=$ac_cv_build
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_build
2905 shift
2906 build_cpu=$1
2907 build_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 build_os=$*
2912 IFS=$ac_save_IFS
2913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2914
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917 $as_echo_n "checking host system type... " >&6; }
2918 if ${ac_cv_host+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test "x$host_alias" = x; then
2922   ac_cv_host=$ac_cv_build
2923 else
2924   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2926 fi
2927
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930 $as_echo "$ac_cv_host" >&6; }
2931 case $ac_cv_host in
2932 *-*-*) ;;
2933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2934 esac
2935 host=$ac_cv_host
2936 ac_save_IFS=$IFS; IFS='-'
2937 set x $ac_cv_host
2938 shift
2939 host_cpu=$1
2940 host_vendor=$2
2941 shift; shift
2942 # Remember, the first character of IFS is used to create $*,
2943 # except with old shells:
2944 host_os=$*
2945 IFS=$ac_save_IFS
2946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2947
2948
2949 DLOPEN_LIB=''
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$CC"; then
2964   ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$ac_cv_prog_CC"; then
2995   ac_ct_CC=$CC
2996   # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$ac_ct_CC"; then
3004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013     ac_cv_prog_ac_ct_CC="gcc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032   if test "x$ac_ct_CC" = x; then
3033     CC=""
3034   else
3035     case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3040 esac
3041     CC=$ac_ct_CC
3042   fi
3043 else
3044   CC="$ac_cv_prog_CC"
3045 fi
3046
3047 if test -z "$CC"; then
3048           if test -n "$ac_tool_prefix"; then
3049     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$CC"; then
3057   ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_exec_ext in '' $ac_executable_extensions; do
3065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066     ac_cv_prog_CC="${ac_tool_prefix}cc"
3067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086   fi
3087 fi
3088 if test -z "$CC"; then
3089   # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094   $as_echo_n "(cached) " >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099   ac_prog_rejected=no
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103   IFS=$as_save_IFS
3104   test -z "$as_dir" && as_dir=.
3105     for ac_exec_ext in '' $ac_executable_extensions; do
3106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108        ac_prog_rejected=yes
3109        continue
3110      fi
3111     ac_cv_prog_CC="cc"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 if test $ac_prog_rejected = yes; then
3120   # We found a bogon in the path, so make sure we never use it.
3121   set dummy $ac_cv_prog_CC
3122   shift
3123   if test $# != 0; then
3124     # We chose a different compiler from the bogus one.
3125     # However, it has the same basename, so the bogon will be chosen
3126     # first if we set CC to just the basename; use the full file name.
3127     shift
3128     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3129   fi
3130 fi
3131 fi
3132 fi
3133 CC=$ac_cv_prog_CC
3134 if test -n "$CC"; then
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 fi
3144 if test -z "$CC"; then
3145   if test -n "$ac_tool_prefix"; then
3146   for ac_prog in cl.exe
3147   do
3148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185     test -n "$CC" && break
3186   done
3187 fi
3188 if test -z "$CC"; then
3189   ac_ct_CC=$CC
3190   for ac_prog in cl.exe
3191 do
3192   # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$ac_ct_CC"; then
3200   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209     ac_cv_prog_ac_ct_CC="$ac_prog"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229   test -n "$ac_ct_CC" && break
3230 done
3231
3232   if test "x$ac_ct_CC" = x; then
3233     CC=""
3234   else
3235     case $cross_compiling:$ac_tool_warned in
3236 yes:)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3240 esac
3241     CC=$ac_ct_CC
3242   fi
3243 fi
3244
3245 fi
3246
3247
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3252
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3255 set X $ac_compile
3256 ac_compiler=$2
3257 for ac_option in --version -v -V -qversion; do
3258   { { ac_try="$ac_compiler $ac_option >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266   ac_status=$?
3267   if test -s conftest.err; then
3268     sed '10a\
3269 ... rest of stderr output deleted ...
3270          10q' conftest.err >conftest.er1
3271     cat conftest.er1 >&5
3272   fi
3273   rm -f conftest.er1 conftest.err
3274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275   test $ac_status = 0; }
3276 done
3277
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3300
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307   esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { { ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318   (eval "$ac_link_default") 2>&5
3319   ac_status=$?
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }; then :
3322   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3326 # Autoconf.
3327 for ac_file in $ac_files ''
3328 do
3329   test -f "$ac_file" || continue
3330   case $ac_file in
3331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3332         ;;
3333     [ab].out )
3334         # We found the default executable, but exeext='' is most
3335         # certainly right.
3336         break;;
3337     *.* )
3338         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339         then :; else
3340            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341         fi
3342         # We set ac_cv_exeext here because the later test for it is not
3343         # safe: cross compilers may not add the suffix if given an `-o'
3344         # argument, so we may need to know it at that point already.
3345         # Even if this section looks crufty: it has the advantage of
3346         # actually working.
3347         break;;
3348     * )
3349         break;;
3350   esac
3351 done
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353
3354 else
3355   ac_file=''
3356 fi
3357 if test -z "$ac_file"; then :
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3376
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_link") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391   test $ac_status = 0; }; then :
3392   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397   test -f "$ac_file" || continue
3398   case $ac_file in
3399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401           break;;
3402     * ) break;;
3403   esac
3404 done
3405 else
3406   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3414
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3417 ac_exeext=$EXEEXT
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420 #include <stdio.h>
3421 int
3422 main ()
3423 {
3424 FILE *f = fopen ("conftest.out", "w");
3425  return ferror (f) || fclose (f) != 0;
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run.  If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437   { { ac_try="$ac_link"
3438 case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444   (eval "$ac_link") 2>&5
3445   ac_status=$?
3446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447   test $ac_status = 0; }
3448   if { ac_try='./conftest$ac_cv_exeext'
3449   { { case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_try") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; }; then
3459     cross_compiling=no
3460   else
3461     if test "$cross_compiling" = maybe; then
3462         cross_compiling=yes
3463     else
3464         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3469     fi
3470   fi
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3474
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if ${ac_cv_objext+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_compile") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504   test $ac_status = 0; }; then :
3505   for ac_file in conftest.o conftest.obj conftest.*; do
3506   test -f "$ac_file" || continue;
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510        break;;
3511   esac
3512 done
3513 else
3514   $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3527 ac_objext=$OBJEXT
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539 #ifndef __GNUC__
3540        choke me
3541 #endif
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548   ac_compiler_gnu=yes
3549 else
3550   ac_compiler_gnu=no
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3559   GCC=yes
3560 else
3561   GCC=
3562 fi
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   ac_save_c_werror_flag=$ac_c_werror_flag
3571    ac_c_werror_flag=yes
3572    ac_cv_prog_cc_g=no
3573    CFLAGS="-g"
3574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586   ac_cv_prog_cc_g=yes
3587 else
3588   CFLAGS=""
3589       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601
3602 else
3603   ac_c_werror_flag=$ac_save_c_werror_flag
3604          CFLAGS="-g"
3605          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 if ac_fn_c_try_compile "$LINENO"; then :
3617   ac_cv_prog_cc_g=yes
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624    ac_c_werror_flag=$ac_save_c_werror_flag
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629   CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631   if test "$GCC" = yes; then
3632     CFLAGS="-g -O2"
3633   else
3634     CFLAGS="-g"
3635   fi
3636 else
3637   if test "$GCC" = yes; then
3638     CFLAGS="-O2"
3639   else
3640     CFLAGS=
3641   fi
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   ac_cv_prog_cc_c89=no
3649 ac_save_CC=$CC
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652 #include <stdarg.h>
3653 #include <stdio.h>
3654 struct stat;
3655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3656 struct buf { int x; };
3657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658 static char *e (p, i)
3659      char **p;
3660      int i;
3661 {
3662   return p[i];
3663 }
3664 static char *f (char * (*g) (char **, int), char **p, ...)
3665 {
3666   char *s;
3667   va_list v;
3668   va_start (v,p);
3669   s = g (p, va_arg (v,int));
3670   va_end (v);
3671   return s;
3672 }
3673
3674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3675    function prototypes and stuff, but not '\xHH' hex character constants.
3676    These don't provoke an error unfortunately, instead are silently treated
3677    as 'x'.  The following induces an error, until -std is added to get
3678    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3679    array size at least.  It's necessary to write '\x00'==0 to get something
3680    that's true only with -std.  */
3681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682
3683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684    inside strings and character constants.  */
3685 #define FOO(x) 'x'
3686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 int argc;
3693 char **argv;
3694 int
3695 main ()
3696 {
3697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 do
3705   CC="$ac_save_CC $ac_arg"
3706   if ac_fn_c_try_compile "$LINENO"; then :
3707   ac_cv_prog_cc_c89=$ac_arg
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext
3710   test "x$ac_cv_prog_cc_c89" != "xno" && break
3711 done
3712 rm -f conftest.$ac_ext
3713 CC=$ac_save_CC
3714
3715 fi
3716 # AC_CACHE_VAL
3717 case "x$ac_cv_prog_cc_c89" in
3718   x)
3719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3721   xno)
3722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3724   *)
3725     CC="$CC $ac_cv_prog_cc_c89"
3726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728 esac
3729 if test "x$ac_cv_prog_cc_c89" != xno; then :
3730
3731 fi
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3742 if ${ac_cv_lib_dl_dlopen+:} false; then :
3743   $as_echo_n "(cached) " >&6
3744 else
3745   ac_check_lib_save_LIBS=$LIBS
3746 LIBS="-ldl  $LIBS"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749
3750 /* Override any GCC internal prototype to avoid an error.
3751    Use char because int might match the return type of a GCC
3752    builtin and then its argument prototype would still apply.  */
3753 #ifdef __cplusplus
3754 extern "C"
3755 #endif
3756 char dlopen ();
3757 int
3758 main ()
3759 {
3760 return dlopen ();
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_link "$LINENO"; then :
3766   ac_cv_lib_dl_dlopen=yes
3767 else
3768   ac_cv_lib_dl_dlopen=no
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext \
3771     conftest$ac_exeext conftest.$ac_ext
3772 LIBS=$ac_check_lib_save_LIBS
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3777   DLOPEN_LIB=-ldl
3778 fi
3779
3780
3781
3782 # Check whether --with-cc was given.
3783 if test "${with_cc+set}" = set; then :
3784   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3785 fi
3786
3787
3788 # Check whether --with-ccopts was given.
3789 if test "${with_ccopts+set}" = set; then :
3790   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3791 fi
3792
3793
3794 # Check whether --with-ldopts was given.
3795 if test "${with_ldopts+set}" = set; then :
3796   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3797 fi
3798
3799 ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 if test -n "$ac_tool_prefix"; then
3805   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3806 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if ${ac_cv_prog_CC+:} false; then :
3810   $as_echo_n "(cached) " >&6
3811 else
3812   if test -n "$CC"; then
3813   ac_cv_prog_CC="$CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820     for ac_exec_ext in '' $ac_executable_extensions; do
3821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827   done
3828 IFS=$as_save_IFS
3829
3830 fi
3831 fi
3832 CC=$ac_cv_prog_CC
3833 if test -n "$CC"; then
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3836 else
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3839 fi
3840
3841
3842 fi
3843 if test -z "$ac_cv_prog_CC"; then
3844   ac_ct_CC=$CC
3845   # Extract the first word of "gcc", so it can be a program name with args.
3846 set dummy gcc; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -n "$ac_ct_CC"; then
3853   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860     for ac_exec_ext in '' $ac_executable_extensions; do
3861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_ac_ct_CC="gcc"
3863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867   done
3868 IFS=$as_save_IFS
3869
3870 fi
3871 fi
3872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3873 if test -n "$ac_ct_CC"; then
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3875 $as_echo "$ac_ct_CC" >&6; }
3876 else
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 fi
3880
3881   if test "x$ac_ct_CC" = x; then
3882     CC=""
3883   else
3884     case $cross_compiling:$ac_tool_warned in
3885 yes:)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3889 esac
3890     CC=$ac_ct_CC
3891   fi
3892 else
3893   CC="$ac_cv_prog_CC"
3894 fi
3895
3896 if test -z "$CC"; then
3897           if test -n "$ac_tool_prefix"; then
3898     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}cc; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_CC+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -n "$CC"; then
3906   ac_cv_prog_CC="$CC" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913     for ac_exec_ext in '' $ac_executable_extensions; do
3914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_prog_CC="${ac_tool_prefix}cc"
3916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920   done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 CC=$ac_cv_prog_CC
3926 if test -n "$CC"; then
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 $as_echo "$CC" >&6; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935   fi
3936 fi
3937 if test -z "$CC"; then
3938   # Extract the first word of "cc", so it can be a program name with args.
3939 set dummy cc; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_CC+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   if test -n "$CC"; then
3946   ac_cv_prog_CC="$CC" # Let the user override the test.
3947 else
3948   ac_prog_rejected=no
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3957        ac_prog_rejected=yes
3958        continue
3959      fi
3960     ac_cv_prog_CC="cc"
3961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962     break 2
3963   fi
3964 done
3965   done
3966 IFS=$as_save_IFS
3967
3968 if test $ac_prog_rejected = yes; then
3969   # We found a bogon in the path, so make sure we never use it.
3970   set dummy $ac_cv_prog_CC
3971   shift
3972   if test $# != 0; then
3973     # We chose a different compiler from the bogus one.
3974     # However, it has the same basename, so the bogon will be chosen
3975     # first if we set CC to just the basename; use the full file name.
3976     shift
3977     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3978   fi
3979 fi
3980 fi
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 $as_echo "$CC" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$CC"; then
3994   if test -n "$ac_tool_prefix"; then
3995   for ac_prog in cl.exe
3996   do
3997     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_CC+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -n "$CC"; then
4005   ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012     for ac_exec_ext in '' $ac_executable_extensions; do
4013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016     break 2
4017   fi
4018 done
4019   done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033
4034     test -n "$CC" && break
4035   done
4036 fi
4037 if test -z "$CC"; then
4038   ac_ct_CC=$CC
4039   for ac_prog in cl.exe
4040 do
4041   # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test -n "$ac_ct_CC"; then
4049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4050 else
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054   IFS=$as_save_IFS
4055   test -z "$as_dir" && as_dir=.
4056     for ac_exec_ext in '' $ac_executable_extensions; do
4057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058     ac_cv_prog_ac_ct_CC="$ac_prog"
4059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060     break 2
4061   fi
4062 done
4063   done
4064 IFS=$as_save_IFS
4065
4066 fi
4067 fi
4068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4069 if test -n "$ac_ct_CC"; then
4070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4071 $as_echo "$ac_ct_CC" >&6; }
4072 else
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078   test -n "$ac_ct_CC" && break
4079 done
4080
4081   if test "x$ac_ct_CC" = x; then
4082     CC=""
4083   else
4084     case $cross_compiling:$ac_tool_warned in
4085 yes:)
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4088 ac_tool_warned=yes ;;
4089 esac
4090     CC=$ac_ct_CC
4091   fi
4092 fi
4093
4094 fi
4095
4096
4097 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "no acceptable C compiler found in \$PATH
4100 See \`config.log' for more details" "$LINENO" 5; }
4101
4102 # Provide some information about the compiler.
4103 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4104 set X $ac_compile
4105 ac_compiler=$2
4106 for ac_option in --version -v -V -qversion; do
4107   { { ac_try="$ac_compiler $ac_option >&5"
4108 case "(($ac_try" in
4109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110   *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113 $as_echo "$ac_try_echo"; } >&5
4114   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4115   ac_status=$?
4116   if test -s conftest.err; then
4117     sed '10a\
4118 ... rest of stderr output deleted ...
4119          10q' conftest.err >conftest.er1
4120     cat conftest.er1 >&5
4121   fi
4122   rm -f conftest.er1 conftest.err
4123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124   test $ac_status = 0; }
4125 done
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4129 if ${ac_cv_c_compiler_gnu+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h.  */
4134
4135 int
4136 main ()
4137 {
4138 #ifndef __GNUC__
4139        choke me
4140 #endif
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147   ac_compiler_gnu=yes
4148 else
4149   ac_compiler_gnu=no
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4153
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4157 if test $ac_compiler_gnu = yes; then
4158   GCC=yes
4159 else
4160   GCC=
4161 fi
4162 ac_test_CFLAGS=${CFLAGS+set}
4163 ac_save_CFLAGS=$CFLAGS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4166 if ${ac_cv_prog_cc_g+:} false; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   ac_save_c_werror_flag=$ac_c_werror_flag
4170    ac_c_werror_flag=yes
4171    ac_cv_prog_cc_g=no
4172    CFLAGS="-g"
4173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175
4176 int
4177 main ()
4178 {
4179
4180   ;
4181   return 0;
4182 }
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185   ac_cv_prog_cc_g=yes
4186 else
4187   CFLAGS=""
4188       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h.  */
4190
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200
4201 else
4202   ac_c_werror_flag=$ac_save_c_werror_flag
4203          CFLAGS="-g"
4204          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h.  */
4206
4207 int
4208 main ()
4209 {
4210
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216   ac_cv_prog_cc_g=yes
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223    ac_c_werror_flag=$ac_save_c_werror_flag
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4226 $as_echo "$ac_cv_prog_cc_g" >&6; }
4227 if test "$ac_test_CFLAGS" = set; then
4228   CFLAGS=$ac_save_CFLAGS
4229 elif test $ac_cv_prog_cc_g = yes; then
4230   if test "$GCC" = yes; then
4231     CFLAGS="-g -O2"
4232   else
4233     CFLAGS="-g"
4234   fi
4235 else
4236   if test "$GCC" = yes; then
4237     CFLAGS="-O2"
4238   else
4239     CFLAGS=
4240   fi
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4243 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4244 if ${ac_cv_prog_cc_c89+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   ac_cv_prog_cc_c89=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4251 #include <stdarg.h>
4252 #include <stdio.h>
4253 struct stat;
4254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4255 struct buf { int x; };
4256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4257 static char *e (p, i)
4258      char **p;
4259      int i;
4260 {
4261   return p[i];
4262 }
4263 static char *f (char * (*g) (char **, int), char **p, ...)
4264 {
4265   char *s;
4266   va_list v;
4267   va_start (v,p);
4268   s = g (p, va_arg (v,int));
4269   va_end (v);
4270   return s;
4271 }
4272
4273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4274    function prototypes and stuff, but not '\xHH' hex character constants.
4275    These don't provoke an error unfortunately, instead are silently treated
4276    as 'x'.  The following induces an error, until -std is added to get
4277    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4278    array size at least.  It's necessary to write '\x00'==0 to get something
4279    that's true only with -std.  */
4280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4281
4282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4283    inside strings and character constants.  */
4284 #define FOO(x) 'x'
4285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4286
4287 int test (int i, double x);
4288 struct s1 {int (*f) (int a);};
4289 struct s2 {int (*f) (double a);};
4290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4291 int argc;
4292 char **argv;
4293 int
4294 main ()
4295 {
4296 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4302         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4303 do
4304   CC="$ac_save_CC $ac_arg"
4305   if ac_fn_c_try_compile "$LINENO"; then :
4306   ac_cv_prog_cc_c89=$ac_arg
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext
4309   test "x$ac_cv_prog_cc_c89" != "xno" && break
4310 done
4311 rm -f conftest.$ac_ext
4312 CC=$ac_save_CC
4313
4314 fi
4315 # AC_CACHE_VAL
4316 case "x$ac_cv_prog_cc_c89" in
4317   x)
4318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319 $as_echo "none needed" >&6; } ;;
4320   xno)
4321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4322 $as_echo "unsupported" >&6; } ;;
4323   *)
4324     CC="$CC $ac_cv_prog_cc_c89"
4325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4326 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4327 esac
4328 if test "x$ac_cv_prog_cc_c89" != xno; then :
4329
4330 fi
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338 if test "$GCC" = yes; then
4339    RDYNAMIC="-rdynamic"
4340
4341 fi
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4348 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4349 # On Suns, sometimes $CPP names a directory.
4350 if test -n "$CPP" && test -d "$CPP"; then
4351   CPP=
4352 fi
4353 if test -z "$CPP"; then
4354   if ${ac_cv_prog_CPP+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357       # Double quotes because CPP needs to be expanded
4358     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4359     do
4360       ac_preproc_ok=false
4361 for ac_c_preproc_warn_flag in '' yes
4362 do
4363   # Use a header file that comes with gcc, so configuring glibc
4364   # with a fresh cross-compiler works.
4365   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366   # <limits.h> exists even on freestanding compilers.
4367   # On the NeXT, cc -E runs the code through the compiler's parser,
4368   # not just through cpp. "Syntax error" is here to catch this case.
4369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h.  */
4371 #ifdef __STDC__
4372 # include <limits.h>
4373 #else
4374 # include <assert.h>
4375 #endif
4376                      Syntax error
4377 _ACEOF
4378 if ac_fn_c_try_cpp "$LINENO"; then :
4379
4380 else
4381   # Broken: fails on valid input.
4382 continue
4383 fi
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386   # OK, works on sane cases.  Now check whether nonexistent headers
4387   # can be detected and how.
4388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h.  */
4390 #include <ac_nonexistent.h>
4391 _ACEOF
4392 if ac_fn_c_try_cpp "$LINENO"; then :
4393   # Broken: success on invalid input.
4394 continue
4395 else
4396   # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4399 fi
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.i conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then :
4406   break
4407 fi
4408
4409     done
4410     ac_cv_prog_CPP=$CPP
4411
4412 fi
4413   CPP=$ac_cv_prog_CPP
4414 else
4415   ac_cv_prog_CPP=$CPP
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4418 $as_echo "$CPP" >&6; }
4419 ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4421 do
4422   # Use a header file that comes with gcc, so configuring glibc
4423   # with a fresh cross-compiler works.
4424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425   # <limits.h> exists even on freestanding compilers.
4426   # On the NeXT, cc -E runs the code through the compiler's parser,
4427   # not just through cpp. "Syntax error" is here to catch this case.
4428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435                      Syntax error
4436 _ACEOF
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4438
4439 else
4440   # Broken: fails on valid input.
4441 continue
4442 fi
4443 rm -f conftest.err conftest.i conftest.$ac_ext
4444
4445   # OK, works on sane cases.  Now check whether nonexistent headers
4446   # can be detected and how.
4447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #include <ac_nonexistent.h>
4450 _ACEOF
4451 if ac_fn_c_try_cpp "$LINENO"; then :
4452   # Broken: success on invalid input.
4453 continue
4454 else
4455   # Passes both tests.
4456 ac_preproc_ok=:
4457 break
4458 fi
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461 done
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.i conftest.err conftest.$ac_ext
4464 if $ac_preproc_ok; then :
4465
4466 else
4467   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details" "$LINENO" 5; }
4471 fi
4472
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4480 $as_echo_n "checking for additional special compiler flags... " >&6; }
4481 if test "$GCC" = yes
4482 then
4483     case "$host_cpu" in
4484         alpha)          addcflags="-mieee" ;;
4485     esac
4486 fi
4487 if test "x$addcflags" != x
4488 then
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4490 $as_echo "$addcflags" >&6; }
4491     CFLAGS="$addcflags $CFLAGS"
4492 else
4493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4494 $as_echo "(none)" >&6; }
4495 fi
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4498 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4499 if ${ac_cv_path_GREP+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -z "$GREP"; then
4503   ac_path_GREP_found=false
4504   # Loop through the user's path and test for each of PROGNAME-LIST
4505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_prog in grep ggrep; do
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4513       as_fn_executable_p "$ac_path_GREP" || continue
4514 # Check for GNU ac_path_GREP and select it if it is found.
4515   # Check for GNU $ac_path_GREP
4516 case `"$ac_path_GREP" --version 2>&1` in
4517 *GNU*)
4518   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519 *)
4520   ac_count=0
4521   $as_echo_n 0123456789 >"conftest.in"
4522   while :
4523   do
4524     cat "conftest.in" "conftest.in" >"conftest.tmp"
4525     mv "conftest.tmp" "conftest.in"
4526     cp "conftest.in" "conftest.nl"
4527     $as_echo 'GREP' >> "conftest.nl"
4528     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530     as_fn_arith $ac_count + 1 && ac_count=$as_val
4531     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4532       # Best one so far, save it but keep looking for a better one
4533       ac_cv_path_GREP="$ac_path_GREP"
4534       ac_path_GREP_max=$ac_count
4535     fi
4536     # 10*(2^10) chars as input seems more than enough
4537     test $ac_count -gt 10 && break
4538   done
4539   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 esac
4541
4542       $ac_path_GREP_found && break 3
4543     done
4544   done
4545   done
4546 IFS=$as_save_IFS
4547   if test -z "$ac_cv_path_GREP"; then
4548     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549   fi
4550 else
4551   ac_cv_path_GREP=$GREP
4552 fi
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4556 $as_echo "$ac_cv_path_GREP" >&6; }
4557  GREP="$ac_cv_path_GREP"
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4561 $as_echo_n "checking for egrep... " >&6; }
4562 if ${ac_cv_path_EGREP+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4566    then ac_cv_path_EGREP="$GREP -E"
4567    else
4568      if test -z "$EGREP"; then
4569   ac_path_EGREP_found=false
4570   # Loop through the user's path and test for each of PROGNAME-LIST
4571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576     for ac_prog in egrep; do
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4579       as_fn_executable_p "$ac_path_EGREP" || continue
4580 # Check for GNU ac_path_EGREP and select it if it is found.
4581   # Check for GNU $ac_path_EGREP
4582 case `"$ac_path_EGREP" --version 2>&1` in
4583 *GNU*)
4584   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4585 *)
4586   ac_count=0
4587   $as_echo_n 0123456789 >"conftest.in"
4588   while :
4589   do
4590     cat "conftest.in" "conftest.in" >"conftest.tmp"
4591     mv "conftest.tmp" "conftest.in"
4592     cp "conftest.in" "conftest.nl"
4593     $as_echo 'EGREP' >> "conftest.nl"
4594     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596     as_fn_arith $ac_count + 1 && ac_count=$as_val
4597     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4598       # Best one so far, save it but keep looking for a better one
4599       ac_cv_path_EGREP="$ac_path_EGREP"
4600       ac_path_EGREP_max=$ac_count
4601     fi
4602     # 10*(2^10) chars as input seems more than enough
4603     test $ac_count -gt 10 && break
4604   done
4605   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4607
4608       $ac_path_EGREP_found && break 3
4609     done
4610   done
4611   done
4612 IFS=$as_save_IFS
4613   if test -z "$ac_cv_path_EGREP"; then
4614     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615   fi
4616 else
4617   ac_cv_path_EGREP=$EGREP
4618 fi
4619
4620    fi
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4623 $as_echo "$ac_cv_path_EGREP" >&6; }
4624  EGREP="$ac_cv_path_EGREP"
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4628 $as_echo_n "checking for ANSI C header files... " >&6; }
4629 if ${ac_cv_header_stdc+:} false; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h.  */
4634 #include <stdlib.h>
4635 #include <stdarg.h>
4636 #include <string.h>
4637 #include <float.h>
4638
4639 int
4640 main ()
4641 {
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648   ac_cv_header_stdc=yes
4649 else
4650   ac_cv_header_stdc=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658 #include <string.h>
4659
4660 _ACEOF
4661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662   $EGREP "memchr" >/dev/null 2>&1; then :
4663
4664 else
4665   ac_cv_header_stdc=no
4666 fi
4667 rm -f conftest*
4668
4669 fi
4670
4671 if test $ac_cv_header_stdc = yes; then
4672   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 #include <stdlib.h>
4676
4677 _ACEOF
4678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4679   $EGREP "free" >/dev/null 2>&1; then :
4680
4681 else
4682   ac_cv_header_stdc=no
4683 fi
4684 rm -f conftest*
4685
4686 fi
4687
4688 if test $ac_cv_header_stdc = yes; then
4689   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4690   if test "$cross_compiling" = yes; then :
4691   :
4692 else
4693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h.  */
4695 #include <ctype.h>
4696 #include <stdlib.h>
4697 #if ((' ' & 0x0FF) == 0x020)
4698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4700 #else
4701 # define ISLOWER(c) \
4702                    (('a' <= (c) && (c) <= 'i') \
4703                      || ('j' <= (c) && (c) <= 'r') \
4704                      || ('s' <= (c) && (c) <= 'z'))
4705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4706 #endif
4707
4708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4709 int
4710 main ()
4711 {
4712   int i;
4713   for (i = 0; i < 256; i++)
4714     if (XOR (islower (i), ISLOWER (i))
4715         || toupper (i) != TOUPPER (i))
4716       return 2;
4717   return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_run "$LINENO"; then :
4721
4722 else
4723   ac_cv_header_stdc=no
4724 fi
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4726   conftest.$ac_objext conftest.beam conftest.$ac_ext
4727 fi
4728
4729 fi
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4732 $as_echo "$ac_cv_header_stdc" >&6; }
4733 if test $ac_cv_header_stdc = yes; then
4734
4735 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4736
4737 fi
4738
4739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4740 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4741                   inttypes.h stdint.h unistd.h
4742 do :
4743   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4745 "
4746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4747   cat >>confdefs.h <<_ACEOF
4748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 _ACEOF
4750
4751 fi
4752
4753 done
4754
4755
4756
4757   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4758 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4759   MINIX=yes
4760 else
4761   MINIX=
4762 fi
4763
4764
4765   if test "$MINIX" = yes; then
4766
4767 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4768
4769
4770 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4771
4772
4773 $as_echo "#define _MINIX 1" >>confdefs.h
4774
4775   fi
4776
4777
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4779 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4780 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h.  */
4785
4786 #         define __EXTENSIONS__ 1
4787           $ac_includes_default
4788 int
4789 main ()
4790 {
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797   ac_cv_safe_to_define___extensions__=yes
4798 else
4799   ac_cv_safe_to_define___extensions__=no
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4804 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4805   test $ac_cv_safe_to_define___extensions__ = yes &&
4806     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4807
4808   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4809
4810   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4811
4812   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4813
4814   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4815
4816
4817 LIB_EXT=.a
4818 STATIC_LIB_EXT=.a
4819 PROFILED_LIB_EXT=.a
4820
4821 # Check whether --with-root-prefix was given.
4822 if test "${with_root_prefix+set}" = set; then :
4823   withval=$with_root_prefix; root_prefix=$withval
4824 else
4825   root_prefix=NONE
4826 fi
4827 # Check whether --enable-maintainer-mode was given.
4828 if test "${enable_maintainer_mode+set}" = set; then :
4829   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4830 then
4831         MAINTAINER_CMT=#
4832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4833 $as_echo "Disabling maintainer mode" >&6; }
4834 else
4835         MAINTAINER_CMT=
4836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4837 $as_echo "Enabling maintainer mode" >&6; }
4838 fi
4839
4840 else
4841   MAINTAINER_CMT=#
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4843 $as_echo "Disabling maintainer mode by default" >&6; }
4844
4845 fi
4846
4847
4848 # Check whether --enable-symlink-install was given.
4849 if test "${enable_symlink_install+set}" = set; then :
4850   enableval=$enable_symlink_install; if test "$enableval" = "no"
4851 then
4852         LINK_INSTALL_FLAGS=-f
4853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4854 $as_echo "Disabling symlinks for install" >&6; }
4855 else
4856         LINK_INSTALL_FLAGS=-sf
4857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4858 $as_echo "Enabling symlinks for install" >&6; }
4859 fi
4860
4861 else
4862   LINK_INSTALL_FLAGS=-f
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4864 $as_echo "Disabling symlinks for install by default" >&6; }
4865
4866 fi
4867
4868
4869 relative_symlink_defined=
4870 # Check whether --enable-relative-symlinks was given.
4871 if test "${enable_relative_symlinks+set}" = set; then :
4872   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4873 then
4874         SYMLINK_RELATIVE=
4875         relative_symlink_defined=yes
4876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4877 $as_echo "Disabling relative symlinks for install" >&6; }
4878 else
4879         SYMLINK_RELATIVE=--relative
4880         relative_symlink_defined=yes
4881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4882 $as_echo "Enabling relative symlinks for install" >&6; }
4883 fi
4884 fi
4885
4886 # Check whether --enable-symlink-relative-symlinks was given.
4887 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4888   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4889 then
4890         SYMLINK_RELATIVE=yes
4891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4892 $as_echo "Disabling relative symlinks for install" >&6; }
4893 else
4894         SYMLINK_RELATIVE=--relative
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4896 $as_echo "Enabling relative symlinks for install" >&6; }
4897 fi
4898
4899 else
4900   if test -z "$relative_symlink_defined"
4901 then
4902         SYMLINK_RELATIVE=
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4904 $as_echo "Disabling relative symlinks for install by default" >&6; }
4905 fi
4906
4907 fi
4908
4909
4910 # Check whether --enable-symlink-build was given.
4911 if test "${enable_symlink_build+set}" = set; then :
4912   enableval=$enable_symlink_build; if test "$enableval" = "no"
4913 then
4914         LINK_BUILD_FLAGS=
4915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4916 $as_echo "Disabling symlinks for build" >&6; }
4917 else
4918         LINK_BUILD_FLAGS=-s
4919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4920 $as_echo "Enabling symlinks for build" >&6; }
4921 fi
4922
4923 else
4924   LINK_BUILD_FLAGS=
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4926 $as_echo "Disabling symlinks for build by default" >&6; }
4927
4928 fi
4929
4930
4931 # Check whether --enable-verbose-makecmds was given.
4932 if test "${enable_verbose_makecmds+set}" = set; then :
4933   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4934 then
4935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4936 $as_echo "Disabling verbose make commands" >&6; }
4937         E=@echo
4938         ES=echo
4939         Q=@
4940 else
4941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4942 $as_echo "Enabling verbose make commands" >&6; }
4943         E=@\\#
4944         ES=\\#
4945         Q=
4946 fi
4947
4948 else
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4950 $as_echo "Disabling verbose make commands" >&6; }
4951 E=@echo
4952 ES=echo
4953 Q=@
4954
4955 fi
4956
4957
4958
4959
4960 E2_PKG_CONFIG_STATIC=--static
4961 LDFLAG_DYNAMIC=
4962 PRIVATE_LIBS_CMT=
4963 # Check whether --enable-elf-shlibs was given.
4964 if test "${enable_elf_shlibs+set}" = set; then :
4965   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4966 then
4967         ELF_CMT=#
4968         MAKEFILE_ELF=/dev/null
4969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4970 $as_echo "Disabling ELF shared libraries" >&6; }
4971 else
4972         E2_PKG_CONFIG_STATIC=
4973         ELF_CMT=
4974         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4975         case "$host_os" in
4976         solaris2.*)
4977                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4978         ;;
4979         esac
4980         BINARY_TYPE=elfbin
4981         LIB_EXT=.so
4982         PRIVATE_LIBS_CMT=#
4983         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4985 $as_echo "Enabling ELF shared libraries" >&6; }
4986 fi
4987
4988 else
4989   MAKEFILE_ELF=/dev/null
4990 ELF_CMT=#
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4992 $as_echo "Disabling ELF shared libraries by default" >&6; }
4993
4994 fi
4995
4996
4997
4998 # Check whether --enable-bsd-shlibs was given.
4999 if test "${enable_bsd_shlibs+set}" = set; then :
5000   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5001 then
5002         BSDLIB_CMT=#
5003         MAKEFILE_BSDLIB=/dev/null
5004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5005 $as_echo "Disabling BSD shared libraries" >&6; }
5006 else
5007         E2_PKG_CONFIG_STATIC=
5008         BSDLIB_CMT=
5009         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5010         LIB_EXT=.so
5011         case "$host_os" in
5012         darwin*)
5013                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5014                 LIB_EXT=.dylib
5015         ;;
5016         esac
5017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5018 $as_echo "Enabling BSD shared libraries" >&6; }
5019 fi
5020
5021 else
5022   MAKEFILE_BSDLIB=/dev/null
5023 BSDLIB_CMT=#
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5025 $as_echo "Disabling BSD shared libraries by default" >&6; }
5026
5027 fi
5028
5029
5030
5031 # Check whether --enable-profile was given.
5032 if test "${enable_profile+set}" = set; then :
5033   enableval=$enable_profile; if test "$enableval" = "no"
5034 then
5035         PROFILE_CMT=#
5036         MAKEFILE_PROFILE=/dev/null
5037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5038 $as_echo "Disabling profiling libraries" >&6; }
5039 else
5040         PROFILE_CMT=
5041         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5042         PROFILED_LIB_EXT=_p.a
5043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5044 $as_echo "Building profiling libraries" >&6; }
5045 fi
5046
5047 else
5048   PROFILE_CMT=#
5049 MAKEFILE_PROFILE=/dev/null
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5051 $as_echo "Disabling profiling libraries by default" >&6; }
5052
5053 fi
5054
5055
5056
5057 # Check whether --enable-gcov was given.
5058 if test "${enable_gcov+set}" = set; then :
5059   enableval=$enable_gcov; if test "$enableval" = "yes"
5060 then
5061         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5062         LDFLAGS="-fprofile-arcs -ftest-coverage"
5063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5064 $as_echo "Enabling gcov support" >&6; }
5065 fi
5066
5067 fi
5068
5069 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5070 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5071 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5072 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5073 # Check whether --enable-hardening was given.
5074 if test "${enable_hardening+set}" = set; then :
5075   enableval=$enable_hardening; if test "$enableval" = "yes"
5076 then
5077         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5078         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5079         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5080         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5081         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5082         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5083         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5084         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5086 $as_echo "Enabling hardening support" >&6; }
5087 fi
5088
5089 fi
5090
5091
5092
5093
5094
5095
5096 # Check whether --enable-jbd-debug was given.
5097 if test "${enable_jbd_debug+set}" = set; then :
5098   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5099 then
5100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5101 $as_echo "Disabling journal debugging" >&6; }
5102 else
5103
5104 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5105
5106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5107 $as_echo "Enabling journal debugging" >&6; }
5108 fi
5109
5110 else
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5112 $as_echo "Disabling journal debugging by default" >&6; }
5113
5114 fi
5115
5116 # Check whether --enable-blkid-debug was given.
5117 if test "${enable_blkid_debug+set}" = set; then :
5118   enableval=$enable_blkid_debug; if test "$enableval" = "no"
5119 then
5120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5121 $as_echo "Disabling blkid debugging" >&6; }
5122 else
5123
5124 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5125
5126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5127 $as_echo "Enabling blkid debugging" >&6; }
5128 fi
5129
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5132 $as_echo "Disabling blkid debugging by default" >&6; }
5133
5134 fi
5135
5136 # Check whether --enable-testio-debug was given.
5137 if test "${enable_testio_debug+set}" = set; then :
5138   enableval=$enable_testio_debug;
5139 if test "$enableval" = "no"
5140 then
5141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5142 $as_echo "Disabling testio debugging" >&6; }
5143         TEST_IO_CMT="#"
5144 else
5145         TEST_IO_CMT=
5146         $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5147
5148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5149 $as_echo "Enabling testio debugging" >&6; }
5150 fi
5151
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5154 $as_echo "Enabling testio debugging by default" >&6; }
5155 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5156
5157 TEST_IO_CMT=
5158
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5170         if test -n "$ac_tool_prefix"; then
5171   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   case $PKG_CONFIG in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195   done
5196 IFS=$as_save_IFS
5197
5198   ;;
5199 esac
5200 fi
5201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5202 if test -n "$PKG_CONFIG"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5204 $as_echo "$PKG_CONFIG" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 fi
5212 if test -z "$ac_cv_path_PKG_CONFIG"; then
5213   ac_pt_PKG_CONFIG=$PKG_CONFIG
5214   # Extract the first word of "pkg-config", so it can be a program name with args.
5215 set dummy pkg-config; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   case $ac_pt_PKG_CONFIG in
5222   [\\/]* | ?:[\\/]*)
5223   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5224   ;;
5225   *)
5226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5240
5241   ;;
5242 esac
5243 fi
5244 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5245 if test -n "$ac_pt_PKG_CONFIG"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5247 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253   if test "x$ac_pt_PKG_CONFIG" = x; then
5254     PKG_CONFIG=""
5255   else
5256     case $cross_compiling:$ac_tool_warned in
5257 yes:)
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5261 esac
5262     PKG_CONFIG=$ac_pt_PKG_CONFIG
5263   fi
5264 else
5265   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5266 fi
5267
5268 fi
5269 if test -n "$PKG_CONFIG"; then
5270         _pkg_min_version=0.9.0
5271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5272 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5273         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5274                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5275 $as_echo "yes" >&6; }
5276         else
5277                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279                 PKG_CONFIG=""
5280         fi
5281 fi
5282 LIBUUID=
5283 DEPLIBUUID=
5284 STATIC_LIBUUID=
5285 DEPSTATIC_LIBUUID=
5286 PROFILED_LIBUUID=
5287 DEPPROFILED_LIBUUID=
5288 UUID_CMT=
5289 # Check whether --enable-libuuid was given.
5290 if test "${enable_libuuid+set}" = set; then :
5291   enableval=$enable_libuuid; if test "$enableval" = "no"
5292 then
5293         if test -z "$PKG_CONFIG"; then
5294                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5295         fi
5296
5297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5298 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5299 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5300   $as_echo_n "(cached) " >&6
5301 else
5302   ac_check_lib_save_LIBS=$LIBS
5303 LIBS="-luuid  $LIBS"
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h.  */
5306
5307 /* Override any GCC internal prototype to avoid an error.
5308    Use char because int might match the return type of a GCC
5309    builtin and then its argument prototype would still apply.  */
5310 #ifdef __cplusplus
5311 extern "C"
5312 #endif
5313 char uuid_generate ();
5314 int
5315 main ()
5316 {
5317 return uuid_generate ();
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 if ac_fn_c_try_link "$LINENO"; then :
5323   ac_cv_lib_uuid_uuid_generate=yes
5324 else
5325   ac_cv_lib_uuid_uuid_generate=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext \
5328     conftest$ac_exeext conftest.$ac_ext
5329 LIBS=$ac_check_lib_save_LIBS
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5332 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5333 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5334   LIBUUID=`$PKG_CONFIG --libs uuid`;
5335                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5336 else
5337   as_fn_error $? "external uuid library not found" "$LINENO" 5
5338 fi
5339
5340         PROFILED_LIBUUID=$LIBUUID
5341         UUID_CMT=#
5342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5343 $as_echo "Disabling private uuid library" >&6; }
5344 else
5345         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5346         DEPLIBUUID=$LIBUUID
5347         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5348         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5349         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5350         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5352 $as_echo "Enabling private uuid library" >&6; }
5353 fi
5354
5355 else
5356   if test -n "$PKG_CONFIG"; then
5357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5358 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5359 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   ac_check_lib_save_LIBS=$LIBS
5363 LIBS="-luuid  $LIBS"
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h.  */
5366
5367 /* Override any GCC internal prototype to avoid an error.
5368    Use char because int might match the return type of a GCC
5369    builtin and then its argument prototype would still apply.  */
5370 #ifdef __cplusplus
5371 extern "C"
5372 #endif
5373 char uuid_generate ();
5374 int
5375 main ()
5376 {
5377 return uuid_generate ();
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"; then :
5383   ac_cv_lib_uuid_uuid_generate=yes
5384 else
5385   ac_cv_lib_uuid_uuid_generate=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext \
5388     conftest$ac_exeext conftest.$ac_ext
5389 LIBS=$ac_check_lib_save_LIBS
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5392 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5393 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5394   LIBUUID=`$PKG_CONFIG --libs uuid`;
5395                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5396 fi
5397
5398 fi
5399 if test -n "$LIBUUID"; then
5400         PROFILED_LIBUUID=$LIBUUID
5401         UUID_CMT=#
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5403 $as_echo "Using system uuid by default" >&6; }
5404 else
5405         LIBUUID='$(LIB)/libuuid'$LIB_EXT
5406         DEPLIBUUID=$LIBUUID
5407         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5408         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5409         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5410         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5412 $as_echo "Enabling private uuid library by default" >&6; }
5413 fi
5414
5415 fi
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5432         if test -n "$ac_tool_prefix"; then
5433   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   case $PKG_CONFIG in
5441   [\\/]* | ?:[\\/]*)
5442   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5443   ;;
5444   *)
5445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460   ;;
5461 esac
5462 fi
5463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5464 if test -n "$PKG_CONFIG"; then
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5466 $as_echo "$PKG_CONFIG" >&6; }
5467 else
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_path_PKG_CONFIG"; then
5475   ac_pt_PKG_CONFIG=$PKG_CONFIG
5476   # Extract the first word of "pkg-config", so it can be a program name with args.
5477 set dummy pkg-config; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   case $ac_pt_PKG_CONFIG in
5484   [\\/]* | ?:[\\/]*)
5485   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5486   ;;
5487   *)
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503   ;;
5504 esac
5505 fi
5506 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5507 if test -n "$ac_pt_PKG_CONFIG"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5509 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515   if test "x$ac_pt_PKG_CONFIG" = x; then
5516     PKG_CONFIG=""
5517   else
5518     case $cross_compiling:$ac_tool_warned in
5519 yes:)
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5523 esac
5524     PKG_CONFIG=$ac_pt_PKG_CONFIG
5525   fi
5526 else
5527   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5528 fi
5529
5530 fi
5531 if test -n "$PKG_CONFIG"; then
5532         _pkg_min_version=0.9.0
5533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5534 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5535         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5536                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537 $as_echo "yes" >&6; }
5538         else
5539                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541                 PKG_CONFIG=""
5542         fi
5543 fi
5544 LIBBLKID=
5545 DEPLIBBLKID=
5546 STATIC_LIBBLKID=
5547 DEPSTATIC_LIBBLKID=
5548 PROFILED_LIBBLKID=
5549 DEPPROFILED_LIBBLKID=
5550 BLKID_CMT=
5551
5552 # Check whether --enable-libblkid was given.
5553 if test "${enable_libblkid+set}" = set; then :
5554   enableval=$enable_libblkid; if test "$enableval" = "no"
5555 then
5556         if test -z "$PKG_CONFIG"; then
5557                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5558         fi
5559
5560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5561 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5562 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   ac_check_lib_save_LIBS=$LIBS
5566 LIBS="-lblkid -luuid $LIBS"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569
5570 /* Override any GCC internal prototype to avoid an error.
5571    Use char because int might match the return type of a GCC
5572    builtin and then its argument prototype would still apply.  */
5573 #ifdef __cplusplus
5574 extern "C"
5575 #endif
5576 char blkid_get_cache ();
5577 int
5578 main ()
5579 {
5580 return blkid_get_cache ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 if ac_fn_c_try_link "$LINENO"; then :
5586   ac_cv_lib_blkid_blkid_get_cache=yes
5587 else
5588   ac_cv_lib_blkid_blkid_get_cache=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext \
5591     conftest$ac_exeext conftest.$ac_ext
5592 LIBS=$ac_check_lib_save_LIBS
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5595 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5596 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5597   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5598                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5599 else
5600   as_fn_error $? "external blkid library not found" "$LINENO" 5
5601 fi
5602
5603         BLKID_CMT=#
5604         PROFILED_LIBBLKID=$LIBBLKID
5605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5606 $as_echo "Disabling private blkid library" >&6; }
5607 else
5608         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5609         DEPLIBBLKID=$LIBBLKID
5610         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5611         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5612         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5613         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5614         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5615
5616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5617 $as_echo "Enabling private blkid library" >&6; }
5618 fi
5619
5620 else
5621   if test -n "$PKG_CONFIG"; then
5622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5623 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5624 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   ac_check_lib_save_LIBS=$LIBS
5628 LIBS="-lblkid  $LIBS"
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h.  */
5631
5632 /* Override any GCC internal prototype to avoid an error.
5633    Use char because int might match the return type of a GCC
5634    builtin and then its argument prototype would still apply.  */
5635 #ifdef __cplusplus
5636 extern "C"
5637 #endif
5638 char blkid_get_cache ();
5639 int
5640 main ()
5641 {
5642 return blkid_get_cache ();
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648   ac_cv_lib_blkid_blkid_get_cache=yes
5649 else
5650   ac_cv_lib_blkid_blkid_get_cache=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext \
5653     conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5657 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5658 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5659   LIBBLKID=`$PKG_CONFIG --libs blkid`;
5660                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5661 fi
5662
5663 fi
5664 if test -n "$LIBBLKID"; then
5665         BLKID_CMT=#
5666         PROFILED_LIBBLKID=$LIBBLKID
5667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5668 $as_echo "Using system blkid library by default" >&6; }
5669 else
5670         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5671         DEPLIBBLKID=$LIBBLKID
5672         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5673         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5674         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5675         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5676         $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5677
5678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5679 $as_echo "Enabling private blkid library by default" >&6; }
5680 fi
5681
5682 fi
5683
5684
5685
5686
5687
5688
5689
5690
5691 ALL_CMT=
5692 SUBSET_CMT=
5693 # Check whether --enable-subset was given.
5694 if test "${enable_subset+set}" = set; then :
5695   enableval=$enable_subset; if test "$enableval" = "no"
5696 then
5697         SUBSET_CMT=#
5698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5699 $as_echo "Disabling subset-only build" >&6; }
5700 else
5701         ALL_CMT=#
5702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5703 $as_echo "Enabling subset-only-build" >&6; }
5704 fi
5705
5706 fi
5707
5708
5709
5710
5711 # Check whether --enable-backtrace was given.
5712 if test "${enable_backtrace+set}" = set; then :
5713   enableval=$enable_backtrace; if test "$enableval" = "no"
5714 then
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5716 $as_echo "Disabling use of backtrace" >&6; }
5717         $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5718
5719 else
5720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5721 $as_echo "Enabling use of backtrace" >&6; }
5722 fi
5723
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5726 $as_echo "Enabling use of backtrace by default" >&6; }
5727
5728 fi
5729
5730 # Check whether --enable-debugfs was given.
5731 if test "${enable_debugfs+set}" = set; then :
5732   enableval=$enable_debugfs; if test "$enableval" = "no"
5733 then
5734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5735 $as_echo "Disabling debugfs support" >&6; }
5736         DEBUGFS_CMT="#"
5737 else
5738         DEBUGFS_CMT=
5739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5740 $as_echo "Enabling debugfs support" >&6; }
5741 fi
5742
5743 else
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5745 $as_echo "Enabling debugfs support by default" >&6; }
5746 DEBUGFS_CMT=
5747
5748 fi
5749
5750
5751 # Check whether --enable-imager was given.
5752 if test "${enable_imager+set}" = set; then :
5753   enableval=$enable_imager; if test "$enableval" = "no"
5754 then
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5756 $as_echo "Disabling e2image support" >&6; }
5757         IMAGER_CMT="#"
5758 else
5759         IMAGER_CMT=
5760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5761 $as_echo "Enabling e2image support" >&6; }
5762 fi
5763
5764 else
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5766 $as_echo "Enabling e2image support by default" >&6; }
5767 IMAGER_CMT=
5768
5769 fi
5770
5771
5772 # Check whether --enable-resizer was given.
5773 if test "${enable_resizer+set}" = set; then :
5774   enableval=$enable_resizer; if test "$enableval" = "no"
5775 then
5776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5777 $as_echo "Disabling e2resize support" >&6; }
5778         RESIZER_CMT="#"
5779 else
5780         RESIZER_CMT=
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5782 $as_echo "Enabling e2resize support" >&6; }
5783 fi
5784
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5787 $as_echo "Enabling e2resize support by default" >&6; }
5788 RESIZER_CMT=
5789
5790 fi
5791
5792
5793 # Check whether --enable-defrag was given.
5794 if test "${enable_defrag+set}" = set; then :
5795   enableval=$enable_defrag; if test "$enableval" = "no"
5796 then
5797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5798 $as_echo "Disabling e4defrag support" >&6; }
5799         DEFRAG_CMT="#"
5800 else
5801         DEFRAG_CMT=
5802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5803 $as_echo "Enabling e4defrag support" >&6; }
5804 fi
5805
5806 else
5807   if test -z "$WITH_DIET_LIBC"
5808 then
5809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5810 $as_echo "Enabling e4defrag support by default" >&6; }
5811         DEFRAG_CMT=
5812 else
5813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5814 $as_echo "Disabling e4defrag support by default" >&6; }
5815         DEFRAG_CMT="#"
5816 fi
5817
5818 fi
5819
5820
5821 # Check whether --enable-fsck was given.
5822 if test "${enable_fsck+set}" = set; then :
5823   enableval=$enable_fsck; if test "$enableval" = "no"
5824 then
5825         FSCK_PROG='' FSCK_MAN=''
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5827 $as_echo "Not building fsck wrapper" >&6; }
5828 else
5829         FSCK_PROG=fsck FSCK_MAN=fsck.8
5830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5831 $as_echo "Building fsck wrapper" >&6; }
5832 fi
5833
5834 else
5835   case "$host_os" in
5836   gnu*)
5837     FSCK_PROG='' FSCK_MAN=''
5838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5839 $as_echo "Not building fsck wrapper by default" >&6; }
5840     ;;
5841   *)
5842     FSCK_PROG=fsck FSCK_MAN=fsck.8
5843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5844 $as_echo "Building fsck wrapper by default" >&6; }
5845 esac
5846
5847 fi
5848
5849
5850
5851 # Check whether --enable-e2initrd-helper was given.
5852 if test "${enable_e2initrd_helper+set}" = set; then :
5853   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5854 then
5855         E2INITRD_PROG='' E2INITRD_MAN=''
5856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5857 $as_echo "Not building e2initrd helper" >&6; }
5858 else
5859         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5861 $as_echo "Building e2initrd helper" >&6; }
5862 fi
5863
5864 else
5865   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5867 $as_echo "Building e2initrd helper by default" >&6; }
5868
5869 fi
5870
5871
5872
5873 # Check whether --enable-tls was given.
5874 if test "${enable_tls+set}" = set; then :
5875   enableval=$enable_tls; if test "$enableval" = "no"
5876 then
5877         try_tls=""
5878         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5879 $as_echo "Disabling thread local support" >&6; }
5880 else
5881         try_tls="yes"
5882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5883 $as_echo "Enabling thread local support" >&6; }
5884 fi
5885
5886 else
5887   if test -n "$WITH_DIET_LIBC"
5888 then
5889         try_tls=""
5890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5891 $as_echo "Diet libc does not support thread local support" >&6; }
5892 else
5893         try_tls="yes"
5894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5895 $as_echo "Try using thread local support by default" >&6; }
5896 fi
5897
5898 fi
5899
5900 if test "$try_tls" = "yes"
5901 then
5902
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5904 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5905   if ${ac_cv_tls+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908
5909     ax_tls_keywords="__thread __declspec(thread) none"
5910     for ax_tls_keyword in $ax_tls_keywords; do
5911        case $ax_tls_keyword in
5912           none) ac_cv_tls=none ; break ;;
5913           *)
5914              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916 #include <stdlib.h>
5917                  static void
5918                  foo(void) {
5919                  static  $ax_tls_keyword  int bar;
5920                  exit(1);
5921                  }
5922 int
5923 main ()
5924 {
5925
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"; then :
5931   ac_cv_tls=$ax_tls_keyword ; break
5932 else
5933   ac_cv_tls=none
5934
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937           esac
5938     done
5939
5940 fi
5941
5942
5943   if test "$ac_cv_tls" != "none"; then
5944
5945 cat >>confdefs.h <<_ACEOF
5946 #define TLS $ac_cv_tls
5947 _ACEOF
5948
5949   fi
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5951 $as_echo "$ac_cv_tls" >&6; }
5952
5953 fi
5954
5955 # Check whether --enable-uuidd was given.
5956 if test "${enable_uuidd+set}" = set; then :
5957   enableval=$enable_uuidd; if test "$enableval" = "no"
5958 then
5959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5960 $as_echo "Not building uuidd" >&6; }
5961         UUIDD_CMT="#"
5962 else
5963         $as_echo "#define USE_UUIDD 1" >>confdefs.h
5964
5965         UUIDD_CMT=""
5966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5967 $as_echo "Building uuidd" >&6; }
5968 fi
5969
5970 else
5971   $as_echo "#define USE_UUIDD 1" >>confdefs.h
5972
5973 if test -z "$UUID_CMT"
5974 then
5975         UUIDD_CMT=""
5976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5977 $as_echo "Building uuidd by default" >&6; }
5978 else
5979         UUIDD_CMT="#"
5980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5981 $as_echo "Disabling uuidd by default" >&6; }
5982 fi
5983
5984 fi
5985
5986
5987
5988 # Check whether --enable-mmp was given.
5989 if test "${enable_mmp+set}" = set; then :
5990   enableval=$enable_mmp; if test "$enableval" = "no"
5991 then
5992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5993 $as_echo "Disabling mmp support" >&6; }
5994 else
5995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5996 $as_echo "Enabling mmp support" >&6; }
5997         $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5998
5999 fi
6000
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6003 $as_echo "Enabling mmp support by default" >&6; }
6004 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6005
6006
6007 fi
6008
6009
6010 # Check whether --enable-tdb was given.
6011 if test "${enable_tdb+set}" = set; then :
6012   enableval=$enable_tdb; if test "$enableval" = "no"
6013 then
6014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6015 $as_echo "Disabling tdb support" >&6; }
6016         TDB_CMT="#"
6017         TDB_MAN_COMMENT='.\"'
6018 else
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6020 $as_echo "Enabling tdb support" >&6; }
6021         $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6022
6023         TDB_CMT=""
6024         TDB_MAN_COMMENT=""
6025 fi
6026
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6029 $as_echo "Enabling mmp support by default" >&6; }
6030 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6031
6032 TDB_CMT=""
6033 TDB_MAN_COMMENT=""
6034
6035 fi
6036
6037
6038
6039
6040 # Check whether --enable-bmap-stats was given.
6041 if test "${enable_bmap_stats+set}" = set; then :
6042   enableval=$enable_bmap_stats; if test "$enableval" = "no"
6043 then
6044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6045 $as_echo "Disabling bitmap statistics support" >&6; }
6046 else
6047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6048 $as_echo "Enabling bitmap statistics support" >&6; }
6049         $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6050
6051 fi
6052
6053 else
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6055 $as_echo "Enabling bitmap statistics support by default" >&6; }
6056 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6057
6058
6059 fi
6060
6061
6062 # Check whether --enable-bmap-stats-ops was given.
6063 if test "${enable_bmap_stats_ops+set}" = set; then :
6064   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6065 then
6066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6067 $as_echo "Disabling additional bitmap statistics" >&6; }
6068 else
6069                 if test "x${enable_bmap_stats}" = "xno"; then :
6070   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6072 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6073 See \`config.log' for more details" "$LINENO" 5; }
6074 fi
6075
6076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6077 $as_echo "Enabling additional bitmap statistics" >&6; }
6078         $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6079
6080 fi
6081
6082 else
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6084 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6085
6086 fi
6087
6088 PTHREAD_LIB=''
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
6090 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
6091 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   ac_check_lib_save_LIBS=$LIBS
6095 LIBS="-lpthread  $LIBS"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h.  */
6098
6099 /* Override any GCC internal prototype to avoid an error.
6100    Use char because int might match the return type of a GCC
6101    builtin and then its argument prototype would still apply.  */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 char pthread_join ();
6106 int
6107 main ()
6108 {
6109 return pthread_join ();
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115   ac_cv_lib_pthread_pthread_join=yes
6116 else
6117   ac_cv_lib_pthread_pthread_join=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext \
6120     conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
6124 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
6125 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
6126   PTHREAD_LIB=-pthread
6127 fi
6128
6129
6130 # Check whether --enable-pfsck was given.
6131 if test "${enable_pfsck+set}" = set; then :
6132   enableval=$enable_pfsck; if test "$enableval" = "no" || test -z "PTHREAD_LIB"
6133 then
6134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling parallel e2fsck" >&5
6135 $as_echo "Disabling parallel e2fsck" >&6; }
6136 else
6137
6138 $as_echo "#define CONFIG_PFSCK 1" >>confdefs.h
6139
6140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling parallel e2fsck" >&5
6141 $as_echo "Enabling parallel e2fsck" >&6; }
6142 fi
6143
6144 else
6145   if test -z "PTHREAD_LIB"
6146 then
6147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling parallel e2fsck" >&5
6148 $as_echo "Disabling parallel e2fsck" >&6; }
6149 else
6150
6151 $as_echo "#define CONFIG_PFSCK 1" >>confdefs.h
6152
6153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling parallel e2fsck by default" >&5
6154 $as_echo "Enabling parallel e2fsck by default" >&6; }
6155 fi
6156
6157 fi
6158
6159 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6160
6161 GETTEXT_PACKAGE=e2fsprogs
6162 PACKAGE=e2fsprogs
6163 VERSION="$E2FSPROGS_VERSION"
6164 VERSION=0.14.1
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define PACKAGE "$PACKAGE"
6168 _ACEOF
6169
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define VERSION "$VERSION"
6173 _ACEOF
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6180 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6181 set x ${MAKE-make}
6182 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6183 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   cat >conftest.make <<\_ACEOF
6187 SHELL = /bin/sh
6188 all:
6189         @echo '@@@%%%=$(MAKE)=@@@%%%'
6190 _ACEOF
6191 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6193   *@@@%%%=?*=@@@%%%*)
6194     eval ac_cv_prog_make_${ac_make}_set=yes;;
6195   *)
6196     eval ac_cv_prog_make_${ac_make}_set=no;;
6197 esac
6198 rm -f conftest.make
6199 fi
6200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6203   SET_MAKE=
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207   SET_MAKE="MAKE=${MAKE-make}"
6208 fi
6209
6210 # Find a good install program.  We prefer a C program (faster),
6211 # so one script is as good as another.  But avoid the broken or
6212 # incompatible versions:
6213 # SysV /etc/install, /usr/sbin/install
6214 # SunOS /usr/etc/install
6215 # IRIX /sbin/install
6216 # AIX /bin/install
6217 # AmigaOS /C/install, which installs bootblocks on floppy discs
6218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6221 # OS/2's system install, which has a completely different semantic
6222 # ./install, which can be erroneously created by make from ./install.sh.
6223 # Reject install programs that cannot install multiple files.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6225 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6226 if test -z "$INSTALL"; then
6227 if ${ac_cv_path_install+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     # Account for people who put trailing slashes in PATH elements.
6236 case $as_dir/ in #((
6237   ./ | .// | /[cC]/* | \
6238   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6239   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6240   /usr/ucb/* ) ;;
6241   *)
6242     # OSF1 and SCO ODT 3.0 have their own names for install.
6243     # Don't use installbsd from OSF since it installs stuff as root
6244     # by default.
6245     for ac_prog in ginstall scoinst install; do
6246       for ac_exec_ext in '' $ac_executable_extensions; do
6247         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6248           if test $ac_prog = install &&
6249             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6250             # AIX install.  It has an incompatible calling convention.
6251             :
6252           elif test $ac_prog = install &&
6253             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6254             # program-specific install script used by HP pwplus--don't use.
6255             :
6256           else
6257             rm -rf conftest.one conftest.two conftest.dir
6258             echo one > conftest.one
6259             echo two > conftest.two
6260             mkdir conftest.dir
6261             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6262               test -s conftest.one && test -s conftest.two &&
6263               test -s conftest.dir/conftest.one &&
6264               test -s conftest.dir/conftest.two
6265             then
6266               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6267               break 3
6268             fi
6269           fi
6270         fi
6271       done
6272     done
6273     ;;
6274 esac
6275
6276   done
6277 IFS=$as_save_IFS
6278
6279 rm -rf conftest.one conftest.two conftest.dir
6280
6281 fi
6282   if test "${ac_cv_path_install+set}" = set; then
6283     INSTALL=$ac_cv_path_install
6284   else
6285     # As a last resort, use the slow shell script.  Don't cache a
6286     # value for INSTALL within a source directory, because that will
6287     # break other packages using the cache if that directory is
6288     # removed, or if the value is a relative name.
6289     INSTALL=$ac_install_sh
6290   fi
6291 fi
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6293 $as_echo "$INSTALL" >&6; }
6294
6295 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6296 # It thinks the first close brace ends the variable substitution.
6297 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6298
6299 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6300
6301 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6304 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6305 if test -z "$MKDIR_P"; then
6306   if ${ac_cv_path_mkdir+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_prog in mkdir gmkdir; do
6315          for ac_exec_ext in '' $ac_executable_extensions; do
6316            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6317            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6318              'mkdir (GNU coreutils) '* | \
6319              'mkdir (coreutils) '* | \
6320              'mkdir (fileutils) '4.1*)
6321                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6322                break 3;;
6323            esac
6324          done
6325        done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330
6331   test -d ./--version && rmdir ./--version
6332   if test "${ac_cv_path_mkdir+set}" = set; then
6333     MKDIR_P="$ac_cv_path_mkdir -p"
6334   else
6335     # As a last resort, use the slow shell script.  Don't cache a
6336     # value for MKDIR_P within a source directory, because that will
6337     # break other packages using the cache if that directory is
6338     # removed, or if the value is a relative name.
6339     MKDIR_P="$ac_install_sh -d"
6340   fi
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6343 $as_echo "$MKDIR_P" >&6; }
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6346 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6347 if ${ac_cv_path_SED+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6351      for ac_i in 1 2 3 4 5 6 7; do
6352        ac_script="$ac_script$as_nl$ac_script"
6353      done
6354      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6355      { ac_script=; unset ac_script;}
6356      if test -z "$SED"; then
6357   ac_path_SED_found=false
6358   # Loop through the user's path and test for each of PROGNAME-LIST
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_prog in sed gsed; do
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6367       as_fn_executable_p "$ac_path_SED" || continue
6368 # Check for GNU ac_path_SED and select it if it is found.
6369   # Check for GNU $ac_path_SED
6370 case `"$ac_path_SED" --version 2>&1` in
6371 *GNU*)
6372   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6373 *)
6374   ac_count=0
6375   $as_echo_n 0123456789 >"conftest.in"
6376   while :
6377   do
6378     cat "conftest.in" "conftest.in" >"conftest.tmp"
6379     mv "conftest.tmp" "conftest.in"
6380     cp "conftest.in" "conftest.nl"
6381     $as_echo '' >> "conftest.nl"
6382     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384     as_fn_arith $ac_count + 1 && ac_count=$as_val
6385     if test $ac_count -gt ${ac_path_SED_max-0}; then
6386       # Best one so far, save it but keep looking for a better one
6387       ac_cv_path_SED="$ac_path_SED"
6388       ac_path_SED_max=$ac_count
6389     fi
6390     # 10*(2^10) chars as input seems more than enough
6391     test $ac_count -gt 10 && break
6392   done
6393   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6394 esac
6395
6396       $ac_path_SED_found && break 3
6397     done
6398   done
6399   done
6400 IFS=$as_save_IFS
6401   if test -z "$ac_cv_path_SED"; then
6402     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6403   fi
6404 else
6405   ac_cv_path_SED=$SED
6406 fi
6407
6408 fi
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6410 $as_echo "$ac_cv_path_SED" >&6; }
6411  SED="$ac_cv_path_SED"
6412   rm -f conftest.sed
6413
6414
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6416 $as_echo_n "checking whether NLS is requested... " >&6; }
6417     # Check whether --enable-nls was given.
6418 if test "${enable_nls+set}" = set; then :
6419   enableval=$enable_nls; USE_NLS=$enableval
6420 else
6421   USE_NLS=yes
6422 fi
6423
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6425 $as_echo "$USE_NLS" >&6; }
6426
6427
6428
6429
6430       GETTEXT_MACRO_VERSION=0.18
6431
6432
6433
6434
6435 # Prepare PATH_SEPARATOR.
6436 # The user is always right.
6437 if test "${PATH_SEPARATOR+set}" != set; then
6438   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6439   # contains only /bin. Note that ksh looks also at the FPATH variable,
6440   # so we have to set that as well for the test.
6441   PATH_SEPARATOR=:
6442   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6443     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6444            || PATH_SEPARATOR=';'
6445        }
6446 fi
6447
6448 # Find out how to test for executable files. Don't use a zero-byte file,
6449 # as systems may use methods other than mode bits to determine executability.
6450 cat >conf$$.file <<_ASEOF
6451 #! /bin/sh
6452 exit 0
6453 _ASEOF
6454 chmod +x conf$$.file
6455 if test -x conf$$.file >/dev/null 2>&1; then
6456   ac_executable_p="test -x"
6457 else
6458   ac_executable_p="test -f"
6459 fi
6460 rm -f conf$$.file
6461
6462 # Extract the first word of "msgfmt", so it can be a program name with args.
6463 set dummy msgfmt; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_path_MSGFMT+:} false; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   case "$MSGFMT" in
6470   [\\/]* | ?:[\\/]*)
6471     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6472     ;;
6473   *)
6474     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6475     for ac_dir in $PATH; do
6476       IFS="$ac_save_IFS"
6477       test -z "$ac_dir" && ac_dir=.
6478       for ac_exec_ext in '' $ac_executable_extensions; do
6479         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6480           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6481           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6482      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6483             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6484             break 2
6485           fi
6486         fi
6487       done
6488     done
6489     IFS="$ac_save_IFS"
6490   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6491     ;;
6492 esac
6493 fi
6494 MSGFMT="$ac_cv_path_MSGFMT"
6495 if test "$MSGFMT" != ":"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6497 $as_echo "$MSGFMT" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6504 set dummy gmsgfmt; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_path_GMSGFMT+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   case $GMSGFMT in
6511   [\\/]* | ?:[\\/]*)
6512   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6513   ;;
6514   *)
6515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520     for ac_exec_ext in '' $ac_executable_extensions; do
6521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527   done
6528 IFS=$as_save_IFS
6529
6530   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6531   ;;
6532 esac
6533 fi
6534 GMSGFMT=$ac_cv_path_GMSGFMT
6535 if test -n "$GMSGFMT"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6537 $as_echo "$GMSGFMT" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544
6545     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6546     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6547     *) MSGFMT_015=$MSGFMT ;;
6548   esac
6549
6550   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6551     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6552     *) GMSGFMT_015=$GMSGFMT ;;
6553   esac
6554
6555
6556
6557 # Prepare PATH_SEPARATOR.
6558 # The user is always right.
6559 if test "${PATH_SEPARATOR+set}" != set; then
6560   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6561   # contains only /bin. Note that ksh looks also at the FPATH variable,
6562   # so we have to set that as well for the test.
6563   PATH_SEPARATOR=:
6564   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6565     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6566            || PATH_SEPARATOR=';'
6567        }
6568 fi
6569
6570 # Find out how to test for executable files. Don't use a zero-byte file,
6571 # as systems may use methods other than mode bits to determine executability.
6572 cat >conf$$.file <<_ASEOF
6573 #! /bin/sh
6574 exit 0
6575 _ASEOF
6576 chmod +x conf$$.file
6577 if test -x conf$$.file >/dev/null 2>&1; then
6578   ac_executable_p="test -x"
6579 else
6580   ac_executable_p="test -f"
6581 fi
6582 rm -f conf$$.file
6583
6584 # Extract the first word of "xgettext", so it can be a program name with args.
6585 set dummy xgettext; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_path_XGETTEXT+:} false; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   case "$XGETTEXT" in
6592   [\\/]* | ?:[\\/]*)
6593     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6594     ;;
6595   *)
6596     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6597     for ac_dir in $PATH; do
6598       IFS="$ac_save_IFS"
6599       test -z "$ac_dir" && ac_dir=.
6600       for ac_exec_ext in '' $ac_executable_extensions; do
6601         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6602           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6603           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6604      (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
6605             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6606             break 2
6607           fi
6608         fi
6609       done
6610     done
6611     IFS="$ac_save_IFS"
6612   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6613     ;;
6614 esac
6615 fi
6616 XGETTEXT="$ac_cv_path_XGETTEXT"
6617 if test "$XGETTEXT" != ":"; then
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6619 $as_echo "$XGETTEXT" >&6; }
6620 else
6621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6623 fi
6624
6625     rm -f messages.po
6626
6627     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6628     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6629     *) XGETTEXT_015=$XGETTEXT ;;
6630   esac
6631
6632
6633
6634 # Prepare PATH_SEPARATOR.
6635 # The user is always right.
6636 if test "${PATH_SEPARATOR+set}" != set; then
6637   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6638   # contains only /bin. Note that ksh looks also at the FPATH variable,
6639   # so we have to set that as well for the test.
6640   PATH_SEPARATOR=:
6641   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6642     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6643            || PATH_SEPARATOR=';'
6644        }
6645 fi
6646
6647 # Find out how to test for executable files. Don't use a zero-byte file,
6648 # as systems may use methods other than mode bits to determine executability.
6649 cat >conf$$.file <<_ASEOF
6650 #! /bin/sh
6651 exit 0
6652 _ASEOF
6653 chmod +x conf$$.file
6654 if test -x conf$$.file >/dev/null 2>&1; then
6655   ac_executable_p="test -x"
6656 else
6657   ac_executable_p="test -f"
6658 fi
6659 rm -f conf$$.file
6660
6661 # Extract the first word of "msgmerge", so it can be a program name with args.
6662 set dummy msgmerge; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_path_MSGMERGE+:} false; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   case "$MSGMERGE" in
6669   [\\/]* | ?:[\\/]*)
6670     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6671     ;;
6672   *)
6673     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6674     for ac_dir in $PATH; do
6675       IFS="$ac_save_IFS"
6676       test -z "$ac_dir" && ac_dir=.
6677       for ac_exec_ext in '' $ac_executable_extensions; do
6678         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6679           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6680           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6681             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6682             break 2
6683           fi
6684         fi
6685       done
6686     done
6687     IFS="$ac_save_IFS"
6688   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6689     ;;
6690 esac
6691 fi
6692 MSGMERGE="$ac_cv_path_MSGMERGE"
6693 if test "$MSGMERGE" != ":"; then
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6695 $as_echo "$MSGMERGE" >&6; }
6696 else
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701
6702         test -n "$localedir" || localedir='${datadir}/locale'
6703
6704
6705     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6706
6707
6708   ac_config_commands="$ac_config_commands po-directories"
6709
6710
6711
6712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6713 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6714 if ${ac_cv_gnu_library_2+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h.  */
6719
6720 #include <features.h>
6721 #ifdef __GNU_LIBRARY__
6722  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6723   Lucky GNU user
6724  #endif
6725 #endif
6726
6727 _ACEOF
6728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6729   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6730   ac_cv_gnu_library_2=yes
6731 else
6732   ac_cv_gnu_library_2=no
6733 fi
6734 rm -f conftest*
6735
6736
6737
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6740 $as_echo "$ac_cv_gnu_library_2" >&6; }
6741
6742     GLIBC2="$ac_cv_gnu_library_2"
6743
6744
6745 if test -n "$ac_tool_prefix"; then
6746   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_RANLIB+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$RANLIB"; then
6754   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 RANLIB=$ac_cv_prog_RANLIB
6774 if test -n "$RANLIB"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6776 $as_echo "$RANLIB" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_RANLIB"; then
6785   ac_ct_RANLIB=$RANLIB
6786   # Extract the first word of "ranlib", so it can be a program name with args.
6787 set dummy ranlib; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$ac_ct_RANLIB"; then
6794   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801     for ac_exec_ext in '' $ac_executable_extensions; do
6802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803     ac_cv_prog_ac_ct_RANLIB="ranlib"
6804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808   done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814 if test -n "$ac_ct_RANLIB"; then
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6816 $as_echo "$ac_ct_RANLIB" >&6; }
6817 else
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822   if test "x$ac_ct_RANLIB" = x; then
6823     RANLIB=":"
6824   else
6825     case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6830 esac
6831     RANLIB=$ac_ct_RANLIB
6832   fi
6833 else
6834   RANLIB="$ac_cv_prog_RANLIB"
6835 fi
6836
6837
6838
6839   CFLAG_VISIBILITY=
6840   HAVE_VISIBILITY=0
6841   if test -n "$GCC"; then
6842                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6843 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6844     if ${gl_cv_cc_vis_werror+:} false; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847
6848       gl_save_CFLAGS="$CFLAGS"
6849       CFLAGS="$CFLAGS -Werror"
6850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h.  */
6852
6853 int
6854 main ()
6855 {
6856
6857   ;
6858   return 0;
6859 }
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862   gl_cv_cc_vis_werror=yes
6863 else
6864   gl_cv_cc_vis_werror=no
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867       CFLAGS="$gl_save_CFLAGS"
6868 fi
6869
6870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6871 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6873 $as_echo_n "checking for simple visibility declarations... " >&6; }
6874     if ${gl_cv_cc_visibility+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877
6878       gl_save_CFLAGS="$CFLAGS"
6879       CFLAGS="$CFLAGS -fvisibility=hidden"
6880                                     if test $gl_cv_cc_vis_werror = yes; then
6881         CFLAGS="$CFLAGS -Werror"
6882       fi
6883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6886              extern __attribute__((__visibility__("default"))) int exportedvar;
6887              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6888              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6889              void dummyfunc (void) {}
6890
6891 int
6892 main ()
6893 {
6894
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900   gl_cv_cc_visibility=yes
6901 else
6902   gl_cv_cc_visibility=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905       CFLAGS="$gl_save_CFLAGS"
6906 fi
6907
6908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6909 $as_echo "$gl_cv_cc_visibility" >&6; }
6910     if test $gl_cv_cc_visibility = yes; then
6911       CFLAG_VISIBILITY="-fvisibility=hidden"
6912       HAVE_VISIBILITY=1
6913     fi
6914   fi
6915
6916
6917
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6920 _ACEOF
6921
6922
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6924 $as_echo_n "checking for inline... " >&6; }
6925 if ${ac_cv_c_inline+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   ac_cv_c_inline=no
6929 for ac_kw in inline __inline__ __inline; do
6930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932 #ifndef __cplusplus
6933 typedef int foo_t;
6934 static $ac_kw foo_t static_foo () {return 0; }
6935 $ac_kw foo_t foo () {return 0; }
6936 #endif
6937
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940   ac_cv_c_inline=$ac_kw
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943   test "$ac_cv_c_inline" != no && break
6944 done
6945
6946 fi
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6948 $as_echo "$ac_cv_c_inline" >&6; }
6949
6950 case $ac_cv_c_inline in
6951   inline | yes) ;;
6952   *)
6953     case $ac_cv_c_inline in
6954       no) ac_val=;;
6955       *) ac_val=$ac_cv_c_inline;;
6956     esac
6957     cat >>confdefs.h <<_ACEOF
6958 #ifndef __cplusplus
6959 #define inline $ac_val
6960 #endif
6961 _ACEOF
6962     ;;
6963 esac
6964
6965 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6966 if test "x$ac_cv_type_size_t" = xyes; then :
6967
6968 else
6969
6970 cat >>confdefs.h <<_ACEOF
6971 #define size_t unsigned int
6972 _ACEOF
6973
6974 fi
6975
6976
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6978 $as_echo_n "checking for stdint.h... " >&6; }
6979 if ${gl_cv_header_stdint_h+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h.  */
6984 #include <sys/types.h>
6985             #include <stdint.h>
6986 int
6987 main ()
6988 {
6989 uintmax_t i = (uintmax_t) -1; return !i;
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995   gl_cv_header_stdint_h=yes
6996 else
6997   gl_cv_header_stdint_h=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7002 $as_echo "$gl_cv_header_stdint_h" >&6; }
7003   if test $gl_cv_header_stdint_h = yes; then
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_STDINT_H_WITH_UINTMAX 1
7007 _ACEOF
7008
7009   fi
7010
7011 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7012 # for constant arguments.  Useless!
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7014 $as_echo_n "checking for working alloca.h... " >&6; }
7015 if ${ac_cv_working_alloca_h+:} false; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h.  */
7020 #include <alloca.h>
7021 int
7022 main ()
7023 {
7024 char *p = (char *) alloca (2 * sizeof (int));
7025                           if (p) return 0;
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"; then :
7031   ac_cv_working_alloca_h=yes
7032 else
7033   ac_cv_working_alloca_h=no
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext \
7036     conftest$ac_exeext conftest.$ac_ext
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7039 $as_echo "$ac_cv_working_alloca_h" >&6; }
7040 if test $ac_cv_working_alloca_h = yes; then
7041
7042 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7043
7044 fi
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7047 $as_echo_n "checking for alloca... " >&6; }
7048 if ${ac_cv_func_alloca_works+:} false; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #ifdef __GNUC__
7054 # define alloca __builtin_alloca
7055 #else
7056 # ifdef _MSC_VER
7057 #  include <malloc.h>
7058 #  define alloca _alloca
7059 # else
7060 #  ifdef HAVE_ALLOCA_H
7061 #   include <alloca.h>
7062 #  else
7063 #   ifdef _AIX
7064  #pragma alloca
7065 #   else
7066 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7067 void *alloca (size_t);
7068 #    endif
7069 #   endif
7070 #  endif
7071 # endif
7072 #endif
7073
7074 int
7075 main ()
7076 {
7077 char *p = (char *) alloca (1);
7078                                     if (p) return 0;
7079   ;
7080   return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"; then :
7084   ac_cv_func_alloca_works=yes
7085 else
7086   ac_cv_func_alloca_works=no
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext \
7089     conftest$ac_exeext conftest.$ac_ext
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7092 $as_echo "$ac_cv_func_alloca_works" >&6; }
7093
7094 if test $ac_cv_func_alloca_works = yes; then
7095
7096 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7097
7098 else
7099   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7100 # that cause trouble.  Some versions do not even contain alloca or
7101 # contain a buggy version.  If you still want to use their alloca,
7102 # use ar to extract alloca.o from them instead of compiling alloca.c.
7103
7104 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7105
7106 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7107
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7110 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7111 if ${ac_cv_os_cray+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116 #if defined CRAY && ! defined CRAY2
7117 webecray
7118 #else
7119 wenotbecray
7120 #endif
7121
7122 _ACEOF
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124   $EGREP "webecray" >/dev/null 2>&1; then :
7125   ac_cv_os_cray=yes
7126 else
7127   ac_cv_os_cray=no
7128 fi
7129 rm -f conftest*
7130
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7133 $as_echo "$ac_cv_os_cray" >&6; }
7134 if test $ac_cv_os_cray = yes; then
7135   for ac_func in _getb67 GETB67 getb67; do
7136     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define CRAY_STACKSEG_END $ac_func
7142 _ACEOF
7143
7144     break
7145 fi
7146
7147   done
7148 fi
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7151 $as_echo_n "checking stack direction for C alloca... " >&6; }
7152 if ${ac_cv_c_stack_direction+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test "$cross_compiling" = yes; then :
7156   ac_cv_c_stack_direction=0
7157 else
7158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h.  */
7160 $ac_includes_default
7161 int
7162 find_stack_direction (int *addr, int depth)
7163 {
7164   int dir, dummy = 0;
7165   if (! addr)
7166     addr = &dummy;
7167   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7168   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7169   return dir + dummy;
7170 }
7171
7172 int
7173 main (int argc, char **argv)
7174 {
7175   return find_stack_direction (0, argc + !argv + 20) < 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_run "$LINENO"; then :
7179   ac_cv_c_stack_direction=1
7180 else
7181   ac_cv_c_stack_direction=-1
7182 fi
7183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7184   conftest.$ac_objext conftest.beam conftest.$ac_ext
7185 fi
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7189 $as_echo "$ac_cv_c_stack_direction" >&6; }
7190 cat >>confdefs.h <<_ACEOF
7191 #define STACK_DIRECTION $ac_cv_c_stack_direction
7192 _ACEOF
7193
7194
7195 fi
7196
7197
7198
7199
7200   for ac_header in $ac_header_list
7201 do :
7202   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7203 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7204 "
7205 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7206   cat >>confdefs.h <<_ACEOF
7207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208 _ACEOF
7209
7210 fi
7211
7212 done
7213
7214
7215
7216
7217
7218
7219
7220
7221 for ac_func in getpagesize
7222 do :
7223   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7224 if test "x$ac_cv_func_getpagesize" = xyes; then :
7225   cat >>confdefs.h <<_ACEOF
7226 #define HAVE_GETPAGESIZE 1
7227 _ACEOF
7228
7229 fi
7230 done
7231
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7233 $as_echo_n "checking for working mmap... " >&6; }
7234 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7235   $as_echo_n "(cached) " >&6
7236 else
7237   if test "$cross_compiling" = yes; then :
7238   ac_cv_func_mmap_fixed_mapped=no
7239 else
7240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h.  */
7242 $ac_includes_default
7243 /* malloc might have been renamed as rpl_malloc. */
7244 #undef malloc
7245
7246 /* Thanks to Mike Haertel and Jim Avera for this test.
7247    Here is a matrix of mmap possibilities:
7248         mmap private not fixed
7249         mmap private fixed at somewhere currently unmapped
7250         mmap private fixed at somewhere already mapped
7251         mmap shared not fixed
7252         mmap shared fixed at somewhere currently unmapped
7253         mmap shared fixed at somewhere already mapped
7254    For private mappings, we should verify that changes cannot be read()
7255    back from the file, nor mmap's back from the file at a different
7256    address.  (There have been systems where private was not correctly
7257    implemented like the infamous i386 svr4.0, and systems where the
7258    VM page cache was not coherent with the file system buffer cache
7259    like early versions of FreeBSD and possibly contemporary NetBSD.)
7260    For shared mappings, we should conversely verify that changes get
7261    propagated back to all the places they're supposed to be.
7262
7263    Grep wants private fixed already mapped.
7264    The main things grep needs to know about mmap are:
7265    * does it exist and is it safe to write into the mmap'd area
7266    * how to use it (BSD variants)  */
7267
7268 #include <fcntl.h>
7269 #include <sys/mman.h>
7270
7271 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7272 char *malloc ();
7273 #endif
7274
7275 /* This mess was copied from the GNU getpagesize.h.  */
7276 #ifndef HAVE_GETPAGESIZE
7277 # ifdef _SC_PAGESIZE
7278 #  define getpagesize() sysconf(_SC_PAGESIZE)
7279 # else /* no _SC_PAGESIZE */
7280 #  ifdef HAVE_SYS_PARAM_H
7281 #   include <sys/param.h>
7282 #   ifdef EXEC_PAGESIZE
7283 #    define getpagesize() EXEC_PAGESIZE
7284 #   else /* no EXEC_PAGESIZE */
7285 #    ifdef NBPG
7286 #     define getpagesize() NBPG * CLSIZE
7287 #     ifndef CLSIZE
7288 #      define CLSIZE 1
7289 #     endif /* no CLSIZE */
7290 #    else /* no NBPG */
7291 #     ifdef NBPC
7292 #      define getpagesize() NBPC
7293 #     else /* no NBPC */
7294 #      ifdef PAGESIZE
7295 #       define getpagesize() PAGESIZE
7296 #      endif /* PAGESIZE */
7297 #     endif /* no NBPC */
7298 #    endif /* no NBPG */
7299 #   endif /* no EXEC_PAGESIZE */
7300 #  else /* no HAVE_SYS_PARAM_H */
7301 #   define getpagesize() 8192   /* punt totally */
7302 #  endif /* no HAVE_SYS_PARAM_H */
7303 # endif /* no _SC_PAGESIZE */
7304
7305 #endif /* no HAVE_GETPAGESIZE */
7306
7307 int
7308 main ()
7309 {
7310   char *data, *data2, *data3;
7311   const char *cdata2;
7312   int i, pagesize;
7313   int fd, fd2;
7314
7315   pagesize = getpagesize ();
7316
7317   /* First, make a file with some known garbage in it. */
7318   data = (char *) malloc (pagesize);
7319   if (!data)
7320     return 1;
7321   for (i = 0; i < pagesize; ++i)
7322     *(data + i) = rand ();
7323   umask (0);
7324   fd = creat ("conftest.mmap", 0600);
7325   if (fd < 0)
7326     return 2;
7327   if (write (fd, data, pagesize) != pagesize)
7328     return 3;
7329   close (fd);
7330
7331   /* Next, check that the tail of a page is zero-filled.  File must have
7332      non-zero length, otherwise we risk SIGBUS for entire page.  */
7333   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7334   if (fd2 < 0)
7335     return 4;
7336   cdata2 = "";
7337   if (write (fd2, cdata2, 1) != 1)
7338     return 5;
7339   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7340   if (data2 == MAP_FAILED)
7341     return 6;
7342   for (i = 0; i < pagesize; ++i)
7343     if (*(data2 + i))
7344       return 7;
7345   close (fd2);
7346   if (munmap (data2, pagesize))
7347     return 8;
7348
7349   /* Next, try to mmap the file at a fixed address which already has
7350      something else allocated at it.  If we can, also make sure that
7351      we see the same garbage.  */
7352   fd = open ("conftest.mmap", O_RDWR);
7353   if (fd < 0)
7354     return 9;
7355   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7356                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7357     return 10;
7358   for (i = 0; i < pagesize; ++i)
7359     if (*(data + i) != *(data2 + i))
7360       return 11;
7361
7362   /* Finally, make sure that changes to the mapped area do not
7363      percolate back to the file as seen by read().  (This is a bug on
7364      some variants of i386 svr4.0.)  */
7365   for (i = 0; i < pagesize; ++i)
7366     *(data2 + i) = *(data2 + i) + 1;
7367   data3 = (char *) malloc (pagesize);
7368   if (!data3)
7369     return 12;
7370   if (read (fd, data3, pagesize) != pagesize)
7371     return 13;
7372   for (i = 0; i < pagesize; ++i)
7373     if (*(data + i) != *(data3 + i))
7374       return 14;
7375   close (fd);
7376   return 0;
7377 }
7378 _ACEOF
7379 if ac_fn_c_try_run "$LINENO"; then :
7380   ac_cv_func_mmap_fixed_mapped=yes
7381 else
7382   ac_cv_func_mmap_fixed_mapped=no
7383 fi
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385   conftest.$ac_objext conftest.beam conftest.$ac_ext
7386 fi
7387
7388 fi
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7390 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7391 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7392
7393 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7394
7395 fi
7396 rm -f conftest.mmap conftest.txt
7397
7398
7399
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7401 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7402 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7403   $as_echo_n "(cached) " >&6
7404 else
7405
7406       gt_cv_int_divbyzero_sigfpe=
7407       case "$host_os" in
7408         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7409           # On Mac OS X 10.2 or newer, just assume the same as when cross-
7410           # compiling. If we were to perform the real test, 1 Crash Report
7411           # dialog window would pop up.
7412           case "$host_cpu" in
7413             i[34567]86 | x86_64)
7414               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7415           esac
7416           ;;
7417       esac
7418       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7419         if test "$cross_compiling" = yes; then :
7420
7421             # Guess based on the CPU.
7422             case "$host_cpu" in
7423               alpha* | i[34567]86 | x86_64 | m68k | s390*)
7424                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7425               *)
7426                 gt_cv_int_divbyzero_sigfpe="guessing no";;
7427             esac
7428
7429 else
7430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h.  */
7432
7433 #include <stdlib.h>
7434 #include <signal.h>
7435
7436 static void
7437 sigfpe_handler (int sig)
7438 {
7439   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
7440   exit (sig != SIGFPE);
7441 }
7442
7443 int x = 1;
7444 int y = 0;
7445 int z;
7446 int nan;
7447
7448 int main ()
7449 {
7450   signal (SIGFPE, sigfpe_handler);
7451 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
7452 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7453   signal (SIGTRAP, sigfpe_handler);
7454 #endif
7455 /* Linux/SPARC yields signal SIGILL.  */
7456 #if defined (__sparc__) && defined (__linux__)
7457   signal (SIGILL, sigfpe_handler);
7458 #endif
7459
7460   z = x / y;
7461   nan = y / y;
7462   exit (2);
7463 }
7464
7465 _ACEOF
7466 if ac_fn_c_try_run "$LINENO"; then :
7467   gt_cv_int_divbyzero_sigfpe=yes
7468 else
7469   gt_cv_int_divbyzero_sigfpe=no
7470 fi
7471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7472   conftest.$ac_objext conftest.beam conftest.$ac_ext
7473 fi
7474
7475       fi
7476
7477 fi
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7479 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7480   case "$gt_cv_int_divbyzero_sigfpe" in
7481     *yes) value=1;;
7482     *) value=0;;
7483   esac
7484
7485 cat >>confdefs.h <<_ACEOF
7486 #define INTDIV0_RAISES_SIGFPE $value
7487 _ACEOF
7488
7489
7490
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7492 $as_echo_n "checking for inttypes.h... " >&6; }
7493 if ${gl_cv_header_inttypes_h+:} false; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h.  */
7498
7499 #include <sys/types.h>
7500 #include <inttypes.h>
7501
7502 int
7503 main ()
7504 {
7505 uintmax_t i = (uintmax_t) -1; return !i;
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511   gl_cv_header_inttypes_h=yes
7512 else
7513   gl_cv_header_inttypes_h=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7518 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7519   if test $gl_cv_header_inttypes_h = yes; then
7520
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7523 _ACEOF
7524
7525   fi
7526
7527
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7529 $as_echo_n "checking for unsigned long long int... " >&6; }
7530 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   ac_cv_type_unsigned_long_long_int=yes
7534      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7535        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h.  */
7537
7538   /* For now, do not test the preprocessor; as of 2007 there are too many
7539          implementations with broken preprocessors.  Perhaps this can
7540          be revisited in 2012.  In the meantime, code should not expect
7541          #if to work with literals wider than 32 bits.  */
7542       /* Test literals.  */
7543       long long int ll = 9223372036854775807ll;
7544       long long int nll = -9223372036854775807LL;
7545       unsigned long long int ull = 18446744073709551615ULL;
7546       /* Test constant expressions.   */
7547       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7548                      ? 1 : -1)];
7549       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7550                      ? 1 : -1)];
7551       int i = 63;
7552 int
7553 main ()
7554 {
7555 /* Test availability of runtime routines for shift and division.  */
7556       long long int llmax = 9223372036854775807ll;
7557       unsigned long long int ullmax = 18446744073709551615ull;
7558       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7559               | (llmax / ll) | (llmax % ll)
7560               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7561               | (ullmax / ull) | (ullmax % ull));
7562   ;
7563   return 0;
7564 }
7565
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"; then :
7568
7569 else
7570   ac_cv_type_unsigned_long_long_int=no
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573     conftest$ac_exeext conftest.$ac_ext
7574      fi
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7577 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7578   if test $ac_cv_type_unsigned_long_long_int = yes; then
7579
7580 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7581
7582   fi
7583
7584
7585
7586
7587   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7588
7589     test $ac_cv_type_unsigned_long_long_int = yes \
7590       && ac_type='unsigned long long' \
7591       || ac_type='unsigned long'
7592
7593 cat >>confdefs.h <<_ACEOF
7594 #define uintmax_t $ac_type
7595 _ACEOF
7596
7597   else
7598
7599 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7600
7601   fi
7602
7603
7604   for ac_header in inttypes.h
7605 do :
7606   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7607 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7608   cat >>confdefs.h <<_ACEOF
7609 #define HAVE_INTTYPES_H 1
7610 _ACEOF
7611
7612 fi
7613
7614 done
7615
7616   if test $ac_cv_header_inttypes_h = yes; then
7617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7618 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7619 if ${gt_cv_inttypes_pri_broken+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622
7623         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h.  */
7625
7626 #include <inttypes.h>
7627 #ifdef PRId32
7628 char *p = PRId32;
7629 #endif
7630
7631 int
7632 main ()
7633 {
7634
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640   gt_cv_inttypes_pri_broken=no
7641 else
7642   gt_cv_inttypes_pri_broken=yes
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7648 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7649   fi
7650   if test "$gt_cv_inttypes_pri_broken" = yes; then
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define PRI_MACROS_BROKEN 1
7654 _ACEOF
7655
7656     PRI_MACROS_BROKEN=1
7657   else
7658     PRI_MACROS_BROKEN=0
7659   fi
7660
7661
7662
7663
7664
7665
7666
7667   # Check whether --enable-threads was given.
7668 if test "${enable_threads+set}" = set; then :
7669   enableval=$enable_threads; gl_use_threads=$enableval
7670 else
7671   if test -n "$gl_use_threads_default"; then
7672        gl_use_threads="$gl_use_threads_default"
7673      else
7674        case "$host_os" in
7675                                                                osf*) gl_use_threads=no ;;
7676          cygwin*)
7677                case `uname -r` in
7678                  1.[0-5].*) gl_use_threads=no ;;
7679                  *)         gl_use_threads=yes ;;
7680                esac
7681                ;;
7682          *)    gl_use_threads=yes ;;
7683        esac
7684      fi
7685
7686 fi
7687
7688   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7689     # For using <pthread.h>:
7690     case "$host_os" in
7691       osf*)
7692         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7693         # groks <pthread.h>. cc also understands the flag -pthread, but
7694         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7695         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7696         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7697         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7698         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7699         ;;
7700     esac
7701     # Some systems optimize for single-threaded programs by default, and
7702     # need special flags to disable these optimizations. For example, the
7703     # definition of 'errno' in <errno.h>.
7704     case "$host_os" in
7705       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7706       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7707     esac
7708   fi
7709
7710
7711
7712
7713
7714       if test "X$prefix" = "XNONE"; then
7715     acl_final_prefix="$ac_default_prefix"
7716   else
7717     acl_final_prefix="$prefix"
7718   fi
7719   if test "X$exec_prefix" = "XNONE"; then
7720     acl_final_exec_prefix='${prefix}'
7721   else
7722     acl_final_exec_prefix="$exec_prefix"
7723   fi
7724   acl_save_prefix="$prefix"
7725   prefix="$acl_final_prefix"
7726   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7727   prefix="$acl_save_prefix"
7728
7729
7730
7731 # Check whether --with-gnu-ld was given.
7732 if test "${with_gnu_ld+set}" = set; then :
7733   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7734 else
7735   with_gnu_ld=no
7736 fi
7737
7738 # Prepare PATH_SEPARATOR.
7739 # The user is always right.
7740 if test "${PATH_SEPARATOR+set}" != set; then
7741   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7742   # contains only /bin. Note that ksh looks also at the FPATH variable,
7743   # so we have to set that as well for the test.
7744   PATH_SEPARATOR=:
7745   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7746     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7747            || PATH_SEPARATOR=';'
7748        }
7749 fi
7750
7751 ac_prog=ld
7752 if test "$GCC" = yes; then
7753   # Check if gcc -print-prog-name=ld gives a path.
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7755 $as_echo_n "checking for ld used by $CC... " >&6; }
7756   case $host in
7757   *-*-mingw*)
7758     # gcc leaves a trailing carriage return which upsets mingw
7759     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7760   *)
7761     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7762   esac
7763   case $ac_prog in
7764     # Accept absolute paths.
7765     [\\/]* | ?:[\\/]*)
7766       re_direlt='/[^/][^/]*/\.\./'
7767       # Canonicalize the pathname of ld
7768       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7769       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7770         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7771       done
7772       test -z "$LD" && LD="$ac_prog"
7773       ;;
7774   "")
7775     # If it fails, then pretend we aren't using GCC.
7776     ac_prog=ld
7777     ;;
7778   *)
7779     # If it is relative, then search for the first ld in PATH.
7780     with_gnu_ld=unknown
7781     ;;
7782   esac
7783 elif test "$with_gnu_ld" = yes; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7785 $as_echo_n "checking for GNU ld... " >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7788 $as_echo_n "checking for non-GNU ld... " >&6; }
7789 fi
7790 if ${acl_cv_path_LD+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   if test -z "$LD"; then
7794   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795   for ac_dir in $PATH; do
7796     IFS="$acl_save_ifs"
7797     test -z "$ac_dir" && ac_dir=.
7798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7799       acl_cv_path_LD="$ac_dir/$ac_prog"
7800       # Check to see if the program is GNU ld.  I'd rather use --version,
7801       # but apparently some variants of GNU ld only accept -v.
7802       # Break only if it was the GNU/non-GNU ld that we prefer.
7803       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7804       *GNU* | *'with BFD'*)
7805         test "$with_gnu_ld" != no && break
7806         ;;
7807       *)
7808         test "$with_gnu_ld" != yes && break
7809         ;;
7810       esac
7811     fi
7812   done
7813   IFS="$acl_save_ifs"
7814 else
7815   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7816 fi
7817 fi
7818
7819 LD="$acl_cv_path_LD"
7820 if test -n "$LD"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7822 $as_echo "$LD" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7829 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7830 if ${acl_cv_prog_gnu_ld+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7834 case `$LD -v 2>&1 </dev/null` in
7835 *GNU* | *'with BFD'*)
7836   acl_cv_prog_gnu_ld=yes
7837   ;;
7838 *)
7839   acl_cv_prog_gnu_ld=no
7840   ;;
7841 esac
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7844 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7845 with_gnu_ld=$acl_cv_prog_gnu_ld
7846
7847
7848
7849
7850                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7851 $as_echo_n "checking for shared library run path origin... " >&6; }
7852 if ${acl_cv_rpath+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855
7856     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7857     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7858     . ./conftest.sh
7859     rm -f ./conftest.sh
7860     acl_cv_rpath=done
7861
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7864 $as_echo "$acl_cv_rpath" >&6; }
7865   wl="$acl_cv_wl"
7866   acl_libext="$acl_cv_libext"
7867   acl_shlibext="$acl_cv_shlibext"
7868   acl_libname_spec="$acl_cv_libname_spec"
7869   acl_library_names_spec="$acl_cv_library_names_spec"
7870   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7871   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7872   acl_hardcode_direct="$acl_cv_hardcode_direct"
7873   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7874     # Check whether --enable-rpath was given.
7875 if test "${enable_rpath+set}" = set; then :
7876   enableval=$enable_rpath; :
7877 else
7878   enable_rpath=yes
7879 fi
7880
7881
7882
7883
7884   acl_libdirstem=lib
7885   acl_libdirstem2=
7886   case "$host_os" in
7887     solaris*)
7888                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7889 $as_echo_n "checking for 64-bit host... " >&6; }
7890 if ${gl_cv_solaris_64bit+:} false; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h.  */
7895
7896 #ifdef _LP64
7897 sixtyfour bits
7898 #endif
7899
7900 _ACEOF
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7903   gl_cv_solaris_64bit=yes
7904 else
7905   gl_cv_solaris_64bit=no
7906 fi
7907 rm -f conftest*
7908
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7912 $as_echo "$gl_cv_solaris_64bit" >&6; }
7913       if test $gl_cv_solaris_64bit = yes; then
7914         acl_libdirstem=lib/64
7915         case "$host_cpu" in
7916           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7917           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7918         esac
7919       fi
7920       ;;
7921     *)
7922       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7923       if test -n "$searchpath"; then
7924         acl_save_IFS="${IFS=    }"; IFS=":"
7925         for searchdir in $searchpath; do
7926           if test -d "$searchdir"; then
7927             case "$searchdir" in
7928               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7929               */../ | */.. )
7930                 # Better ignore directories of this form. They are misleading.
7931                 ;;
7932               *) searchdir=`cd "$searchdir" && pwd`
7933                  case "$searchdir" in
7934                    */lib64 ) acl_libdirstem=lib64 ;;
7935                  esac ;;
7936             esac
7937           fi
7938         done
7939         IFS="$acl_save_IFS"
7940       fi
7941       ;;
7942   esac
7943   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7944
7945
7946
7947   gl_threads_api=none
7948   LIBTHREAD=
7949   LTLIBTHREAD=
7950   LIBMULTITHREAD=
7951   LTLIBMULTITHREAD=
7952   if test "$gl_use_threads" != no; then
7953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7954 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7955 if ${gl_cv_have_weak+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   gl_cv_have_weak=no
7959               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961 extern void xyzzy ();
7962 #pragma weak xyzzy
7963 int
7964 main ()
7965 {
7966 xyzzy();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972   gl_cv_have_weak=maybe
7973 fi
7974 rm -f core conftest.err conftest.$ac_objext \
7975     conftest$ac_exeext conftest.$ac_ext
7976        if test $gl_cv_have_weak = maybe; then
7977                            if test "$cross_compiling" = yes; then :
7978                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h.  */
7980 #ifdef __ELF__
7981                Extensible Linking Format
7982                #endif
7983
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7987   gl_cv_have_weak="guessing yes"
7988 else
7989   gl_cv_have_weak="guessing no"
7990 fi
7991 rm -f conftest*
7992
7993
7994 else
7995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997
7998 #include <stdio.h>
7999 #pragma weak fputs
8000 int main ()
8001 {
8002   return (fputs == NULL);
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_run "$LINENO"; then :
8006   gl_cv_have_weak=yes
8007 else
8008   gl_cv_have_weak=no
8009 fi
8010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8011   conftest.$ac_objext conftest.beam conftest.$ac_ext
8012 fi
8013
8014        fi
8015
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
8018 $as_echo "$gl_cv_have_weak" >&6; }
8019     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8020       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
8021       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
8022       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8023 if test "x$ac_cv_header_pthread_h" = xyes; then :
8024   gl_have_pthread_h=yes
8025 else
8026   gl_have_pthread_h=no
8027 fi
8028
8029
8030       if test "$gl_have_pthread_h" = yes; then
8031         # Other possible tests:
8032         #   -lpthreads (FSU threads, PCthreads)
8033         #   -lgthreads
8034         gl_have_pthread=
8035         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8036         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8037         # the second one only in libpthread, and lock.c needs it.
8038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h.  */
8040 #include <pthread.h>
8041 int
8042 main ()
8043 {
8044 pthread_mutex_lock((pthread_mutex_t*)0);
8045                pthread_mutexattr_init((pthread_mutexattr_t*)0);
8046   ;
8047   return 0;
8048 }
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8051   gl_have_pthread=yes
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054     conftest$ac_exeext conftest.$ac_ext
8055         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8056         # since it is defined as a macro on OSF/1.)
8057         if test -n "$gl_have_pthread"; then
8058           # The program links fine without libpthread. But it may actually
8059           # need to link with libpthread in order to create multiple threads.
8060           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8061 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8062 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lpthread  $LIBS"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h.  */
8069
8070 /* Override any GCC internal prototype to avoid an error.
8071    Use char because int might match the return type of a GCC
8072    builtin and then its argument prototype would still apply.  */
8073 #ifdef __cplusplus
8074 extern "C"
8075 #endif
8076 char pthread_kill ();
8077 int
8078 main ()
8079 {
8080 return pthread_kill ();
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086   ac_cv_lib_pthread_pthread_kill=yes
8087 else
8088   ac_cv_lib_pthread_pthread_kill=no
8089 fi
8090 rm -f core conftest.err conftest.$ac_objext \
8091     conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8095 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8096 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8097   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8098              # On Solaris and HP-UX, most pthread functions exist also in libc.
8099              # Therefore pthread_in_use() needs to actually try to create a
8100              # thread: pthread_create from libc will fail, whereas
8101              # pthread_create will actually create a thread.
8102              case "$host_os" in
8103                solaris* | hpux*)
8104
8105 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8106
8107              esac
8108
8109 fi
8110
8111         else
8112           # Some library is needed. Try libpthread and libc_r.
8113           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8114 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8115 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   ac_check_lib_save_LIBS=$LIBS
8119 LIBS="-lpthread  $LIBS"
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h.  */
8122
8123 /* Override any GCC internal prototype to avoid an error.
8124    Use char because int might match the return type of a GCC
8125    builtin and then its argument prototype would still apply.  */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 char pthread_kill ();
8130 int
8131 main ()
8132 {
8133 return pthread_kill ();
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139   ac_cv_lib_pthread_pthread_kill=yes
8140 else
8141   ac_cv_lib_pthread_pthread_kill=no
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext \
8144     conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8148 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8149 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8150   gl_have_pthread=yes
8151              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8152              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8153 fi
8154
8155           if test -z "$gl_have_pthread"; then
8156             # For FreeBSD 4.
8157             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8158 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8159 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   ac_check_lib_save_LIBS=$LIBS
8163 LIBS="-lc_r  $LIBS"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166
8167 /* Override any GCC internal prototype to avoid an error.
8168    Use char because int might match the return type of a GCC
8169    builtin and then its argument prototype would still apply.  */
8170 #ifdef __cplusplus
8171 extern "C"
8172 #endif
8173 char pthread_kill ();
8174 int
8175 main ()
8176 {
8177 return pthread_kill ();
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 if ac_fn_c_try_link "$LINENO"; then :
8183   ac_cv_lib_c_r_pthread_kill=yes
8184 else
8185   ac_cv_lib_c_r_pthread_kill=no
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext \
8188     conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8192 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8193 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8194   gl_have_pthread=yes
8195                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8196                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8197 fi
8198
8199           fi
8200         fi
8201         if test -n "$gl_have_pthread"; then
8202           gl_threads_api=posix
8203
8204 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8205
8206           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8207             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8208
8209 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8210
8211               LIBTHREAD=
8212               LTLIBTHREAD=
8213             fi
8214           fi
8215         fi
8216       fi
8217     fi
8218     if test -z "$gl_have_pthread"; then
8219       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8220         gl_have_solaristhread=
8221         gl_save_LIBS="$LIBS"
8222         LIBS="$LIBS -lthread"
8223         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h.  */
8225
8226 #include <thread.h>
8227 #include <synch.h>
8228
8229 int
8230 main ()
8231 {
8232 thr_self();
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238   gl_have_solaristhread=yes
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext \
8241     conftest$ac_exeext conftest.$ac_ext
8242         LIBS="$gl_save_LIBS"
8243         if test -n "$gl_have_solaristhread"; then
8244           gl_threads_api=solaris
8245           LIBTHREAD=-lthread
8246           LTLIBTHREAD=-lthread
8247           LIBMULTITHREAD="$LIBTHREAD"
8248           LTLIBMULTITHREAD="$LTLIBTHREAD"
8249
8250 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8251
8252           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8253
8254 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8255
8256             LIBTHREAD=
8257             LTLIBTHREAD=
8258           fi
8259         fi
8260       fi
8261     fi
8262     if test "$gl_use_threads" = pth; then
8263       gl_save_CPPFLAGS="$CPPFLAGS"
8264
8265
8266
8267
8268
8269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8270 $as_echo_n "checking how to link with libpth... " >&6; }
8271 if ${ac_cv_libpth_libs+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274
8275
8276
8277
8278
8279
8280
8281
8282     use_additional=yes
8283
8284   acl_save_prefix="$prefix"
8285   prefix="$acl_final_prefix"
8286   acl_save_exec_prefix="$exec_prefix"
8287   exec_prefix="$acl_final_exec_prefix"
8288
8289     eval additional_includedir=\"$includedir\"
8290     eval additional_libdir=\"$libdir\"
8291
8292   exec_prefix="$acl_save_exec_prefix"
8293   prefix="$acl_save_prefix"
8294
8295
8296 # Check whether --with-libpth-prefix was given.
8297 if test "${with_libpth_prefix+set}" = set; then :
8298   withval=$with_libpth_prefix;
8299     if test "X$withval" = "Xno"; then
8300       use_additional=no
8301     else
8302       if test "X$withval" = "X"; then
8303
8304   acl_save_prefix="$prefix"
8305   prefix="$acl_final_prefix"
8306   acl_save_exec_prefix="$exec_prefix"
8307   exec_prefix="$acl_final_exec_prefix"
8308
8309           eval additional_includedir=\"$includedir\"
8310           eval additional_libdir=\"$libdir\"
8311
8312   exec_prefix="$acl_save_exec_prefix"
8313   prefix="$acl_save_prefix"
8314
8315       else
8316         additional_includedir="$withval/include"
8317         additional_libdir="$withval/$acl_libdirstem"
8318         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8319            && ! test -d "$withval/$acl_libdirstem"; then
8320           additional_libdir="$withval/$acl_libdirstem2"
8321         fi
8322       fi
8323     fi
8324
8325 fi
8326
8327       LIBPTH=
8328   LTLIBPTH=
8329   INCPTH=
8330   LIBPTH_PREFIX=
8331       HAVE_LIBPTH=
8332   rpathdirs=
8333   ltrpathdirs=
8334   names_already_handled=
8335   names_next_round='pth '
8336   while test -n "$names_next_round"; do
8337     names_this_round="$names_next_round"
8338     names_next_round=
8339     for name in $names_this_round; do
8340       already_handled=
8341       for n in $names_already_handled; do
8342         if test "$n" = "$name"; then
8343           already_handled=yes
8344           break
8345         fi
8346       done
8347       if test -z "$already_handled"; then
8348         names_already_handled="$names_already_handled $name"
8349                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8350         eval value=\"\$HAVE_LIB$uppername\"
8351         if test -n "$value"; then
8352           if test "$value" = yes; then
8353             eval value=\"\$LIB$uppername\"
8354             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8355             eval value=\"\$LTLIB$uppername\"
8356             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8357           else
8358                                     :
8359           fi
8360         else
8361                               found_dir=
8362           found_la=
8363           found_so=
8364           found_a=
8365           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8366           if test -n "$acl_shlibext"; then
8367             shrext=".$acl_shlibext"             # typically: shrext=.so
8368           else
8369             shrext=
8370           fi
8371           if test $use_additional = yes; then
8372             dir="$additional_libdir"
8373                                     if test -n "$acl_shlibext"; then
8374               if test -f "$dir/$libname$shrext"; then
8375                 found_dir="$dir"
8376                 found_so="$dir/$libname$shrext"
8377               else
8378                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8379                   ver=`(cd "$dir" && \
8380                         for f in "$libname$shrext".*; do echo "$f"; done \
8381                         | sed -e "s,^$libname$shrext\\\\.,," \
8382                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8383                         | sed 1q ) 2>/dev/null`
8384                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8385                     found_dir="$dir"
8386                     found_so="$dir/$libname$shrext.$ver"
8387                   fi
8388                 else
8389                   eval library_names=\"$acl_library_names_spec\"
8390                   for f in $library_names; do
8391                     if test -f "$dir/$f"; then
8392                       found_dir="$dir"
8393                       found_so="$dir/$f"
8394                       break
8395                     fi
8396                   done
8397                 fi
8398               fi
8399             fi
8400                         if test "X$found_dir" = "X"; then
8401               if test -f "$dir/$libname.$acl_libext"; then
8402                 found_dir="$dir"
8403                 found_a="$dir/$libname.$acl_libext"
8404               fi
8405             fi
8406             if test "X$found_dir" != "X"; then
8407               if test -f "$dir/$libname.la"; then
8408                 found_la="$dir/$libname.la"
8409               fi
8410             fi
8411           fi
8412           if test "X$found_dir" = "X"; then
8413             for x in $LDFLAGS $LTLIBPTH; do
8414
8415   acl_save_prefix="$prefix"
8416   prefix="$acl_final_prefix"
8417   acl_save_exec_prefix="$exec_prefix"
8418   exec_prefix="$acl_final_exec_prefix"
8419   eval x=\"$x\"
8420   exec_prefix="$acl_save_exec_prefix"
8421   prefix="$acl_save_prefix"
8422
8423               case "$x" in
8424                 -L*)
8425                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8426                                     if test -n "$acl_shlibext"; then
8427                     if test -f "$dir/$libname$shrext"; then
8428                       found_dir="$dir"
8429                       found_so="$dir/$libname$shrext"
8430                     else
8431                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8432                         ver=`(cd "$dir" && \
8433                               for f in "$libname$shrext".*; do echo "$f"; done \
8434                               | sed -e "s,^$libname$shrext\\\\.,," \
8435                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8436                               | sed 1q ) 2>/dev/null`
8437                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8438                           found_dir="$dir"
8439                           found_so="$dir/$libname$shrext.$ver"
8440                         fi
8441                       else
8442                         eval library_names=\"$acl_library_names_spec\"
8443                         for f in $library_names; do
8444                           if test -f "$dir/$f"; then
8445                             found_dir="$dir"
8446                             found_so="$dir/$f"
8447                             break
8448                           fi
8449                         done
8450                       fi
8451                     fi
8452                   fi
8453                                     if test "X$found_dir" = "X"; then
8454                     if test -f "$dir/$libname.$acl_libext"; then
8455                       found_dir="$dir"
8456                       found_a="$dir/$libname.$acl_libext"
8457                     fi
8458                   fi
8459                   if test "X$found_dir" != "X"; then
8460                     if test -f "$dir/$libname.la"; then
8461                       found_la="$dir/$libname.la"
8462                     fi
8463                   fi
8464                   ;;
8465               esac
8466               if test "X$found_dir" != "X"; then
8467                 break
8468               fi
8469             done
8470           fi
8471           if test "X$found_dir" != "X"; then
8472                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8473             if test "X$found_so" != "X"; then
8474                                                         if test "$enable_rpath" = no \
8475                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8476                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8477                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8478               else
8479                                                                                 haveit=
8480                 for x in $ltrpathdirs; do
8481                   if test "X$x" = "X$found_dir"; then
8482                     haveit=yes
8483                     break
8484                   fi
8485                 done
8486                 if test -z "$haveit"; then
8487                   ltrpathdirs="$ltrpathdirs $found_dir"
8488                 fi
8489                                 if test "$acl_hardcode_direct" = yes; then
8490                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8491                 else
8492                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8493                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8494                                                             haveit=
8495                     for x in $rpathdirs; do
8496                       if test "X$x" = "X$found_dir"; then
8497                         haveit=yes
8498                         break
8499                       fi
8500                     done
8501                     if test -z "$haveit"; then
8502                       rpathdirs="$rpathdirs $found_dir"
8503                     fi
8504                   else
8505                                                                                 haveit=
8506                     for x in $LDFLAGS $LIBPTH; do
8507
8508   acl_save_prefix="$prefix"
8509   prefix="$acl_final_prefix"
8510   acl_save_exec_prefix="$exec_prefix"
8511   exec_prefix="$acl_final_exec_prefix"
8512   eval x=\"$x\"
8513   exec_prefix="$acl_save_exec_prefix"
8514   prefix="$acl_save_prefix"
8515
8516                       if test "X$x" = "X-L$found_dir"; then
8517                         haveit=yes
8518                         break
8519                       fi
8520                     done
8521                     if test -z "$haveit"; then
8522                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8523                     fi
8524                     if test "$acl_hardcode_minus_L" != no; then
8525                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8526                     else
8527                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8528                     fi
8529                   fi
8530                 fi
8531               fi
8532             else
8533               if test "X$found_a" != "X"; then
8534                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8535               else
8536                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8537               fi
8538             fi
8539                         additional_includedir=
8540             case "$found_dir" in
8541               */$acl_libdirstem | */$acl_libdirstem/)
8542                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8543                 if test "$name" = 'pth'; then
8544                   LIBPTH_PREFIX="$basedir"
8545                 fi
8546                 additional_includedir="$basedir/include"
8547                 ;;
8548               */$acl_libdirstem2 | */$acl_libdirstem2/)
8549                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8550                 if test "$name" = 'pth'; then
8551                   LIBPTH_PREFIX="$basedir"
8552                 fi
8553                 additional_includedir="$basedir/include"
8554                 ;;
8555             esac
8556             if test "X$additional_includedir" != "X"; then
8557                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8558                 haveit=
8559                 if test "X$additional_includedir" = "X/usr/local/include"; then
8560                   if test -n "$GCC"; then
8561                     case $host_os in
8562                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8563                     esac
8564                   fi
8565                 fi
8566                 if test -z "$haveit"; then
8567                   for x in $CPPFLAGS $INCPTH; do
8568
8569   acl_save_prefix="$prefix"
8570   prefix="$acl_final_prefix"
8571   acl_save_exec_prefix="$exec_prefix"
8572   exec_prefix="$acl_final_exec_prefix"
8573   eval x=\"$x\"
8574   exec_prefix="$acl_save_exec_prefix"
8575   prefix="$acl_save_prefix"
8576
8577                     if test "X$x" = "X-I$additional_includedir"; then
8578                       haveit=yes
8579                       break
8580                     fi
8581                   done
8582                   if test -z "$haveit"; then
8583                     if test -d "$additional_includedir"; then
8584                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8585                     fi
8586                   fi
8587                 fi
8588               fi
8589             fi
8590                         if test -n "$found_la"; then
8591                                                         save_libdir="$libdir"
8592               case "$found_la" in
8593                 */* | *\\*) . "$found_la" ;;
8594                 *) . "./$found_la" ;;
8595               esac
8596               libdir="$save_libdir"
8597                             for dep in $dependency_libs; do
8598                 case "$dep" in
8599                   -L*)
8600                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8601                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8602                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8603                       haveit=
8604                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8605                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8606                         if test -n "$GCC"; then
8607                           case $host_os in
8608                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8609                           esac
8610                         fi
8611                       fi
8612                       if test -z "$haveit"; then
8613                         haveit=
8614                         for x in $LDFLAGS $LIBPTH; do
8615
8616   acl_save_prefix="$prefix"
8617   prefix="$acl_final_prefix"
8618   acl_save_exec_prefix="$exec_prefix"
8619   exec_prefix="$acl_final_exec_prefix"
8620   eval x=\"$x\"
8621   exec_prefix="$acl_save_exec_prefix"
8622   prefix="$acl_save_prefix"
8623
8624                           if test "X$x" = "X-L$additional_libdir"; then
8625                             haveit=yes
8626                             break
8627                           fi
8628                         done
8629                         if test -z "$haveit"; then
8630                           if test -d "$additional_libdir"; then
8631                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8632                           fi
8633                         fi
8634                         haveit=
8635                         for x in $LDFLAGS $LTLIBPTH; do
8636
8637   acl_save_prefix="$prefix"
8638   prefix="$acl_final_prefix"
8639   acl_save_exec_prefix="$exec_prefix"
8640   exec_prefix="$acl_final_exec_prefix"
8641   eval x=\"$x\"
8642   exec_prefix="$acl_save_exec_prefix"
8643   prefix="$acl_save_prefix"
8644
8645                           if test "X$x" = "X-L$additional_libdir"; then
8646                             haveit=yes
8647                             break
8648                           fi
8649                         done
8650                         if test -z "$haveit"; then
8651                           if test -d "$additional_libdir"; then
8652                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8653                           fi
8654                         fi
8655                       fi
8656                     fi
8657                     ;;
8658                   -R*)
8659                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8660                     if test "$enable_rpath" != no; then
8661                                                                   haveit=
8662                       for x in $rpathdirs; do
8663                         if test "X$x" = "X$dir"; then
8664                           haveit=yes
8665                           break
8666                         fi
8667                       done
8668                       if test -z "$haveit"; then
8669                         rpathdirs="$rpathdirs $dir"
8670                       fi
8671                                                                   haveit=
8672                       for x in $ltrpathdirs; do
8673                         if test "X$x" = "X$dir"; then
8674                           haveit=yes
8675                           break
8676                         fi
8677                       done
8678                       if test -z "$haveit"; then
8679                         ltrpathdirs="$ltrpathdirs $dir"
8680                       fi
8681                     fi
8682                     ;;
8683                   -l*)
8684                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8685                     ;;
8686                   *.la)
8687                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8688                     ;;
8689                   *)
8690                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8691                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8692                     ;;
8693                 esac
8694               done
8695             fi
8696           else
8697                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8698             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8699           fi
8700         fi
8701       fi
8702     done
8703   done
8704   if test "X$rpathdirs" != "X"; then
8705     if test -n "$acl_hardcode_libdir_separator"; then
8706                         alldirs=
8707       for found_dir in $rpathdirs; do
8708         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8709       done
8710             acl_save_libdir="$libdir"
8711       libdir="$alldirs"
8712       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8713       libdir="$acl_save_libdir"
8714       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8715     else
8716             for found_dir in $rpathdirs; do
8717         acl_save_libdir="$libdir"
8718         libdir="$found_dir"
8719         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8720         libdir="$acl_save_libdir"
8721         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8722       done
8723     fi
8724   fi
8725   if test "X$ltrpathdirs" != "X"; then
8726             for found_dir in $ltrpathdirs; do
8727       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8728     done
8729   fi
8730
8731
8732
8733
8734
8735
8736     ac_cv_libpth_libs="$LIBPTH"
8737     ac_cv_libpth_ltlibs="$LTLIBPTH"
8738     ac_cv_libpth_cppflags="$INCPTH"
8739     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8740
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8743 $as_echo "$ac_cv_libpth_libs" >&6; }
8744   LIBPTH="$ac_cv_libpth_libs"
8745   LTLIBPTH="$ac_cv_libpth_ltlibs"
8746   INCPTH="$ac_cv_libpth_cppflags"
8747   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8748
8749   for element in $INCPTH; do
8750     haveit=
8751     for x in $CPPFLAGS; do
8752
8753   acl_save_prefix="$prefix"
8754   prefix="$acl_final_prefix"
8755   acl_save_exec_prefix="$exec_prefix"
8756   exec_prefix="$acl_final_exec_prefix"
8757   eval x=\"$x\"
8758   exec_prefix="$acl_save_exec_prefix"
8759   prefix="$acl_save_prefix"
8760
8761       if test "X$x" = "X$element"; then
8762         haveit=yes
8763         break
8764       fi
8765     done
8766     if test -z "$haveit"; then
8767       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8768     fi
8769   done
8770
8771
8772
8773
8774       HAVE_LIBPTH=yes
8775
8776
8777
8778       gl_have_pth=
8779       gl_save_LIBS="$LIBS"
8780       LIBS="$LIBS $LIBPTH"
8781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h.  */
8783 #include <pth.h>
8784 int
8785 main ()
8786 {
8787 pth_self();
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8793   gl_have_pth=yes
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext \
8796     conftest$ac_exeext conftest.$ac_ext
8797       LIBS="$gl_save_LIBS"
8798       if test -n "$gl_have_pth"; then
8799         gl_threads_api=pth
8800         LIBTHREAD="$LIBPTH"
8801         LTLIBTHREAD="$LTLIBPTH"
8802         LIBMULTITHREAD="$LIBTHREAD"
8803         LTLIBMULTITHREAD="$LTLIBTHREAD"
8804
8805 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8806
8807         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8808           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8809
8810 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8811
8812             LIBTHREAD=
8813             LTLIBTHREAD=
8814           fi
8815         fi
8816       else
8817         CPPFLAGS="$gl_save_CPPFLAGS"
8818       fi
8819     fi
8820     if test -z "$gl_have_pthread"; then
8821       case "$gl_use_threads" in
8822         yes | windows | win32) # The 'win32' is for backward compatibility.
8823           if { case "$host_os" in
8824                  mingw*) true;;
8825                  *) false;;
8826                esac
8827              }; then
8828             gl_threads_api=windows
8829
8830 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8831
8832           fi
8833           ;;
8834       esac
8835     fi
8836   fi
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8838 $as_echo_n "checking for multithread API to use... " >&6; }
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8840 $as_echo "$gl_threads_api" >&6; }
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852   if test "$gl_threads_api" = posix; then
8853     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8854     # pthread_rwlock_* functions.
8855     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8856 "
8857 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8858
8859 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8860
8861 fi
8862
8863     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h.  */
8866
8867       #include <pthread.h>
8868 int
8869 main ()
8870 {
8871
8872 #if __FreeBSD__ == 4
8873 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8874 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8875        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8876 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8877 #else
8878 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8879 return !x;
8880 #endif
8881
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 if ac_fn_c_try_compile "$LINENO"; then :
8887
8888 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8889
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892   fi
8893   :
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906     use_additional=yes
8907
8908   acl_save_prefix="$prefix"
8909   prefix="$acl_final_prefix"
8910   acl_save_exec_prefix="$exec_prefix"
8911   exec_prefix="$acl_final_exec_prefix"
8912
8913     eval additional_includedir=\"$includedir\"
8914     eval additional_libdir=\"$libdir\"
8915
8916   exec_prefix="$acl_save_exec_prefix"
8917   prefix="$acl_save_prefix"
8918
8919
8920 # Check whether --with-libiconv-prefix was given.
8921 if test "${with_libiconv_prefix+set}" = set; then :
8922   withval=$with_libiconv_prefix;
8923     if test "X$withval" = "Xno"; then
8924       use_additional=no
8925     else
8926       if test "X$withval" = "X"; then
8927
8928   acl_save_prefix="$prefix"
8929   prefix="$acl_final_prefix"
8930   acl_save_exec_prefix="$exec_prefix"
8931   exec_prefix="$acl_final_exec_prefix"
8932
8933           eval additional_includedir=\"$includedir\"
8934           eval additional_libdir=\"$libdir\"
8935
8936   exec_prefix="$acl_save_exec_prefix"
8937   prefix="$acl_save_prefix"
8938
8939       else
8940         additional_includedir="$withval/include"
8941         additional_libdir="$withval/$acl_libdirstem"
8942         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8943            && ! test -d "$withval/$acl_libdirstem"; then
8944           additional_libdir="$withval/$acl_libdirstem2"
8945         fi
8946       fi
8947     fi
8948
8949 fi
8950
8951       LIBICONV=
8952   LTLIBICONV=
8953   INCICONV=
8954   LIBICONV_PREFIX=
8955       HAVE_LIBICONV=
8956   rpathdirs=
8957   ltrpathdirs=
8958   names_already_handled=
8959   names_next_round='iconv '
8960   while test -n "$names_next_round"; do
8961     names_this_round="$names_next_round"
8962     names_next_round=
8963     for name in $names_this_round; do
8964       already_handled=
8965       for n in $names_already_handled; do
8966         if test "$n" = "$name"; then
8967           already_handled=yes
8968           break
8969         fi
8970       done
8971       if test -z "$already_handled"; then
8972         names_already_handled="$names_already_handled $name"
8973                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8974         eval value=\"\$HAVE_LIB$uppername\"
8975         if test -n "$value"; then
8976           if test "$value" = yes; then
8977             eval value=\"\$LIB$uppername\"
8978             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8979             eval value=\"\$LTLIB$uppername\"
8980             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8981           else
8982                                     :
8983           fi
8984         else
8985                               found_dir=
8986           found_la=
8987           found_so=
8988           found_a=
8989           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8990           if test -n "$acl_shlibext"; then
8991             shrext=".$acl_shlibext"             # typically: shrext=.so
8992           else
8993             shrext=
8994           fi
8995           if test $use_additional = yes; then
8996             dir="$additional_libdir"
8997                                     if test -n "$acl_shlibext"; then
8998               if test -f "$dir/$libname$shrext"; then
8999                 found_dir="$dir"
9000                 found_so="$dir/$libname$shrext"
9001               else
9002                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9003                   ver=`(cd "$dir" && \
9004                         for f in "$libname$shrext".*; do echo "$f"; done \
9005                         | sed -e "s,^$libname$shrext\\\\.,," \
9006                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9007                         | sed 1q ) 2>/dev/null`
9008                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9009                     found_dir="$dir"
9010                     found_so="$dir/$libname$shrext.$ver"
9011                   fi
9012                 else
9013                   eval library_names=\"$acl_library_names_spec\"
9014                   for f in $library_names; do
9015                     if test -f "$dir/$f"; then
9016                       found_dir="$dir"
9017                       found_so="$dir/$f"
9018                       break
9019                     fi
9020                   done
9021                 fi
9022               fi
9023             fi
9024                         if test "X$found_dir" = "X"; then
9025               if test -f "$dir/$libname.$acl_libext"; then
9026                 found_dir="$dir"
9027                 found_a="$dir/$libname.$acl_libext"
9028               fi
9029             fi
9030             if test "X$found_dir" != "X"; then
9031               if test -f "$dir/$libname.la"; then
9032                 found_la="$dir/$libname.la"
9033               fi
9034             fi
9035           fi
9036           if test "X$found_dir" = "X"; then
9037             for x in $LDFLAGS $LTLIBICONV; do
9038
9039   acl_save_prefix="$prefix"
9040   prefix="$acl_final_prefix"
9041   acl_save_exec_prefix="$exec_prefix"
9042   exec_prefix="$acl_final_exec_prefix"
9043   eval x=\"$x\"
9044   exec_prefix="$acl_save_exec_prefix"
9045   prefix="$acl_save_prefix"
9046
9047               case "$x" in
9048                 -L*)
9049                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9050                                     if test -n "$acl_shlibext"; then
9051                     if test -f "$dir/$libname$shrext"; then
9052                       found_dir="$dir"
9053                       found_so="$dir/$libname$shrext"
9054                     else
9055                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9056                         ver=`(cd "$dir" && \
9057                               for f in "$libname$shrext".*; do echo "$f"; done \
9058                               | sed -e "s,^$libname$shrext\\\\.,," \
9059                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9060                               | sed 1q ) 2>/dev/null`
9061                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9062                           found_dir="$dir"
9063                           found_so="$dir/$libname$shrext.$ver"
9064                         fi
9065                       else
9066                         eval library_names=\"$acl_library_names_spec\"
9067                         for f in $library_names; do
9068                           if test -f "$dir/$f"; then
9069                             found_dir="$dir"
9070                             found_so="$dir/$f"
9071                             break
9072                           fi
9073                         done
9074                       fi
9075                     fi
9076                   fi
9077                                     if test "X$found_dir" = "X"; then
9078                     if test -f "$dir/$libname.$acl_libext"; then
9079                       found_dir="$dir"
9080                       found_a="$dir/$libname.$acl_libext"
9081                     fi
9082                   fi
9083                   if test "X$found_dir" != "X"; then
9084                     if test -f "$dir/$libname.la"; then
9085                       found_la="$dir/$libname.la"
9086                     fi
9087                   fi
9088                   ;;
9089               esac
9090               if test "X$found_dir" != "X"; then
9091                 break
9092               fi
9093             done
9094           fi
9095           if test "X$found_dir" != "X"; then
9096                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9097             if test "X$found_so" != "X"; then
9098                                                         if test "$enable_rpath" = no \
9099                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9100                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9101                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9102               else
9103                                                                                 haveit=
9104                 for x in $ltrpathdirs; do
9105                   if test "X$x" = "X$found_dir"; then
9106                     haveit=yes
9107                     break
9108                   fi
9109                 done
9110                 if test -z "$haveit"; then
9111                   ltrpathdirs="$ltrpathdirs $found_dir"
9112                 fi
9113                                 if test "$acl_hardcode_direct" = yes; then
9114                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9115                 else
9116                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9117                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9118                                                             haveit=
9119                     for x in $rpathdirs; do
9120                       if test "X$x" = "X$found_dir"; then
9121                         haveit=yes
9122                         break
9123                       fi
9124                     done
9125                     if test -z "$haveit"; then
9126                       rpathdirs="$rpathdirs $found_dir"
9127                     fi
9128                   else
9129                                                                                 haveit=
9130                     for x in $LDFLAGS $LIBICONV; do
9131
9132   acl_save_prefix="$prefix"
9133   prefix="$acl_final_prefix"
9134   acl_save_exec_prefix="$exec_prefix"
9135   exec_prefix="$acl_final_exec_prefix"
9136   eval x=\"$x\"
9137   exec_prefix="$acl_save_exec_prefix"
9138   prefix="$acl_save_prefix"
9139
9140                       if test "X$x" = "X-L$found_dir"; then
9141                         haveit=yes
9142                         break
9143                       fi
9144                     done
9145                     if test -z "$haveit"; then
9146                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9147                     fi
9148                     if test "$acl_hardcode_minus_L" != no; then
9149                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9150                     else
9151                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9152                     fi
9153                   fi
9154                 fi
9155               fi
9156             else
9157               if test "X$found_a" != "X"; then
9158                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9159               else
9160                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9161               fi
9162             fi
9163                         additional_includedir=
9164             case "$found_dir" in
9165               */$acl_libdirstem | */$acl_libdirstem/)
9166                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9167                 if test "$name" = 'iconv'; then
9168                   LIBICONV_PREFIX="$basedir"
9169                 fi
9170                 additional_includedir="$basedir/include"
9171                 ;;
9172               */$acl_libdirstem2 | */$acl_libdirstem2/)
9173                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9174                 if test "$name" = 'iconv'; then
9175                   LIBICONV_PREFIX="$basedir"
9176                 fi
9177                 additional_includedir="$basedir/include"
9178                 ;;
9179             esac
9180             if test "X$additional_includedir" != "X"; then
9181                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9182                 haveit=
9183                 if test "X$additional_includedir" = "X/usr/local/include"; then
9184                   if test -n "$GCC"; then
9185                     case $host_os in
9186                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9187                     esac
9188                   fi
9189                 fi
9190                 if test -z "$haveit"; then
9191                   for x in $CPPFLAGS $INCICONV; do
9192
9193   acl_save_prefix="$prefix"
9194   prefix="$acl_final_prefix"
9195   acl_save_exec_prefix="$exec_prefix"
9196   exec_prefix="$acl_final_exec_prefix"
9197   eval x=\"$x\"
9198   exec_prefix="$acl_save_exec_prefix"
9199   prefix="$acl_save_prefix"
9200
9201                     if test "X$x" = "X-I$additional_includedir"; then
9202                       haveit=yes
9203                       break
9204                     fi
9205                   done
9206                   if test -z "$haveit"; then
9207                     if test -d "$additional_includedir"; then
9208                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9209                     fi
9210                   fi
9211                 fi
9212               fi
9213             fi
9214                         if test -n "$found_la"; then
9215                                                         save_libdir="$libdir"
9216               case "$found_la" in
9217                 */* | *\\*) . "$found_la" ;;
9218                 *) . "./$found_la" ;;
9219               esac
9220               libdir="$save_libdir"
9221                             for dep in $dependency_libs; do
9222                 case "$dep" in
9223                   -L*)
9224                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9226                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9227                       haveit=
9228                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9229                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9230                         if test -n "$GCC"; then
9231                           case $host_os in
9232                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9233                           esac
9234                         fi
9235                       fi
9236                       if test -z "$haveit"; then
9237                         haveit=
9238                         for x in $LDFLAGS $LIBICONV; do
9239
9240   acl_save_prefix="$prefix"
9241   prefix="$acl_final_prefix"
9242   acl_save_exec_prefix="$exec_prefix"
9243   exec_prefix="$acl_final_exec_prefix"
9244   eval x=\"$x\"
9245   exec_prefix="$acl_save_exec_prefix"
9246   prefix="$acl_save_prefix"
9247
9248                           if test "X$x" = "X-L$additional_libdir"; then
9249                             haveit=yes
9250                             break
9251                           fi
9252                         done
9253                         if test -z "$haveit"; then
9254                           if test -d "$additional_libdir"; then
9255                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9256                           fi
9257                         fi
9258                         haveit=
9259                         for x in $LDFLAGS $LTLIBICONV; do
9260
9261   acl_save_prefix="$prefix"
9262   prefix="$acl_final_prefix"
9263   acl_save_exec_prefix="$exec_prefix"
9264   exec_prefix="$acl_final_exec_prefix"
9265   eval x=\"$x\"
9266   exec_prefix="$acl_save_exec_prefix"
9267   prefix="$acl_save_prefix"
9268
9269                           if test "X$x" = "X-L$additional_libdir"; then
9270                             haveit=yes
9271                             break
9272                           fi
9273                         done
9274                         if test -z "$haveit"; then
9275                           if test -d "$additional_libdir"; then
9276                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9277                           fi
9278                         fi
9279                       fi
9280                     fi
9281                     ;;
9282                   -R*)
9283                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9284                     if test "$enable_rpath" != no; then
9285                                                                   haveit=
9286                       for x in $rpathdirs; do
9287                         if test "X$x" = "X$dir"; then
9288                           haveit=yes
9289                           break
9290                         fi
9291                       done
9292                       if test -z "$haveit"; then
9293                         rpathdirs="$rpathdirs $dir"
9294                       fi
9295                                                                   haveit=
9296                       for x in $ltrpathdirs; do
9297                         if test "X$x" = "X$dir"; then
9298                           haveit=yes
9299                           break
9300                         fi
9301                       done
9302                       if test -z "$haveit"; then
9303                         ltrpathdirs="$ltrpathdirs $dir"
9304                       fi
9305                     fi
9306                     ;;
9307                   -l*)
9308                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9309                     ;;
9310                   *.la)
9311                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9312                     ;;
9313                   *)
9314                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9315                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9316                     ;;
9317                 esac
9318               done
9319             fi
9320           else
9321                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9322             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9323           fi
9324         fi
9325       fi
9326     done
9327   done
9328   if test "X$rpathdirs" != "X"; then
9329     if test -n "$acl_hardcode_libdir_separator"; then
9330                         alldirs=
9331       for found_dir in $rpathdirs; do
9332         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9333       done
9334             acl_save_libdir="$libdir"
9335       libdir="$alldirs"
9336       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9337       libdir="$acl_save_libdir"
9338       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9339     else
9340             for found_dir in $rpathdirs; do
9341         acl_save_libdir="$libdir"
9342         libdir="$found_dir"
9343         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9344         libdir="$acl_save_libdir"
9345         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9346       done
9347     fi
9348   fi
9349   if test "X$ltrpathdirs" != "X"; then
9350             for found_dir in $ltrpathdirs; do
9351       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9352     done
9353   fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366           am_save_CPPFLAGS="$CPPFLAGS"
9367
9368   for element in $INCICONV; do
9369     haveit=
9370     for x in $CPPFLAGS; do
9371
9372   acl_save_prefix="$prefix"
9373   prefix="$acl_final_prefix"
9374   acl_save_exec_prefix="$exec_prefix"
9375   exec_prefix="$acl_final_exec_prefix"
9376   eval x=\"$x\"
9377   exec_prefix="$acl_save_exec_prefix"
9378   prefix="$acl_save_prefix"
9379
9380       if test "X$x" = "X$element"; then
9381         haveit=yes
9382         break
9383       fi
9384     done
9385     if test -z "$haveit"; then
9386       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9387     fi
9388   done
9389
9390
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9392 $as_echo_n "checking for iconv... " >&6; }
9393 if ${am_cv_func_iconv+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396
9397     am_cv_func_iconv="no, consider installing GNU libiconv"
9398     am_cv_lib_iconv=no
9399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h.  */
9401
9402 #include <stdlib.h>
9403 #include <iconv.h>
9404
9405 int
9406 main ()
9407 {
9408 iconv_t cd = iconv_open("","");
9409            iconv(cd,NULL,NULL,NULL,NULL);
9410            iconv_close(cd);
9411   ;
9412   return 0;
9413 }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"; then :
9416   am_cv_func_iconv=yes
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext \
9419     conftest$ac_exeext conftest.$ac_ext
9420     if test "$am_cv_func_iconv" != yes; then
9421       am_save_LIBS="$LIBS"
9422       LIBS="$LIBS $LIBICONV"
9423       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h.  */
9425
9426 #include <stdlib.h>
9427 #include <iconv.h>
9428
9429 int
9430 main ()
9431 {
9432 iconv_t cd = iconv_open("","");
9433              iconv(cd,NULL,NULL,NULL,NULL);
9434              iconv_close(cd);
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"; then :
9440   am_cv_lib_iconv=yes
9441         am_cv_func_iconv=yes
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext \
9444     conftest$ac_exeext conftest.$ac_ext
9445       LIBS="$am_save_LIBS"
9446     fi
9447
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9450 $as_echo "$am_cv_func_iconv" >&6; }
9451   if test "$am_cv_func_iconv" = yes; then
9452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9453 $as_echo_n "checking for working iconv... " >&6; }
9454 if ${am_cv_func_iconv_works+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457
9458                   am_save_LIBS="$LIBS"
9459       if test $am_cv_lib_iconv = yes; then
9460         LIBS="$LIBS $LIBICONV"
9461       fi
9462       if test "$cross_compiling" = yes; then :
9463
9464          case "$host_os" in
9465            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9466            *)            am_cv_func_iconv_works="guessing yes" ;;
9467          esac
9468
9469 else
9470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 #include <iconv.h>
9474 #include <string.h>
9475 int main ()
9476 {
9477   int result = 0;
9478   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9479      returns.  */
9480   {
9481     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9482     if (cd_utf8_to_88591 != (iconv_t)(-1))
9483       {
9484         static const char input[] = "\342\202\254"; /* EURO SIGN */
9485         char buf[10];
9486         const char *inptr = input;
9487         size_t inbytesleft = strlen (input);
9488         char *outptr = buf;
9489         size_t outbytesleft = sizeof (buf);
9490         size_t res = iconv (cd_utf8_to_88591,
9491                             (char **) &inptr, &inbytesleft,
9492                             &outptr, &outbytesleft);
9493         if (res == 0)
9494           result |= 1;
9495         iconv_close (cd_utf8_to_88591);
9496       }
9497   }
9498   /* Test against Solaris 10 bug: Failures are not distinguishable from
9499      successful returns.  */
9500   {
9501     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9502     if (cd_ascii_to_88591 != (iconv_t)(-1))
9503       {
9504         static const char input[] = "\263";
9505         char buf[10];
9506         const char *inptr = input;
9507         size_t inbytesleft = strlen (input);
9508         char *outptr = buf;
9509         size_t outbytesleft = sizeof (buf);
9510         size_t res = iconv (cd_ascii_to_88591,
9511                             (char **) &inptr, &inbytesleft,
9512                             &outptr, &outbytesleft);
9513         if (res == 0)
9514           result |= 2;
9515         iconv_close (cd_ascii_to_88591);
9516       }
9517   }
9518   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
9519   {
9520     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9521     if (cd_88591_to_utf8 != (iconv_t)(-1))
9522       {
9523         static const char input[] = "\304";
9524         static char buf[2] = { (char)0xDE, (char)0xAD };
9525         const char *inptr = input;
9526         size_t inbytesleft = 1;
9527         char *outptr = buf;
9528         size_t outbytesleft = 1;
9529         size_t res = iconv (cd_88591_to_utf8,
9530                             (char **) &inptr, &inbytesleft,
9531                             &outptr, &outbytesleft);
9532         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9533           result |= 4;
9534         iconv_close (cd_88591_to_utf8);
9535       }
9536   }
9537 #if 0 /* This bug could be worked around by the caller.  */
9538   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
9539   {
9540     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9541     if (cd_88591_to_utf8 != (iconv_t)(-1))
9542       {
9543         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9544         char buf[50];
9545         const char *inptr = input;
9546         size_t inbytesleft = strlen (input);
9547         char *outptr = buf;
9548         size_t outbytesleft = sizeof (buf);
9549         size_t res = iconv (cd_88591_to_utf8,
9550                             (char **) &inptr, &inbytesleft,
9551                             &outptr, &outbytesleft);
9552         if ((int)res > 0)
9553           result |= 8;
9554         iconv_close (cd_88591_to_utf8);
9555       }
9556   }
9557 #endif
9558   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9559      provided.  */
9560   if (/* Try standardized names.  */
9561       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9562       /* Try IRIX, OSF/1 names.  */
9563       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9564       /* Try AIX names.  */
9565       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9566       /* Try HP-UX names.  */
9567       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9568     result |= 16;
9569   return result;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_run "$LINENO"; then :
9573   am_cv_func_iconv_works=yes
9574 else
9575   am_cv_func_iconv_works=no
9576 fi
9577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578   conftest.$ac_objext conftest.beam conftest.$ac_ext
9579 fi
9580
9581       LIBS="$am_save_LIBS"
9582
9583 fi
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9585 $as_echo "$am_cv_func_iconv_works" >&6; }
9586     case "$am_cv_func_iconv_works" in
9587       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9588       *)   am_func_iconv=yes ;;
9589     esac
9590   else
9591     am_func_iconv=no am_cv_lib_iconv=no
9592   fi
9593   if test "$am_func_iconv" = yes; then
9594
9595 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9596
9597   fi
9598   if test "$am_cv_lib_iconv" = yes; then
9599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9600 $as_echo_n "checking how to link with libiconv... " >&6; }
9601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9602 $as_echo "$LIBICONV" >&6; }
9603   else
9604             CPPFLAGS="$am_save_CPPFLAGS"
9605     LIBICONV=
9606     LTLIBICONV=
9607   fi
9608
9609
9610
9611   if test "$am_cv_func_iconv" = yes; then
9612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9613 $as_echo_n "checking for iconv declaration... " >&6; }
9614     if ${am_cv_proto_iconv+:} false; then :
9615   $as_echo_n "(cached) " >&6
9616 else
9617
9618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h.  */
9620
9621 #include <stdlib.h>
9622 #include <iconv.h>
9623 extern
9624 #ifdef __cplusplus
9625 "C"
9626 #endif
9627 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9628 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9629 #else
9630 size_t iconv();
9631 #endif
9632
9633 int
9634 main ()
9635 {
9636
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"; then :
9642   am_cv_proto_iconv_arg1=""
9643 else
9644   am_cv_proto_iconv_arg1="const"
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647       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);"
9648 fi
9649
9650     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9651     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9652          $am_cv_proto_iconv" >&5
9653 $as_echo "
9654          $am_cv_proto_iconv" >&6; }
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define ICONV_CONST $am_cv_proto_iconv_arg1
9658 _ACEOF
9659
9660
9661   fi
9662
9663
9664
9665
9666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h.  */
9668 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9669 int
9670 main ()
9671 {
9672
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 if ac_fn_c_try_link "$LINENO"; then :
9678
9679 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9680
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext \
9683     conftest$ac_exeext conftest.$ac_ext
9684
9685   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9686 do :
9687   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9690   cat >>confdefs.h <<_ACEOF
9691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9692 _ACEOF
9693
9694 fi
9695
9696 done
9697
9698   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9699     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9700     argz_stringify argz_next __fsetlocking
9701 do :
9702   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9705   cat >>confdefs.h <<_ACEOF
9706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9707 _ACEOF
9708
9709 fi
9710 done
9711
9712
9713           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9714 "
9715 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9716   ac_have_decl=1
9717 else
9718   ac_have_decl=0
9719 fi
9720
9721 cat >>confdefs.h <<_ACEOF
9722 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9723 _ACEOF
9724 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9725 "
9726 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9727   ac_have_decl=1
9728 else
9729   ac_have_decl=0
9730 fi
9731
9732 cat >>confdefs.h <<_ACEOF
9733 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9734 _ACEOF
9735
9736
9737
9738
9739                       for ac_prog in bison
9740 do
9741   # Extract the first word of "$ac_prog", so it can be a program name with args.
9742 set dummy $ac_prog; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if ${ac_cv_prog_INTLBISON+:} false; then :
9746   $as_echo_n "(cached) " >&6
9747 else
9748   if test -n "$INTLBISON"; then
9749   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9753 do
9754   IFS=$as_save_IFS
9755   test -z "$as_dir" && as_dir=.
9756     for ac_exec_ext in '' $ac_executable_extensions; do
9757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758     ac_cv_prog_INTLBISON="$ac_prog"
9759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760     break 2
9761   fi
9762 done
9763   done
9764 IFS=$as_save_IFS
9765
9766 fi
9767 fi
9768 INTLBISON=$ac_cv_prog_INTLBISON
9769 if test -n "$INTLBISON"; then
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9771 $as_echo "$INTLBISON" >&6; }
9772 else
9773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9775 fi
9776
9777
9778   test -n "$INTLBISON" && break
9779 done
9780
9781   if test -z "$INTLBISON"; then
9782     ac_verc_fail=yes
9783   else
9784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9785 $as_echo_n "checking version of bison... " >&6; }
9786     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9787     case $ac_prog_version in
9788       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9789       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9790          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9791       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9792     esac
9793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9794 $as_echo "$ac_prog_version" >&6; }
9795   fi
9796   if test $ac_verc_fail = yes; then
9797     INTLBISON=:
9798   fi
9799
9800
9801
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9803 $as_echo_n "checking for long long int... " >&6; }
9804 if ${ac_cv_type_long_long_int+:} false; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   ac_cv_type_long_long_int=yes
9808       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9809         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9810         if test $ac_cv_type_long_long_int = yes; then
9811                                         if test "$cross_compiling" = yes; then :
9812   :
9813 else
9814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816 #include <limits.h>
9817                  #ifndef LLONG_MAX
9818                  # define HALF \
9819                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9820                  # define LLONG_MAX (HALF - 1 + HALF)
9821                  #endif
9822 int
9823 main ()
9824 {
9825 long long int n = 1;
9826                  int i;
9827                  for (i = 0; ; i++)
9828                    {
9829                      long long int m = n << i;
9830                      if (m >> i != n)
9831                        return 1;
9832                      if (LLONG_MAX / 2 < m)
9833                        break;
9834                    }
9835                  return 0;
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_run "$LINENO"; then :
9841
9842 else
9843   ac_cv_type_long_long_int=no
9844 fi
9845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9846   conftest.$ac_objext conftest.beam conftest.$ac_ext
9847 fi
9848
9849         fi
9850       fi
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9853 $as_echo "$ac_cv_type_long_long_int" >&6; }
9854   if test $ac_cv_type_long_long_int = yes; then
9855
9856 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9857
9858   fi
9859
9860
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9862 $as_echo_n "checking for wchar_t... " >&6; }
9863 if ${gt_cv_c_wchar_t+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h.  */
9868 #include <stddef.h>
9869             wchar_t foo = (wchar_t)'\0';
9870 int
9871 main ()
9872 {
9873
9874   ;
9875   return 0;
9876 }
9877 _ACEOF
9878 if ac_fn_c_try_compile "$LINENO"; then :
9879   gt_cv_c_wchar_t=yes
9880 else
9881   gt_cv_c_wchar_t=no
9882 fi
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9886 $as_echo "$gt_cv_c_wchar_t" >&6; }
9887   if test $gt_cv_c_wchar_t = yes; then
9888
9889 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9890
9891   fi
9892
9893
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9895 $as_echo_n "checking for wint_t... " >&6; }
9896 if ${gt_cv_c_wint_t+:} false; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h.  */
9901
9902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9903    <wchar.h>.
9904    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9905    before <wchar.h>.  */
9906 #include <stddef.h>
9907 #include <stdio.h>
9908 #include <time.h>
9909 #include <wchar.h>
9910             wint_t foo = (wchar_t)'\0';
9911 int
9912 main ()
9913 {
9914
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"; then :
9920   gt_cv_c_wint_t=yes
9921 else
9922   gt_cv_c_wint_t=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9927 $as_echo "$gt_cv_c_wint_t" >&6; }
9928   if test $gt_cv_c_wint_t = yes; then
9929
9930 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9931
9932   fi
9933
9934
9935
9936
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9938 $as_echo_n "checking for intmax_t... " >&6; }
9939 if ${gt_cv_c_intmax_t+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h.  */
9944
9945 #include <stddef.h>
9946 #include <stdlib.h>
9947 #if HAVE_STDINT_H_WITH_UINTMAX
9948 #include <stdint.h>
9949 #endif
9950 #if HAVE_INTTYPES_H_WITH_UINTMAX
9951 #include <inttypes.h>
9952 #endif
9953
9954 int
9955 main ()
9956 {
9957 intmax_t x = -1;
9958             return !x;
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964   gt_cv_c_intmax_t=yes
9965 else
9966   gt_cv_c_intmax_t=no
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9971 $as_echo "$gt_cv_c_intmax_t" >&6; }
9972   if test $gt_cv_c_intmax_t = yes; then
9973
9974 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9975
9976   fi
9977
9978
9979
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9981 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9982 if ${gt_cv_func_printf_posix+:} false; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985
9986       if test "$cross_compiling" = yes; then :
9987
9988           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h.  */
9990
9991 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9992   notposix
9993 #endif
9994
9995 _ACEOF
9996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9997   $EGREP "notposix" >/dev/null 2>&1; then :
9998   gt_cv_func_printf_posix="guessing no"
9999 else
10000   gt_cv_func_printf_posix="guessing yes"
10001 fi
10002 rm -f conftest*
10003
10004
10005 else
10006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h.  */
10008
10009 #include <stdio.h>
10010 #include <string.h>
10011 /* The string "%2$d %1$d", with dollar characters protected from the shell's
10012    dollar expansion (possibly an autoconf bug).  */
10013 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
10014 static char buf[100];
10015 int main ()
10016 {
10017   sprintf (buf, format, 33, 55);
10018   return (strcmp (buf, "55 33") != 0);
10019 }
10020 _ACEOF
10021 if ac_fn_c_try_run "$LINENO"; then :
10022   gt_cv_func_printf_posix=yes
10023 else
10024   gt_cv_func_printf_posix=no
10025 fi
10026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10027   conftest.$ac_objext conftest.beam conftest.$ac_ext
10028 fi
10029
10030
10031 fi
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
10033 $as_echo "$gt_cv_func_printf_posix" >&6; }
10034   case $gt_cv_func_printf_posix in
10035     *yes)
10036
10037 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10038
10039       ;;
10040   esac
10041
10042
10043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10044 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10045 if ${ac_cv_gnu_library_2_1+:} false; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h.  */
10050
10051 #include <features.h>
10052 #ifdef __GNU_LIBRARY__
10053  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10054   Lucky GNU user
10055  #endif
10056 #endif
10057 #ifdef __UCLIBC__
10058  Lucky user
10059 #endif
10060
10061 _ACEOF
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063   $EGREP "Lucky" >/dev/null 2>&1; then :
10064   ac_cv_gnu_library_2_1=yes
10065 else
10066   ac_cv_gnu_library_2_1=no
10067 fi
10068 rm -f conftest*
10069
10070
10071
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10074 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10075
10076     GLIBC21="$ac_cv_gnu_library_2_1"
10077
10078
10079
10080   for ac_header in stdint.h
10081 do :
10082   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10083 if test "x$ac_cv_header_stdint_h" = xyes; then :
10084   cat >>confdefs.h <<_ACEOF
10085 #define HAVE_STDINT_H 1
10086 _ACEOF
10087
10088 fi
10089
10090 done
10091
10092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10093 $as_echo_n "checking for SIZE_MAX... " >&6; }
10094 if ${gl_cv_size_max+:} false; then :
10095   $as_echo_n "(cached) " >&6
10096 else
10097
10098     gl_cv_size_max=
10099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101
10102 #include <limits.h>
10103 #if HAVE_STDINT_H
10104 #include <stdint.h>
10105 #endif
10106 #ifdef SIZE_MAX
10107 Found it
10108 #endif
10109
10110 _ACEOF
10111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10112   $EGREP "Found it" >/dev/null 2>&1; then :
10113   gl_cv_size_max=yes
10114 fi
10115 rm -f conftest*
10116
10117     if test -z "$gl_cv_size_max"; then
10118                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
10119 #include <limits.h>"; then :
10120
10121 else
10122   size_t_bits_minus_1=
10123 fi
10124
10125       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
10126
10127 else
10128   fits_in_uint=
10129 fi
10130
10131       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10132         if test $fits_in_uint = 1; then
10133                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135 #include <stddef.h>
10136                  extern size_t foo;
10137                  extern unsigned long foo;
10138
10139 int
10140 main ()
10141 {
10142
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148   fits_in_uint=0
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151         fi
10152                                 if test $fits_in_uint = 1; then
10153           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10154         else
10155           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10156         fi
10157       else
10158                 gl_cv_size_max='((size_t)~(size_t)0)'
10159       fi
10160     fi
10161
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10164 $as_echo "$gl_cv_size_max" >&6; }
10165   if test "$gl_cv_size_max" != yes; then
10166
10167 cat >>confdefs.h <<_ACEOF
10168 #define SIZE_MAX $gl_cv_size_max
10169 _ACEOF
10170
10171   fi
10172
10173
10174
10175
10176   for ac_header in stdint.h
10177 do :
10178   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10179 if test "x$ac_cv_header_stdint_h" = xyes; then :
10180   cat >>confdefs.h <<_ACEOF
10181 #define HAVE_STDINT_H 1
10182 _ACEOF
10183
10184 fi
10185
10186 done
10187
10188
10189
10190
10191
10192   for ac_func in $ac_func_list
10193 do :
10194   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10197   cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 _ACEOF
10200
10201 fi
10202 done
10203
10204
10205
10206
10207
10208
10209
10210
10211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10212 $as_echo_n "checking for working fcntl.h... " >&6; }
10213 if ${gl_cv_header_working_fcntl_h+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   if test "$cross_compiling" = yes; then :
10217   gl_cv_header_working_fcntl_h=cross-compiling
10218 else
10219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h.  */
10221 #include <sys/types.h>
10222            #include <sys/stat.h>
10223            #if HAVE_UNISTD_H
10224            # include <unistd.h>
10225            #else /* on Windows with MSVC */
10226            # include <io.h>
10227            # include <stdlib.h>
10228            # defined sleep(n) _sleep ((n) * 1000)
10229            #endif
10230            #include <fcntl.h>
10231            #ifndef O_NOATIME
10232             #define O_NOATIME 0
10233            #endif
10234            #ifndef O_NOFOLLOW
10235             #define O_NOFOLLOW 0
10236            #endif
10237            static int const constants[] =
10238             {
10239               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10240               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10241             };
10242
10243 int
10244 main ()
10245 {
10246
10247             int result = !constants;
10248             #if HAVE_SYMLINK
10249             {
10250               static char const sym[] = "conftest.sym";
10251               if (symlink ("/dev/null", sym) != 0)
10252                 result |= 2;
10253               else
10254                 {
10255                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10256                   if (fd >= 0)
10257                     {
10258                       close (fd);
10259                       result |= 4;
10260                     }
10261                 }
10262               if (unlink (sym) != 0 || symlink (".", sym) != 0)
10263                 result |= 2;
10264               else
10265                 {
10266                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10267                   if (fd >= 0)
10268                     {
10269                       close (fd);
10270                       result |= 4;
10271                     }
10272                 }
10273               unlink (sym);
10274             }
10275             #endif
10276             {
10277               static char const file[] = "confdefs.h";
10278               int fd = open (file, O_RDONLY | O_NOATIME);
10279               if (fd < 0)
10280                 result |= 8;
10281               else
10282                 {
10283                   struct stat st0;
10284                   if (fstat (fd, &st0) != 0)
10285                     result |= 16;
10286                   else
10287                     {
10288                       char c;
10289                       sleep (1);
10290                       if (read (fd, &c, 1) != 1)
10291                         result |= 24;
10292                       else
10293                         {
10294                           if (close (fd) != 0)
10295                             result |= 32;
10296                           else
10297                             {
10298                               struct stat st1;
10299                               if (stat (file, &st1) != 0)
10300                                 result |= 40;
10301                               else
10302                                 if (st0.st_atime != st1.st_atime)
10303                                   result |= 64;
10304                             }
10305                         }
10306                     }
10307                 }
10308             }
10309             return result;
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 if ac_fn_c_try_run "$LINENO"; then :
10315   gl_cv_header_working_fcntl_h=yes
10316 else
10317   case $? in #(
10318         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10319         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10320         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10321          *) gl_cv_header_working_fcntl_h='no';;
10322         esac
10323 fi
10324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10325   conftest.$ac_objext conftest.beam conftest.$ac_ext
10326 fi
10327
10328 fi
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10330 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10331
10332   case $gl_cv_header_working_fcntl_h in #(
10333   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10334   *) ac_val=1;;
10335   esac
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_WORKING_O_NOATIME $ac_val
10339 _ACEOF
10340
10341
10342   case $gl_cv_header_working_fcntl_h in #(
10343   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10344   *) ac_val=1;;
10345   esac
10346
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10349 _ACEOF
10350
10351
10352
10353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10354 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10355 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   gt_save_LIBS="$LIBS"
10359      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h.  */
10362 #include <CoreFoundation/CFPreferences.h>
10363 int
10364 main ()
10365 {
10366 CFPreferencesCopyAppValue(NULL, NULL)
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"; then :
10372   gt_cv_func_CFPreferencesCopyAppValue=yes
10373 else
10374   gt_cv_func_CFPreferencesCopyAppValue=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext \
10377     conftest$ac_exeext conftest.$ac_ext
10378      LIBS="$gt_save_LIBS"
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10381 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10382   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10383
10384 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10385
10386   fi
10387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10388 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10389 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   gt_save_LIBS="$LIBS"
10393      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10394      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h.  */
10396 #include <CoreFoundation/CFLocale.h>
10397 int
10398 main ()
10399 {
10400 CFLocaleCopyCurrent();
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406   gt_cv_func_CFLocaleCopyCurrent=yes
10407 else
10408   gt_cv_func_CFLocaleCopyCurrent=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411     conftest$ac_exeext conftest.$ac_ext
10412      LIBS="$gt_save_LIBS"
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10415 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10416   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10417
10418 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10419
10420   fi
10421   INTL_MACOSX_LIBS=
10422   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10423     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10424   fi
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435     case "$enable_silent_rules" in
10436     yes) INTL_DEFAULT_VERBOSITY=0;;
10437     no)  INTL_DEFAULT_VERBOSITY=1;;
10438     *)   INTL_DEFAULT_VERBOSITY=1;;
10439   esac
10440
10441
10442   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10443 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10444
10445 else
10446
10447 $as_echo "#define ptrdiff_t long" >>confdefs.h
10448
10449
10450 fi
10451
10452   for ac_header in features.h stddef.h stdlib.h string.h
10453 do :
10454   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10457   cat >>confdefs.h <<_ACEOF
10458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10459 _ACEOF
10460
10461 fi
10462
10463 done
10464
10465   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10466     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10467 do :
10468   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10471   cat >>confdefs.h <<_ACEOF
10472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10473 _ACEOF
10474
10475 fi
10476 done
10477
10478
10479       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10480 "
10481 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10482   ac_have_decl=1
10483 else
10484   ac_have_decl=0
10485 fi
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL__SNPRINTF $ac_have_decl
10489 _ACEOF
10490 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10491 "
10492 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10493   ac_have_decl=1
10494 else
10495   ac_have_decl=0
10496 fi
10497
10498 cat >>confdefs.h <<_ACEOF
10499 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10500 _ACEOF
10501
10502
10503           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10504 "
10505 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10506   ac_have_decl=1
10507 else
10508   ac_have_decl=0
10509 fi
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10513 _ACEOF
10514
10515
10516   case $gt_cv_func_printf_posix in
10517     *yes) HAVE_POSIX_PRINTF=1 ;;
10518     *) HAVE_POSIX_PRINTF=0 ;;
10519   esac
10520
10521   if test "$ac_cv_func_asprintf" = yes; then
10522     HAVE_ASPRINTF=1
10523   else
10524     HAVE_ASPRINTF=0
10525   fi
10526
10527   if test "$ac_cv_func_snprintf" = yes; then
10528     HAVE_SNPRINTF=1
10529   else
10530     HAVE_SNPRINTF=0
10531   fi
10532
10533   if test "$ac_cv_func_newlocale" = yes; then
10534     HAVE_NEWLOCALE=1
10535   else
10536     HAVE_NEWLOCALE=0
10537   fi
10538
10539   if test "$ac_cv_func_wprintf" = yes; then
10540     HAVE_WPRINTF=1
10541   else
10542     HAVE_WPRINTF=0
10543   fi
10544
10545
10546
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10548 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10549 if ${am_cv_langinfo_codeset+:} false; then :
10550   $as_echo_n "(cached) " >&6
10551 else
10552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h.  */
10554 #include <langinfo.h>
10555 int
10556 main ()
10557 {
10558 char* cs = nl_langinfo(CODESET); return !cs;
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564   am_cv_langinfo_codeset=yes
10565 else
10566   am_cv_langinfo_codeset=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext \
10569     conftest$ac_exeext conftest.$ac_ext
10570
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10573 $as_echo "$am_cv_langinfo_codeset" >&6; }
10574   if test $am_cv_langinfo_codeset = yes; then
10575
10576 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10577
10578   fi
10579
10580
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10582 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10583 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10584   $as_echo_n "(cached) " >&6
10585 else
10586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h.  */
10588 #include <locale.h>
10589 int
10590 main ()
10591 {
10592 return LC_MESSAGES
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598   gt_cv_val_LC_MESSAGES=yes
10599 else
10600   gt_cv_val_LC_MESSAGES=no
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext \
10603     conftest$ac_exeext conftest.$ac_ext
10604 fi
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10606 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10607   if test $gt_cv_val_LC_MESSAGES = yes; then
10608
10609 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10610
10611   fi
10612
10613
10614                 if test "$enable_shared" = yes; then
10615     case "$host_os" in
10616       mingw* | cygwin*) is_woe32dll=yes ;;
10617       *) is_woe32dll=no ;;
10618     esac
10619   else
10620     is_woe32dll=no
10621   fi
10622   WOE32DLL=$is_woe32dll
10623
10624
10625       case "$host_os" in
10626     mingw* | cygwin*) is_woe32=yes ;;
10627     *) is_woe32=no ;;
10628   esac
10629   WOE32=$is_woe32
10630
10631   if test $WOE32 = yes; then
10632         if test -n "$ac_tool_prefix"; then
10633   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10634 set dummy ${ac_tool_prefix}windres; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if ${ac_cv_prog_WINDRES+:} false; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   if test -n "$WINDRES"; then
10641   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10642 else
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657
10658 fi
10659 fi
10660 WINDRES=$ac_cv_prog_WINDRES
10661 if test -n "$WINDRES"; then
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10663 $as_echo "$WINDRES" >&6; }
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668
10669
10670 fi
10671 if test -z "$ac_cv_prog_WINDRES"; then
10672   ac_ct_WINDRES=$WINDRES
10673   # Extract the first word of "windres", so it can be a program name with args.
10674 set dummy windres; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   if test -n "$ac_ct_WINDRES"; then
10681   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686   IFS=$as_save_IFS
10687   test -z "$as_dir" && as_dir=.
10688     for ac_exec_ext in '' $ac_executable_extensions; do
10689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690     ac_cv_prog_ac_ct_WINDRES="windres"
10691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692     break 2
10693   fi
10694 done
10695   done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10701 if test -n "$ac_ct_WINDRES"; then
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10703 $as_echo "$ac_ct_WINDRES" >&6; }
10704 else
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709   if test "x$ac_ct_WINDRES" = x; then
10710     WINDRES=""
10711   else
10712     case $cross_compiling:$ac_tool_warned in
10713 yes:)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10716 ac_tool_warned=yes ;;
10717 esac
10718     WINDRES=$ac_ct_WINDRES
10719   fi
10720 else
10721   WINDRES="$ac_cv_prog_WINDRES"
10722 fi
10723
10724   fi
10725
10726               case "$host_os" in
10727     hpux*) LTLIBC="" ;;
10728     *)     LTLIBC="-lc" ;;
10729   esac
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10758 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10759 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   gt_save_LIBS="$LIBS"
10763      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10764      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h.  */
10766 #include <CoreFoundation/CFPreferences.h>
10767 int
10768 main ()
10769 {
10770 CFPreferencesCopyAppValue(NULL, NULL)
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776   gt_cv_func_CFPreferencesCopyAppValue=yes
10777 else
10778   gt_cv_func_CFPreferencesCopyAppValue=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext \
10781     conftest$ac_exeext conftest.$ac_ext
10782      LIBS="$gt_save_LIBS"
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10785 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10786   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10787
10788 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10789
10790   fi
10791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10792 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10793 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   gt_save_LIBS="$LIBS"
10797      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h.  */
10800 #include <CoreFoundation/CFLocale.h>
10801 int
10802 main ()
10803 {
10804 CFLocaleCopyCurrent();
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810   gt_cv_func_CFLocaleCopyCurrent=yes
10811 else
10812   gt_cv_func_CFLocaleCopyCurrent=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815     conftest$ac_exeext conftest.$ac_ext
10816      LIBS="$gt_save_LIBS"
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10819 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10820   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10821
10822 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10823
10824   fi
10825   INTL_MACOSX_LIBS=
10826   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10827     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10828   fi
10829
10830
10831
10832
10833
10834
10835     BUILD_INCLUDED_LIBINTL=no
10836     USE_INCLUDED_LIBINTL=no
10837
10838   LIBINTL=
10839   LTLIBINTL=
10840   POSUB=
10841
10842     case " $gt_needs " in
10843     *" need-formatstring-macros "*) gt_api_version=3 ;;
10844     *" need-ngettext "*) gt_api_version=2 ;;
10845     *) gt_api_version=1 ;;
10846   esac
10847   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10848   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10849
10850     if test "$USE_NLS" = "yes"; then
10851     gt_use_preinstalled_gnugettext=no
10852
10853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10854 $as_echo_n "checking whether included gettext is requested... " >&6; }
10855
10856 # Check whether --with-included-gettext was given.
10857 if test "${with_included_gettext+set}" = set; then :
10858   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10859 else
10860   nls_cv_force_use_gnu_gettext=no
10861 fi
10862
10863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10864 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10865
10866       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10867       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10868
10869
10870         if test $gt_api_version -ge 3; then
10871           gt_revision_test_code='
10872 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10873 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10874 #endif
10875 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10876 '
10877         else
10878           gt_revision_test_code=
10879         fi
10880         if test $gt_api_version -ge 2; then
10881           gt_expression_test_code=' + * ngettext ("", "", 0)'
10882         else
10883           gt_expression_test_code=
10884         fi
10885
10886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10887 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10888 if eval \${$gt_func_gnugettext_libc+:} false; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893
10894 #include <libintl.h>
10895 $gt_revision_test_code
10896 extern int _nl_msg_cat_cntr;
10897 extern int *_nl_domain_bindings;
10898
10899 int
10900 main ()
10901 {
10902
10903 bindtextdomain ("", "");
10904 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10905
10906   ;
10907   return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911   eval "$gt_func_gnugettext_libc=yes"
10912 else
10913   eval "$gt_func_gnugettext_libc=no"
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916     conftest$ac_exeext conftest.$ac_ext
10917 fi
10918 eval ac_res=\$$gt_func_gnugettext_libc
10919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10920 $as_echo "$ac_res" >&6; }
10921
10922         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10923
10924
10925
10926
10927
10928
10929
10930
10931     use_additional=yes
10932
10933   acl_save_prefix="$prefix"
10934   prefix="$acl_final_prefix"
10935   acl_save_exec_prefix="$exec_prefix"
10936   exec_prefix="$acl_final_exec_prefix"
10937
10938     eval additional_includedir=\"$includedir\"
10939     eval additional_libdir=\"$libdir\"
10940
10941   exec_prefix="$acl_save_exec_prefix"
10942   prefix="$acl_save_prefix"
10943
10944
10945 # Check whether --with-libintl-prefix was given.
10946 if test "${with_libintl_prefix+set}" = set; then :
10947   withval=$with_libintl_prefix;
10948     if test "X$withval" = "Xno"; then
10949       use_additional=no
10950     else
10951       if test "X$withval" = "X"; then
10952
10953   acl_save_prefix="$prefix"
10954   prefix="$acl_final_prefix"
10955   acl_save_exec_prefix="$exec_prefix"
10956   exec_prefix="$acl_final_exec_prefix"
10957
10958           eval additional_includedir=\"$includedir\"
10959           eval additional_libdir=\"$libdir\"
10960
10961   exec_prefix="$acl_save_exec_prefix"
10962   prefix="$acl_save_prefix"
10963
10964       else
10965         additional_includedir="$withval/include"
10966         additional_libdir="$withval/$acl_libdirstem"
10967         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10968            && ! test -d "$withval/$acl_libdirstem"; then
10969           additional_libdir="$withval/$acl_libdirstem2"
10970         fi
10971       fi
10972     fi
10973
10974 fi
10975
10976       LIBINTL=
10977   LTLIBINTL=
10978   INCINTL=
10979   LIBINTL_PREFIX=
10980       HAVE_LIBINTL=
10981   rpathdirs=
10982   ltrpathdirs=
10983   names_already_handled=
10984   names_next_round='intl '
10985   while test -n "$names_next_round"; do
10986     names_this_round="$names_next_round"
10987     names_next_round=
10988     for name in $names_this_round; do
10989       already_handled=
10990       for n in $names_already_handled; do
10991         if test "$n" = "$name"; then
10992           already_handled=yes
10993           break
10994         fi
10995       done
10996       if test -z "$already_handled"; then
10997         names_already_handled="$names_already_handled $name"
10998                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10999         eval value=\"\$HAVE_LIB$uppername\"
11000         if test -n "$value"; then
11001           if test "$value" = yes; then
11002             eval value=\"\$LIB$uppername\"
11003             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11004             eval value=\"\$LTLIB$uppername\"
11005             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11006           else
11007                                     :
11008           fi
11009         else
11010                               found_dir=
11011           found_la=
11012           found_so=
11013           found_a=
11014           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11015           if test -n "$acl_shlibext"; then
11016             shrext=".$acl_shlibext"             # typically: shrext=.so
11017           else
11018             shrext=
11019           fi
11020           if test $use_additional = yes; then
11021             dir="$additional_libdir"
11022                                     if test -n "$acl_shlibext"; then
11023               if test -f "$dir/$libname$shrext"; then
11024                 found_dir="$dir"
11025                 found_so="$dir/$libname$shrext"
11026               else
11027                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11028                   ver=`(cd "$dir" && \
11029                         for f in "$libname$shrext".*; do echo "$f"; done \
11030                         | sed -e "s,^$libname$shrext\\\\.,," \
11031                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11032                         | sed 1q ) 2>/dev/null`
11033                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11034                     found_dir="$dir"
11035                     found_so="$dir/$libname$shrext.$ver"
11036                   fi
11037                 else
11038                   eval library_names=\"$acl_library_names_spec\"
11039                   for f in $library_names; do
11040                     if test -f "$dir/$f"; then
11041                       found_dir="$dir"
11042                       found_so="$dir/$f"
11043                       break
11044                     fi
11045                   done
11046                 fi
11047               fi
11048             fi
11049                         if test "X$found_dir" = "X"; then
11050               if test -f "$dir/$libname.$acl_libext"; then
11051                 found_dir="$dir"
11052                 found_a="$dir/$libname.$acl_libext"
11053               fi
11054             fi
11055             if test "X$found_dir" != "X"; then
11056               if test -f "$dir/$libname.la"; then
11057                 found_la="$dir/$libname.la"
11058               fi
11059             fi
11060           fi
11061           if test "X$found_dir" = "X"; then
11062             for x in $LDFLAGS $LTLIBINTL; do
11063
11064   acl_save_prefix="$prefix"
11065   prefix="$acl_final_prefix"
11066   acl_save_exec_prefix="$exec_prefix"
11067   exec_prefix="$acl_final_exec_prefix"
11068   eval x=\"$x\"
11069   exec_prefix="$acl_save_exec_prefix"
11070   prefix="$acl_save_prefix"
11071
11072               case "$x" in
11073                 -L*)
11074                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11075                                     if test -n "$acl_shlibext"; then
11076                     if test -f "$dir/$libname$shrext"; then
11077                       found_dir="$dir"
11078                       found_so="$dir/$libname$shrext"
11079                     else
11080                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11081                         ver=`(cd "$dir" && \
11082                               for f in "$libname$shrext".*; do echo "$f"; done \
11083                               | sed -e "s,^$libname$shrext\\\\.,," \
11084                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11085                               | sed 1q ) 2>/dev/null`
11086                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11087                           found_dir="$dir"
11088                           found_so="$dir/$libname$shrext.$ver"
11089                         fi
11090                       else
11091                         eval library_names=\"$acl_library_names_spec\"
11092                         for f in $library_names; do
11093                           if test -f "$dir/$f"; then
11094                             found_dir="$dir"
11095                             found_so="$dir/$f"
11096                             break
11097                           fi
11098                         done
11099                       fi
11100                     fi
11101                   fi
11102                                     if test "X$found_dir" = "X"; then
11103                     if test -f "$dir/$libname.$acl_libext"; then
11104                       found_dir="$dir"
11105                       found_a="$dir/$libname.$acl_libext"
11106                     fi
11107                   fi
11108                   if test "X$found_dir" != "X"; then
11109                     if test -f "$dir/$libname.la"; then
11110                       found_la="$dir/$libname.la"
11111                     fi
11112                   fi
11113                   ;;
11114               esac
11115               if test "X$found_dir" != "X"; then
11116                 break
11117               fi
11118             done
11119           fi
11120           if test "X$found_dir" != "X"; then
11121                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11122             if test "X$found_so" != "X"; then
11123                                                         if test "$enable_rpath" = no \
11124                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11125                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11126                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11127               else
11128                                                                                 haveit=
11129                 for x in $ltrpathdirs; do
11130                   if test "X$x" = "X$found_dir"; then
11131                     haveit=yes
11132                     break
11133                   fi
11134                 done
11135                 if test -z "$haveit"; then
11136                   ltrpathdirs="$ltrpathdirs $found_dir"
11137                 fi
11138                                 if test "$acl_hardcode_direct" = yes; then
11139                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11140                 else
11141                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11142                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11143                                                             haveit=
11144                     for x in $rpathdirs; do
11145                       if test "X$x" = "X$found_dir"; then
11146                         haveit=yes
11147                         break
11148                       fi
11149                     done
11150                     if test -z "$haveit"; then
11151                       rpathdirs="$rpathdirs $found_dir"
11152                     fi
11153                   else
11154                                                                                 haveit=
11155                     for x in $LDFLAGS $LIBINTL; do
11156
11157   acl_save_prefix="$prefix"
11158   prefix="$acl_final_prefix"
11159   acl_save_exec_prefix="$exec_prefix"
11160   exec_prefix="$acl_final_exec_prefix"
11161   eval x=\"$x\"
11162   exec_prefix="$acl_save_exec_prefix"
11163   prefix="$acl_save_prefix"
11164
11165                       if test "X$x" = "X-L$found_dir"; then
11166                         haveit=yes
11167                         break
11168                       fi
11169                     done
11170                     if test -z "$haveit"; then
11171                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11172                     fi
11173                     if test "$acl_hardcode_minus_L" != no; then
11174                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11175                     else
11176                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11177                     fi
11178                   fi
11179                 fi
11180               fi
11181             else
11182               if test "X$found_a" != "X"; then
11183                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11184               else
11185                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11186               fi
11187             fi
11188                         additional_includedir=
11189             case "$found_dir" in
11190               */$acl_libdirstem | */$acl_libdirstem/)
11191                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11192                 if test "$name" = 'intl'; then
11193                   LIBINTL_PREFIX="$basedir"
11194                 fi
11195                 additional_includedir="$basedir/include"
11196                 ;;
11197               */$acl_libdirstem2 | */$acl_libdirstem2/)
11198                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11199                 if test "$name" = 'intl'; then
11200                   LIBINTL_PREFIX="$basedir"
11201                 fi
11202                 additional_includedir="$basedir/include"
11203                 ;;
11204             esac
11205             if test "X$additional_includedir" != "X"; then
11206                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11207                 haveit=
11208                 if test "X$additional_includedir" = "X/usr/local/include"; then
11209                   if test -n "$GCC"; then
11210                     case $host_os in
11211                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11212                     esac
11213                   fi
11214                 fi
11215                 if test -z "$haveit"; then
11216                   for x in $CPPFLAGS $INCINTL; do
11217
11218   acl_save_prefix="$prefix"
11219   prefix="$acl_final_prefix"
11220   acl_save_exec_prefix="$exec_prefix"
11221   exec_prefix="$acl_final_exec_prefix"
11222   eval x=\"$x\"
11223   exec_prefix="$acl_save_exec_prefix"
11224   prefix="$acl_save_prefix"
11225
11226                     if test "X$x" = "X-I$additional_includedir"; then
11227                       haveit=yes
11228                       break
11229                     fi
11230                   done
11231                   if test -z "$haveit"; then
11232                     if test -d "$additional_includedir"; then
11233                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11234                     fi
11235                   fi
11236                 fi
11237               fi
11238             fi
11239                         if test -n "$found_la"; then
11240                                                         save_libdir="$libdir"
11241               case "$found_la" in
11242                 */* | *\\*) . "$found_la" ;;
11243                 *) . "./$found_la" ;;
11244               esac
11245               libdir="$save_libdir"
11246                             for dep in $dependency_libs; do
11247                 case "$dep" in
11248                   -L*)
11249                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11250                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11251                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11252                       haveit=
11253                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11254                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11255                         if test -n "$GCC"; then
11256                           case $host_os in
11257                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11258                           esac
11259                         fi
11260                       fi
11261                       if test -z "$haveit"; then
11262                         haveit=
11263                         for x in $LDFLAGS $LIBINTL; do
11264
11265   acl_save_prefix="$prefix"
11266   prefix="$acl_final_prefix"
11267   acl_save_exec_prefix="$exec_prefix"
11268   exec_prefix="$acl_final_exec_prefix"
11269   eval x=\"$x\"
11270   exec_prefix="$acl_save_exec_prefix"
11271   prefix="$acl_save_prefix"
11272
11273                           if test "X$x" = "X-L$additional_libdir"; then
11274                             haveit=yes
11275                             break
11276                           fi
11277                         done
11278                         if test -z "$haveit"; then
11279                           if test -d "$additional_libdir"; then
11280                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11281                           fi
11282                         fi
11283                         haveit=
11284                         for x in $LDFLAGS $LTLIBINTL; do
11285
11286   acl_save_prefix="$prefix"
11287   prefix="$acl_final_prefix"
11288   acl_save_exec_prefix="$exec_prefix"
11289   exec_prefix="$acl_final_exec_prefix"
11290   eval x=\"$x\"
11291   exec_prefix="$acl_save_exec_prefix"
11292   prefix="$acl_save_prefix"
11293
11294                           if test "X$x" = "X-L$additional_libdir"; then
11295                             haveit=yes
11296                             break
11297                           fi
11298                         done
11299                         if test -z "$haveit"; then
11300                           if test -d "$additional_libdir"; then
11301                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11302                           fi
11303                         fi
11304                       fi
11305                     fi
11306                     ;;
11307                   -R*)
11308                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11309                     if test "$enable_rpath" != no; then
11310                                                                   haveit=
11311                       for x in $rpathdirs; do
11312                         if test "X$x" = "X$dir"; then
11313                           haveit=yes
11314                           break
11315                         fi
11316                       done
11317                       if test -z "$haveit"; then
11318                         rpathdirs="$rpathdirs $dir"
11319                       fi
11320                                                                   haveit=
11321                       for x in $ltrpathdirs; do
11322                         if test "X$x" = "X$dir"; then
11323                           haveit=yes
11324                           break
11325                         fi
11326                       done
11327                       if test -z "$haveit"; then
11328                         ltrpathdirs="$ltrpathdirs $dir"
11329                       fi
11330                     fi
11331                     ;;
11332                   -l*)
11333                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11334                     ;;
11335                   *.la)
11336                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11337                     ;;
11338                   *)
11339                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11340                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11341                     ;;
11342                 esac
11343               done
11344             fi
11345           else
11346                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11347             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11348           fi
11349         fi
11350       fi
11351     done
11352   done
11353   if test "X$rpathdirs" != "X"; then
11354     if test -n "$acl_hardcode_libdir_separator"; then
11355                         alldirs=
11356       for found_dir in $rpathdirs; do
11357         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11358       done
11359             acl_save_libdir="$libdir"
11360       libdir="$alldirs"
11361       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11362       libdir="$acl_save_libdir"
11363       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11364     else
11365             for found_dir in $rpathdirs; do
11366         acl_save_libdir="$libdir"
11367         libdir="$found_dir"
11368         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11369         libdir="$acl_save_libdir"
11370         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11371       done
11372     fi
11373   fi
11374   if test "X$ltrpathdirs" != "X"; then
11375             for found_dir in $ltrpathdirs; do
11376       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11377     done
11378   fi
11379
11380
11381
11382
11383
11384
11385           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11386 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11387 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11388   $as_echo_n "(cached) " >&6
11389 else
11390   gt_save_CPPFLAGS="$CPPFLAGS"
11391             CPPFLAGS="$CPPFLAGS $INCINTL"
11392             gt_save_LIBS="$LIBS"
11393             LIBS="$LIBS $LIBINTL"
11394                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h.  */
11396
11397 #include <libintl.h>
11398 $gt_revision_test_code
11399 extern int _nl_msg_cat_cntr;
11400 extern
11401 #ifdef __cplusplus
11402 "C"
11403 #endif
11404 const char *_nl_expand_alias (const char *);
11405
11406 int
11407 main ()
11408 {
11409
11410 bindtextdomain ("", "");
11411 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11412
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418   eval "$gt_func_gnugettext_libintl=yes"
11419 else
11420   eval "$gt_func_gnugettext_libintl=no"
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423     conftest$ac_exeext conftest.$ac_ext
11424                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11425               LIBS="$LIBS $LIBICONV"
11426               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h.  */
11428
11429 #include <libintl.h>
11430 $gt_revision_test_code
11431 extern int _nl_msg_cat_cntr;
11432 extern
11433 #ifdef __cplusplus
11434 "C"
11435 #endif
11436 const char *_nl_expand_alias (const char *);
11437
11438 int
11439 main ()
11440 {
11441
11442 bindtextdomain ("", "");
11443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"; then :
11450   LIBINTL="$LIBINTL $LIBICONV"
11451                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11452                  eval "$gt_func_gnugettext_libintl=yes"
11453
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext \
11456     conftest$ac_exeext conftest.$ac_ext
11457             fi
11458             CPPFLAGS="$gt_save_CPPFLAGS"
11459             LIBS="$gt_save_LIBS"
11460 fi
11461 eval ac_res=\$$gt_func_gnugettext_libintl
11462                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11463 $as_echo "$ac_res" >&6; }
11464         fi
11465
11466                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11467            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11468                 && test "$PACKAGE" != gettext-runtime \
11469                 && test "$PACKAGE" != gettext-tools; }; then
11470           gt_use_preinstalled_gnugettext=yes
11471         else
11472                     LIBINTL=
11473           LTLIBINTL=
11474           INCINTL=
11475         fi
11476
11477
11478         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11479                               nls_cv_use_gnu_gettext=yes
11480         fi
11481       fi
11482
11483       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11484                 BUILD_INCLUDED_LIBINTL=yes
11485         USE_INCLUDED_LIBINTL=yes
11486         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11487         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11488         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11489       fi
11490
11491       CATOBJEXT=
11492       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11493          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11494                 CATOBJEXT=.gmo
11495       fi
11496
11497
11498     if test -n "$INTL_MACOSX_LIBS"; then
11499       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11500          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11501                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11502         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11503       fi
11504     fi
11505
11506     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11507        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11508
11509 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11510
11511     else
11512       USE_NLS=no
11513     fi
11514   fi
11515
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11517 $as_echo_n "checking whether to use NLS... " >&6; }
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11519 $as_echo "$USE_NLS" >&6; }
11520   if test "$USE_NLS" = "yes"; then
11521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11522 $as_echo_n "checking where the gettext function comes from... " >&6; }
11523     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11524       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11525         gt_source="external libintl"
11526       else
11527         gt_source="libc"
11528       fi
11529     else
11530       gt_source="included intl directory"
11531     fi
11532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11533 $as_echo "$gt_source" >&6; }
11534   fi
11535
11536   if test "$USE_NLS" = "yes"; then
11537
11538     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11539       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11541 $as_echo_n "checking how to link with libintl... " >&6; }
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11543 $as_echo "$LIBINTL" >&6; }
11544
11545   for element in $INCINTL; do
11546     haveit=
11547     for x in $CPPFLAGS; do
11548
11549   acl_save_prefix="$prefix"
11550   prefix="$acl_final_prefix"
11551   acl_save_exec_prefix="$exec_prefix"
11552   exec_prefix="$acl_final_exec_prefix"
11553   eval x=\"$x\"
11554   exec_prefix="$acl_save_exec_prefix"
11555   prefix="$acl_save_prefix"
11556
11557       if test "X$x" = "X$element"; then
11558         haveit=yes
11559         break
11560       fi
11561     done
11562     if test -z "$haveit"; then
11563       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11564     fi
11565   done
11566
11567       fi
11568
11569
11570 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11571
11572
11573 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11574
11575     fi
11576
11577         POSUB=po
11578   fi
11579
11580
11581             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11582       BUILD_INCLUDED_LIBINTL=yes
11583     fi
11584
11585
11586
11587
11588
11589         nls_cv_header_intl=
11590     nls_cv_header_libgt=
11591
11592         DATADIRNAME=share
11593
11594
11595         INSTOBJEXT=.mo
11596
11597
11598         GENCAT=gencat
11599
11600
11601         INTLOBJS=
11602     if test "$USE_INCLUDED_LIBINTL" = yes; then
11603       INTLOBJS="\$(GETTOBJS)"
11604     fi
11605
11606
11607         INTL_LIBTOOL_SUFFIX_PREFIX=
11608
11609
11610
11611     INTLLIBS="$LIBINTL"
11612
11613
11614
11615
11616
11617
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11621 set x ${MAKE-make}
11622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11624   $as_echo_n "(cached) " >&6
11625 else
11626   cat >conftest.make <<\_ACEOF
11627 SHELL = /bin/sh
11628 all:
11629         @echo '@@@%%%=$(MAKE)=@@@%%%'
11630 _ACEOF
11631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11633   *@@@%%%=?*=@@@%%%*)
11634     eval ac_cv_prog_make_${ac_make}_set=yes;;
11635   *)
11636     eval ac_cv_prog_make_${ac_make}_set=no;;
11637 esac
11638 rm -f conftest.make
11639 fi
11640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11643   SET_MAKE=
11644 else
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11647   SET_MAKE="MAKE=${MAKE-make}"
11648 fi
11649
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11651 $as_echo_n "checking for GNU make... " >&6; }
11652 if ${_cv_gnu_make_command+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   _cv_gnu_make_command='' ;
11656                 if test -n "$FORCE_NATIVE_MAKE" ; then
11657                    MAKES="make"
11658                 else
11659                    MAKES="make gmake gnumake"
11660                 fi
11661                 for a in "$MAKE" $MAKES ; do
11662                         if test -z "$a" ; then continue ; fi ;
11663                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
11664                                 _cv_gnu_make_command=$a ;
11665                                 break;
11666                         fi
11667                 done ;
11668
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11671 $as_echo "$_cv_gnu_make_command" >&6; } ;
11672         if test  "x$_cv_gnu_make_command" != "x"  ; then
11673                 ifGNUmake='' ;
11674                 ifNotGNUmake='#' ;
11675         else
11676                 ifGNUmake='#' ;
11677                 ifNotGNUmake='' ;
11678                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11679 $as_echo "\"Not found\"" >&6; };
11680         fi
11681
11682
11683
11684 # Extract the first word of "ln", so it can be a program name with args.
11685 set dummy ln; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_path_LN+:} false; then :
11689   $as_echo_n "(cached) " >&6
11690 else
11691   case $LN in
11692   [\\/]* | ?:[\\/]*)
11693   ac_cv_path_LN="$LN" # Let the user override the test with a path.
11694   ;;
11695   *)
11696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699   IFS=$as_save_IFS
11700   test -z "$as_dir" && as_dir=.
11701     for ac_exec_ext in '' $ac_executable_extensions; do
11702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705     break 2
11706   fi
11707 done
11708   done
11709 IFS=$as_save_IFS
11710
11711   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11712   ;;
11713 esac
11714 fi
11715 LN=$ac_cv_path_LN
11716 if test -n "$LN"; then
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11718 $as_echo "$LN" >&6; }
11719 else
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11722 fi
11723
11724
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11727 $as_echo_n "checking whether ln -s works... " >&6; }
11728 LN_S=$as_ln_s
11729 if test "$LN_S" = "ln -s"; then
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; }
11732 else
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11734 $as_echo "no, using $LN_S" >&6; }
11735 fi
11736
11737 # Extract the first word of "mv", so it can be a program name with args.
11738 set dummy mv; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_path_MV+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   case $MV in
11745   [\\/]* | ?:[\\/]*)
11746   ac_cv_path_MV="$MV" # Let the user override the test with a path.
11747   ;;
11748   *)
11749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754     for ac_exec_ext in '' $ac_executable_extensions; do
11755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761   done
11762 IFS=$as_save_IFS
11763
11764   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11765   ;;
11766 esac
11767 fi
11768 MV=$ac_cv_path_MV
11769 if test -n "$MV"; then
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11771 $as_echo "$MV" >&6; }
11772 else
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11775 fi
11776
11777
11778 # Extract the first word of "cp", so it can be a program name with args.
11779 set dummy cp; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_path_CP+:} false; then :
11783   $as_echo_n "(cached) " >&6
11784 else
11785   case $CP in
11786   [\\/]* | ?:[\\/]*)
11787   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11788   ;;
11789   *)
11790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11792 do
11793   IFS=$as_save_IFS
11794   test -z "$as_dir" && as_dir=.
11795     for ac_exec_ext in '' $ac_executable_extensions; do
11796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11797     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799     break 2
11800   fi
11801 done
11802   done
11803 IFS=$as_save_IFS
11804
11805   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11806   ;;
11807 esac
11808 fi
11809 CP=$ac_cv_path_CP
11810 if test -n "$CP"; then
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11812 $as_echo "$CP" >&6; }
11813 else
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 # Extract the first word of "rm", so it can be a program name with args.
11820 set dummy rm; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_path_RM+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   case $RM in
11827   [\\/]* | ?:[\\/]*)
11828   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11829   ;;
11830   *)
11831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834   IFS=$as_save_IFS
11835   test -z "$as_dir" && as_dir=.
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840     break 2
11841   fi
11842 done
11843   done
11844 IFS=$as_save_IFS
11845
11846   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11847   ;;
11848 esac
11849 fi
11850 RM=$ac_cv_path_RM
11851 if test -n "$RM"; then
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11853 $as_echo "$RM" >&6; }
11854 else
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858
11859
11860 # Extract the first word of "chmod", so it can be a program name with args.
11861 set dummy chmod; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_path_CHMOD+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   case $CHMOD in
11868   [\\/]* | ?:[\\/]*)
11869   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11870   ;;
11871   *)
11872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875   IFS=$as_save_IFS
11876   test -z "$as_dir" && as_dir=.
11877     for ac_exec_ext in '' $ac_executable_extensions; do
11878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881     break 2
11882   fi
11883 done
11884   done
11885 IFS=$as_save_IFS
11886
11887   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11888   ;;
11889 esac
11890 fi
11891 CHMOD=$ac_cv_path_CHMOD
11892 if test -n "$CHMOD"; then
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11894 $as_echo "$CHMOD" >&6; }
11895 else
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899
11900
11901 for ac_prog in gawk mawk nawk awk
11902 do
11903   # Extract the first word of "$ac_prog", so it can be a program name with args.
11904 set dummy $ac_prog; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if ${ac_cv_prog_AWK+:} false; then :
11908   $as_echo_n "(cached) " >&6
11909 else
11910   if test -n "$AWK"; then
11911   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11912 else
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11915 do
11916   IFS=$as_save_IFS
11917   test -z "$as_dir" && as_dir=.
11918     for ac_exec_ext in '' $ac_executable_extensions; do
11919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11920     ac_cv_prog_AWK="$ac_prog"
11921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922     break 2
11923   fi
11924 done
11925   done
11926 IFS=$as_save_IFS
11927
11928 fi
11929 fi
11930 AWK=$ac_cv_prog_AWK
11931 if test -n "$AWK"; then
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11933 $as_echo "$AWK" >&6; }
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11937 fi
11938
11939
11940   test -n "$AWK" && break
11941 done
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11944 $as_echo_n "checking for egrep... " >&6; }
11945 if ${ac_cv_path_EGREP+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11949    then ac_cv_path_EGREP="$GREP -E"
11950    else
11951      if test -z "$EGREP"; then
11952   ac_path_EGREP_found=false
11953   # Loop through the user's path and test for each of PROGNAME-LIST
11954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11956 do
11957   IFS=$as_save_IFS
11958   test -z "$as_dir" && as_dir=.
11959     for ac_prog in egrep; do
11960     for ac_exec_ext in '' $ac_executable_extensions; do
11961       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11962       as_fn_executable_p "$ac_path_EGREP" || continue
11963 # Check for GNU ac_path_EGREP and select it if it is found.
11964   # Check for GNU $ac_path_EGREP
11965 case `"$ac_path_EGREP" --version 2>&1` in
11966 *GNU*)
11967   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11968 *)
11969   ac_count=0
11970   $as_echo_n 0123456789 >"conftest.in"
11971   while :
11972   do
11973     cat "conftest.in" "conftest.in" >"conftest.tmp"
11974     mv "conftest.tmp" "conftest.in"
11975     cp "conftest.in" "conftest.nl"
11976     $as_echo 'EGREP' >> "conftest.nl"
11977     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11979     as_fn_arith $ac_count + 1 && ac_count=$as_val
11980     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11981       # Best one so far, save it but keep looking for a better one
11982       ac_cv_path_EGREP="$ac_path_EGREP"
11983       ac_path_EGREP_max=$ac_count
11984     fi
11985     # 10*(2^10) chars as input seems more than enough
11986     test $ac_count -gt 10 && break
11987   done
11988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11989 esac
11990
11991       $ac_path_EGREP_found && break 3
11992     done
11993   done
11994   done
11995 IFS=$as_save_IFS
11996   if test -z "$ac_cv_path_EGREP"; then
11997     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11998   fi
11999 else
12000   ac_cv_path_EGREP=$EGREP
12001 fi
12002
12003    fi
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12006 $as_echo "$ac_cv_path_EGREP" >&6; }
12007  EGREP="$ac_cv_path_EGREP"
12008
12009
12010 # Extract the first word of "sed", so it can be a program name with args.
12011 set dummy sed; 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_path_SED+:} false; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   case $SED in
12018   [\\/]* | ?:[\\/]*)
12019   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12020   ;;
12021   *)
12022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027     for ac_exec_ext in '' $ac_executable_extensions; do
12028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034   done
12035 IFS=$as_save_IFS
12036
12037   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12038   ;;
12039 esac
12040 fi
12041 SED=$ac_cv_path_SED
12042 if test -n "$SED"; then
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12044 $as_echo "$SED" >&6; }
12045 else
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 # Extract the first word of "perl", so it can be a program name with args.
12052 set dummy perl; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_PERL+:} false; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   case $PERL in
12059   [\\/]* | ?:[\\/]*)
12060   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12061   ;;
12062   *)
12063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066   IFS=$as_save_IFS
12067   test -z "$as_dir" && as_dir=.
12068     for ac_exec_ext in '' $ac_executable_extensions; do
12069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072     break 2
12073   fi
12074 done
12075   done
12076 IFS=$as_save_IFS
12077
12078   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12079   ;;
12080 esac
12081 fi
12082 PERL=$ac_cv_path_PERL
12083 if test -n "$PERL"; then
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12085 $as_echo "$PERL" >&6; }
12086 else
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 # Extract the first word of "ldconfig", so it can be a program name with args.
12093 set dummy ldconfig; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_path_LDCONFIG+:} false; then :
12097   $as_echo_n "(cached) " >&6
12098 else
12099   case $LDCONFIG in
12100   [\\/]* | ?:[\\/]*)
12101   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12102   ;;
12103   *)
12104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107   IFS=$as_save_IFS
12108   test -z "$as_dir" && as_dir=.
12109     for ac_exec_ext in '' $ac_executable_extensions; do
12110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113     break 2
12114   fi
12115 done
12116   done
12117 IFS=$as_save_IFS
12118
12119   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12120   ;;
12121 esac
12122 fi
12123 LDCONFIG=$ac_cv_path_LDCONFIG
12124 if test -n "$LDCONFIG"; then
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12126 $as_echo "$LDCONFIG" >&6; }
12127 else
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12130 fi
12131
12132
12133 if test -n "$ac_tool_prefix"; then
12134   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12135 set dummy ${ac_tool_prefix}ar; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_AR+:} false; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   if test -n "$AR"; then
12142   ac_cv_prog_AR="$AR" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147   IFS=$as_save_IFS
12148   test -z "$as_dir" && as_dir=.
12149     for ac_exec_ext in '' $ac_executable_extensions; do
12150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151     ac_cv_prog_AR="${ac_tool_prefix}ar"
12152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153     break 2
12154   fi
12155 done
12156   done
12157 IFS=$as_save_IFS
12158
12159 fi
12160 fi
12161 AR=$ac_cv_prog_AR
12162 if test -n "$AR"; then
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12164 $as_echo "$AR" >&6; }
12165 else
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171 fi
12172 if test -z "$ac_cv_prog_AR"; then
12173   ac_ct_AR=$AR
12174   # Extract the first word of "ar", so it can be a program name with args.
12175 set dummy ar; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12179   $as_echo_n "(cached) " >&6
12180 else
12181   if test -n "$ac_ct_AR"; then
12182   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187   IFS=$as_save_IFS
12188   test -z "$as_dir" && as_dir=.
12189     for ac_exec_ext in '' $ac_executable_extensions; do
12190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191     ac_cv_prog_ac_ct_AR="ar"
12192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193     break 2
12194   fi
12195 done
12196   done
12197 IFS=$as_save_IFS
12198
12199 fi
12200 fi
12201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12202 if test -n "$ac_ct_AR"; then
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12204 $as_echo "$ac_ct_AR" >&6; }
12205 else
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 fi
12209
12210   if test "x$ac_ct_AR" = x; then
12211     AR="ar"
12212   else
12213     case $cross_compiling:$ac_tool_warned in
12214 yes:)
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12217 ac_tool_warned=yes ;;
12218 esac
12219     AR=$ac_ct_AR
12220   fi
12221 else
12222   AR="$ac_cv_prog_AR"
12223 fi
12224
12225 if test -n "$ac_tool_prefix"; then
12226   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_RANLIB+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   if test -n "$RANLIB"; then
12234   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241     for ac_exec_ext in '' $ac_executable_extensions; do
12242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248   done
12249 IFS=$as_save_IFS
12250
12251 fi
12252 fi
12253 RANLIB=$ac_cv_prog_RANLIB
12254 if test -n "$RANLIB"; then
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12256 $as_echo "$RANLIB" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262
12263 fi
12264 if test -z "$ac_cv_prog_RANLIB"; then
12265   ac_ct_RANLIB=$RANLIB
12266   # Extract the first word of "ranlib", so it can be a program name with args.
12267 set dummy ranlib; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   if test -n "$ac_ct_RANLIB"; then
12274   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12278 do
12279   IFS=$as_save_IFS
12280   test -z "$as_dir" && as_dir=.
12281     for ac_exec_ext in '' $ac_executable_extensions; do
12282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283     ac_cv_prog_ac_ct_RANLIB="ranlib"
12284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285     break 2
12286   fi
12287 done
12288   done
12289 IFS=$as_save_IFS
12290
12291 fi
12292 fi
12293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12294 if test -n "$ac_ct_RANLIB"; then
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12296 $as_echo "$ac_ct_RANLIB" >&6; }
12297 else
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302   if test "x$ac_ct_RANLIB" = x; then
12303     RANLIB=":"
12304   else
12305     case $cross_compiling:$ac_tool_warned in
12306 yes:)
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12309 ac_tool_warned=yes ;;
12310 esac
12311     RANLIB=$ac_ct_RANLIB
12312   fi
12313 else
12314   RANLIB="$ac_cv_prog_RANLIB"
12315 fi
12316
12317 if test -n "$ac_tool_prefix"; then
12318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}strip; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_prog_STRIP+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test -n "$STRIP"; then
12326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_exec_ext in '' $ac_executable_extensions; do
12334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337     break 2
12338   fi
12339 done
12340   done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 STRIP=$ac_cv_prog_STRIP
12346 if test -n "$STRIP"; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12348 $as_echo "$STRIP" >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354
12355 fi
12356 if test -z "$ac_cv_prog_STRIP"; then
12357   ac_ct_STRIP=$STRIP
12358   # Extract the first word of "strip", so it can be a program name with args.
12359 set dummy strip; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   if test -n "$ac_ct_STRIP"; then
12366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12370 do
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373     for ac_exec_ext in '' $ac_executable_extensions; do
12374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375     ac_cv_prog_ac_ct_STRIP="strip"
12376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380   done
12381 IFS=$as_save_IFS
12382
12383 fi
12384 fi
12385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12386 if test -n "$ac_ct_STRIP"; then
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12388 $as_echo "$ac_ct_STRIP" >&6; }
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393
12394   if test "x$ac_ct_STRIP" = x; then
12395     STRIP=":"
12396   else
12397     case $cross_compiling:$ac_tool_warned in
12398 yes:)
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12402 esac
12403     STRIP=$ac_ct_STRIP
12404   fi
12405 else
12406   STRIP="$ac_cv_prog_STRIP"
12407 fi
12408
12409 # Extract the first word of "makeinfo", so it can be a program name with args.
12410 set dummy makeinfo; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_prog_MAKEINFO+:} false; then :
12414   $as_echo_n "(cached) " >&6
12415 else
12416   if test -n "$MAKEINFO"; then
12417   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12418 else
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12421 do
12422   IFS=$as_save_IFS
12423   test -z "$as_dir" && as_dir=.
12424     for ac_exec_ext in '' $ac_executable_extensions; do
12425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426     ac_cv_prog_MAKEINFO="makeinfo"
12427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12428     break 2
12429   fi
12430 done
12431   done
12432 IFS=$as_save_IFS
12433
12434 fi
12435 fi
12436 MAKEINFO=$ac_cv_prog_MAKEINFO
12437 if test -n "$MAKEINFO"; then
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12439 $as_echo "$MAKEINFO" >&6; }
12440 else
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444
12445
12446 if test "_$MAKEINFO" = "_"; then
12447     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12448 else
12449     case "$MAKEINFO" in
12450       */missing.*)
12451         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12452 *** Makeinfo is missing. Info documentation will not be built." >&5
12453 $as_echo "$as_me: WARNING:
12454 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12455         ;;
12456       *)
12457         ;;
12458     esac
12459 fi
12460
12461
12462 # See if we need a separate native compiler.
12463 if test $cross_compiling = no; then
12464   BUILD_CC="$CC"
12465
12466 else
12467   for ac_prog in gcc cc
12468 do
12469   # Extract the first word of "$ac_prog", so it can be a program name with args.
12470 set dummy $ac_prog; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_prog_BUILD_CC+:} false; then :
12474   $as_echo_n "(cached) " >&6
12475 else
12476   if test -n "$BUILD_CC"; then
12477   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12481 do
12482   IFS=$as_save_IFS
12483   test -z "$as_dir" && as_dir=.
12484     for ac_exec_ext in '' $ac_executable_extensions; do
12485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486     ac_cv_prog_BUILD_CC="$ac_prog"
12487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488     break 2
12489   fi
12490 done
12491   done
12492 IFS=$as_save_IFS
12493
12494 fi
12495 fi
12496 BUILD_CC=$ac_cv_prog_BUILD_CC
12497 if test -n "$BUILD_CC"; then
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12499 $as_echo "$BUILD_CC" >&6; }
12500 else
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506   test -n "$BUILD_CC" && break
12507 done
12508
12509 fi
12510 for ac_header in        attr/xattr.h    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
12511 do :
12512   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12515   cat >>confdefs.h <<_ACEOF
12516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12517 _ACEOF
12518
12519 fi
12520
12521 done
12522
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12524 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12525 DD=
12526 for i in dd gdd ; do
12527         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12528                 DD=$i
12529                 break
12530         fi
12531 done
12532 if test -n "$DD" ; then
12533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12534 $as_echo "$DD" >&6; }
12535 else
12536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12537 $as_echo "not found, using dd" >&6; }
12538         DD=dd
12539         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12540 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12541 fi
12542
12543
12544 for ac_header in net/if.h
12545 do :
12546   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12547 #if HAVE_SYS_TYPES_H
12548 #include <sys/types.h>
12549 #endif
12550 #if HAVE_SYS_SOCKET
12551 #include <sys/socket.h>
12552 #endif
12553
12554 "
12555 if test "x$ac_cv_header_net_if_h" = xyes; then :
12556   cat >>confdefs.h <<_ACEOF
12557 #define HAVE_NET_IF_H 1
12558 _ACEOF
12559
12560 fi
12561
12562 done
12563
12564 for ac_func in vprintf
12565 do :
12566   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12567 if test "x$ac_cv_func_vprintf" = xyes; then :
12568   cat >>confdefs.h <<_ACEOF
12569 #define HAVE_VPRINTF 1
12570 _ACEOF
12571
12572 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12573 if test "x$ac_cv_func__doprnt" = xyes; then :
12574
12575 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12576
12577 fi
12578
12579 fi
12580 done
12581
12582
12583 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12584 "
12585 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12586
12587 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12588
12589 fi
12590
12591 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12592 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12593
12594 cat >>confdefs.h <<_ACEOF
12595 #define HAVE_STRUCT_STAT_ST_ATIM 1
12596 _ACEOF
12597
12598
12599 fi
12600
12601 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12602 "
12603 if test "x$ac_cv_type_ssize_t" = xyes; then :
12604
12605 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12606
12607 fi
12608
12609 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12610 "
12611 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12612
12613 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12614
12615 fi
12616
12617 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12618                  #define _LARGEFILE64_SOURCE
12619                  #include <unistd.h>
12620 "
12621 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12622
12623 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12624
12625 fi
12626
12627 # The cast to long int works around a bug in the HP C Compiler
12628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630 # This bug is HP SR number 8606223364.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12632 $as_echo_n "checking size of short... " >&6; }
12633 if ${ac_cv_sizeof_short+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12637
12638 else
12639   if test "$ac_cv_type_short" = yes; then
12640      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12642 as_fn_error 77 "cannot compute sizeof (short)
12643 See \`config.log' for more details" "$LINENO" 5; }
12644    else
12645      ac_cv_sizeof_short=0
12646    fi
12647 fi
12648
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12651 $as_echo "$ac_cv_sizeof_short" >&6; }
12652
12653
12654
12655 cat >>confdefs.h <<_ACEOF
12656 #define SIZEOF_SHORT $ac_cv_sizeof_short
12657 _ACEOF
12658
12659
12660 # The cast to long int works around a bug in the HP C Compiler
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12665 $as_echo_n "checking size of int... " >&6; }
12666 if ${ac_cv_sizeof_int+:} false; then :
12667   $as_echo_n "(cached) " >&6
12668 else
12669   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12670
12671 else
12672   if test "$ac_cv_type_int" = yes; then
12673      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12675 as_fn_error 77 "cannot compute sizeof (int)
12676 See \`config.log' for more details" "$LINENO" 5; }
12677    else
12678      ac_cv_sizeof_int=0
12679    fi
12680 fi
12681
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12684 $as_echo "$ac_cv_sizeof_int" >&6; }
12685
12686
12687
12688 cat >>confdefs.h <<_ACEOF
12689 #define SIZEOF_INT $ac_cv_sizeof_int
12690 _ACEOF
12691
12692
12693 # The cast to long int works around a bug in the HP C Compiler
12694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696 # This bug is HP SR number 8606223364.
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12698 $as_echo_n "checking size of long... " >&6; }
12699 if ${ac_cv_sizeof_long+:} false; then :
12700   $as_echo_n "(cached) " >&6
12701 else
12702   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12703
12704 else
12705   if test "$ac_cv_type_long" = yes; then
12706      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12708 as_fn_error 77 "cannot compute sizeof (long)
12709 See \`config.log' for more details" "$LINENO" 5; }
12710    else
12711      ac_cv_sizeof_long=0
12712    fi
12713 fi
12714
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12717 $as_echo "$ac_cv_sizeof_long" >&6; }
12718
12719
12720
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_LONG $ac_cv_sizeof_long
12723 _ACEOF
12724
12725
12726 # The cast to long int works around a bug in the HP C Compiler
12727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729 # This bug is HP SR number 8606223364.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12731 $as_echo_n "checking size of long long... " >&6; }
12732 if ${ac_cv_sizeof_long_long+:} false; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12736
12737 else
12738   if test "$ac_cv_type_long_long" = yes; then
12739      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 as_fn_error 77 "cannot compute sizeof (long long)
12742 See \`config.log' for more details" "$LINENO" 5; }
12743    else
12744      ac_cv_sizeof_long_long=0
12745    fi
12746 fi
12747
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12750 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12751
12752
12753
12754 cat >>confdefs.h <<_ACEOF
12755 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12756 _ACEOF
12757
12758
12759 # The cast to long int works around a bug in the HP C Compiler
12760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762 # This bug is HP SR number 8606223364.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12764 $as_echo_n "checking size of off_t... " >&6; }
12765 if ${ac_cv_sizeof_off_t+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12769
12770 else
12771   if test "$ac_cv_type_off_t" = yes; then
12772      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error 77 "cannot compute sizeof (off_t)
12775 See \`config.log' for more details" "$LINENO" 5; }
12776    else
12777      ac_cv_sizeof_off_t=0
12778    fi
12779 fi
12780
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12783 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12784
12785
12786
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12789 _ACEOF
12790
12791
12792 # The cast to long int works around a bug in the HP C Compiler
12793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12795 # This bug is HP SR number 8606223364.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12797 $as_echo_n "checking size of time_t... " >&6; }
12798 if ${ac_cv_sizeof_time_t+:} false; then :
12799   $as_echo_n "(cached) " >&6
12800 else
12801   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
12802
12803 else
12804   if test "$ac_cv_type_time_t" = yes; then
12805      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12807 as_fn_error 77 "cannot compute sizeof (time_t)
12808 See \`config.log' for more details" "$LINENO" 5; }
12809    else
12810      ac_cv_sizeof_time_t=0
12811    fi
12812 fi
12813
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12816 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12817
12818
12819
12820 cat >>confdefs.h <<_ACEOF
12821 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12822 _ACEOF
12823
12824
12825 SIZEOF_SHORT=$ac_cv_sizeof_short
12826 SIZEOF_INT=$ac_cv_sizeof_int
12827 SIZEOF_LONG=$ac_cv_sizeof_long
12828 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12829 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12830 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12831
12832
12833
12834
12835
12836
12837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12838 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12839 if ${ac_cv_c_bigendian+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   ac_cv_c_bigendian=unknown
12843     # See if we're dealing with a universal compiler.
12844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 #ifndef __APPLE_CC__
12847                not a universal capable compiler
12848              #endif
12849              typedef int dummy;
12850
12851 _ACEOF
12852 if ac_fn_c_try_compile "$LINENO"; then :
12853
12854         # Check for potential -arch flags.  It is not universal unless
12855         # there are at least two -arch flags with different values.
12856         ac_arch=
12857         ac_prev=
12858         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12859          if test -n "$ac_prev"; then
12860            case $ac_word in
12861              i?86 | x86_64 | ppc | ppc64)
12862                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12863                  ac_arch=$ac_word
12864                else
12865                  ac_cv_c_bigendian=universal
12866                  break
12867                fi
12868                ;;
12869            esac
12870            ac_prev=
12871          elif test "x$ac_word" = "x-arch"; then
12872            ac_prev=arch
12873          fi
12874        done
12875 fi
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877     if test $ac_cv_c_bigendian = unknown; then
12878       # See if sys/param.h defines the BYTE_ORDER macro.
12879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h.  */
12881 #include <sys/types.h>
12882              #include <sys/param.h>
12883
12884 int
12885 main ()
12886 {
12887 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12888                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12889                      && LITTLE_ENDIAN)
12890               bogus endian macros
12891              #endif
12892
12893   ;
12894   return 0;
12895 }
12896 _ACEOF
12897 if ac_fn_c_try_compile "$LINENO"; then :
12898   # It does; now see whether it defined to BIG_ENDIAN or not.
12899          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h.  */
12901 #include <sys/types.h>
12902                 #include <sys/param.h>
12903
12904 int
12905 main ()
12906 {
12907 #if BYTE_ORDER != BIG_ENDIAN
12908                  not big endian
12909                 #endif
12910
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 if ac_fn_c_try_compile "$LINENO"; then :
12916   ac_cv_c_bigendian=yes
12917 else
12918   ac_cv_c_bigendian=no
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923     fi
12924     if test $ac_cv_c_bigendian = unknown; then
12925       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h.  */
12928 #include <limits.h>
12929
12930 int
12931 main ()
12932 {
12933 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12934               bogus endian macros
12935              #endif
12936
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_compile "$LINENO"; then :
12942   # It does; now see whether it defined to _BIG_ENDIAN or not.
12943          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h.  */
12945 #include <limits.h>
12946
12947 int
12948 main ()
12949 {
12950 #ifndef _BIG_ENDIAN
12951                  not big endian
12952                 #endif
12953
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959   ac_cv_c_bigendian=yes
12960 else
12961   ac_cv_c_bigendian=no
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966     fi
12967     if test $ac_cv_c_bigendian = unknown; then
12968       # Compile a test program.
12969       if test "$cross_compiling" = yes; then :
12970   # Try to guess by grepping values from an object file.
12971          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h.  */
12973 short int ascii_mm[] =
12974                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12975                 short int ascii_ii[] =
12976                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12977                 int use_ascii (int i) {
12978                   return ascii_mm[i] + ascii_ii[i];
12979                 }
12980                 short int ebcdic_ii[] =
12981                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12982                 short int ebcdic_mm[] =
12983                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12984                 int use_ebcdic (int i) {
12985                   return ebcdic_mm[i] + ebcdic_ii[i];
12986                 }
12987                 extern int foo;
12988
12989 int
12990 main ()
12991 {
12992 return use_ascii (foo) == use_ebcdic (foo);
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12999               ac_cv_c_bigendian=yes
13000             fi
13001             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13002               if test "$ac_cv_c_bigendian" = unknown; then
13003                 ac_cv_c_bigendian=no
13004               else
13005                 # finding both strings is unlikely to happen, but who knows?
13006                 ac_cv_c_bigendian=unknown
13007               fi
13008             fi
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014 $ac_includes_default
13015 int
13016 main ()
13017 {
13018
13019              /* Are we little or big endian?  From Harbison&Steele.  */
13020              union
13021              {
13022                long int l;
13023                char c[sizeof (long int)];
13024              } u;
13025              u.l = 1;
13026              return u.c[sizeof (long int) - 1] == 1;
13027
13028   ;
13029   return 0;
13030 }
13031 _ACEOF
13032 if ac_fn_c_try_run "$LINENO"; then :
13033   ac_cv_c_bigendian=no
13034 else
13035   ac_cv_c_bigendian=yes
13036 fi
13037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13038   conftest.$ac_objext conftest.beam conftest.$ac_ext
13039 fi
13040
13041     fi
13042 fi
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13044 $as_echo "$ac_cv_c_bigendian" >&6; }
13045  case $ac_cv_c_bigendian in #(
13046    yes)
13047      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13048 ;; #(
13049    no)
13050       ;; #(
13051    universal)
13052
13053 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13054
13055      ;; #(
13056    *)
13057      as_fn_error $? "unknown endianness
13058  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13059  esac
13060
13061 if test $cross_compiling = no; then
13062   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13063 else
13064   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13065 fi
13066 ASM_TYPES_HEADER=./asm_types.h
13067
13068 echo "/* These defines are needed for the public ext2fs.h header file */" \
13069      > public_config.h
13070 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13071   uniq tmp_config.$$ >> public_config.h
13072 else
13073   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13074 fi
13075 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13076   uniq tmp_config.$$ >> public_config.h
13077 else
13078   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13079 fi
13080 rm -f tmp_config.$$
13081 PUBLIC_CONFIG_HEADER=./public_config.h
13082
13083 for ac_header in inttypes.h
13084 do :
13085   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13086 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13087   cat >>confdefs.h <<_ACEOF
13088 #define HAVE_INTTYPES_H 1
13089 _ACEOF
13090
13091 fi
13092
13093 done
13094
13095 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13096 if test "x$ac_cv_type_intptr_t" = xyes; then :
13097
13098 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_INTPTR_T 1
13100 _ACEOF
13101
13102
13103 fi
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13106 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13107 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h.  */
13112 #include <sys/stat.h>
13113 int
13114 main ()
13115 {
13116 struct stat stat; stat.st_flags = 0;
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_c_try_compile "$LINENO"; then :
13122   e2fsprogs_cv_struct_st_flags=yes
13123 else
13124   e2fsprogs_cv_struct_st_flags=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127 fi
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13130 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13131 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13133 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13134   if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h.  */
13139 #include <sys/stat.h>
13140 int
13141 main ()
13142 {
13143 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_compile "$LINENO"; then :
13149   e2fsprogs_cv_struct_st_flags_immut=yes
13150 else
13151   e2fsprogs_cv_struct_st_flags_immut=no
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 fi
13155
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13157 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13158   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13159
13160 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13161
13162   fi
13163 fi
13164 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13165          #include <sys/socket.h>
13166 "
13167 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13168
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_SA_LEN 1
13171 _ACEOF
13172
13173 fi
13174
13175 if test -n "$BLKID_CMT"; then
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13177 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13178 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181   ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lblkid  $LIBS"
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h.  */
13185
13186 /* Override any GCC internal prototype to avoid an error.
13187    Use char because int might match the return type of a GCC
13188    builtin and then its argument prototype would still apply.  */
13189 #ifdef __cplusplus
13190 extern "C"
13191 #endif
13192 char blkid_probe_get_topology ();
13193 int
13194 main ()
13195 {
13196 return blkid_probe_get_topology ();
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_link "$LINENO"; then :
13202   ac_cv_lib_blkid_blkid_probe_get_topology=yes
13203 else
13204   ac_cv_lib_blkid_blkid_probe_get_topology=no
13205 fi
13206 rm -f core conftest.err conftest.$ac_objext \
13207     conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13209 fi
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13211 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13212 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
13213
13214 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13215
13216 fi
13217
13218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13219 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13220 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
13221   $as_echo_n "(cached) " >&6
13222 else
13223   ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lblkid  $LIBS"
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h.  */
13227
13228 /* Override any GCC internal prototype to avoid an error.
13229    Use char because int might match the return type of a GCC
13230    builtin and then its argument prototype would still apply.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 char blkid_probe_enable_partitions ();
13235 int
13236 main ()
13237 {
13238 return blkid_probe_enable_partitions ();
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_link "$LINENO"; then :
13244   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13245 else
13246   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249     conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13253 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13254 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
13255
13256 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13257
13258 fi
13259
13260 fi
13261 if test -n "$DLOPEN_LIB" ; then
13262    ac_cv_func_dlopen=yes
13263 fi
13264 for ac_func in          __secure_getenv         add_key         backtrace       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
13265 do :
13266   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13269   cat >>confdefs.h <<_ACEOF
13270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13271 _ACEOF
13272
13273 fi
13274 done
13275
13276 SOCKET_LIB=''
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13278 $as_echo_n "checking for socket in -lsocket... " >&6; }
13279 if ${ac_cv_lib_socket_socket+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lsocket  $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char socket ();
13294 int
13295 main ()
13296 {
13297 return socket ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303   ac_cv_lib_socket_socket=yes
13304 else
13305   ac_cv_lib_socket_socket=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308     conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13312 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13313 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13314   SOCKET_LIB=-lsocket
13315 fi
13316
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13319 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13320 if ${ac_cv_lib_magic_magic_file+:} false; then :
13321   $as_echo_n "(cached) " >&6
13322 else
13323   ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lmagic  $LIBS"
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h.  */
13327
13328 /* Override any GCC internal prototype to avoid an error.
13329    Use char because int might match the return type of a GCC
13330    builtin and then its argument prototype would still apply.  */
13331 #ifdef __cplusplus
13332 extern "C"
13333 #endif
13334 char magic_file ();
13335 int
13336 main ()
13337 {
13338 return magic_file ();
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_link "$LINENO"; then :
13344   ac_cv_lib_magic_magic_file=yes
13345 else
13346   ac_cv_lib_magic_magic_file=no
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext \
13349     conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13353 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13354 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13355   MAGIC_LIB=-lmagic
13356 for ac_header in magic.h
13357 do :
13358   ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13359 if test "x$ac_cv_header_magic_h" = xyes; then :
13360   cat >>confdefs.h <<_ACEOF
13361 #define HAVE_MAGIC_H 1
13362 _ACEOF
13363
13364 fi
13365
13366 done
13367
13368 fi
13369
13370 if test "$ac_cv_func_dlopen" = yes ; then
13371    MAGIC_LIB=$DLOPEN_LIB
13372 fi
13373
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13375 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13376 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lrt  $LIBS"
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383
13384 /* Override any GCC internal prototype to avoid an error.
13385    Use char because int might match the return type of a GCC
13386    builtin and then its argument prototype would still apply.  */
13387 #ifdef __cplusplus
13388 extern "C"
13389 #endif
13390 char clock_gettime ();
13391 int
13392 main ()
13393 {
13394 return clock_gettime ();
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"; then :
13400   ac_cv_lib_rt_clock_gettime=yes
13401 else
13402   ac_cv_lib_rt_clock_gettime=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext \
13405     conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13409 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13410 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13411   CLOCK_GETTIME_LIB=-lrt
13412 fi
13413
13414
13415 FUSE_CMT=
13416 FUSE_LIB=
13417 # Check whether --enable-fuse2fs was given.
13418 if test "${enable_fuse2fs+set}" = set; then :
13419   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13420 then
13421         FUSE_CMT="#"
13422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13423 $as_echo "Disabling fuse2fs" >&6; }
13424 else
13425         for ac_header in pthread.h fuse.h
13426 do :
13427   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13429 #define FUSE_USE_VERSION 29
13430 "
13431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13432   cat >>confdefs.h <<_ACEOF
13433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434 _ACEOF
13435
13436 else
13437   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13439 as_fn_error $? "Cannot find fuse2fs headers.
13440 See \`config.log' for more details" "$LINENO" 5; }
13441 fi
13442
13443 done
13444
13445
13446         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h.  */
13448 #define FUSE_USE_VERSION 29
13449 #ifdef __linux__
13450 #include <linux/fs.h>
13451 #include <linux/falloc.h>
13452 #include <linux/xattr.h>
13453 #endif
13454
13455 int
13456 main ()
13457 {
13458
13459   ;
13460   return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_cpp "$LINENO"; then :
13464
13465 else
13466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13468 as_fn_error $? "Cannot find fuse2fs Linux headers.
13469 See \`config.log' for more details" "$LINENO" 5; }
13470 fi
13471 rm -f conftest.err conftest.i conftest.$ac_ext
13472
13473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13474 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13475 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-losxfuse  $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h.  */
13482
13483 /* Override any GCC internal prototype to avoid an error.
13484    Use char because int might match the return type of a GCC
13485    builtin and then its argument prototype would still apply.  */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char fuse_main ();
13490 int
13491 main ()
13492 {
13493 return fuse_main ();
13494   ;
13495   return 0;
13496 }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499   ac_cv_lib_osxfuse_fuse_main=yes
13500 else
13501   ac_cv_lib_osxfuse_fuse_main=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504     conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13508 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13509 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13510   FUSE_LIB=-losxfuse
13511 else
13512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13513 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13514 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lfuse  $LIBS"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h.  */
13521
13522 /* Override any GCC internal prototype to avoid an error.
13523    Use char because int might match the return type of a GCC
13524    builtin and then its argument prototype would still apply.  */
13525 #ifdef __cplusplus
13526 extern "C"
13527 #endif
13528 char fuse_main ();
13529 int
13530 main ()
13531 {
13532 return fuse_main ();
13533   ;
13534   return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_link "$LINENO"; then :
13538   ac_cv_lib_fuse_fuse_main=yes
13539 else
13540   ac_cv_lib_fuse_fuse_main=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext \
13543     conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13547 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13548 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13549   FUSE_LIB=-lfuse
13550 else
13551   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13553 as_fn_error $? "Cannot find fuse library.
13554 See \`config.log' for more details" "$LINENO" 5; }
13555 fi
13556
13557 fi
13558
13559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13560 $as_echo "Enabling fuse2fs" >&6; }
13561 fi
13562
13563 else
13564   for ac_header in pthread.h fuse.h
13565 do :
13566   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13568 #define FUSE_USE_VERSION 29
13569 #ifdef __linux__
13570 # include <linux/fs.h>
13571 # include <linux/falloc.h>
13572 # include <linux/xattr.h>
13573 #endif
13574 "
13575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13576   cat >>confdefs.h <<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13578 _ACEOF
13579
13580 else
13581   FUSE_CMT="#"
13582 fi
13583
13584 done
13585
13586 if test -z "$FUSE_CMT"
13587 then
13588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13589 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13590 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13591   $as_echo_n "(cached) " >&6
13592 else
13593   ac_check_lib_save_LIBS=$LIBS
13594 LIBS="-losxfuse  $LIBS"
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h.  */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599    Use char because int might match the return type of a GCC
13600    builtin and then its argument prototype would still apply.  */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char fuse_main ();
13605 int
13606 main ()
13607 {
13608 return fuse_main ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 if ac_fn_c_try_link "$LINENO"; then :
13614   ac_cv_lib_osxfuse_fuse_main=yes
13615 else
13616   ac_cv_lib_osxfuse_fuse_main=no
13617 fi
13618 rm -f core conftest.err conftest.$ac_objext \
13619     conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_check_lib_save_LIBS
13621 fi
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13623 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13624 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13625   FUSE_LIB=-losxfuse
13626 else
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13628 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13629 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13630   $as_echo_n "(cached) " >&6
13631 else
13632   ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lfuse  $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h.  */
13636
13637 /* Override any GCC internal prototype to avoid an error.
13638    Use char because int might match the return type of a GCC
13639    builtin and then its argument prototype would still apply.  */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 char fuse_main ();
13644 int
13645 main ()
13646 {
13647 return fuse_main ();
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"; then :
13653   ac_cv_lib_fuse_fuse_main=yes
13654 else
13655   ac_cv_lib_fuse_fuse_main=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext \
13658     conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13662 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13663 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13664   FUSE_LIB=-lfuse
13665 else
13666   FUSE_CMT="#"
13667 fi
13668
13669 fi
13670
13671 fi
13672 if test -z "$FUSE_CMT"
13673 then
13674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13675 $as_echo "Enabling fuse2fs by default." >&6; }
13676 fi
13677
13678 fi
13679
13680
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13683 $as_echo_n "checking for optreset... " >&6; }
13684 if ${ac_cv_have_optreset+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h.  */
13689 #include <unistd.h>
13690
13691 _ACEOF
13692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693   $EGREP "optreset" >/dev/null 2>&1; then :
13694   ac_cv_have_optreset=yes
13695 else
13696   ac_cv_have_optreset=no
13697 fi
13698 rm -f conftest*
13699
13700 fi
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13702 $as_echo "$ac_cv_have_optreset" >&6; }
13703 if test $ac_cv_have_optreset = yes; then
13704
13705 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13706
13707 fi
13708
13709 SEM_INIT_LIB=''
13710 echo GL_THREADS_API: ${gl_threads_api}
13711 if test "${gl_threads_api}" != none
13712 then
13713   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13714 if test "x$ac_cv_func_sem_init" = xyes; then :
13715
13716 else
13717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13718 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13719 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-lpthread  $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h.  */
13726
13727 /* Override any GCC internal prototype to avoid an error.
13728    Use char because int might match the return type of a GCC
13729    builtin and then its argument prototype would still apply.  */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 char sem_init ();
13734 int
13735 main ()
13736 {
13737 return sem_init ();
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_link "$LINENO"; then :
13743   ac_cv_lib_pthread_sem_init=yes
13744 else
13745   ac_cv_lib_pthread_sem_init=no
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext \
13748     conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13750 fi
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13752 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13753 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13754   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13755
13756         SEM_INIT_LIB=-lpthread
13757 else
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13759 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13760 if ${ac_cv_lib_rt_sem_init+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lrt  $LIBS"
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h.  */
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769    Use char because int might match the return type of a GCC
13770    builtin and then its argument prototype would still apply.  */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char sem_init ();
13775 int
13776 main ()
13777 {
13778 return sem_init ();
13779   ;
13780   return 0;
13781 }
13782 _ACEOF
13783 if ac_fn_c_try_link "$LINENO"; then :
13784   ac_cv_lib_rt_sem_init=yes
13785 else
13786   ac_cv_lib_rt_sem_init=no
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext \
13789     conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13793 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13794 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13795   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13796
13797         SEM_INIT_LIB=-lrt
13798 else
13799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13800 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13801 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804   ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lposix4  $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h.  */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810    Use char because int might match the return type of a GCC
13811    builtin and then its argument prototype would still apply.  */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char sem_init ();
13816 int
13817 main ()
13818 {
13819 return sem_init ();
13820   ;
13821   return 0;
13822 }
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825   ac_cv_lib_posix4_sem_init=yes
13826 else
13827   ac_cv_lib_posix4_sem_init=no
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext \
13830     conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13834 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13835 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13836   $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13837
13838         SEM_INIT_LIB=-lposix4
13839 fi
13840
13841 fi
13842
13843 fi
13844
13845 fi
13846 fi
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13849 $as_echo_n "checking for unified diff option... " >&6; }
13850 if diff -u $0 $0 > /dev/null 2>&1 ; then
13851    UNI_DIFF_OPTS=-u
13852 else
13853    UNI_DIFF_OPTS=-c
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13856 $as_echo "$UNI_DIFF_OPTS" >&6; }
13857
13858 case "$host_os" in
13859 linux*)
13860
13861 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13862
13863         ;;
13864 esac
13865
13866     $as_echo_n "checking for mount 'nosuid' option... "
13867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869 #include <sys/mount.h>
13870 int
13871 main ()
13872 {
13873 void *temp = (void *)(MS_NOSUID); (void) temp;
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879
13880 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13881
13882          ac_cv_mount_nosuid=yes
13883          $as_echo "yes"
13884 else
13885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h.  */
13887 #include <sys/mount.h>
13888 int
13889 main ()
13890 {
13891 void *temp = (void *)(MNT_NOSUID); (void) temp;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_compile "$LINENO"; then :
13897
13898 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13899
13900              ac_cv_mount_nosuid=yes
13901              $as_echo "yes"
13902 else
13903   ac_cv_mount_nosuid=no
13904              $as_echo "no"
13905
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911
13912
13913     $as_echo_n "checking for mount 'nodev' option... "
13914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h.  */
13916 #include <sys/mount.h>
13917 int
13918 main ()
13919 {
13920 void *temp = (void *)(MS_NODEV); (void) temp;
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 if ac_fn_c_try_compile "$LINENO"; then :
13926
13927 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13928
13929          ac_cv_mount_nodev=yes
13930          $as_echo "yes"
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934 #include <sys/mount.h>
13935 int
13936 main ()
13937 {
13938 void *temp = (void *)(MNT_NODEV); (void) temp;
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944
13945 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13946
13947              ac_cv_mount_nodev=yes
13948              $as_echo "yes"
13949 else
13950   ac_cv_mount_nodev=no
13951              $as_echo "no"
13952
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958
13959 # Check whether --enable-lto was given.
13960 if test "${enable_lto+set}" = set; then :
13961   enableval=$enable_lto;
13962 else
13963   enable_lto=no
13964 fi
13965
13966 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13968 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13969         OLD_CFLAGS="$CFLAGS"
13970         OLD_LDFLAGS="$LDFLAGS"
13971         LTO_FLAGS="-g -flto -ffat-lto-objects"
13972         CFLAGS="$CFLAGS $LTO_FLAGS"
13973         LDFLAGS="$LDFLAGS $LTO_FLAGS"
13974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h.  */
13976
13977 int
13978 main ()
13979 {
13980
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"; then :
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13987 $as_echo "yes" >&6; }
13988                 lto_cflags=$LTO_FLAGS
13989                 lto_ldflags=$LTO_FLAGS
13990                 # Extract the first word of "gcc-ar", so it can be a program name with args.
13991 set dummy gcc-ar; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_path_gcc_ar+:} false; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   case $gcc_ar in
13998   [\\/]* | ?:[\\/]*)
13999   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14000   ;;
14001   *)
14002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14004 do
14005   IFS=$as_save_IFS
14006   test -z "$as_dir" && as_dir=.
14007     for ac_exec_ext in '' $ac_executable_extensions; do
14008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009     ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
14010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011     break 2
14012   fi
14013 done
14014   done
14015 IFS=$as_save_IFS
14016
14017   ;;
14018 esac
14019 fi
14020 gcc_ar=$ac_cv_path_gcc_ar
14021 if test -n "$gcc_ar"; then
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14023 $as_echo "$gcc_ar" >&6; }
14024 else
14025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14027 fi
14028
14029
14030                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14031 set dummy gcc-ranlib; ac_word=$2
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14033 $as_echo_n "checking for $ac_word... " >&6; }
14034 if ${ac_cv_path_gcc_ranlib+:} false; then :
14035   $as_echo_n "(cached) " >&6
14036 else
14037   case $gcc_ranlib in
14038   [\\/]* | ?:[\\/]*)
14039   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14040   ;;
14041   *)
14042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14044 do
14045   IFS=$as_save_IFS
14046   test -z "$as_dir" && as_dir=.
14047     for ac_exec_ext in '' $ac_executable_extensions; do
14048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14049     ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
14050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14051     break 2
14052   fi
14053 done
14054   done
14055 IFS=$as_save_IFS
14056
14057   ;;
14058 esac
14059 fi
14060 gcc_ranlib=$ac_cv_path_gcc_ranlib
14061 if test -n "$gcc_ranlib"; then
14062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14063 $as_echo "$gcc_ranlib" >&6; }
14064 else
14065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14067 fi
14068
14069
14070 else
14071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075     conftest$ac_exeext conftest.$ac_ext
14076         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14077                 have_lto=yes
14078                 AR="${gcc_ar}"
14079                 RANLIB="${gcc_ranlib}"
14080         fi
14081         CFLAGS="${OLD_CFLAGS}"
14082         LDFLAGS="${OLD_LDFLAGS}"
14083
14084
14085
14086 fi
14087 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14088         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14089 fi
14090 # Check whether --enable-ubsan was given.
14091 if test "${enable_ubsan+set}" = set; then :
14092   enableval=$enable_ubsan;
14093 else
14094   enable_ubsan=no
14095 fi
14096
14097 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14099 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
14100         OLD_CFLAGS="$CFLAGS"
14101         OLD_LDFLAGS="$LDFLAGS"
14102         UBSAN_FLAGS="-fsanitize=undefined"
14103         CFLAGS="$CFLAGS $UBSAN_FLAGS"
14104         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14105         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h.  */
14107
14108 int
14109 main ()
14110 {
14111
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_link "$LINENO"; then :
14117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14118 $as_echo "yes" >&6; }
14119                 ubsan_cflags=$UBSAN_FLAGS
14120                 ubsan_ldflags=$UBSAN_FLAGS
14121                 have_ubsan=yes
14122 else
14123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125 fi
14126 rm -f core conftest.err conftest.$ac_objext \
14127     conftest$ac_exeext conftest.$ac_ext
14128         CFLAGS="${OLD_CFLAGS}"
14129         LDFLAGS="${OLD_LDFLAGS}"
14130
14131
14132
14133 fi
14134 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14135         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14136 fi
14137 # Check whether --enable-addrsan was given.
14138 if test "${enable_addrsan+set}" = set; then :
14139   enableval=$enable_addrsan;
14140 else
14141   enable_addrsan=no
14142 fi
14143
14144 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14146 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
14147         OLD_CFLAGS="$CFLAGS"
14148         OLD_LDFLAGS="$LDFLAGS"
14149         ADDRSAN_FLAGS="-fsanitize=address"
14150         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14151         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14152         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h.  */
14154
14155 int
14156 main ()
14157 {
14158
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165 $as_echo "yes" >&6; }
14166                 addrsan_cflags=$ADDRSAN_FLAGS
14167                 addrsan_ldflags=$ADDRSAN_FLAGS
14168                 have_addrsan=yes
14169 else
14170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext \
14174     conftest$ac_exeext conftest.$ac_ext
14175         CFLAGS="${OLD_CFLAGS}"
14176         LDFLAGS="${OLD_LDFLAGS}"
14177
14178
14179
14180 fi
14181 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14182         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14183 fi
14184 # Check whether --enable-threadsan was given.
14185 if test "${enable_threadsan+set}" = set; then :
14186   enableval=$enable_threadsan;
14187 else
14188   enable_threadsan=no
14189 fi
14190
14191 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14193 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14194         OLD_CFLAGS="$CFLAGS"
14195         OLD_LDFLAGS="$LDFLAGS"
14196         THREADSAN_FLAGS="-fsanitize=thread"
14197         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14198         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h.  */
14201
14202 int
14203 main ()
14204 {
14205
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 if ac_fn_c_try_link "$LINENO"; then :
14211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14212 $as_echo "yes" >&6; }
14213                 threadsan_cflags=$THREADSAN_FLAGS
14214                 threadsan_ldflags=$THREADSAN_FLAGS
14215                 have_threadsan=yes
14216 else
14217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext \
14221     conftest$ac_exeext conftest.$ac_ext
14222         CFLAGS="${OLD_CFLAGS}"
14223         LDFLAGS="${OLD_LDFLAGS}"
14224
14225
14226
14227 fi
14228 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14229         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14230 fi
14231 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14232         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14233 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14234 fi
14235 LINUX_CMT="#"
14236 CYGWIN_CMT="#"
14237 UNIX_CMT=
14238 case "$host_os" in
14239 linux*)
14240         LINUX_CMT=
14241         ;;
14242 cygwin)
14243         CYGWIN_CMT=
14244         UNIX_CMT="#"
14245         ;;
14246 esac
14247
14248
14249
14250 E2SCRUB_CMT="$LINUX_CMT"
14251
14252 case "$host_os" in
14253 linux* | gnu* | k*bsd*-gnu)
14254         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14255                 root_prefix="";
14256                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14257 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14258         fi
14259         ;;
14260 esac
14261 case "$host_os" in
14262 linux* | gnu* | k*bsd*-gnu)
14263         if test "$prefix" = NONE ; then
14264                 prefix="/usr";
14265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14266 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14267                 if test "$mandir" = '${prefix}/man' ; then
14268                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14269 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14270                         mandir=/usr/share/man
14271                 fi
14272         fi
14273 ;;
14274 esac
14275 if test "$root_prefix" = NONE ; then
14276         if test "$prefix" = NONE ; then
14277                 root_prefix="$ac_default_prefix"
14278         else
14279                 root_prefix="$prefix"
14280         fi
14281         root_bindir=$bindir
14282         root_sbindir=$sbindir
14283         root_libdir=$libdir
14284         root_sysconfdir=$sysconfdir
14285 else
14286         root_bindir='${root_prefix}/bin'
14287         root_sbindir='${root_prefix}/sbin'
14288         root_libdir='${root_prefix}/lib'
14289         root_sysconfdir='${root_prefix}/etc'
14290 fi
14291 if test "$bindir" != '${exec_prefix}/bin'; then
14292     root_bindir=$bindir
14293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14294 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14295 fi
14296 if test "$sbindir" != '${exec_prefix}/sbin'; then
14297     root_sbindir=$sbindir
14298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14299 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14300 fi
14301 if test "$libdir" != '${exec_prefix}/lib'; then
14302     root_libdir=$libdir
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14304 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14305 fi
14306 if test "$sysconfdir" != '${prefix}/etc'; then
14307     root_sysconfdir=$sysconfdir
14308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14309 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14310 fi
14311
14312
14313
14314
14315
14316
14317 # Check whether --with-multiarch was given.
14318 if test "${with_multiarch+set}" = set; then :
14319   withval=$with_multiarch; if test "$withval" = "lib64"; then
14320     libdir=/usr/lib64
14321     root_libdir=/lib64
14322 else
14323     libdir=$libdir/$withval
14324     root_libdir=$root_libdir/$withval
14325 fi
14326
14327 fi
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14330 $as_echo_n "checking whether we can link with -static... " >&6; }
14331 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14332   $as_echo_n "(cached) " >&6
14333 else
14334   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h.  */
14337 #include <stdio.h>
14338 int
14339 main ()
14340 {
14341 fflush(stdout);
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 if ac_fn_c_try_link "$LINENO"; then :
14347   ac_cv_e2fsprogs_use_static=yes
14348 else
14349   ac_cv_e2fsprogs_use_static=no
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext \
14352     conftest$ac_exeext conftest.$ac_ext
14353 LDFLAGS=$SAVE_LDFLAGS
14354 fi
14355
14356 case "$host_os" in
14357 solaris2.*)
14358         ac_cv_e2fsprogs_use_static=no
14359 ;;
14360 esac
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14362 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14363 if test $ac_cv_e2fsprogs_use_static = yes; then
14364         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14365 fi
14366
14367 case "$host_os" in
14368 darwin*)
14369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14370 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14371
14372 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14373
14374         ;;
14375 esac
14376 if test "$cross_compiling" = yes ; then
14377   DO_TEST_SUITE=
14378 else
14379   DO_TEST_SUITE=check
14380 fi
14381
14382 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14383 if test -n "$CPPFLAGS" ; then
14384         INCLUDES="$INCLUDES $CPPFLAGS"
14385 fi
14386 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14387         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14388 fi
14389 if test -n "$WITH_DIET_LIBC" ; then
14390         INCLUDES="$INCLUDES -D_REENTRANT"
14391 fi
14392
14393 if test $cross_compiling = no; then
14394    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14395    BUILD_LDFLAGS="$LDFLAGS"
14396 fi
14397
14398
14399 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14400 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14401 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14402
14403
14404
14405
14406
14407 # Check whether --with-udev_rules_dir was given.
14408 if test "${with_udev_rules_dir+set}" = set; then :
14409   withval=$with_udev_rules_dir;
14410 else
14411   with_udev_rules_dir=yes
14412 fi
14413
14414 if test "x${with_udev_rules_dir}" != "xno"; then :
14415
14416         if test "x${with_udev_rules_dir}" = "xyes"; then :
14417
14418
14419 pkg_failed=no
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14421 $as_echo_n "checking for udev... " >&6; }
14422
14423 if test -n "$udev_CFLAGS"; then
14424     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14425  elif test -n "$PKG_CONFIG"; then
14426     if test -n "$PKG_CONFIG" && \
14427     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14428   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14429   ac_status=$?
14430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431   test $ac_status = 0; }; then
14432   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14433                       test "x$?" != "x0" && pkg_failed=yes
14434 else
14435   pkg_failed=yes
14436 fi
14437  else
14438     pkg_failed=untried
14439 fi
14440 if test -n "$udev_LIBS"; then
14441     pkg_cv_udev_LIBS="$udev_LIBS"
14442  elif test -n "$PKG_CONFIG"; then
14443     if test -n "$PKG_CONFIG" && \
14444     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14445   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14446   ac_status=$?
14447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448   test $ac_status = 0; }; then
14449   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14450                       test "x$?" != "x0" && pkg_failed=yes
14451 else
14452   pkg_failed=yes
14453 fi
14454  else
14455     pkg_failed=untried
14456 fi
14457
14458
14459
14460 if test $pkg_failed = yes; then
14461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14463
14464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14465         _pkg_short_errors_supported=yes
14466 else
14467         _pkg_short_errors_supported=no
14468 fi
14469         if test $_pkg_short_errors_supported = yes; then
14470                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14471         else
14472                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14473         fi
14474         # Put the nasty error message in config.log where it belongs
14475         echo "$udev_PKG_ERRORS" >&5
14476
14477
14478                         with_udev_rules_dir=""
14479
14480 elif test $pkg_failed = untried; then
14481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483
14484                         with_udev_rules_dir=""
14485
14486 else
14487         udev_CFLAGS=$pkg_cv_udev_CFLAGS
14488         udev_LIBS=$pkg_cv_udev_LIBS
14489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14490 $as_echo "yes" >&6; }
14491
14492                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14493
14494 fi
14495
14496 fi
14497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14498 $as_echo_n "checking for udev rules dir... " >&6; }
14499         pkg_udev_rules_dir="${with_udev_rules_dir}"
14500         if test -n "${pkg_udev_rules_dir}"; then :
14501
14502                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14503 $as_echo "${pkg_udev_rules_dir}" >&6; }
14504                 have_udev="yes"
14505
14506 else
14507
14508                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14510                 have_udev="no"
14511
14512 fi
14513
14514 else
14515
14516         have_udev="disabled"
14517
14518 fi
14519
14520
14521
14522
14523 # Check whether --with-crond_dir was given.
14524 if test "${with_crond_dir+set}" = set; then :
14525   withval=$with_crond_dir;
14526 else
14527   with_crond_dir=yes
14528 fi
14529
14530 if test "x${with_crond_dir}" != "xno"; then :
14531
14532         if test "x${with_crond_dir}" = "xyes"; then :
14533
14534                 if test -d "/etc/cron.d"; then :
14535   with_crond_dir="/etc/cron.d"
14536 else
14537   have_crond="no"; with_crond_dir=""
14538 fi
14539
14540 fi
14541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14542 $as_echo_n "checking for system crontab dir... " >&6; }
14543         crond_dir="${with_crond_dir}"
14544         if test -n "${crond_dir}"; then :
14545
14546                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14547 $as_echo "${crond_dir}" >&6; }
14548                 have_crond="yes"
14549
14550 else
14551
14552                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14554                 have_crond="no"
14555
14556 fi
14557
14558 else
14559
14560         have_crond="disabled"
14561
14562 fi
14563
14564
14565
14566
14567 # Check whether --with-systemd_unit_dir was given.
14568 if test "${with_systemd_unit_dir+set}" = set; then :
14569   withval=$with_systemd_unit_dir;
14570 else
14571   with_systemd_unit_dir=yes
14572 fi
14573
14574 if test "x${with_systemd_unit_dir}" != "xno"; then :
14575
14576         if test "x${with_systemd_unit_dir}" = "xyes"; then :
14577
14578
14579 pkg_failed=no
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14581 $as_echo_n "checking for systemd... " >&6; }
14582
14583 if test -n "$systemd_CFLAGS"; then
14584     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14585  elif test -n "$PKG_CONFIG"; then
14586     if test -n "$PKG_CONFIG" && \
14587     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14588   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14589   ac_status=$?
14590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591   test $ac_status = 0; }; then
14592   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14593                       test "x$?" != "x0" && pkg_failed=yes
14594 else
14595   pkg_failed=yes
14596 fi
14597  else
14598     pkg_failed=untried
14599 fi
14600 if test -n "$systemd_LIBS"; then
14601     pkg_cv_systemd_LIBS="$systemd_LIBS"
14602  elif test -n "$PKG_CONFIG"; then
14603     if test -n "$PKG_CONFIG" && \
14604     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14605   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14606   ac_status=$?
14607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608   test $ac_status = 0; }; then
14609   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14610                       test "x$?" != "x0" && pkg_failed=yes
14611 else
14612   pkg_failed=yes
14613 fi
14614  else
14615     pkg_failed=untried
14616 fi
14617
14618
14619
14620 if test $pkg_failed = yes; then
14621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14623
14624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14625         _pkg_short_errors_supported=yes
14626 else
14627         _pkg_short_errors_supported=no
14628 fi
14629         if test $_pkg_short_errors_supported = yes; then
14630                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14631         else
14632                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14633         fi
14634         # Put the nasty error message in config.log where it belongs
14635         echo "$systemd_PKG_ERRORS" >&5
14636
14637
14638                         with_systemd_unit_dir=""
14639
14640 elif test $pkg_failed = untried; then
14641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 $as_echo "no" >&6; }
14643
14644                         with_systemd_unit_dir=""
14645
14646 else
14647         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14648         systemd_LIBS=$pkg_cv_systemd_LIBS
14649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 $as_echo "yes" >&6; }
14651
14652                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14653
14654 fi
14655
14656
14657 fi
14658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14659 $as_echo_n "checking for systemd system unit dir... " >&6; }
14660         systemd_system_unit_dir="${with_systemd_unit_dir}"
14661         if test -n "${systemd_system_unit_dir}"; then :
14662
14663                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14664 $as_echo "${systemd_system_unit_dir}" >&6; }
14665                 have_systemd="yes"
14666
14667 else
14668
14669                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14671                 have_systemd="no"
14672
14673 fi
14674
14675 else
14676
14677         have_systemd="disabled"
14678
14679 fi
14680
14681
14682
14683 test -d lib || mkdir lib
14684 test -d include || mkdir include
14685 test -d include/linux || mkdir include/linux
14686 test -d include/asm || mkdir include/asm
14687 if test -z "$UUID_CMT" ; then
14688         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14689                 lib/uuid/uuid_types.h"
14690 fi
14691 if test -z "$BLKID_CMT" ; then
14692         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14693                 lib/blkid/blkid_types.h"
14694 fi
14695 for i in MCONFIG Makefile \
14696         e2fsprogs-RHEL-6.spec \
14697         e2fsprogs-SUSE_LINUX-11+12+15.spec \
14698         e2fsprogs-RHEL-7+8.spec \
14699         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14700         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14701         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14702         $uuid_out_list $blkid_out_list lib/support/Makefile \
14703         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14704         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14705         debugfs/Makefile tests/Makefile tests/progs/Makefile \
14706         resize/Makefile doc/Makefile intl/Makefile \
14707         intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14708         if test -d `dirname ${srcdir}/$i` ; then
14709                 outlist="$outlist $i"
14710         fi
14711 done
14712 ac_config_files="$ac_config_files $outlist"
14713
14714 cat >confcache <<\_ACEOF
14715 # This file is a shell script that caches the results of configure
14716 # tests run on this system so they can be shared between configure
14717 # scripts and configure runs, see configure's option --config-cache.
14718 # It is not useful on other systems.  If it contains results you don't
14719 # want to keep, you may remove or edit it.
14720 #
14721 # config.status only pays attention to the cache file if you give it
14722 # the --recheck option to rerun configure.
14723 #
14724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14726 # following values.
14727
14728 _ACEOF
14729
14730 # The following way of writing the cache mishandles newlines in values,
14731 # but we know of no workaround that is simple, portable, and efficient.
14732 # So, we kill variables containing newlines.
14733 # Ultrix sh set writes to stderr and can't be redirected directly,
14734 # and sets the high bit in the cache file unless we assign to the vars.
14735 (
14736   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14737     eval ac_val=\$$ac_var
14738     case $ac_val in #(
14739     *${as_nl}*)
14740       case $ac_var in #(
14741       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14743       esac
14744       case $ac_var in #(
14745       _ | IFS | as_nl) ;; #(
14746       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14747       *) { eval $ac_var=; unset $ac_var;} ;;
14748       esac ;;
14749     esac
14750   done
14751
14752   (set) 2>&1 |
14753     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14754     *${as_nl}ac_space=\ *)
14755       # `set' does not quote correctly, so add quotes: double-quote
14756       # substitution turns \\\\ into \\, and sed turns \\ into \.
14757       sed -n \
14758         "s/'/'\\\\''/g;
14759           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14760       ;; #(
14761     *)
14762       # `set' quotes correctly as required by POSIX, so do not add quotes.
14763       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14764       ;;
14765     esac |
14766     sort
14767 ) |
14768   sed '
14769      /^ac_cv_env_/b end
14770      t clear
14771      :clear
14772      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14773      t end
14774      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14775      :end' >>confcache
14776 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14777   if test -w "$cache_file"; then
14778     if test "x$cache_file" != "x/dev/null"; then
14779       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14780 $as_echo "$as_me: updating cache $cache_file" >&6;}
14781       if test ! -f "$cache_file" || test -h "$cache_file"; then
14782         cat confcache >"$cache_file"
14783       else
14784         case $cache_file in #(
14785         */* | ?:*)
14786           mv -f confcache "$cache_file"$$ &&
14787           mv -f "$cache_file"$$ "$cache_file" ;; #(
14788         *)
14789           mv -f confcache "$cache_file" ;;
14790         esac
14791       fi
14792     fi
14793   else
14794     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14796   fi
14797 fi
14798 rm -f confcache
14799
14800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14801 # Let make expand exec_prefix.
14802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14803
14804 DEFS=-DHAVE_CONFIG_H
14805
14806 ac_libobjs=
14807 ac_ltlibobjs=
14808 U=
14809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14810   # 1. Remove the extension, and $U if already installed.
14811   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14812   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14813   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14814   #    will be set to the directory where LIBOBJS objects are built.
14815   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14816   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14817 done
14818 LIBOBJS=$ac_libobjs
14819
14820 LTLIBOBJS=$ac_ltlibobjs
14821
14822
14823
14824
14825 : "${CONFIG_STATUS=./config.status}"
14826 ac_write_fail=0
14827 ac_clean_files_save=$ac_clean_files
14828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14831 as_write_fail=0
14832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14833 #! $SHELL
14834 # Generated by $as_me.
14835 # Run this file to recreate the current configuration.
14836 # Compiler output produced by configure, useful for debugging
14837 # configure, is in config.log if it exists.
14838
14839 debug=false
14840 ac_cs_recheck=false
14841 ac_cs_silent=false
14842
14843 SHELL=\${CONFIG_SHELL-$SHELL}
14844 export SHELL
14845 _ASEOF
14846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14847 ## -------------------- ##
14848 ## M4sh Initialization. ##
14849 ## -------------------- ##
14850
14851 # Be more Bourne compatible
14852 DUALCASE=1; export DUALCASE # for MKS sh
14853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14854   emulate sh
14855   NULLCMD=:
14856   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14857   # is contrary to our usage.  Disable this feature.
14858   alias -g '${1+"$@"}'='"$@"'
14859   setopt NO_GLOB_SUBST
14860 else
14861   case `(set -o) 2>/dev/null` in #(
14862   *posix*) :
14863     set -o posix ;; #(
14864   *) :
14865      ;;
14866 esac
14867 fi
14868
14869
14870 as_nl='
14871 '
14872 export as_nl
14873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14877 # Prefer a ksh shell builtin over an external printf program on Solaris,
14878 # but without wasting forks for bash or zsh.
14879 if test -z "$BASH_VERSION$ZSH_VERSION" \
14880     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14881   as_echo='print -r --'
14882   as_echo_n='print -rn --'
14883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14884   as_echo='printf %s\n'
14885   as_echo_n='printf %s'
14886 else
14887   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14888     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14889     as_echo_n='/usr/ucb/echo -n'
14890   else
14891     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14892     as_echo_n_body='eval
14893       arg=$1;
14894       case $arg in #(
14895       *"$as_nl"*)
14896         expr "X$arg" : "X\\(.*\\)$as_nl";
14897         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14898       esac;
14899       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14900     '
14901     export as_echo_n_body
14902     as_echo_n='sh -c $as_echo_n_body as_echo'
14903   fi
14904   export as_echo_body
14905   as_echo='sh -c $as_echo_body as_echo'
14906 fi
14907
14908 # The user is always right.
14909 if test "${PATH_SEPARATOR+set}" != set; then
14910   PATH_SEPARATOR=:
14911   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14912     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14913       PATH_SEPARATOR=';'
14914   }
14915 fi
14916
14917
14918 # IFS
14919 # We need space, tab and new line, in precisely that order.  Quoting is
14920 # there to prevent editors from complaining about space-tab.
14921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14922 # splitting by setting IFS to empty value.)
14923 IFS=" ""        $as_nl"
14924
14925 # Find who we are.  Look in the path if we contain no directory separator.
14926 as_myself=
14927 case $0 in #((
14928   *[\\/]* ) as_myself=$0 ;;
14929   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14931 do
14932   IFS=$as_save_IFS
14933   test -z "$as_dir" && as_dir=.
14934     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14935   done
14936 IFS=$as_save_IFS
14937
14938      ;;
14939 esac
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14943   as_myself=$0
14944 fi
14945 if test ! -f "$as_myself"; then
14946   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14947   exit 1
14948 fi
14949
14950 # Unset variables that we do not need and which cause bugs (e.g. in
14951 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14952 # suppresses any "Segmentation fault" message there.  '((' could
14953 # trigger a bug in pdksh 5.2.14.
14954 for as_var in BASH_ENV ENV MAIL MAILPATH
14955 do eval test x\${$as_var+set} = xset \
14956   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14957 done
14958 PS1='$ '
14959 PS2='> '
14960 PS4='+ '
14961
14962 # NLS nuisances.
14963 LC_ALL=C
14964 export LC_ALL
14965 LANGUAGE=C
14966 export LANGUAGE
14967
14968 # CDPATH.
14969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14970
14971
14972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14973 # ----------------------------------------
14974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14976 # script with STATUS, using 1 if that was 0.
14977 as_fn_error ()
14978 {
14979   as_status=$1; test $as_status -eq 0 && as_status=1
14980   if test "$4"; then
14981     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14982     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14983   fi
14984   $as_echo "$as_me: error: $2" >&2
14985   as_fn_exit $as_status
14986 } # as_fn_error
14987
14988
14989 # as_fn_set_status STATUS
14990 # -----------------------
14991 # Set $? to STATUS, without forking.
14992 as_fn_set_status ()
14993 {
14994   return $1
14995 } # as_fn_set_status
14996
14997 # as_fn_exit STATUS
14998 # -----------------
14999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15000 as_fn_exit ()
15001 {
15002   set +e
15003   as_fn_set_status $1
15004   exit $1
15005 } # as_fn_exit
15006
15007 # as_fn_unset VAR
15008 # ---------------
15009 # Portably unset VAR.
15010 as_fn_unset ()
15011 {
15012   { eval $1=; unset $1;}
15013 }
15014 as_unset=as_fn_unset
15015 # as_fn_append VAR VALUE
15016 # ----------------------
15017 # Append the text in VALUE to the end of the definition contained in VAR. Take
15018 # advantage of any shell optimizations that allow amortized linear growth over
15019 # repeated appends, instead of the typical quadratic growth present in naive
15020 # implementations.
15021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15022   eval 'as_fn_append ()
15023   {
15024     eval $1+=\$2
15025   }'
15026 else
15027   as_fn_append ()
15028   {
15029     eval $1=\$$1\$2
15030   }
15031 fi # as_fn_append
15032
15033 # as_fn_arith ARG...
15034 # ------------------
15035 # Perform arithmetic evaluation on the ARGs, and store the result in the
15036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15037 # must be portable across $(()) and expr.
15038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15039   eval 'as_fn_arith ()
15040   {
15041     as_val=$(( $* ))
15042   }'
15043 else
15044   as_fn_arith ()
15045   {
15046     as_val=`expr "$@" || test $? -eq 1`
15047   }
15048 fi # as_fn_arith
15049
15050
15051 if expr a : '\(a\)' >/dev/null 2>&1 &&
15052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15053   as_expr=expr
15054 else
15055   as_expr=false
15056 fi
15057
15058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15059   as_basename=basename
15060 else
15061   as_basename=false
15062 fi
15063
15064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15065   as_dirname=dirname
15066 else
15067   as_dirname=false
15068 fi
15069
15070 as_me=`$as_basename -- "$0" ||
15071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15072          X"$0" : 'X\(//\)$' \| \
15073          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15074 $as_echo X/"$0" |
15075     sed '/^.*\/\([^/][^/]*\)\/*$/{
15076             s//\1/
15077             q
15078           }
15079           /^X\/\(\/\/\)$/{
15080             s//\1/
15081             q
15082           }
15083           /^X\/\(\/\).*/{
15084             s//\1/
15085             q
15086           }
15087           s/.*/./; q'`
15088
15089 # Avoid depending upon Character Ranges.
15090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15093 as_cr_digits='0123456789'
15094 as_cr_alnum=$as_cr_Letters$as_cr_digits
15095
15096 ECHO_C= ECHO_N= ECHO_T=
15097 case `echo -n x` in #(((((
15098 -n*)
15099   case `echo 'xy\c'` in
15100   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15101   xy)  ECHO_C='\c';;
15102   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15103        ECHO_T=' ';;
15104   esac;;
15105 *)
15106   ECHO_N='-n';;
15107 esac
15108
15109 rm -f conf$$ conf$$.exe conf$$.file
15110 if test -d conf$$.dir; then
15111   rm -f conf$$.dir/conf$$.file
15112 else
15113   rm -f conf$$.dir
15114   mkdir conf$$.dir 2>/dev/null
15115 fi
15116 if (echo >conf$$.file) 2>/dev/null; then
15117   if ln -s conf$$.file conf$$ 2>/dev/null; then
15118     as_ln_s='ln -s'
15119     # ... but there are two gotchas:
15120     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15121     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15122     # In both cases, we have to default to `cp -pR'.
15123     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15124       as_ln_s='cp -pR'
15125   elif ln conf$$.file conf$$ 2>/dev/null; then
15126     as_ln_s=ln
15127   else
15128     as_ln_s='cp -pR'
15129   fi
15130 else
15131   as_ln_s='cp -pR'
15132 fi
15133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15134 rmdir conf$$.dir 2>/dev/null
15135
15136
15137 # as_fn_mkdir_p
15138 # -------------
15139 # Create "$as_dir" as a directory, including parents if necessary.
15140 as_fn_mkdir_p ()
15141 {
15142
15143   case $as_dir in #(
15144   -*) as_dir=./$as_dir;;
15145   esac
15146   test -d "$as_dir" || eval $as_mkdir_p || {
15147     as_dirs=
15148     while :; do
15149       case $as_dir in #(
15150       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15151       *) as_qdir=$as_dir;;
15152       esac
15153       as_dirs="'$as_qdir' $as_dirs"
15154       as_dir=`$as_dirname -- "$as_dir" ||
15155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15156          X"$as_dir" : 'X\(//\)[^/]' \| \
15157          X"$as_dir" : 'X\(//\)$' \| \
15158          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15159 $as_echo X"$as_dir" |
15160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15161             s//\1/
15162             q
15163           }
15164           /^X\(\/\/\)[^/].*/{
15165             s//\1/
15166             q
15167           }
15168           /^X\(\/\/\)$/{
15169             s//\1/
15170             q
15171           }
15172           /^X\(\/\).*/{
15173             s//\1/
15174             q
15175           }
15176           s/.*/./; q'`
15177       test -d "$as_dir" && break
15178     done
15179     test -z "$as_dirs" || eval "mkdir $as_dirs"
15180   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15181
15182
15183 } # as_fn_mkdir_p
15184 if mkdir -p . 2>/dev/null; then
15185   as_mkdir_p='mkdir -p "$as_dir"'
15186 else
15187   test -d ./-p && rmdir ./-p
15188   as_mkdir_p=false
15189 fi
15190
15191
15192 # as_fn_executable_p FILE
15193 # -----------------------
15194 # Test if FILE is an executable regular file.
15195 as_fn_executable_p ()
15196 {
15197   test -f "$1" && test -x "$1"
15198 } # as_fn_executable_p
15199 as_test_x='test -x'
15200 as_executable_p=as_fn_executable_p
15201
15202 # Sed expression to map a string onto a valid CPP name.
15203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15204
15205 # Sed expression to map a string onto a valid variable name.
15206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15207
15208
15209 exec 6>&1
15210 ## ----------------------------------- ##
15211 ## Main body of $CONFIG_STATUS script. ##
15212 ## ----------------------------------- ##
15213 _ASEOF
15214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15215
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 # Save the log message, to keep $0 and so on meaningful, and to
15218 # report actual input values of CONFIG_FILES etc. instead of their
15219 # values after options handling.
15220 ac_log="
15221 This file was extended by $as_me, which was
15222 generated by GNU Autoconf 2.69.  Invocation command line was
15223
15224   CONFIG_FILES    = $CONFIG_FILES
15225   CONFIG_HEADERS  = $CONFIG_HEADERS
15226   CONFIG_LINKS    = $CONFIG_LINKS
15227   CONFIG_COMMANDS = $CONFIG_COMMANDS
15228   $ $0 $@
15229
15230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15231 "
15232
15233 _ACEOF
15234
15235 case $ac_config_files in *"
15236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15237 esac
15238
15239 case $ac_config_headers in *"
15240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15241 esac
15242
15243
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 # Files that config.status was made for.
15246 config_files="$ac_config_files"
15247 config_headers="$ac_config_headers"
15248 config_commands="$ac_config_commands"
15249
15250 _ACEOF
15251
15252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15253 ac_cs_usage="\
15254 \`$as_me' instantiates files and other configuration actions
15255 from templates according to the current configuration.  Unless the files
15256 and actions are specified as TAGs, all are instantiated by default.
15257
15258 Usage: $0 [OPTION]... [TAG]...
15259
15260   -h, --help       print this help, then exit
15261   -V, --version    print version number and configuration settings, then exit
15262       --config     print configuration, then exit
15263   -q, --quiet, --silent
15264                    do not print progress messages
15265   -d, --debug      don't remove temporary files
15266       --recheck    update $as_me by reconfiguring in the same conditions
15267       --file=FILE[:TEMPLATE]
15268                    instantiate the configuration file FILE
15269       --header=FILE[:TEMPLATE]
15270                    instantiate the configuration header FILE
15271
15272 Configuration files:
15273 $config_files
15274
15275 Configuration headers:
15276 $config_headers
15277
15278 Configuration commands:
15279 $config_commands
15280
15281 Report bugs to the package provider."
15282
15283 _ACEOF
15284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15286 ac_cs_version="\\
15287 config.status
15288 configured by $0, generated by GNU Autoconf 2.69,
15289   with options \\"\$ac_cs_config\\"
15290
15291 Copyright (C) 2012 Free Software Foundation, Inc.
15292 This config.status script is free software; the Free Software Foundation
15293 gives unlimited permission to copy, distribute and modify it."
15294
15295 ac_pwd='$ac_pwd'
15296 srcdir='$srcdir'
15297 INSTALL='$INSTALL'
15298 MKDIR_P='$MKDIR_P'
15299 AWK='$AWK'
15300 test -n "\$AWK" || AWK=awk
15301 _ACEOF
15302
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 # The default lists apply if the user does not specify any file.
15305 ac_need_defaults=:
15306 while test $# != 0
15307 do
15308   case $1 in
15309   --*=?*)
15310     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15311     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15312     ac_shift=:
15313     ;;
15314   --*=)
15315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15316     ac_optarg=
15317     ac_shift=:
15318     ;;
15319   *)
15320     ac_option=$1
15321     ac_optarg=$2
15322     ac_shift=shift
15323     ;;
15324   esac
15325
15326   case $ac_option in
15327   # Handling of the options.
15328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15329     ac_cs_recheck=: ;;
15330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15331     $as_echo "$ac_cs_version"; exit ;;
15332   --config | --confi | --conf | --con | --co | --c )
15333     $as_echo "$ac_cs_config"; exit ;;
15334   --debug | --debu | --deb | --de | --d | -d )
15335     debug=: ;;
15336   --file | --fil | --fi | --f )
15337     $ac_shift
15338     case $ac_optarg in
15339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15340     '') as_fn_error $? "missing file argument" ;;
15341     esac
15342     as_fn_append CONFIG_FILES " '$ac_optarg'"
15343     ac_need_defaults=false;;
15344   --header | --heade | --head | --hea )
15345     $ac_shift
15346     case $ac_optarg in
15347     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15348     esac
15349     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15350     ac_need_defaults=false;;
15351   --he | --h)
15352     # Conflict between --help and --header
15353     as_fn_error $? "ambiguous option: \`$1'
15354 Try \`$0 --help' for more information.";;
15355   --help | --hel | -h )
15356     $as_echo "$ac_cs_usage"; exit ;;
15357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15359     ac_cs_silent=: ;;
15360
15361   # This is an error.
15362   -*) as_fn_error $? "unrecognized option: \`$1'
15363 Try \`$0 --help' for more information." ;;
15364
15365   *) as_fn_append ac_config_targets " $1"
15366      ac_need_defaults=false ;;
15367
15368   esac
15369   shift
15370 done
15371
15372 ac_configure_extra_args=
15373
15374 if $ac_cs_silent; then
15375   exec 6>/dev/null
15376   ac_configure_extra_args="$ac_configure_extra_args --silent"
15377 fi
15378
15379 _ACEOF
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 if \$ac_cs_recheck; then
15382   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15383   shift
15384   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15385   CONFIG_SHELL='$SHELL'
15386   export CONFIG_SHELL
15387   exec "\$@"
15388 fi
15389
15390 _ACEOF
15391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15392 exec 5>>config.log
15393 {
15394   echo
15395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15396 ## Running $as_me. ##
15397 _ASBOX
15398   $as_echo "$ac_log"
15399 } >&5
15400
15401 _ACEOF
15402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15403 #
15404 # INIT-COMMANDS
15405 #
15406 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15407     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15408     # from automake < 1.5.
15409     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15410     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15411     LINGUAS="${LINGUAS-%UNSET%}"
15412
15413
15414 _ACEOF
15415
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417
15418 # Handling of arguments.
15419 for ac_config_target in $ac_config_targets
15420 do
15421   case $ac_config_target in
15422     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15423     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15424     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15425
15426   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15427   esac
15428 done
15429
15430
15431 # If the user did not use the arguments to specify the items to instantiate,
15432 # then the envvar interface is used.  Set only those that are not.
15433 # We use the long form for the default assignment because of an extremely
15434 # bizarre bug on SunOS 4.1.3.
15435 if $ac_need_defaults; then
15436   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15437   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15438   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15439 fi
15440
15441 # Have a temporary directory for convenience.  Make it in the build tree
15442 # simply because there is no reason against having it here, and in addition,
15443 # creating and moving files from /tmp can sometimes cause problems.
15444 # Hook for its removal unless debugging.
15445 # Note that there is a small window in which the directory will not be cleaned:
15446 # after its creation but before its name has been assigned to `$tmp'.
15447 $debug ||
15448 {
15449   tmp= ac_tmp=
15450   trap 'exit_status=$?
15451   : "${ac_tmp:=$tmp}"
15452   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15453 ' 0
15454   trap 'as_fn_exit 1' 1 2 13 15
15455 }
15456 # Create a (secure) tmp directory for tmp files.
15457
15458 {
15459   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15460   test -d "$tmp"
15461 }  ||
15462 {
15463   tmp=./conf$$-$RANDOM
15464   (umask 077 && mkdir "$tmp")
15465 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15466 ac_tmp=$tmp
15467
15468 # Set up the scripts for CONFIG_FILES section.
15469 # No need to generate them if there are no CONFIG_FILES.
15470 # This happens for instance with `./config.status config.h'.
15471 if test -n "$CONFIG_FILES"; then
15472
15473 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15474   ac_cs_awk_getline=:
15475   ac_cs_awk_pipe_init=
15476   ac_cs_awk_read_file='
15477       while ((getline aline < (F[key])) > 0)
15478         print(aline)
15479       close(F[key])'
15480   ac_cs_awk_pipe_fini=
15481 else
15482   ac_cs_awk_getline=false
15483   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15484   ac_cs_awk_read_file='
15485       print "|#_!!_#|"
15486       print "cat " F[key] " &&"
15487       '$ac_cs_awk_pipe_init
15488   # The final `:' finishes the AND list.
15489   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15490 fi
15491 ac_cr=`echo X | tr X '\015'`
15492 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15493 # But we know of no other shell where ac_cr would be empty at this
15494 # point, so we can use a bashism as a fallback.
15495 if test "x$ac_cr" = x; then
15496   eval ac_cr=\$\'\\r\'
15497 fi
15498 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15499 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15500   ac_cs_awk_cr='\\r'
15501 else
15502   ac_cs_awk_cr=$ac_cr
15503 fi
15504
15505 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15506 _ACEOF
15507
15508 # Create commands to substitute file output variables.
15509 {
15510   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15511   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15512   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15513   echo "_ACAWK" &&
15514   echo "_ACEOF"
15515 } >conf$$files.sh &&
15516 . ./conf$$files.sh ||
15517   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15518 rm -f conf$$files.sh
15519
15520 {
15521   echo "cat >conf$$subs.awk <<_ACEOF" &&
15522   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15523   echo "_ACEOF"
15524 } >conf$$subs.sh ||
15525   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15526 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15527 ac_delim='%!_!# '
15528 for ac_last_try in false false false false false :; do
15529   . ./conf$$subs.sh ||
15530     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15531
15532   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15533   if test $ac_delim_n = $ac_delim_num; then
15534     break
15535   elif $ac_last_try; then
15536     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15537   else
15538     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15539   fi
15540 done
15541 rm -f conf$$subs.sh
15542
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15545 _ACEOF
15546 sed -n '
15547 h
15548 s/^/S["/; s/!.*/"]=/
15549 p
15550 g
15551 s/^[^!]*!//
15552 :repl
15553 t repl
15554 s/'"$ac_delim"'$//
15555 t delim
15556 :nl
15557 h
15558 s/\(.\{148\}\)..*/\1/
15559 t more1
15560 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15561 p
15562 n
15563 b repl
15564 :more1
15565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15566 p
15567 g
15568 s/.\{148\}//
15569 t nl
15570 :delim
15571 h
15572 s/\(.\{148\}\)..*/\1/
15573 t more2
15574 s/["\\]/\\&/g; s/^/"/; s/$/"/
15575 p
15576 b
15577 :more2
15578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15579 p
15580 g
15581 s/.\{148\}//
15582 t delim
15583 ' <conf$$subs.awk | sed '
15584 /^[^""]/{
15585   N
15586   s/\n//
15587 }
15588 ' >>$CONFIG_STATUS || ac_write_fail=1
15589 rm -f conf$$subs.awk
15590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15591 _ACAWK
15592 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15593   for (key in S) S_is_set[key] = 1
15594   FS = "\a"
15595   \$ac_cs_awk_pipe_init
15596 }
15597 {
15598   line = $ 0
15599   nfields = split(line, field, "@")
15600   substed = 0
15601   len = length(field[1])
15602   for (i = 2; i < nfields; i++) {
15603     key = field[i]
15604     keylen = length(key)
15605     if (S_is_set[key]) {
15606       value = S[key]
15607       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15608       len += length(value) + length(field[++i])
15609       substed = 1
15610     } else
15611       len += 1 + keylen
15612   }
15613   if (nfields == 3 && !substed) {
15614     key = field[2]
15615     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15616       \$ac_cs_awk_read_file
15617       next
15618     }
15619   }
15620   print line
15621 }
15622 \$ac_cs_awk_pipe_fini
15623 _ACAWK
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15626 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15627   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15628 else
15629   cat
15630 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15631   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15632 _ACEOF
15633
15634 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15635 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15636 # trailing colons and then remove the whole line if VPATH becomes empty
15637 # (actually we leave an empty line to preserve line numbers).
15638 if test "x$srcdir" = x.; then
15639   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15640 h
15641 s///
15642 s/^/:/
15643 s/[      ]*$/:/
15644 s/:\$(srcdir):/:/g
15645 s/:\${srcdir}:/:/g
15646 s/:@srcdir@:/:/g
15647 s/^:*//
15648 s/:*$//
15649 x
15650 s/\(=[   ]*\).*/\1/
15651 G
15652 s/\n//
15653 s/^[^=]*=[       ]*$//
15654 }'
15655 fi
15656
15657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15658 fi # test -n "$CONFIG_FILES"
15659
15660 # Set up the scripts for CONFIG_HEADERS section.
15661 # No need to generate them if there are no CONFIG_HEADERS.
15662 # This happens for instance with `./config.status Makefile'.
15663 if test -n "$CONFIG_HEADERS"; then
15664 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15665 BEGIN {
15666 _ACEOF
15667
15668 # Transform confdefs.h into an awk script `defines.awk', embedded as
15669 # here-document in config.status, that substitutes the proper values into
15670 # config.h.in to produce config.h.
15671
15672 # Create a delimiter string that does not exist in confdefs.h, to ease
15673 # handling of long lines.
15674 ac_delim='%!_!# '
15675 for ac_last_try in false false :; do
15676   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15677   if test -z "$ac_tt"; then
15678     break
15679   elif $ac_last_try; then
15680     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15681   else
15682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15683   fi
15684 done
15685
15686 # For the awk script, D is an array of macro values keyed by name,
15687 # likewise P contains macro parameters if any.  Preserve backslash
15688 # newline sequences.
15689
15690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15691 sed -n '
15692 s/.\{148\}/&'"$ac_delim"'/g
15693 t rset
15694 :rset
15695 s/^[     ]*#[    ]*define[       ][      ]*/ /
15696 t def
15697 d
15698 :def
15699 s/\\$//
15700 t bsnl
15701 s/["\\]/\\&/g
15702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15703 D["\1"]=" \3"/p
15704 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15705 d
15706 :bsnl
15707 s/["\\]/\\&/g
15708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15709 D["\1"]=" \3\\\\\\n"\\/p
15710 t cont
15711 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15712 t cont
15713 d
15714 :cont
15715 n
15716 s/.\{148\}/&'"$ac_delim"'/g
15717 t clear
15718 :clear
15719 s/\\$//
15720 t bsnlc
15721 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15722 d
15723 :bsnlc
15724 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15725 b cont
15726 ' <confdefs.h | sed '
15727 s/'"$ac_delim"'/"\\\
15728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15729
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731   for (key in D) D_is_set[key] = 1
15732   FS = "\a"
15733 }
15734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15735   line = \$ 0
15736   split(line, arg, " ")
15737   if (arg[1] == "#") {
15738     defundef = arg[2]
15739     mac1 = arg[3]
15740   } else {
15741     defundef = substr(arg[1], 2)
15742     mac1 = arg[2]
15743   }
15744   split(mac1, mac2, "(") #)
15745   macro = mac2[1]
15746   prefix = substr(line, 1, index(line, defundef) - 1)
15747   if (D_is_set[macro]) {
15748     # Preserve the white space surrounding the "#".
15749     print prefix "define", macro P[macro] D[macro]
15750     next
15751   } else {
15752     # Replace #undef with comments.  This is necessary, for example,
15753     # in the case of _POSIX_SOURCE, which is predefined and required
15754     # on some systems where configure will not decide to define it.
15755     if (defundef == "undef") {
15756       print "/*", prefix defundef, macro, "*/"
15757       next
15758     }
15759   }
15760 }
15761 { print }
15762 _ACAWK
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15766 fi # test -n "$CONFIG_HEADERS"
15767
15768
15769 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15770 shift
15771 for ac_tag
15772 do
15773   case $ac_tag in
15774   :[FHLC]) ac_mode=$ac_tag; continue;;
15775   esac
15776   case $ac_mode$ac_tag in
15777   :[FHL]*:*);;
15778   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15779   :[FH]-) ac_tag=-:-;;
15780   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15781   esac
15782   ac_save_IFS=$IFS
15783   IFS=:
15784   set x $ac_tag
15785   IFS=$ac_save_IFS
15786   shift
15787   ac_file=$1
15788   shift
15789
15790   case $ac_mode in
15791   :L) ac_source=$1;;
15792   :[FH])
15793     ac_file_inputs=
15794     for ac_f
15795     do
15796       case $ac_f in
15797       -) ac_f="$ac_tmp/stdin";;
15798       *) # Look for the file first in the build tree, then in the source tree
15799          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15800          # because $ac_f cannot contain `:'.
15801          test -f "$ac_f" ||
15802            case $ac_f in
15803            [\\/$]*) false;;
15804            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15805            esac ||
15806            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15807       esac
15808       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15809       as_fn_append ac_file_inputs " '$ac_f'"
15810     done
15811
15812     # Let's still pretend it is `configure' which instantiates (i.e., don't
15813     # use $as_me), people would be surprised to read:
15814     #    /* config.h.  Generated by config.status.  */
15815     configure_input='Generated from '`
15816           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15817         `' by configure.'
15818     if test x"$ac_file" != x-; then
15819       configure_input="$ac_file.  $configure_input"
15820       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15821 $as_echo "$as_me: creating $ac_file" >&6;}
15822     fi
15823     # Neutralize special characters interpreted by sed in replacement strings.
15824     case $configure_input in #(
15825     *\&* | *\|* | *\\* )
15826        ac_sed_conf_input=`$as_echo "$configure_input" |
15827        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15828     *) ac_sed_conf_input=$configure_input;;
15829     esac
15830
15831     case $ac_tag in
15832     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15833       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15834     esac
15835     ;;
15836   esac
15837
15838   ac_dir=`$as_dirname -- "$ac_file" ||
15839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840          X"$ac_file" : 'X\(//\)[^/]' \| \
15841          X"$ac_file" : 'X\(//\)$' \| \
15842          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X"$ac_file" |
15844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15845             s//\1/
15846             q
15847           }
15848           /^X\(\/\/\)[^/].*/{
15849             s//\1/
15850             q
15851           }
15852           /^X\(\/\/\)$/{
15853             s//\1/
15854             q
15855           }
15856           /^X\(\/\).*/{
15857             s//\1/
15858             q
15859           }
15860           s/.*/./; q'`
15861   as_dir="$ac_dir"; as_fn_mkdir_p
15862   ac_builddir=.
15863
15864 case "$ac_dir" in
15865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15866 *)
15867   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15868   # A ".." for each directory in $ac_dir_suffix.
15869   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15870   case $ac_top_builddir_sub in
15871   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15872   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15873   esac ;;
15874 esac
15875 ac_abs_top_builddir=$ac_pwd
15876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15877 # for backward compatibility:
15878 ac_top_builddir=$ac_top_build_prefix
15879
15880 case $srcdir in
15881   .)  # We are building in place.
15882     ac_srcdir=.
15883     ac_top_srcdir=$ac_top_builddir_sub
15884     ac_abs_top_srcdir=$ac_pwd ;;
15885   [\\/]* | ?:[\\/]* )  # Absolute name.
15886     ac_srcdir=$srcdir$ac_dir_suffix;
15887     ac_top_srcdir=$srcdir
15888     ac_abs_top_srcdir=$srcdir ;;
15889   *) # Relative name.
15890     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15891     ac_top_srcdir=$ac_top_build_prefix$srcdir
15892     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15893 esac
15894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15895
15896
15897   case $ac_mode in
15898   :F)
15899   #
15900   # CONFIG_FILE
15901   #
15902
15903   case $INSTALL in
15904   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15905   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15906   esac
15907   ac_MKDIR_P=$MKDIR_P
15908   case $MKDIR_P in
15909   [\\/$]* | ?:[\\/]* ) ;;
15910   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15911   esac
15912 _ACEOF
15913
15914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 # If the template does not know about datarootdir, expand it.
15916 # FIXME: This hack should be removed a few years after 2.60.
15917 ac_datarootdir_hack=; ac_datarootdir_seen=
15918 ac_sed_dataroot='
15919 /datarootdir/ {
15920   p
15921   q
15922 }
15923 /@datadir@/p
15924 /@docdir@/p
15925 /@infodir@/p
15926 /@localedir@/p
15927 /@mandir@/p'
15928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15929 *datarootdir*) ac_datarootdir_seen=yes;;
15930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15933 _ACEOF
15934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935   ac_datarootdir_hack='
15936   s&@datadir@&$datadir&g
15937   s&@docdir@&$docdir&g
15938   s&@infodir@&$infodir&g
15939   s&@localedir@&$localedir&g
15940   s&@mandir@&$mandir&g
15941   s&\\\${datarootdir}&$datarootdir&g' ;;
15942 esac
15943 _ACEOF
15944
15945 # Neutralize VPATH when `$srcdir' = `.'.
15946 # Shell code in configure.ac might set extrasub.
15947 # FIXME: do we really want to maintain this feature?
15948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15949 ac_sed_extra="$ac_vpsub
15950 $extrasub
15951 _ACEOF
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 :t
15954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15955 s|@configure_input@|$ac_sed_conf_input|;t t
15956 s&@top_builddir@&$ac_top_builddir_sub&;t t
15957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15958 s&@srcdir@&$ac_srcdir&;t t
15959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15960 s&@top_srcdir@&$ac_top_srcdir&;t t
15961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15962 s&@builddir@&$ac_builddir&;t t
15963 s&@abs_builddir@&$ac_abs_builddir&;t t
15964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15965 s&@INSTALL@&$ac_INSTALL&;t t
15966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15967 $ac_datarootdir_hack
15968 "
15969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15970 if $ac_cs_awk_getline; then
15971   $AWK -f "$ac_tmp/subs.awk"
15972 else
15973   $AWK -f "$ac_tmp/subs.awk" | $SHELL
15974 fi \
15975   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15976
15977 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15978   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15979   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15980       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15981   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15982 which seems to be undefined.  Please make sure it is defined" >&5
15983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15984 which seems to be undefined.  Please make sure it is defined" >&2;}
15985
15986   rm -f "$ac_tmp/stdin"
15987   case $ac_file in
15988   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15989   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15990   esac \
15991   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15992  ;;
15993   :H)
15994   #
15995   # CONFIG_HEADER
15996   #
15997   if test x"$ac_file" != x-; then
15998     {
15999       $as_echo "/* $configure_input  */" \
16000       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16001     } >"$ac_tmp/config.h" \
16002       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16003     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16004       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16005 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16006     else
16007       rm -f "$ac_file"
16008       mv "$ac_tmp/config.h" "$ac_file" \
16009         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16010     fi
16011   else
16012     $as_echo "/* $configure_input  */" \
16013       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16014       || as_fn_error $? "could not create -" "$LINENO" 5
16015   fi
16016  ;;
16017
16018   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16019 $as_echo "$as_me: executing $ac_file commands" >&6;}
16020  ;;
16021   esac
16022
16023
16024   case $ac_file$ac_mode in
16025     "po-directories":C)
16026     for ac_file in $CONFIG_FILES; do
16027       # Support "outfile[:infile[:infile...]]"
16028       case "$ac_file" in
16029         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16030       esac
16031       # PO directories have a Makefile.in generated from Makefile.in.in.
16032       case "$ac_file" in */Makefile.in)
16033         # Adjust a relative srcdir.
16034         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16035         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16036         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16037         # In autoconf-2.13 it is called $ac_given_srcdir.
16038         # In autoconf-2.50 it is called $srcdir.
16039         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16040         case "$ac_given_srcdir" in
16041           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16042           /*) top_srcdir="$ac_given_srcdir" ;;
16043           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16044         esac
16045         # Treat a directory as a PO directory if and only if it has a
16046         # POTFILES.in file. This allows packages to have multiple PO
16047         # directories under different names or in different locations.
16048         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16049           rm -f "$ac_dir/POTFILES"
16050           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16051           gt_tab=`printf '\t'`
16052           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"
16053           POMAKEFILEDEPS="POTFILES.in"
16054           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16055           # on $ac_dir but don't depend on user-specified configuration
16056           # parameters.
16057           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16058             # The LINGUAS file contains the set of available languages.
16059             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16060               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16061             fi
16062             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16063             # Hide the ALL_LINGUAS assignment from automake < 1.5.
16064             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16065             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16066           else
16067             # The set of available languages was given in configure.in.
16068             # Hide the ALL_LINGUAS assignment from automake < 1.5.
16069             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16070           fi
16071           # Compute POFILES
16072           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16073           # Compute UPDATEPOFILES
16074           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16075           # Compute DUMMYPOFILES
16076           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16077           # Compute GMOFILES
16078           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16079           case "$ac_given_srcdir" in
16080             .) srcdirpre= ;;
16081             *) srcdirpre='$(srcdir)/' ;;
16082           esac
16083           POFILES=
16084           UPDATEPOFILES=
16085           DUMMYPOFILES=
16086           GMOFILES=
16087           for lang in $ALL_LINGUAS; do
16088             POFILES="$POFILES $srcdirpre$lang.po"
16089             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16090             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16091             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16092           done
16093           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16094           # environment variable.
16095           INST_LINGUAS=
16096           if test -n "$ALL_LINGUAS"; then
16097             for presentlang in $ALL_LINGUAS; do
16098               useit=no
16099               if test "%UNSET%" != "$LINGUAS"; then
16100                 desiredlanguages="$LINGUAS"
16101               else
16102                 desiredlanguages="$ALL_LINGUAS"
16103               fi
16104               for desiredlang in $desiredlanguages; do
16105                 # Use the presentlang catalog if desiredlang is
16106                 #   a. equal to presentlang, or
16107                 #   b. a variant of presentlang (because in this case,
16108                 #      presentlang can be used as a fallback for messages
16109                 #      which are not translated in the desiredlang catalog).
16110                 case "$desiredlang" in
16111                   "$presentlang"*) useit=yes;;
16112                 esac
16113               done
16114               if test $useit = yes; then
16115                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16116               fi
16117             done
16118           fi
16119           CATALOGS=
16120           if test -n "$INST_LINGUAS"; then
16121             for lang in $INST_LINGUAS; do
16122               CATALOGS="$CATALOGS $lang.gmo"
16123             done
16124           fi
16125           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16126           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"
16127           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16128             if test -f "$f"; then
16129               case "$f" in
16130                 *.orig | *.bak | *~) ;;
16131                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16132               esac
16133             fi
16134           done
16135         fi
16136         ;;
16137       esac
16138     done ;;
16139
16140   esac
16141 done # for ac_tag
16142
16143
16144 as_fn_exit 0
16145 _ACEOF
16146 ac_clean_files=$ac_clean_files_save
16147
16148 test $ac_write_fail = 0 ||
16149   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16150
16151
16152 # configure is writing to config.log, and then calls config.status.
16153 # config.status does its own redirection, appending to config.log.
16154 # Unfortunately, on DOS this fails, as config.log is still kept open
16155 # by configure, so config.status won't be able to write to it; its
16156 # output is simply discarded.  So we exec the FD to /dev/null,
16157 # effectively closing config.log, so it can be properly (re)opened and
16158 # appended to by config.status.  When coming back to configure, we
16159 # need to make the FD available again.
16160 if test "$no_create" != yes; then
16161   ac_cs_success=:
16162   ac_config_status_args=
16163   test "$silent" = yes &&
16164     ac_config_status_args="$ac_config_status_args --quiet"
16165   exec 5>/dev/null
16166   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16167   exec 5>>config.log
16168   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16169   # would make configure fail if this is the last instruction.
16170   $ac_cs_success || as_fn_exit 1
16171 fi
16172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16173   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16175 fi
16176
16177 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi