Whamcloud - gitweb
Merge remote-tracking branch 'josch/libarchive' into josch-libarchive
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185   if (eval "$as_required") 2>/dev/null
186 then :
187   as_have_required=yes
188 else $as_nop
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   case $as_dir in #(((
201     '') as_dir=./ ;;
202     */) ;;
203     *) as_dir=$as_dir/ ;;
204   esac
205   as_found=:
206   case $as_dir in #(
207          /*)
208            for as_base in sh bash ksh sh5; do
209              # Try only shells that exist, to save several forks.
210              as_shell=$as_dir$as_base
211              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214   CONFIG_SHELL=$as_shell as_have_required=yes
215                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217   break 2
218 fi
219 fi
220            done;;
221        esac
222   as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232   CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237       if test "x$CONFIG_SHELL" != x
238 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno
261 then :
262   printf "%s\n" "$0: This script requires a shell more modern than all"
263   printf "%s\n" "$0: the shells that I found on your system."
264   if test ${ZSH_VERSION+y} ; then
265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272   fi
273   exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291   { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301   return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309   set +e
310   as_fn_set_status $1
311   exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318   return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else $as_nop
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else $as_nop
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419   return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430   as_status=$1; test $as_status -eq 0 && as_status=1
431   if test "$4"; then
432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434   fi
435   printf "%s\n" "$as_me: error: $2" >&2
436   as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
441   as_expr=expr
442 else
443   as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447   as_basename=basename
448 else
449   as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453   as_dirname=dirname
454 else
455   as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460          X"$0" : 'X\(//\)$' \| \
461          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463     sed '/^.*\/\([^/][^/]*\)\/*$/{
464             s//\1/
465             q
466           }
467           /^X\/\(\/\/\)$/{
468             s//\1/
469             q
470           }
471           /^X\/\(\/\).*/{
472             s//\1/
473             q
474           }
475           s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485   as_lineno_1=$LINENO as_lineno_1a=$LINENO
486   as_lineno_2=$LINENO as_lineno_2a=$LINENO
487   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
490   sed -n '
491     p
492     /[$]LINENO/=
493   ' <$as_myself |
494     sed '
495       s/[$]LINENO.*/&-/
496       t lineno
497       b
498       :lineno
499       N
500       :loop
501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502       t loop
503       s/-\n.*//
504     ' >$as_me.lineno &&
505   chmod +x "$as_me.lineno" ||
506     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509   # already done that, so ensure we don't try to do so again and fall
510   # in an infinite loop.  This has already happened in practice.
511   _as_can_reexec=no; export _as_can_reexec
512   # Don't try to exec as it changes $[0], causing all sort of problems
513   # (the dirname of $[0] is not the place where we might find the
514   # original and so on.  Autoconf is especially sensitive to this).
515   . "./$as_me.lineno"
516   # Exit status is that of the last command.
517   exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527   case `echo 'xy\c'` in
528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
529   xy)  ECHO_C='\c';;
530   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
531        ECHO_T=' ';;
532   esac;;
533 *)
534   ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n.  New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546   rm -f conf$$.dir/conf$$.file
547 else
548   rm -f conf$$.dir
549   mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552   if ln -s conf$$.file conf$$ 2>/dev/null; then
553     as_ln_s='ln -s'
554     # ... but there are two gotchas:
555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557     # In both cases, we have to default to `cp -pR'.
558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559       as_ln_s='cp -pR'
560   elif ln conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s=ln
562   else
563     as_ln_s='cp -pR'
564   fi
565 else
566   as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572   as_mkdir_p='mkdir -p "$as_dir"'
573 else
574   test -d ./-p && rmdir ./-p
575   as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stddef.h>
620 #ifdef HAVE_STDIO_H
621 # include <stdio.h>
622 #endif
623 #ifdef HAVE_STDLIB_H
624 # include <stdlib.h>
625 #endif
626 #ifdef HAVE_STRING_H
627 # include <string.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
637 #endif
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
640 #endif
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
643 #endif
644 #ifdef HAVE_UNISTD_H
645 # include <unistd.h>
646 #endif"
647
648 ac_header_c_list=
649 gt_needs=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 LIBOBJS
653 OS_IO_FILE
654 systemd_system_unit_dir
655 have_systemd
656 systemd_LIBS
657 systemd_CFLAGS
658 crond_dir
659 have_crond
660 pkg_udev_rules_dir
661 have_udev
662 udev_LIBS
663 udev_CFLAGS
664 LDFLAGS_SHLIB
665 CFLAGS_STLIB
666 CFLAGS_SHLIB
667 BUILD_LDFLAGS
668 BUILD_CFLAGS
669 INCLUDES
670 DO_TEST_SUITE
671 LDFLAGS_STATIC
672 root_sysconfdir
673 root_libdir
674 root_sbindir
675 root_bindir
676 root_prefix
677 E2SCRUB_CMT
678 UNIX_CMT
679 CYGWIN_CMT
680 LINUX_CMT
681 FUZZING_CMT
682 fuzzer_ldflags
683 fuzzer_cflags
684 have_fuzzer
685 ac_ct_CXX
686 CXXFLAGS
687 CXX
688 threadsan_ldflags
689 threadsan_cflags
690 have_threadsan
691 addrsan_ldflags
692 addrsan_cflags
693 have_addrsan
694 ubsan_ldflags
695 ubsan_cflags
696 have_ubsan
697 lto_ldflags
698 lto_cflags
699 have_lto
700 gcc_ranlib
701 gcc_ar
702 UNI_DIFF_OPTS
703 SEM_INIT_LIB
704 FUSE_CMT
705 FUSE_LIB
706 CLOCK_GETTIME_LIB
707 ARCHIVE_LIB
708 MAGIC_LIB
709 SOCKET_LIB
710 SIZEOF_TIME_T
711 SIZEOF_OFF_T
712 SIZEOF_LONG_LONG
713 SIZEOF_LONG
714 SIZEOF_INT
715 SIZEOF_SHORT
716 DD
717 BUILD_CC
718 MAKEINFO
719 STRIP
720 RANLIB
721 AR
722 LDCONFIG
723 PERL
724 AWK
725 CHMOD
726 RM
727 CP
728 MV
729 LN_S
730 mkdir_p
731 LN
732 ifNotGNUmake
733 ifGNUmake
734 BINARY_TYPE
735 POSUB
736 LTLIBINTL
737 LIBINTL
738 INTLLIBS
739 LTLIBICONV
740 LIBICONV
741 INTL_MACOSX_LIBS
742 XGETTEXT_EXTRA_OPTIONS
743 MSGMERGE_FOR_MSGFMT_OPTION
744 MSGMERGE
745 XGETTEXT_015
746 XGETTEXT
747 GMSGFMT_015
748 GMSGFMT
749 MSGFMT
750 GETTEXT_MACRO_VERSION
751 USE_NLS
752 MKDIR_P
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 SET_MAKE
757 VERSION
758 PACKAGE
759 GETTEXT_PACKAGE
760 TDB_MAN_COMMENT
761 TDB_CMT
762 UUIDD_CMT
763 PTHREAD_CFLAGS
764 PTHREAD_LIBS
765 PTHREAD_CXX
766 PTHREAD_CC
767 ax_pthread_config
768 EGREP
769 GREP
770 SED
771 E2INITRD_MAN
772 E2INITRD_PROG
773 FSCK_MAN
774 FSCK_PROG
775 DEFRAG_CMT
776 RESIZER_CMT
777 IMAGER_CMT
778 DEBUGFS_CMT
779 SUBSET_CMT
780 ALL_CMT
781 BLKID_CMT
782 DEPPROFILED_LIBBLKID
783 PROFILED_LIBBLKID
784 DEPSTATIC_LIBBLKID
785 STATIC_LIBBLKID
786 DEPLIBBLKID
787 LIBBLKID
788 UUID_CMT
789 DEPPROFILED_LIBUUID
790 PROFILED_LIBUUID
791 DEPSTATIC_LIBUUID
792 STATIC_LIBUUID
793 DEPLIBUUID
794 LIBUUID
795 PKG_CONFIG_LIBDIR
796 PKG_CONFIG_PATH
797 PKG_CONFIG
798 DEV_FEATURES_CMT
799 TEST_IO_CMT
800 PRIVATE_LIBS_CMT
801 LDFLAG_DYNAMIC
802 PROFILED_LIB_EXT
803 STATIC_LIB_EXT
804 LIB_EXT
805 PROFILE_CMT
806 BSDLIB_CMT
807 ELF_CMT
808 Q
809 ES
810 E
811 LINK_BUILD_FLAGS
812 SYMLINK_RELATIVE
813 LINK_INSTALL_FLAGS
814 MAINTAINER_CMT
815 CPP
816 RDYNAMIC
817 DLOPEN_LIB
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 E2FSPROGS_DATE
827 E2FSPROGS_PKGVER
828 E2FSPROGS_PKGREL
829 E2FSPROGS_VERSION
830 E2FSPROGS_DAY
831 E2FSPROGS_MONTH
832 E2FSPROGS_YEAR
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
839 CC
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 runstatedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='MCONFIG
880 MAKEFILE_ELF
881 MAKEFILE_BSDLIB
882 MAKEFILE_PROFILE
883 MAKEFILE_LIBRARY
884 ASM_TYPES_HEADER
885 PUBLIC_CONFIG_HEADER'
886 ac_user_opts='
887 enable_option_checking
888 with_diet_libc
889 with_cc
890 with_ccopts
891 with_ldopts
892 with_root_prefix
893 enable_maintainer_mode
894 enable_symlink_install
895 enable_relative_symlinks
896 enable_symlink_relative_symlinks
897 enable_symlink_build
898 enable_verbose_makecmds
899 enable_elf_shlibs
900 enable_bsd_shlibs
901 enable_profile
902 enable_gcov
903 enable_hardening
904 enable_jbd_debug
905 enable_blkid_debug
906 enable_testio_debug
907 enable_developer_features
908 enable_libuuid
909 enable_libblkid
910 enable_subset
911 enable_backtrace
912 enable_debugfs
913 enable_imager
914 enable_resizer
915 enable_defrag
916 enable_fsck
917 enable_e2initrd_helper
918 enable_tls
919 with_pthread
920 enable_uuidd
921 enable_mmp
922 enable_tdb
923 enable_bmap_stats
924 enable_bmap_stats_ops
925 enable_nls
926 with_gnu_ld
927 enable_rpath
928 with_libiconv_prefix
929 with_libintl_prefix
930 enable_largefile
931 enable_fuse2fs
932 enable_lto
933 enable_ubsan
934 enable_addrsan
935 enable_threadsan
936 enable_fuzzing
937 with_multiarch
938 with_udev_rules_dir
939 with_crond_dir
940 with_systemd_unit_dir
941 '
942       ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CPP
951 PKG_CONFIG
952 PKG_CONFIG_PATH
953 PKG_CONFIG_LIBDIR
954 CXX
955 CXXFLAGS
956 CCC
957 udev_CFLAGS
958 udev_LIBS
959 systemd_CFLAGS
960 systemd_LIBS'
961
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 ac_unrecognized_opts=
967 ac_unrecognized_sep=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 runstatedir='${localstatedir}/run'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1011
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1015 do
1016   # If the previous option needs an argument, assign it.
1017   if test -n "$ac_prev"; then
1018     eval $ac_prev=\$ac_option
1019     ac_prev=
1020     continue
1021   fi
1022
1023   case $ac_option in
1024   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025   *=)   ac_optarg= ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1096     ac_useropt_orig=$ac_useropt
1097     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1098     case $ac_user_opts in
1099       *"
1100 "enable_$ac_useropt"
1101 "*) ;;
1102       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103          ac_unrecognized_sep=', ';;
1104     esac
1105     eval enable_$ac_useropt=\$ac_optarg ;;
1106
1107   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109   | --exec | --exe | --ex)
1110     ac_prev=exec_prefix ;;
1111   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113   | --exec=* | --exe=* | --ex=*)
1114     exec_prefix=$ac_optarg ;;
1115
1116   -gas | --gas | --ga | --g)
1117     # Obsolete; use --with-gas.
1118     with_gas=yes ;;
1119
1120   -help | --help | --hel | --he | -h)
1121     ac_init_help=long ;;
1122   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123     ac_init_help=recursive ;;
1124   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125     ac_init_help=short ;;
1126
1127   -host | --host | --hos | --ho)
1128     ac_prev=host_alias ;;
1129   -host=* | --host=* | --hos=* | --ho=*)
1130     host_alias=$ac_optarg ;;
1131
1132   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133     ac_prev=htmldir ;;
1134   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135   | --ht=*)
1136     htmldir=$ac_optarg ;;
1137
1138   -includedir | --includedir | --includedi | --included | --include \
1139   | --includ | --inclu | --incl | --inc)
1140     ac_prev=includedir ;;
1141   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142   | --includ=* | --inclu=* | --incl=* | --inc=*)
1143     includedir=$ac_optarg ;;
1144
1145   -infodir | --infodir | --infodi | --infod | --info | --inf)
1146     ac_prev=infodir ;;
1147   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148     infodir=$ac_optarg ;;
1149
1150   -libdir | --libdir | --libdi | --libd)
1151     ac_prev=libdir ;;
1152   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153     libdir=$ac_optarg ;;
1154
1155   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156   | --libexe | --libex | --libe)
1157     ac_prev=libexecdir ;;
1158   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159   | --libexe=* | --libex=* | --libe=*)
1160     libexecdir=$ac_optarg ;;
1161
1162   -localedir | --localedir | --localedi | --localed | --locale)
1163     ac_prev=localedir ;;
1164   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165     localedir=$ac_optarg ;;
1166
1167   -localstatedir | --localstatedir | --localstatedi | --localstated \
1168   | --localstate | --localstat | --localsta | --localst | --locals)
1169     ac_prev=localstatedir ;;
1170   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172     localstatedir=$ac_optarg ;;
1173
1174   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175     ac_prev=mandir ;;
1176   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177     mandir=$ac_optarg ;;
1178
1179   -nfp | --nfp | --nf)
1180     # Obsolete; use --without-fp.
1181     with_fp=no ;;
1182
1183   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184   | --no-cr | --no-c | -n)
1185     no_create=yes ;;
1186
1187   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189     no_recursion=yes ;;
1190
1191   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193   | --oldin | --oldi | --old | --ol | --o)
1194     ac_prev=oldincludedir ;;
1195   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198     oldincludedir=$ac_optarg ;;
1199
1200   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201     ac_prev=prefix ;;
1202   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203     prefix=$ac_optarg ;;
1204
1205   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206   | --program-pre | --program-pr | --program-p)
1207     ac_prev=program_prefix ;;
1208   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210     program_prefix=$ac_optarg ;;
1211
1212   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213   | --program-suf | --program-su | --program-s)
1214     ac_prev=program_suffix ;;
1215   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217     program_suffix=$ac_optarg ;;
1218
1219   -program-transform-name | --program-transform-name \
1220   | --program-transform-nam | --program-transform-na \
1221   | --program-transform-n | --program-transform- \
1222   | --program-transform | --program-transfor \
1223   | --program-transfo | --program-transf \
1224   | --program-trans | --program-tran \
1225   | --progr-tra | --program-tr | --program-t)
1226     ac_prev=program_transform_name ;;
1227   -program-transform-name=* | --program-transform-name=* \
1228   | --program-transform-nam=* | --program-transform-na=* \
1229   | --program-transform-n=* | --program-transform-=* \
1230   | --program-transform=* | --program-transfor=* \
1231   | --program-transfo=* | --program-transf=* \
1232   | --program-trans=* | --program-tran=* \
1233   | --progr-tra=* | --program-tr=* | --program-t=*)
1234     program_transform_name=$ac_optarg ;;
1235
1236   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237     ac_prev=pdfdir ;;
1238   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239     pdfdir=$ac_optarg ;;
1240
1241   -psdir | --psdir | --psdi | --psd | --ps)
1242     ac_prev=psdir ;;
1243   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244     psdir=$ac_optarg ;;
1245
1246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247   | -silent | --silent | --silen | --sile | --sil)
1248     silent=yes ;;
1249
1250   -runstatedir | --runstatedir | --runstatedi | --runstated \
1251   | --runstate | --runstat | --runsta | --runst | --runs \
1252   | --run | --ru | --r)
1253     ac_prev=runstatedir ;;
1254   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1255   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1256   | --run=* | --ru=* | --r=*)
1257     runstatedir=$ac_optarg ;;
1258
1259   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260     ac_prev=sbindir ;;
1261   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262   | --sbi=* | --sb=*)
1263     sbindir=$ac_optarg ;;
1264
1265   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267   | --sharedst | --shareds | --shared | --share | --shar \
1268   | --sha | --sh)
1269     ac_prev=sharedstatedir ;;
1270   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273   | --sha=* | --sh=*)
1274     sharedstatedir=$ac_optarg ;;
1275
1276   -site | --site | --sit)
1277     ac_prev=site ;;
1278   -site=* | --site=* | --sit=*)
1279     site=$ac_optarg ;;
1280
1281   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282     ac_prev=srcdir ;;
1283   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284     srcdir=$ac_optarg ;;
1285
1286   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287   | --syscon | --sysco | --sysc | --sys | --sy)
1288     ac_prev=sysconfdir ;;
1289   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291     sysconfdir=$ac_optarg ;;
1292
1293   -target | --target | --targe | --targ | --tar | --ta | --t)
1294     ac_prev=target_alias ;;
1295   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296     target_alias=$ac_optarg ;;
1297
1298   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299     verbose=yes ;;
1300
1301   -version | --version | --versio | --versi | --vers | -V)
1302     ac_init_version=: ;;
1303
1304   -with-* | --with-*)
1305     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308       as_fn_error $? "invalid package name: \`$ac_useropt'"
1309     ac_useropt_orig=$ac_useropt
1310     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1311     case $ac_user_opts in
1312       *"
1313 "with_$ac_useropt"
1314 "*) ;;
1315       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316          ac_unrecognized_sep=', ';;
1317     esac
1318     eval with_$ac_useropt=\$ac_optarg ;;
1319
1320   -without-* | --without-*)
1321     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324       as_fn_error $? "invalid package name: \`$ac_useropt'"
1325     ac_useropt_orig=$ac_useropt
1326     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1327     case $ac_user_opts in
1328       *"
1329 "with_$ac_useropt"
1330 "*) ;;
1331       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1332          ac_unrecognized_sep=', ';;
1333     esac
1334     eval with_$ac_useropt=no ;;
1335
1336   --x)
1337     # Obsolete; use --with-x.
1338     with_x=yes ;;
1339
1340   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341   | --x-incl | --x-inc | --x-in | --x-i)
1342     ac_prev=x_includes ;;
1343   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345     x_includes=$ac_optarg ;;
1346
1347   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349     ac_prev=x_libraries ;;
1350   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352     x_libraries=$ac_optarg ;;
1353
1354   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1355 Try \`$0 --help' for more information"
1356     ;;
1357
1358   *=*)
1359     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1360     # Reject names that are not valid shell variable names.
1361     case $ac_envvar in #(
1362       '' | [0-9]* | *[!_$as_cr_alnum]* )
1363       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1364     esac
1365     eval $ac_envvar=\$ac_optarg
1366     export $ac_envvar ;;
1367
1368   *)
1369     # FIXME: should be removed in autoconf 3.0.
1370     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1371     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1373     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1374     ;;
1375
1376   esac
1377 done
1378
1379 if test -n "$ac_prev"; then
1380   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381   as_fn_error $? "missing argument to $ac_option"
1382 fi
1383
1384 if test -n "$ac_unrecognized_opts"; then
1385   case $enable_option_checking in
1386     no) ;;
1387     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1388     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389   esac
1390 fi
1391
1392 # Check all directory arguments for consistency.
1393 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394                 datadir sysconfdir sharedstatedir localstatedir includedir \
1395                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396                 libdir localedir mandir runstatedir
1397 do
1398   eval ac_val=\$$ac_var
1399   # Remove trailing slashes.
1400   case $ac_val in
1401     */ )
1402       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403       eval $ac_var=\$ac_val;;
1404   esac
1405   # Be sure to have absolute directory names.
1406   case $ac_val in
1407     [\\/$]* | ?:[\\/]* )  continue;;
1408     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409   esac
1410   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1411 done
1412
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1419
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422   if test "x$build_alias" = x; then
1423     cross_compiling=maybe
1424   elif test "x$build_alias" != "x$host_alias"; then
1425     cross_compiling=yes
1426   fi
1427 fi
1428
1429 ac_tool_prefix=
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431
1432 test "$silent" = yes && exec 6>/dev/null
1433
1434
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438   as_fn_error $? "working directory cannot be determined"
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440   as_fn_error $? "pwd does not report name of working directory"
1441
1442
1443 # Find the source files, if location was not specified.
1444 if test -z "$srcdir"; then
1445   ac_srcdir_defaulted=yes
1446   # Try the directory containing this script, then the parent directory.
1447   ac_confdir=`$as_dirname -- "$as_myself" ||
1448 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449          X"$as_myself" : 'X\(//\)[^/]' \| \
1450          X"$as_myself" : 'X\(//\)$' \| \
1451          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452 printf "%s\n" X"$as_myself" |
1453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454             s//\1/
1455             q
1456           }
1457           /^X\(\/\/\)[^/].*/{
1458             s//\1/
1459             q
1460           }
1461           /^X\(\/\/\)$/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\).*/{
1466             s//\1/
1467             q
1468           }
1469           s/.*/./; q'`
1470   srcdir=$ac_confdir
1471   if test ! -r "$srcdir/$ac_unique_file"; then
1472     srcdir=..
1473   fi
1474 else
1475   ac_srcdir_defaulted=no
1476 fi
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1480 fi
1481 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1482 ac_abs_confdir=`(
1483         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1484         pwd)`
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487   srcdir=.
1488 fi
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1492 case $srcdir in
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 esac
1495 for ac_var in $ac_precious_vars; do
1496   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497   eval ac_env_${ac_var}_value=\$${ac_var}
1498   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 done
1501
1502 #
1503 # Report the --help message.
1504 #
1505 if test "$ac_init_help" = "long"; then
1506   # Omit some internal or obsolete options to make the list less imposing.
1507   # This message is too long to be a string in the A/UX 3.1 sh.
1508   cat <<_ACEOF
1509 \`configure' configures this package to adapt to many kinds of systems.
1510
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE.  See below for descriptions of some of the useful variables.
1515
1516 Defaults for the options are specified in brackets.
1517
1518 Configuration:
1519   -h, --help              display this help and exit
1520       --help=short        display options specific to this package
1521       --help=recursive    display the short help of all the included packages
1522   -V, --version           display version information and exit
1523   -q, --quiet, --silent   do not print \`checking ...' messages
1524       --cache-file=FILE   cache test results in FILE [disabled]
1525   -C, --config-cache      alias for \`--cache-file=config.cache'
1526   -n, --no-create         do not create output files
1527       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1528
1529 Installation directories:
1530   --prefix=PREFIX         install architecture-independent files in PREFIX
1531                           [$ac_default_prefix]
1532   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1533                           [PREFIX]
1534
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1539
1540 For better control, use the options below.
1541
1542 Fine tuning of the installation directories:
1543   --bindir=DIR            user executables [EPREFIX/bin]
1544   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1545   --libexecdir=DIR        program executables [EPREFIX/libexec]
1546   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1547   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1548   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1549   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1550   --libdir=DIR            object code libraries [EPREFIX/lib]
1551   --includedir=DIR        C header files [PREFIX/include]
1552   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1553   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1554   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1555   --infodir=DIR           info documentation [DATAROOTDIR/info]
1556   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1557   --mandir=DIR            man documentation [DATAROOTDIR/man]
1558   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1559   --htmldir=DIR           html documentation [DOCDIR]
1560   --dvidir=DIR            dvi documentation [DOCDIR]
1561   --pdfdir=DIR            pdf documentation [DOCDIR]
1562   --psdir=DIR             ps documentation [DOCDIR]
1563 _ACEOF
1564
1565   cat <<\_ACEOF
1566
1567 System types:
1568   --build=BUILD     configure for building on BUILD [guessed]
1569   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1570 _ACEOF
1571 fi
1572
1573 if test -n "$ac_init_help"; then
1574
1575   cat <<\_ACEOF
1576
1577 Optional Features:
1578   --disable-option-checking  ignore unrecognized --enable/--with options
1579   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581   --enable-maintainer-mode
1582                           enable makefile rules useful for maintainers
1583   --enable-symlink-install
1584                           use symlinks when installing instead of hard links
1585   --enable-relative-symlinks
1586                           use relative symlinks when installing
1587
1588   --enable-symlink-build  use symlinks while building instead of hard links
1589   --enable-verbose-makecmds
1590                           enable verbose make command output
1591   --enable-elf-shlibs     select ELF shared libraries
1592   --enable-bsd-shlibs     select BSD shared libraries
1593   --enable-profile        build profiling libraries
1594   --enable-gcov           build for coverage testing using gcov
1595   --enable-hardening      build for coverage testing using gcov
1596   --enable-jbd-debug      enable journal debugging
1597   --enable-blkid-debug    enable blkid debugging
1598   --disable-testio-debug  disable the use of the test I/O manager for
1599                           debugging
1600   --enable-developer-features
1601                           enable features for use by ext4 developers
1602   --enable-libuuid        build and use private uuid library
1603   --enable-libblkid       build and use private blkid library
1604   --enable-subset         enable subset-only build
1605   --disable-backtrace     disable use backtrace
1606   --disable-debugfs       disable support of debugfs program
1607   --disable-imager        disable support of e2image program
1608   --disable-resizer       disable support of e2resize program
1609   --disable-defrag        disable support of e4defrag program
1610   --enable-fsck           build fsck wrapper program
1611   --enable-e2initrd-helper
1612                           build e2initrd-helper program
1613   --disable-tls           disable use of thread local support
1614   --disable-uuidd         disable building the uuid daemon
1615   --disable-mmp           disable support mmp, Multi Mount Protection
1616   --disable-tdb           disable tdb support
1617   --disable-bmap-stats    disable collection of bitmap stats
1618   --enable-bmap-stats-ops enable collection of additional bitmap stats
1619   --disable-nls           do not use Native Language Support
1620   --disable-rpath         do not hardcode runtime library paths
1621   --disable-largefile     omit support for large files
1622   --disable-fuse2fs       do not build fuse2fs
1623   --enable-lto            enable link time optimization
1624   --enable-ubsan          enable undefined behavior sanitizer
1625   --enable-addrsan        enable address sanitizer
1626   --enable-threadsan      enable thread sanitizer
1627   --enable-fuzzing        enable fuzzing sanitizer
1628
1629 Optional Packages:
1630   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1631   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1632   --with-diet-libc        use diet libc
1633   --with-cc               no longer supported, use CC= instead
1634   --with-ccopts           no longer supported, use CFLAGS= instead
1635   --with-ldopts           no longer supported, use LDFLAGS= instead
1636   --with-root-prefix=PREFIX
1637                           override prefix variable for files to be placed in
1638                           the root
1639   --without-pthread       disable use of pthread support
1640   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1641   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1642   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1643   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1644   --without-libintl-prefix     don't search for libintl in includedir and libdir
1645   --with-multiarch=ARCH   specify the multiarch triplet
1646   --with-udev-rules-dir[=DIR]
1647                           Install udev rules into DIR.
1648   --with-crond-dir[=DIR]  Install system crontabs into DIR.
1649   --with-systemd-unit-dir[=DIR]
1650                           Install systemd system units into DIR.
1651
1652 Some influential environment variables:
1653   CC          C compiler command
1654   CFLAGS      C compiler flags
1655   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1656               nonstandard directory <lib dir>
1657   LIBS        libraries to pass to the linker, e.g. -l<library>
1658   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1659               you have headers in a nonstandard directory <include dir>
1660   CPP         C preprocessor
1661   PKG_CONFIG  path to pkg-config utility
1662   PKG_CONFIG_PATH
1663               directories to add to pkg-config's search path
1664   PKG_CONFIG_LIBDIR
1665               path overriding pkg-config's built-in search path
1666   CXX         C++ compiler command
1667   CXXFLAGS    C++ compiler flags
1668   udev_CFLAGS C compiler flags for udev, overriding pkg-config
1669   udev_LIBS   linker flags for udev, overriding pkg-config
1670   systemd_CFLAGS
1671               C compiler flags for systemd, overriding pkg-config
1672   systemd_LIBS
1673               linker flags for systemd, overriding pkg-config
1674
1675 Use these variables to override the choices made by `configure' or to help
1676 it to find libraries and programs with nonstandard names/locations.
1677
1678 Report bugs to the package provider.
1679 _ACEOF
1680 ac_status=$?
1681 fi
1682
1683 if test "$ac_init_help" = "recursive"; then
1684   # If there are subdirs, report their specific --help.
1685   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1686     test -d "$ac_dir" ||
1687       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688       continue
1689     ac_builddir=.
1690
1691 case "$ac_dir" in
1692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *)
1694   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1695   # A ".." for each directory in $ac_dir_suffix.
1696   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1697   case $ac_top_builddir_sub in
1698   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700   esac ;;
1701 esac
1702 ac_abs_top_builddir=$ac_pwd
1703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1704 # for backward compatibility:
1705 ac_top_builddir=$ac_top_build_prefix
1706
1707 case $srcdir in
1708   .)  # We are building in place.
1709     ac_srcdir=.
1710     ac_top_srcdir=$ac_top_builddir_sub
1711     ac_abs_top_srcdir=$ac_pwd ;;
1712   [\\/]* | ?:[\\/]* )  # Absolute name.
1713     ac_srcdir=$srcdir$ac_dir_suffix;
1714     ac_top_srcdir=$srcdir
1715     ac_abs_top_srcdir=$srcdir ;;
1716   *) # Relative name.
1717     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1718     ac_top_srcdir=$ac_top_build_prefix$srcdir
1719     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1720 esac
1721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1722
1723     cd "$ac_dir" || { ac_status=$?; continue; }
1724     # Check for configure.gnu first; this name is used for a wrapper for
1725     # Metaconfig's "Configure" on case-insensitive file systems.
1726     if test -f "$ac_srcdir/configure.gnu"; then
1727       echo &&
1728       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729     elif test -f "$ac_srcdir/configure"; then
1730       echo &&
1731       $SHELL "$ac_srcdir/configure" --help=recursive
1732     else
1733       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734     fi || ac_status=$?
1735     cd "$ac_pwd" || { ac_status=$?; break; }
1736   done
1737 fi
1738
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741   cat <<\_ACEOF
1742 configure
1743 generated by GNU Autoconf 2.71
1744
1745 Copyright (C) 2021 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749   exit
1750 fi
1751
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1755
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   rm -f conftest.$ac_objext conftest.beam
1763   if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770   (eval "$ac_compile") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } && {
1779          test -z "$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        } && test -s conftest.$ac_objext
1782 then :
1783   ac_retval=0
1784 else $as_nop
1785   printf "%s\n" "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_compile
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 printf %s "checking for $2... " >&6; }
1804 if eval test \${$3+y}
1805 then :
1806   printf %s "(cached) " >&6
1807 else $as_nop
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"
1814 then :
1815   eval "$3=yes"
1816 else $as_nop
1817   eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 printf "%s\n" "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_compile
1827
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_link ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1835   if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838   *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 printf "%s\n" "$ac_try_echo"; } >&5
1842   (eval "$ac_link") 2>conftest.err
1843   ac_status=$?
1844   if test -s conftest.err; then
1845     grep -v '^ *+' conftest.err >conftest.er1
1846     cat conftest.er1 >&5
1847     mv -f conftest.er1 conftest.err
1848   fi
1849   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; } && {
1851          test -z "$ac_c_werror_flag" ||
1852          test ! -s conftest.err
1853        } && test -s conftest$ac_exeext && {
1854          test "$cross_compiling" = yes ||
1855          test -x conftest$ac_exeext
1856        }
1857 then :
1858   ac_retval=0
1859 else $as_nop
1860   printf "%s\n" "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867   # interfere with the next link command; also delete a directory that is
1868   # left behind by Apple's compiler.  We do this before executing the actions.
1869   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_link
1874
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 printf "%s\n" "$ac_try_echo"; } >&5
1888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889   ac_status=$?
1890   if test -s conftest.err; then
1891     grep -v '^ *+' conftest.err >conftest.er1
1892     cat conftest.er1 >&5
1893     mv -f conftest.er1 conftest.err
1894   fi
1895   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } > conftest.i && {
1897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898          test ! -s conftest.err
1899        }
1900 then :
1901   ac_retval=0
1902 else $as_nop
1903   printf "%s\n" "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906     ac_retval=1
1907 fi
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909   as_fn_set_status $ac_retval
1910
1911 } # ac_fn_c_try_cpp
1912
1913 # ac_fn_c_try_run LINENO
1914 # ----------------------
1915 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1916 # executables *can* be run.
1917 ac_fn_c_try_run ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 printf "%s\n" "$ac_try_echo"; } >&5
1927   (eval "$ac_link") 2>&5
1928   ac_status=$?
1929   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1931   { { case "(($ac_try" in
1932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933   *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 printf "%s\n" "$ac_try_echo"; } >&5
1937   (eval "$ac_try") 2>&5
1938   ac_status=$?
1939   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940   test $ac_status = 0; }; }
1941 then :
1942   ac_retval=0
1943 else $as_nop
1944   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1945        printf "%s\n" "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948        ac_retval=$ac_status
1949 fi
1950   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952   as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_run
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 printf %s "checking for $2... " >&6; }
1964 if eval test \${$3+y}
1965 then :
1966   printf %s "(cached) " >&6
1967 else $as_nop
1968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1972 #define $2 innocuous_$2
1973
1974 /* System header to define __stub macros and hopefully few prototypes,
1975    which can conflict with char $2 (); below.  */
1976
1977 #include <limits.h>
1978 #undef $2
1979
1980 /* Override any GCC internal prototype to avoid an error.
1981    Use char because int might match the return type of a GCC
1982    builtin and then its argument prototype would still apply.  */
1983 #ifdef __cplusplus
1984 extern "C"
1985 #endif
1986 char $2 ();
1987 /* The GNU C library defines this for functions which it implements
1988     to always fail with ENOSYS.  Some functions are actually named
1989     something starting with __ and the normal name is an alias.  */
1990 #if defined __stub_$2 || defined __stub___$2
1991 choke me
1992 #endif
1993
1994 int
1995 main (void)
1996 {
1997 return $2 ();
1998   ;
1999   return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_link "$LINENO"
2003 then :
2004   eval "$3=yes"
2005 else $as_nop
2006   eval "$3=no"
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2009     conftest$ac_exeext conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$3
2012                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 printf "%s\n" "$ac_res" >&6; }
2014   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_func
2017
2018 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2019 # ----------------------------------------------------
2020 # Tries to find if the field MEMBER exists in type AGGR, after including
2021 # INCLUDES, setting cache variable VAR accordingly.
2022 ac_fn_c_check_member ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2026 printf %s "checking for $2.$3... " >&6; }
2027 if eval test \${$4+y}
2028 then :
2029   printf %s "(cached) " >&6
2030 else $as_nop
2031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $5
2034 int
2035 main (void)
2036 {
2037 static $2 ac_aggr;
2038 if (ac_aggr.$3)
2039 return 0;
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"
2045 then :
2046   eval "$4=yes"
2047 else $as_nop
2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h.  */
2050 $5
2051 int
2052 main (void)
2053 {
2054 static $2 ac_aggr;
2055 if (sizeof ac_aggr.$3)
2056 return 0;
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"
2062 then :
2063   eval "$4=yes"
2064 else $as_nop
2065   eval "$4=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$4
2072                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_member
2077
2078 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2079 # -------------------------------------------
2080 # Tests whether TYPE exists after having included INCLUDES, setting cache
2081 # variable VAR accordingly.
2082 ac_fn_c_check_type ()
2083 {
2084   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 printf %s "checking for $2... " >&6; }
2087 if eval test \${$3+y}
2088 then :
2089   printf %s "(cached) " >&6
2090 else $as_nop
2091   eval "$3=no"
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main (void)
2097 {
2098 if (sizeof ($2))
2099          return 0;
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"
2105 then :
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main (void)
2111 {
2112 if (sizeof (($2)))
2113             return 0;
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"
2119 then :
2120
2121 else $as_nop
2122   eval "$3=yes"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 printf "%s\n" "$ac_res" >&6; }
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_type
2134
2135 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2136 # ------------------------------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2138 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2139 ac_fn_check_decl ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   as_decl_name=`echo $2|sed 's/ *(.*//'`
2143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2144 printf %s "checking whether $as_decl_name is declared... " >&6; }
2145 if eval test \${$3+y}
2146 then :
2147   printf %s "(cached) " >&6
2148 else $as_nop
2149   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2150   eval ac_save_FLAGS=\$$6
2151   as_fn_append $6 " $5"
2152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h.  */
2154 $4
2155 int
2156 main (void)
2157 {
2158 #ifndef $as_decl_name
2159 #ifdef __cplusplus
2160   (void) $as_decl_use;
2161 #else
2162   (void) $as_decl_name;
2163 #endif
2164 #endif
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"
2171 then :
2172   eval "$3=yes"
2173 else $as_nop
2174   eval "$3=no"
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2177   eval $6=\$ac_save_FLAGS
2178
2179 fi
2180 eval ac_res=\$$3
2181                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 printf "%s\n" "$ac_res" >&6; }
2183   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184
2185 } # ac_fn_check_decl
2186
2187 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2188 # --------------------------------------------
2189 # Tries to find the compile-time value of EXPR in a program that includes
2190 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2191 # computed
2192 ac_fn_c_compute_int ()
2193 {
2194   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195   if test "$cross_compiling" = yes; then
2196     # Depending upon the size, compute the lo and hi bounds.
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h.  */
2199 $4
2200 int
2201 main (void)
2202 {
2203 static int test_array [1 - 2 * !(($2) >= 0)];
2204 test_array [0] = 0;
2205 return test_array [0];
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_compile "$LINENO"
2212 then :
2213   ac_lo=0 ac_mid=0
2214   while :; do
2215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 int
2219 main (void)
2220 {
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 test_array [0] = 0;
2223 return test_array [0];
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"
2230 then :
2231   ac_hi=$ac_mid; break
2232 else $as_nop
2233   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234                         if test $ac_lo -le $ac_mid; then
2235                           ac_lo= ac_hi=
2236                           break
2237                         fi
2238                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2241   done
2242 else $as_nop
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main (void)
2248 {
2249 static int test_array [1 - 2 * !(($2) < 0)];
2250 test_array [0] = 0;
2251 return test_array [0];
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"
2258 then :
2259   ac_hi=-1 ac_mid=-1
2260   while :; do
2261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main (void)
2266 {
2267 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 test_array [0] = 0;
2269 return test_array [0];
2270
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"
2276 then :
2277   ac_lo=$ac_mid; break
2278 else $as_nop
2279   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2280                         if test $ac_mid -le $ac_hi; then
2281                           ac_lo= ac_hi=
2282                           break
2283                         fi
2284                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2287   done
2288 else $as_nop
2289   ac_lo= ac_hi=
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 # Binary search between lo and hi bounds.
2295 while test "x$ac_lo" != "x$ac_hi"; do
2296   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h.  */
2299 $4
2300 int
2301 main (void)
2302 {
2303 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2304 test_array [0] = 0;
2305 return test_array [0];
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"
2312 then :
2313   ac_hi=$ac_mid
2314 else $as_nop
2315   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2318 done
2319 case $ac_lo in #((
2320 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2321 '') ac_retval=1 ;;
2322 esac
2323   else
2324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h.  */
2326 $4
2327 static long int longval (void) { return $2; }
2328 static unsigned long int ulongval (void) { return $2; }
2329 #include <stdio.h>
2330 #include <stdlib.h>
2331 int
2332 main (void)
2333 {
2334
2335   FILE *f = fopen ("conftest.val", "w");
2336   if (! f)
2337     return 1;
2338   if (($2) < 0)
2339     {
2340       long int i = longval ();
2341       if (i != ($2))
2342         return 1;
2343       fprintf (f, "%ld", i);
2344     }
2345   else
2346     {
2347       unsigned long int i = ulongval ();
2348       if (i != ($2))
2349         return 1;
2350       fprintf (f, "%lu", i);
2351     }
2352   /* Do not output a trailing newline, as this causes \r\n confusion
2353      on some platforms.  */
2354   return ferror (f) || fclose (f) != 0;
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_run "$LINENO"
2361 then :
2362   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2363 else $as_nop
2364   ac_retval=1
2365 fi
2366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2367   conftest.$ac_objext conftest.beam conftest.$ac_ext
2368 rm -f conftest.val
2369
2370   fi
2371   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372   as_fn_set_status $ac_retval
2373
2374 } # ac_fn_c_compute_int
2375
2376 # ac_fn_cxx_try_compile LINENO
2377 # ----------------------------
2378 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_cxx_try_compile ()
2380 {
2381   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382   rm -f conftest.$ac_objext conftest.beam
2383   if { { ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 printf "%s\n" "$ac_try_echo"; } >&5
2390   (eval "$ac_compile") 2>conftest.err
2391   ac_status=$?
2392   if test -s conftest.err; then
2393     grep -v '^ *+' conftest.err >conftest.er1
2394     cat conftest.er1 >&5
2395     mv -f conftest.er1 conftest.err
2396   fi
2397   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398   test $ac_status = 0; } && {
2399          test -z "$ac_cxx_werror_flag" ||
2400          test ! -s conftest.err
2401        } && test -s conftest.$ac_objext
2402 then :
2403   ac_retval=0
2404 else $as_nop
2405   printf "%s\n" "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408         ac_retval=1
2409 fi
2410   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411   as_fn_set_status $ac_retval
2412
2413 } # ac_fn_cxx_try_compile
2414 ac_configure_args_raw=
2415 for ac_arg
2416 do
2417   case $ac_arg in
2418   *\'*)
2419     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2420   esac
2421   as_fn_append ac_configure_args_raw " '$ac_arg'"
2422 done
2423
2424 case $ac_configure_args_raw in
2425   *$as_nl*)
2426     ac_safe_unquote= ;;
2427   *)
2428     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2429     ac_unsafe_a="$ac_unsafe_z#~"
2430     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2431     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2432 esac
2433
2434 cat >config.log <<_ACEOF
2435 This file contains any messages produced by compilers while
2436 running configure, to aid debugging if configure makes a mistake.
2437
2438 It was created by $as_me, which was
2439 generated by GNU Autoconf 2.71.  Invocation command line was
2440
2441   $ $0$ac_configure_args_raw
2442
2443 _ACEOF
2444 exec 5>>config.log
2445 {
2446 cat <<_ASUNAME
2447 ## --------- ##
2448 ## Platform. ##
2449 ## --------- ##
2450
2451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456
2457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2458 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2459
2460 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2461 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2463 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2464 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2465 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2466 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2467
2468 _ASUNAME
2469
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   case $as_dir in #(((
2475     '') as_dir=./ ;;
2476     */) ;;
2477     *) as_dir=$as_dir/ ;;
2478   esac
2479     printf "%s\n" "PATH: $as_dir"
2480   done
2481 IFS=$as_save_IFS
2482
2483 } >&5
2484
2485 cat >&5 <<_ACEOF
2486
2487
2488 ## ----------- ##
2489 ## Core tests. ##
2490 ## ----------- ##
2491
2492 _ACEOF
2493
2494
2495 # Keep a trace of the command line.
2496 # Strip out --no-create and --no-recursion so they do not pile up.
2497 # Strip out --silent because we don't want to record it for future runs.
2498 # Also quote any args containing shell meta-characters.
2499 # Make two passes to allow for proper duplicate-argument suppression.
2500 ac_configure_args=
2501 ac_configure_args0=
2502 ac_configure_args1=
2503 ac_must_keep_next=false
2504 for ac_pass in 1 2
2505 do
2506   for ac_arg
2507   do
2508     case $ac_arg in
2509     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2510     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2511     | -silent | --silent | --silen | --sile | --sil)
2512       continue ;;
2513     *\'*)
2514       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2515     esac
2516     case $ac_pass in
2517     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2518     2)
2519       as_fn_append ac_configure_args1 " '$ac_arg'"
2520       if test $ac_must_keep_next = true; then
2521         ac_must_keep_next=false # Got value, back to normal.
2522       else
2523         case $ac_arg in
2524           *=* | --config-cache | -C | -disable-* | --disable-* \
2525           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2526           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2527           | -with-* | --with-* | -without-* | --without-* | --x)
2528             case "$ac_configure_args0 " in
2529               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2530             esac
2531             ;;
2532           -* ) ac_must_keep_next=true ;;
2533         esac
2534       fi
2535       as_fn_append ac_configure_args " '$ac_arg'"
2536       ;;
2537     esac
2538   done
2539 done
2540 { ac_configure_args0=; unset ac_configure_args0;}
2541 { ac_configure_args1=; unset ac_configure_args1;}
2542
2543 # When interrupted or exit'd, cleanup temporary files, and complete
2544 # config.log.  We remove comments because anyway the quotes in there
2545 # would cause problems or look ugly.
2546 # WARNING: Use '\'' to represent an apostrophe within the trap.
2547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2548 trap 'exit_status=$?
2549   # Sanitize IFS.
2550   IFS=" ""      $as_nl"
2551   # Save into config.log some information that might help in debugging.
2552   {
2553     echo
2554
2555     printf "%s\n" "## ---------------- ##
2556 ## Cache variables. ##
2557 ## ---------------- ##"
2558     echo
2559     # The following way of writing the cache mishandles newlines in values,
2560 (
2561   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2562     eval ac_val=\$$ac_var
2563     case $ac_val in #(
2564     *${as_nl}*)
2565       case $ac_var in #(
2566       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2567 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2568       esac
2569       case $ac_var in #(
2570       _ | IFS | as_nl) ;; #(
2571       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2572       *) { eval $ac_var=; unset $ac_var;} ;;
2573       esac ;;
2574     esac
2575   done
2576   (set) 2>&1 |
2577     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2578     *${as_nl}ac_space=\ *)
2579       sed -n \
2580         "s/'\''/'\''\\\\'\'''\''/g;
2581           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2582       ;; #(
2583     *)
2584       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2585       ;;
2586     esac |
2587     sort
2588 )
2589     echo
2590
2591     printf "%s\n" "## ----------------- ##
2592 ## Output variables. ##
2593 ## ----------------- ##"
2594     echo
2595     for ac_var in $ac_subst_vars
2596     do
2597       eval ac_val=\$$ac_var
2598       case $ac_val in
2599       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600       esac
2601       printf "%s\n" "$ac_var='\''$ac_val'\''"
2602     done | sort
2603     echo
2604
2605     if test -n "$ac_subst_files"; then
2606       printf "%s\n" "## ------------------- ##
2607 ## File substitutions. ##
2608 ## ------------------- ##"
2609       echo
2610       for ac_var in $ac_subst_files
2611       do
2612         eval ac_val=\$$ac_var
2613         case $ac_val in
2614         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615         esac
2616         printf "%s\n" "$ac_var='\''$ac_val'\''"
2617       done | sort
2618       echo
2619     fi
2620
2621     if test -s confdefs.h; then
2622       printf "%s\n" "## ----------- ##
2623 ## confdefs.h. ##
2624 ## ----------- ##"
2625       echo
2626       cat confdefs.h
2627       echo
2628     fi
2629     test "$ac_signal" != 0 &&
2630       printf "%s\n" "$as_me: caught signal $ac_signal"
2631     printf "%s\n" "$as_me: exit $exit_status"
2632   } >&5
2633   rm -f core *.core core.conftest.* &&
2634     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2635     exit $exit_status
2636 ' 0
2637 for ac_signal in 1 2 13 15; do
2638   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2639 done
2640 ac_signal=0
2641
2642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2643 rm -f -r conftest* confdefs.h
2644
2645 printf "%s\n" "/* confdefs.h */" > confdefs.h
2646
2647 # Predefined preprocessor variables.
2648
2649 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2650
2651 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2652
2653 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2654
2655 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2656
2657 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2658
2659 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2660
2661
2662 # Let the site file select an alternate cache file if it wants to.
2663 # Prefer an explicitly selected file to automatically selected ones.
2664 if test -n "$CONFIG_SITE"; then
2665   ac_site_files="$CONFIG_SITE"
2666 elif test "x$prefix" != xNONE; then
2667   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2668 else
2669   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2670 fi
2671
2672 for ac_site_file in $ac_site_files
2673 do
2674   case $ac_site_file in #(
2675   */*) :
2676      ;; #(
2677   *) :
2678     ac_site_file=./$ac_site_file ;;
2679 esac
2680   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2681     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2682 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2683     sed 's/^/| /' "$ac_site_file" >&5
2684     . "$ac_site_file" \
2685       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2687 as_fn_error $? "failed to load site script $ac_site_file
2688 See \`config.log' for more details" "$LINENO" 5; }
2689   fi
2690 done
2691
2692 if test -r "$cache_file"; then
2693   # Some versions of bash will fail to source /dev/null (special files
2694   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2695   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2696     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2697 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2698     case $cache_file in
2699       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2700       *)                      . "./$cache_file";;
2701     esac
2702   fi
2703 else
2704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2705 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2706   >$cache_file
2707 fi
2708
2709 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2710 # Test code for whether the C compiler supports C89 (global declarations)
2711 ac_c_conftest_c89_globals='
2712 /* Does the compiler advertise C89 conformance?
2713    Do not test the value of __STDC__, because some compilers set it to 0
2714    while being otherwise adequately conformant. */
2715 #if !defined __STDC__
2716 # error "Compiler does not advertise C89 conformance"
2717 #endif
2718
2719 #include <stddef.h>
2720 #include <stdarg.h>
2721 struct stat;
2722 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2723 struct buf { int x; };
2724 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726      char **p;
2727      int i;
2728 {
2729   return p[i];
2730 }
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2732 {
2733   char *s;
2734   va_list v;
2735   va_start (v,p);
2736   s = g (p, va_arg (v,int));
2737   va_end (v);
2738   return s;
2739 }
2740
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2742    function prototypes and stuff, but not \xHH hex character constants.
2743    These do not provoke an error unfortunately, instead are silently treated
2744    as an "x".  The following induces an error, until -std is added to get
2745    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2746    array size at least.  It is necessary to write \x00 == 0 to get something
2747    that is true only with -std.  */
2748 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2749
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751    inside strings and character constants.  */
2752 #define FOO(x) '\''x'\''
2753 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2759                int, int);'
2760
2761 # Test code for whether the C compiler supports C89 (body of main).
2762 ac_c_conftest_c89_main='
2763 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2764 '
2765
2766 # Test code for whether the C compiler supports C99 (global declarations)
2767 ac_c_conftest_c99_globals='
2768 // Does the compiler advertise C99 conformance?
2769 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2770 # error "Compiler does not advertise C99 conformance"
2771 #endif
2772
2773 #include <stdbool.h>
2774 extern int puts (const char *);
2775 extern int printf (const char *, ...);
2776 extern int dprintf (int, const char *, ...);
2777 extern void *malloc (size_t);
2778
2779 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2780 // dprintf is used instead of fprintf to avoid needing to declare
2781 // FILE and stderr.
2782 #define debug(...) dprintf (2, __VA_ARGS__)
2783 #define showlist(...) puts (#__VA_ARGS__)
2784 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2785 static void
2786 test_varargs_macros (void)
2787 {
2788   int x = 1234;
2789   int y = 5678;
2790   debug ("Flag");
2791   debug ("X = %d\n", x);
2792   showlist (The first, second, and third items.);
2793   report (x>y, "x is %d but y is %d", x, y);
2794 }
2795
2796 // Check long long types.
2797 #define BIG64 18446744073709551615ull
2798 #define BIG32 4294967295ul
2799 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2800 #if !BIG_OK
2801   #error "your preprocessor is broken"
2802 #endif
2803 #if BIG_OK
2804 #else
2805   #error "your preprocessor is broken"
2806 #endif
2807 static long long int bignum = -9223372036854775807LL;
2808 static unsigned long long int ubignum = BIG64;
2809
2810 struct incomplete_array
2811 {
2812   int datasize;
2813   double data[];
2814 };
2815
2816 struct named_init {
2817   int number;
2818   const wchar_t *name;
2819   double average;
2820 };
2821
2822 typedef const char *ccp;
2823
2824 static inline int
2825 test_restrict (ccp restrict text)
2826 {
2827   // See if C++-style comments work.
2828   // Iterate through items via the restricted pointer.
2829   // Also check for declarations in for loops.
2830   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2831     continue;
2832   return 0;
2833 }
2834
2835 // Check varargs and va_copy.
2836 static bool
2837 test_varargs (const char *format, ...)
2838 {
2839   va_list args;
2840   va_start (args, format);
2841   va_list args_copy;
2842   va_copy (args_copy, args);
2843
2844   const char *str = "";
2845   int number = 0;
2846   float fnumber = 0;
2847
2848   while (*format)
2849     {
2850       switch (*format++)
2851         {
2852         case '\''s'\'': // string
2853           str = va_arg (args_copy, const char *);
2854           break;
2855         case '\''d'\'': // int
2856           number = va_arg (args_copy, int);
2857           break;
2858         case '\''f'\'': // float
2859           fnumber = va_arg (args_copy, double);
2860           break;
2861         default:
2862           break;
2863         }
2864     }
2865   va_end (args_copy);
2866   va_end (args);
2867
2868   return *str && number && fnumber;
2869 }
2870 '
2871
2872 # Test code for whether the C compiler supports C99 (body of main).
2873 ac_c_conftest_c99_main='
2874   // Check bool.
2875   _Bool success = false;
2876   success |= (argc != 0);
2877
2878   // Check restrict.
2879   if (test_restrict ("String literal") == 0)
2880     success = true;
2881   char *restrict newvar = "Another string";
2882
2883   // Check varargs.
2884   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2885   test_varargs_macros ();
2886
2887   // Check flexible array members.
2888   struct incomplete_array *ia =
2889     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2890   ia->datasize = 10;
2891   for (int i = 0; i < ia->datasize; ++i)
2892     ia->data[i] = i * 1.234;
2893
2894   // Check named initializers.
2895   struct named_init ni = {
2896     .number = 34,
2897     .name = L"Test wide string",
2898     .average = 543.34343,
2899   };
2900
2901   ni.number = 58;
2902
2903   int dynamic_array[ni.number];
2904   dynamic_array[0] = argv[0][0];
2905   dynamic_array[ni.number - 1] = 543;
2906
2907   // work around unused variable warnings
2908   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2909          || dynamic_array[ni.number - 1] != 543);
2910 '
2911
2912 # Test code for whether the C compiler supports C11 (global declarations)
2913 ac_c_conftest_c11_globals='
2914 // Does the compiler advertise C11 conformance?
2915 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2916 # error "Compiler does not advertise C11 conformance"
2917 #endif
2918
2919 // Check _Alignas.
2920 char _Alignas (double) aligned_as_double;
2921 char _Alignas (0) no_special_alignment;
2922 extern char aligned_as_int;
2923 char _Alignas (0) _Alignas (int) aligned_as_int;
2924
2925 // Check _Alignof.
2926 enum
2927 {
2928   int_alignment = _Alignof (int),
2929   int_array_alignment = _Alignof (int[100]),
2930   char_alignment = _Alignof (char)
2931 };
2932 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2933
2934 // Check _Noreturn.
2935 int _Noreturn does_not_return (void) { for (;;) continue; }
2936
2937 // Check _Static_assert.
2938 struct test_static_assert
2939 {
2940   int x;
2941   _Static_assert (sizeof (int) <= sizeof (long int),
2942                   "_Static_assert does not work in struct");
2943   long int y;
2944 };
2945
2946 // Check UTF-8 literals.
2947 #define u8 syntax error!
2948 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2949
2950 // Check duplicate typedefs.
2951 typedef long *long_ptr;
2952 typedef long int *long_ptr;
2953 typedef long_ptr long_ptr;
2954
2955 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2956 struct anonymous
2957 {
2958   union {
2959     struct { int i; int j; };
2960     struct { int k; long int l; } w;
2961   };
2962   int m;
2963 } v1;
2964 '
2965
2966 # Test code for whether the C compiler supports C11 (body of main).
2967 ac_c_conftest_c11_main='
2968   _Static_assert ((offsetof (struct anonymous, i)
2969                    == offsetof (struct anonymous, w.k)),
2970                   "Anonymous union alignment botch");
2971   v1.i = 2;
2972   v1.w.k = 5;
2973   ok |= v1.i != 5;
2974 '
2975
2976 # Test code for whether the C compiler supports C11 (complete).
2977 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2978 ${ac_c_conftest_c99_globals}
2979 ${ac_c_conftest_c11_globals}
2980
2981 int
2982 main (int argc, char **argv)
2983 {
2984   int ok = 0;
2985   ${ac_c_conftest_c89_main}
2986   ${ac_c_conftest_c99_main}
2987   ${ac_c_conftest_c11_main}
2988   return ok;
2989 }
2990 "
2991
2992 # Test code for whether the C compiler supports C99 (complete).
2993 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2994 ${ac_c_conftest_c99_globals}
2995
2996 int
2997 main (int argc, char **argv)
2998 {
2999   int ok = 0;
3000   ${ac_c_conftest_c89_main}
3001   ${ac_c_conftest_c99_main}
3002   return ok;
3003 }
3004 "
3005
3006 # Test code for whether the C compiler supports C89 (complete).
3007 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3008
3009 int
3010 main (int argc, char **argv)
3011 {
3012   int ok = 0;
3013   ${ac_c_conftest_c89_main}
3014   return ok;
3015 }
3016 "
3017
3018 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3019 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3020 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3021 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3022 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3023 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3024 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3025 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3026 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3027 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3028 gt_needs="$gt_needs "
3029 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3030 # Test code for whether the C++ compiler supports C++98 (global declarations)
3031 ac_cxx_conftest_cxx98_globals='
3032 // Does the compiler advertise C++98 conformance?
3033 #if !defined __cplusplus || __cplusplus < 199711L
3034 # error "Compiler does not advertise C++98 conformance"
3035 #endif
3036
3037 // These inclusions are to reject old compilers that
3038 // lack the unsuffixed header files.
3039 #include <cstdlib>
3040 #include <exception>
3041
3042 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3043 extern void assert (int);
3044 namespace std {
3045   extern int strcmp (const char *, const char *);
3046 }
3047
3048 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3049 using std::exception;
3050 using std::strcmp;
3051
3052 namespace {
3053
3054 void test_exception_syntax()
3055 {
3056   try {
3057     throw "test";
3058   } catch (const char *s) {
3059     // Extra parentheses suppress a warning when building autoconf itself,
3060     // due to lint rules shared with more typical C programs.
3061     assert (!(strcmp) (s, "test"));
3062   }
3063 }
3064
3065 template <typename T> struct test_template
3066 {
3067   T const val;
3068   explicit test_template(T t) : val(t) {}
3069   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3070 };
3071
3072 } // anonymous namespace
3073 '
3074
3075 # Test code for whether the C++ compiler supports C++98 (body of main)
3076 ac_cxx_conftest_cxx98_main='
3077   assert (argc);
3078   assert (! argv[0]);
3079 {
3080   test_exception_syntax ();
3081   test_template<double> tt (2.0);
3082   assert (tt.add (4) == 6.0);
3083   assert (true && !false);
3084 }
3085 '
3086
3087 # Test code for whether the C++ compiler supports C++11 (global declarations)
3088 ac_cxx_conftest_cxx11_globals='
3089 // Does the compiler advertise C++ 2011 conformance?
3090 #if !defined __cplusplus || __cplusplus < 201103L
3091 # error "Compiler does not advertise C++11 conformance"
3092 #endif
3093
3094 namespace cxx11test
3095 {
3096   constexpr int get_val() { return 20; }
3097
3098   struct testinit
3099   {
3100     int i;
3101     double d;
3102   };
3103
3104   class delegate
3105   {
3106   public:
3107     delegate(int n) : n(n) {}
3108     delegate(): delegate(2354) {}
3109
3110     virtual int getval() { return this->n; };
3111   protected:
3112     int n;
3113   };
3114
3115   class overridden : public delegate
3116   {
3117   public:
3118     overridden(int n): delegate(n) {}
3119     virtual int getval() override final { return this->n * 2; }
3120   };
3121
3122   class nocopy
3123   {
3124   public:
3125     nocopy(int i): i(i) {}
3126     nocopy() = default;
3127     nocopy(const nocopy&) = delete;
3128     nocopy & operator=(const nocopy&) = delete;
3129   private:
3130     int i;
3131   };
3132
3133   // for testing lambda expressions
3134   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3135   {
3136     return f(v);
3137   }
3138
3139   // for testing variadic templates and trailing return types
3140   template <typename V> auto sum(V first) -> V
3141   {
3142     return first;
3143   }
3144   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3145   {
3146     return first + sum(rest...);
3147   }
3148 }
3149 '
3150
3151 # Test code for whether the C++ compiler supports C++11 (body of main)
3152 ac_cxx_conftest_cxx11_main='
3153 {
3154   // Test auto and decltype
3155   auto a1 = 6538;
3156   auto a2 = 48573953.4;
3157   auto a3 = "String literal";
3158
3159   int total = 0;
3160   for (auto i = a3; *i; ++i) { total += *i; }
3161
3162   decltype(a2) a4 = 34895.034;
3163 }
3164 {
3165   // Test constexpr
3166   short sa[cxx11test::get_val()] = { 0 };
3167 }
3168 {
3169   // Test initializer lists
3170   cxx11test::testinit il = { 4323, 435234.23544 };
3171 }
3172 {
3173   // Test range-based for
3174   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3175                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3176   for (auto &x : array) { x += 23; }
3177 }
3178 {
3179   // Test lambda expressions
3180   using cxx11test::eval;
3181   assert (eval ([](int x) { return x*2; }, 21) == 42);
3182   double d = 2.0;
3183   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3184   assert (d == 5.0);
3185   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3186   assert (d == 5.0);
3187 }
3188 {
3189   // Test use of variadic templates
3190   using cxx11test::sum;
3191   auto a = sum(1);
3192   auto b = sum(1, 2);
3193   auto c = sum(1.0, 2.0, 3.0);
3194 }
3195 {
3196   // Test constructor delegation
3197   cxx11test::delegate d1;
3198   cxx11test::delegate d2();
3199   cxx11test::delegate d3(45);
3200 }
3201 {
3202   // Test override and final
3203   cxx11test::overridden o1(55464);
3204 }
3205 {
3206   // Test nullptr
3207   char *c = nullptr;
3208 }
3209 {
3210   // Test template brackets
3211   test_template<::test_template<int>> v(test_template<int>(12));
3212 }
3213 {
3214   // Unicode literals
3215   char const *utf8 = u8"UTF-8 string \u2500";
3216   char16_t const *utf16 = u"UTF-8 string \u2500";
3217   char32_t const *utf32 = U"UTF-32 string \u2500";
3218 }
3219 '
3220
3221 # Test code for whether the C compiler supports C++11 (complete).
3222 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3223 ${ac_cxx_conftest_cxx11_globals}
3224
3225 int
3226 main (int argc, char **argv)
3227 {
3228   int ok = 0;
3229   ${ac_cxx_conftest_cxx98_main}
3230   ${ac_cxx_conftest_cxx11_main}
3231   return ok;
3232 }
3233 "
3234
3235 # Test code for whether the C compiler supports C++98 (complete).
3236 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3237 int
3238 main (int argc, char **argv)
3239 {
3240   int ok = 0;
3241   ${ac_cxx_conftest_cxx98_main}
3242   return ok;
3243 }
3244 "
3245
3246
3247 # Auxiliary files required by this configure script.
3248 ac_aux_files="config.rpath install-sh config.guess config.sub"
3249
3250 # Locations in which to look for auxiliary files.
3251 ac_aux_dir_candidates="${srcdir}/config"
3252
3253 # Search for a directory containing all of the required auxiliary files,
3254 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3255 # If we don't find one directory that contains all the files we need,
3256 # we report the set of missing files from the *first* directory in
3257 # $ac_aux_dir_candidates and give up.
3258 ac_missing_aux_files=""
3259 ac_first_candidate=:
3260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 as_found=false
3263 for as_dir in $ac_aux_dir_candidates
3264 do
3265   IFS=$as_save_IFS
3266   case $as_dir in #(((
3267     '') as_dir=./ ;;
3268     */) ;;
3269     *) as_dir=$as_dir/ ;;
3270   esac
3271   as_found=:
3272
3273   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3274   ac_aux_dir_found=yes
3275   ac_install_sh=
3276   for ac_aux in $ac_aux_files
3277   do
3278     # As a special case, if "install-sh" is required, that requirement
3279     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3280     # and $ac_install_sh is set appropriately for whichever one is found.
3281     if test x"$ac_aux" = x"install-sh"
3282     then
3283       if test -f "${as_dir}install-sh"; then
3284         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3285         ac_install_sh="${as_dir}install-sh -c"
3286       elif test -f "${as_dir}install.sh"; then
3287         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3288         ac_install_sh="${as_dir}install.sh -c"
3289       elif test -f "${as_dir}shtool"; then
3290         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3291         ac_install_sh="${as_dir}shtool install -c"
3292       else
3293         ac_aux_dir_found=no
3294         if $ac_first_candidate; then
3295           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3296         else
3297           break
3298         fi
3299       fi
3300     else
3301       if test -f "${as_dir}${ac_aux}"; then
3302         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3303       else
3304         ac_aux_dir_found=no
3305         if $ac_first_candidate; then
3306           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3307         else
3308           break
3309         fi
3310       fi
3311     fi
3312   done
3313   if test "$ac_aux_dir_found" = yes; then
3314     ac_aux_dir="$as_dir"
3315     break
3316   fi
3317   ac_first_candidate=false
3318
3319   as_found=false
3320 done
3321 IFS=$as_save_IFS
3322 if $as_found
3323 then :
3324
3325 else $as_nop
3326   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3327 fi
3328
3329
3330 # These three variables are undocumented and unsupported,
3331 # and are intended to be withdrawn in a future Autoconf release.
3332 # They can cause serious problems if a builder's source tree is in a directory
3333 # whose full name contains unusual characters.
3334 if test -f "${ac_aux_dir}config.guess"; then
3335   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3336 fi
3337 if test -f "${ac_aux_dir}config.sub"; then
3338   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3339 fi
3340 if test -f "$ac_aux_dir/configure"; then
3341   ac_configure="$SHELL ${ac_aux_dir}configure"
3342 fi
3343
3344 # Check that the precious variables saved in the cache have kept the same
3345 # value.
3346 ac_cache_corrupted=false
3347 for ac_var in $ac_precious_vars; do
3348   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3349   eval ac_new_set=\$ac_env_${ac_var}_set
3350   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3351   eval ac_new_val=\$ac_env_${ac_var}_value
3352   case $ac_old_set,$ac_new_set in
3353     set,)
3354       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3355 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3356       ac_cache_corrupted=: ;;
3357     ,set)
3358       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3359 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3360       ac_cache_corrupted=: ;;
3361     ,);;
3362     *)
3363       if test "x$ac_old_val" != "x$ac_new_val"; then
3364         # differences in whitespace do not lead to failure.
3365         ac_old_val_w=`echo x $ac_old_val`
3366         ac_new_val_w=`echo x $ac_new_val`
3367         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3368           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3369 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3370           ac_cache_corrupted=:
3371         else
3372           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3373 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3374           eval $ac_var=\$ac_old_val
3375         fi
3376         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3377 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3378         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3379 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3380       fi;;
3381   esac
3382   # Pass precious variables to config.status.
3383   if test "$ac_new_set" = set; then
3384     case $ac_new_val in
3385     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3386     *) ac_arg=$ac_var=$ac_new_val ;;
3387     esac
3388     case " $ac_configure_args " in
3389       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3390       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3391     esac
3392   fi
3393 done
3394 if $ac_cache_corrupted; then
3395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3398 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3399   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3400             and start over" "$LINENO" 5
3401 fi
3402 ## -------------------- ##
3403 ## Main body of script. ##
3404 ## -------------------- ##
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412
3413
3414
3415
3416 ac_config_headers="$ac_config_headers lib/config.h"
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 if test -n "$ac_tool_prefix"; then
3434   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_CC+y}
3439 then :
3440   printf %s "(cached) " >&6
3441 else $as_nop
3442   if test -n "$CC"; then
3443   ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448   IFS=$as_save_IFS
3449   case $as_dir in #(((
3450     '') as_dir=./ ;;
3451     */) ;;
3452     *) as_dir=$as_dir/ ;;
3453   esac
3454     for ac_exec_ext in '' $ac_executable_extensions; do
3455   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461   done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 printf "%s\n" "$CC" >&6; }
3470 else
3471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3473 fi
3474
3475
3476 fi
3477 if test -z "$ac_cv_prog_CC"; then
3478   ac_ct_CC=$CC
3479   # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 printf %s "checking for $ac_word... " >&6; }
3483 if test ${ac_cv_prog_ac_ct_CC+y}
3484 then :
3485   printf %s "(cached) " >&6
3486 else $as_nop
3487   if test -n "$ac_ct_CC"; then
3488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493   IFS=$as_save_IFS
3494   case $as_dir in #(((
3495     '') as_dir=./ ;;
3496     */) ;;
3497     *) as_dir=$as_dir/ ;;
3498   esac
3499     for ac_exec_ext in '' $ac_executable_extensions; do
3500   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3501     ac_cv_prog_ac_ct_CC="gcc"
3502     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506   done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 printf "%s\n" "$ac_ct_CC" >&6; }
3515 else
3516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 printf "%s\n" "no" >&6; }
3518 fi
3519
3520   if test "x$ac_ct_CC" = x; then
3521     CC=""
3522   else
3523     case $cross_compiling:$ac_tool_warned in
3524 yes:)
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529     CC=$ac_ct_CC
3530   fi
3531 else
3532   CC="$ac_cv_prog_CC"
3533 fi
3534
3535 if test -z "$CC"; then
3536           if test -n "$ac_tool_prefix"; then
3537     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}cc; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3542 then :
3543   printf %s "(cached) " >&6
3544 else $as_nop
3545   if test -n "$CC"; then
3546   ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   case $as_dir in #(((
3553     '') as_dir=./ ;;
3554     */) ;;
3555     *) as_dir=$as_dir/ ;;
3556   esac
3557     for ac_exec_ext in '' $ac_executable_extensions; do
3558   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559     ac_cv_prog_CC="${ac_tool_prefix}cc"
3560     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564   done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3573 else
3574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578
3579   fi
3580 fi
3581 if test -z "$CC"; then
3582   # Extract the first word of "cc", so it can be a program name with args.
3583 set dummy cc; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588   printf %s "(cached) " >&6
3589 else $as_nop
3590   if test -n "$CC"; then
3591   ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593   ac_prog_rejected=no
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   case $as_dir in #(((
3599     '') as_dir=./ ;;
3600     */) ;;
3601     *) as_dir=$as_dir/ ;;
3602   esac
3603     for ac_exec_ext in '' $ac_executable_extensions; do
3604   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606        ac_prog_rejected=yes
3607        continue
3608      fi
3609     ac_cv_prog_CC="cc"
3610     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 if test $ac_prog_rejected = yes; then
3618   # We found a bogon in the path, so make sure we never use it.
3619   set dummy $ac_cv_prog_CC
3620   shift
3621   if test $# != 0; then
3622     # We chose a different compiler from the bogus one.
3623     # However, it has the same basename, so the bogon will be chosen
3624     # first if we set CC to just the basename; use the full file name.
3625     shift
3626     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3627   fi
3628 fi
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 printf "%s\n" "$CC" >&6; }
3635 else
3636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3638 fi
3639
3640
3641 fi
3642 if test -z "$CC"; then
3643   if test -n "$ac_tool_prefix"; then
3644   for ac_prog in cl.exe
3645   do
3646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_CC+y}
3651 then :
3652   printf %s "(cached) " >&6
3653 else $as_nop
3654   if test -n "$CC"; then
3655   ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660   IFS=$as_save_IFS
3661   case $as_dir in #(((
3662     '') as_dir=./ ;;
3663     */) ;;
3664     *) as_dir=$as_dir/ ;;
3665   esac
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673   done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3682 else
3683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688     test -n "$CC" && break
3689   done
3690 fi
3691 if test -z "$CC"; then
3692   ac_ct_CC=$CC
3693   for ac_prog in cl.exe
3694 do
3695   # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_ac_ct_CC+y}
3700 then :
3701   printf %s "(cached) " >&6
3702 else $as_nop
3703   if test -n "$ac_ct_CC"; then
3704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   case $as_dir in #(((
3711     '') as_dir=./ ;;
3712     */) ;;
3713     *) as_dir=$as_dir/ ;;
3714   esac
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_ac_ct_CC="$ac_prog"
3718     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728 if test -n "$ac_ct_CC"; then
3729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730 printf "%s\n" "$ac_ct_CC" >&6; }
3731 else
3732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3734 fi
3735
3736
3737   test -n "$ac_ct_CC" && break
3738 done
3739
3740   if test "x$ac_ct_CC" = x; then
3741     CC=""
3742   else
3743     case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749     CC=$ac_ct_CC
3750   fi
3751 fi
3752
3753 fi
3754 if test -z "$CC"; then
3755   if test -n "$ac_tool_prefix"; then
3756   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}clang; ac_word=$2
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 printf %s "checking for $ac_word... " >&6; }
3760 if test ${ac_cv_prog_CC+y}
3761 then :
3762   printf %s "(cached) " >&6
3763 else $as_nop
3764   if test -n "$CC"; then
3765   ac_cv_prog_CC="$CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   case $as_dir in #(((
3772     '') as_dir=./ ;;
3773     */) ;;
3774     *) as_dir=$as_dir/ ;;
3775   esac
3776     for ac_exec_ext in '' $ac_executable_extensions; do
3777   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778     ac_cv_prog_CC="${ac_tool_prefix}clang"
3779     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783   done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 printf "%s\n" "$CC" >&6; }
3792 else
3793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 printf "%s\n" "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 if test -z "$ac_cv_prog_CC"; then
3800   ac_ct_CC=$CC
3801   # Extract the first word of "clang", so it can be a program name with args.
3802 set dummy clang; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_ac_ct_CC+y}
3806 then :
3807   printf %s "(cached) " >&6
3808 else $as_nop
3809   if test -n "$ac_ct_CC"; then
3810   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   case $as_dir in #(((
3817     '') as_dir=./ ;;
3818     */) ;;
3819     *) as_dir=$as_dir/ ;;
3820   esac
3821     for ac_exec_ext in '' $ac_executable_extensions; do
3822   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823     ac_cv_prog_ac_ct_CC="clang"
3824     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828   done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 printf "%s\n" "$ac_ct_CC" >&6; }
3837 else
3838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842   if test "x$ac_ct_CC" = x; then
3843     CC=""
3844   else
3845     case $cross_compiling:$ac_tool_warned in
3846 yes:)
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3850 esac
3851     CC=$ac_ct_CC
3852   fi
3853 else
3854   CC="$ac_cv_prog_CC"
3855 fi
3856
3857 fi
3858
3859
3860 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "no acceptable C compiler found in \$PATH
3863 See \`config.log' for more details" "$LINENO" 5; }
3864
3865 # Provide some information about the compiler.
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3867 set X $ac_compile
3868 ac_compiler=$2
3869 for ac_option in --version -v -V -qversion -version; do
3870   { { ac_try="$ac_compiler $ac_option >&5"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3878   ac_status=$?
3879   if test -s conftest.err; then
3880     sed '10a\
3881 ... rest of stderr output deleted ...
3882          10q' conftest.err >conftest.er1
3883     cat conftest.er1 >&5
3884   fi
3885   rm -f conftest.er1 conftest.err
3886   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887   test $ac_status = 0; }
3888 done
3889
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main (void)
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 ac_clean_files_save=$ac_clean_files
3902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3903 # Try to create an executable without -o first, disregard a.out.
3904 # It will help us diagnose broken compilers, and finding out an intuition
3905 # of exeext.
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 printf %s "checking whether the C compiler works... " >&6; }
3908 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3909
3910 # The possible output files:
3911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3912
3913 ac_rmfiles=
3914 for ac_file in $ac_files
3915 do
3916   case $ac_file in
3917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3918     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3919   esac
3920 done
3921 rm -f $ac_rmfiles
3922
3923 if { { ac_try="$ac_link_default"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 printf "%s\n" "$ac_try_echo"; } >&5
3930   (eval "$ac_link_default") 2>&5
3931   ac_status=$?
3932   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933   test $ac_status = 0; }
3934 then :
3935   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3937 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3938 # so that the user can short-circuit this test for compilers unknown to
3939 # Autoconf.
3940 for ac_file in $ac_files ''
3941 do
3942   test -f "$ac_file" || continue
3943   case $ac_file in
3944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3945         ;;
3946     [ab].out )
3947         # We found the default executable, but exeext='' is most
3948         # certainly right.
3949         break;;
3950     *.* )
3951         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3952         then :; else
3953            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954         fi
3955         # We set ac_cv_exeext here because the later test for it is not
3956         # safe: cross compilers may not add the suffix if given an `-o'
3957         # argument, so we may need to know it at that point already.
3958         # Even if this section looks crufty: it has the advantage of
3959         # actually working.
3960         break;;
3961     * )
3962         break;;
3963   esac
3964 done
3965 test "$ac_cv_exeext" = no && ac_cv_exeext=
3966
3967 else $as_nop
3968   ac_file=''
3969 fi
3970 if test -z "$ac_file"
3971 then :
3972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 printf "%s\n" "no" >&6; }
3974 printf "%s\n" "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error 77 "C compiler cannot create executables
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 else $as_nop
3982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983 printf "%s\n" "yes" >&6; }
3984 fi
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3986 printf %s "checking for C compiler default output file name... " >&6; }
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3988 printf "%s\n" "$ac_file" >&6; }
3989 ac_exeext=$ac_cv_exeext
3990
3991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3992 ac_clean_files=$ac_clean_files_save
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 printf %s "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 printf "%s\n" "$ac_try_echo"; } >&5
4002   (eval "$ac_link") 2>&5
4003   ac_status=$?
4004   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005   test $ac_status = 0; }
4006 then :
4007   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4008 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4009 # work properly (i.e., refer to `conftest.exe'), while it won't with
4010 # `rm'.
4011 for ac_file in conftest.exe conftest conftest.*; do
4012   test -f "$ac_file" || continue
4013   case $ac_file in
4014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4015     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4016           break;;
4017     * ) break;;
4018   esac
4019 done
4020 else $as_nop
4021   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4024 See \`config.log' for more details" "$LINENO" 5; }
4025 fi
4026 rm -f conftest conftest$ac_cv_exeext
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4028 printf "%s\n" "$ac_cv_exeext" >&6; }
4029
4030 rm -f conftest.$ac_ext
4031 EXEEXT=$ac_cv_exeext
4032 ac_exeext=$EXEEXT
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035 #include <stdio.h>
4036 int
4037 main (void)
4038 {
4039 FILE *f = fopen ("conftest.out", "w");
4040  return ferror (f) || fclose (f) != 0;
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 ac_clean_files="$ac_clean_files conftest.out"
4047 # Check that the compiler produces executables we can run.  If not, either
4048 # the compiler is broken, or we cross compile.
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4050 printf %s "checking whether we are cross compiling... " >&6; }
4051 if test "$cross_compiling" != yes; then
4052   { { ac_try="$ac_link"
4053 case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 printf "%s\n" "$ac_try_echo"; } >&5
4059   (eval "$ac_link") 2>&5
4060   ac_status=$?
4061   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062   test $ac_status = 0; }
4063   if { ac_try='./conftest$ac_cv_exeext'
4064   { { case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 printf "%s\n" "$ac_try_echo"; } >&5
4070   (eval "$ac_try") 2>&5
4071   ac_status=$?
4072   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073   test $ac_status = 0; }; }; then
4074     cross_compiling=no
4075   else
4076     if test "$cross_compiling" = maybe; then
4077         cross_compiling=yes
4078     else
4079         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error 77 "cannot run C compiled programs.
4082 If you meant to cross compile, use \`--host'.
4083 See \`config.log' for more details" "$LINENO" 5; }
4084     fi
4085   fi
4086 fi
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4088 printf "%s\n" "$cross_compiling" >&6; }
4089
4090 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4091 ac_clean_files=$ac_clean_files_save
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4093 printf %s "checking for suffix of object files... " >&6; }
4094 if test ${ac_cv_objext+y}
4095 then :
4096   printf %s "(cached) " >&6
4097 else $as_nop
4098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100
4101 int
4102 main (void)
4103 {
4104
4105   ;
4106   return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.o conftest.obj
4110 if { { ac_try="$ac_compile"
4111 case "(($ac_try" in
4112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113   *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117   (eval "$ac_compile") 2>&5
4118   ac_status=$?
4119   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120   test $ac_status = 0; }
4121 then :
4122   for ac_file in conftest.o conftest.obj conftest.*; do
4123   test -f "$ac_file" || continue;
4124   case $ac_file in
4125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4126     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4127        break;;
4128   esac
4129 done
4130 else $as_nop
4131   printf "%s\n" "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "cannot compute suffix of object files: cannot compile
4137 See \`config.log' for more details" "$LINENO" 5; }
4138 fi
4139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4140 fi
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4142 printf "%s\n" "$ac_cv_objext" >&6; }
4143 OBJEXT=$ac_cv_objext
4144 ac_objext=$OBJEXT
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4146 printf %s "checking whether the compiler supports GNU C... " >&6; }
4147 if test ${ac_cv_c_compiler_gnu+y}
4148 then :
4149   printf %s "(cached) " >&6
4150 else $as_nop
4151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h.  */
4153
4154 int
4155 main (void)
4156 {
4157 #ifndef __GNUC__
4158        choke me
4159 #endif
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"
4166 then :
4167   ac_compiler_gnu=yes
4168 else $as_nop
4169   ac_compiler_gnu=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174 fi
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 if test $ac_compiler_gnu = yes; then
4180   GCC=yes
4181 else
4182   GCC=
4183 fi
4184 ac_test_CFLAGS=${CFLAGS+y}
4185 ac_save_CFLAGS=$CFLAGS
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187 printf %s "checking whether $CC accepts -g... " >&6; }
4188 if test ${ac_cv_prog_cc_g+y}
4189 then :
4190   printf %s "(cached) " >&6
4191 else $as_nop
4192   ac_save_c_werror_flag=$ac_c_werror_flag
4193    ac_c_werror_flag=yes
4194    ac_cv_prog_cc_g=no
4195    CFLAGS="-g"
4196    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198
4199 int
4200 main (void)
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209   ac_cv_prog_cc_g=yes
4210 else $as_nop
4211   CFLAGS=""
4212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h.  */
4214
4215 int
4216 main (void)
4217 {
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225
4226 else $as_nop
4227   ac_c_werror_flag=$ac_save_c_werror_flag
4228          CFLAGS="-g"
4229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main (void)
4234 {
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242   ac_cv_prog_cc_g=yes
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249    ac_c_werror_flag=$ac_save_c_werror_flag
4250 fi
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4253 if test $ac_test_CFLAGS; then
4254   CFLAGS=$ac_save_CFLAGS
4255 elif test $ac_cv_prog_cc_g = yes; then
4256   if test "$GCC" = yes; then
4257     CFLAGS="-g -O2"
4258   else
4259     CFLAGS="-g"
4260   fi
4261 else
4262   if test "$GCC" = yes; then
4263     CFLAGS="-O2"
4264   else
4265     CFLAGS=
4266   fi
4267 fi
4268 ac_prog_cc_stdc=no
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4272 printf %s "checking for $CC option to enable C11 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c11+y}
4274 then :
4275   printf %s "(cached) " >&6
4276 else $as_nop
4277   ac_cv_prog_cc_c11=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281 $ac_c_conftest_c11_program
4282 _ACEOF
4283 for ac_arg in '' -std=gnu11
4284 do
4285   CC="$ac_save_CC $ac_arg"
4286   if ac_fn_c_try_compile "$LINENO"
4287 then :
4288   ac_cv_prog_cc_c11=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291   test "x$ac_cv_prog_cc_c11" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c11" = xno
4298 then :
4299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302   if test "x$ac_cv_prog_cc_c11" = x
4303 then :
4304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4309      CC="$CC $ac_cv_prog_cc_c11"
4310 fi
4311   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4312   ac_prog_cc_stdc=c11
4313 fi
4314 fi
4315 if test x$ac_prog_cc_stdc = xno
4316 then :
4317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4318 printf %s "checking for $CC option to enable C99 features... " >&6; }
4319 if test ${ac_cv_prog_cc_c99+y}
4320 then :
4321   printf %s "(cached) " >&6
4322 else $as_nop
4323   ac_cv_prog_cc_c99=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327 $ac_c_conftest_c99_program
4328 _ACEOF
4329 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4330 do
4331   CC="$ac_save_CC $ac_arg"
4332   if ac_fn_c_try_compile "$LINENO"
4333 then :
4334   ac_cv_prog_cc_c99=$ac_arg
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam
4337   test "x$ac_cv_prog_cc_c99" != "xno" && break
4338 done
4339 rm -f conftest.$ac_ext
4340 CC=$ac_save_CC
4341 fi
4342
4343 if test "x$ac_cv_prog_cc_c99" = xno
4344 then :
4345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 printf "%s\n" "unsupported" >&6; }
4347 else $as_nop
4348   if test "x$ac_cv_prog_cc_c99" = x
4349 then :
4350   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 printf "%s\n" "none needed" >&6; }
4352 else $as_nop
4353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4355      CC="$CC $ac_cv_prog_cc_c99"
4356 fi
4357   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4358   ac_prog_cc_stdc=c99
4359 fi
4360 fi
4361 if test x$ac_prog_cc_stdc = xno
4362 then :
4363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4364 printf %s "checking for $CC option to enable C89 features... " >&6; }
4365 if test ${ac_cv_prog_cc_c89+y}
4366 then :
4367   printf %s "(cached) " >&6
4368 else $as_nop
4369   ac_cv_prog_cc_c89=no
4370 ac_save_CC=$CC
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373 $ac_c_conftest_c89_program
4374 _ACEOF
4375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4376 do
4377   CC="$ac_save_CC $ac_arg"
4378   if ac_fn_c_try_compile "$LINENO"
4379 then :
4380   ac_cv_prog_cc_c89=$ac_arg
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.beam
4383   test "x$ac_cv_prog_cc_c89" != "xno" && break
4384 done
4385 rm -f conftest.$ac_ext
4386 CC=$ac_save_CC
4387 fi
4388
4389 if test "x$ac_cv_prog_cc_c89" = xno
4390 then :
4391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4392 printf "%s\n" "unsupported" >&6; }
4393 else $as_nop
4394   if test "x$ac_cv_prog_cc_c89" = x
4395 then :
4396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4397 printf "%s\n" "none needed" >&6; }
4398 else $as_nop
4399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4401      CC="$CC $ac_cv_prog_cc_c89"
4402 fi
4403   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4404   ac_prog_cc_stdc=c89
4405 fi
4406 fi
4407
4408 ac_ext=c
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413
4414
4415 ac_header= ac_cache=
4416 for ac_item in $ac_header_c_list
4417 do
4418   if test $ac_cache; then
4419     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4420     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4421       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4422     fi
4423     ac_header= ac_cache=
4424   elif test $ac_header; then
4425     ac_cache=$ac_item
4426   else
4427     ac_header=$ac_item
4428   fi
4429 done
4430
4431
4432
4433
4434
4435
4436
4437
4438 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4439 then :
4440
4441 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4442
4443 fi
4444
4445
4446
4447
4448
4449
4450   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4451 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4452 if test ${ac_cv_safe_to_define___extensions__+y}
4453 then :
4454   printf %s "(cached) " >&6
4455 else $as_nop
4456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458
4459 #         define __EXTENSIONS__ 1
4460           $ac_includes_default
4461 int
4462 main (void)
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"
4470 then :
4471   ac_cv_safe_to_define___extensions__=yes
4472 else $as_nop
4473   ac_cv_safe_to_define___extensions__=no
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 fi
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4478 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4479
4480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4481 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4482 if test ${ac_cv_should_define__xopen_source+y}
4483 then :
4484   printf %s "(cached) " >&6
4485 else $as_nop
4486   ac_cv_should_define__xopen_source=no
4487     if test $ac_cv_header_wchar_h = yes
4488 then :
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491
4492           #include <wchar.h>
4493           mbstate_t x;
4494 int
4495 main (void)
4496 {
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 if ac_fn_c_try_compile "$LINENO"
4503 then :
4504
4505 else $as_nop
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508
4509             #define _XOPEN_SOURCE 500
4510             #include <wchar.h>
4511             mbstate_t x;
4512 int
4513 main (void)
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"
4521 then :
4522   ac_cv_should_define__xopen_source=yes
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4527 fi
4528 fi
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4530 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4531
4532   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4533
4534   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4535
4536   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4537
4538   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4539
4540   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4541
4542   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4543
4544   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4545
4546   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4547
4548   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4549
4550   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4551
4552   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4553
4554   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4555
4556   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4557
4558   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4559
4560   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4561
4562   if test $ac_cv_header_minix_config_h = yes
4563 then :
4564   MINIX=yes
4565     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4566
4567     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4568
4569     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4570
4571 else $as_nop
4572   MINIX=
4573 fi
4574   if test $ac_cv_safe_to_define___extensions__ = yes
4575 then :
4576   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4577
4578 fi
4579   if test $ac_cv_should_define__xopen_source = yes
4580 then :
4581   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4582
4583 fi
4584
4585 MCONFIG=./MCONFIG
4586
4587 BINARY_TYPE=bin
4588 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4589 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4590 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4591 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4592 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4593
4594 if expr $YEAR ">" 1900 > /dev/null ; then
4595         E2FSPROGS_YEAR=$YEAR
4596 elif expr $YEAR ">" 90 >/dev/null ; then
4597         E2FSPROGS_YEAR=19$YEAR
4598 else
4599         E2FSPROGS_YEAR=20$YEAR
4600 fi
4601
4602 case $MONTH in
4603 Jan)    MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4604 Feb)    MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4605 Mar)    MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4606 Apr)    MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4607 May)    MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4608 Jun)    MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4609 Jul)    MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4610 Aug)    MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4611 Sep)    MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4612 Oct)    MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4613 Nov)    MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4614 Dec)    MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4615 *)      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4616 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4617 esac
4618
4619 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4620 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4621
4622 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4623
4624 case $E2FSPROGS_VERSION in
4625 *-WIP|pre-*)
4626         E2FSPROGS_PKGVER="$base_ver"
4627         E2FSPROGS_PKGREL="WIP.$date_spec"
4628         ;;
4629 *)
4630         E2FSPROGS_PKGVER="$base_ver"
4631         E2FSPROGS_PKGREL="$base_rel"
4632         ;;
4633 esac
4634
4635 unset DATE MONTH YEAR base_ver pre_vers date_spec
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4637 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4639 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4641 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4642
4643
4644
4645
4646
4647
4648
4649 WITH_DIET_LIBC=
4650
4651 # Check whether --with-diet-libc was given.
4652 if test ${with_diet_libc+y}
4653 then :
4654   withval=$with_diet_libc; CC="diet cc -nostdinc"
4655 WITH_DIET_LIBC=yes
4656 if test -z "$LIBS"
4657 then
4658         LIBS="-lcompat"
4659 else
4660         LIBS="$LIBS -lcompat"
4661 fi
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4663 printf "%s\n" "CC=$CC" >&6; }
4664 fi
4665
4666
4667
4668   # Make sure we can run config.sub.
4669 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4670   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4671
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4673 printf %s "checking build system type... " >&6; }
4674 if test ${ac_cv_build+y}
4675 then :
4676   printf %s "(cached) " >&6
4677 else $as_nop
4678   ac_build_alias=$build_alias
4679 test "x$ac_build_alias" = x &&
4680   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4681 test "x$ac_build_alias" = x &&
4682   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4683 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4684   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4685
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4688 printf "%s\n" "$ac_cv_build" >&6; }
4689 case $ac_cv_build in
4690 *-*-*) ;;
4691 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4692 esac
4693 build=$ac_cv_build
4694 ac_save_IFS=$IFS; IFS='-'
4695 set x $ac_cv_build
4696 shift
4697 build_cpu=$1
4698 build_vendor=$2
4699 shift; shift
4700 # Remember, the first character of IFS is used to create $*,
4701 # except with old shells:
4702 build_os=$*
4703 IFS=$ac_save_IFS
4704 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4705
4706
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4708 printf %s "checking host system type... " >&6; }
4709 if test ${ac_cv_host+y}
4710 then :
4711   printf %s "(cached) " >&6
4712 else $as_nop
4713   if test "x$host_alias" = x; then
4714   ac_cv_host=$ac_cv_build
4715 else
4716   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4717     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4718 fi
4719
4720 fi
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4722 printf "%s\n" "$ac_cv_host" >&6; }
4723 case $ac_cv_host in
4724 *-*-*) ;;
4725 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4726 esac
4727 host=$ac_cv_host
4728 ac_save_IFS=$IFS; IFS='-'
4729 set x $ac_cv_host
4730 shift
4731 host_cpu=$1
4732 host_vendor=$2
4733 shift; shift
4734 # Remember, the first character of IFS is used to create $*,
4735 # except with old shells:
4736 host_os=$*
4737 IFS=$ac_save_IFS
4738 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4739
4740
4741 DLOPEN_LIB=''
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4743 printf %s "checking for dlopen in -ldl... " >&6; }
4744 if test ${ac_cv_lib_dl_dlopen+y}
4745 then :
4746   printf %s "(cached) " >&6
4747 else $as_nop
4748   ac_check_lib_save_LIBS=$LIBS
4749 LIBS="-ldl  $LIBS"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 /* Override any GCC internal prototype to avoid an error.
4754    Use char because int might match the return type of a GCC
4755    builtin and then its argument prototype would still apply.  */
4756 char dlopen ();
4757 int
4758 main (void)
4759 {
4760 return dlopen ();
4761   ;
4762   return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_c_try_link "$LINENO"
4766 then :
4767   ac_cv_lib_dl_dlopen=yes
4768 else $as_nop
4769   ac_cv_lib_dl_dlopen=no
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4772     conftest$ac_exeext conftest.$ac_ext
4773 LIBS=$ac_check_lib_save_LIBS
4774 fi
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4776 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4777 if test "x$ac_cv_lib_dl_dlopen" = xyes
4778 then :
4779   DLOPEN_LIB=-ldl
4780 fi
4781
4782
4783
4784 # Check whether --with-cc was given.
4785 if test ${with_cc+y}
4786 then :
4787   withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4788 fi
4789
4790
4791 # Check whether --with-ccopts was given.
4792 if test ${with_ccopts+y}
4793 then :
4794   withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4795 fi
4796
4797
4798 # Check whether --with-ldopts was given.
4799 if test ${with_ldopts+y}
4800 then :
4801   withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4802 fi
4803
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809 if test -n "$ac_tool_prefix"; then
4810   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 printf %s "checking for $ac_word... " >&6; }
4814 if test ${ac_cv_prog_CC+y}
4815 then :
4816   printf %s "(cached) " >&6
4817 else $as_nop
4818   if test -n "$CC"; then
4819   ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   case $as_dir in #(((
4826     '') as_dir=./ ;;
4827     */) ;;
4828     *) as_dir=$as_dir/ ;;
4829   esac
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4833     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837   done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 CC=$ac_cv_prog_CC
4843 if test -n "$CC"; then
4844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4845 printf "%s\n" "$CC" >&6; }
4846 else
4847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 printf "%s\n" "no" >&6; }
4849 fi
4850
4851
4852 fi
4853 if test -z "$ac_cv_prog_CC"; then
4854   ac_ct_CC=$CC
4855   # Extract the first word of "gcc", so it can be a program name with args.
4856 set dummy gcc; ac_word=$2
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 printf %s "checking for $ac_word... " >&6; }
4859 if test ${ac_cv_prog_ac_ct_CC+y}
4860 then :
4861   printf %s "(cached) " >&6
4862 else $as_nop
4863   if test -n "$ac_ct_CC"; then
4864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   case $as_dir in #(((
4871     '') as_dir=./ ;;
4872     */) ;;
4873     *) as_dir=$as_dir/ ;;
4874   esac
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4877     ac_cv_prog_ac_ct_CC="gcc"
4878     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882   done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4890 printf "%s\n" "$ac_ct_CC" >&6; }
4891 else
4892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 printf "%s\n" "no" >&6; }
4894 fi
4895
4896   if test "x$ac_ct_CC" = x; then
4897     CC=""
4898   else
4899     case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905     CC=$ac_ct_CC
4906   fi
4907 else
4908   CC="$ac_cv_prog_CC"
4909 fi
4910
4911 if test -z "$CC"; then
4912           if test -n "$ac_tool_prefix"; then
4913     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 printf %s "checking for $ac_word... " >&6; }
4917 if test ${ac_cv_prog_CC+y}
4918 then :
4919   printf %s "(cached) " >&6
4920 else $as_nop
4921   if test -n "$CC"; then
4922   ac_cv_prog_CC="$CC" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927   IFS=$as_save_IFS
4928   case $as_dir in #(((
4929     '') as_dir=./ ;;
4930     */) ;;
4931     *) as_dir=$as_dir/ ;;
4932   esac
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4935     ac_cv_prog_CC="${ac_tool_prefix}cc"
4936     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940   done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 CC=$ac_cv_prog_CC
4946 if test -n "$CC"; then
4947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4948 printf "%s\n" "$CC" >&6; }
4949 else
4950   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 printf "%s\n" "no" >&6; }
4952 fi
4953
4954
4955   fi
4956 fi
4957 if test -z "$CC"; then
4958   # Extract the first word of "cc", so it can be a program name with args.
4959 set dummy cc; ac_word=$2
4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 printf %s "checking for $ac_word... " >&6; }
4962 if test ${ac_cv_prog_CC+y}
4963 then :
4964   printf %s "(cached) " >&6
4965 else $as_nop
4966   if test -n "$CC"; then
4967   ac_cv_prog_CC="$CC" # Let the user override the test.
4968 else
4969   ac_prog_rejected=no
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   case $as_dir in #(((
4975     '') as_dir=./ ;;
4976     */) ;;
4977     *) as_dir=$as_dir/ ;;
4978   esac
4979     for ac_exec_ext in '' $ac_executable_extensions; do
4980   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4981     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4982        ac_prog_rejected=yes
4983        continue
4984      fi
4985     ac_cv_prog_CC="cc"
4986     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990   done
4991 IFS=$as_save_IFS
4992
4993 if test $ac_prog_rejected = yes; then
4994   # We found a bogon in the path, so make sure we never use it.
4995   set dummy $ac_cv_prog_CC
4996   shift
4997   if test $# != 0; then
4998     # We chose a different compiler from the bogus one.
4999     # However, it has the same basename, so the bogon will be chosen
5000     # first if we set CC to just the basename; use the full file name.
5001     shift
5002     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5003   fi
5004 fi
5005 fi
5006 fi
5007 CC=$ac_cv_prog_CC
5008 if test -n "$CC"; then
5009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5010 printf "%s\n" "$CC" >&6; }
5011 else
5012   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 printf "%s\n" "no" >&6; }
5014 fi
5015
5016
5017 fi
5018 if test -z "$CC"; then
5019   if test -n "$ac_tool_prefix"; then
5020   for ac_prog in cl.exe
5021   do
5022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 printf %s "checking for $ac_word... " >&6; }
5026 if test ${ac_cv_prog_CC+y}
5027 then :
5028   printf %s "(cached) " >&6
5029 else $as_nop
5030   if test -n "$CC"; then
5031   ac_cv_prog_CC="$CC" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   case $as_dir in #(((
5038     '') as_dir=./ ;;
5039     */) ;;
5040     *) as_dir=$as_dir/ ;;
5041   esac
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5044     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5045     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049   done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 CC=$ac_cv_prog_CC
5055 if test -n "$CC"; then
5056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5057 printf "%s\n" "$CC" >&6; }
5058 else
5059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 printf "%s\n" "no" >&6; }
5061 fi
5062
5063
5064     test -n "$CC" && break
5065   done
5066 fi
5067 if test -z "$CC"; then
5068   ac_ct_CC=$CC
5069   for ac_prog in cl.exe
5070 do
5071   # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 printf %s "checking for $ac_word... " >&6; }
5075 if test ${ac_cv_prog_ac_ct_CC+y}
5076 then :
5077   printf %s "(cached) " >&6
5078 else $as_nop
5079   if test -n "$ac_ct_CC"; then
5080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   case $as_dir in #(((
5087     '') as_dir=./ ;;
5088     */) ;;
5089     *) as_dir=$as_dir/ ;;
5090   esac
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5093     ac_cv_prog_ac_ct_CC="$ac_prog"
5094     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098   done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5104 if test -n "$ac_ct_CC"; then
5105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5106 printf "%s\n" "$ac_ct_CC" >&6; }
5107 else
5108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 printf "%s\n" "no" >&6; }
5110 fi
5111
5112
5113   test -n "$ac_ct_CC" && break
5114 done
5115
5116   if test "x$ac_ct_CC" = x; then
5117     CC=""
5118   else
5119     case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125     CC=$ac_ct_CC
5126   fi
5127 fi
5128
5129 fi
5130 if test -z "$CC"; then
5131   if test -n "$ac_tool_prefix"; then
5132   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}clang; ac_word=$2
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 printf %s "checking for $ac_word... " >&6; }
5136 if test ${ac_cv_prog_CC+y}
5137 then :
5138   printf %s "(cached) " >&6
5139 else $as_nop
5140   if test -n "$CC"; then
5141   ac_cv_prog_CC="$CC" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   case $as_dir in #(((
5148     '') as_dir=./ ;;
5149     */) ;;
5150     *) as_dir=$as_dir/ ;;
5151   esac
5152     for ac_exec_ext in '' $ac_executable_extensions; do
5153   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5154     ac_cv_prog_CC="${ac_tool_prefix}clang"
5155     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159   done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 CC=$ac_cv_prog_CC
5165 if test -n "$CC"; then
5166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5167 printf "%s\n" "$CC" >&6; }
5168 else
5169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5171 fi
5172
5173
5174 fi
5175 if test -z "$ac_cv_prog_CC"; then
5176   ac_ct_CC=$CC
5177   # Extract the first word of "clang", so it can be a program name with args.
5178 set dummy clang; ac_word=$2
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 printf %s "checking for $ac_word... " >&6; }
5181 if test ${ac_cv_prog_ac_ct_CC+y}
5182 then :
5183   printf %s "(cached) " >&6
5184 else $as_nop
5185   if test -n "$ac_ct_CC"; then
5186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   case $as_dir in #(((
5193     '') as_dir=./ ;;
5194     */) ;;
5195     *) as_dir=$as_dir/ ;;
5196   esac
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_ac_ct_CC="clang"
5200     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5210 if test -n "$ac_ct_CC"; then
5211   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5212 printf "%s\n" "$ac_ct_CC" >&6; }
5213 else
5214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 printf "%s\n" "no" >&6; }
5216 fi
5217
5218   if test "x$ac_ct_CC" = x; then
5219     CC=""
5220   else
5221     case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227     CC=$ac_ct_CC
5228   fi
5229 else
5230   CC="$ac_cv_prog_CC"
5231 fi
5232
5233 fi
5234
5235
5236 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5237 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5238 as_fn_error $? "no acceptable C compiler found in \$PATH
5239 See \`config.log' for more details" "$LINENO" 5; }
5240
5241 # Provide some information about the compiler.
5242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5243 set X $ac_compile
5244 ac_compiler=$2
5245 for ac_option in --version -v -V -qversion -version; do
5246   { { ac_try="$ac_compiler $ac_option >&5"
5247 case "(($ac_try" in
5248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249   *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5254   ac_status=$?
5255   if test -s conftest.err; then
5256     sed '10a\
5257 ... rest of stderr output deleted ...
5258          10q' conftest.err >conftest.er1
5259     cat conftest.er1 >&5
5260   fi
5261   rm -f conftest.er1 conftest.err
5262   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263   test $ac_status = 0; }
5264 done
5265
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5267 printf %s "checking whether the compiler supports GNU C... " >&6; }
5268 if test ${ac_cv_c_compiler_gnu+y}
5269 then :
5270   printf %s "(cached) " >&6
5271 else $as_nop
5272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h.  */
5274
5275 int
5276 main (void)
5277 {
5278 #ifndef __GNUC__
5279        choke me
5280 #endif
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"
5287 then :
5288   ac_compiler_gnu=yes
5289 else $as_nop
5290   ac_compiler_gnu=no
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5294
5295 fi
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5297 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5299
5300 if test $ac_compiler_gnu = yes; then
5301   GCC=yes
5302 else
5303   GCC=
5304 fi
5305 ac_test_CFLAGS=${CFLAGS+y}
5306 ac_save_CFLAGS=$CFLAGS
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5308 printf %s "checking whether $CC accepts -g... " >&6; }
5309 if test ${ac_cv_prog_cc_g+y}
5310 then :
5311   printf %s "(cached) " >&6
5312 else $as_nop
5313   ac_save_c_werror_flag=$ac_c_werror_flag
5314    ac_c_werror_flag=yes
5315    ac_cv_prog_cc_g=no
5316    CFLAGS="-g"
5317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h.  */
5319
5320 int
5321 main (void)
5322 {
5323
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"
5329 then :
5330   ac_cv_prog_cc_g=yes
5331 else $as_nop
5332   CFLAGS=""
5333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h.  */
5335
5336 int
5337 main (void)
5338 {
5339
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"
5345 then :
5346
5347 else $as_nop
5348   ac_c_werror_flag=$ac_save_c_werror_flag
5349          CFLAGS="-g"
5350          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h.  */
5352
5353 int
5354 main (void)
5355 {
5356
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"
5362 then :
5363   ac_cv_prog_cc_g=yes
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370    ac_c_werror_flag=$ac_save_c_werror_flag
5371 fi
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5373 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5374 if test $ac_test_CFLAGS; then
5375   CFLAGS=$ac_save_CFLAGS
5376 elif test $ac_cv_prog_cc_g = yes; then
5377   if test "$GCC" = yes; then
5378     CFLAGS="-g -O2"
5379   else
5380     CFLAGS="-g"
5381   fi
5382 else
5383   if test "$GCC" = yes; then
5384     CFLAGS="-O2"
5385   else
5386     CFLAGS=
5387   fi
5388 fi
5389 ac_prog_cc_stdc=no
5390 if test x$ac_prog_cc_stdc = xno
5391 then :
5392   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5393 printf %s "checking for $CC option to enable C11 features... " >&6; }
5394 if test ${ac_cv_prog_cc_c11+y}
5395 then :
5396   printf %s "(cached) " >&6
5397 else $as_nop
5398   ac_cv_prog_cc_c11=no
5399 ac_save_CC=$CC
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402 $ac_c_conftest_c11_program
5403 _ACEOF
5404 for ac_arg in '' -std=gnu11
5405 do
5406   CC="$ac_save_CC $ac_arg"
5407   if ac_fn_c_try_compile "$LINENO"
5408 then :
5409   ac_cv_prog_cc_c11=$ac_arg
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.beam
5412   test "x$ac_cv_prog_cc_c11" != "xno" && break
5413 done
5414 rm -f conftest.$ac_ext
5415 CC=$ac_save_CC
5416 fi
5417
5418 if test "x$ac_cv_prog_cc_c11" = xno
5419 then :
5420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5421 printf "%s\n" "unsupported" >&6; }
5422 else $as_nop
5423   if test "x$ac_cv_prog_cc_c11" = x
5424 then :
5425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5426 printf "%s\n" "none needed" >&6; }
5427 else $as_nop
5428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5429 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5430      CC="$CC $ac_cv_prog_cc_c11"
5431 fi
5432   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5433   ac_prog_cc_stdc=c11
5434 fi
5435 fi
5436 if test x$ac_prog_cc_stdc = xno
5437 then :
5438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5439 printf %s "checking for $CC option to enable C99 features... " >&6; }
5440 if test ${ac_cv_prog_cc_c99+y}
5441 then :
5442   printf %s "(cached) " >&6
5443 else $as_nop
5444   ac_cv_prog_cc_c99=no
5445 ac_save_CC=$CC
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 $ac_c_conftest_c99_program
5449 _ACEOF
5450 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5451 do
5452   CC="$ac_save_CC $ac_arg"
5453   if ac_fn_c_try_compile "$LINENO"
5454 then :
5455   ac_cv_prog_cc_c99=$ac_arg
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.beam
5458   test "x$ac_cv_prog_cc_c99" != "xno" && break
5459 done
5460 rm -f conftest.$ac_ext
5461 CC=$ac_save_CC
5462 fi
5463
5464 if test "x$ac_cv_prog_cc_c99" = xno
5465 then :
5466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5467 printf "%s\n" "unsupported" >&6; }
5468 else $as_nop
5469   if test "x$ac_cv_prog_cc_c99" = x
5470 then :
5471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5472 printf "%s\n" "none needed" >&6; }
5473 else $as_nop
5474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5475 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5476      CC="$CC $ac_cv_prog_cc_c99"
5477 fi
5478   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5479   ac_prog_cc_stdc=c99
5480 fi
5481 fi
5482 if test x$ac_prog_cc_stdc = xno
5483 then :
5484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5485 printf %s "checking for $CC option to enable C89 features... " >&6; }
5486 if test ${ac_cv_prog_cc_c89+y}
5487 then :
5488   printf %s "(cached) " >&6
5489 else $as_nop
5490   ac_cv_prog_cc_c89=no
5491 ac_save_CC=$CC
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h.  */
5494 $ac_c_conftest_c89_program
5495 _ACEOF
5496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5497 do
5498   CC="$ac_save_CC $ac_arg"
5499   if ac_fn_c_try_compile "$LINENO"
5500 then :
5501   ac_cv_prog_cc_c89=$ac_arg
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam
5504   test "x$ac_cv_prog_cc_c89" != "xno" && break
5505 done
5506 rm -f conftest.$ac_ext
5507 CC=$ac_save_CC
5508 fi
5509
5510 if test "x$ac_cv_prog_cc_c89" = xno
5511 then :
5512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5513 printf "%s\n" "unsupported" >&6; }
5514 else $as_nop
5515   if test "x$ac_cv_prog_cc_c89" = x
5516 then :
5517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5518 printf "%s\n" "none needed" >&6; }
5519 else $as_nop
5520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5521 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5522      CC="$CC $ac_cv_prog_cc_c89"
5523 fi
5524   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5525   ac_prog_cc_stdc=c89
5526 fi
5527 fi
5528
5529 ac_ext=c
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
5535 if test "$GCC" = yes; then
5536    RDYNAMIC="-rdynamic"
5537
5538 fi
5539 ac_ext=c
5540 ac_cpp='$CPP $CPPFLAGS'
5541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5545 printf %s "checking how to run the C preprocessor... " >&6; }
5546 # On Suns, sometimes $CPP names a directory.
5547 if test -n "$CPP" && test -d "$CPP"; then
5548   CPP=
5549 fi
5550 if test -z "$CPP"; then
5551   if test ${ac_cv_prog_CPP+y}
5552 then :
5553   printf %s "(cached) " >&6
5554 else $as_nop
5555       # Double quotes because $CC needs to be expanded
5556     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5557     do
5558       ac_preproc_ok=false
5559 for ac_c_preproc_warn_flag in '' yes
5560 do
5561   # Use a header file that comes with gcc, so configuring glibc
5562   # with a fresh cross-compiler works.
5563   # On the NeXT, cc -E runs the code through the compiler's parser,
5564   # not just through cpp. "Syntax error" is here to catch this case.
5565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h.  */
5567 #include <limits.h>
5568                      Syntax error
5569 _ACEOF
5570 if ac_fn_c_try_cpp "$LINENO"
5571 then :
5572
5573 else $as_nop
5574   # Broken: fails on valid input.
5575 continue
5576 fi
5577 rm -f conftest.err conftest.i conftest.$ac_ext
5578
5579   # OK, works on sane cases.  Now check whether nonexistent headers
5580   # can be detected and how.
5581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h.  */
5583 #include <ac_nonexistent.h>
5584 _ACEOF
5585 if ac_fn_c_try_cpp "$LINENO"
5586 then :
5587   # Broken: success on invalid input.
5588 continue
5589 else $as_nop
5590   # Passes both tests.
5591 ac_preproc_ok=:
5592 break
5593 fi
5594 rm -f conftest.err conftest.i conftest.$ac_ext
5595
5596 done
5597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5598 rm -f conftest.i conftest.err conftest.$ac_ext
5599 if $ac_preproc_ok
5600 then :
5601   break
5602 fi
5603
5604     done
5605     ac_cv_prog_CPP=$CPP
5606
5607 fi
5608   CPP=$ac_cv_prog_CPP
5609 else
5610   ac_cv_prog_CPP=$CPP
5611 fi
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5613 printf "%s\n" "$CPP" >&6; }
5614 ac_preproc_ok=false
5615 for ac_c_preproc_warn_flag in '' yes
5616 do
5617   # Use a header file that comes with gcc, so configuring glibc
5618   # with a fresh cross-compiler works.
5619   # On the NeXT, cc -E runs the code through the compiler's parser,
5620   # not just through cpp. "Syntax error" is here to catch this case.
5621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h.  */
5623 #include <limits.h>
5624                      Syntax error
5625 _ACEOF
5626 if ac_fn_c_try_cpp "$LINENO"
5627 then :
5628
5629 else $as_nop
5630   # Broken: fails on valid input.
5631 continue
5632 fi
5633 rm -f conftest.err conftest.i conftest.$ac_ext
5634
5635   # OK, works on sane cases.  Now check whether nonexistent headers
5636   # can be detected and how.
5637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h.  */
5639 #include <ac_nonexistent.h>
5640 _ACEOF
5641 if ac_fn_c_try_cpp "$LINENO"
5642 then :
5643   # Broken: success on invalid input.
5644 continue
5645 else $as_nop
5646   # Passes both tests.
5647 ac_preproc_ok=:
5648 break
5649 fi
5650 rm -f conftest.err conftest.i conftest.$ac_ext
5651
5652 done
5653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5654 rm -f conftest.i conftest.err conftest.$ac_ext
5655 if $ac_preproc_ok
5656 then :
5657
5658 else $as_nop
5659   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5661 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5662 See \`config.log' for more details" "$LINENO" 5; }
5663 fi
5664
5665 ac_ext=c
5666 ac_cpp='$CPP $CPPFLAGS'
5667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5672 printf %s "checking for additional special compiler flags... " >&6; }
5673 if test "$GCC" = yes
5674 then
5675     case "$host_cpu" in
5676         alpha)          addcflags="-mieee" ;;
5677     esac
5678 fi
5679 if test "x$addcflags" != x
5680 then
5681     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5682 printf "%s\n" "$addcflags" >&6; }
5683     CFLAGS="$addcflags $CFLAGS"
5684 else
5685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5686 printf "%s\n" "(none)" >&6; }
5687 fi
5688 LIB_EXT=.a
5689 STATIC_LIB_EXT=.a
5690 PROFILED_LIB_EXT=.a
5691
5692 # Check whether --with-root-prefix was given.
5693 if test ${with_root_prefix+y}
5694 then :
5695   withval=$with_root_prefix; root_prefix=$withval
5696 else $as_nop
5697   root_prefix=NONE
5698 fi
5699 # Check whether --enable-maintainer-mode was given.
5700 if test ${enable_maintainer_mode+y}
5701 then :
5702   enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5703 then
5704         MAINTAINER_CMT=#
5705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5706 printf "%s\n" "Disabling maintainer mode" >&6; }
5707 else
5708         MAINTAINER_CMT=
5709         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5710 printf "%s\n" "Enabling maintainer mode" >&6; }
5711 fi
5712
5713 else $as_nop
5714   MAINTAINER_CMT=#
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5716 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5717
5718 fi
5719
5720
5721 # Check whether --enable-symlink-install was given.
5722 if test ${enable_symlink_install+y}
5723 then :
5724   enableval=$enable_symlink_install; if test "$enableval" = "no"
5725 then
5726         LINK_INSTALL_FLAGS=-f
5727         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5728 printf "%s\n" "Disabling symlinks for install" >&6; }
5729 else
5730         LINK_INSTALL_FLAGS=-sf
5731         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5732 printf "%s\n" "Enabling symlinks for install" >&6; }
5733 fi
5734
5735 else $as_nop
5736   LINK_INSTALL_FLAGS=-f
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5738 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5739
5740 fi
5741
5742
5743 relative_symlink_defined=
5744 # Check whether --enable-relative-symlinks was given.
5745 if test ${enable_relative_symlinks+y}
5746 then :
5747   enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5748 then
5749         SYMLINK_RELATIVE=
5750         relative_symlink_defined=yes
5751         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5752 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5753 else
5754         SYMLINK_RELATIVE=--relative
5755         relative_symlink_defined=yes
5756         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5757 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5758 fi
5759 fi
5760
5761 # Check whether --enable-symlink-relative-symlinks was given.
5762 if test ${enable_symlink_relative_symlinks+y}
5763 then :
5764   enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5765 then
5766         SYMLINK_RELATIVE=yes
5767         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5768 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5769 else
5770         SYMLINK_RELATIVE=--relative
5771         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5772 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5773 fi
5774
5775 else $as_nop
5776   if test -z "$relative_symlink_defined"
5777 then
5778         SYMLINK_RELATIVE=
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5780 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5781 fi
5782
5783 fi
5784
5785
5786 # Check whether --enable-symlink-build was given.
5787 if test ${enable_symlink_build+y}
5788 then :
5789   enableval=$enable_symlink_build; if test "$enableval" = "no"
5790 then
5791         LINK_BUILD_FLAGS=
5792         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5793 printf "%s\n" "Disabling symlinks for build" >&6; }
5794 else
5795         LINK_BUILD_FLAGS=-s
5796         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5797 printf "%s\n" "Enabling symlinks for build" >&6; }
5798 fi
5799
5800 else $as_nop
5801   LINK_BUILD_FLAGS=
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5803 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5804
5805 fi
5806
5807
5808 # Check whether --enable-verbose-makecmds was given.
5809 if test ${enable_verbose_makecmds+y}
5810 then :
5811   enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5812 then
5813         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5814 printf "%s\n" "Disabling verbose make commands" >&6; }
5815         E=@echo
5816         ES=echo
5817         Q=@
5818 else
5819         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5820 printf "%s\n" "Enabling verbose make commands" >&6; }
5821         E=@\\#
5822         ES=\\#
5823         Q=
5824 fi
5825
5826 else $as_nop
5827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5828 printf "%s\n" "Disabling verbose make commands" >&6; }
5829 E=@echo
5830 ES=echo
5831 Q=@
5832
5833 fi
5834
5835
5836
5837
5838 E2_PKG_CONFIG_STATIC=--static
5839 LDFLAG_DYNAMIC=
5840 PRIVATE_LIBS_CMT=
5841 # Check whether --enable-elf-shlibs was given.
5842 if test ${enable_elf_shlibs+y}
5843 then :
5844   enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5845 then
5846         ELF_CMT=#
5847         MAKEFILE_ELF=/dev/null
5848         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5849 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5850 else
5851         E2_PKG_CONFIG_STATIC=
5852         ELF_CMT=
5853         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5854         case "$host_os" in
5855         solaris2.*)
5856                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5857         ;;
5858         esac
5859         BINARY_TYPE=elfbin
5860         LIB_EXT=.so
5861         PRIVATE_LIBS_CMT=#
5862         LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5863         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5864 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5865 fi
5866
5867 else $as_nop
5868   MAKEFILE_ELF=/dev/null
5869 ELF_CMT=#
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5871 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5872
5873 fi
5874
5875
5876
5877 # Check whether --enable-bsd-shlibs was given.
5878 if test ${enable_bsd_shlibs+y}
5879 then :
5880   enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5881 then
5882         BSDLIB_CMT=#
5883         MAKEFILE_BSDLIB=/dev/null
5884         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5885 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5886 else
5887         E2_PKG_CONFIG_STATIC=
5888         BSDLIB_CMT=
5889         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5890         LIB_EXT=.so
5891         case "$host_os" in
5892         darwin*)
5893                 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5894                 LIB_EXT=.dylib
5895         ;;
5896         esac
5897         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5898 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5899 fi
5900
5901 else $as_nop
5902   MAKEFILE_BSDLIB=/dev/null
5903 BSDLIB_CMT=#
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5905 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5906
5907 fi
5908
5909
5910
5911 # Check whether --enable-profile was given.
5912 if test ${enable_profile+y}
5913 then :
5914   enableval=$enable_profile; if test "$enableval" = "no"
5915 then
5916         PROFILE_CMT=#
5917         MAKEFILE_PROFILE=/dev/null
5918         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5919 printf "%s\n" "Disabling profiling libraries" >&6; }
5920 else
5921         PROFILE_CMT=
5922         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5923         PROFILED_LIB_EXT=_p.a
5924         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5925 printf "%s\n" "Building profiling libraries" >&6; }
5926 fi
5927
5928 else $as_nop
5929   PROFILE_CMT=#
5930 MAKEFILE_PROFILE=/dev/null
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5932 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5933
5934 fi
5935
5936
5937
5938 # Check whether --enable-gcov was given.
5939 if test ${enable_gcov+y}
5940 then :
5941   enableval=$enable_gcov; if test "$enableval" = "yes"
5942 then
5943         CFLAGS="-g -fprofile-arcs -ftest-coverage"
5944         LDFLAGS="-fprofile-arcs -ftest-coverage"
5945         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5946 printf "%s\n" "Enabling gcov support" >&6; }
5947 fi
5948
5949 fi
5950
5951 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5952 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5953 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5954 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5955 # Check whether --enable-hardening was given.
5956 if test ${enable_hardening+y}
5957 then :
5958   enableval=$enable_hardening; if test "$enableval" = "yes"
5959 then
5960         HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5961         HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5962         CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5963         CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5964         CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5965         LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5966         LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5967         LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5968         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5969 printf "%s\n" "Enabling hardening support" >&6; }
5970 fi
5971
5972 fi
5973
5974
5975
5976
5977
5978
5979 # Check whether --enable-jbd-debug was given.
5980 if test ${enable_jbd_debug+y}
5981 then :
5982   enableval=$enable_jbd_debug; if test "$enableval" = "no"
5983 then
5984         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5985 printf "%s\n" "Disabling journal debugging" >&6; }
5986 else
5987
5988 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5989
5990         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5991 printf "%s\n" "Enabling journal debugging" >&6; }
5992 fi
5993
5994 else $as_nop
5995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5996 printf "%s\n" "Disabling journal debugging by default" >&6; }
5997
5998 fi
5999
6000 # Check whether --enable-blkid-debug was given.
6001 if test ${enable_blkid_debug+y}
6002 then :
6003   enableval=$enable_blkid_debug; if test "$enableval" = "no"
6004 then
6005         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6006 printf "%s\n" "Disabling blkid debugging" >&6; }
6007 else
6008
6009 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6010
6011         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6012 printf "%s\n" "Enabling blkid debugging" >&6; }
6013 fi
6014
6015 else $as_nop
6016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6017 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6018
6019 fi
6020
6021 # Check whether --enable-testio-debug was given.
6022 if test ${enable_testio_debug+y}
6023 then :
6024   enableval=$enable_testio_debug;
6025 if test "$enableval" = "no"
6026 then
6027         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6028 printf "%s\n" "Disabling testio debugging" >&6; }
6029         TEST_IO_CMT="#"
6030 else
6031         TEST_IO_CMT=
6032         printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6033
6034         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6035 printf "%s\n" "Enabling testio debugging" >&6; }
6036 fi
6037
6038 else $as_nop
6039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6040 printf "%s\n" "Enabling testio debugging by default" >&6; }
6041 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6042
6043 TEST_IO_CMT=
6044
6045 fi
6046
6047
6048 # Check whether --enable-developer-features was given.
6049 if test ${enable_developer_features+y}
6050 then :
6051   enableval=$enable_developer_features;
6052 if test "$enableval" = "yes"
6053 then
6054         DEV_FEATURES_CMT=
6055         printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6056
6057         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6058 printf "%s\n" "Enabling ext4 developer features" >&6; }
6059 else
6060         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6061 printf "%s\n" "Disabling ext4 developer features" >&6; }
6062         DEV_FEATURES_CMT="#"
6063 fi
6064
6065 else $as_nop
6066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6067 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6068 DEV_FEATURES_CMT=
6069
6070 fi
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6081         if test -n "$ac_tool_prefix"; then
6082   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 printf %s "checking for $ac_word... " >&6; }
6086 if test ${ac_cv_path_PKG_CONFIG+y}
6087 then :
6088   printf %s "(cached) " >&6
6089 else $as_nop
6090   case $PKG_CONFIG in
6091   [\\/]* | ?:[\\/]*)
6092   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6093   ;;
6094   *)
6095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   case $as_dir in #(((
6100     '') as_dir=./ ;;
6101     */) ;;
6102     *) as_dir=$as_dir/ ;;
6103   esac
6104     for ac_exec_ext in '' $ac_executable_extensions; do
6105   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6106     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6107     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111   done
6112 IFS=$as_save_IFS
6113
6114   ;;
6115 esac
6116 fi
6117 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6118 if test -n "$PKG_CONFIG"; then
6119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6120 printf "%s\n" "$PKG_CONFIG" >&6; }
6121 else
6122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 printf "%s\n" "no" >&6; }
6124 fi
6125
6126
6127 fi
6128 if test -z "$ac_cv_path_PKG_CONFIG"; then
6129   ac_pt_PKG_CONFIG=$PKG_CONFIG
6130   # Extract the first word of "pkg-config", so it can be a program name with args.
6131 set dummy pkg-config; ac_word=$2
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 printf %s "checking for $ac_word... " >&6; }
6134 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6135 then :
6136   printf %s "(cached) " >&6
6137 else $as_nop
6138   case $ac_pt_PKG_CONFIG in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   case $as_dir in #(((
6148     '') as_dir=./ ;;
6149     */) ;;
6150     *) as_dir=$as_dir/ ;;
6151   esac
6152     for ac_exec_ext in '' $ac_executable_extensions; do
6153   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6154     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6155     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159   done
6160 IFS=$as_save_IFS
6161
6162   ;;
6163 esac
6164 fi
6165 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6166 if test -n "$ac_pt_PKG_CONFIG"; then
6167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6168 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6169 else
6170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 printf "%s\n" "no" >&6; }
6172 fi
6173
6174   if test "x$ac_pt_PKG_CONFIG" = x; then
6175     PKG_CONFIG=""
6176   else
6177     case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     PKG_CONFIG=$ac_pt_PKG_CONFIG
6184   fi
6185 else
6186   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6187 fi
6188
6189 fi
6190 if test -n "$PKG_CONFIG"; then
6191         _pkg_min_version=0.9.0
6192         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6193 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6194         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6195                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6196 printf "%s\n" "yes" >&6; }
6197         else
6198                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 printf "%s\n" "no" >&6; }
6200                 PKG_CONFIG=""
6201         fi
6202 fi
6203 LIBUUID=
6204 DEPLIBUUID=
6205 STATIC_LIBUUID=
6206 DEPSTATIC_LIBUUID=
6207 PROFILED_LIBUUID=
6208 DEPPROFILED_LIBUUID=
6209 UUID_CMT=
6210 # Check whether --enable-libuuid was given.
6211 if test ${enable_libuuid+y}
6212 then :
6213   enableval=$enable_libuuid; if test "$enableval" = "no"
6214 then
6215         if test -z "$PKG_CONFIG"; then
6216                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6217         fi
6218
6219         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6220 printf %s "checking for uuid_generate in -luuid... " >&6; }
6221 if test ${ac_cv_lib_uuid_uuid_generate+y}
6222 then :
6223   printf %s "(cached) " >&6
6224 else $as_nop
6225   ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-luuid  $LIBS"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h.  */
6229
6230 /* Override any GCC internal prototype to avoid an error.
6231    Use char because int might match the return type of a GCC
6232    builtin and then its argument prototype would still apply.  */
6233 char uuid_generate ();
6234 int
6235 main (void)
6236 {
6237 return uuid_generate ();
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 if ac_fn_c_try_link "$LINENO"
6243 then :
6244   ac_cv_lib_uuid_uuid_generate=yes
6245 else $as_nop
6246   ac_cv_lib_uuid_uuid_generate=no
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6249     conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6251 fi
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6253 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6254 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6255 then :
6256   LIBUUID=`$PKG_CONFIG --libs uuid`;
6257                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6258 else $as_nop
6259   as_fn_error $? "external uuid library not found" "$LINENO" 5
6260 fi
6261
6262         PROFILED_LIBUUID=$LIBUUID
6263         UUID_CMT=#
6264         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6265 printf "%s\n" "Disabling private uuid library" >&6; }
6266 else
6267         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6268         DEPLIBUUID=$LIBUUID
6269         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6270         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6271         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6272         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6273         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6274 printf "%s\n" "Enabling private uuid library" >&6; }
6275 fi
6276
6277 else $as_nop
6278   if test -n "$PKG_CONFIG"; then
6279         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6280 printf %s "checking for uuid_generate in -luuid... " >&6; }
6281 if test ${ac_cv_lib_uuid_uuid_generate+y}
6282 then :
6283   printf %s "(cached) " >&6
6284 else $as_nop
6285   ac_check_lib_save_LIBS=$LIBS
6286 LIBS="-luuid  $LIBS"
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h.  */
6289
6290 /* Override any GCC internal prototype to avoid an error.
6291    Use char because int might match the return type of a GCC
6292    builtin and then its argument prototype would still apply.  */
6293 char uuid_generate ();
6294 int
6295 main (void)
6296 {
6297 return uuid_generate ();
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"
6303 then :
6304   ac_cv_lib_uuid_uuid_generate=yes
6305 else $as_nop
6306   ac_cv_lib_uuid_uuid_generate=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309     conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6311 fi
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6313 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6314 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6315 then :
6316   LIBUUID=`$PKG_CONFIG --libs uuid`;
6317                  STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6318 fi
6319
6320 fi
6321 if test -n "$LIBUUID"; then
6322         PROFILED_LIBUUID=$LIBUUID
6323         UUID_CMT=#
6324         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6325 printf "%s\n" "Using system uuid by default" >&6; }
6326 else
6327         LIBUUID='$(LIB)/libuuid'$LIB_EXT
6328         DEPLIBUUID=$LIBUUID
6329         STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6330         DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6331         PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6332         DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6333         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6334 printf "%s\n" "Enabling private uuid library by default" >&6; }
6335 fi
6336
6337 fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6354         if test -n "$ac_tool_prefix"; then
6355   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 printf %s "checking for $ac_word... " >&6; }
6359 if test ${ac_cv_path_PKG_CONFIG+y}
6360 then :
6361   printf %s "(cached) " >&6
6362 else $as_nop
6363   case $PKG_CONFIG in
6364   [\\/]* | ?:[\\/]*)
6365   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6366   ;;
6367   *)
6368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   case $as_dir in #(((
6373     '') as_dir=./ ;;
6374     */) ;;
6375     *) as_dir=$as_dir/ ;;
6376   esac
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6379     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6380     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387   ;;
6388 esac
6389 fi
6390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6391 if test -n "$PKG_CONFIG"; then
6392   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6393 printf "%s\n" "$PKG_CONFIG" >&6; }
6394 else
6395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 printf "%s\n" "no" >&6; }
6397 fi
6398
6399
6400 fi
6401 if test -z "$ac_cv_path_PKG_CONFIG"; then
6402   ac_pt_PKG_CONFIG=$PKG_CONFIG
6403   # Extract the first word of "pkg-config", so it can be a program name with args.
6404 set dummy pkg-config; ac_word=$2
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 printf %s "checking for $ac_word... " >&6; }
6407 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6408 then :
6409   printf %s "(cached) " >&6
6410 else $as_nop
6411   case $ac_pt_PKG_CONFIG in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   case $as_dir in #(((
6421     '') as_dir=./ ;;
6422     */) ;;
6423     *) as_dir=$as_dir/ ;;
6424   esac
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6427     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6428     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434
6435   ;;
6436 esac
6437 fi
6438 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6439 if test -n "$ac_pt_PKG_CONFIG"; then
6440   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6441 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6442 else
6443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 printf "%s\n" "no" >&6; }
6445 fi
6446
6447   if test "x$ac_pt_PKG_CONFIG" = x; then
6448     PKG_CONFIG=""
6449   else
6450     case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456     PKG_CONFIG=$ac_pt_PKG_CONFIG
6457   fi
6458 else
6459   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6460 fi
6461
6462 fi
6463 if test -n "$PKG_CONFIG"; then
6464         _pkg_min_version=0.9.0
6465         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6466 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6467         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6468                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469 printf "%s\n" "yes" >&6; }
6470         else
6471                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 printf "%s\n" "no" >&6; }
6473                 PKG_CONFIG=""
6474         fi
6475 fi
6476 LIBBLKID=
6477 DEPLIBBLKID=
6478 STATIC_LIBBLKID=
6479 DEPSTATIC_LIBBLKID=
6480 PROFILED_LIBBLKID=
6481 DEPPROFILED_LIBBLKID=
6482 BLKID_CMT=
6483
6484 # Check whether --enable-libblkid was given.
6485 if test ${enable_libblkid+y}
6486 then :
6487   enableval=$enable_libblkid; if test "$enableval" = "no"
6488 then
6489         if test -z "$PKG_CONFIG"; then
6490                 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6491         fi
6492
6493         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6494 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6495 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6496 then :
6497   printf %s "(cached) " >&6
6498 else $as_nop
6499   ac_check_lib_save_LIBS=$LIBS
6500 LIBS="-lblkid -luuid $LIBS"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h.  */
6503
6504 /* Override any GCC internal prototype to avoid an error.
6505    Use char because int might match the return type of a GCC
6506    builtin and then its argument prototype would still apply.  */
6507 char blkid_get_cache ();
6508 int
6509 main (void)
6510 {
6511 return blkid_get_cache ();
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 if ac_fn_c_try_link "$LINENO"
6517 then :
6518   ac_cv_lib_blkid_blkid_get_cache=yes
6519 else $as_nop
6520   ac_cv_lib_blkid_blkid_get_cache=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6523     conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6525 fi
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6527 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6528 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6529 then :
6530   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6531                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6532 else $as_nop
6533   as_fn_error $? "external blkid library not found" "$LINENO" 5
6534 fi
6535
6536         BLKID_CMT=#
6537         PROFILED_LIBBLKID=$LIBBLKID
6538         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6539 printf "%s\n" "Disabling private blkid library" >&6; }
6540 else
6541         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6542         DEPLIBBLKID=$LIBBLKID
6543         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6544         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6545         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6546         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6547         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6548
6549         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6550 printf "%s\n" "Enabling private blkid library" >&6; }
6551 fi
6552
6553 else $as_nop
6554   if test -n "$PKG_CONFIG"; then
6555         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6556 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6557 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6558 then :
6559   printf %s "(cached) " >&6
6560 else $as_nop
6561   ac_check_lib_save_LIBS=$LIBS
6562 LIBS="-lblkid  $LIBS"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h.  */
6565
6566 /* Override any GCC internal prototype to avoid an error.
6567    Use char because int might match the return type of a GCC
6568    builtin and then its argument prototype would still apply.  */
6569 char blkid_get_cache ();
6570 int
6571 main (void)
6572 {
6573 return blkid_get_cache ();
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 if ac_fn_c_try_link "$LINENO"
6579 then :
6580   ac_cv_lib_blkid_blkid_get_cache=yes
6581 else $as_nop
6582   ac_cv_lib_blkid_blkid_get_cache=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6585     conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6587 fi
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6589 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6590 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6591 then :
6592   LIBBLKID=`$PKG_CONFIG --libs blkid`;
6593                  STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6594 fi
6595
6596 fi
6597 if test -n "$LIBBLKID"; then
6598         BLKID_CMT=#
6599         PROFILED_LIBBLKID=$LIBBLKID
6600         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6601 printf "%s\n" "Using system blkid library by default" >&6; }
6602 else
6603         LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6604         DEPLIBBLKID=$LIBBLKID
6605         STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6606         DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6607         PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6608         DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6609         printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6610
6611         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6612 printf "%s\n" "Enabling private blkid library by default" >&6; }
6613 fi
6614
6615 fi
6616
6617
6618
6619
6620
6621
6622
6623
6624 ALL_CMT=
6625 SUBSET_CMT=
6626 # Check whether --enable-subset was given.
6627 if test ${enable_subset+y}
6628 then :
6629   enableval=$enable_subset; if test "$enableval" = "no"
6630 then
6631         SUBSET_CMT=#
6632         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6633 printf "%s\n" "Disabling subset-only build" >&6; }
6634 else
6635         ALL_CMT=#
6636         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6637 printf "%s\n" "Enabling subset-only-build" >&6; }
6638 fi
6639
6640 fi
6641
6642
6643
6644
6645 # Check whether --enable-backtrace was given.
6646 if test ${enable_backtrace+y}
6647 then :
6648   enableval=$enable_backtrace; if test "$enableval" = "no"
6649 then
6650         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6651 printf "%s\n" "Disabling use of backtrace" >&6; }
6652         printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6653
6654 else
6655         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6656 printf "%s\n" "Enabling use of backtrace" >&6; }
6657 fi
6658
6659 else $as_nop
6660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6661 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6662
6663 fi
6664
6665 # Check whether --enable-debugfs was given.
6666 if test ${enable_debugfs+y}
6667 then :
6668   enableval=$enable_debugfs; if test "$enableval" = "no"
6669 then
6670         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6671 printf "%s\n" "Disabling debugfs support" >&6; }
6672         DEBUGFS_CMT="#"
6673 else
6674         DEBUGFS_CMT=
6675         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6676 printf "%s\n" "Enabling debugfs support" >&6; }
6677 fi
6678
6679 else $as_nop
6680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6681 printf "%s\n" "Enabling debugfs support by default" >&6; }
6682 DEBUGFS_CMT=
6683
6684 fi
6685
6686
6687 # Check whether --enable-imager was given.
6688 if test ${enable_imager+y}
6689 then :
6690   enableval=$enable_imager; if test "$enableval" = "no"
6691 then
6692         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6693 printf "%s\n" "Disabling e2image support" >&6; }
6694         IMAGER_CMT="#"
6695 else
6696         IMAGER_CMT=
6697         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6698 printf "%s\n" "Enabling e2image support" >&6; }
6699 fi
6700
6701 else $as_nop
6702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6703 printf "%s\n" "Enabling e2image support by default" >&6; }
6704 IMAGER_CMT=
6705
6706 fi
6707
6708
6709 # Check whether --enable-resizer was given.
6710 if test ${enable_resizer+y}
6711 then :
6712   enableval=$enable_resizer; if test "$enableval" = "no"
6713 then
6714         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6715 printf "%s\n" "Disabling e2resize support" >&6; }
6716         RESIZER_CMT="#"
6717 else
6718         RESIZER_CMT=
6719         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6720 printf "%s\n" "Enabling e2resize support" >&6; }
6721 fi
6722
6723 else $as_nop
6724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6725 printf "%s\n" "Enabling e2resize support by default" >&6; }
6726 RESIZER_CMT=
6727
6728 fi
6729
6730
6731 # Check whether --enable-defrag was given.
6732 if test ${enable_defrag+y}
6733 then :
6734   enableval=$enable_defrag; if test "$enableval" = "no"
6735 then
6736         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6737 printf "%s\n" "Disabling e4defrag support" >&6; }
6738         DEFRAG_CMT="#"
6739 else
6740         DEFRAG_CMT=
6741         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6742 printf "%s\n" "Enabling e4defrag support" >&6; }
6743 fi
6744
6745 else $as_nop
6746   if test -z "$WITH_DIET_LIBC"
6747 then
6748         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6749 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6750         DEFRAG_CMT=
6751 else
6752         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6753 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6754         DEFRAG_CMT="#"
6755 fi
6756
6757 fi
6758
6759
6760 # Check whether --enable-fsck was given.
6761 if test ${enable_fsck+y}
6762 then :
6763   enableval=$enable_fsck; if test "$enableval" = "no"
6764 then
6765         FSCK_PROG='' FSCK_MAN=''
6766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6767 printf "%s\n" "Not building fsck wrapper" >&6; }
6768 else
6769         FSCK_PROG=fsck FSCK_MAN=fsck.8
6770         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6771 printf "%s\n" "Building fsck wrapper" >&6; }
6772 fi
6773
6774 else $as_nop
6775   case "$host_os" in
6776   gnu*)
6777     FSCK_PROG='' FSCK_MAN=''
6778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6779 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6780     ;;
6781   *)
6782     FSCK_PROG=fsck FSCK_MAN=fsck.8
6783     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6784 printf "%s\n" "Building fsck wrapper by default" >&6; }
6785 esac
6786
6787 fi
6788
6789
6790
6791 # Check whether --enable-e2initrd-helper was given.
6792 if test ${enable_e2initrd_helper+y}
6793 then :
6794   enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6795 then
6796         E2INITRD_PROG='' E2INITRD_MAN=''
6797         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6798 printf "%s\n" "Not building e2initrd helper" >&6; }
6799 else
6800         E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6801         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6802 printf "%s\n" "Building e2initrd helper" >&6; }
6803 fi
6804
6805 else $as_nop
6806   E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6808 printf "%s\n" "Building e2initrd helper by default" >&6; }
6809
6810 fi
6811
6812
6813
6814 # Check whether --enable-tls was given.
6815 if test ${enable_tls+y}
6816 then :
6817   enableval=$enable_tls; if test "$enableval" = "no"
6818 then
6819         try_tls=""
6820         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6821 printf "%s\n" "Disabling thread local support" >&6; }
6822 else
6823         try_tls="yes"
6824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6825 printf "%s\n" "Enabling thread local support" >&6; }
6826 fi
6827
6828 else $as_nop
6829   if test -n "$WITH_DIET_LIBC"
6830 then
6831         try_tls=""
6832         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6833 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6834 else
6835         try_tls="yes"
6836         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6837 printf "%s\n" "Try using thread local support by default" >&6; }
6838 fi
6839
6840 fi
6841
6842 if test "$try_tls" = "yes"
6843 then
6844
6845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6846 printf %s "checking for thread local storage (TLS) class... " >&6; }
6847   if test ${ac_cv_tls+y}
6848 then :
6849   printf %s "(cached) " >&6
6850 else $as_nop
6851
6852     ax_tls_keywords="__thread __declspec(thread) none"
6853     for ax_tls_keyword in $ax_tls_keywords; do
6854        case $ax_tls_keyword in
6855           none) ac_cv_tls=none ; break ;;
6856           *)
6857              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h.  */
6859 #include <stdlib.h>
6860                  static void
6861                  foo(void) {
6862                  static  $ax_tls_keyword  int bar;
6863                  exit(1);
6864                  }
6865 int
6866 main (void)
6867 {
6868
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"
6874 then :
6875   ac_cv_tls=$ax_tls_keyword ; break
6876 else $as_nop
6877   ac_cv_tls=none
6878
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6881           esac
6882     done
6883
6884 fi
6885
6886
6887   if test "$ac_cv_tls" != "none"; then
6888
6889 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6890
6891   fi
6892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6893 printf "%s\n" "$ac_cv_tls" >&6; }
6894
6895 fi
6896
6897 # Check whether --with-pthread was given.
6898 if test ${with_pthread+y}
6899 then :
6900   withval=$with_pthread; if test "$withval" = "no"
6901 then
6902         try_pthread=""
6903         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6904 printf "%s\n" "Disabling pthread support" >&6; }
6905 else
6906         try_pthread="yes"
6907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6908 printf "%s\n" "Testing for pthread support" >&6; }
6909 fi
6910
6911 else $as_nop
6912   try_pthread="yes"
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6914 printf "%s\n" "Try testing for pthread support by default" >&6; }
6915
6916 fi
6917
6918 if test "$try_pthread" = "yes"
6919 then
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6921 printf %s "checking for a sed that does not truncate output... " >&6; }
6922 if test ${ac_cv_path_SED+y}
6923 then :
6924   printf %s "(cached) " >&6
6925 else $as_nop
6926             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6927      for ac_i in 1 2 3 4 5 6 7; do
6928        ac_script="$ac_script$as_nl$ac_script"
6929      done
6930      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6931      { ac_script=; unset ac_script;}
6932      if test -z "$SED"; then
6933   ac_path_SED_found=false
6934   # Loop through the user's path and test for each of PROGNAME-LIST
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   case $as_dir in #(((
6940     '') as_dir=./ ;;
6941     */) ;;
6942     *) as_dir=$as_dir/ ;;
6943   esac
6944     for ac_prog in sed gsed
6945    do
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6948       as_fn_executable_p "$ac_path_SED" || continue
6949 # Check for GNU ac_path_SED and select it if it is found.
6950   # Check for GNU $ac_path_SED
6951 case `"$ac_path_SED" --version 2>&1` in
6952 *GNU*)
6953   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6954 *)
6955   ac_count=0
6956   printf %s 0123456789 >"conftest.in"
6957   while :
6958   do
6959     cat "conftest.in" "conftest.in" >"conftest.tmp"
6960     mv "conftest.tmp" "conftest.in"
6961     cp "conftest.in" "conftest.nl"
6962     printf "%s\n" '' >> "conftest.nl"
6963     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6964     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6965     as_fn_arith $ac_count + 1 && ac_count=$as_val
6966     if test $ac_count -gt ${ac_path_SED_max-0}; then
6967       # Best one so far, save it but keep looking for a better one
6968       ac_cv_path_SED="$ac_path_SED"
6969       ac_path_SED_max=$ac_count
6970     fi
6971     # 10*(2^10) chars as input seems more than enough
6972     test $ac_count -gt 10 && break
6973   done
6974   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6975 esac
6976
6977       $ac_path_SED_found && break 3
6978     done
6979   done
6980   done
6981 IFS=$as_save_IFS
6982   if test -z "$ac_cv_path_SED"; then
6983     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6984   fi
6985 else
6986   ac_cv_path_SED=$SED
6987 fi
6988
6989 fi
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6991 printf "%s\n" "$ac_cv_path_SED" >&6; }
6992  SED="$ac_cv_path_SED"
6993   rm -f conftest.sed
6994
6995
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6997 printf %s "checking for grep that handles long lines and -e... " >&6; }
6998 if test ${ac_cv_path_GREP+y}
6999 then :
7000   printf %s "(cached) " >&6
7001 else $as_nop
7002   if test -z "$GREP"; then
7003   ac_path_GREP_found=false
7004   # Loop through the user's path and test for each of PROGNAME-LIST
7005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7007 do
7008   IFS=$as_save_IFS
7009   case $as_dir in #(((
7010     '') as_dir=./ ;;
7011     */) ;;
7012     *) as_dir=$as_dir/ ;;
7013   esac
7014     for ac_prog in grep ggrep
7015    do
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7018       as_fn_executable_p "$ac_path_GREP" || continue
7019 # Check for GNU ac_path_GREP and select it if it is found.
7020   # Check for GNU $ac_path_GREP
7021 case `"$ac_path_GREP" --version 2>&1` in
7022 *GNU*)
7023   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7024 *)
7025   ac_count=0
7026   printf %s 0123456789 >"conftest.in"
7027   while :
7028   do
7029     cat "conftest.in" "conftest.in" >"conftest.tmp"
7030     mv "conftest.tmp" "conftest.in"
7031     cp "conftest.in" "conftest.nl"
7032     printf "%s\n" 'GREP' >> "conftest.nl"
7033     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7034     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7035     as_fn_arith $ac_count + 1 && ac_count=$as_val
7036     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7037       # Best one so far, save it but keep looking for a better one
7038       ac_cv_path_GREP="$ac_path_GREP"
7039       ac_path_GREP_max=$ac_count
7040     fi
7041     # 10*(2^10) chars as input seems more than enough
7042     test $ac_count -gt 10 && break
7043   done
7044   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7045 esac
7046
7047       $ac_path_GREP_found && break 3
7048     done
7049   done
7050   done
7051 IFS=$as_save_IFS
7052   if test -z "$ac_cv_path_GREP"; then
7053     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7054   fi
7055 else
7056   ac_cv_path_GREP=$GREP
7057 fi
7058
7059 fi
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7061 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7062  GREP="$ac_cv_path_GREP"
7063
7064
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7066 printf %s "checking for egrep... " >&6; }
7067 if test ${ac_cv_path_EGREP+y}
7068 then :
7069   printf %s "(cached) " >&6
7070 else $as_nop
7071   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7072    then ac_cv_path_EGREP="$GREP -E"
7073    else
7074      if test -z "$EGREP"; then
7075   ac_path_EGREP_found=false
7076   # Loop through the user's path and test for each of PROGNAME-LIST
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7079 do
7080   IFS=$as_save_IFS
7081   case $as_dir in #(((
7082     '') as_dir=./ ;;
7083     */) ;;
7084     *) as_dir=$as_dir/ ;;
7085   esac
7086     for ac_prog in egrep
7087    do
7088     for ac_exec_ext in '' $ac_executable_extensions; do
7089       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7090       as_fn_executable_p "$ac_path_EGREP" || continue
7091 # Check for GNU ac_path_EGREP and select it if it is found.
7092   # Check for GNU $ac_path_EGREP
7093 case `"$ac_path_EGREP" --version 2>&1` in
7094 *GNU*)
7095   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7096 *)
7097   ac_count=0
7098   printf %s 0123456789 >"conftest.in"
7099   while :
7100   do
7101     cat "conftest.in" "conftest.in" >"conftest.tmp"
7102     mv "conftest.tmp" "conftest.in"
7103     cp "conftest.in" "conftest.nl"
7104     printf "%s\n" 'EGREP' >> "conftest.nl"
7105     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7106     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7107     as_fn_arith $ac_count + 1 && ac_count=$as_val
7108     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7109       # Best one so far, save it but keep looking for a better one
7110       ac_cv_path_EGREP="$ac_path_EGREP"
7111       ac_path_EGREP_max=$ac_count
7112     fi
7113     # 10*(2^10) chars as input seems more than enough
7114     test $ac_count -gt 10 && break
7115   done
7116   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7117 esac
7118
7119       $ac_path_EGREP_found && break 3
7120     done
7121   done
7122   done
7123 IFS=$as_save_IFS
7124   if test -z "$ac_cv_path_EGREP"; then
7125     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7126   fi
7127 else
7128   ac_cv_path_EGREP=$EGREP
7129 fi
7130
7131    fi
7132 fi
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7134 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7135  EGREP="$ac_cv_path_EGREP"
7136
7137
7138
7139
7140
7141
7142 ac_ext=c
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148 ax_pthread_ok=no
7149
7150 # We used to check for pthread.h first, but this fails if pthread.h
7151 # requires special compiler flags (e.g. on Tru64 or Sequent).
7152 # It gets checked for in the link test anyway.
7153
7154 # First of all, check if the user has set any of the PTHREAD_LIBS,
7155 # etcetera environment variables, and if threads linking works using
7156 # them:
7157 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7158         ax_pthread_save_CC="$CC"
7159         ax_pthread_save_CFLAGS="$CFLAGS"
7160         ax_pthread_save_LIBS="$LIBS"
7161         if test "x$PTHREAD_CC" != "x"
7162 then :
7163   CC="$PTHREAD_CC"
7164 fi
7165         if test "x$PTHREAD_CXX" != "x"
7166 then :
7167   CXX="$PTHREAD_CXX"
7168 fi
7169         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7170         LIBS="$PTHREAD_LIBS $LIBS"
7171         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7172 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175
7176 /* Override any GCC internal prototype to avoid an error.
7177    Use char because int might match the return type of a GCC
7178    builtin and then its argument prototype would still apply.  */
7179 char pthread_join ();
7180 int
7181 main (void)
7182 {
7183 return pthread_join ();
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_link "$LINENO"
7189 then :
7190   ax_pthread_ok=yes
7191 fi
7192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7193     conftest$ac_exeext conftest.$ac_ext
7194         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7195 printf "%s\n" "$ax_pthread_ok" >&6; }
7196         if test "x$ax_pthread_ok" = "xno"; then
7197                 PTHREAD_LIBS=""
7198                 PTHREAD_CFLAGS=""
7199         fi
7200         CC="$ax_pthread_save_CC"
7201         CFLAGS="$ax_pthread_save_CFLAGS"
7202         LIBS="$ax_pthread_save_LIBS"
7203 fi
7204
7205 # We must check for the threads library under a number of different
7206 # names; the ordering is very important because some systems
7207 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7208 # libraries is broken (non-POSIX).
7209
7210 # Create a list of thread flags to try. Items with a "," contain both
7211 # C compiler flags (before ",") and linker flags (after ","). Other items
7212 # starting with a "-" are C compiler flags, and remaining items are
7213 # library names, except for "none" which indicates that we try without
7214 # any flags at all, and "pthread-config" which is a program returning
7215 # the flags for the Pth emulation library.
7216
7217 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7218
7219 # The ordering *is* (sometimes) important.  Some notes on the
7220 # individual items follow:
7221
7222 # pthreads: AIX (must check this before -lpthread)
7223 # none: in case threads are in libc; should be tried before -Kthread and
7224 #       other compiler flags to prevent continual compiler warnings
7225 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7226 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7227 #           (Note: HP C rejects this with "bad form for `-t' option")
7228 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7229 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7230 #      doesn't hurt to check since this sometimes defines pthreads and
7231 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
7232 #      is present but should not be used directly; and before -mthreads,
7233 #      because the compiler interprets this as "-mt" + "-hreads")
7234 # -mthreads: Mingw32/gcc, Lynx/gcc
7235 # pthread: Linux, etcetera
7236 # --thread-safe: KAI C++
7237 # pthread-config: use pthread-config program (for GNU Pth library)
7238
7239 case $host_os in
7240
7241         freebsd*)
7242
7243         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7244         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7245
7246         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7247         ;;
7248
7249         hpux*)
7250
7251         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7252         # multi-threading and also sets -lpthread."
7253
7254         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7255         ;;
7256
7257         openedition*)
7258
7259         # IBM z/OS requires a feature-test macro to be defined in order to
7260         # enable POSIX threads at all, so give the user a hint if this is
7261         # not set. (We don't define these ourselves, as they can affect
7262         # other portions of the system API in unpredictable ways.)
7263
7264         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266
7267 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7268              AX_PTHREAD_ZOS_MISSING
7269 #            endif
7270
7271 _ACEOF
7272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7273   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7274 then :
7275   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7276 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7277 fi
7278 rm -rf conftest*
7279
7280         ;;
7281
7282         solaris*)
7283
7284         # On Solaris (at least, for some versions), libc contains stubbed
7285         # (non-functional) versions of the pthreads routines, so link-based
7286         # tests will erroneously succeed. (N.B.: The stubs are missing
7287         # pthread_cleanup_push, or rather a function called by this macro,
7288         # so we could check for that, but who knows whether they'll stub
7289         # that too in a future libc.)  So we'll check first for the
7290         # standard Solaris way of linking pthreads (-mt -lpthread).
7291
7292         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7293         ;;
7294 esac
7295
7296 # Are we compiling with Clang?
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7299 printf %s "checking whether $CC is Clang... " >&6; }
7300 if test ${ax_cv_PTHREAD_CLANG+y}
7301 then :
7302   printf %s "(cached) " >&6
7303 else $as_nop
7304   ax_cv_PTHREAD_CLANG=no
7305      # Note that Autoconf sets GCC=yes for Clang as well as GCC
7306      if test "x$GCC" = "xyes"; then
7307         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7310 #            if defined(__clang__) && defined(__llvm__)
7311              AX_PTHREAD_CC_IS_CLANG
7312 #            endif
7313
7314 _ACEOF
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7317 then :
7318   ax_cv_PTHREAD_CLANG=yes
7319 fi
7320 rm -rf conftest*
7321
7322      fi
7323
7324 fi
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7326 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7327 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7328
7329
7330 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7331
7332 # Note that for GCC and Clang -pthread generally implies -lpthread,
7333 # except when -nostdlib is passed.
7334 # This is problematic using libtool to build C++ shared libraries with pthread:
7335 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7336 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7337 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7338 # To solve this, first try -pthread together with -lpthread for GCC
7339
7340 if test "x$GCC" = "xyes"
7341 then :
7342   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7343 fi
7344
7345 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7346
7347 if test "x$ax_pthread_clang" = "xyes"
7348 then :
7349   ax_pthread_flags="-pthread,-lpthread -pthread"
7350 fi
7351
7352
7353 # The presence of a feature test macro requesting re-entrant function
7354 # definitions is, on some systems, a strong hint that pthreads support is
7355 # correctly enabled
7356
7357 case $host_os in
7358         darwin* | hpux* | linux* | osf* | solaris*)
7359         ax_pthread_check_macro="_REENTRANT"
7360         ;;
7361
7362         aix*)
7363         ax_pthread_check_macro="_THREAD_SAFE"
7364         ;;
7365
7366         *)
7367         ax_pthread_check_macro="--"
7368         ;;
7369 esac
7370 if test "x$ax_pthread_check_macro" = "x--"
7371 then :
7372   ax_pthread_check_cond=0
7373 else $as_nop
7374   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7375 fi
7376
7377
7378 if test "x$ax_pthread_ok" = "xno"; then
7379 for ax_pthread_try_flag in $ax_pthread_flags; do
7380
7381         case $ax_pthread_try_flag in
7382                 none)
7383                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7384 printf %s "checking whether pthreads work without any flags... " >&6; }
7385                 ;;
7386
7387                 *,*)
7388                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7389                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7390                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7391 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7392                 ;;
7393
7394                 -*)
7395                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7396 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7397                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7398                 ;;
7399
7400                 pthread-config)
7401                 # Extract the first word of "pthread-config", so it can be a program name with args.
7402 set dummy pthread-config; ac_word=$2
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 printf %s "checking for $ac_word... " >&6; }
7405 if test ${ac_cv_prog_ax_pthread_config+y}
7406 then :
7407   printf %s "(cached) " >&6
7408 else $as_nop
7409   if test -n "$ax_pthread_config"; then
7410   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   case $as_dir in #(((
7417     '') as_dir=./ ;;
7418     */) ;;
7419     *) as_dir=$as_dir/ ;;
7420   esac
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_ax_pthread_config="yes"
7424     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7432 fi
7433 fi
7434 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7435 if test -n "$ax_pthread_config"; then
7436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7437 printf "%s\n" "$ax_pthread_config" >&6; }
7438 else
7439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 printf "%s\n" "no" >&6; }
7441 fi
7442
7443
7444                 if test "x$ax_pthread_config" = "xno"
7445 then :
7446   continue
7447 fi
7448                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7449                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7450                 ;;
7451
7452                 *)
7453                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7454 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7455                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7456                 ;;
7457         esac
7458
7459         ax_pthread_save_CFLAGS="$CFLAGS"
7460         ax_pthread_save_LIBS="$LIBS"
7461         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7462         LIBS="$PTHREAD_LIBS $LIBS"
7463
7464         # Check for various functions.  We must include pthread.h,
7465         # since some functions may be macros.  (On the Sequent, we
7466         # need a special flag -Kthread to make this header compile.)
7467         # We check for pthread_join because it is in -lpthread on IRIX
7468         # while pthread_create is in libc.  We check for pthread_attr_init
7469         # due to DEC craziness with -lpthreads.  We check for
7470         # pthread_cleanup_push because it is one of the few pthread
7471         # functions on Solaris that doesn't have a non-functional libc stub.
7472         # We try pthread_create on general principles.
7473
7474         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476 #include <pthread.h>
7477 #                       if $ax_pthread_check_cond
7478 #                        error "$ax_pthread_check_macro must be defined"
7479 #                       endif
7480                         static void *some_global = NULL;
7481                         static void routine(void *a)
7482                           {
7483                              /* To avoid any unused-parameter or
7484                                 unused-but-set-parameter warning.  */
7485                              some_global = a;
7486                           }
7487                         static void *start_routine(void *a) { return a; }
7488 int
7489 main (void)
7490 {
7491 pthread_t th; pthread_attr_t attr;
7492                         pthread_create(&th, 0, start_routine, 0);
7493                         pthread_join(th, 0);
7494                         pthread_attr_init(&attr);
7495                         pthread_cleanup_push(routine, 0);
7496                         pthread_cleanup_pop(0) /* ; */
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"
7502 then :
7503   ax_pthread_ok=yes
7504 fi
7505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7506     conftest$ac_exeext conftest.$ac_ext
7507
7508         CFLAGS="$ax_pthread_save_CFLAGS"
7509         LIBS="$ax_pthread_save_LIBS"
7510
7511         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7512 printf "%s\n" "$ax_pthread_ok" >&6; }
7513         if test "x$ax_pthread_ok" = "xyes"
7514 then :
7515   break
7516 fi
7517
7518         PTHREAD_LIBS=""
7519         PTHREAD_CFLAGS=""
7520 done
7521 fi
7522
7523
7524 # Clang needs special handling, because older versions handle the -pthread
7525 # option in a rather... idiosyncratic way
7526
7527 if test "x$ax_pthread_clang" = "xyes"; then
7528
7529         # Clang takes -pthread; it has never supported any other flag
7530
7531         # (Note 1: This will need to be revisited if a system that Clang
7532         # supports has POSIX threads in a separate library.  This tends not
7533         # to be the way of modern systems, but it's conceivable.)
7534
7535         # (Note 2: On some systems, notably Darwin, -pthread is not needed
7536         # to get POSIX threads support; the API is always present and
7537         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
7538         # -pthread does define _REENTRANT, and while the Darwin headers
7539         # ignore this macro, third-party headers might not.)
7540
7541         # However, older versions of Clang make a point of warning the user
7542         # that, in an invocation where only linking and no compilation is
7543         # taking place, the -pthread option has no effect ("argument unused
7544         # during compilation").  They expect -pthread to be passed in only
7545         # when source code is being compiled.
7546         #
7547         # Problem is, this is at odds with the way Automake and most other
7548         # C build frameworks function, which is that the same flags used in
7549         # compilation (CFLAGS) are also used in linking.  Many systems
7550         # supported by AX_PTHREAD require exactly this for POSIX threads
7551         # support, and in fact it is often not straightforward to specify a
7552         # flag that is used only in the compilation phase and not in
7553         # linking.  Such a scenario is extremely rare in practice.
7554         #
7555         # Even though use of the -pthread flag in linking would only print
7556         # a warning, this can be a nuisance for well-run software projects
7557         # that build with -Werror.  So if the active version of Clang has
7558         # this misfeature, we search for an option to squash it.
7559
7560         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7561 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7562 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7563 then :
7564   printf %s "(cached) " >&6
7565 else $as_nop
7566   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7567              # Create an alternate version of $ac_link that compiles and
7568              # links in two steps (.c -> .o, .o -> exe) instead of one
7569              # (.c -> exe), because the warning occurs only in the second
7570              # step
7571              ax_pthread_save_ac_link="$ac_link"
7572              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7573              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7574              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7575              ax_pthread_save_CFLAGS="$CFLAGS"
7576              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7577                 if test "x$ax_pthread_try" = "xunknown"
7578 then :
7579   break
7580 fi
7581                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7582                 ac_link="$ax_pthread_save_ac_link"
7583                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h.  */
7585 int main(void){return 0;}
7586 _ACEOF
7587 if ac_fn_c_try_link "$LINENO"
7588 then :
7589   ac_link="$ax_pthread_2step_ac_link"
7590                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h.  */
7592 int main(void){return 0;}
7593 _ACEOF
7594 if ac_fn_c_try_link "$LINENO"
7595 then :
7596   break
7597 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7599     conftest$ac_exeext conftest.$ac_ext
7600
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603     conftest$ac_exeext conftest.$ac_ext
7604              done
7605              ac_link="$ax_pthread_save_ac_link"
7606              CFLAGS="$ax_pthread_save_CFLAGS"
7607              if test "x$ax_pthread_try" = "x"
7608 then :
7609   ax_pthread_try=no
7610 fi
7611              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7612
7613 fi
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7615 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7616
7617         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7618                 no | unknown) ;;
7619                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7620         esac
7621
7622 fi # $ax_pthread_clang = yes
7623
7624
7625
7626 # Various other checks:
7627 if test "x$ax_pthread_ok" = "xyes"; then
7628         ax_pthread_save_CFLAGS="$CFLAGS"
7629         ax_pthread_save_LIBS="$LIBS"
7630         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7631         LIBS="$PTHREAD_LIBS $LIBS"
7632
7633         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7634         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7635 printf %s "checking for joinable pthread attribute... " >&6; }
7636 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7637 then :
7638   printf %s "(cached) " >&6
7639 else $as_nop
7640   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7641              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7642                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h.  */
7644 #include <pthread.h>
7645 int
7646 main (void)
7647 {
7648 int attr = $ax_pthread_attr; return attr /* ; */
7649   ;
7650   return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"
7654 then :
7655   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7658     conftest$ac_exeext conftest.$ac_ext
7659              done
7660
7661 fi
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7663 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7664         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7665                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7666                test "x$ax_pthread_joinable_attr_defined" != "xyes"
7667 then :
7668
7669 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7670
7671                ax_pthread_joinable_attr_defined=yes
7672
7673 fi
7674
7675         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7676 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7677 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7678 then :
7679   printf %s "(cached) " >&6
7680 else $as_nop
7681   ax_cv_PTHREAD_SPECIAL_FLAGS=no
7682              case $host_os in
7683              solaris*)
7684              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7685              ;;
7686              esac
7687
7688 fi
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7690 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7691         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7692                test "x$ax_pthread_special_flags_added" != "xyes"
7693 then :
7694   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7695                ax_pthread_special_flags_added=yes
7696 fi
7697
7698         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7699 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7700 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7701 then :
7702   printf %s "(cached) " >&6
7703 else $as_nop
7704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h.  */
7706 #include <pthread.h>
7707 int
7708 main (void)
7709 {
7710 int i = PTHREAD_PRIO_INHERIT;
7711                                                return i;
7712   ;
7713   return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_link "$LINENO"
7717 then :
7718   ax_cv_PTHREAD_PRIO_INHERIT=yes
7719 else $as_nop
7720   ax_cv_PTHREAD_PRIO_INHERIT=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7723     conftest$ac_exeext conftest.$ac_ext
7724
7725 fi
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7727 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7728         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7729                test "x$ax_pthread_prio_inherit_defined" != "xyes"
7730 then :
7731
7732 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7733
7734                ax_pthread_prio_inherit_defined=yes
7735
7736 fi
7737
7738         CFLAGS="$ax_pthread_save_CFLAGS"
7739         LIBS="$ax_pthread_save_LIBS"
7740
7741         # More AIX lossage: compile with *_r variant
7742         if test "x$GCC" != "xyes"; then
7743             case $host_os in
7744                 aix*)
7745                 case "x/$CC" in #(
7746   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7747     #handle absolute path differently from PATH based program lookup
7748                      case "x$CC" in #(
7749   x/*) :
7750
7751                            if as_fn_executable_p ${CC}_r
7752 then :
7753   PTHREAD_CC="${CC}_r"
7754 fi
7755                            if test "x${CXX}" != "x"
7756 then :
7757   if as_fn_executable_p ${CXX}_r
7758 then :
7759   PTHREAD_CXX="${CXX}_r"
7760 fi
7761 fi
7762                           ;; #(
7763   *) :
7764
7765                            for ac_prog in ${CC}_r
7766 do
7767   # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 printf %s "checking for $ac_word... " >&6; }
7771 if test ${ac_cv_prog_PTHREAD_CC+y}
7772 then :
7773   printf %s "(cached) " >&6
7774 else $as_nop
7775   if test -n "$PTHREAD_CC"; then
7776   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   case $as_dir in #(((
7783     '') as_dir=./ ;;
7784     */) ;;
7785     *) as_dir=$as_dir/ ;;
7786   esac
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7789     ac_cv_prog_PTHREAD_CC="$ac_prog"
7790     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7800 if test -n "$PTHREAD_CC"; then
7801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7802 printf "%s\n" "$PTHREAD_CC" >&6; }
7803 else
7804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 printf "%s\n" "no" >&6; }
7806 fi
7807
7808
7809   test -n "$PTHREAD_CC" && break
7810 done
7811 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7812
7813                            if test "x${CXX}" != "x"
7814 then :
7815   for ac_prog in ${CXX}_r
7816 do
7817   # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 printf %s "checking for $ac_word... " >&6; }
7821 if test ${ac_cv_prog_PTHREAD_CXX+y}
7822 then :
7823   printf %s "(cached) " >&6
7824 else $as_nop
7825   if test -n "$PTHREAD_CXX"; then
7826   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   case $as_dir in #(((
7833     '') as_dir=./ ;;
7834     */) ;;
7835     *) as_dir=$as_dir/ ;;
7836   esac
7837     for ac_exec_ext in '' $ac_executable_extensions; do
7838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7839     ac_cv_prog_PTHREAD_CXX="$ac_prog"
7840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7841     break 2
7842   fi
7843 done
7844   done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7850 if test -n "$PTHREAD_CXX"; then
7851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7852 printf "%s\n" "$PTHREAD_CXX" >&6; }
7853 else
7854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 printf "%s\n" "no" >&6; }
7856 fi
7857
7858
7859   test -n "$PTHREAD_CXX" && break
7860 done
7861 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7862
7863 fi
7864
7865                       ;;
7866 esac
7867                      ;; #(
7868   *) :
7869      ;;
7870 esac
7871                 ;;
7872             esac
7873         fi
7874 fi
7875
7876 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7877 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7878
7879
7880
7881
7882
7883
7884 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7885 if test "x$ax_pthread_ok" = "xyes"; then
7886
7887 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7888
7889         :
7890 else
7891         ax_pthread_ok=no
7892
7893 fi
7894 ac_ext=c
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899
7900
7901 else
7902 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7903
7904 fi
7905
7906 # Check whether --enable-uuidd was given.
7907 if test ${enable_uuidd+y}
7908 then :
7909   enableval=$enable_uuidd; if test "$enableval" = "no"
7910 then
7911         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7912 printf "%s\n" "Not building uuidd" >&6; }
7913         UUIDD_CMT="#"
7914 else
7915         printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7916
7917         UUIDD_CMT=""
7918         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7919 printf "%s\n" "Building uuidd" >&6; }
7920 fi
7921
7922 else $as_nop
7923   printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7924
7925 if test -z "$UUID_CMT"
7926 then
7927         UUIDD_CMT=""
7928         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7929 printf "%s\n" "Building uuidd by default" >&6; }
7930 else
7931         UUIDD_CMT="#"
7932         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7933 printf "%s\n" "Disabling uuidd by default" >&6; }
7934 fi
7935
7936 fi
7937
7938
7939
7940 # Check whether --enable-mmp was given.
7941 if test ${enable_mmp+y}
7942 then :
7943   enableval=$enable_mmp; if test "$enableval" = "no"
7944 then
7945         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7946 printf "%s\n" "Disabling mmp support" >&6; }
7947 else
7948         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7949 printf "%s\n" "Enabling mmp support" >&6; }
7950         printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7951
7952 fi
7953
7954 else $as_nop
7955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7956 printf "%s\n" "Enabling mmp support by default" >&6; }
7957 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7958
7959
7960 fi
7961
7962
7963 # Check whether --enable-tdb was given.
7964 if test ${enable_tdb+y}
7965 then :
7966   enableval=$enable_tdb;
7967 if test "$enableval" = "no"
7968 then
7969         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7970 printf "%s\n" "Disabling tdb support" >&6; }
7971         CONFIG_TDB=0
7972 else
7973         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7974 printf "%s\n" "Enabling tdb support" >&6; }
7975         CONFIG_TDB=1
7976 fi
7977
7978
7979 else $as_nop
7980
7981 case "$host_os" in
7982 mingw*)
7983         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7984 printf "%s\n" "Disabling tdb support by default" >&6; }
7985         CONFIG_TDB=0
7986         ;;
7987 *)
7988         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7989 printf "%s\n" "Enabling tdb support by default" >&6; }
7990         CONFIG_TDB=1
7991         ;;
7992 esac
7993
7994
7995 fi
7996
7997 if test "$CONFIG_TDB" = "1"
7998 then
7999         printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8000
8001         TDB_CMT=""
8002         TDB_MAN_COMMENT=""
8003 else
8004         TDB_CMT="#"
8005         TDB_MAN_COMMENT='.\"'
8006 fi
8007
8008
8009
8010 # Check whether --enable-bmap-stats was given.
8011 if test ${enable_bmap_stats+y}
8012 then :
8013   enableval=$enable_bmap_stats; if test "$enableval" = "no"
8014 then
8015         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8016 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8017 else
8018         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8019 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8020         printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8021
8022 fi
8023
8024 else $as_nop
8025   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8026 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8027 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8028
8029
8030 fi
8031
8032
8033 # Check whether --enable-bmap-stats-ops was given.
8034 if test ${enable_bmap_stats_ops+y}
8035 then :
8036   enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8037 then
8038         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8039 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8040 else
8041                 if test "x${enable_bmap_stats}" = "xno"
8042 then :
8043   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8044 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8045 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8046 See \`config.log' for more details" "$LINENO" 5; }
8047 fi
8048
8049         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8050 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8051         printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8052
8053 fi
8054
8055 else $as_nop
8056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8057 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8058
8059 fi
8060
8061 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8062
8063 GETTEXT_PACKAGE=e2fsprogs
8064 PACKAGE=e2fsprogs
8065 VERSION="$E2FSPROGS_VERSION"
8066 VERSION=0.14.1
8067
8068 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8069
8070
8071 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8072
8073
8074
8075
8076
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8078 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8079 set x ${MAKE-make}
8080 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8081 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8082 then :
8083   printf %s "(cached) " >&6
8084 else $as_nop
8085   cat >conftest.make <<\_ACEOF
8086 SHELL = /bin/sh
8087 all:
8088         @echo '@@@%%%=$(MAKE)=@@@%%%'
8089 _ACEOF
8090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8092   *@@@%%%=?*=@@@%%%*)
8093     eval ac_cv_prog_make_${ac_make}_set=yes;;
8094   *)
8095     eval ac_cv_prog_make_${ac_make}_set=no;;
8096 esac
8097 rm -f conftest.make
8098 fi
8099 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 printf "%s\n" "yes" >&6; }
8102   SET_MAKE=
8103 else
8104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 printf "%s\n" "no" >&6; }
8106   SET_MAKE="MAKE=${MAKE-make}"
8107 fi
8108
8109
8110   # Find a good install program.  We prefer a C program (faster),
8111 # so one script is as good as another.  But avoid the broken or
8112 # incompatible versions:
8113 # SysV /etc/install, /usr/sbin/install
8114 # SunOS /usr/etc/install
8115 # IRIX /sbin/install
8116 # AIX /bin/install
8117 # AmigaOS /C/install, which installs bootblocks on floppy discs
8118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8121 # OS/2's system install, which has a completely different semantic
8122 # ./install, which can be erroneously created by make from ./install.sh.
8123 # Reject install programs that cannot install multiple files.
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8125 printf %s "checking for a BSD-compatible install... " >&6; }
8126 if test -z "$INSTALL"; then
8127 if test ${ac_cv_path_install+y}
8128 then :
8129   printf %s "(cached) " >&6
8130 else $as_nop
8131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   case $as_dir in #(((
8136     '') as_dir=./ ;;
8137     */) ;;
8138     *) as_dir=$as_dir/ ;;
8139   esac
8140     # Account for fact that we put trailing slashes in our PATH walk.
8141 case $as_dir in #((
8142   ./ | /[cC]/* | \
8143   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8144   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8145   /usr/ucb/* ) ;;
8146   *)
8147     # OSF1 and SCO ODT 3.0 have their own names for install.
8148     # Don't use installbsd from OSF since it installs stuff as root
8149     # by default.
8150     for ac_prog in ginstall scoinst install; do
8151       for ac_exec_ext in '' $ac_executable_extensions; do
8152         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8153           if test $ac_prog = install &&
8154             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8155             # AIX install.  It has an incompatible calling convention.
8156             :
8157           elif test $ac_prog = install &&
8158             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8159             # program-specific install script used by HP pwplus--don't use.
8160             :
8161           else
8162             rm -rf conftest.one conftest.two conftest.dir
8163             echo one > conftest.one
8164             echo two > conftest.two
8165             mkdir conftest.dir
8166             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8167               test -s conftest.one && test -s conftest.two &&
8168               test -s conftest.dir/conftest.one &&
8169               test -s conftest.dir/conftest.two
8170             then
8171               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8172               break 3
8173             fi
8174           fi
8175         fi
8176       done
8177     done
8178     ;;
8179 esac
8180
8181   done
8182 IFS=$as_save_IFS
8183
8184 rm -rf conftest.one conftest.two conftest.dir
8185
8186 fi
8187   if test ${ac_cv_path_install+y}; then
8188     INSTALL=$ac_cv_path_install
8189   else
8190     # As a last resort, use the slow shell script.  Don't cache a
8191     # value for INSTALL within a source directory, because that will
8192     # break other packages using the cache if that directory is
8193     # removed, or if the value is a relative name.
8194     INSTALL=$ac_install_sh
8195   fi
8196 fi
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8198 printf "%s\n" "$INSTALL" >&6; }
8199
8200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8201 # It thinks the first close brace ends the variable substitution.
8202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8203
8204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8205
8206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8207
8208
8209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8210 printf %s "checking for a race-free mkdir -p... " >&6; }
8211 if test -z "$MKDIR_P"; then
8212   if test ${ac_cv_path_mkdir+y}
8213 then :
8214   printf %s "(cached) " >&6
8215 else $as_nop
8216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8218 do
8219   IFS=$as_save_IFS
8220   case $as_dir in #(((
8221     '') as_dir=./ ;;
8222     */) ;;
8223     *) as_dir=$as_dir/ ;;
8224   esac
8225     for ac_prog in mkdir gmkdir; do
8226          for ac_exec_ext in '' $ac_executable_extensions; do
8227            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8228            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8229              'mkdir ('*'coreutils) '* | \
8230              'BusyBox '* | \
8231              'mkdir (fileutils) '4.1*)
8232                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8233                break 3;;
8234            esac
8235          done
8236        done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241
8242   test -d ./--version && rmdir ./--version
8243   if test ${ac_cv_path_mkdir+y}; then
8244     MKDIR_P="$ac_cv_path_mkdir -p"
8245   else
8246     # As a last resort, use the slow shell script.  Don't cache a
8247     # value for MKDIR_P within a source directory, because that will
8248     # break other packages using the cache if that directory is
8249     # removed, or if the value is a relative name.
8250     MKDIR_P="$ac_install_sh -d"
8251   fi
8252 fi
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8254 printf "%s\n" "$MKDIR_P" >&6; }
8255
8256
8257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8258 printf %s "checking whether NLS is requested... " >&6; }
8259     # Check whether --enable-nls was given.
8260 if test ${enable_nls+y}
8261 then :
8262   enableval=$enable_nls; USE_NLS=$enableval
8263 else $as_nop
8264   USE_NLS=yes
8265 fi
8266
8267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8268 printf "%s\n" "$USE_NLS" >&6; }
8269
8270
8271
8272
8273       GETTEXT_MACRO_VERSION=0.20
8274
8275
8276
8277
8278 # Prepare PATH_SEPARATOR.
8279 # The user is always right.
8280 if test "${PATH_SEPARATOR+set}" != set; then
8281   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8282   # contains only /bin. Note that ksh looks also at the FPATH variable,
8283   # so we have to set that as well for the test.
8284   PATH_SEPARATOR=:
8285   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8286     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8287            || PATH_SEPARATOR=';'
8288        }
8289 fi
8290
8291 # Find out how to test for executable files. Don't use a zero-byte file,
8292 # as systems may use methods other than mode bits to determine executability.
8293 cat >conf$$.file <<_ASEOF
8294 #! /bin/sh
8295 exit 0
8296 _ASEOF
8297 chmod +x conf$$.file
8298 if test -x conf$$.file >/dev/null 2>&1; then
8299   ac_executable_p="test -x"
8300 else
8301   ac_executable_p="test -f"
8302 fi
8303 rm -f conf$$.file
8304
8305 # Extract the first word of "msgfmt", so it can be a program name with args.
8306 set dummy msgfmt; ac_word=$2
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 printf %s "checking for $ac_word... " >&6; }
8309 if test ${ac_cv_path_MSGFMT+y}
8310 then :
8311   printf %s "(cached) " >&6
8312 else $as_nop
8313   case "$MSGFMT" in
8314   [\\/]* | ?:[\\/]*)
8315     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8316     ;;
8317   *)
8318     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8319     for ac_dir in $PATH; do
8320       IFS="$ac_save_IFS"
8321       test -z "$ac_dir" && ac_dir=.
8322       for ac_exec_ext in '' $ac_executable_extensions; do
8323         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8324           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8325           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8326      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8327             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8328             break 2
8329           fi
8330         fi
8331       done
8332     done
8333     IFS="$ac_save_IFS"
8334   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8335     ;;
8336 esac
8337 fi
8338 MSGFMT="$ac_cv_path_MSGFMT"
8339 if test "$MSGFMT" != ":"; then
8340   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8341 printf "%s\n" "$MSGFMT" >&6; }
8342 else
8343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 printf "%s\n" "no" >&6; }
8345 fi
8346
8347   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8348 set dummy gmsgfmt; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_path_GMSGFMT+y}
8352 then :
8353   printf %s "(cached) " >&6
8354 else $as_nop
8355   case $GMSGFMT in
8356   [\\/]* | ?:[\\/]*)
8357   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8358   ;;
8359   *)
8360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   case $as_dir in #(((
8365     '') as_dir=./ ;;
8366     */) ;;
8367     *) as_dir=$as_dir/ ;;
8368   esac
8369     for ac_exec_ext in '' $ac_executable_extensions; do
8370   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8371     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8372     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376   done
8377 IFS=$as_save_IFS
8378
8379   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8380   ;;
8381 esac
8382 fi
8383 GMSGFMT=$ac_cv_path_GMSGFMT
8384 if test -n "$GMSGFMT"; then
8385   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8386 printf "%s\n" "$GMSGFMT" >&6; }
8387 else
8388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 printf "%s\n" "no" >&6; }
8390 fi
8391
8392
8393
8394     case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8395     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8396     *) GMSGFMT_015=$GMSGFMT ;;
8397   esac
8398
8399
8400
8401 # Prepare PATH_SEPARATOR.
8402 # The user is always right.
8403 if test "${PATH_SEPARATOR+set}" != set; then
8404   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8405   # contains only /bin. Note that ksh looks also at the FPATH variable,
8406   # so we have to set that as well for the test.
8407   PATH_SEPARATOR=:
8408   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8409     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8410            || PATH_SEPARATOR=';'
8411        }
8412 fi
8413
8414 # Find out how to test for executable files. Don't use a zero-byte file,
8415 # as systems may use methods other than mode bits to determine executability.
8416 cat >conf$$.file <<_ASEOF
8417 #! /bin/sh
8418 exit 0
8419 _ASEOF
8420 chmod +x conf$$.file
8421 if test -x conf$$.file >/dev/null 2>&1; then
8422   ac_executable_p="test -x"
8423 else
8424   ac_executable_p="test -f"
8425 fi
8426 rm -f conf$$.file
8427
8428 # Extract the first word of "xgettext", so it can be a program name with args.
8429 set dummy xgettext; ac_word=$2
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 printf %s "checking for $ac_word... " >&6; }
8432 if test ${ac_cv_path_XGETTEXT+y}
8433 then :
8434   printf %s "(cached) " >&6
8435 else $as_nop
8436   case "$XGETTEXT" in
8437   [\\/]* | ?:[\\/]*)
8438     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8439     ;;
8440   *)
8441     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8442     for ac_dir in $PATH; do
8443       IFS="$ac_save_IFS"
8444       test -z "$ac_dir" && ac_dir=.
8445       for ac_exec_ext in '' $ac_executable_extensions; do
8446         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8447           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8448           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8449      (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
8450             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8451             break 2
8452           fi
8453         fi
8454       done
8455     done
8456     IFS="$ac_save_IFS"
8457   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8458     ;;
8459 esac
8460 fi
8461 XGETTEXT="$ac_cv_path_XGETTEXT"
8462 if test "$XGETTEXT" != ":"; then
8463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8464 printf "%s\n" "$XGETTEXT" >&6; }
8465 else
8466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 printf "%s\n" "no" >&6; }
8468 fi
8469
8470     rm -f messages.po
8471
8472     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8473     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8474     *) XGETTEXT_015=$XGETTEXT ;;
8475   esac
8476
8477
8478
8479 # Prepare PATH_SEPARATOR.
8480 # The user is always right.
8481 if test "${PATH_SEPARATOR+set}" != set; then
8482   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8483   # contains only /bin. Note that ksh looks also at the FPATH variable,
8484   # so we have to set that as well for the test.
8485   PATH_SEPARATOR=:
8486   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8487     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8488            || PATH_SEPARATOR=';'
8489        }
8490 fi
8491
8492 # Find out how to test for executable files. Don't use a zero-byte file,
8493 # as systems may use methods other than mode bits to determine executability.
8494 cat >conf$$.file <<_ASEOF
8495 #! /bin/sh
8496 exit 0
8497 _ASEOF
8498 chmod +x conf$$.file
8499 if test -x conf$$.file >/dev/null 2>&1; then
8500   ac_executable_p="test -x"
8501 else
8502   ac_executable_p="test -f"
8503 fi
8504 rm -f conf$$.file
8505
8506 # Extract the first word of "msgmerge", so it can be a program name with args.
8507 set dummy msgmerge; ac_word=$2
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 printf %s "checking for $ac_word... " >&6; }
8510 if test ${ac_cv_path_MSGMERGE+y}
8511 then :
8512   printf %s "(cached) " >&6
8513 else $as_nop
8514   case "$MSGMERGE" in
8515   [\\/]* | ?:[\\/]*)
8516     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8517     ;;
8518   *)
8519     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8520     for ac_dir in $PATH; do
8521       IFS="$ac_save_IFS"
8522       test -z "$ac_dir" && ac_dir=.
8523       for ac_exec_ext in '' $ac_executable_extensions; do
8524         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8525           echo "$as_me: trying $ac_dir/$ac_word..." >&5
8526           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8527             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8528             break 2
8529           fi
8530         fi
8531       done
8532     done
8533     IFS="$ac_save_IFS"
8534   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8535     ;;
8536 esac
8537 fi
8538 MSGMERGE="$ac_cv_path_MSGMERGE"
8539 if test "$MSGMERGE" != ":"; then
8540   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8541 printf "%s\n" "$MSGMERGE" >&6; }
8542 else
8543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 printf "%s\n" "no" >&6; }
8545 fi
8546
8547
8548     if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8549     MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8550   else
8551         if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8552       MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8553     else
8554                         MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8555     fi
8556   fi
8557
8558
8559     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8560
8561
8562   ac_config_commands="$ac_config_commands po-directories"
8563
8564
8565
8566       if test "X$prefix" = "XNONE"; then
8567     acl_final_prefix="$ac_default_prefix"
8568   else
8569     acl_final_prefix="$prefix"
8570   fi
8571   if test "X$exec_prefix" = "XNONE"; then
8572     acl_final_exec_prefix='${prefix}'
8573   else
8574     acl_final_exec_prefix="$exec_prefix"
8575   fi
8576   acl_save_prefix="$prefix"
8577   prefix="$acl_final_prefix"
8578   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8579   prefix="$acl_save_prefix"
8580
8581
8582
8583 # Check whether --with-gnu-ld was given.
8584 if test ${with_gnu_ld+y}
8585 then :
8586   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8587 else $as_nop
8588   with_gnu_ld=no
8589 fi
8590
8591 # Prepare PATH_SEPARATOR.
8592 # The user is always right.
8593 if test "${PATH_SEPARATOR+set}" != set; then
8594   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8595   # contains only /bin. Note that ksh looks also at the FPATH variable,
8596   # so we have to set that as well for the test.
8597   PATH_SEPARATOR=:
8598   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8599     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8600            || PATH_SEPARATOR=';'
8601        }
8602 fi
8603
8604 if test -n "$LD"; then
8605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8606 printf %s "checking for ld... " >&6; }
8607 elif test "$GCC" = yes; then
8608   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8609 printf %s "checking for ld used by $CC... " >&6; }
8610 elif test "$with_gnu_ld" = yes; then
8611   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8612 printf %s "checking for GNU ld... " >&6; }
8613 else
8614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8615 printf %s "checking for non-GNU ld... " >&6; }
8616 fi
8617 if test -n "$LD"; then
8618   # Let the user override the test with a path.
8619   :
8620 else
8621   if test ${acl_cv_path_LD+y}
8622 then :
8623   printf %s "(cached) " >&6
8624 else $as_nop
8625
8626     acl_cv_path_LD= # Final result of this test
8627     ac_prog=ld # Program to search in $PATH
8628     if test "$GCC" = yes; then
8629       # Check if gcc -print-prog-name=ld gives a path.
8630       case $host in
8631         *-*-mingw*)
8632           # gcc leaves a trailing carriage return which upsets mingw
8633           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8634         *)
8635           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8636       esac
8637       case $acl_output in
8638         # Accept absolute paths.
8639         [\\/]* | ?:[\\/]*)
8640           re_direlt='/[^/][^/]*/\.\./'
8641           # Canonicalize the pathname of ld
8642           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8643           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8644             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8645           done
8646           # Got the pathname. No search in PATH is needed.
8647           acl_cv_path_LD="$acl_output"
8648           ac_prog=
8649           ;;
8650         "")
8651           # If it fails, then pretend we aren't using GCC.
8652           ;;
8653         *)
8654           # If it is relative, then search for the first ld in PATH.
8655           with_gnu_ld=unknown
8656           ;;
8657       esac
8658     fi
8659     if test -n "$ac_prog"; then
8660       # Search for $ac_prog in $PATH.
8661       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8662       for ac_dir in $PATH; do
8663         IFS="$acl_save_ifs"
8664         test -z "$ac_dir" && ac_dir=.
8665         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8666           acl_cv_path_LD="$ac_dir/$ac_prog"
8667           # Check to see if the program is GNU ld.  I'd rather use --version,
8668           # but apparently some variants of GNU ld only accept -v.
8669           # Break only if it was the GNU/non-GNU ld that we prefer.
8670           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8671             *GNU* | *'with BFD'*)
8672               test "$with_gnu_ld" != no && break
8673               ;;
8674             *)
8675               test "$with_gnu_ld" != yes && break
8676               ;;
8677           esac
8678         fi
8679       done
8680       IFS="$acl_save_ifs"
8681     fi
8682     case $host in
8683       *-*-aix*)
8684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686 #if defined __powerpc64__ || defined _ARCH_PPC64
8687                 int ok;
8688                #else
8689                 error fail
8690                #endif
8691
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"
8694 then :
8695   # The compiler produces 64-bit code. Add option '-b64' so that the
8696            # linker groks 64-bit object files.
8697            case "$acl_cv_path_LD " in
8698              *" -b64 "*) ;;
8699              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8700            esac
8701
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8704         ;;
8705       sparc64-*-netbsd*)
8706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h.  */
8708 #if defined __sparcv9 || defined __arch64__
8709                 int ok;
8710                #else
8711                 error fail
8712                #endif
8713
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"
8716 then :
8717
8718 else $as_nop
8719   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8720            # so that the linker groks 32-bit object files.
8721            case "$acl_cv_path_LD " in
8722              *" -m elf32_sparc "*) ;;
8723              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8724            esac
8725
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728         ;;
8729     esac
8730
8731 fi
8732
8733   LD="$acl_cv_path_LD"
8734 fi
8735 if test -n "$LD"; then
8736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8737 printf "%s\n" "$LD" >&6; }
8738 else
8739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 printf "%s\n" "no" >&6; }
8741   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8742 fi
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8744 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8745 if test ${acl_cv_prog_gnu_ld+y}
8746 then :
8747   printf %s "(cached) " >&6
8748 else $as_nop
8749   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8750 case `$LD -v 2>&1 </dev/null` in
8751 *GNU* | *'with BFD'*)
8752   acl_cv_prog_gnu_ld=yes
8753   ;;
8754 *)
8755   acl_cv_prog_gnu_ld=no
8756   ;;
8757 esac
8758 fi
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8760 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8761 with_gnu_ld=$acl_cv_prog_gnu_ld
8762
8763
8764
8765
8766
8767
8768                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8769 printf %s "checking for shared library run path origin... " >&6; }
8770 if test ${acl_cv_rpath+y}
8771 then :
8772   printf %s "(cached) " >&6
8773 else $as_nop
8774
8775     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8776     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8777     . ./conftest.sh
8778     rm -f ./conftest.sh
8779     acl_cv_rpath=done
8780
8781 fi
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8783 printf "%s\n" "$acl_cv_rpath" >&6; }
8784   wl="$acl_cv_wl"
8785   acl_libext="$acl_cv_libext"
8786   acl_shlibext="$acl_cv_shlibext"
8787   acl_libname_spec="$acl_cv_libname_spec"
8788   acl_library_names_spec="$acl_cv_library_names_spec"
8789   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8790   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8791   acl_hardcode_direct="$acl_cv_hardcode_direct"
8792   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8793     # Check whether --enable-rpath was given.
8794 if test ${enable_rpath+y}
8795 then :
8796   enableval=$enable_rpath; :
8797 else $as_nop
8798   enable_rpath=yes
8799 fi
8800
8801
8802
8803
8804   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8805 printf %s "checking 32-bit host C ABI... " >&6; }
8806 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8807 then :
8808   printf %s "(cached) " >&6
8809 else $as_nop
8810   if test -n "$gl_cv_host_cpu_c_abi"; then
8811        case "$gl_cv_host_cpu_c_abi" in
8812          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8813            gl_cv_host_cpu_c_abi_32bit=yes ;;
8814          x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8815            gl_cv_host_cpu_c_abi_32bit=no ;;
8816          *)
8817            gl_cv_host_cpu_c_abi_32bit=unknown ;;
8818        esac
8819      else
8820        case "$host_cpu" in
8821
8822          # CPUs that only support a 32-bit ABI.
8823          arc \
8824          | bfin \
8825          | cris* \
8826          | csky \
8827          | epiphany \
8828          | ft32 \
8829          | h8300 \
8830          | m68k \
8831          | microblaze | microblazeel \
8832          | nds32 | nds32le | nds32be \
8833          | nios2 | nios2eb | nios2el \
8834          | or1k* \
8835          | or32 \
8836          | sh | sh1234 | sh1234elb \
8837          | tic6x \
8838          | xtensa* )
8839            gl_cv_host_cpu_c_abi_32bit=yes
8840            ;;
8841
8842          # CPUs that only support a 64-bit ABI.
8843          alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8844          | mmix )
8845            gl_cv_host_cpu_c_abi_32bit=no
8846            ;;
8847
8848          i[34567]86 )
8849            gl_cv_host_cpu_c_abi_32bit=yes
8850            ;;
8851
8852          x86_64 )
8853            # On x86_64 systems, the C compiler may be generating code in one of
8854            # these ABIs:
8855            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8856            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8857            #   with native Windows (mingw, MSVC).
8858            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8859            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8860            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h.  */
8862 #if (defined __x86_64__ || defined __amd64__ \
8863                        || defined _M_X64 || defined _M_AMD64) \
8864                       && !(defined __ILP32__ || defined _ILP32)
8865                    int ok;
8866                   #else
8867                    error fail
8868                   #endif
8869
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"
8872 then :
8873   gl_cv_host_cpu_c_abi_32bit=no
8874 else $as_nop
8875   gl_cv_host_cpu_c_abi_32bit=yes
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8878            ;;
8879
8880          arm* | aarch64 )
8881            # Assume arm with EABI.
8882            # On arm64 systems, the C compiler may be generating code in one of
8883            # these ABIs:
8884            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8885            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8886            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8887            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h.  */
8889 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8890                    int ok;
8891                   #else
8892                    error fail
8893                   #endif
8894
8895 _ACEOF
8896 if ac_fn_c_try_compile "$LINENO"
8897 then :
8898   gl_cv_host_cpu_c_abi_32bit=no
8899 else $as_nop
8900   gl_cv_host_cpu_c_abi_32bit=yes
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8903            ;;
8904
8905          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8906            # On hppa, the C compiler may be generating 32-bit code or 64-bit
8907            # code. In the latter case, it defines _LP64 and __LP64__.
8908            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910 #ifdef __LP64__
8911                    int ok;
8912                   #else
8913                    error fail
8914                   #endif
8915
8916 _ACEOF
8917 if ac_fn_c_try_compile "$LINENO"
8918 then :
8919   gl_cv_host_cpu_c_abi_32bit=no
8920 else $as_nop
8921   gl_cv_host_cpu_c_abi_32bit=yes
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8924            ;;
8925
8926          ia64* )
8927            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8928            # 32-bit code. In the latter case, it defines _ILP32.
8929            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h.  */
8931 #ifdef _ILP32
8932                    int ok;
8933                   #else
8934                    error fail
8935                   #endif
8936
8937 _ACEOF
8938 if ac_fn_c_try_compile "$LINENO"
8939 then :
8940   gl_cv_host_cpu_c_abi_32bit=yes
8941 else $as_nop
8942   gl_cv_host_cpu_c_abi_32bit=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8945            ;;
8946
8947          mips* )
8948            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8949            # at 32.
8950            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h.  */
8952 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8953                    int ok;
8954                   #else
8955                    error fail
8956                   #endif
8957
8958 _ACEOF
8959 if ac_fn_c_try_compile "$LINENO"
8960 then :
8961   gl_cv_host_cpu_c_abi_32bit=no
8962 else $as_nop
8963   gl_cv_host_cpu_c_abi_32bit=yes
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8966            ;;
8967
8968          powerpc* )
8969            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8970            # No need to distinguish them here; the caller may distinguish
8971            # them based on the OS.
8972            # On powerpc64 systems, the C compiler may still be generating
8973            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8974            # be generating 64-bit code.
8975            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h.  */
8977 #if defined __powerpc64__ || defined _ARCH_PPC64
8978                    int ok;
8979                   #else
8980                    error fail
8981                   #endif
8982
8983 _ACEOF
8984 if ac_fn_c_try_compile "$LINENO"
8985 then :
8986   gl_cv_host_cpu_c_abi_32bit=no
8987 else $as_nop
8988   gl_cv_host_cpu_c_abi_32bit=yes
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8991            ;;
8992
8993          rs6000 )
8994            gl_cv_host_cpu_c_abi_32bit=yes
8995            ;;
8996
8997          riscv32 | riscv64 )
8998            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8999            # Size of 'long' and 'void *':
9000            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002 #if defined __LP64__
9003                     int ok;
9004                   #else
9005                     error fail
9006                   #endif
9007
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"
9010 then :
9011   gl_cv_host_cpu_c_abi_32bit=no
9012 else $as_nop
9013   gl_cv_host_cpu_c_abi_32bit=yes
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9016            ;;
9017
9018          s390* )
9019            # On s390x, the C compiler may be generating 64-bit (= s390x) code
9020            # or 31-bit (= s390) code.
9021            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h.  */
9023 #if defined __LP64__ || defined __s390x__
9024                     int ok;
9025                   #else
9026                     error fail
9027                   #endif
9028
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"
9031 then :
9032   gl_cv_host_cpu_c_abi_32bit=no
9033 else $as_nop
9034   gl_cv_host_cpu_c_abi_32bit=yes
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9037            ;;
9038
9039          sparc | sparc64 )
9040            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9041            # C compiler still generates 32-bit code.
9042            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h.  */
9044 #if defined __sparcv9 || defined __arch64__
9045                    int ok;
9046                   #else
9047                    error fail
9048                   #endif
9049
9050 _ACEOF
9051 if ac_fn_c_try_compile "$LINENO"
9052 then :
9053   gl_cv_host_cpu_c_abi_32bit=no
9054 else $as_nop
9055   gl_cv_host_cpu_c_abi_32bit=yes
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9058            ;;
9059
9060          *)
9061            gl_cv_host_cpu_c_abi_32bit=unknown
9062            ;;
9063        esac
9064      fi
9065
9066 fi
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9068 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9069
9070   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9071
9072
9073
9074
9075
9076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9077 printf %s "checking for ELF binary format... " >&6; }
9078 if test ${gl_cv_elf+y}
9079 then :
9080   printf %s "(cached) " >&6
9081 else $as_nop
9082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h.  */
9084 #ifdef __ELF__
9085         Extensible Linking Format
9086         #endif
9087
9088 _ACEOF
9089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9090   $EGREP "Extensible Linking Format" >/dev/null 2>&1
9091 then :
9092   gl_cv_elf=yes
9093 else $as_nop
9094   gl_cv_elf=no
9095 fi
9096 rm -rf conftest*
9097
9098
9099 fi
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9101 printf "%s\n" "$gl_cv_elf" >&6; }
9102   if test $gl_cv_elf; then
9103     # Extract the ELF class of a file (5th byte) in decimal.
9104     # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9105     if od -A x < /dev/null >/dev/null 2>/dev/null; then
9106       # Use POSIX od.
9107       func_elfclass ()
9108       {
9109         od -A n -t d1 -j 4 -N 1
9110       }
9111     else
9112       # Use BSD hexdump.
9113       func_elfclass ()
9114       {
9115         dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9116         echo
9117       }
9118     fi
9119     case $HOST_CPU_C_ABI_32BIT in
9120       yes)
9121         # 32-bit ABI.
9122         acl_is_expected_elfclass ()
9123         {
9124           test "`func_elfclass | sed -e 's/[    ]//g'`" = 1
9125         }
9126         ;;
9127       no)
9128         # 64-bit ABI.
9129         acl_is_expected_elfclass ()
9130         {
9131           test "`func_elfclass | sed -e 's/[    ]//g'`" = 2
9132         }
9133         ;;
9134       *)
9135         # Unknown.
9136         acl_is_expected_elfclass ()
9137         {
9138           :
9139         }
9140         ;;
9141     esac
9142   else
9143     acl_is_expected_elfclass ()
9144     {
9145       :
9146     }
9147   fi
9148
9149     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9150 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9151 if test ${acl_cv_libdirstems+y}
9152 then :
9153   printf %s "(cached) " >&6
9154 else $as_nop
9155             acl_libdirstem=lib
9156      acl_libdirstem2=
9157      acl_libdirstem3=
9158      case "$host_os" in
9159        solaris*)
9160                                                       if test $HOST_CPU_C_ABI_32BIT = no; then
9161            acl_libdirstem2=lib/64
9162            case "$host_cpu" in
9163              sparc*)        acl_libdirstem3=lib/sparcv9 ;;
9164              i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9165            esac
9166          fi
9167          ;;
9168        *)
9169                                                                                  searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9170                      | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9171          if test $HOST_CPU_C_ABI_32BIT != no; then
9172            # 32-bit or unknown ABI.
9173            if test -d /usr/lib32; then
9174              acl_libdirstem2=lib32
9175            fi
9176          fi
9177          if test $HOST_CPU_C_ABI_32BIT != yes; then
9178            # 64-bit or unknown ABI.
9179            if test -d /usr/lib64; then
9180              acl_libdirstem3=lib64
9181            fi
9182          fi
9183          if test -n "$searchpath"; then
9184            acl_save_IFS="${IFS=         }"; IFS=":"
9185            for searchdir in $searchpath; do
9186              if test -d "$searchdir"; then
9187                case "$searchdir" in
9188                  */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9189                  */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9190                  */../ | */.. )
9191                    # Better ignore directories of this form. They are misleading.
9192                    ;;
9193                  *) searchdir=`cd "$searchdir" && pwd`
9194                     case "$searchdir" in
9195                       */lib32 ) acl_libdirstem2=lib32 ;;
9196                       */lib64 ) acl_libdirstem3=lib64 ;;
9197                     esac ;;
9198                esac
9199              fi
9200            done
9201            IFS="$acl_save_IFS"
9202            if test $HOST_CPU_C_ABI_32BIT = yes; then
9203              # 32-bit ABI.
9204              acl_libdirstem3=
9205            fi
9206            if test $HOST_CPU_C_ABI_32BIT = no; then
9207              # 64-bit ABI.
9208              acl_libdirstem2=
9209            fi
9210          fi
9211          ;;
9212      esac
9213      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9214      test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9215      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9216
9217 fi
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9219 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9220       acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9221   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9222   acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234     use_additional=yes
9235
9236   acl_save_prefix="$prefix"
9237   prefix="$acl_final_prefix"
9238   acl_save_exec_prefix="$exec_prefix"
9239   exec_prefix="$acl_final_exec_prefix"
9240
9241     eval additional_includedir=\"$includedir\"
9242     eval additional_libdir=\"$libdir\"
9243     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9244     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9245
9246   exec_prefix="$acl_save_exec_prefix"
9247   prefix="$acl_save_prefix"
9248
9249
9250 # Check whether --with-libiconv-prefix was given.
9251 if test ${with_libiconv_prefix+y}
9252 then :
9253   withval=$with_libiconv_prefix;
9254     if test "X$withval" = "Xno"; then
9255       use_additional=no
9256     else
9257       if test "X$withval" = "X"; then
9258
9259   acl_save_prefix="$prefix"
9260   prefix="$acl_final_prefix"
9261   acl_save_exec_prefix="$exec_prefix"
9262   exec_prefix="$acl_final_exec_prefix"
9263
9264           eval additional_includedir=\"$includedir\"
9265           eval additional_libdir=\"$libdir\"
9266           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9267           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9268
9269   exec_prefix="$acl_save_exec_prefix"
9270   prefix="$acl_save_prefix"
9271
9272       else
9273         additional_includedir="$withval/include"
9274         additional_libdir="$withval/$acl_libdirstem"
9275         additional_libdir2="$withval/$acl_libdirstem2"
9276         additional_libdir3="$withval/$acl_libdirstem3"
9277       fi
9278     fi
9279
9280 fi
9281
9282   if test "X$additional_libdir2" = "X$additional_libdir"; then
9283     additional_libdir2=
9284   fi
9285   if test "X$additional_libdir3" = "X$additional_libdir"; then
9286     additional_libdir3=
9287   fi
9288       LIBICONV=
9289   LTLIBICONV=
9290   INCICONV=
9291   LIBICONV_PREFIX=
9292       HAVE_LIBICONV=
9293   rpathdirs=
9294   ltrpathdirs=
9295   names_already_handled=
9296   names_next_round='iconv '
9297   while test -n "$names_next_round"; do
9298     names_this_round="$names_next_round"
9299     names_next_round=
9300     for name in $names_this_round; do
9301       already_handled=
9302       for n in $names_already_handled; do
9303         if test "$n" = "$name"; then
9304           already_handled=yes
9305           break
9306         fi
9307       done
9308       if test -z "$already_handled"; then
9309         names_already_handled="$names_already_handled $name"
9310                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9311         eval value=\"\$HAVE_LIB$uppername\"
9312         if test -n "$value"; then
9313           if test "$value" = yes; then
9314             eval value=\"\$LIB$uppername\"
9315             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9316             eval value=\"\$LTLIB$uppername\"
9317             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9318           else
9319                                     :
9320           fi
9321         else
9322                               found_dir=
9323           found_la=
9324           found_so=
9325           found_a=
9326           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9327           if test -n "$acl_shlibext"; then
9328             shrext=".$acl_shlibext"             # typically: shrext=.so
9329           else
9330             shrext=
9331           fi
9332           if test $use_additional = yes; then
9333             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9334               if test "X$found_dir" = "X"; then
9335                 eval dir=\$$additional_libdir_variable
9336                 if test -n "$dir"; then
9337                                                       if test -n "$acl_shlibext"; then
9338                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9339                       found_dir="$dir"
9340                       found_so="$dir/$libname$shrext"
9341                     else
9342                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9343                         ver=`(cd "$dir" && \
9344                               for f in "$libname$shrext".*; do echo "$f"; done \
9345                               | sed -e "s,^$libname$shrext\\\\.,," \
9346                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9347                               | sed 1q ) 2>/dev/null`
9348                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9349                           found_dir="$dir"
9350                           found_so="$dir/$libname$shrext.$ver"
9351                         fi
9352                       else
9353                         eval library_names=\"$acl_library_names_spec\"
9354                         for f in $library_names; do
9355                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9356                             found_dir="$dir"
9357                             found_so="$dir/$f"
9358                             break
9359                           fi
9360                         done
9361                       fi
9362                     fi
9363                   fi
9364                                     if test "X$found_dir" = "X"; then
9365                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9366                       found_dir="$dir"
9367                       found_a="$dir/$libname.$acl_libext"
9368                     fi
9369                   fi
9370                   if test "X$found_dir" != "X"; then
9371                     if test -f "$dir/$libname.la"; then
9372                       found_la="$dir/$libname.la"
9373                     fi
9374                   fi
9375                 fi
9376               fi
9377             done
9378           fi
9379           if test "X$found_dir" = "X"; then
9380             for x in $LDFLAGS $LTLIBICONV; do
9381
9382   acl_save_prefix="$prefix"
9383   prefix="$acl_final_prefix"
9384   acl_save_exec_prefix="$exec_prefix"
9385   exec_prefix="$acl_final_exec_prefix"
9386   eval x=\"$x\"
9387   exec_prefix="$acl_save_exec_prefix"
9388   prefix="$acl_save_prefix"
9389
9390               case "$x" in
9391                 -L*)
9392                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9393                                     if test -n "$acl_shlibext"; then
9394                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9395                       found_dir="$dir"
9396                       found_so="$dir/$libname$shrext"
9397                     else
9398                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9399                         ver=`(cd "$dir" && \
9400                               for f in "$libname$shrext".*; do echo "$f"; done \
9401                               | sed -e "s,^$libname$shrext\\\\.,," \
9402                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9403                               | sed 1q ) 2>/dev/null`
9404                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9405                           found_dir="$dir"
9406                           found_so="$dir/$libname$shrext.$ver"
9407                         fi
9408                       else
9409                         eval library_names=\"$acl_library_names_spec\"
9410                         for f in $library_names; do
9411                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9412                             found_dir="$dir"
9413                             found_so="$dir/$f"
9414                             break
9415                           fi
9416                         done
9417                       fi
9418                     fi
9419                   fi
9420                                     if test "X$found_dir" = "X"; then
9421                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9422                       found_dir="$dir"
9423                       found_a="$dir/$libname.$acl_libext"
9424                     fi
9425                   fi
9426                   if test "X$found_dir" != "X"; then
9427                     if test -f "$dir/$libname.la"; then
9428                       found_la="$dir/$libname.la"
9429                     fi
9430                   fi
9431                   ;;
9432               esac
9433               if test "X$found_dir" != "X"; then
9434                 break
9435               fi
9436             done
9437           fi
9438           if test "X$found_dir" != "X"; then
9439                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9440             if test "X$found_so" != "X"; then
9441                                                         if test "$enable_rpath" = no \
9442                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9443                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9444                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9445                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9446               else
9447                                                                                 haveit=
9448                 for x in $ltrpathdirs; do
9449                   if test "X$x" = "X$found_dir"; then
9450                     haveit=yes
9451                     break
9452                   fi
9453                 done
9454                 if test -z "$haveit"; then
9455                   ltrpathdirs="$ltrpathdirs $found_dir"
9456                 fi
9457                                 if test "$acl_hardcode_direct" = yes; then
9458                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9459                 else
9460                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9461                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9462                                                             haveit=
9463                     for x in $rpathdirs; do
9464                       if test "X$x" = "X$found_dir"; then
9465                         haveit=yes
9466                         break
9467                       fi
9468                     done
9469                     if test -z "$haveit"; then
9470                       rpathdirs="$rpathdirs $found_dir"
9471                     fi
9472                   else
9473                                                                                 haveit=
9474                     for x in $LDFLAGS $LIBICONV; do
9475
9476   acl_save_prefix="$prefix"
9477   prefix="$acl_final_prefix"
9478   acl_save_exec_prefix="$exec_prefix"
9479   exec_prefix="$acl_final_exec_prefix"
9480   eval x=\"$x\"
9481   exec_prefix="$acl_save_exec_prefix"
9482   prefix="$acl_save_prefix"
9483
9484                       if test "X$x" = "X-L$found_dir"; then
9485                         haveit=yes
9486                         break
9487                       fi
9488                     done
9489                     if test -z "$haveit"; then
9490                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9491                     fi
9492                     if test "$acl_hardcode_minus_L" != no; then
9493                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9494                     else
9495                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9496                     fi
9497                   fi
9498                 fi
9499               fi
9500             else
9501               if test "X$found_a" != "X"; then
9502                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9503               else
9504                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9505               fi
9506             fi
9507                         additional_includedir=
9508             case "$found_dir" in
9509               */$acl_libdirstem | */$acl_libdirstem/)
9510                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9511                 if test "$name" = 'iconv'; then
9512                   LIBICONV_PREFIX="$basedir"
9513                 fi
9514                 additional_includedir="$basedir/include"
9515                 ;;
9516               */$acl_libdirstem2 | */$acl_libdirstem2/)
9517                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9518                 if test "$name" = 'iconv'; then
9519                   LIBICONV_PREFIX="$basedir"
9520                 fi
9521                 additional_includedir="$basedir/include"
9522                 ;;
9523               */$acl_libdirstem3 | */$acl_libdirstem3/)
9524                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9525                 if test "$name" = 'iconv'; then
9526                   LIBICONV_PREFIX="$basedir"
9527                 fi
9528                 additional_includedir="$basedir/include"
9529                 ;;
9530             esac
9531             if test "X$additional_includedir" != "X"; then
9532                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9533                 haveit=
9534                 if test "X$additional_includedir" = "X/usr/local/include"; then
9535                   if test -n "$GCC"; then
9536                     case $host_os in
9537                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9538                     esac
9539                   fi
9540                 fi
9541                 if test -z "$haveit"; then
9542                   for x in $CPPFLAGS $INCICONV; do
9543
9544   acl_save_prefix="$prefix"
9545   prefix="$acl_final_prefix"
9546   acl_save_exec_prefix="$exec_prefix"
9547   exec_prefix="$acl_final_exec_prefix"
9548   eval x=\"$x\"
9549   exec_prefix="$acl_save_exec_prefix"
9550   prefix="$acl_save_prefix"
9551
9552                     if test "X$x" = "X-I$additional_includedir"; then
9553                       haveit=yes
9554                       break
9555                     fi
9556                   done
9557                   if test -z "$haveit"; then
9558                     if test -d "$additional_includedir"; then
9559                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9560                     fi
9561                   fi
9562                 fi
9563               fi
9564             fi
9565                         if test -n "$found_la"; then
9566                                                         save_libdir="$libdir"
9567               case "$found_la" in
9568                 */* | *\\*) . "$found_la" ;;
9569                 *) . "./$found_la" ;;
9570               esac
9571               libdir="$save_libdir"
9572                             for dep in $dependency_libs; do
9573                 case "$dep" in
9574                   -L*)
9575                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9576                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9577                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9578                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9579                       haveit=
9580                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9581                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9582                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9583                         if test -n "$GCC"; then
9584                           case $host_os in
9585                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9586                           esac
9587                         fi
9588                       fi
9589                       if test -z "$haveit"; then
9590                         haveit=
9591                         for x in $LDFLAGS $LIBICONV; do
9592
9593   acl_save_prefix="$prefix"
9594   prefix="$acl_final_prefix"
9595   acl_save_exec_prefix="$exec_prefix"
9596   exec_prefix="$acl_final_exec_prefix"
9597   eval x=\"$x\"
9598   exec_prefix="$acl_save_exec_prefix"
9599   prefix="$acl_save_prefix"
9600
9601                           if test "X$x" = "X-L$dependency_libdir"; then
9602                             haveit=yes
9603                             break
9604                           fi
9605                         done
9606                         if test -z "$haveit"; then
9607                           if test -d "$dependency_libdir"; then
9608                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9609                           fi
9610                         fi
9611                         haveit=
9612                         for x in $LDFLAGS $LTLIBICONV; do
9613
9614   acl_save_prefix="$prefix"
9615   prefix="$acl_final_prefix"
9616   acl_save_exec_prefix="$exec_prefix"
9617   exec_prefix="$acl_final_exec_prefix"
9618   eval x=\"$x\"
9619   exec_prefix="$acl_save_exec_prefix"
9620   prefix="$acl_save_prefix"
9621
9622                           if test "X$x" = "X-L$dependency_libdir"; then
9623                             haveit=yes
9624                             break
9625                           fi
9626                         done
9627                         if test -z "$haveit"; then
9628                           if test -d "$dependency_libdir"; then
9629                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9630                           fi
9631                         fi
9632                       fi
9633                     fi
9634                     ;;
9635                   -R*)
9636                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9637                     if test "$enable_rpath" != no; then
9638                                                                   haveit=
9639                       for x in $rpathdirs; do
9640                         if test "X$x" = "X$dir"; then
9641                           haveit=yes
9642                           break
9643                         fi
9644                       done
9645                       if test -z "$haveit"; then
9646                         rpathdirs="$rpathdirs $dir"
9647                       fi
9648                                                                   haveit=
9649                       for x in $ltrpathdirs; do
9650                         if test "X$x" = "X$dir"; then
9651                           haveit=yes
9652                           break
9653                         fi
9654                       done
9655                       if test -z "$haveit"; then
9656                         ltrpathdirs="$ltrpathdirs $dir"
9657                       fi
9658                     fi
9659                     ;;
9660                   -l*)
9661                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9662                     ;;
9663                   *.la)
9664                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9665                     ;;
9666                   *)
9667                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9668                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9669                     ;;
9670                 esac
9671               done
9672             fi
9673           else
9674                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9675             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9676           fi
9677         fi
9678       fi
9679     done
9680   done
9681   if test "X$rpathdirs" != "X"; then
9682     if test -n "$acl_hardcode_libdir_separator"; then
9683                         alldirs=
9684       for found_dir in $rpathdirs; do
9685         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9686       done
9687             acl_save_libdir="$libdir"
9688       libdir="$alldirs"
9689       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9690       libdir="$acl_save_libdir"
9691       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9692     else
9693             for found_dir in $rpathdirs; do
9694         acl_save_libdir="$libdir"
9695         libdir="$found_dir"
9696         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9697         libdir="$acl_save_libdir"
9698         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9699       done
9700     fi
9701   fi
9702   if test "X$ltrpathdirs" != "X"; then
9703             for found_dir in $ltrpathdirs; do
9704       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9705     done
9706   fi
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9737 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9738 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9739 then :
9740   printf %s "(cached) " >&6
9741 else $as_nop
9742   gt_save_LIBS="$LIBS"
9743      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h.  */
9746 #include <CoreFoundation/CFPreferences.h>
9747 int
9748 main (void)
9749 {
9750 CFPreferencesCopyAppValue(NULL, NULL)
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"
9756 then :
9757   gt_cv_func_CFPreferencesCopyAppValue=yes
9758 else $as_nop
9759   gt_cv_func_CFPreferencesCopyAppValue=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9762     conftest$ac_exeext conftest.$ac_ext
9763      LIBS="$gt_save_LIBS"
9764 fi
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9766 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9767   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9768
9769 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9770
9771   fi
9772                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9773 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9774 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9775 then :
9776   printf %s "(cached) " >&6
9777 else $as_nop
9778   gt_save_LIBS="$LIBS"
9779      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9780      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h.  */
9782 #include <CoreFoundation/CFLocale.h>
9783 int
9784 main (void)
9785 {
9786 CFLocaleCopyPreferredLanguages();
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"
9792 then :
9793   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9794 else $as_nop
9795   gt_cv_func_CFLocaleCopyPreferredLanguages=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9798     conftest$ac_exeext conftest.$ac_ext
9799      LIBS="$gt_save_LIBS"
9800 fi
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9802 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9803   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9804
9805 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9806
9807   fi
9808   INTL_MACOSX_LIBS=
9809   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9810      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9811     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9812   fi
9813
9814
9815
9816
9817
9818
9819   LIBINTL=
9820   LTLIBINTL=
9821   POSUB=
9822
9823     case " $gt_needs " in
9824     *" need-formatstring-macros "*) gt_api_version=3 ;;
9825     *" need-ngettext "*) gt_api_version=2 ;;
9826     *) gt_api_version=1 ;;
9827   esac
9828   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9829   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9830
9831     if test "$USE_NLS" = "yes"; then
9832     gt_use_preinstalled_gnugettext=no
9833
9834
9835         if test $gt_api_version -ge 3; then
9836           gt_revision_test_code='
9837 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9838 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9839 #endif
9840 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9841 '
9842         else
9843           gt_revision_test_code=
9844         fi
9845         if test $gt_api_version -ge 2; then
9846           gt_expression_test_code=' + * ngettext ("", "", 0)'
9847         else
9848           gt_expression_test_code=
9849         fi
9850
9851         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9852 printf %s "checking for GNU gettext in libc... " >&6; }
9853 if eval test \${$gt_func_gnugettext_libc+y}
9854 then :
9855   printf %s "(cached) " >&6
9856 else $as_nop
9857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h.  */
9859
9860 #include <libintl.h>
9861 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9862 extern int _nl_msg_cat_cntr;
9863 extern int *_nl_domain_bindings;
9864 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9865 #else
9866 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9867 #endif
9868 $gt_revision_test_code
9869
9870 int
9871 main (void)
9872 {
9873
9874 bindtextdomain ("", "");
9875 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9876
9877   ;
9878   return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_link "$LINENO"
9882 then :
9883   eval "$gt_func_gnugettext_libc=yes"
9884 else $as_nop
9885   eval "$gt_func_gnugettext_libc=no"
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9888     conftest$ac_exeext conftest.$ac_ext
9889 fi
9890 eval ac_res=\$$gt_func_gnugettext_libc
9891                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9892 printf "%s\n" "$ac_res" >&6; }
9893
9894         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9895
9896
9897
9898
9899
9900           am_save_CPPFLAGS="$CPPFLAGS"
9901
9902   for element in $INCICONV; do
9903     haveit=
9904     for x in $CPPFLAGS; do
9905
9906   acl_save_prefix="$prefix"
9907   prefix="$acl_final_prefix"
9908   acl_save_exec_prefix="$exec_prefix"
9909   exec_prefix="$acl_final_exec_prefix"
9910   eval x=\"$x\"
9911   exec_prefix="$acl_save_exec_prefix"
9912   prefix="$acl_save_prefix"
9913
9914       if test "X$x" = "X$element"; then
9915         haveit=yes
9916         break
9917       fi
9918     done
9919     if test -z "$haveit"; then
9920       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9921     fi
9922   done
9923
9924
9925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9926 printf %s "checking for iconv... " >&6; }
9927 if test ${am_cv_func_iconv+y}
9928 then :
9929   printf %s "(cached) " >&6
9930 else $as_nop
9931
9932     am_cv_func_iconv="no, consider installing GNU libiconv"
9933     am_cv_lib_iconv=no
9934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h.  */
9936
9937 #include <stdlib.h>
9938 #include <iconv.h>
9939
9940 int
9941 main (void)
9942 {
9943 iconv_t cd = iconv_open("","");
9944            iconv(cd,NULL,NULL,NULL,NULL);
9945            iconv_close(cd);
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 if ac_fn_c_try_link "$LINENO"
9951 then :
9952   am_cv_func_iconv=yes
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9955     conftest$ac_exeext conftest.$ac_ext
9956     if test "$am_cv_func_iconv" != yes; then
9957       am_save_LIBS="$LIBS"
9958       LIBS="$LIBS $LIBICONV"
9959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h.  */
9961
9962 #include <stdlib.h>
9963 #include <iconv.h>
9964
9965 int
9966 main (void)
9967 {
9968 iconv_t cd = iconv_open("","");
9969              iconv(cd,NULL,NULL,NULL,NULL);
9970              iconv_close(cd);
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"
9976 then :
9977   am_cv_lib_iconv=yes
9978         am_cv_func_iconv=yes
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9981     conftest$ac_exeext conftest.$ac_ext
9982       LIBS="$am_save_LIBS"
9983     fi
9984
9985 fi
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9987 printf "%s\n" "$am_cv_func_iconv" >&6; }
9988   if test "$am_cv_func_iconv" = yes; then
9989     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9990 printf %s "checking for working iconv... " >&6; }
9991 if test ${am_cv_func_iconv_works+y}
9992 then :
9993   printf %s "(cached) " >&6
9994 else $as_nop
9995
9996                   am_save_LIBS="$LIBS"
9997       if test $am_cv_lib_iconv = yes; then
9998         LIBS="$LIBS $LIBICONV"
9999       fi
10000       am_cv_func_iconv_works=no
10001       for ac_iconv_const in '' 'const'; do
10002         if test "$cross_compiling" = yes
10003 then :
10004   case "$host_os" in
10005              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10006              *)            am_cv_func_iconv_works="guessing yes" ;;
10007            esac
10008 else $as_nop
10009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h.  */
10011
10012 #include <iconv.h>
10013 #include <string.h>
10014
10015 #ifndef ICONV_CONST
10016 # define ICONV_CONST $ac_iconv_const
10017 #endif
10018
10019 int
10020 main (void)
10021 {
10022 int result = 0;
10023   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10024      returns.  */
10025   {
10026     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10027     if (cd_utf8_to_88591 != (iconv_t)(-1))
10028       {
10029         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10030         char buf[10];
10031         ICONV_CONST char *inptr = input;
10032         size_t inbytesleft = strlen (input);
10033         char *outptr = buf;
10034         size_t outbytesleft = sizeof (buf);
10035         size_t res = iconv (cd_utf8_to_88591,
10036                             &inptr, &inbytesleft,
10037                             &outptr, &outbytesleft);
10038         if (res == 0)
10039           result |= 1;
10040         iconv_close (cd_utf8_to_88591);
10041       }
10042   }
10043   /* Test against Solaris 10 bug: Failures are not distinguishable from
10044      successful returns.  */
10045   {
10046     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10047     if (cd_ascii_to_88591 != (iconv_t)(-1))
10048       {
10049         static ICONV_CONST char input[] = "\263";
10050         char buf[10];
10051         ICONV_CONST char *inptr = input;
10052         size_t inbytesleft = strlen (input);
10053         char *outptr = buf;
10054         size_t outbytesleft = sizeof (buf);
10055         size_t res = iconv (cd_ascii_to_88591,
10056                             &inptr, &inbytesleft,
10057                             &outptr, &outbytesleft);
10058         if (res == 0)
10059           result |= 2;
10060         iconv_close (cd_ascii_to_88591);
10061       }
10062   }
10063   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10064   {
10065     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10066     if (cd_88591_to_utf8 != (iconv_t)(-1))
10067       {
10068         static ICONV_CONST char input[] = "\304";
10069         static char buf[2] = { (char)0xDE, (char)0xAD };
10070         ICONV_CONST char *inptr = input;
10071         size_t inbytesleft = 1;
10072         char *outptr = buf;
10073         size_t outbytesleft = 1;
10074         size_t res = iconv (cd_88591_to_utf8,
10075                             &inptr, &inbytesleft,
10076                             &outptr, &outbytesleft);
10077         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10078           result |= 4;
10079         iconv_close (cd_88591_to_utf8);
10080       }
10081   }
10082 #if 0 /* This bug could be worked around by the caller.  */
10083   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10084   {
10085     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10086     if (cd_88591_to_utf8 != (iconv_t)(-1))
10087       {
10088         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10089         char buf[50];
10090         ICONV_CONST char *inptr = input;
10091         size_t inbytesleft = strlen (input);
10092         char *outptr = buf;
10093         size_t outbytesleft = sizeof (buf);
10094         size_t res = iconv (cd_88591_to_utf8,
10095                             &inptr, &inbytesleft,
10096                             &outptr, &outbytesleft);
10097         if ((int)res > 0)
10098           result |= 8;
10099         iconv_close (cd_88591_to_utf8);
10100       }
10101   }
10102 #endif
10103   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10104      provided.  */
10105   {
10106     /* Try standardized names.  */
10107     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10108     /* Try IRIX, OSF/1 names.  */
10109     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10110     /* Try AIX names.  */
10111     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10112     /* Try HP-UX names.  */
10113     iconv_t cd4 = iconv_open ("utf8", "eucJP");
10114     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10115         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10116       result |= 16;
10117     if (cd1 != (iconv_t)(-1))
10118       iconv_close (cd1);
10119     if (cd2 != (iconv_t)(-1))
10120       iconv_close (cd2);
10121     if (cd3 != (iconv_t)(-1))
10122       iconv_close (cd3);
10123     if (cd4 != (iconv_t)(-1))
10124       iconv_close (cd4);
10125   }
10126   return result;
10127
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 if ac_fn_c_try_run "$LINENO"
10133 then :
10134   am_cv_func_iconv_works=yes
10135 fi
10136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10137   conftest.$ac_objext conftest.beam conftest.$ac_ext
10138 fi
10139
10140         test "$am_cv_func_iconv_works" = no || break
10141       done
10142       LIBS="$am_save_LIBS"
10143
10144 fi
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10146 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10147     case "$am_cv_func_iconv_works" in
10148       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10149       *)   am_func_iconv=yes ;;
10150     esac
10151   else
10152     am_func_iconv=no am_cv_lib_iconv=no
10153   fi
10154   if test "$am_func_iconv" = yes; then
10155
10156 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10157
10158   fi
10159   if test "$am_cv_lib_iconv" = yes; then
10160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10161 printf %s "checking how to link with libiconv... " >&6; }
10162     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10163 printf "%s\n" "$LIBICONV" >&6; }
10164   else
10165             CPPFLAGS="$am_save_CPPFLAGS"
10166     LIBICONV=
10167     LTLIBICONV=
10168   fi
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179     use_additional=yes
10180
10181   acl_save_prefix="$prefix"
10182   prefix="$acl_final_prefix"
10183   acl_save_exec_prefix="$exec_prefix"
10184   exec_prefix="$acl_final_exec_prefix"
10185
10186     eval additional_includedir=\"$includedir\"
10187     eval additional_libdir=\"$libdir\"
10188     eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10189     eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10190
10191   exec_prefix="$acl_save_exec_prefix"
10192   prefix="$acl_save_prefix"
10193
10194
10195 # Check whether --with-libintl-prefix was given.
10196 if test ${with_libintl_prefix+y}
10197 then :
10198   withval=$with_libintl_prefix;
10199     if test "X$withval" = "Xno"; then
10200       use_additional=no
10201     else
10202       if test "X$withval" = "X"; then
10203
10204   acl_save_prefix="$prefix"
10205   prefix="$acl_final_prefix"
10206   acl_save_exec_prefix="$exec_prefix"
10207   exec_prefix="$acl_final_exec_prefix"
10208
10209           eval additional_includedir=\"$includedir\"
10210           eval additional_libdir=\"$libdir\"
10211           eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10212           eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10213
10214   exec_prefix="$acl_save_exec_prefix"
10215   prefix="$acl_save_prefix"
10216
10217       else
10218         additional_includedir="$withval/include"
10219         additional_libdir="$withval/$acl_libdirstem"
10220         additional_libdir2="$withval/$acl_libdirstem2"
10221         additional_libdir3="$withval/$acl_libdirstem3"
10222       fi
10223     fi
10224
10225 fi
10226
10227   if test "X$additional_libdir2" = "X$additional_libdir"; then
10228     additional_libdir2=
10229   fi
10230   if test "X$additional_libdir3" = "X$additional_libdir"; then
10231     additional_libdir3=
10232   fi
10233       LIBINTL=
10234   LTLIBINTL=
10235   INCINTL=
10236   LIBINTL_PREFIX=
10237       HAVE_LIBINTL=
10238   rpathdirs=
10239   ltrpathdirs=
10240   names_already_handled=
10241   names_next_round='intl '
10242   while test -n "$names_next_round"; do
10243     names_this_round="$names_next_round"
10244     names_next_round=
10245     for name in $names_this_round; do
10246       already_handled=
10247       for n in $names_already_handled; do
10248         if test "$n" = "$name"; then
10249           already_handled=yes
10250           break
10251         fi
10252       done
10253       if test -z "$already_handled"; then
10254         names_already_handled="$names_already_handled $name"
10255                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10256         eval value=\"\$HAVE_LIB$uppername\"
10257         if test -n "$value"; then
10258           if test "$value" = yes; then
10259             eval value=\"\$LIB$uppername\"
10260             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10261             eval value=\"\$LTLIB$uppername\"
10262             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10263           else
10264                                     :
10265           fi
10266         else
10267                               found_dir=
10268           found_la=
10269           found_so=
10270           found_a=
10271           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10272           if test -n "$acl_shlibext"; then
10273             shrext=".$acl_shlibext"             # typically: shrext=.so
10274           else
10275             shrext=
10276           fi
10277           if test $use_additional = yes; then
10278             for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10279               if test "X$found_dir" = "X"; then
10280                 eval dir=\$$additional_libdir_variable
10281                 if test -n "$dir"; then
10282                                                       if test -n "$acl_shlibext"; then
10283                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10284                       found_dir="$dir"
10285                       found_so="$dir/$libname$shrext"
10286                     else
10287                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10288                         ver=`(cd "$dir" && \
10289                               for f in "$libname$shrext".*; do echo "$f"; done \
10290                               | sed -e "s,^$libname$shrext\\\\.,," \
10291                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10292                               | sed 1q ) 2>/dev/null`
10293                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10294                           found_dir="$dir"
10295                           found_so="$dir/$libname$shrext.$ver"
10296                         fi
10297                       else
10298                         eval library_names=\"$acl_library_names_spec\"
10299                         for f in $library_names; do
10300                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10301                             found_dir="$dir"
10302                             found_so="$dir/$f"
10303                             break
10304                           fi
10305                         done
10306                       fi
10307                     fi
10308                   fi
10309                                     if test "X$found_dir" = "X"; then
10310                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10311                       found_dir="$dir"
10312                       found_a="$dir/$libname.$acl_libext"
10313                     fi
10314                   fi
10315                   if test "X$found_dir" != "X"; then
10316                     if test -f "$dir/$libname.la"; then
10317                       found_la="$dir/$libname.la"
10318                     fi
10319                   fi
10320                 fi
10321               fi
10322             done
10323           fi
10324           if test "X$found_dir" = "X"; then
10325             for x in $LDFLAGS $LTLIBINTL; do
10326
10327   acl_save_prefix="$prefix"
10328   prefix="$acl_final_prefix"
10329   acl_save_exec_prefix="$exec_prefix"
10330   exec_prefix="$acl_final_exec_prefix"
10331   eval x=\"$x\"
10332   exec_prefix="$acl_save_exec_prefix"
10333   prefix="$acl_save_prefix"
10334
10335               case "$x" in
10336                 -L*)
10337                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10338                                     if test -n "$acl_shlibext"; then
10339                     if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10340                       found_dir="$dir"
10341                       found_so="$dir/$libname$shrext"
10342                     else
10343                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10344                         ver=`(cd "$dir" && \
10345                               for f in "$libname$shrext".*; do echo "$f"; done \
10346                               | sed -e "s,^$libname$shrext\\\\.,," \
10347                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10348                               | sed 1q ) 2>/dev/null`
10349                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10350                           found_dir="$dir"
10351                           found_so="$dir/$libname$shrext.$ver"
10352                         fi
10353                       else
10354                         eval library_names=\"$acl_library_names_spec\"
10355                         for f in $library_names; do
10356                           if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10357                             found_dir="$dir"
10358                             found_so="$dir/$f"
10359                             break
10360                           fi
10361                         done
10362                       fi
10363                     fi
10364                   fi
10365                                     if test "X$found_dir" = "X"; then
10366                     if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10367                       found_dir="$dir"
10368                       found_a="$dir/$libname.$acl_libext"
10369                     fi
10370                   fi
10371                   if test "X$found_dir" != "X"; then
10372                     if test -f "$dir/$libname.la"; then
10373                       found_la="$dir/$libname.la"
10374                     fi
10375                   fi
10376                   ;;
10377               esac
10378               if test "X$found_dir" != "X"; then
10379                 break
10380               fi
10381             done
10382           fi
10383           if test "X$found_dir" != "X"; then
10384                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10385             if test "X$found_so" != "X"; then
10386                                                         if test "$enable_rpath" = no \
10387                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10388                  || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10389                  || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10390                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10391               else
10392                                                                                 haveit=
10393                 for x in $ltrpathdirs; do
10394                   if test "X$x" = "X$found_dir"; then
10395                     haveit=yes
10396                     break
10397                   fi
10398                 done
10399                 if test -z "$haveit"; then
10400                   ltrpathdirs="$ltrpathdirs $found_dir"
10401                 fi
10402                                 if test "$acl_hardcode_direct" = yes; then
10403                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10404                 else
10405                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10406                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10407                                                             haveit=
10408                     for x in $rpathdirs; do
10409                       if test "X$x" = "X$found_dir"; then
10410                         haveit=yes
10411                         break
10412                       fi
10413                     done
10414                     if test -z "$haveit"; then
10415                       rpathdirs="$rpathdirs $found_dir"
10416                     fi
10417                   else
10418                                                                                 haveit=
10419                     for x in $LDFLAGS $LIBINTL; do
10420
10421   acl_save_prefix="$prefix"
10422   prefix="$acl_final_prefix"
10423   acl_save_exec_prefix="$exec_prefix"
10424   exec_prefix="$acl_final_exec_prefix"
10425   eval x=\"$x\"
10426   exec_prefix="$acl_save_exec_prefix"
10427   prefix="$acl_save_prefix"
10428
10429                       if test "X$x" = "X-L$found_dir"; then
10430                         haveit=yes
10431                         break
10432                       fi
10433                     done
10434                     if test -z "$haveit"; then
10435                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10436                     fi
10437                     if test "$acl_hardcode_minus_L" != no; then
10438                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10439                     else
10440                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10441                     fi
10442                   fi
10443                 fi
10444               fi
10445             else
10446               if test "X$found_a" != "X"; then
10447                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10448               else
10449                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10450               fi
10451             fi
10452                         additional_includedir=
10453             case "$found_dir" in
10454               */$acl_libdirstem | */$acl_libdirstem/)
10455                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10456                 if test "$name" = 'intl'; then
10457                   LIBINTL_PREFIX="$basedir"
10458                 fi
10459                 additional_includedir="$basedir/include"
10460                 ;;
10461               */$acl_libdirstem2 | */$acl_libdirstem2/)
10462                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10463                 if test "$name" = 'intl'; then
10464                   LIBINTL_PREFIX="$basedir"
10465                 fi
10466                 additional_includedir="$basedir/include"
10467                 ;;
10468               */$acl_libdirstem3 | */$acl_libdirstem3/)
10469                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10470                 if test "$name" = 'intl'; then
10471                   LIBINTL_PREFIX="$basedir"
10472                 fi
10473                 additional_includedir="$basedir/include"
10474                 ;;
10475             esac
10476             if test "X$additional_includedir" != "X"; then
10477                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10478                 haveit=
10479                 if test "X$additional_includedir" = "X/usr/local/include"; then
10480                   if test -n "$GCC"; then
10481                     case $host_os in
10482                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10483                     esac
10484                   fi
10485                 fi
10486                 if test -z "$haveit"; then
10487                   for x in $CPPFLAGS $INCINTL; do
10488
10489   acl_save_prefix="$prefix"
10490   prefix="$acl_final_prefix"
10491   acl_save_exec_prefix="$exec_prefix"
10492   exec_prefix="$acl_final_exec_prefix"
10493   eval x=\"$x\"
10494   exec_prefix="$acl_save_exec_prefix"
10495   prefix="$acl_save_prefix"
10496
10497                     if test "X$x" = "X-I$additional_includedir"; then
10498                       haveit=yes
10499                       break
10500                     fi
10501                   done
10502                   if test -z "$haveit"; then
10503                     if test -d "$additional_includedir"; then
10504                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10505                     fi
10506                   fi
10507                 fi
10508               fi
10509             fi
10510                         if test -n "$found_la"; then
10511                                                         save_libdir="$libdir"
10512               case "$found_la" in
10513                 */* | *\\*) . "$found_la" ;;
10514                 *) . "./$found_la" ;;
10515               esac
10516               libdir="$save_libdir"
10517                             for dep in $dependency_libs; do
10518                 case "$dep" in
10519                   -L*)
10520                     dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10521                                                                                                                                                                 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10522                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10523                        && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10524                       haveit=
10525                       if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10526                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10527                          || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10528                         if test -n "$GCC"; then
10529                           case $host_os in
10530                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10531                           esac
10532                         fi
10533                       fi
10534                       if test -z "$haveit"; then
10535                         haveit=
10536                         for x in $LDFLAGS $LIBINTL; do
10537
10538   acl_save_prefix="$prefix"
10539   prefix="$acl_final_prefix"
10540   acl_save_exec_prefix="$exec_prefix"
10541   exec_prefix="$acl_final_exec_prefix"
10542   eval x=\"$x\"
10543   exec_prefix="$acl_save_exec_prefix"
10544   prefix="$acl_save_prefix"
10545
10546                           if test "X$x" = "X-L$dependency_libdir"; then
10547                             haveit=yes
10548                             break
10549                           fi
10550                         done
10551                         if test -z "$haveit"; then
10552                           if test -d "$dependency_libdir"; then
10553                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10554                           fi
10555                         fi
10556                         haveit=
10557                         for x in $LDFLAGS $LTLIBINTL; do
10558
10559   acl_save_prefix="$prefix"
10560   prefix="$acl_final_prefix"
10561   acl_save_exec_prefix="$exec_prefix"
10562   exec_prefix="$acl_final_exec_prefix"
10563   eval x=\"$x\"
10564   exec_prefix="$acl_save_exec_prefix"
10565   prefix="$acl_save_prefix"
10566
10567                           if test "X$x" = "X-L$dependency_libdir"; then
10568                             haveit=yes
10569                             break
10570                           fi
10571                         done
10572                         if test -z "$haveit"; then
10573                           if test -d "$dependency_libdir"; then
10574                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10575                           fi
10576                         fi
10577                       fi
10578                     fi
10579                     ;;
10580                   -R*)
10581                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10582                     if test "$enable_rpath" != no; then
10583                                                                   haveit=
10584                       for x in $rpathdirs; do
10585                         if test "X$x" = "X$dir"; then
10586                           haveit=yes
10587                           break
10588                         fi
10589                       done
10590                       if test -z "$haveit"; then
10591                         rpathdirs="$rpathdirs $dir"
10592                       fi
10593                                                                   haveit=
10594                       for x in $ltrpathdirs; do
10595                         if test "X$x" = "X$dir"; then
10596                           haveit=yes
10597                           break
10598                         fi
10599                       done
10600                       if test -z "$haveit"; then
10601                         ltrpathdirs="$ltrpathdirs $dir"
10602                       fi
10603                     fi
10604                     ;;
10605                   -l*)
10606                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10607                     ;;
10608                   *.la)
10609                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10610                     ;;
10611                   *)
10612                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10613                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10614                     ;;
10615                 esac
10616               done
10617             fi
10618           else
10619                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10620             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10621           fi
10622         fi
10623       fi
10624     done
10625   done
10626   if test "X$rpathdirs" != "X"; then
10627     if test -n "$acl_hardcode_libdir_separator"; then
10628                         alldirs=
10629       for found_dir in $rpathdirs; do
10630         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10631       done
10632             acl_save_libdir="$libdir"
10633       libdir="$alldirs"
10634       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10635       libdir="$acl_save_libdir"
10636       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10637     else
10638             for found_dir in $rpathdirs; do
10639         acl_save_libdir="$libdir"
10640         libdir="$found_dir"
10641         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10642         libdir="$acl_save_libdir"
10643         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10644       done
10645     fi
10646   fi
10647   if test "X$ltrpathdirs" != "X"; then
10648             for found_dir in $ltrpathdirs; do
10649       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10650     done
10651   fi
10652
10653
10654
10655
10656
10657           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10658 printf %s "checking for GNU gettext in libintl... " >&6; }
10659 if eval test \${$gt_func_gnugettext_libintl+y}
10660 then :
10661   printf %s "(cached) " >&6
10662 else $as_nop
10663   gt_save_CPPFLAGS="$CPPFLAGS"
10664             CPPFLAGS="$CPPFLAGS $INCINTL"
10665             gt_save_LIBS="$LIBS"
10666             LIBS="$LIBS $LIBINTL"
10667                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669
10670 #include <libintl.h>
10671 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10672 extern int _nl_msg_cat_cntr;
10673 extern
10674 #ifdef __cplusplus
10675 "C"
10676 #endif
10677 const char *_nl_expand_alias (const char *);
10678 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10679 #else
10680 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10681 #endif
10682 $gt_revision_test_code
10683
10684 int
10685 main (void)
10686 {
10687
10688 bindtextdomain ("", "");
10689 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10690
10691   ;
10692   return 0;
10693 }
10694 _ACEOF
10695 if ac_fn_c_try_link "$LINENO"
10696 then :
10697   eval "$gt_func_gnugettext_libintl=yes"
10698 else $as_nop
10699   eval "$gt_func_gnugettext_libintl=no"
10700 fi
10701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702     conftest$ac_exeext conftest.$ac_ext
10703                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10704               LIBS="$LIBS $LIBICONV"
10705               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h.  */
10707
10708 #include <libintl.h>
10709 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10710 extern int _nl_msg_cat_cntr;
10711 extern
10712 #ifdef __cplusplus
10713 "C"
10714 #endif
10715 const char *_nl_expand_alias (const char *);
10716 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10717 #else
10718 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10719 #endif
10720 $gt_revision_test_code
10721
10722 int
10723 main (void)
10724 {
10725
10726 bindtextdomain ("", "");
10727 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10728
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"
10734 then :
10735   LIBINTL="$LIBINTL $LIBICONV"
10736                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10737                  eval "$gt_func_gnugettext_libintl=yes"
10738
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10741     conftest$ac_exeext conftest.$ac_ext
10742             fi
10743             CPPFLAGS="$gt_save_CPPFLAGS"
10744             LIBS="$gt_save_LIBS"
10745 fi
10746 eval ac_res=\$$gt_func_gnugettext_libintl
10747                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10748 printf "%s\n" "$ac_res" >&6; }
10749         fi
10750
10751                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10752            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10753                 && test "$PACKAGE" != gettext-runtime \
10754                 && test "$PACKAGE" != gettext-tools; }; then
10755           gt_use_preinstalled_gnugettext=yes
10756         else
10757                     LIBINTL=
10758           LTLIBINTL=
10759           INCINTL=
10760         fi
10761
10762
10763
10764     if test -n "$INTL_MACOSX_LIBS"; then
10765       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10766          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10767                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10768         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10769       fi
10770     fi
10771
10772     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10773        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10774
10775 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10776
10777     else
10778       USE_NLS=no
10779     fi
10780   fi
10781
10782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10783 printf %s "checking whether to use NLS... " >&6; }
10784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10785 printf "%s\n" "$USE_NLS" >&6; }
10786   if test "$USE_NLS" = "yes"; then
10787     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10788 printf %s "checking where the gettext function comes from... " >&6; }
10789     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10790       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10791         gt_source="external libintl"
10792       else
10793         gt_source="libc"
10794       fi
10795     else
10796       gt_source="included intl directory"
10797     fi
10798     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10799 printf "%s\n" "$gt_source" >&6; }
10800   fi
10801
10802   if test "$USE_NLS" = "yes"; then
10803
10804     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10805       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10806         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10807 printf %s "checking how to link with libintl... " >&6; }
10808         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10809 printf "%s\n" "$LIBINTL" >&6; }
10810
10811   for element in $INCINTL; do
10812     haveit=
10813     for x in $CPPFLAGS; do
10814
10815   acl_save_prefix="$prefix"
10816   prefix="$acl_final_prefix"
10817   acl_save_exec_prefix="$exec_prefix"
10818   exec_prefix="$acl_final_exec_prefix"
10819   eval x=\"$x\"
10820   exec_prefix="$acl_save_exec_prefix"
10821   prefix="$acl_save_prefix"
10822
10823       if test "X$x" = "X$element"; then
10824         haveit=yes
10825         break
10826       fi
10827     done
10828     if test -z "$haveit"; then
10829       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10830     fi
10831   done
10832
10833       fi
10834
10835
10836 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10837
10838
10839 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10840
10841     fi
10842
10843         POSUB=po
10844   fi
10845
10846
10847
10848     INTLLIBS="$LIBINTL"
10849
10850
10851
10852
10853
10854
10855
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10857 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10858 set x ${MAKE-make}
10859 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10860 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10861 then :
10862   printf %s "(cached) " >&6
10863 else $as_nop
10864   cat >conftest.make <<\_ACEOF
10865 SHELL = /bin/sh
10866 all:
10867         @echo '@@@%%%=$(MAKE)=@@@%%%'
10868 _ACEOF
10869 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10870 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10871   *@@@%%%=?*=@@@%%%*)
10872     eval ac_cv_prog_make_${ac_make}_set=yes;;
10873   *)
10874     eval ac_cv_prog_make_${ac_make}_set=no;;
10875 esac
10876 rm -f conftest.make
10877 fi
10878 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10880 printf "%s\n" "yes" >&6; }
10881   SET_MAKE=
10882 else
10883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 printf "%s\n" "no" >&6; }
10885   SET_MAKE="MAKE=${MAKE-make}"
10886 fi
10887
10888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10889 printf %s "checking for GNU make... " >&6; }
10890 if test ${_cv_gnu_make_command+y}
10891 then :
10892   printf %s "(cached) " >&6
10893 else $as_nop
10894   _cv_gnu_make_command='' ;
10895                 if test -n "$FORCE_NATIVE_MAKE" ; then
10896                    MAKES="make"
10897                 else
10898                    MAKES="make gmake gnumake"
10899                 fi
10900                 for a in "$MAKE" $MAKES ; do
10901                         if test -z "$a" ; then continue ; fi ;
10902                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
10903                                 _cv_gnu_make_command=$a ;
10904                                 break;
10905                         fi
10906                 done ;
10907
10908 fi
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10910 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10911         if test  "x$_cv_gnu_make_command" != "x"  ; then
10912                 ifGNUmake='' ;
10913                 ifNotGNUmake='#' ;
10914         else
10915                 ifGNUmake='#' ;
10916                 ifNotGNUmake='' ;
10917                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10918 printf "%s\n" "\"Not found\"" >&6; };
10919         fi
10920
10921
10922
10923 # Extract the first word of "ln", so it can be a program name with args.
10924 set dummy ln; ac_word=$2
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 printf %s "checking for $ac_word... " >&6; }
10927 if test ${ac_cv_path_LN+y}
10928 then :
10929   printf %s "(cached) " >&6
10930 else $as_nop
10931   case $LN in
10932   [\\/]* | ?:[\\/]*)
10933   ac_cv_path_LN="$LN" # Let the user override the test with a path.
10934   ;;
10935   *)
10936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10938 do
10939   IFS=$as_save_IFS
10940   case $as_dir in #(((
10941     '') as_dir=./ ;;
10942     */) ;;
10943     *) as_dir=$as_dir/ ;;
10944   esac
10945     for ac_exec_ext in '' $ac_executable_extensions; do
10946   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10947     ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10948     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952   done
10953 IFS=$as_save_IFS
10954
10955   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10956   ;;
10957 esac
10958 fi
10959 LN=$ac_cv_path_LN
10960 if test -n "$LN"; then
10961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10962 printf "%s\n" "$LN" >&6; }
10963 else
10964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10966 fi
10967
10968
10969
10970 mkdir_p=$MKDIR_P
10971
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10973 printf %s "checking whether ln -s works... " >&6; }
10974 LN_S=$as_ln_s
10975 if test "$LN_S" = "ln -s"; then
10976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10977 printf "%s\n" "yes" >&6; }
10978 else
10979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10980 printf "%s\n" "no, using $LN_S" >&6; }
10981 fi
10982
10983 # Extract the first word of "mv", so it can be a program name with args.
10984 set dummy mv; ac_word=$2
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 printf %s "checking for $ac_word... " >&6; }
10987 if test ${ac_cv_path_MV+y}
10988 then :
10989   printf %s "(cached) " >&6
10990 else $as_nop
10991   case $MV in
10992   [\\/]* | ?:[\\/]*)
10993   ac_cv_path_MV="$MV" # Let the user override the test with a path.
10994   ;;
10995   *)
10996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999   IFS=$as_save_IFS
11000   case $as_dir in #(((
11001     '') as_dir=./ ;;
11002     */) ;;
11003     *) as_dir=$as_dir/ ;;
11004   esac
11005     for ac_exec_ext in '' $ac_executable_extensions; do
11006   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11007     ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11008     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11009     break 2
11010   fi
11011 done
11012   done
11013 IFS=$as_save_IFS
11014
11015   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11016   ;;
11017 esac
11018 fi
11019 MV=$ac_cv_path_MV
11020 if test -n "$MV"; then
11021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11022 printf "%s\n" "$MV" >&6; }
11023 else
11024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 printf "%s\n" "no" >&6; }
11026 fi
11027
11028
11029 # Extract the first word of "cp", so it can be a program name with args.
11030 set dummy cp; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_path_CP+y}
11034 then :
11035   printf %s "(cached) " >&6
11036 else $as_nop
11037   case $CP in
11038   [\\/]* | ?:[\\/]*)
11039   ac_cv_path_CP="$CP" # Let the user override the test with a path.
11040   ;;
11041   *)
11042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045   IFS=$as_save_IFS
11046   case $as_dir in #(((
11047     '') as_dir=./ ;;
11048     */) ;;
11049     *) as_dir=$as_dir/ ;;
11050   esac
11051     for ac_exec_ext in '' $ac_executable_extensions; do
11052   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11053     ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11054     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11055     break 2
11056   fi
11057 done
11058   done
11059 IFS=$as_save_IFS
11060
11061   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11062   ;;
11063 esac
11064 fi
11065 CP=$ac_cv_path_CP
11066 if test -n "$CP"; then
11067   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11068 printf "%s\n" "$CP" >&6; }
11069 else
11070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 printf "%s\n" "no" >&6; }
11072 fi
11073
11074
11075 # Extract the first word of "rm", so it can be a program name with args.
11076 set dummy rm; ac_word=$2
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 printf %s "checking for $ac_word... " >&6; }
11079 if test ${ac_cv_path_RM+y}
11080 then :
11081   printf %s "(cached) " >&6
11082 else $as_nop
11083   case $RM in
11084   [\\/]* | ?:[\\/]*)
11085   ac_cv_path_RM="$RM" # Let the user override the test with a path.
11086   ;;
11087   *)
11088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11090 do
11091   IFS=$as_save_IFS
11092   case $as_dir in #(((
11093     '') as_dir=./ ;;
11094     */) ;;
11095     *) as_dir=$as_dir/ ;;
11096   esac
11097     for ac_exec_ext in '' $ac_executable_extensions; do
11098   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11099     ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11100     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11101     break 2
11102   fi
11103 done
11104   done
11105 IFS=$as_save_IFS
11106
11107   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11108   ;;
11109 esac
11110 fi
11111 RM=$ac_cv_path_RM
11112 if test -n "$RM"; then
11113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11114 printf "%s\n" "$RM" >&6; }
11115 else
11116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 printf "%s\n" "no" >&6; }
11118 fi
11119
11120
11121 # Extract the first word of "chmod", so it can be a program name with args.
11122 set dummy chmod; ac_word=$2
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 printf %s "checking for $ac_word... " >&6; }
11125 if test ${ac_cv_path_CHMOD+y}
11126 then :
11127   printf %s "(cached) " >&6
11128 else $as_nop
11129   case $CHMOD in
11130   [\\/]* | ?:[\\/]*)
11131   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11132   ;;
11133   *)
11134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11136 do
11137   IFS=$as_save_IFS
11138   case $as_dir in #(((
11139     '') as_dir=./ ;;
11140     */) ;;
11141     *) as_dir=$as_dir/ ;;
11142   esac
11143     for ac_exec_ext in '' $ac_executable_extensions; do
11144   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11145     ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11146     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11147     break 2
11148   fi
11149 done
11150   done
11151 IFS=$as_save_IFS
11152
11153   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11154   ;;
11155 esac
11156 fi
11157 CHMOD=$ac_cv_path_CHMOD
11158 if test -n "$CHMOD"; then
11159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11160 printf "%s\n" "$CHMOD" >&6; }
11161 else
11162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 printf "%s\n" "no" >&6; }
11164 fi
11165
11166
11167 for ac_prog in gawk mawk nawk awk
11168 do
11169   # Extract the first word of "$ac_prog", so it can be a program name with args.
11170 set dummy $ac_prog; ac_word=$2
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 printf %s "checking for $ac_word... " >&6; }
11173 if test ${ac_cv_prog_AWK+y}
11174 then :
11175   printf %s "(cached) " >&6
11176 else $as_nop
11177   if test -n "$AWK"; then
11178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11179 else
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11182 do
11183   IFS=$as_save_IFS
11184   case $as_dir in #(((
11185     '') as_dir=./ ;;
11186     */) ;;
11187     *) as_dir=$as_dir/ ;;
11188   esac
11189     for ac_exec_ext in '' $ac_executable_extensions; do
11190   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11191     ac_cv_prog_AWK="$ac_prog"
11192     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11193     break 2
11194   fi
11195 done
11196   done
11197 IFS=$as_save_IFS
11198
11199 fi
11200 fi
11201 AWK=$ac_cv_prog_AWK
11202 if test -n "$AWK"; then
11203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11204 printf "%s\n" "$AWK" >&6; }
11205 else
11206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 printf "%s\n" "no" >&6; }
11208 fi
11209
11210
11211   test -n "$AWK" && break
11212 done
11213
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11215 printf %s "checking for egrep... " >&6; }
11216 if test ${ac_cv_path_EGREP+y}
11217 then :
11218   printf %s "(cached) " >&6
11219 else $as_nop
11220   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11221    then ac_cv_path_EGREP="$GREP -E"
11222    else
11223      if test -z "$EGREP"; then
11224   ac_path_EGREP_found=false
11225   # Loop through the user's path and test for each of PROGNAME-LIST
11226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11228 do
11229   IFS=$as_save_IFS
11230   case $as_dir in #(((
11231     '') as_dir=./ ;;
11232     */) ;;
11233     *) as_dir=$as_dir/ ;;
11234   esac
11235     for ac_prog in egrep
11236    do
11237     for ac_exec_ext in '' $ac_executable_extensions; do
11238       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11239       as_fn_executable_p "$ac_path_EGREP" || continue
11240 # Check for GNU ac_path_EGREP and select it if it is found.
11241   # Check for GNU $ac_path_EGREP
11242 case `"$ac_path_EGREP" --version 2>&1` in
11243 *GNU*)
11244   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11245 *)
11246   ac_count=0
11247   printf %s 0123456789 >"conftest.in"
11248   while :
11249   do
11250     cat "conftest.in" "conftest.in" >"conftest.tmp"
11251     mv "conftest.tmp" "conftest.in"
11252     cp "conftest.in" "conftest.nl"
11253     printf "%s\n" 'EGREP' >> "conftest.nl"
11254     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11255     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11256     as_fn_arith $ac_count + 1 && ac_count=$as_val
11257     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11258       # Best one so far, save it but keep looking for a better one
11259       ac_cv_path_EGREP="$ac_path_EGREP"
11260       ac_path_EGREP_max=$ac_count
11261     fi
11262     # 10*(2^10) chars as input seems more than enough
11263     test $ac_count -gt 10 && break
11264   done
11265   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11266 esac
11267
11268       $ac_path_EGREP_found && break 3
11269     done
11270   done
11271   done
11272 IFS=$as_save_IFS
11273   if test -z "$ac_cv_path_EGREP"; then
11274     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11275   fi
11276 else
11277   ac_cv_path_EGREP=$EGREP
11278 fi
11279
11280    fi
11281 fi
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11283 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11284  EGREP="$ac_cv_path_EGREP"
11285
11286
11287 # Extract the first word of "sed", so it can be a program name with args.
11288 set dummy sed; ac_word=$2
11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 printf %s "checking for $ac_word... " >&6; }
11291 if test ${ac_cv_path_SED+y}
11292 then :
11293   printf %s "(cached) " >&6
11294 else $as_nop
11295   case $SED in
11296   [\\/]* | ?:[\\/]*)
11297   ac_cv_path_SED="$SED" # Let the user override the test with a path.
11298   ;;
11299   *)
11300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   case $as_dir in #(((
11305     '') as_dir=./ ;;
11306     */) ;;
11307     *) as_dir=$as_dir/ ;;
11308   esac
11309     for ac_exec_ext in '' $ac_executable_extensions; do
11310   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11311     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11312     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11313     break 2
11314   fi
11315 done
11316   done
11317 IFS=$as_save_IFS
11318
11319   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11320   ;;
11321 esac
11322 fi
11323 SED=$ac_cv_path_SED
11324 if test -n "$SED"; then
11325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11326 printf "%s\n" "$SED" >&6; }
11327 else
11328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 printf "%s\n" "no" >&6; }
11330 fi
11331
11332
11333 # Extract the first word of "perl", so it can be a program name with args.
11334 set dummy perl; ac_word=$2
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 printf %s "checking for $ac_word... " >&6; }
11337 if test ${ac_cv_path_PERL+y}
11338 then :
11339   printf %s "(cached) " >&6
11340 else $as_nop
11341   case $PERL in
11342   [\\/]* | ?:[\\/]*)
11343   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11344   ;;
11345   *)
11346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11348 do
11349   IFS=$as_save_IFS
11350   case $as_dir in #(((
11351     '') as_dir=./ ;;
11352     */) ;;
11353     *) as_dir=$as_dir/ ;;
11354   esac
11355     for ac_exec_ext in '' $ac_executable_extensions; do
11356   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11357     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11358     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11359     break 2
11360   fi
11361 done
11362   done
11363 IFS=$as_save_IFS
11364
11365   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11366   ;;
11367 esac
11368 fi
11369 PERL=$ac_cv_path_PERL
11370 if test -n "$PERL"; then
11371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11372 printf "%s\n" "$PERL" >&6; }
11373 else
11374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 printf "%s\n" "no" >&6; }
11376 fi
11377
11378
11379 # Extract the first word of "ldconfig", so it can be a program name with args.
11380 set dummy ldconfig; ac_word=$2
11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 printf %s "checking for $ac_word... " >&6; }
11383 if test ${ac_cv_path_LDCONFIG+y}
11384 then :
11385   printf %s "(cached) " >&6
11386 else $as_nop
11387   case $LDCONFIG in
11388   [\\/]* | ?:[\\/]*)
11389   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11390   ;;
11391   *)
11392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11394 do
11395   IFS=$as_save_IFS
11396   case $as_dir in #(((
11397     '') as_dir=./ ;;
11398     */) ;;
11399     *) as_dir=$as_dir/ ;;
11400   esac
11401     for ac_exec_ext in '' $ac_executable_extensions; do
11402   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11403     ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11404     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11405     break 2
11406   fi
11407 done
11408   done
11409 IFS=$as_save_IFS
11410
11411   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11412   ;;
11413 esac
11414 fi
11415 LDCONFIG=$ac_cv_path_LDCONFIG
11416 if test -n "$LDCONFIG"; then
11417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11418 printf "%s\n" "$LDCONFIG" >&6; }
11419 else
11420   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 printf "%s\n" "no" >&6; }
11422 fi
11423
11424
11425 if test -n "$ac_tool_prefix"; then
11426   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11427 set dummy ${ac_tool_prefix}ar; ac_word=$2
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 printf %s "checking for $ac_word... " >&6; }
11430 if test ${ac_cv_prog_AR+y}
11431 then :
11432   printf %s "(cached) " >&6
11433 else $as_nop
11434   if test -n "$AR"; then
11435   ac_cv_prog_AR="$AR" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440   IFS=$as_save_IFS
11441   case $as_dir in #(((
11442     '') as_dir=./ ;;
11443     */) ;;
11444     *) as_dir=$as_dir/ ;;
11445   esac
11446     for ac_exec_ext in '' $ac_executable_extensions; do
11447   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11448     ac_cv_prog_AR="${ac_tool_prefix}ar"
11449     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11450     break 2
11451   fi
11452 done
11453   done
11454 IFS=$as_save_IFS
11455
11456 fi
11457 fi
11458 AR=$ac_cv_prog_AR
11459 if test -n "$AR"; then
11460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11461 printf "%s\n" "$AR" >&6; }
11462 else
11463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 printf "%s\n" "no" >&6; }
11465 fi
11466
11467
11468 fi
11469 if test -z "$ac_cv_prog_AR"; then
11470   ac_ct_AR=$AR
11471   # Extract the first word of "ar", so it can be a program name with args.
11472 set dummy ar; ac_word=$2
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 printf %s "checking for $ac_word... " >&6; }
11475 if test ${ac_cv_prog_ac_ct_AR+y}
11476 then :
11477   printf %s "(cached) " >&6
11478 else $as_nop
11479   if test -n "$ac_ct_AR"; then
11480   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11481 else
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11484 do
11485   IFS=$as_save_IFS
11486   case $as_dir in #(((
11487     '') as_dir=./ ;;
11488     */) ;;
11489     *) as_dir=$as_dir/ ;;
11490   esac
11491     for ac_exec_ext in '' $ac_executable_extensions; do
11492   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11493     ac_cv_prog_ac_ct_AR="ar"
11494     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11495     break 2
11496   fi
11497 done
11498   done
11499 IFS=$as_save_IFS
11500
11501 fi
11502 fi
11503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11504 if test -n "$ac_ct_AR"; then
11505   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11506 printf "%s\n" "$ac_ct_AR" >&6; }
11507 else
11508   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 printf "%s\n" "no" >&6; }
11510 fi
11511
11512   if test "x$ac_ct_AR" = x; then
11513     AR="ar"
11514   else
11515     case $cross_compiling:$ac_tool_warned in
11516 yes:)
11517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519 ac_tool_warned=yes ;;
11520 esac
11521     AR=$ac_ct_AR
11522   fi
11523 else
11524   AR="$ac_cv_prog_AR"
11525 fi
11526
11527 if test -n "$ac_tool_prefix"; then
11528   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 printf %s "checking for $ac_word... " >&6; }
11532 if test ${ac_cv_prog_RANLIB+y}
11533 then :
11534   printf %s "(cached) " >&6
11535 else $as_nop
11536   if test -n "$RANLIB"; then
11537   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11538 else
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542   IFS=$as_save_IFS
11543   case $as_dir in #(((
11544     '') as_dir=./ ;;
11545     */) ;;
11546     *) as_dir=$as_dir/ ;;
11547   esac
11548     for ac_exec_ext in '' $ac_executable_extensions; do
11549   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11550     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11551     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11552     break 2
11553   fi
11554 done
11555   done
11556 IFS=$as_save_IFS
11557
11558 fi
11559 fi
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11563 printf "%s\n" "$RANLIB" >&6; }
11564 else
11565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 printf "%s\n" "no" >&6; }
11567 fi
11568
11569
11570 fi
11571 if test -z "$ac_cv_prog_RANLIB"; then
11572   ac_ct_RANLIB=$RANLIB
11573   # Extract the first word of "ranlib", so it can be a program name with args.
11574 set dummy ranlib; ac_word=$2
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 printf %s "checking for $ac_word... " >&6; }
11577 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11578 then :
11579   printf %s "(cached) " >&6
11580 else $as_nop
11581   if test -n "$ac_ct_RANLIB"; then
11582   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587   IFS=$as_save_IFS
11588   case $as_dir in #(((
11589     '') as_dir=./ ;;
11590     */) ;;
11591     *) as_dir=$as_dir/ ;;
11592   esac
11593     for ac_exec_ext in '' $ac_executable_extensions; do
11594   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11595     ac_cv_prog_ac_ct_RANLIB="ranlib"
11596     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11597     break 2
11598   fi
11599 done
11600   done
11601 IFS=$as_save_IFS
11602
11603 fi
11604 fi
11605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11606 if test -n "$ac_ct_RANLIB"; then
11607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11608 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11609 else
11610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 printf "%s\n" "no" >&6; }
11612 fi
11613
11614   if test "x$ac_ct_RANLIB" = x; then
11615     RANLIB=":"
11616   else
11617     case $cross_compiling:$ac_tool_warned in
11618 yes:)
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11621 ac_tool_warned=yes ;;
11622 esac
11623     RANLIB=$ac_ct_RANLIB
11624   fi
11625 else
11626   RANLIB="$ac_cv_prog_RANLIB"
11627 fi
11628
11629 if test -n "$ac_tool_prefix"; then
11630   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11631 set dummy ${ac_tool_prefix}strip; ac_word=$2
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 printf %s "checking for $ac_word... " >&6; }
11634 if test ${ac_cv_prog_STRIP+y}
11635 then :
11636   printf %s "(cached) " >&6
11637 else $as_nop
11638   if test -n "$STRIP"; then
11639   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11640 else
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11643 do
11644   IFS=$as_save_IFS
11645   case $as_dir in #(((
11646     '') as_dir=./ ;;
11647     */) ;;
11648     *) as_dir=$as_dir/ ;;
11649   esac
11650     for ac_exec_ext in '' $ac_executable_extensions; do
11651   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11652     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11653     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657   done
11658 IFS=$as_save_IFS
11659
11660 fi
11661 fi
11662 STRIP=$ac_cv_prog_STRIP
11663 if test -n "$STRIP"; then
11664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11665 printf "%s\n" "$STRIP" >&6; }
11666 else
11667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 printf "%s\n" "no" >&6; }
11669 fi
11670
11671
11672 fi
11673 if test -z "$ac_cv_prog_STRIP"; then
11674   ac_ct_STRIP=$STRIP
11675   # Extract the first word of "strip", so it can be a program name with args.
11676 set dummy strip; ac_word=$2
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 printf %s "checking for $ac_word... " >&6; }
11679 if test ${ac_cv_prog_ac_ct_STRIP+y}
11680 then :
11681   printf %s "(cached) " >&6
11682 else $as_nop
11683   if test -n "$ac_ct_STRIP"; then
11684   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689   IFS=$as_save_IFS
11690   case $as_dir in #(((
11691     '') as_dir=./ ;;
11692     */) ;;
11693     *) as_dir=$as_dir/ ;;
11694   esac
11695     for ac_exec_ext in '' $ac_executable_extensions; do
11696   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11697     ac_cv_prog_ac_ct_STRIP="strip"
11698     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702   done
11703 IFS=$as_save_IFS
11704
11705 fi
11706 fi
11707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11708 if test -n "$ac_ct_STRIP"; then
11709   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11710 printf "%s\n" "$ac_ct_STRIP" >&6; }
11711 else
11712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 printf "%s\n" "no" >&6; }
11714 fi
11715
11716   if test "x$ac_ct_STRIP" = x; then
11717     STRIP=":"
11718   else
11719     case $cross_compiling:$ac_tool_warned in
11720 yes:)
11721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11723 ac_tool_warned=yes ;;
11724 esac
11725     STRIP=$ac_ct_STRIP
11726   fi
11727 else
11728   STRIP="$ac_cv_prog_STRIP"
11729 fi
11730
11731 # Extract the first word of "makeinfo", so it can be a program name with args.
11732 set dummy makeinfo; ac_word=$2
11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 printf %s "checking for $ac_word... " >&6; }
11735 if test ${ac_cv_prog_MAKEINFO+y}
11736 then :
11737   printf %s "(cached) " >&6
11738 else $as_nop
11739   if test -n "$MAKEINFO"; then
11740   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   case $as_dir in #(((
11747     '') as_dir=./ ;;
11748     */) ;;
11749     *) as_dir=$as_dir/ ;;
11750   esac
11751     for ac_exec_ext in '' $ac_executable_extensions; do
11752   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11753     ac_cv_prog_MAKEINFO="makeinfo"
11754     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11755     break 2
11756   fi
11757 done
11758   done
11759 IFS=$as_save_IFS
11760
11761 fi
11762 fi
11763 MAKEINFO=$ac_cv_prog_MAKEINFO
11764 if test -n "$MAKEINFO"; then
11765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11766 printf "%s\n" "$MAKEINFO" >&6; }
11767 else
11768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 printf "%s\n" "no" >&6; }
11770 fi
11771
11772
11773 if test "_$MAKEINFO" = "_"; then
11774     MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11775 else
11776     case "$MAKEINFO" in
11777       */missing.*)
11778         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11779 *** Makeinfo is missing. Info documentation will not be built." >&5
11780 printf "%s\n" "$as_me: WARNING:
11781 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11782         ;;
11783       *)
11784         ;;
11785     esac
11786 fi
11787
11788
11789 # See if we need a separate native compiler.
11790 if test $cross_compiling = no; then
11791   BUILD_CC="$CC"
11792
11793 else
11794   for ac_prog in gcc cc
11795 do
11796   # Extract the first word of "$ac_prog", so it can be a program name with args.
11797 set dummy $ac_prog; ac_word=$2
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 printf %s "checking for $ac_word... " >&6; }
11800 if test ${ac_cv_prog_BUILD_CC+y}
11801 then :
11802   printf %s "(cached) " >&6
11803 else $as_nop
11804   if test -n "$BUILD_CC"; then
11805   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11806 else
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH
11809 do
11810   IFS=$as_save_IFS
11811   case $as_dir in #(((
11812     '') as_dir=./ ;;
11813     */) ;;
11814     *) as_dir=$as_dir/ ;;
11815   esac
11816     for ac_exec_ext in '' $ac_executable_extensions; do
11817   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11818     ac_cv_prog_BUILD_CC="$ac_prog"
11819     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11820     break 2
11821   fi
11822 done
11823   done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 BUILD_CC=$ac_cv_prog_BUILD_CC
11829 if test -n "$BUILD_CC"; then
11830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11831 printf "%s\n" "$BUILD_CC" >&6; }
11832 else
11833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 printf "%s\n" "no" >&6; }
11835 fi
11836
11837
11838   test -n "$BUILD_CC" && break
11839 done
11840
11841 fi
11842 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11843 if test "x$ac_cv_header_dirent_h" = xyes
11844 then :
11845   printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11846
11847 fi
11848 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_errno_h" = xyes
11850 then :
11851   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11852
11853 fi
11854 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_execinfo_h" = xyes
11856 then :
11857   printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11858
11859 fi
11860 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_getopt_h" = xyes
11862 then :
11863   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11864
11865 fi
11866 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_malloc_h" = xyes
11868 then :
11869   printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11870
11871 fi
11872 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_mntent_h" = xyes
11874 then :
11875   printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11876
11877 fi
11878 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11879 if test "x$ac_cv_header_paths_h" = xyes
11880 then :
11881   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11882
11883 fi
11884 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_pthread_h" = xyes
11886 then :
11887   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11888
11889 fi
11890 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_semaphore_h" = xyes
11892 then :
11893   printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11894
11895 fi
11896 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_setjmp_h" = xyes
11898 then :
11899   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11900
11901 fi
11902 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_signal_h" = xyes
11904 then :
11905   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11906
11907 fi
11908 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_stdarg_h" = xyes
11910 then :
11911   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11912
11913 fi
11914 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_stdint_h" = xyes
11916 then :
11917   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11918
11919 fi
11920 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11921 if test "x$ac_cv_header_stdlib_h" = xyes
11922 then :
11923   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11924
11925 fi
11926 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11927 if test "x$ac_cv_header_termios_h" = xyes
11928 then :
11929   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11930
11931 fi
11932 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_termio_h" = xyes
11934 then :
11935   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11936
11937 fi
11938 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_unistd_h" = xyes
11940 then :
11941   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11942
11943 fi
11944 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_utime_h" = xyes
11946 then :
11947   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11948
11949 fi
11950 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_attr_xattr_h" = xyes
11952 then :
11953   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11954
11955 fi
11956 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_linux_falloc_h" = xyes
11958 then :
11959   printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11960
11961 fi
11962 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11963 if test "x$ac_cv_header_linux_fd_h" = xyes
11964 then :
11965   printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11966
11967 fi
11968 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11969 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11970 then :
11971   printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11972
11973 fi
11974 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_linux_major_h" = xyes
11976 then :
11977   printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11978
11979 fi
11980 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11981 if test "x$ac_cv_header_linux_loop_h" = xyes
11982 then :
11983   printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11984
11985 fi
11986 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11987 if test "x$ac_cv_header_linux_types_h" = xyes
11988 then :
11989   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11990
11991 fi
11992 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11993 if test "x$ac_cv_header_net_if_dl_h" = xyes
11994 then :
11995   printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11996
11997 fi
11998 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11999 if test "x$ac_cv_header_netinet_in_h" = xyes
12000 then :
12001   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12002
12003 fi
12004 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_sys_acl_h" = xyes
12006 then :
12007   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12008
12009 fi
12010 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12011 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12012 then :
12013   printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12014
12015 fi
12016 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_sys_disk_h" = xyes
12018 then :
12019   printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12020
12021 fi
12022 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12023 if test "x$ac_cv_header_sys_file_h" = xyes
12024 then :
12025   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12026
12027 fi
12028 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12030 then :
12031   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12032
12033 fi
12034 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_sys_key_h" = xyes
12036 then :
12037   printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12038
12039 fi
12040 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12041 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12042 then :
12043   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12044
12045 fi
12046 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12047 if test "x$ac_cv_header_sys_mman_h" = xyes
12048 then :
12049   printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12050
12051 fi
12052 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_sys_mount_h" = xyes
12054 then :
12055   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12056
12057 fi
12058 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_sys_prctl_h" = xyes
12060 then :
12061   printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12062
12063 fi
12064 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12065 if test "x$ac_cv_header_sys_random_h" = xyes
12066 then :
12067   printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12068
12069 fi
12070 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12071 if test "x$ac_cv_header_sys_resource_h" = xyes
12072 then :
12073   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12074
12075 fi
12076 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12077 if test "x$ac_cv_header_sys_select_h" = xyes
12078 then :
12079   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12080
12081 fi
12082 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12083 if test "x$ac_cv_header_sys_socket_h" = xyes
12084 then :
12085   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12086
12087 fi
12088 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_sys_sockio_h" = xyes
12090 then :
12091   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12092
12093 fi
12094 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_stat_h" = xyes
12096 then :
12097   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12098
12099 fi
12100 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12101 if test "x$ac_cv_header_sys_syscall_h" = xyes
12102 then :
12103   printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12104
12105 fi
12106 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12108 then :
12109   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12110
12111 fi
12112 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_sys_time_h" = xyes
12114 then :
12115   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12116
12117 fi
12118 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_sys_types_h" = xyes
12120 then :
12121   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12122
12123 fi
12124 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_sys_un_h" = xyes
12126 then :
12127   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12128
12129 fi
12130 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_sys_wait_h" = xyes
12132 then :
12133   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12134
12135 fi
12136 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_sys_xattr_h" = xyes
12138 then :
12139   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12140
12141 fi
12142
12143 case "$host_os" in
12144 mingw*)
12145         # The above checks only detect system headers, not the headers in
12146         # ./include/mingw/, so explicitly define them to be available.
12147         printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12148
12149         printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12150
12151         printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12152
12153         printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12154
12155         printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12156
12157         ;;
12158 esac
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12160 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12161 DD=
12162 for i in dd gdd ; do
12163         if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12164                 DD=$i
12165                 break
12166         fi
12167 done
12168 if test -n "$DD" ; then
12169         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12170 printf "%s\n" "$DD" >&6; }
12171 else
12172         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12173 printf "%s\n" "not found, using dd" >&6; }
12174         DD=dd
12175         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12176 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12177 fi
12178
12179
12180 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12181 #if HAVE_SYS_TYPES_H
12182 #include <sys/types.h>
12183 #endif
12184 #if HAVE_SYS_SOCKET
12185 #include <sys/socket.h>
12186 #endif
12187
12188 "
12189 if test "x$ac_cv_header_net_if_h" = xyes
12190 then :
12191   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12192
12193 fi
12194
12195 ac_func=
12196 for ac_item in $ac_func_c_list
12197 do
12198   if test $ac_func; then
12199     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12200     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12201       echo "#define $ac_item 1" >> confdefs.h
12202     fi
12203     ac_func=
12204   else
12205     ac_func=$ac_item
12206   fi
12207 done
12208
12209 if test "x$ac_cv_func_vprintf" = xno
12210 then :
12211   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12212 if test "x$ac_cv_func__doprnt" = xyes
12213 then :
12214
12215 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12216
12217 fi
12218
12219 fi
12220 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12221 "
12222 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12223 then :
12224
12225 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12226
12227 fi
12228
12229 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12230 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12231 then :
12232
12233 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12234
12235
12236 fi
12237
12238 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12239 "
12240 if test "x$ac_cv_type_ssize_t" = xyes
12241 then :
12242
12243 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12244
12245 fi
12246
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12248 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12249 if test ${ac_cv_c_undeclared_builtin_options+y}
12250 then :
12251   printf %s "(cached) " >&6
12252 else $as_nop
12253   ac_save_CFLAGS=$CFLAGS
12254    ac_cv_c_undeclared_builtin_options='cannot detect'
12255    for ac_arg in '' -fno-builtin; do
12256      CFLAGS="$ac_save_CFLAGS $ac_arg"
12257      # This test program should *not* compile successfully.
12258      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h.  */
12260
12261 int
12262 main (void)
12263 {
12264 (void) strchr;
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"
12270 then :
12271
12272 else $as_nop
12273   # This test program should compile successfully.
12274         # No library function is consistently available on
12275         # freestanding implementations, so test against a dummy
12276         # declaration.  Include always-available headers on the
12277         # off chance that they somehow elicit warnings.
12278         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280 #include <float.h>
12281 #include <limits.h>
12282 #include <stdarg.h>
12283 #include <stddef.h>
12284 extern void ac_decl (int, char *);
12285
12286 int
12287 main (void)
12288 {
12289 (void) ac_decl (0, (char *) 0);
12290   (void) ac_decl;
12291
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_compile "$LINENO"
12297 then :
12298   if test x"$ac_arg" = x
12299 then :
12300   ac_cv_c_undeclared_builtin_options='none needed'
12301 else $as_nop
12302   ac_cv_c_undeclared_builtin_options=$ac_arg
12303 fi
12304           break
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12309     done
12310     CFLAGS=$ac_save_CFLAGS
12311
12312 fi
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12314 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12315   case $ac_cv_c_undeclared_builtin_options in #(
12316   'cannot detect') :
12317     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12319 as_fn_error $? "cannot make $CC report undeclared builtins
12320 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12321   'none needed') :
12322     ac_c_undeclared_builtin_options='' ;; #(
12323   *) :
12324     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12325 esac
12326
12327 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12328 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12329 if test "x$ac_cv_have_decl_llseek" = xyes
12330 then :
12331
12332 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12333
12334 fi
12335 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12336                  #define _LARGEFILE64_SOURCE
12337                  #include <unistd.h>
12338 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12339 if test "x$ac_cv_have_decl_lseek64" = xyes
12340 then :
12341
12342 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12343
12344 fi
12345
12346 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12347 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12348 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12349 then :
12350
12351 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12352
12353 fi
12354 # Check whether --enable-largefile was given.
12355 if test ${enable_largefile+y}
12356 then :
12357   enableval=$enable_largefile;
12358 fi
12359
12360 if test "$enable_largefile" != no; then
12361
12362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12363 printf %s "checking for special C compiler options needed for large files... " >&6; }
12364 if test ${ac_cv_sys_largefile_CC+y}
12365 then :
12366   printf %s "(cached) " >&6
12367 else $as_nop
12368   ac_cv_sys_largefile_CC=no
12369      if test "$GCC" != yes; then
12370        ac_save_CC=$CC
12371        while :; do
12372          # IRIX 6.2 and later do not support large files by default,
12373          # so use the C compiler's -n32 option if that helps.
12374          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h.  */
12376 #include <sys/types.h>
12377  /* Check that off_t can represent 2**63 - 1 correctly.
12378     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12379     since some C++ compilers masquerading as C compilers
12380     incorrectly reject 9223372036854775807.  */
12381 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12382   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12383                        && LARGE_OFF_T % 2147483647 == 1)
12384                       ? 1 : -1];
12385 int
12386 main (void)
12387 {
12388
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393          if ac_fn_c_try_compile "$LINENO"
12394 then :
12395   break
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext conftest.beam
12398          CC="$CC -n32"
12399          if ac_fn_c_try_compile "$LINENO"
12400 then :
12401   ac_cv_sys_largefile_CC=' -n32'; break
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext conftest.beam
12404          break
12405        done
12406        CC=$ac_save_CC
12407        rm -f conftest.$ac_ext
12408     fi
12409 fi
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12411 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12412   if test "$ac_cv_sys_largefile_CC" != no; then
12413     CC=$CC$ac_cv_sys_largefile_CC
12414   fi
12415
12416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12417 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12418 if test ${ac_cv_sys_file_offset_bits+y}
12419 then :
12420   printf %s "(cached) " >&6
12421 else $as_nop
12422   while :; do
12423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h.  */
12425 #include <sys/types.h>
12426  /* Check that off_t can represent 2**63 - 1 correctly.
12427     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12428     since some C++ compilers masquerading as C compilers
12429     incorrectly reject 9223372036854775807.  */
12430 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12431   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12432                        && LARGE_OFF_T % 2147483647 == 1)
12433                       ? 1 : -1];
12434 int
12435 main (void)
12436 {
12437
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 if ac_fn_c_try_compile "$LINENO"
12443 then :
12444   ac_cv_sys_file_offset_bits=no; break
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h.  */
12449 #define _FILE_OFFSET_BITS 64
12450 #include <sys/types.h>
12451  /* Check that off_t can represent 2**63 - 1 correctly.
12452     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12453     since some C++ compilers masquerading as C compilers
12454     incorrectly reject 9223372036854775807.  */
12455 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12456   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12457                        && LARGE_OFF_T % 2147483647 == 1)
12458                       ? 1 : -1];
12459 int
12460 main (void)
12461 {
12462
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_compile "$LINENO"
12468 then :
12469   ac_cv_sys_file_offset_bits=64; break
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12472   ac_cv_sys_file_offset_bits=unknown
12473   break
12474 done
12475 fi
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12477 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12478 case $ac_cv_sys_file_offset_bits in #(
12479   no | unknown) ;;
12480   *)
12481 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12482 ;;
12483 esac
12484 rm -rf conftest*
12485   if test $ac_cv_sys_file_offset_bits = unknown; then
12486     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12487 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12488 if test ${ac_cv_sys_large_files+y}
12489 then :
12490   printf %s "(cached) " >&6
12491 else $as_nop
12492   while :; do
12493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h.  */
12495 #include <sys/types.h>
12496  /* Check that off_t can represent 2**63 - 1 correctly.
12497     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12498     since some C++ compilers masquerading as C compilers
12499     incorrectly reject 9223372036854775807.  */
12500 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12501   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12502                        && LARGE_OFF_T % 2147483647 == 1)
12503                       ? 1 : -1];
12504 int
12505 main (void)
12506 {
12507
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 if ac_fn_c_try_compile "$LINENO"
12513 then :
12514   ac_cv_sys_large_files=no; break
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h.  */
12519 #define _LARGE_FILES 1
12520 #include <sys/types.h>
12521  /* Check that off_t can represent 2**63 - 1 correctly.
12522     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12523     since some C++ compilers masquerading as C compilers
12524     incorrectly reject 9223372036854775807.  */
12525 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12526   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12527                        && LARGE_OFF_T % 2147483647 == 1)
12528                       ? 1 : -1];
12529 int
12530 main (void)
12531 {
12532
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 if ac_fn_c_try_compile "$LINENO"
12538 then :
12539   ac_cv_sys_large_files=1; break
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12542   ac_cv_sys_large_files=unknown
12543   break
12544 done
12545 fi
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12547 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12548 case $ac_cv_sys_large_files in #(
12549   no | unknown) ;;
12550   *)
12551 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12552 ;;
12553 esac
12554 rm -rf conftest*
12555   fi
12556 fi
12557
12558 # The cast to long int works around a bug in the HP C Compiler
12559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12561 # This bug is HP SR number 8606223364.
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12563 printf %s "checking size of short... " >&6; }
12564 if test ${ac_cv_sizeof_short+y}
12565 then :
12566   printf %s "(cached) " >&6
12567 else $as_nop
12568   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
12569 then :
12570
12571 else $as_nop
12572   if test "$ac_cv_type_short" = yes; then
12573      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12575 as_fn_error 77 "cannot compute sizeof (short)
12576 See \`config.log' for more details" "$LINENO" 5; }
12577    else
12578      ac_cv_sizeof_short=0
12579    fi
12580 fi
12581
12582 fi
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12584 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12585
12586
12587
12588 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12589
12590
12591 # The cast to long int works around a bug in the HP C Compiler
12592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12594 # This bug is HP SR number 8606223364.
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12596 printf %s "checking size of int... " >&6; }
12597 if test ${ac_cv_sizeof_int+y}
12598 then :
12599   printf %s "(cached) " >&6
12600 else $as_nop
12601   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
12602 then :
12603
12604 else $as_nop
12605   if test "$ac_cv_type_int" = yes; then
12606      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12608 as_fn_error 77 "cannot compute sizeof (int)
12609 See \`config.log' for more details" "$LINENO" 5; }
12610    else
12611      ac_cv_sizeof_int=0
12612    fi
12613 fi
12614
12615 fi
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12617 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12618
12619
12620
12621 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12622
12623
12624 # The cast to long int works around a bug in the HP C Compiler
12625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12627 # This bug is HP SR number 8606223364.
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12629 printf %s "checking size of long... " >&6; }
12630 if test ${ac_cv_sizeof_long+y}
12631 then :
12632   printf %s "(cached) " >&6
12633 else $as_nop
12634   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
12635 then :
12636
12637 else $as_nop
12638   if test "$ac_cv_type_long" = yes; then
12639      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12641 as_fn_error 77 "cannot compute sizeof (long)
12642 See \`config.log' for more details" "$LINENO" 5; }
12643    else
12644      ac_cv_sizeof_long=0
12645    fi
12646 fi
12647
12648 fi
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12650 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12651
12652
12653
12654 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12655
12656
12657 # The cast to long int works around a bug in the HP C Compiler
12658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660 # This bug is HP SR number 8606223364.
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12662 printf %s "checking size of long long... " >&6; }
12663 if test ${ac_cv_sizeof_long_long+y}
12664 then :
12665   printf %s "(cached) " >&6
12666 else $as_nop
12667   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
12668 then :
12669
12670 else $as_nop
12671   if test "$ac_cv_type_long_long" = yes; then
12672      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12673 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12674 as_fn_error 77 "cannot compute sizeof (long long)
12675 See \`config.log' for more details" "$LINENO" 5; }
12676    else
12677      ac_cv_sizeof_long_long=0
12678    fi
12679 fi
12680
12681 fi
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12683 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12684
12685
12686
12687 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12688
12689
12690 # The cast to long int works around a bug in the HP C Compiler
12691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12693 # This bug is HP SR number 8606223364.
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12695 printf %s "checking size of off_t... " >&6; }
12696 if test ${ac_cv_sizeof_off_t+y}
12697 then :
12698   printf %s "(cached) " >&6
12699 else $as_nop
12700   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"
12701 then :
12702
12703 else $as_nop
12704   if test "$ac_cv_type_off_t" = yes; then
12705      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12707 as_fn_error 77 "cannot compute sizeof (off_t)
12708 See \`config.log' for more details" "$LINENO" 5; }
12709    else
12710      ac_cv_sizeof_off_t=0
12711    fi
12712 fi
12713
12714 fi
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12716 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12717
12718
12719
12720 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12721
12722
12723 # The cast to long int works around a bug in the HP C Compiler
12724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12726 # This bug is HP SR number 8606223364.
12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12728 printf %s "checking size of time_t... " >&6; }
12729 if test ${ac_cv_sizeof_time_t+y}
12730 then :
12731   printf %s "(cached) " >&6
12732 else $as_nop
12733   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
12734 then :
12735
12736 else $as_nop
12737   if test "$ac_cv_type_time_t" = yes; then
12738      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12740 as_fn_error 77 "cannot compute sizeof (time_t)
12741 See \`config.log' for more details" "$LINENO" 5; }
12742    else
12743      ac_cv_sizeof_time_t=0
12744    fi
12745 fi
12746
12747 fi
12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12749 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12750
12751
12752
12753 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12754
12755
12756 SIZEOF_SHORT=$ac_cv_sizeof_short
12757 SIZEOF_INT=$ac_cv_sizeof_int
12758 SIZEOF_LONG=$ac_cv_sizeof_long
12759 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12760 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12761 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12762
12763
12764
12765
12766
12767
12768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12769 printf %s "checking whether byte ordering is bigendian... " >&6; }
12770 if test ${ac_cv_c_bigendian+y}
12771 then :
12772   printf %s "(cached) " >&6
12773 else $as_nop
12774   ac_cv_c_bigendian=unknown
12775     # See if we're dealing with a universal compiler.
12776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h.  */
12778 #ifndef __APPLE_CC__
12779                not a universal capable compiler
12780              #endif
12781              typedef int dummy;
12782
12783 _ACEOF
12784 if ac_fn_c_try_compile "$LINENO"
12785 then :
12786
12787         # Check for potential -arch flags.  It is not universal unless
12788         # there are at least two -arch flags with different values.
12789         ac_arch=
12790         ac_prev=
12791         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12792          if test -n "$ac_prev"; then
12793            case $ac_word in
12794              i?86 | x86_64 | ppc | ppc64)
12795                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12796                  ac_arch=$ac_word
12797                else
12798                  ac_cv_c_bigendian=universal
12799                  break
12800                fi
12801                ;;
12802            esac
12803            ac_prev=
12804          elif test "x$ac_word" = "x-arch"; then
12805            ac_prev=arch
12806          fi
12807        done
12808 fi
12809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12810     if test $ac_cv_c_bigendian = unknown; then
12811       # See if sys/param.h defines the BYTE_ORDER macro.
12812       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h.  */
12814 #include <sys/types.h>
12815              #include <sys/param.h>
12816
12817 int
12818 main (void)
12819 {
12820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12821                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12822                      && LITTLE_ENDIAN)
12823               bogus endian macros
12824              #endif
12825
12826   ;
12827   return 0;
12828 }
12829 _ACEOF
12830 if ac_fn_c_try_compile "$LINENO"
12831 then :
12832   # It does; now see whether it defined to BIG_ENDIAN or not.
12833          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h.  */
12835 #include <sys/types.h>
12836                 #include <sys/param.h>
12837
12838 int
12839 main (void)
12840 {
12841 #if BYTE_ORDER != BIG_ENDIAN
12842                  not big endian
12843                 #endif
12844
12845   ;
12846   return 0;
12847 }
12848 _ACEOF
12849 if ac_fn_c_try_compile "$LINENO"
12850 then :
12851   ac_cv_c_bigendian=yes
12852 else $as_nop
12853   ac_cv_c_bigendian=no
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12858     fi
12859     if test $ac_cv_c_bigendian = unknown; then
12860       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12861       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h.  */
12863 #include <limits.h>
12864
12865 int
12866 main (void)
12867 {
12868 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12869               bogus endian macros
12870              #endif
12871
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"
12877 then :
12878   # It does; now see whether it defined to _BIG_ENDIAN or not.
12879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h.  */
12881 #include <limits.h>
12882
12883 int
12884 main (void)
12885 {
12886 #ifndef _BIG_ENDIAN
12887                  not big endian
12888                 #endif
12889
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"
12895 then :
12896   ac_cv_c_bigendian=yes
12897 else $as_nop
12898   ac_cv_c_bigendian=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12901 fi
12902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12903     fi
12904     if test $ac_cv_c_bigendian = unknown; then
12905       # Compile a test program.
12906       if test "$cross_compiling" = yes
12907 then :
12908   # Try to guess by grepping values from an object file.
12909          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h.  */
12911 unsigned short int ascii_mm[] =
12912                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12913                 unsigned short int ascii_ii[] =
12914                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12915                 int use_ascii (int i) {
12916                   return ascii_mm[i] + ascii_ii[i];
12917                 }
12918                 unsigned short int ebcdic_ii[] =
12919                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12920                 unsigned short int ebcdic_mm[] =
12921                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12922                 int use_ebcdic (int i) {
12923                   return ebcdic_mm[i] + ebcdic_ii[i];
12924                 }
12925                 extern int foo;
12926
12927 int
12928 main (void)
12929 {
12930 return use_ascii (foo) == use_ebcdic (foo);
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_compile "$LINENO"
12936 then :
12937   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12938               ac_cv_c_bigendian=yes
12939             fi
12940             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12941               if test "$ac_cv_c_bigendian" = unknown; then
12942                 ac_cv_c_bigendian=no
12943               else
12944                 # finding both strings is unlikely to happen, but who knows?
12945                 ac_cv_c_bigendian=unknown
12946               fi
12947             fi
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12950 else $as_nop
12951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h.  */
12953 $ac_includes_default
12954 int
12955 main (void)
12956 {
12957
12958              /* Are we little or big endian?  From Harbison&Steele.  */
12959              union
12960              {
12961                long int l;
12962                char c[sizeof (long int)];
12963              } u;
12964              u.l = 1;
12965              return u.c[sizeof (long int) - 1] == 1;
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_c_try_run "$LINENO"
12972 then :
12973   ac_cv_c_bigendian=no
12974 else $as_nop
12975   ac_cv_c_bigendian=yes
12976 fi
12977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12978   conftest.$ac_objext conftest.beam conftest.$ac_ext
12979 fi
12980
12981     fi
12982 fi
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12984 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12985  case $ac_cv_c_bigendian in #(
12986    yes)
12987      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12988 ;; #(
12989    no)
12990       ;; #(
12991    universal)
12992
12993 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12994
12995      ;; #(
12996    *)
12997      as_fn_error $? "unknown endianness
12998  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12999  esac
13000
13001 if test $cross_compiling = no; then
13002   BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13003 else
13004   CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13005 fi
13006 ASM_TYPES_HEADER=./asm_types.h
13007
13008 echo "/* These defines are needed for the public ext2fs.h header file */" \
13009      > public_config.h
13010 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13011   uniq tmp_config.$$ >> public_config.h
13012 else
13013   echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13014 fi
13015 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13016   uniq tmp_config.$$ >> public_config.h
13017 else
13018   echo "#undef WORDS_BIGENDIAN" >> public_config.h
13019 fi
13020 rm -f tmp_config.$$
13021 PUBLIC_CONFIG_HEADER=./public_config.h
13022
13023 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13024 if test "x$ac_cv_header_inttypes_h" = xyes
13025 then :
13026   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13027
13028 fi
13029
13030 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13031 if test "x$ac_cv_type_intptr_t" = xyes
13032 then :
13033
13034 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13035
13036
13037 fi
13038
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13040 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13041 if test ${e2fsprogs_cv_struct_st_flags+y}
13042 then :
13043   printf %s "(cached) " >&6
13044 else $as_nop
13045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h.  */
13047 #include <sys/stat.h>
13048 int
13049 main (void)
13050 {
13051 struct stat stat; stat.st_flags = 0;
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_compile "$LINENO"
13057 then :
13058   e2fsprogs_cv_struct_st_flags=yes
13059 else $as_nop
13060   e2fsprogs_cv_struct_st_flags=no
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13063 fi
13064
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13066 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13067 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13069 printf %s "checking whether st_flags field is useful... " >&6; }
13070   if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13071 then :
13072   printf %s "(cached) " >&6
13073 else $as_nop
13074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h.  */
13076 #include <sys/stat.h>
13077 int
13078 main (void)
13079 {
13080 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13081   ;
13082   return 0;
13083 }
13084 _ACEOF
13085 if ac_fn_c_try_compile "$LINENO"
13086 then :
13087   e2fsprogs_cv_struct_st_flags_immut=yes
13088 else $as_nop
13089   e2fsprogs_cv_struct_st_flags_immut=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13092 fi
13093
13094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13095 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13096   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13097
13098 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13099
13100   fi
13101 fi
13102 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13103          #include <sys/socket.h>
13104 "
13105 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13106 then :
13107
13108 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13109
13110 fi
13111
13112 if test -n "$BLKID_CMT"; then
13113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13114 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13115 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13116 then :
13117   printf %s "(cached) " >&6
13118 else $as_nop
13119   ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lblkid  $LIBS"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h.  */
13123
13124 /* Override any GCC internal prototype to avoid an error.
13125    Use char because int might match the return type of a GCC
13126    builtin and then its argument prototype would still apply.  */
13127 char blkid_probe_get_topology ();
13128 int
13129 main (void)
13130 {
13131 return blkid_probe_get_topology ();
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"
13137 then :
13138   ac_cv_lib_blkid_blkid_probe_get_topology=yes
13139 else $as_nop
13140   ac_cv_lib_blkid_blkid_probe_get_topology=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13143     conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13145 fi
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13147 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13148 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13149 then :
13150
13151 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13152
13153 fi
13154
13155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13156 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13157 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13158 then :
13159   printf %s "(cached) " >&6
13160 else $as_nop
13161   ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lblkid  $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h.  */
13165
13166 /* Override any GCC internal prototype to avoid an error.
13167    Use char because int might match the return type of a GCC
13168    builtin and then its argument prototype would still apply.  */
13169 char blkid_topology_get_dax ();
13170 int
13171 main (void)
13172 {
13173 return blkid_topology_get_dax ();
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_link "$LINENO"
13179 then :
13180   ac_cv_lib_blkid_blkid_topology_get_dax=yes
13181 else $as_nop
13182   ac_cv_lib_blkid_blkid_topology_get_dax=no
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13185     conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13187 fi
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13189 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13190 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13191 then :
13192
13193 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13194
13195 fi
13196
13197   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13198 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13199 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13200 then :
13201   printf %s "(cached) " >&6
13202 else $as_nop
13203   ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lblkid  $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209    Use char because int might match the return type of a GCC
13210    builtin and then its argument prototype would still apply.  */
13211 char blkid_probe_enable_partitions ();
13212 int
13213 main (void)
13214 {
13215 return blkid_probe_enable_partitions ();
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 if ac_fn_c_try_link "$LINENO"
13221 then :
13222   ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13223 else $as_nop
13224   ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13225 fi
13226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13227     conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13229 fi
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13231 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13232 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13233 then :
13234
13235 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13236
13237 fi
13238
13239 fi
13240 if test -n "$DLOPEN_LIB" ; then
13241    ac_cv_func_dlopen=yes
13242 fi
13243 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13244 if test "x$ac_cv_func___secure_getenv" = xyes
13245 then :
13246   printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13247
13248 fi
13249 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13250 if test "x$ac_cv_func_add_key" = xyes
13251 then :
13252   printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13253
13254 fi
13255 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13256 if test "x$ac_cv_func_backtrace" = xyes
13257 then :
13258   printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13259
13260 fi
13261 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13262 if test "x$ac_cv_func_chflags" = xyes
13263 then :
13264   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13265
13266 fi
13267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13268 if test "x$ac_cv_func_dlopen" = xyes
13269 then :
13270   printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13271
13272 fi
13273 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13274 if test "x$ac_cv_func_fadvise64" = xyes
13275 then :
13276   printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13277
13278 fi
13279 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13280 if test "x$ac_cv_func_fallocate" = xyes
13281 then :
13282   printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13283
13284 fi
13285 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13286 if test "x$ac_cv_func_fallocate64" = xyes
13287 then :
13288   printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13289
13290 fi
13291 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13292 if test "x$ac_cv_func_fchown" = xyes
13293 then :
13294   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13295
13296 fi
13297 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13298 if test "x$ac_cv_func_fcntl" = xyes
13299 then :
13300   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13301
13302 fi
13303 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13304 if test "x$ac_cv_func_fdatasync" = xyes
13305 then :
13306   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13307
13308 fi
13309 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13310 if test "x$ac_cv_func_fstat64" = xyes
13311 then :
13312   printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13313
13314 fi
13315 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13316 if test "x$ac_cv_func_fsync" = xyes
13317 then :
13318   printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13319
13320 fi
13321 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13322 if test "x$ac_cv_func_ftruncate64" = xyes
13323 then :
13324   printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13325
13326 fi
13327 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13328 if test "x$ac_cv_func_futimes" = xyes
13329 then :
13330   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13331
13332 fi
13333 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13334 if test "x$ac_cv_func_getcwd" = xyes
13335 then :
13336   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13337
13338 fi
13339 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13340 if test "x$ac_cv_func_getdtablesize" = xyes
13341 then :
13342   printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13343
13344 fi
13345 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13346 if test "x$ac_cv_func_getentropy" = xyes
13347 then :
13348   printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13349
13350 fi
13351 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13352 if test "x$ac_cv_func_gethostname" = xyes
13353 then :
13354   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13355
13356 fi
13357 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13358 if test "x$ac_cv_func_getmntinfo" = xyes
13359 then :
13360   printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13361
13362 fi
13363 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13364 if test "x$ac_cv_func_getpwuid_r" = xyes
13365 then :
13366   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13367
13368 fi
13369 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13370 if test "x$ac_cv_func_getrandom" = xyes
13371 then :
13372   printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13373
13374 fi
13375 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13376 if test "x$ac_cv_func_getrlimit" = xyes
13377 then :
13378   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13379
13380 fi
13381 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13382 if test "x$ac_cv_func_getrusage" = xyes
13383 then :
13384   printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13385
13386 fi
13387 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13388 if test "x$ac_cv_func_jrand48" = xyes
13389 then :
13390   printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13391
13392 fi
13393 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13394 if test "x$ac_cv_func_keyctl" = xyes
13395 then :
13396   printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13397
13398 fi
13399 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13400 if test "x$ac_cv_func_llistxattr" = xyes
13401 then :
13402   printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13403
13404 fi
13405 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13406 if test "x$ac_cv_func_llseek" = xyes
13407 then :
13408   printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13409
13410 fi
13411 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13412 if test "x$ac_cv_func_lseek64" = xyes
13413 then :
13414   printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13415
13416 fi
13417 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13418 if test "x$ac_cv_func_mallinfo" = xyes
13419 then :
13420   printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13421
13422 fi
13423 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13424 if test "x$ac_cv_func_mallinfo2" = xyes
13425 then :
13426   printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13427
13428 fi
13429 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13430 if test "x$ac_cv_func_mbstowcs" = xyes
13431 then :
13432   printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13433
13434 fi
13435 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13436 if test "x$ac_cv_func_memalign" = xyes
13437 then :
13438   printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13439
13440 fi
13441 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13442 if test "x$ac_cv_func_mempcpy" = xyes
13443 then :
13444   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13445
13446 fi
13447 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13448 if test "x$ac_cv_func_mmap" = xyes
13449 then :
13450   printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13451
13452 fi
13453 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13454 if test "x$ac_cv_func_msync" = xyes
13455 then :
13456   printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13457
13458 fi
13459 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13460 if test "x$ac_cv_func_nanosleep" = xyes
13461 then :
13462   printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13463
13464 fi
13465 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13466 if test "x$ac_cv_func_open64" = xyes
13467 then :
13468   printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13469
13470 fi
13471 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13472 if test "x$ac_cv_func_pathconf" = xyes
13473 then :
13474   printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13475
13476 fi
13477 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13478 if test "x$ac_cv_func_posix_fadvise" = xyes
13479 then :
13480   printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13481
13482 fi
13483 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13484 if test "x$ac_cv_func_posix_fadvise64" = xyes
13485 then :
13486   printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13487
13488 fi
13489 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13490 if test "x$ac_cv_func_posix_memalign" = xyes
13491 then :
13492   printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13493
13494 fi
13495 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13496 if test "x$ac_cv_func_prctl" = xyes
13497 then :
13498   printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13499
13500 fi
13501 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13502 if test "x$ac_cv_func_pread" = xyes
13503 then :
13504   printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13505
13506 fi
13507 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13508 if test "x$ac_cv_func_pwrite" = xyes
13509 then :
13510   printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13511
13512 fi
13513 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13514 if test "x$ac_cv_func_pread64" = xyes
13515 then :
13516   printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13517
13518 fi
13519 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13520 if test "x$ac_cv_func_pwrite64" = xyes
13521 then :
13522   printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13523
13524 fi
13525 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13526 if test "x$ac_cv_func_qsort_r" = xyes
13527 then :
13528   printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13529
13530 fi
13531 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13532 if test "x$ac_cv_func_secure_getenv" = xyes
13533 then :
13534   printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13535
13536 fi
13537 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13538 if test "x$ac_cv_func_setmntent" = xyes
13539 then :
13540   printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13541
13542 fi
13543 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13544 if test "x$ac_cv_func_setresgid" = xyes
13545 then :
13546   printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13547
13548 fi
13549 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13550 if test "x$ac_cv_func_setresuid" = xyes
13551 then :
13552   printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13553
13554 fi
13555 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13556 if test "x$ac_cv_func_snprintf" = xyes
13557 then :
13558   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13559
13560 fi
13561 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13562 if test "x$ac_cv_func_srandom" = xyes
13563 then :
13564   printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13565
13566 fi
13567 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13568 if test "x$ac_cv_func_stpcpy" = xyes
13569 then :
13570   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13571
13572 fi
13573 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13574 if test "x$ac_cv_func_strcasecmp" = xyes
13575 then :
13576   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13577
13578 fi
13579 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13580 if test "x$ac_cv_func_strdup" = xyes
13581 then :
13582   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13583
13584 fi
13585 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13586 if test "x$ac_cv_func_strnlen" = xyes
13587 then :
13588   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13589
13590 fi
13591 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13592 if test "x$ac_cv_func_strptime" = xyes
13593 then :
13594   printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13595
13596 fi
13597 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13598 if test "x$ac_cv_func_strtoull" = xyes
13599 then :
13600   printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13601
13602 fi
13603 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13604 if test "x$ac_cv_func_sync_file_range" = xyes
13605 then :
13606   printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13607
13608 fi
13609 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13610 if test "x$ac_cv_func_sysconf" = xyes
13611 then :
13612   printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13613
13614 fi
13615 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13616 if test "x$ac_cv_func_usleep" = xyes
13617 then :
13618   printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13619
13620 fi
13621 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13622 if test "x$ac_cv_func_utime" = xyes
13623 then :
13624   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13625
13626 fi
13627 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13628 if test "x$ac_cv_func_utimes" = xyes
13629 then :
13630   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13631
13632 fi
13633 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13634 if test "x$ac_cv_func_valloc" = xyes
13635 then :
13636   printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13637
13638 fi
13639
13640 SOCKET_LIB=''
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13642 printf %s "checking for socket in -lsocket... " >&6; }
13643 if test ${ac_cv_lib_socket_socket+y}
13644 then :
13645   printf %s "(cached) " >&6
13646 else $as_nop
13647   ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-lsocket  $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h.  */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653    Use char because int might match the return type of a GCC
13654    builtin and then its argument prototype would still apply.  */
13655 char socket ();
13656 int
13657 main (void)
13658 {
13659 return socket ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_link "$LINENO"
13665 then :
13666   ac_cv_lib_socket_socket=yes
13667 else $as_nop
13668   ac_cv_lib_socket_socket=no
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13671     conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13673 fi
13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13675 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13676 if test "x$ac_cv_lib_socket_socket" = xyes
13677 then :
13678   SOCKET_LIB=-lsocket
13679 fi
13680
13681
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13683 printf %s "checking for magic_file in -lmagic... " >&6; }
13684 if test ${ac_cv_lib_magic_magic_file+y}
13685 then :
13686   printf %s "(cached) " >&6
13687 else $as_nop
13688   ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lmagic  $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h.  */
13692
13693 /* Override any GCC internal prototype to avoid an error.
13694    Use char because int might match the return type of a GCC
13695    builtin and then its argument prototype would still apply.  */
13696 char magic_file ();
13697 int
13698 main (void)
13699 {
13700 return magic_file ();
13701   ;
13702   return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"
13706 then :
13707   ac_cv_lib_magic_magic_file=yes
13708 else $as_nop
13709   ac_cv_lib_magic_magic_file=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13712     conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13714 fi
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13716 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13717 if test "x$ac_cv_lib_magic_magic_file" = xyes
13718 then :
13719   MAGIC_LIB=-lmagic
13720 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_magic_h" = xyes
13722 then :
13723   printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13724
13725 fi
13726
13727 fi
13728
13729 if test "$ac_cv_func_dlopen" = yes ; then
13730    MAGIC_LIB=$DLOPEN_LIB
13731 fi
13732
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13734 printf %s "checking for archive_read_new in -larchive... " >&6; }
13735 if test ${ac_cv_lib_archive_archive_read_new+y}
13736 then :
13737   printf %s "(cached) " >&6
13738 else $as_nop
13739   ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-larchive  $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h.  */
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745    Use char because int might match the return type of a GCC
13746    builtin and then its argument prototype would still apply.  */
13747 char archive_read_new ();
13748 int
13749 main (void)
13750 {
13751 return archive_read_new ();
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"
13757 then :
13758   ac_cv_lib_archive_archive_read_new=yes
13759 else $as_nop
13760   ac_cv_lib_archive_archive_read_new=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13763     conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13765 fi
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13767 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13768 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13769 then :
13770   ARCHIVE_LIB=-larchive
13771 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13772 if test "x$ac_cv_header_archive_h" = xyes
13773 then :
13774   printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13775
13776 fi
13777
13778 fi
13779
13780 if test "$ac_cv_func_dlopen" = yes ; then
13781    ARCHIVE_LIB=$DLOPEN_LIB
13782 fi
13783
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13785 printf %s "checking for clock_gettime in -lrt... " >&6; }
13786 if test ${ac_cv_lib_rt_clock_gettime+y}
13787 then :
13788   printf %s "(cached) " >&6
13789 else $as_nop
13790   ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lrt  $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h.  */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796    Use char because int might match the return type of a GCC
13797    builtin and then its argument prototype would still apply.  */
13798 char clock_gettime ();
13799 int
13800 main (void)
13801 {
13802 return clock_gettime ();
13803   ;
13804   return 0;
13805 }
13806 _ACEOF
13807 if ac_fn_c_try_link "$LINENO"
13808 then :
13809   ac_cv_lib_rt_clock_gettime=yes
13810 else $as_nop
13811   ac_cv_lib_rt_clock_gettime=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13814     conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13816 fi
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13818 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13819 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13820 then :
13821   CLOCK_GETTIME_LIB=-lrt
13822 fi
13823
13824
13825 FUSE_CMT=
13826 FUSE_LIB=
13827 # Check whether --enable-fuse2fs was given.
13828 if test ${enable_fuse2fs+y}
13829 then :
13830   enableval=$enable_fuse2fs; if test "$enableval" = "no"
13831 then
13832         FUSE_CMT="#"
13833         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13834 printf "%s\n" "Disabling fuse2fs" >&6; }
13835 else
13836                for ac_header in pthread.h fuse.h
13837 do :
13838   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13840 #define FUSE_USE_VERSION 29
13841 "
13842 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13843 then :
13844   cat >>confdefs.h <<_ACEOF
13845 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13846 _ACEOF
13847
13848 else $as_nop
13849   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13850 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13851 as_fn_error $? "Cannot find fuse2fs headers.
13852 See \`config.log' for more details" "$LINENO" 5; }
13853 fi
13854
13855 done
13856
13857         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h.  */
13859 #define FUSE_USE_VERSION 29
13860 #ifdef __linux__
13861 #include <linux/fs.h>
13862 #include <linux/falloc.h>
13863 #include <linux/xattr.h>
13864 #endif
13865
13866 int
13867 main (void)
13868 {
13869
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_cpp "$LINENO"
13875 then :
13876
13877 else $as_nop
13878   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13879 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13880 as_fn_error $? "Cannot find fuse2fs Linux headers.
13881 See \`config.log' for more details" "$LINENO" 5; }
13882 fi
13883 rm -f conftest.err conftest.i conftest.$ac_ext
13884
13885         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13886 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13887 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13888 then :
13889   printf %s "(cached) " >&6
13890 else $as_nop
13891   ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-losxfuse  $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895
13896 /* Override any GCC internal prototype to avoid an error.
13897    Use char because int might match the return type of a GCC
13898    builtin and then its argument prototype would still apply.  */
13899 char fuse_main ();
13900 int
13901 main (void)
13902 {
13903 return fuse_main ();
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"
13909 then :
13910   ac_cv_lib_osxfuse_fuse_main=yes
13911 else $as_nop
13912   ac_cv_lib_osxfuse_fuse_main=no
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915     conftest$ac_exeext conftest.$ac_ext
13916 LIBS=$ac_check_lib_save_LIBS
13917 fi
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13919 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13920 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13921 then :
13922   FUSE_LIB=-losxfuse
13923 else $as_nop
13924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13925 printf %s "checking for fuse_main in -lfuse... " >&6; }
13926 if test ${ac_cv_lib_fuse_fuse_main+y}
13927 then :
13928   printf %s "(cached) " >&6
13929 else $as_nop
13930   ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lfuse  $LIBS"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934
13935 /* Override any GCC internal prototype to avoid an error.
13936    Use char because int might match the return type of a GCC
13937    builtin and then its argument prototype would still apply.  */
13938 char fuse_main ();
13939 int
13940 main (void)
13941 {
13942 return fuse_main ();
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_link "$LINENO"
13948 then :
13949   ac_cv_lib_fuse_fuse_main=yes
13950 else $as_nop
13951   ac_cv_lib_fuse_fuse_main=no
13952 fi
13953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13954     conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13956 fi
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13958 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13959 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13960 then :
13961   FUSE_LIB=-lfuse
13962 else $as_nop
13963   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13965 as_fn_error $? "Cannot find fuse library.
13966 See \`config.log' for more details" "$LINENO" 5; }
13967 fi
13968
13969 fi
13970
13971         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13972 printf "%s\n" "Enabling fuse2fs" >&6; }
13973 fi
13974
13975 else $as_nop
13976          for ac_header in pthread.h fuse.h
13977 do :
13978   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS  64
13980 #define FUSE_USE_VERSION 29
13981 #ifdef __linux__
13982 # include <linux/fs.h>
13983 # include <linux/falloc.h>
13984 # include <linux/xattr.h>
13985 #endif
13986 "
13987 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13988 then :
13989   cat >>confdefs.h <<_ACEOF
13990 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13991 _ACEOF
13992
13993 else $as_nop
13994   FUSE_CMT="#"
13995 fi
13996
13997 done
13998 if test -z "$FUSE_CMT"
13999 then
14000         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14001 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14002 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14003 then :
14004   printf %s "(cached) " >&6
14005 else $as_nop
14006   ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-losxfuse  $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h.  */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012    Use char because int might match the return type of a GCC
14013    builtin and then its argument prototype would still apply.  */
14014 char fuse_main ();
14015 int
14016 main (void)
14017 {
14018 return fuse_main ();
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023 if ac_fn_c_try_link "$LINENO"
14024 then :
14025   ac_cv_lib_osxfuse_fuse_main=yes
14026 else $as_nop
14027   ac_cv_lib_osxfuse_fuse_main=no
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14030     conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14032 fi
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14034 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14035 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14036 then :
14037   FUSE_LIB=-losxfuse
14038 else $as_nop
14039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14040 printf %s "checking for fuse_main in -lfuse... " >&6; }
14041 if test ${ac_cv_lib_fuse_fuse_main+y}
14042 then :
14043   printf %s "(cached) " >&6
14044 else $as_nop
14045   ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lfuse  $LIBS"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h.  */
14049
14050 /* Override any GCC internal prototype to avoid an error.
14051    Use char because int might match the return type of a GCC
14052    builtin and then its argument prototype would still apply.  */
14053 char fuse_main ();
14054 int
14055 main (void)
14056 {
14057 return fuse_main ();
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"
14063 then :
14064   ac_cv_lib_fuse_fuse_main=yes
14065 else $as_nop
14066   ac_cv_lib_fuse_fuse_main=no
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069     conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14071 fi
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14073 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14074 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14075 then :
14076   FUSE_LIB=-lfuse
14077 else $as_nop
14078   FUSE_CMT="#"
14079 fi
14080
14081 fi
14082
14083 fi
14084 if test -z "$FUSE_CMT"
14085 then
14086         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14087 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14088 fi
14089
14090 fi
14091
14092
14093
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14095 printf %s "checking for optreset... " >&6; }
14096 if test ${ac_cv_have_optreset+y}
14097 then :
14098   printf %s "(cached) " >&6
14099 else $as_nop
14100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h.  */
14102 #include <unistd.h>
14103
14104 _ACEOF
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106   $EGREP "optreset" >/dev/null 2>&1
14107 then :
14108   ac_cv_have_optreset=yes
14109 else $as_nop
14110   ac_cv_have_optreset=no
14111 fi
14112 rm -rf conftest*
14113
14114 fi
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14116 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14117 if test $ac_cv_have_optreset = yes; then
14118
14119 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14120
14121 fi
14122
14123 SEM_INIT_LIB=''
14124 echo GL_THREADS_API: ${gl_threads_api}
14125 if test "${gl_threads_api}" != none
14126 then
14127   ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14128 if test "x$ac_cv_func_sem_init" = xyes
14129 then :
14130
14131 else $as_nop
14132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14133 printf %s "checking for sem_init in -lpthread... " >&6; }
14134 if test ${ac_cv_lib_pthread_sem_init+y}
14135 then :
14136   printf %s "(cached) " >&6
14137 else $as_nop
14138   ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lpthread  $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h.  */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144    Use char because int might match the return type of a GCC
14145    builtin and then its argument prototype would still apply.  */
14146 char sem_init ();
14147 int
14148 main (void)
14149 {
14150 return sem_init ();
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 if ac_fn_c_try_link "$LINENO"
14156 then :
14157   ac_cv_lib_pthread_sem_init=yes
14158 else $as_nop
14159   ac_cv_lib_pthread_sem_init=no
14160 fi
14161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14162     conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14166 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14167 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14168 then :
14169   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14170
14171         SEM_INIT_LIB=-lpthread
14172 else $as_nop
14173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14174 printf %s "checking for sem_init in -lrt... " >&6; }
14175 if test ${ac_cv_lib_rt_sem_init+y}
14176 then :
14177   printf %s "(cached) " >&6
14178 else $as_nop
14179   ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lrt  $LIBS"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h.  */
14183
14184 /* Override any GCC internal prototype to avoid an error.
14185    Use char because int might match the return type of a GCC
14186    builtin and then its argument prototype would still apply.  */
14187 char sem_init ();
14188 int
14189 main (void)
14190 {
14191 return sem_init ();
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"
14197 then :
14198   ac_cv_lib_rt_sem_init=yes
14199 else $as_nop
14200   ac_cv_lib_rt_sem_init=no
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14203     conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14205 fi
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14207 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14208 if test "x$ac_cv_lib_rt_sem_init" = xyes
14209 then :
14210   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14211
14212         SEM_INIT_LIB=-lrt
14213 else $as_nop
14214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14215 printf %s "checking for sem_init in -lposix4... " >&6; }
14216 if test ${ac_cv_lib_posix4_sem_init+y}
14217 then :
14218   printf %s "(cached) " >&6
14219 else $as_nop
14220   ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lposix4  $LIBS"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h.  */
14224
14225 /* Override any GCC internal prototype to avoid an error.
14226    Use char because int might match the return type of a GCC
14227    builtin and then its argument prototype would still apply.  */
14228 char sem_init ();
14229 int
14230 main (void)
14231 {
14232 return sem_init ();
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"
14238 then :
14239   ac_cv_lib_posix4_sem_init=yes
14240 else $as_nop
14241   ac_cv_lib_posix4_sem_init=no
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14244     conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14248 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14249 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14250 then :
14251   printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14252
14253         SEM_INIT_LIB=-lposix4
14254 fi
14255
14256 fi
14257
14258 fi
14259
14260 fi
14261 fi
14262
14263 if test "$ac_cv_func_qsort_r" != no
14264 then :
14265
14266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14267 printf %s "checking whether qsort_r is GNU version... " >&6; }
14268 if test ${e2_cv_gnu_qsort_r+y}
14269 then :
14270   printf %s "(cached) " >&6
14271 else $as_nop
14272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 #include <stdlib.h>
14276 void (qsort_r)(void *base, size_t nmemb, size_t size,
14277             int (*compar)(const void *, const void *, void *),
14278             void *arg);
14279
14280 int
14281 main (void)
14282 {
14283
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_c_try_compile "$LINENO"
14289 then :
14290   e2_cv_gnu_qsort_r=yes
14291 else $as_nop
14292   e2_cv_gnu_qsort_r=no
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14295
14296 fi
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14298 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14300 printf %s "checking whether qsort_r is BSD version... " >&6; }
14301 if test ${e2_cv_bsd_qsort_r+y}
14302 then :
14303   printf %s "(cached) " >&6
14304 else $as_nop
14305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h.  */
14307
14308 #include <stdlib.h>
14309 void (qsort_r)(void *base, size_t nmemb, size_t size,
14310              void *arg, int (*compar)(void *, const void *, const void *));
14311
14312 int
14313 main (void)
14314 {
14315
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 if ac_fn_c_try_compile "$LINENO"
14321 then :
14322   e2_cv_bsd_qsort_r=yes
14323 else $as_nop
14324   e2_cv_bsd_qsort_r=no
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14327
14328 fi
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14330 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14331   case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14332   yes:no) :
14333
14334
14335 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14336
14337    ;; #(
14338   no:yes) :
14339
14340
14341 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14342
14343    ;; #(
14344   *) :
14345      ;;
14346 esac
14347
14348 fi
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14350 printf %s "checking for unified diff option... " >&6; }
14351 if diff -u $0 $0 > /dev/null 2>&1 ; then
14352    UNI_DIFF_OPTS=-u
14353 else
14354    UNI_DIFF_OPTS=-c
14355 fi
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14357 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14358
14359 case "$host_os" in
14360 linux*)
14361
14362 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14363
14364         ;;
14365 esac
14366
14367     printf %s "checking for mount 'nosuid' option... "
14368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h.  */
14370 #include <sys/mount.h>
14371 int
14372 main (void)
14373 {
14374 void *temp = (void *)(MS_NOSUID); (void) temp;
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"
14380 then :
14381
14382 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14383
14384          ac_cv_mount_nosuid=yes
14385          printf "%s\n" "yes"
14386 else $as_nop
14387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h.  */
14389 #include <sys/mount.h>
14390 int
14391 main (void)
14392 {
14393 void *temp = (void *)(MNT_NOSUID); (void) temp;
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_compile "$LINENO"
14399 then :
14400
14401 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14402
14403              ac_cv_mount_nosuid=yes
14404              printf "%s\n" "yes"
14405 else $as_nop
14406   ac_cv_mount_nosuid=no
14407              printf "%s\n" "no"
14408
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14411
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14414
14415
14416     printf %s "checking for mount 'nodev' option... "
14417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h.  */
14419 #include <sys/mount.h>
14420 int
14421 main (void)
14422 {
14423 void *temp = (void *)(MS_NODEV); (void) temp;
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"
14429 then :
14430
14431 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14432
14433          ac_cv_mount_nodev=yes
14434          printf "%s\n" "yes"
14435 else $as_nop
14436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h.  */
14438 #include <sys/mount.h>
14439 int
14440 main (void)
14441 {
14442 void *temp = (void *)(MNT_NODEV); (void) temp;
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 if ac_fn_c_try_compile "$LINENO"
14448 then :
14449
14450 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14451
14452              ac_cv_mount_nodev=yes
14453              printf "%s\n" "yes"
14454 else $as_nop
14455   ac_cv_mount_nodev=no
14456              printf "%s\n" "no"
14457
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14460
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14463
14464 # Check whether --enable-lto was given.
14465 if test ${enable_lto+y}
14466 then :
14467   enableval=$enable_lto;
14468 else $as_nop
14469   enable_lto=no
14470 fi
14471
14472 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14473         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14474 printf %s "checking if C compiler supports LTO... " >&6; }
14475         OLD_CFLAGS="$CFLAGS"
14476         OLD_LDFLAGS="$LDFLAGS"
14477         LTO_FLAGS="-g -flto -ffat-lto-objects"
14478         CFLAGS="$CFLAGS $LTO_FLAGS"
14479         LDFLAGS="$LDFLAGS $LTO_FLAGS"
14480         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h.  */
14482
14483 int
14484 main (void)
14485 {
14486
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_link "$LINENO"
14492 then :
14493   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 printf "%s\n" "yes" >&6; }
14495                 lto_cflags=$LTO_FLAGS
14496                 lto_ldflags=$LTO_FLAGS
14497                 # Extract the first word of "gcc-ar", so it can be a program name with args.
14498 set dummy gcc-ar; ac_word=$2
14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500 printf %s "checking for $ac_word... " >&6; }
14501 if test ${ac_cv_path_gcc_ar+y}
14502 then :
14503   printf %s "(cached) " >&6
14504 else $as_nop
14505   case $gcc_ar in
14506   [\\/]* | ?:[\\/]*)
14507   ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14508   ;;
14509   *)
14510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513   IFS=$as_save_IFS
14514   case $as_dir in #(((
14515     '') as_dir=./ ;;
14516     */) ;;
14517     *) as_dir=$as_dir/ ;;
14518   esac
14519     for ac_exec_ext in '' $ac_executable_extensions; do
14520   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14521     ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14522     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14523     break 2
14524   fi
14525 done
14526   done
14527 IFS=$as_save_IFS
14528
14529   ;;
14530 esac
14531 fi
14532 gcc_ar=$ac_cv_path_gcc_ar
14533 if test -n "$gcc_ar"; then
14534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14535 printf "%s\n" "$gcc_ar" >&6; }
14536 else
14537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 printf "%s\n" "no" >&6; }
14539 fi
14540
14541
14542                 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14543 set dummy gcc-ranlib; ac_word=$2
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14545 printf %s "checking for $ac_word... " >&6; }
14546 if test ${ac_cv_path_gcc_ranlib+y}
14547 then :
14548   printf %s "(cached) " >&6
14549 else $as_nop
14550   case $gcc_ranlib in
14551   [\\/]* | ?:[\\/]*)
14552   ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14553   ;;
14554   *)
14555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14557 do
14558   IFS=$as_save_IFS
14559   case $as_dir in #(((
14560     '') as_dir=./ ;;
14561     */) ;;
14562     *) as_dir=$as_dir/ ;;
14563   esac
14564     for ac_exec_ext in '' $ac_executable_extensions; do
14565   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14566     ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14567     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14568     break 2
14569   fi
14570 done
14571   done
14572 IFS=$as_save_IFS
14573
14574   ;;
14575 esac
14576 fi
14577 gcc_ranlib=$ac_cv_path_gcc_ranlib
14578 if test -n "$gcc_ranlib"; then
14579   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14580 printf "%s\n" "$gcc_ranlib" >&6; }
14581 else
14582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583 printf "%s\n" "no" >&6; }
14584 fi
14585
14586
14587 else $as_nop
14588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 printf "%s\n" "no" >&6; }
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14592     conftest$ac_exeext conftest.$ac_ext
14593         if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14594                 have_lto=yes
14595                 AR="${gcc_ar}"
14596                 RANLIB="${gcc_ranlib}"
14597         fi
14598         CFLAGS="${OLD_CFLAGS}"
14599         LDFLAGS="${OLD_LDFLAGS}"
14600
14601
14602
14603 fi
14604 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14605         as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14606 fi
14607 # Check whether --enable-ubsan was given.
14608 if test ${enable_ubsan+y}
14609 then :
14610   enableval=$enable_ubsan;
14611 else $as_nop
14612   enable_ubsan=no
14613 fi
14614
14615 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14616         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14617 printf %s "checking if C compiler supports UBSAN... " >&6; }
14618         OLD_CFLAGS="$CFLAGS"
14619         OLD_LDFLAGS="$LDFLAGS"
14620         UBSAN_FLAGS="-fsanitize=undefined"
14621         CFLAGS="$CFLAGS $UBSAN_FLAGS"
14622         LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14623         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h.  */
14625
14626 int
14627 main (void)
14628 {
14629
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"
14635 then :
14636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14637 printf "%s\n" "yes" >&6; }
14638                 ubsan_cflags=$UBSAN_FLAGS
14639                 ubsan_ldflags=$UBSAN_FLAGS
14640                 have_ubsan=yes
14641 else $as_nop
14642   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 printf "%s\n" "no" >&6; }
14644 fi
14645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14646     conftest$ac_exeext conftest.$ac_ext
14647         CFLAGS="${OLD_CFLAGS}"
14648         LDFLAGS="${OLD_LDFLAGS}"
14649
14650
14651
14652 fi
14653 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14654         as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14655 fi
14656 # Check whether --enable-addrsan was given.
14657 if test ${enable_addrsan+y}
14658 then :
14659   enableval=$enable_addrsan;
14660 else $as_nop
14661   enable_addrsan=no
14662 fi
14663
14664 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14665         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14666 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14667         OLD_CFLAGS="$CFLAGS"
14668         OLD_LDFLAGS="$LDFLAGS"
14669         ADDRSAN_FLAGS="-fsanitize=address"
14670         CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14671         LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14672         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h.  */
14674
14675 int
14676 main (void)
14677 {
14678
14679   ;
14680   return 0;
14681 }
14682 _ACEOF
14683 if ac_fn_c_try_link "$LINENO"
14684 then :
14685   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14686 printf "%s\n" "yes" >&6; }
14687                 addrsan_cflags=$ADDRSAN_FLAGS
14688                 addrsan_ldflags=$ADDRSAN_FLAGS
14689                 have_addrsan=yes
14690 else $as_nop
14691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 printf "%s\n" "no" >&6; }
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14695     conftest$ac_exeext conftest.$ac_ext
14696         CFLAGS="${OLD_CFLAGS}"
14697         LDFLAGS="${OLD_LDFLAGS}"
14698
14699
14700
14701 fi
14702 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14703         as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14704 fi
14705 # Check whether --enable-threadsan was given.
14706 if test ${enable_threadsan+y}
14707 then :
14708   enableval=$enable_threadsan;
14709 else $as_nop
14710   enable_threadsan=no
14711 fi
14712
14713 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14714         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14715 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14716         OLD_CFLAGS="$CFLAGS"
14717         OLD_LDFLAGS="$LDFLAGS"
14718         THREADSAN_FLAGS="-fsanitize=thread"
14719         CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14720         LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14721         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h.  */
14723
14724 int
14725 main (void)
14726 {
14727
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 if ac_fn_c_try_link "$LINENO"
14733 then :
14734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735 printf "%s\n" "yes" >&6; }
14736                 threadsan_cflags=$THREADSAN_FLAGS
14737                 threadsan_ldflags=$THREADSAN_FLAGS
14738                 have_threadsan=yes
14739 else $as_nop
14740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741 printf "%s\n" "no" >&6; }
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14744     conftest$ac_exeext conftest.$ac_ext
14745         CFLAGS="${OLD_CFLAGS}"
14746         LDFLAGS="${OLD_LDFLAGS}"
14747
14748
14749
14750 fi
14751 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14752         as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14753 fi
14754 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14756 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14757 fi
14758 FUZZING_CMT="#"
14759 # Check whether --enable-fuzzing was given.
14760 if test ${enable_fuzzing+y}
14761 then :
14762   enableval=$enable_fuzzing;
14763 else $as_nop
14764   enable_fuzzing=no
14765 fi
14766
14767 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14768
14769
14770
14771
14772
14773
14774 ac_ext=cpp
14775 ac_cpp='$CXXCPP $CPPFLAGS'
14776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14779 if test -z "$CXX"; then
14780   if test -n "$CCC"; then
14781     CXX=$CCC
14782   else
14783     if test -n "$ac_tool_prefix"; then
14784   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14785   do
14786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 printf %s "checking for $ac_word... " >&6; }
14790 if test ${ac_cv_prog_CXX+y}
14791 then :
14792   printf %s "(cached) " >&6
14793 else $as_nop
14794   if test -n "$CXX"; then
14795   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14796 else
14797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14799 do
14800   IFS=$as_save_IFS
14801   case $as_dir in #(((
14802     '') as_dir=./ ;;
14803     */) ;;
14804     *) as_dir=$as_dir/ ;;
14805   esac
14806     for ac_exec_ext in '' $ac_executable_extensions; do
14807   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14808     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14809     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14810     break 2
14811   fi
14812 done
14813   done
14814 IFS=$as_save_IFS
14815
14816 fi
14817 fi
14818 CXX=$ac_cv_prog_CXX
14819 if test -n "$CXX"; then
14820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14821 printf "%s\n" "$CXX" >&6; }
14822 else
14823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 printf "%s\n" "no" >&6; }
14825 fi
14826
14827
14828     test -n "$CXX" && break
14829   done
14830 fi
14831 if test -z "$CXX"; then
14832   ac_ct_CXX=$CXX
14833   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14834 do
14835   # Extract the first word of "$ac_prog", so it can be a program name with args.
14836 set dummy $ac_prog; ac_word=$2
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 printf %s "checking for $ac_word... " >&6; }
14839 if test ${ac_cv_prog_ac_ct_CXX+y}
14840 then :
14841   printf %s "(cached) " >&6
14842 else $as_nop
14843   if test -n "$ac_ct_CXX"; then
14844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14845 else
14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH
14848 do
14849   IFS=$as_save_IFS
14850   case $as_dir in #(((
14851     '') as_dir=./ ;;
14852     */) ;;
14853     *) as_dir=$as_dir/ ;;
14854   esac
14855     for ac_exec_ext in '' $ac_executable_extensions; do
14856   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14857     ac_cv_prog_ac_ct_CXX="$ac_prog"
14858     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14859     break 2
14860   fi
14861 done
14862   done
14863 IFS=$as_save_IFS
14864
14865 fi
14866 fi
14867 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14868 if test -n "$ac_ct_CXX"; then
14869   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14870 printf "%s\n" "$ac_ct_CXX" >&6; }
14871 else
14872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 printf "%s\n" "no" >&6; }
14874 fi
14875
14876
14877   test -n "$ac_ct_CXX" && break
14878 done
14879
14880   if test "x$ac_ct_CXX" = x; then
14881     CXX="g++"
14882   else
14883     case $cross_compiling:$ac_tool_warned in
14884 yes:)
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14887 ac_tool_warned=yes ;;
14888 esac
14889     CXX=$ac_ct_CXX
14890   fi
14891 fi
14892
14893   fi
14894 fi
14895 # Provide some information about the compiler.
14896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14897 set X $ac_compile
14898 ac_compiler=$2
14899 for ac_option in --version -v -V -qversion; do
14900   { { ac_try="$ac_compiler $ac_option >&5"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14906 printf "%s\n" "$ac_try_echo"; } >&5
14907   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14908   ac_status=$?
14909   if test -s conftest.err; then
14910     sed '10a\
14911 ... rest of stderr output deleted ...
14912          10q' conftest.err >conftest.er1
14913     cat conftest.er1 >&5
14914   fi
14915   rm -f conftest.er1 conftest.err
14916   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14917   test $ac_status = 0; }
14918 done
14919
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14921 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14922 if test ${ac_cv_cxx_compiler_gnu+y}
14923 then :
14924   printf %s "(cached) " >&6
14925 else $as_nop
14926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h.  */
14928
14929 int
14930 main (void)
14931 {
14932 #ifndef __GNUC__
14933        choke me
14934 #endif
14935
14936   ;
14937   return 0;
14938 }
14939 _ACEOF
14940 if ac_fn_cxx_try_compile "$LINENO"
14941 then :
14942   ac_compiler_gnu=yes
14943 else $as_nop
14944   ac_compiler_gnu=no
14945 fi
14946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14948
14949 fi
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14951 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14953
14954 if test $ac_compiler_gnu = yes; then
14955   GXX=yes
14956 else
14957   GXX=
14958 fi
14959 ac_test_CXXFLAGS=${CXXFLAGS+y}
14960 ac_save_CXXFLAGS=$CXXFLAGS
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14962 printf %s "checking whether $CXX accepts -g... " >&6; }
14963 if test ${ac_cv_prog_cxx_g+y}
14964 then :
14965   printf %s "(cached) " >&6
14966 else $as_nop
14967   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14968    ac_cxx_werror_flag=yes
14969    ac_cv_prog_cxx_g=no
14970    CXXFLAGS="-g"
14971    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h.  */
14973
14974 int
14975 main (void)
14976 {
14977
14978   ;
14979   return 0;
14980 }
14981 _ACEOF
14982 if ac_fn_cxx_try_compile "$LINENO"
14983 then :
14984   ac_cv_prog_cxx_g=yes
14985 else $as_nop
14986   CXXFLAGS=""
14987       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h.  */
14989
14990 int
14991 main (void)
14992 {
14993
14994   ;
14995   return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_cxx_try_compile "$LINENO"
14999 then :
15000
15001 else $as_nop
15002   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15003          CXXFLAGS="-g"
15004          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h.  */
15006
15007 int
15008 main (void)
15009 {
15010
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 if ac_fn_cxx_try_compile "$LINENO"
15016 then :
15017   ac_cv_prog_cxx_g=yes
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15020 fi
15021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15022 fi
15023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15024    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15025 fi
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15027 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15028 if test $ac_test_CXXFLAGS; then
15029   CXXFLAGS=$ac_save_CXXFLAGS
15030 elif test $ac_cv_prog_cxx_g = yes; then
15031   if test "$GXX" = yes; then
15032     CXXFLAGS="-g -O2"
15033   else
15034     CXXFLAGS="-g"
15035   fi
15036 else
15037   if test "$GXX" = yes; then
15038     CXXFLAGS="-O2"
15039   else
15040     CXXFLAGS=
15041   fi
15042 fi
15043 ac_prog_cxx_stdcxx=no
15044 if test x$ac_prog_cxx_stdcxx = xno
15045 then :
15046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15047 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15048 if test ${ac_cv_prog_cxx_cxx11+y}
15049 then :
15050   printf %s "(cached) " >&6
15051 else $as_nop
15052   ac_cv_prog_cxx_cxx11=no
15053 ac_save_CXX=$CXX
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h.  */
15056 $ac_cxx_conftest_cxx11_program
15057 _ACEOF
15058 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15059 do
15060   CXX="$ac_save_CXX $ac_arg"
15061   if ac_fn_cxx_try_compile "$LINENO"
15062 then :
15063   ac_cv_prog_cxx_cxx11=$ac_arg
15064 fi
15065 rm -f core conftest.err conftest.$ac_objext conftest.beam
15066   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15067 done
15068 rm -f conftest.$ac_ext
15069 CXX=$ac_save_CXX
15070 fi
15071
15072 if test "x$ac_cv_prog_cxx_cxx11" = xno
15073 then :
15074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15075 printf "%s\n" "unsupported" >&6; }
15076 else $as_nop
15077   if test "x$ac_cv_prog_cxx_cxx11" = x
15078 then :
15079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15080 printf "%s\n" "none needed" >&6; }
15081 else $as_nop
15082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15083 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15084      CXX="$CXX $ac_cv_prog_cxx_cxx11"
15085 fi
15086   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15087   ac_prog_cxx_stdcxx=cxx11
15088 fi
15089 fi
15090 if test x$ac_prog_cxx_stdcxx = xno
15091 then :
15092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15093 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15094 if test ${ac_cv_prog_cxx_cxx98+y}
15095 then :
15096   printf %s "(cached) " >&6
15097 else $as_nop
15098   ac_cv_prog_cxx_cxx98=no
15099 ac_save_CXX=$CXX
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h.  */
15102 $ac_cxx_conftest_cxx98_program
15103 _ACEOF
15104 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15105 do
15106   CXX="$ac_save_CXX $ac_arg"
15107   if ac_fn_cxx_try_compile "$LINENO"
15108 then :
15109   ac_cv_prog_cxx_cxx98=$ac_arg
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam
15112   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15113 done
15114 rm -f conftest.$ac_ext
15115 CXX=$ac_save_CXX
15116 fi
15117
15118 if test "x$ac_cv_prog_cxx_cxx98" = xno
15119 then :
15120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15121 printf "%s\n" "unsupported" >&6; }
15122 else $as_nop
15123   if test "x$ac_cv_prog_cxx_cxx98" = x
15124 then :
15125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15126 printf "%s\n" "none needed" >&6; }
15127 else $as_nop
15128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15129 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15130      CXX="$CXX $ac_cv_prog_cxx_cxx98"
15131 fi
15132   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15133   ac_prog_cxx_stdcxx=cxx98
15134 fi
15135 fi
15136
15137 ac_ext=c
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15142
15143         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15144 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15145         ac_ext=cpp
15146 ac_cpp='$CXXCPP $CPPFLAGS'
15147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15150
15151         OLD_CXXFLAGS="$CXXFLAGS"
15152         OLD_LDFLAGS="$LDFLAGS"
15153         FUZZER_FLAGS="-fsanitize=fuzzer"
15154         CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15155         LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15156
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h.  */
15159
15160                 #include <stddef.h>
15161                 #include <stdint.h>
15162
15163 int
15164 main (void)
15165 {
15166  return 0;
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_cxx_try_compile "$LINENO"
15172 then :
15173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15174 printf "%s\n" "yes" >&6; }
15175                 fuzzer_cflags=$FUZZER_FLAGS
15176                 fuzzer_ldflags=$FUZZER_FLAGS
15177                 FUZZING_CMT=
15178                 have_fuzzer=yes
15179 else $as_nop
15180   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 printf "%s\n" "no" >&6; }
15182                 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15185         CXXFLAGS="${OLD_CXXFLAGS}"
15186         LDFLAGS="${OLD_LDFLAGS}"
15187         ac_ext=c
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
15193
15194
15195
15196 fi
15197 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15198         as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15199 fi
15200
15201 LINUX_CMT="#"
15202 CYGWIN_CMT="#"
15203 UNIX_CMT=
15204 case "$host_os" in
15205 linux*)
15206         LINUX_CMT=
15207         ;;
15208 cygwin)
15209         CYGWIN_CMT=
15210         UNIX_CMT="#"
15211         ;;
15212 esac
15213
15214
15215
15216 E2SCRUB_CMT="$LINUX_CMT"
15217
15218 case "$host_os" in
15219 linux* | gnu* | k*bsd*-gnu)
15220         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15221                 root_prefix="";
15222                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15223 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15224         fi
15225         ;;
15226 esac
15227 case "$host_os" in
15228 linux* | gnu* | k*bsd*-gnu)
15229         if test "$prefix" = NONE ; then
15230                 prefix="/usr";
15231                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15232 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15233                 if test "$mandir" = '${prefix}/man' ; then
15234                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15235 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15236                         mandir=/usr/share/man
15237                 fi
15238         fi
15239 ;;
15240 esac
15241 if test "$root_prefix" = NONE ; then
15242         if test "$prefix" = NONE ; then
15243                 root_prefix="$ac_default_prefix"
15244         else
15245                 root_prefix="$prefix"
15246         fi
15247         root_bindir=$bindir
15248         root_sbindir=$sbindir
15249         root_libdir=$libdir
15250         root_sysconfdir=$sysconfdir
15251 else
15252         root_bindir='${root_prefix}/bin'
15253         root_sbindir='${root_prefix}/sbin'
15254         root_libdir='${root_prefix}/lib'
15255         root_sysconfdir='${root_prefix}/etc'
15256 fi
15257 if test "$bindir" != '${exec_prefix}/bin'; then
15258     root_bindir=$bindir
15259     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15260 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15261 fi
15262 if test "$sbindir" != '${exec_prefix}/sbin'; then
15263     root_sbindir=$sbindir
15264     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15265 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15266 fi
15267 if test "$libdir" != '${exec_prefix}/lib'; then
15268     root_libdir=$libdir
15269     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15270 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15271 fi
15272 if test "$sysconfdir" != '${prefix}/etc'; then
15273     root_sysconfdir=$sysconfdir
15274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15275 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15276 fi
15277
15278
15279
15280
15281
15282
15283 # Check whether --with-multiarch was given.
15284 if test ${with_multiarch+y}
15285 then :
15286   withval=$with_multiarch; if test "$withval" = "lib64"; then
15287     libdir=/usr/lib64
15288     root_libdir=/lib64
15289 else
15290     libdir=$libdir/$withval
15291     root_libdir=$root_libdir/$withval
15292 fi
15293
15294 fi
15295
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15297 printf %s "checking whether we can link with -static... " >&6; }
15298 if test ${ac_cv_e2fsprogs_use_static+y}
15299 then :
15300   printf %s "(cached) " >&6
15301 else $as_nop
15302   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h.  */
15305 #include <stdio.h>
15306 int
15307 main (void)
15308 {
15309 fflush(stdout);
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 if ac_fn_c_try_link "$LINENO"
15315 then :
15316   ac_cv_e2fsprogs_use_static=yes
15317 else $as_nop
15318   ac_cv_e2fsprogs_use_static=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15321     conftest$ac_exeext conftest.$ac_ext
15322 LDFLAGS=$SAVE_LDFLAGS
15323 fi
15324
15325 case "$host_os" in
15326 solaris2.*)
15327         ac_cv_e2fsprogs_use_static=no
15328 ;;
15329 esac
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15331 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15332 if test $ac_cv_e2fsprogs_use_static = yes; then
15333         LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15334 fi
15335
15336 case "$host_os" in
15337 darwin*)
15338         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15339 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15340
15341 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15342
15343         ;;
15344 esac
15345 if test "$cross_compiling" = yes ; then
15346   DO_TEST_SUITE=
15347 else
15348   DO_TEST_SUITE=check
15349 fi
15350
15351 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15352 if test -n "$CPPFLAGS" ; then
15353         INCLUDES="$INCLUDES $CPPFLAGS"
15354 fi
15355 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15356         INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15357 fi
15358 if test -n "$WITH_DIET_LIBC" ; then
15359         INCLUDES="$INCLUDES -D_REENTRANT"
15360 fi
15361 case "$host_os" in
15362 mingw*)
15363         INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15364         ;;
15365 esac
15366
15367 if test $cross_compiling = no; then
15368    BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15369    BUILD_LDFLAGS="$LDFLAGS"
15370 fi
15371
15372
15373 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15374 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15375 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15376
15377
15378
15379
15380
15381 # Check whether --with-udev_rules_dir was given.
15382 if test ${with_udev_rules_dir+y}
15383 then :
15384   withval=$with_udev_rules_dir;
15385 else $as_nop
15386   with_udev_rules_dir=yes
15387 fi
15388
15389 if test "x${with_udev_rules_dir}" != "xno"
15390 then :
15391
15392         if test "x${with_udev_rules_dir}" = "xyes"
15393 then :
15394
15395
15396 pkg_failed=no
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15398 printf %s "checking for udev... " >&6; }
15399
15400 if test -n "$udev_CFLAGS"; then
15401     pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15402  elif test -n "$PKG_CONFIG"; then
15403     if test -n "$PKG_CONFIG" && \
15404     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15405   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15406   ac_status=$?
15407   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15408   test $ac_status = 0; }; then
15409   pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15410                       test "x$?" != "x0" && pkg_failed=yes
15411 else
15412   pkg_failed=yes
15413 fi
15414  else
15415     pkg_failed=untried
15416 fi
15417 if test -n "$udev_LIBS"; then
15418     pkg_cv_udev_LIBS="$udev_LIBS"
15419  elif test -n "$PKG_CONFIG"; then
15420     if test -n "$PKG_CONFIG" && \
15421     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15422   ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15423   ac_status=$?
15424   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425   test $ac_status = 0; }; then
15426   pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15427                       test "x$?" != "x0" && pkg_failed=yes
15428 else
15429   pkg_failed=yes
15430 fi
15431  else
15432     pkg_failed=untried
15433 fi
15434
15435
15436
15437 if test $pkg_failed = yes; then
15438         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15439 printf "%s\n" "no" >&6; }
15440
15441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15442         _pkg_short_errors_supported=yes
15443 else
15444         _pkg_short_errors_supported=no
15445 fi
15446         if test $_pkg_short_errors_supported = yes; then
15447                 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15448         else
15449                 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15450         fi
15451         # Put the nasty error message in config.log where it belongs
15452         echo "$udev_PKG_ERRORS" >&5
15453
15454
15455                         with_udev_rules_dir=""
15456
15457 elif test $pkg_failed = untried; then
15458         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 printf "%s\n" "no" >&6; }
15460
15461                         with_udev_rules_dir=""
15462
15463 else
15464         udev_CFLAGS=$pkg_cv_udev_CFLAGS
15465         udev_LIBS=$pkg_cv_udev_LIBS
15466         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15467 printf "%s\n" "yes" >&6; }
15468
15469                         with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15470
15471 fi
15472
15473 fi
15474         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15475 printf %s "checking for udev rules dir... " >&6; }
15476         pkg_udev_rules_dir="${with_udev_rules_dir}"
15477         if test -n "${pkg_udev_rules_dir}"
15478 then :
15479
15480                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15481 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15482                 have_udev="yes"
15483
15484 else $as_nop
15485
15486                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 printf "%s\n" "no" >&6; }
15488                 have_udev="no"
15489
15490 fi
15491
15492 else $as_nop
15493
15494         have_udev="disabled"
15495
15496 fi
15497
15498
15499
15500
15501 # Check whether --with-crond_dir was given.
15502 if test ${with_crond_dir+y}
15503 then :
15504   withval=$with_crond_dir;
15505 else $as_nop
15506   with_crond_dir=yes
15507 fi
15508
15509 if test "x${with_crond_dir}" != "xno"
15510 then :
15511
15512         if test "x${with_crond_dir}" = "xyes"
15513 then :
15514
15515                 if test -d "/etc/cron.d"
15516 then :
15517   with_crond_dir="/etc/cron.d"
15518 else $as_nop
15519   have_crond="no"; with_crond_dir=""
15520 fi
15521
15522 fi
15523         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15524 printf %s "checking for system crontab dir... " >&6; }
15525         crond_dir="${with_crond_dir}"
15526         if test -n "${crond_dir}"
15527 then :
15528
15529                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15530 printf "%s\n" "${crond_dir}" >&6; }
15531                 have_crond="yes"
15532
15533 else $as_nop
15534
15535                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536 printf "%s\n" "no" >&6; }
15537                 have_crond="no"
15538
15539 fi
15540
15541 else $as_nop
15542
15543         have_crond="disabled"
15544
15545 fi
15546
15547
15548
15549
15550 # Check whether --with-systemd_unit_dir was given.
15551 if test ${with_systemd_unit_dir+y}
15552 then :
15553   withval=$with_systemd_unit_dir;
15554 else $as_nop
15555   with_systemd_unit_dir=yes
15556 fi
15557
15558 if test "x${with_systemd_unit_dir}" != "xno"
15559 then :
15560
15561         if test "x${with_systemd_unit_dir}" = "xyes"
15562 then :
15563
15564
15565 pkg_failed=no
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15567 printf %s "checking for systemd... " >&6; }
15568
15569 if test -n "$systemd_CFLAGS"; then
15570     pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15571  elif test -n "$PKG_CONFIG"; then
15572     if test -n "$PKG_CONFIG" && \
15573     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15574   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15575   ac_status=$?
15576   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577   test $ac_status = 0; }; then
15578   pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15579                       test "x$?" != "x0" && pkg_failed=yes
15580 else
15581   pkg_failed=yes
15582 fi
15583  else
15584     pkg_failed=untried
15585 fi
15586 if test -n "$systemd_LIBS"; then
15587     pkg_cv_systemd_LIBS="$systemd_LIBS"
15588  elif test -n "$PKG_CONFIG"; then
15589     if test -n "$PKG_CONFIG" && \
15590     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15591   ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15592   ac_status=$?
15593   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594   test $ac_status = 0; }; then
15595   pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15596                       test "x$?" != "x0" && pkg_failed=yes
15597 else
15598   pkg_failed=yes
15599 fi
15600  else
15601     pkg_failed=untried
15602 fi
15603
15604
15605
15606 if test $pkg_failed = yes; then
15607         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608 printf "%s\n" "no" >&6; }
15609
15610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15611         _pkg_short_errors_supported=yes
15612 else
15613         _pkg_short_errors_supported=no
15614 fi
15615         if test $_pkg_short_errors_supported = yes; then
15616                 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15617         else
15618                 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15619         fi
15620         # Put the nasty error message in config.log where it belongs
15621         echo "$systemd_PKG_ERRORS" >&5
15622
15623
15624                         with_systemd_unit_dir=""
15625
15626 elif test $pkg_failed = untried; then
15627         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 printf "%s\n" "no" >&6; }
15629
15630                         with_systemd_unit_dir=""
15631
15632 else
15633         systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15634         systemd_LIBS=$pkg_cv_systemd_LIBS
15635         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636 printf "%s\n" "yes" >&6; }
15637
15638                         with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15639
15640 fi
15641
15642
15643 fi
15644         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15645 printf %s "checking for systemd system unit dir... " >&6; }
15646         systemd_system_unit_dir="${with_systemd_unit_dir}"
15647         if test -n "${systemd_system_unit_dir}"
15648 then :
15649
15650                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15651 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15652                 have_systemd="yes"
15653
15654 else $as_nop
15655
15656                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 printf "%s\n" "no" >&6; }
15658                 have_systemd="no"
15659
15660 fi
15661
15662 else $as_nop
15663
15664         have_systemd="disabled"
15665
15666 fi
15667
15668
15669 OS_IO_FILE=""
15670 case "$host_os" in
15671   mingw*)
15672     OS_IO_FILE=windows_io
15673   ;;
15674   *)
15675     OS_IO_FILE=unix_io
15676   ;;
15677 esac
15678
15679
15680 test -d lib || mkdir lib
15681 test -d include || mkdir include
15682 test -d include/linux || mkdir include/linux
15683 test -d include/asm || mkdir include/asm
15684 if test -z "$UUID_CMT" ; then
15685         uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15686                 lib/uuid/uuid_types.h"
15687 fi
15688 if test -z "$BLKID_CMT" ; then
15689         blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15690                 lib/blkid/blkid_types.h"
15691 fi
15692 for i in MCONFIG Makefile \
15693         util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15694         lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15695         lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15696         $uuid_out_list $blkid_out_list lib/support/Makefile \
15697         lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15698         misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15699         debugfs/Makefile tests/Makefile tests/progs/Makefile \
15700         tests/fuzz/Makefile resize/Makefile doc/Makefile \
15701         po/Makefile.in scrub/Makefile; do
15702         if test -d `dirname ${srcdir}/$i` ; then
15703                 outlist="$outlist $i"
15704         fi
15705 done
15706 ac_config_files="$ac_config_files $outlist"
15707
15708 cat >confcache <<\_ACEOF
15709 # This file is a shell script that caches the results of configure
15710 # tests run on this system so they can be shared between configure
15711 # scripts and configure runs, see configure's option --config-cache.
15712 # It is not useful on other systems.  If it contains results you don't
15713 # want to keep, you may remove or edit it.
15714 #
15715 # config.status only pays attention to the cache file if you give it
15716 # the --recheck option to rerun configure.
15717 #
15718 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15719 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15720 # following values.
15721
15722 _ACEOF
15723
15724 # The following way of writing the cache mishandles newlines in values,
15725 # but we know of no workaround that is simple, portable, and efficient.
15726 # So, we kill variables containing newlines.
15727 # Ultrix sh set writes to stderr and can't be redirected directly,
15728 # and sets the high bit in the cache file unless we assign to the vars.
15729 (
15730   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15731     eval ac_val=\$$ac_var
15732     case $ac_val in #(
15733     *${as_nl}*)
15734       case $ac_var in #(
15735       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15736 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15737       esac
15738       case $ac_var in #(
15739       _ | IFS | as_nl) ;; #(
15740       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15741       *) { eval $ac_var=; unset $ac_var;} ;;
15742       esac ;;
15743     esac
15744   done
15745
15746   (set) 2>&1 |
15747     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15748     *${as_nl}ac_space=\ *)
15749       # `set' does not quote correctly, so add quotes: double-quote
15750       # substitution turns \\\\ into \\, and sed turns \\ into \.
15751       sed -n \
15752         "s/'/'\\\\''/g;
15753           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15754       ;; #(
15755     *)
15756       # `set' quotes correctly as required by POSIX, so do not add quotes.
15757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15758       ;;
15759     esac |
15760     sort
15761 ) |
15762   sed '
15763      /^ac_cv_env_/b end
15764      t clear
15765      :clear
15766      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15767      t end
15768      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15769      :end' >>confcache
15770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15771   if test -w "$cache_file"; then
15772     if test "x$cache_file" != "x/dev/null"; then
15773       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15774 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15775       if test ! -f "$cache_file" || test -h "$cache_file"; then
15776         cat confcache >"$cache_file"
15777       else
15778         case $cache_file in #(
15779         */* | ?:*)
15780           mv -f confcache "$cache_file"$$ &&
15781           mv -f "$cache_file"$$ "$cache_file" ;; #(
15782         *)
15783           mv -f confcache "$cache_file" ;;
15784         esac
15785       fi
15786     fi
15787   else
15788     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15789 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15790   fi
15791 fi
15792 rm -f confcache
15793
15794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15795 # Let make expand exec_prefix.
15796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15797
15798 DEFS=-DHAVE_CONFIG_H
15799
15800 ac_libobjs=
15801 ac_ltlibobjs=
15802 U=
15803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15804   # 1. Remove the extension, and $U if already installed.
15805   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15806   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15807   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15808   #    will be set to the directory where LIBOBJS objects are built.
15809   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15810   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15811 done
15812 LIBOBJS=$ac_libobjs
15813
15814 LTLIBOBJS=$ac_ltlibobjs
15815
15816
15817
15818
15819 : "${CONFIG_STATUS=./config.status}"
15820 ac_write_fail=0
15821 ac_clean_files_save=$ac_clean_files
15822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15824 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15825 as_write_fail=0
15826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15827 #! $SHELL
15828 # Generated by $as_me.
15829 # Run this file to recreate the current configuration.
15830 # Compiler output produced by configure, useful for debugging
15831 # configure, is in config.log if it exists.
15832
15833 debug=false
15834 ac_cs_recheck=false
15835 ac_cs_silent=false
15836
15837 SHELL=\${CONFIG_SHELL-$SHELL}
15838 export SHELL
15839 _ASEOF
15840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15841 ## -------------------- ##
15842 ## M4sh Initialization. ##
15843 ## -------------------- ##
15844
15845 # Be more Bourne compatible
15846 DUALCASE=1; export DUALCASE # for MKS sh
15847 as_nop=:
15848 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15849 then :
15850   emulate sh
15851   NULLCMD=:
15852   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15853   # is contrary to our usage.  Disable this feature.
15854   alias -g '${1+"$@"}'='"$@"'
15855   setopt NO_GLOB_SUBST
15856 else $as_nop
15857   case `(set -o) 2>/dev/null` in #(
15858   *posix*) :
15859     set -o posix ;; #(
15860   *) :
15861      ;;
15862 esac
15863 fi
15864
15865
15866
15867 # Reset variables that may have inherited troublesome values from
15868 # the environment.
15869
15870 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15871 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15872 # side effect of setting IFS to empty, thus disabling word splitting.)
15873 # Quoting is to prevent editors from complaining about space-tab.
15874 as_nl='
15875 '
15876 export as_nl
15877 IFS=" ""        $as_nl"
15878
15879 PS1='$ '
15880 PS2='> '
15881 PS4='+ '
15882
15883 # Ensure predictable behavior from utilities with locale-dependent output.
15884 LC_ALL=C
15885 export LC_ALL
15886 LANGUAGE=C
15887 export LANGUAGE
15888
15889 # We cannot yet rely on "unset" to work, but we need these variables
15890 # to be unset--not just set to an empty or harmless value--now, to
15891 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
15892 # also avoids known problems related to "unset" and subshell syntax
15893 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15894 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15895 do eval test \${$as_var+y} \
15896   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15897 done
15898
15899 # Ensure that fds 0, 1, and 2 are open.
15900 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15901 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15902 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
15903
15904 # The user is always right.
15905 if ${PATH_SEPARATOR+false} :; then
15906   PATH_SEPARATOR=:
15907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15908     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15909       PATH_SEPARATOR=';'
15910   }
15911 fi
15912
15913
15914 # Find who we are.  Look in the path if we contain no directory separator.
15915 as_myself=
15916 case $0 in #((
15917   *[\\/]* ) as_myself=$0 ;;
15918   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15920 do
15921   IFS=$as_save_IFS
15922   case $as_dir in #(((
15923     '') as_dir=./ ;;
15924     */) ;;
15925     *) as_dir=$as_dir/ ;;
15926   esac
15927     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15928   done
15929 IFS=$as_save_IFS
15930
15931      ;;
15932 esac
15933 # We did not find ourselves, most probably we were run as `sh COMMAND'
15934 # in which case we are not to be found in the path.
15935 if test "x$as_myself" = x; then
15936   as_myself=$0
15937 fi
15938 if test ! -f "$as_myself"; then
15939   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15940   exit 1
15941 fi
15942
15943
15944
15945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15946 # ----------------------------------------
15947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15949 # script with STATUS, using 1 if that was 0.
15950 as_fn_error ()
15951 {
15952   as_status=$1; test $as_status -eq 0 && as_status=1
15953   if test "$4"; then
15954     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15956   fi
15957   printf "%s\n" "$as_me: error: $2" >&2
15958   as_fn_exit $as_status
15959 } # as_fn_error
15960
15961
15962
15963 # as_fn_set_status STATUS
15964 # -----------------------
15965 # Set $? to STATUS, without forking.
15966 as_fn_set_status ()
15967 {
15968   return $1
15969 } # as_fn_set_status
15970
15971 # as_fn_exit STATUS
15972 # -----------------
15973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15974 as_fn_exit ()
15975 {
15976   set +e
15977   as_fn_set_status $1
15978   exit $1
15979 } # as_fn_exit
15980
15981 # as_fn_unset VAR
15982 # ---------------
15983 # Portably unset VAR.
15984 as_fn_unset ()
15985 {
15986   { eval $1=; unset $1;}
15987 }
15988 as_unset=as_fn_unset
15989
15990 # as_fn_append VAR VALUE
15991 # ----------------------
15992 # Append the text in VALUE to the end of the definition contained in VAR. Take
15993 # advantage of any shell optimizations that allow amortized linear growth over
15994 # repeated appends, instead of the typical quadratic growth present in naive
15995 # implementations.
15996 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15997 then :
15998   eval 'as_fn_append ()
15999   {
16000     eval $1+=\$2
16001   }'
16002 else $as_nop
16003   as_fn_append ()
16004   {
16005     eval $1=\$$1\$2
16006   }
16007 fi # as_fn_append
16008
16009 # as_fn_arith ARG...
16010 # ------------------
16011 # Perform arithmetic evaluation on the ARGs, and store the result in the
16012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16013 # must be portable across $(()) and expr.
16014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16015 then :
16016   eval 'as_fn_arith ()
16017   {
16018     as_val=$(( $* ))
16019   }'
16020 else $as_nop
16021   as_fn_arith ()
16022   {
16023     as_val=`expr "$@" || test $? -eq 1`
16024   }
16025 fi # as_fn_arith
16026
16027
16028 if expr a : '\(a\)' >/dev/null 2>&1 &&
16029    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16030   as_expr=expr
16031 else
16032   as_expr=false
16033 fi
16034
16035 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16036   as_basename=basename
16037 else
16038   as_basename=false
16039 fi
16040
16041 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16042   as_dirname=dirname
16043 else
16044   as_dirname=false
16045 fi
16046
16047 as_me=`$as_basename -- "$0" ||
16048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16049          X"$0" : 'X\(//\)$' \| \
16050          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16051 printf "%s\n" X/"$0" |
16052     sed '/^.*\/\([^/][^/]*\)\/*$/{
16053             s//\1/
16054             q
16055           }
16056           /^X\/\(\/\/\)$/{
16057             s//\1/
16058             q
16059           }
16060           /^X\/\(\/\).*/{
16061             s//\1/
16062             q
16063           }
16064           s/.*/./; q'`
16065
16066 # Avoid depending upon Character Ranges.
16067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16070 as_cr_digits='0123456789'
16071 as_cr_alnum=$as_cr_Letters$as_cr_digits
16072
16073
16074 # Determine whether it's possible to make 'echo' print without a newline.
16075 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16076 # for compatibility with existing Makefiles.
16077 ECHO_C= ECHO_N= ECHO_T=
16078 case `echo -n x` in #(((((
16079 -n*)
16080   case `echo 'xy\c'` in
16081   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16082   xy)  ECHO_C='\c';;
16083   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16084        ECHO_T=' ';;
16085   esac;;
16086 *)
16087   ECHO_N='-n';;
16088 esac
16089
16090 # For backward compatibility with old third-party macros, we provide
16091 # the shell variables $as_echo and $as_echo_n.  New code should use
16092 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16093 as_echo='printf %s\n'
16094 as_echo_n='printf %s'
16095
16096 rm -f conf$$ conf$$.exe conf$$.file
16097 if test -d conf$$.dir; then
16098   rm -f conf$$.dir/conf$$.file
16099 else
16100   rm -f conf$$.dir
16101   mkdir conf$$.dir 2>/dev/null
16102 fi
16103 if (echo >conf$$.file) 2>/dev/null; then
16104   if ln -s conf$$.file conf$$ 2>/dev/null; then
16105     as_ln_s='ln -s'
16106     # ... but there are two gotchas:
16107     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16108     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16109     # In both cases, we have to default to `cp -pR'.
16110     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16111       as_ln_s='cp -pR'
16112   elif ln conf$$.file conf$$ 2>/dev/null; then
16113     as_ln_s=ln
16114   else
16115     as_ln_s='cp -pR'
16116   fi
16117 else
16118   as_ln_s='cp -pR'
16119 fi
16120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16121 rmdir conf$$.dir 2>/dev/null
16122
16123
16124 # as_fn_mkdir_p
16125 # -------------
16126 # Create "$as_dir" as a directory, including parents if necessary.
16127 as_fn_mkdir_p ()
16128 {
16129
16130   case $as_dir in #(
16131   -*) as_dir=./$as_dir;;
16132   esac
16133   test -d "$as_dir" || eval $as_mkdir_p || {
16134     as_dirs=
16135     while :; do
16136       case $as_dir in #(
16137       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16138       *) as_qdir=$as_dir;;
16139       esac
16140       as_dirs="'$as_qdir' $as_dirs"
16141       as_dir=`$as_dirname -- "$as_dir" ||
16142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16143          X"$as_dir" : 'X\(//\)[^/]' \| \
16144          X"$as_dir" : 'X\(//\)$' \| \
16145          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16146 printf "%s\n" X"$as_dir" |
16147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16148             s//\1/
16149             q
16150           }
16151           /^X\(\/\/\)[^/].*/{
16152             s//\1/
16153             q
16154           }
16155           /^X\(\/\/\)$/{
16156             s//\1/
16157             q
16158           }
16159           /^X\(\/\).*/{
16160             s//\1/
16161             q
16162           }
16163           s/.*/./; q'`
16164       test -d "$as_dir" && break
16165     done
16166     test -z "$as_dirs" || eval "mkdir $as_dirs"
16167   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16168
16169
16170 } # as_fn_mkdir_p
16171 if mkdir -p . 2>/dev/null; then
16172   as_mkdir_p='mkdir -p "$as_dir"'
16173 else
16174   test -d ./-p && rmdir ./-p
16175   as_mkdir_p=false
16176 fi
16177
16178
16179 # as_fn_executable_p FILE
16180 # -----------------------
16181 # Test if FILE is an executable regular file.
16182 as_fn_executable_p ()
16183 {
16184   test -f "$1" && test -x "$1"
16185 } # as_fn_executable_p
16186 as_test_x='test -x'
16187 as_executable_p=as_fn_executable_p
16188
16189 # Sed expression to map a string onto a valid CPP name.
16190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16191
16192 # Sed expression to map a string onto a valid variable name.
16193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16194
16195
16196 exec 6>&1
16197 ## ----------------------------------- ##
16198 ## Main body of $CONFIG_STATUS script. ##
16199 ## ----------------------------------- ##
16200 _ASEOF
16201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16202
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 # Save the log message, to keep $0 and so on meaningful, and to
16205 # report actual input values of CONFIG_FILES etc. instead of their
16206 # values after options handling.
16207 ac_log="
16208 This file was extended by $as_me, which was
16209 generated by GNU Autoconf 2.71.  Invocation command line was
16210
16211   CONFIG_FILES    = $CONFIG_FILES
16212   CONFIG_HEADERS  = $CONFIG_HEADERS
16213   CONFIG_LINKS    = $CONFIG_LINKS
16214   CONFIG_COMMANDS = $CONFIG_COMMANDS
16215   $ $0 $@
16216
16217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16218 "
16219
16220 _ACEOF
16221
16222 case $ac_config_files in *"
16223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16224 esac
16225
16226 case $ac_config_headers in *"
16227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16228 esac
16229
16230
16231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232 # Files that config.status was made for.
16233 config_files="$ac_config_files"
16234 config_headers="$ac_config_headers"
16235 config_commands="$ac_config_commands"
16236
16237 _ACEOF
16238
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240 ac_cs_usage="\
16241 \`$as_me' instantiates files and other configuration actions
16242 from templates according to the current configuration.  Unless the files
16243 and actions are specified as TAGs, all are instantiated by default.
16244
16245 Usage: $0 [OPTION]... [TAG]...
16246
16247   -h, --help       print this help, then exit
16248   -V, --version    print version number and configuration settings, then exit
16249       --config     print configuration, then exit
16250   -q, --quiet, --silent
16251                    do not print progress messages
16252   -d, --debug      don't remove temporary files
16253       --recheck    update $as_me by reconfiguring in the same conditions
16254       --file=FILE[:TEMPLATE]
16255                    instantiate the configuration file FILE
16256       --header=FILE[:TEMPLATE]
16257                    instantiate the configuration header FILE
16258
16259 Configuration files:
16260 $config_files
16261
16262 Configuration headers:
16263 $config_headers
16264
16265 Configuration commands:
16266 $config_commands
16267
16268 Report bugs to the package provider."
16269
16270 _ACEOF
16271 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16272 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 ac_cs_config='$ac_cs_config_escaped'
16275 ac_cs_version="\\
16276 config.status
16277 configured by $0, generated by GNU Autoconf 2.71,
16278   with options \\"\$ac_cs_config\\"
16279
16280 Copyright (C) 2021 Free Software Foundation, Inc.
16281 This config.status script is free software; the Free Software Foundation
16282 gives unlimited permission to copy, distribute and modify it."
16283
16284 ac_pwd='$ac_pwd'
16285 srcdir='$srcdir'
16286 INSTALL='$INSTALL'
16287 MKDIR_P='$MKDIR_P'
16288 AWK='$AWK'
16289 test -n "\$AWK" || AWK=awk
16290 _ACEOF
16291
16292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16293 # The default lists apply if the user does not specify any file.
16294 ac_need_defaults=:
16295 while test $# != 0
16296 do
16297   case $1 in
16298   --*=?*)
16299     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16300     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16301     ac_shift=:
16302     ;;
16303   --*=)
16304     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16305     ac_optarg=
16306     ac_shift=:
16307     ;;
16308   *)
16309     ac_option=$1
16310     ac_optarg=$2
16311     ac_shift=shift
16312     ;;
16313   esac
16314
16315   case $ac_option in
16316   # Handling of the options.
16317   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16318     ac_cs_recheck=: ;;
16319   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16320     printf "%s\n" "$ac_cs_version"; exit ;;
16321   --config | --confi | --conf | --con | --co | --c )
16322     printf "%s\n" "$ac_cs_config"; exit ;;
16323   --debug | --debu | --deb | --de | --d | -d )
16324     debug=: ;;
16325   --file | --fil | --fi | --f )
16326     $ac_shift
16327     case $ac_optarg in
16328     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16329     '') as_fn_error $? "missing file argument" ;;
16330     esac
16331     as_fn_append CONFIG_FILES " '$ac_optarg'"
16332     ac_need_defaults=false;;
16333   --header | --heade | --head | --hea )
16334     $ac_shift
16335     case $ac_optarg in
16336     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16337     esac
16338     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16339     ac_need_defaults=false;;
16340   --he | --h)
16341     # Conflict between --help and --header
16342     as_fn_error $? "ambiguous option: \`$1'
16343 Try \`$0 --help' for more information.";;
16344   --help | --hel | -h )
16345     printf "%s\n" "$ac_cs_usage"; exit ;;
16346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16347   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16348     ac_cs_silent=: ;;
16349
16350   # This is an error.
16351   -*) as_fn_error $? "unrecognized option: \`$1'
16352 Try \`$0 --help' for more information." ;;
16353
16354   *) as_fn_append ac_config_targets " $1"
16355      ac_need_defaults=false ;;
16356
16357   esac
16358   shift
16359 done
16360
16361 ac_configure_extra_args=
16362
16363 if $ac_cs_silent; then
16364   exec 6>/dev/null
16365   ac_configure_extra_args="$ac_configure_extra_args --silent"
16366 fi
16367
16368 _ACEOF
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 if \$ac_cs_recheck; then
16371   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16372   shift
16373   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16374   CONFIG_SHELL='$SHELL'
16375   export CONFIG_SHELL
16376   exec "\$@"
16377 fi
16378
16379 _ACEOF
16380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16381 exec 5>>config.log
16382 {
16383   echo
16384   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16385 ## Running $as_me. ##
16386 _ASBOX
16387   printf "%s\n" "$ac_log"
16388 } >&5
16389
16390 _ACEOF
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16392 #
16393 # INIT-COMMANDS
16394 #
16395 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16396     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16397     OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16398     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16399     LINGUAS="${LINGUAS-%UNSET%}"
16400
16401
16402 _ACEOF
16403
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16405
16406 # Handling of arguments.
16407 for ac_config_target in $ac_config_targets
16408 do
16409   case $ac_config_target in
16410     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16411     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16412     "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16413
16414   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16415   esac
16416 done
16417
16418
16419 # If the user did not use the arguments to specify the items to instantiate,
16420 # then the envvar interface is used.  Set only those that are not.
16421 # We use the long form for the default assignment because of an extremely
16422 # bizarre bug on SunOS 4.1.3.
16423 if $ac_need_defaults; then
16424   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16425   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16426   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16427 fi
16428
16429 # Have a temporary directory for convenience.  Make it in the build tree
16430 # simply because there is no reason against having it here, and in addition,
16431 # creating and moving files from /tmp can sometimes cause problems.
16432 # Hook for its removal unless debugging.
16433 # Note that there is a small window in which the directory will not be cleaned:
16434 # after its creation but before its name has been assigned to `$tmp'.
16435 $debug ||
16436 {
16437   tmp= ac_tmp=
16438   trap 'exit_status=$?
16439   : "${ac_tmp:=$tmp}"
16440   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16441 ' 0
16442   trap 'as_fn_exit 1' 1 2 13 15
16443 }
16444 # Create a (secure) tmp directory for tmp files.
16445
16446 {
16447   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16448   test -d "$tmp"
16449 }  ||
16450 {
16451   tmp=./conf$$-$RANDOM
16452   (umask 077 && mkdir "$tmp")
16453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16454 ac_tmp=$tmp
16455
16456 # Set up the scripts for CONFIG_FILES section.
16457 # No need to generate them if there are no CONFIG_FILES.
16458 # This happens for instance with `./config.status config.h'.
16459 if test -n "$CONFIG_FILES"; then
16460
16461 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16462   ac_cs_awk_getline=:
16463   ac_cs_awk_pipe_init=
16464   ac_cs_awk_read_file='
16465       while ((getline aline < (F[key])) > 0)
16466         print(aline)
16467       close(F[key])'
16468   ac_cs_awk_pipe_fini=
16469 else
16470   ac_cs_awk_getline=false
16471   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16472   ac_cs_awk_read_file='
16473       print "|#_!!_#|"
16474       print "cat " F[key] " &&"
16475       '$ac_cs_awk_pipe_init
16476   # The final `:' finishes the AND list.
16477   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16478 fi
16479 ac_cr=`echo X | tr X '\015'`
16480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16481 # But we know of no other shell where ac_cr would be empty at this
16482 # point, so we can use a bashism as a fallback.
16483 if test "x$ac_cr" = x; then
16484   eval ac_cr=\$\'\\r\'
16485 fi
16486 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16488   ac_cs_awk_cr='\\r'
16489 else
16490   ac_cs_awk_cr=$ac_cr
16491 fi
16492
16493 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16494 _ACEOF
16495
16496 # Create commands to substitute file output variables.
16497 {
16498   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16499   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16500   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16501   echo "_ACAWK" &&
16502   echo "_ACEOF"
16503 } >conf$$files.sh &&
16504 . ./conf$$files.sh ||
16505   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16506 rm -f conf$$files.sh
16507
16508 {
16509   echo "cat >conf$$subs.awk <<_ACEOF" &&
16510   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16511   echo "_ACEOF"
16512 } >conf$$subs.sh ||
16513   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16515 ac_delim='%!_!# '
16516 for ac_last_try in false false false false false :; do
16517   . ./conf$$subs.sh ||
16518     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16519
16520   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16521   if test $ac_delim_n = $ac_delim_num; then
16522     break
16523   elif $ac_last_try; then
16524     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16525   else
16526     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16527   fi
16528 done
16529 rm -f conf$$subs.sh
16530
16531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16532 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16533 _ACEOF
16534 sed -n '
16535 h
16536 s/^/S["/; s/!.*/"]=/
16537 p
16538 g
16539 s/^[^!]*!//
16540 :repl
16541 t repl
16542 s/'"$ac_delim"'$//
16543 t delim
16544 :nl
16545 h
16546 s/\(.\{148\}\)..*/\1/
16547 t more1
16548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16549 p
16550 n
16551 b repl
16552 :more1
16553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16554 p
16555 g
16556 s/.\{148\}//
16557 t nl
16558 :delim
16559 h
16560 s/\(.\{148\}\)..*/\1/
16561 t more2
16562 s/["\\]/\\&/g; s/^/"/; s/$/"/
16563 p
16564 b
16565 :more2
16566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16567 p
16568 g
16569 s/.\{148\}//
16570 t delim
16571 ' <conf$$subs.awk | sed '
16572 /^[^""]/{
16573   N
16574   s/\n//
16575 }
16576 ' >>$CONFIG_STATUS || ac_write_fail=1
16577 rm -f conf$$subs.awk
16578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16579 _ACAWK
16580 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16581   for (key in S) S_is_set[key] = 1
16582   FS = "\a"
16583   \$ac_cs_awk_pipe_init
16584 }
16585 {
16586   line = $ 0
16587   nfields = split(line, field, "@")
16588   substed = 0
16589   len = length(field[1])
16590   for (i = 2; i < nfields; i++) {
16591     key = field[i]
16592     keylen = length(key)
16593     if (S_is_set[key]) {
16594       value = S[key]
16595       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16596       len += length(value) + length(field[++i])
16597       substed = 1
16598     } else
16599       len += 1 + keylen
16600   }
16601   if (nfields == 3 && !substed) {
16602     key = field[2]
16603     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16604       \$ac_cs_awk_read_file
16605       next
16606     }
16607   }
16608   print line
16609 }
16610 \$ac_cs_awk_pipe_fini
16611 _ACAWK
16612 _ACEOF
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16615   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16616 else
16617   cat
16618 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16619   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16620 _ACEOF
16621
16622 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16623 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16624 # trailing colons and then remove the whole line if VPATH becomes empty
16625 # (actually we leave an empty line to preserve line numbers).
16626 if test "x$srcdir" = x.; then
16627   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16628 h
16629 s///
16630 s/^/:/
16631 s/[      ]*$/:/
16632 s/:\$(srcdir):/:/g
16633 s/:\${srcdir}:/:/g
16634 s/:@srcdir@:/:/g
16635 s/^:*//
16636 s/:*$//
16637 x
16638 s/\(=[   ]*\).*/\1/
16639 G
16640 s/\n//
16641 s/^[^=]*=[       ]*$//
16642 }'
16643 fi
16644
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646 fi # test -n "$CONFIG_FILES"
16647
16648 # Set up the scripts for CONFIG_HEADERS section.
16649 # No need to generate them if there are no CONFIG_HEADERS.
16650 # This happens for instance with `./config.status Makefile'.
16651 if test -n "$CONFIG_HEADERS"; then
16652 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16653 BEGIN {
16654 _ACEOF
16655
16656 # Transform confdefs.h into an awk script `defines.awk', embedded as
16657 # here-document in config.status, that substitutes the proper values into
16658 # config.h.in to produce config.h.
16659
16660 # Create a delimiter string that does not exist in confdefs.h, to ease
16661 # handling of long lines.
16662 ac_delim='%!_!# '
16663 for ac_last_try in false false :; do
16664   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16665   if test -z "$ac_tt"; then
16666     break
16667   elif $ac_last_try; then
16668     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16669   else
16670     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16671   fi
16672 done
16673
16674 # For the awk script, D is an array of macro values keyed by name,
16675 # likewise P contains macro parameters if any.  Preserve backslash
16676 # newline sequences.
16677
16678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16679 sed -n '
16680 s/.\{148\}/&'"$ac_delim"'/g
16681 t rset
16682 :rset
16683 s/^[     ]*#[    ]*define[       ][      ]*/ /
16684 t def
16685 d
16686 :def
16687 s/\\$//
16688 t bsnl
16689 s/["\\]/\\&/g
16690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16691 D["\1"]=" \3"/p
16692 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16693 d
16694 :bsnl
16695 s/["\\]/\\&/g
16696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16697 D["\1"]=" \3\\\\\\n"\\/p
16698 t cont
16699 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16700 t cont
16701 d
16702 :cont
16703 n
16704 s/.\{148\}/&'"$ac_delim"'/g
16705 t clear
16706 :clear
16707 s/\\$//
16708 t bsnlc
16709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16710 d
16711 :bsnlc
16712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16713 b cont
16714 ' <confdefs.h | sed '
16715 s/'"$ac_delim"'/"\\\
16716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16717
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719   for (key in D) D_is_set[key] = 1
16720   FS = "\a"
16721 }
16722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16723   line = \$ 0
16724   split(line, arg, " ")
16725   if (arg[1] == "#") {
16726     defundef = arg[2]
16727     mac1 = arg[3]
16728   } else {
16729     defundef = substr(arg[1], 2)
16730     mac1 = arg[2]
16731   }
16732   split(mac1, mac2, "(") #)
16733   macro = mac2[1]
16734   prefix = substr(line, 1, index(line, defundef) - 1)
16735   if (D_is_set[macro]) {
16736     # Preserve the white space surrounding the "#".
16737     print prefix "define", macro P[macro] D[macro]
16738     next
16739   } else {
16740     # Replace #undef with comments.  This is necessary, for example,
16741     # in the case of _POSIX_SOURCE, which is predefined and required
16742     # on some systems where configure will not decide to define it.
16743     if (defundef == "undef") {
16744       print "/*", prefix defundef, macro, "*/"
16745       next
16746     }
16747   }
16748 }
16749 { print }
16750 _ACAWK
16751 _ACEOF
16752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16753   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16754 fi # test -n "$CONFIG_HEADERS"
16755
16756
16757 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16758 shift
16759 for ac_tag
16760 do
16761   case $ac_tag in
16762   :[FHLC]) ac_mode=$ac_tag; continue;;
16763   esac
16764   case $ac_mode$ac_tag in
16765   :[FHL]*:*);;
16766   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16767   :[FH]-) ac_tag=-:-;;
16768   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16769   esac
16770   ac_save_IFS=$IFS
16771   IFS=:
16772   set x $ac_tag
16773   IFS=$ac_save_IFS
16774   shift
16775   ac_file=$1
16776   shift
16777
16778   case $ac_mode in
16779   :L) ac_source=$1;;
16780   :[FH])
16781     ac_file_inputs=
16782     for ac_f
16783     do
16784       case $ac_f in
16785       -) ac_f="$ac_tmp/stdin";;
16786       *) # Look for the file first in the build tree, then in the source tree
16787          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16788          # because $ac_f cannot contain `:'.
16789          test -f "$ac_f" ||
16790            case $ac_f in
16791            [\\/$]*) false;;
16792            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16793            esac ||
16794            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16795       esac
16796       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16797       as_fn_append ac_file_inputs " '$ac_f'"
16798     done
16799
16800     # Let's still pretend it is `configure' which instantiates (i.e., don't
16801     # use $as_me), people would be surprised to read:
16802     #    /* config.h.  Generated by config.status.  */
16803     configure_input='Generated from '`
16804           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16805         `' by configure.'
16806     if test x"$ac_file" != x-; then
16807       configure_input="$ac_file.  $configure_input"
16808       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16809 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16810     fi
16811     # Neutralize special characters interpreted by sed in replacement strings.
16812     case $configure_input in #(
16813     *\&* | *\|* | *\\* )
16814        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16815        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16816     *) ac_sed_conf_input=$configure_input;;
16817     esac
16818
16819     case $ac_tag in
16820     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16821       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16822     esac
16823     ;;
16824   esac
16825
16826   ac_dir=`$as_dirname -- "$ac_file" ||
16827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16828          X"$ac_file" : 'X\(//\)[^/]' \| \
16829          X"$ac_file" : 'X\(//\)$' \| \
16830          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16831 printf "%s\n" X"$ac_file" |
16832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16833             s//\1/
16834             q
16835           }
16836           /^X\(\/\/\)[^/].*/{
16837             s//\1/
16838             q
16839           }
16840           /^X\(\/\/\)$/{
16841             s//\1/
16842             q
16843           }
16844           /^X\(\/\).*/{
16845             s//\1/
16846             q
16847           }
16848           s/.*/./; q'`
16849   as_dir="$ac_dir"; as_fn_mkdir_p
16850   ac_builddir=.
16851
16852 case "$ac_dir" in
16853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16854 *)
16855   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16856   # A ".." for each directory in $ac_dir_suffix.
16857   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16858   case $ac_top_builddir_sub in
16859   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16860   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16861   esac ;;
16862 esac
16863 ac_abs_top_builddir=$ac_pwd
16864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16865 # for backward compatibility:
16866 ac_top_builddir=$ac_top_build_prefix
16867
16868 case $srcdir in
16869   .)  # We are building in place.
16870     ac_srcdir=.
16871     ac_top_srcdir=$ac_top_builddir_sub
16872     ac_abs_top_srcdir=$ac_pwd ;;
16873   [\\/]* | ?:[\\/]* )  # Absolute name.
16874     ac_srcdir=$srcdir$ac_dir_suffix;
16875     ac_top_srcdir=$srcdir
16876     ac_abs_top_srcdir=$srcdir ;;
16877   *) # Relative name.
16878     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16879     ac_top_srcdir=$ac_top_build_prefix$srcdir
16880     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16881 esac
16882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16883
16884
16885   case $ac_mode in
16886   :F)
16887   #
16888   # CONFIG_FILE
16889   #
16890
16891   case $INSTALL in
16892   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16893   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16894   esac
16895   ac_MKDIR_P=$MKDIR_P
16896   case $MKDIR_P in
16897   [\\/$]* | ?:[\\/]* ) ;;
16898   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16899   esac
16900 _ACEOF
16901
16902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16903 # If the template does not know about datarootdir, expand it.
16904 # FIXME: This hack should be removed a few years after 2.60.
16905 ac_datarootdir_hack=; ac_datarootdir_seen=
16906 ac_sed_dataroot='
16907 /datarootdir/ {
16908   p
16909   q
16910 }
16911 /@datadir@/p
16912 /@docdir@/p
16913 /@infodir@/p
16914 /@localedir@/p
16915 /@mandir@/p'
16916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16917 *datarootdir*) ac_datarootdir_seen=yes;;
16918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16920 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16921 _ACEOF
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923   ac_datarootdir_hack='
16924   s&@datadir@&$datadir&g
16925   s&@docdir@&$docdir&g
16926   s&@infodir@&$infodir&g
16927   s&@localedir@&$localedir&g
16928   s&@mandir@&$mandir&g
16929   s&\\\${datarootdir}&$datarootdir&g' ;;
16930 esac
16931 _ACEOF
16932
16933 # Neutralize VPATH when `$srcdir' = `.'.
16934 # Shell code in configure.ac might set extrasub.
16935 # FIXME: do we really want to maintain this feature?
16936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 ac_sed_extra="$ac_vpsub
16938 $extrasub
16939 _ACEOF
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 :t
16942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16943 s|@configure_input@|$ac_sed_conf_input|;t t
16944 s&@top_builddir@&$ac_top_builddir_sub&;t t
16945 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16946 s&@srcdir@&$ac_srcdir&;t t
16947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16948 s&@top_srcdir@&$ac_top_srcdir&;t t
16949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16950 s&@builddir@&$ac_builddir&;t t
16951 s&@abs_builddir@&$ac_abs_builddir&;t t
16952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16953 s&@INSTALL@&$ac_INSTALL&;t t
16954 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16955 $ac_datarootdir_hack
16956 "
16957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16958 if $ac_cs_awk_getline; then
16959   $AWK -f "$ac_tmp/subs.awk"
16960 else
16961   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16962 fi \
16963   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16964
16965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16966   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16967   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16968       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16970 which seems to be undefined.  Please make sure it is defined" >&5
16971 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16972 which seems to be undefined.  Please make sure it is defined" >&2;}
16973
16974   rm -f "$ac_tmp/stdin"
16975   case $ac_file in
16976   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16977   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16978   esac \
16979   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16980  ;;
16981   :H)
16982   #
16983   # CONFIG_HEADER
16984   #
16985   if test x"$ac_file" != x-; then
16986     {
16987       printf "%s\n" "/* $configure_input  */" >&1 \
16988       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16989     } >"$ac_tmp/config.h" \
16990       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16991     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16992       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16993 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16994     else
16995       rm -f "$ac_file"
16996       mv "$ac_tmp/config.h" "$ac_file" \
16997         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16998     fi
16999   else
17000     printf "%s\n" "/* $configure_input  */" >&1 \
17001       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17002       || as_fn_error $? "could not create -" "$LINENO" 5
17003   fi
17004  ;;
17005
17006   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17007 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17008  ;;
17009   esac
17010
17011
17012   case $ac_file$ac_mode in
17013     "po-directories":C)
17014     for ac_file in $CONFIG_FILES; do
17015       # Support "outfile[:infile[:infile...]]"
17016       case "$ac_file" in
17017         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17018       esac
17019       # PO directories have a Makefile.in generated from Makefile.in.in.
17020       case "$ac_file" in */Makefile.in)
17021         # Adjust a relative srcdir.
17022         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17023         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17024         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17025         # In autoconf-2.13 it is called $ac_given_srcdir.
17026         # In autoconf-2.50 it is called $srcdir.
17027         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17028         case "$ac_given_srcdir" in
17029           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17030           /*) top_srcdir="$ac_given_srcdir" ;;
17031           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17032         esac
17033         # Treat a directory as a PO directory if and only if it has a
17034         # POTFILES.in file. This allows packages to have multiple PO
17035         # directories under different names or in different locations.
17036         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17037           rm -f "$ac_dir/POTFILES"
17038           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17039           gt_tab=`printf '\t'`
17040           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"
17041           POMAKEFILEDEPS="POTFILES.in"
17042           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17043           # on $ac_dir but don't depend on user-specified configuration
17044           # parameters.
17045           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17046             # The LINGUAS file contains the set of available languages.
17047             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17048               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17049             fi
17050             ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17051             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17052           else
17053             # The set of available languages was given in configure.in.
17054             ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17055           fi
17056           # Compute POFILES
17057           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17058           # Compute UPDATEPOFILES
17059           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17060           # Compute DUMMYPOFILES
17061           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17062           # Compute GMOFILES
17063           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17064           case "$ac_given_srcdir" in
17065             .) srcdirpre= ;;
17066             *) srcdirpre='$(srcdir)/' ;;
17067           esac
17068           POFILES=
17069           UPDATEPOFILES=
17070           DUMMYPOFILES=
17071           GMOFILES=
17072           for lang in $ALL_LINGUAS; do
17073             POFILES="$POFILES $srcdirpre$lang.po"
17074             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17075             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17076             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17077           done
17078           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17079           # environment variable.
17080           INST_LINGUAS=
17081           if test -n "$ALL_LINGUAS"; then
17082             for presentlang in $ALL_LINGUAS; do
17083               useit=no
17084               if test "%UNSET%" != "$LINGUAS"; then
17085                 desiredlanguages="$LINGUAS"
17086               else
17087                 desiredlanguages="$ALL_LINGUAS"
17088               fi
17089               for desiredlang in $desiredlanguages; do
17090                 # Use the presentlang catalog if desiredlang is
17091                 #   a. equal to presentlang, or
17092                 #   b. a variant of presentlang (because in this case,
17093                 #      presentlang can be used as a fallback for messages
17094                 #      which are not translated in the desiredlang catalog).
17095                 case "$desiredlang" in
17096                   "$presentlang"*) useit=yes;;
17097                 esac
17098               done
17099               if test $useit = yes; then
17100                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17101               fi
17102             done
17103           fi
17104           CATALOGS=
17105           if test -n "$INST_LINGUAS"; then
17106             for lang in $INST_LINGUAS; do
17107               CATALOGS="$CATALOGS $lang.gmo"
17108             done
17109           fi
17110           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17111           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"
17112           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17113             if test -f "$f"; then
17114               case "$f" in
17115                 *.orig | *.bak | *~) ;;
17116                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17117               esac
17118             fi
17119           done
17120         fi
17121         ;;
17122       esac
17123     done ;;
17124
17125   esac
17126 done # for ac_tag
17127
17128
17129 as_fn_exit 0
17130 _ACEOF
17131 ac_clean_files=$ac_clean_files_save
17132
17133 test $ac_write_fail = 0 ||
17134   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17135
17136
17137 # configure is writing to config.log, and then calls config.status.
17138 # config.status does its own redirection, appending to config.log.
17139 # Unfortunately, on DOS this fails, as config.log is still kept open
17140 # by configure, so config.status won't be able to write to it; its
17141 # output is simply discarded.  So we exec the FD to /dev/null,
17142 # effectively closing config.log, so it can be properly (re)opened and
17143 # appended to by config.status.  When coming back to configure, we
17144 # need to make the FD available again.
17145 if test "$no_create" != yes; then
17146   ac_cs_success=:
17147   ac_config_status_args=
17148   test "$silent" = yes &&
17149     ac_config_status_args="$ac_config_status_args --quiet"
17150   exec 5>/dev/null
17151   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17152   exec 5>>config.log
17153   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17154   # would make configure fail if this is the last instruction.
17155   $ac_cs_success || as_fn_exit 1
17156 fi
17157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17159 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17160 fi
17161
17162 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
17163