[CVE-2023-30571]README: vulnerability on implicite directory creation
[platform/upstream/libarchive.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libarchive 3.6.2.
4 #
5 # Report bugs to <libarchive-discuss@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: libarchive-discuss@googlegroups.com about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312   return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320   set +e
321   as_fn_set_status $1
322   exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329   return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339   case $as_dir in #(
340   -*) as_dir=./$as_dir;;
341   esac
342   test -d "$as_dir" || eval $as_mkdir_p || {
343     as_dirs=
344     while :; do
345       case $as_dir in #(
346       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347       *) as_qdir=$as_dir;;
348       esac
349       as_dirs="'$as_qdir' $as_dirs"
350       as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352          X"$as_dir" : 'X\(//\)[^/]' \| \
353          X"$as_dir" : 'X\(//\)$' \| \
354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\/\)[^/].*/{
361             s//\1/
362             q
363           }
364           /^X\(\/\/\)$/{
365             s//\1/
366             q
367           }
368           /^X\(\/\).*/{
369             s//\1/
370             q
371           }
372           s/.*/./; q'`
373       test -d "$as_dir" && break
374     done
375     test -z "$as_dirs" || eval "mkdir $as_dirs"
376   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386   test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396   eval 'as_fn_append ()
397   {
398     eval $1+=\$2
399   }'
400 else $as_nop
401   as_fn_append ()
402   {
403     eval $1=\$$1\$2
404   }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414   eval 'as_fn_arith ()
415   {
416     as_val=$(( $* ))
417   }'
418 else $as_nop
419   as_fn_arith ()
420   {
421     as_val=`expr "$@" || test $? -eq 1`
422   }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430   return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441   as_status=$1; test $as_status -eq 0 && as_status=1
442   if test "$4"; then
443     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445   fi
446   printf "%s\n" "$as_me: error: $2" >&2
447   as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451    test "X`expr 00001 : '.*\(...\)'`" = X001; then
452   as_expr=expr
453 else
454   as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458   as_basename=basename
459 else
460   as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471          X"$0" : 'X\(//\)$' \| \
472          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474     sed '/^.*\/\([^/][^/]*\)\/*$/{
475             s//\1/
476             q
477           }
478           /^X\/\(\/\/\)$/{
479             s//\1/
480             q
481           }
482           /^X\/\(\/\).*/{
483             s//\1/
484             q
485           }
486           s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496   as_lineno_1=$LINENO as_lineno_1a=$LINENO
497   as_lineno_2=$LINENO as_lineno_2a=$LINENO
498   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501   sed -n '
502     p
503     /[$]LINENO/=
504   ' <$as_myself |
505     sed '
506       s/[$]LINENO.*/&-/
507       t lineno
508       b
509       :lineno
510       N
511       :loop
512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513       t loop
514       s/-\n.*//
515     ' >$as_me.lineno &&
516   chmod +x "$as_me.lineno" ||
517     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520   # already done that, so ensure we don't try to do so again and fall
521   # in an infinite loop.  This has already happened in practice.
522   _as_can_reexec=no; export _as_can_reexec
523   # Don't try to exec as it changes $[0], causing all sort of problems
524   # (the dirname of $[0] is not the place where we might find the
525   # original and so on.  Autoconf is especially sensitive to this).
526   . "./$as_me.lineno"
527   # Exit status is that of the last command.
528   exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538   case `echo 'xy\c'` in
539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
540   xy)  ECHO_C='\c';;
541   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542        ECHO_T=' ';;
543   esac;;
544 *)
545   ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n.  New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557   rm -f conf$$.dir/conf$$.file
558 else
559   rm -f conf$$.dir
560   mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563   if ln -s conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s='ln -s'
565     # ... but there are two gotchas:
566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568     # In both cases, we have to default to `cp -pR'.
569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570       as_ln_s='cp -pR'
571   elif ln conf$$.file conf$$ 2>/dev/null; then
572     as_ln_s=ln
573   else
574     as_ln_s='cp -pR'
575   fi
576 else
577   as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583   as_mkdir_p='mkdir -p "$as_dir"'
584 else
585   test -d ./-p && rmdir ./-p
586   as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='libarchive'
623 PACKAGE_TARNAME='libarchive'
624 PACKAGE_VERSION='3.6.2'
625 PACKAGE_STRING='libarchive 3.6.2'
626 PACKAGE_BUGREPORT='libarchive-discuss@googlegroups.com'
627 PACKAGE_URL=''
628
629 ac_unique_file="libarchive"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_func_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBSREQUIRED
667 INC_FREEBSD_ACL_FALSE
668 INC_FREEBSD_ACL_TRUE
669 INC_DARWIN_ACL_FALSE
670 INC_DARWIN_ACL_TRUE
671 INC_SUNOS_ACL_FALSE
672 INC_SUNOS_ACL_TRUE
673 INC_LINUX_ACL_FALSE
674 INC_LINUX_ACL_TRUE
675 LIBOBJS
676 GC_SECTIONS
677 LIBXML2_PC_LIBS
678 LIBXML2_PC_CFLAGS
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 LTLIBICONV
683 LIBICONV
684 INC_BLAKE2_FALSE
685 INC_BLAKE2_TRUE
686 STATIC_BSDCPIO_FALSE
687 STATIC_BSDCPIO_TRUE
688 BUILD_BSDCPIO_FALSE
689 BUILD_BSDCPIO_TRUE
690 STATIC_BSDCAT_FALSE
691 STATIC_BSDCAT_TRUE
692 BUILD_BSDCAT_FALSE
693 BUILD_BSDCAT_TRUE
694 STATIC_BSDTAR_FALSE
695 STATIC_BSDTAR_TRUE
696 BUILD_BSDTAR_FALSE
697 BUILD_BSDTAR_TRUE
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 LIBTOOL
718 OBJDUMP
719 DLLTOOL
720 AS
721 CPP
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 PLATFORMCPPFLAGS
739 INC_CYGWIN_FILES_FALSE
740 INC_CYGWIN_FILES_TRUE
741 INC_WINDOWS_FILES_FALSE
742 INC_WINDOWS_FILES_TRUE
743 host_os
744 host_vendor
745 host_cpu
746 host
747 build_os
748 build_vendor
749 build_cpu
750 build
751 LIBARCHIVE_VERSION_NUMBER
752 LIBARCHIVE_VERSION_STRING
753 BSDCAT_VERSION_STRING
754 BSDTAR_VERSION_STRING
755 BSDCPIO_VERSION_STRING
756 ARCHIVE_LIBTOOL_VERSION
757 MAINT
758 MAINTAINER_MODE_FALSE
759 MAINTAINER_MODE_TRUE
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 CSCOPE
765 ETAGS
766 CTAGS
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 runstatedir
810 localstatedir
811 sharedstatedir
812 sysconfdir
813 datadir
814 datarootdir
815 libexecdir
816 sbindir
817 bindir
818 program_transform_name
819 prefix
820 exec_prefix
821 PACKAGE_URL
822 PACKAGE_BUGREPORT
823 PACKAGE_STRING
824 PACKAGE_VERSION
825 PACKAGE_TARNAME
826 PACKAGE_NAME
827 PATH_SEPARATOR
828 SHELL
829 am__quote'
830 ac_subst_files=''
831 ac_user_opts='
832 enable_option_checking
833 enable_silent_rules
834 enable_maintainer_mode
835 enable_dependency_tracking
836 enable_shared
837 enable_static
838 with_pic
839 enable_fast_install
840 with_aix_soname
841 with_gnu_ld
842 with_sysroot
843 enable_libtool_lock
844 enable_bsdtar
845 enable_bsdcat
846 enable_bsdcpio
847 with_zlib
848 with_bz2lib
849 with_libb2
850 with_iconv
851 enable_rpath
852 with_libiconv_prefix
853 with_lz4
854 with_zstd
855 with_lzma
856 with_lzo2
857 with_cng
858 with_mbedtls
859 with_nettle
860 with_openssl
861 with_xml2
862 with_expat
863 enable_posix_regex_lib
864 enable_xattr
865 enable_acl
866 enable_largefile
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 LT_SYS_LIBRARY_PATH
878 PKG_CONFIG
879 PKG_CONFIG_PATH
880 PKG_CONFIG_LIBDIR
881 LIBXML2_PC_CFLAGS
882 LIBXML2_PC_LIBS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 runstatedir='${localstatedir}/run'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938   # If the previous option needs an argument, assign it.
939   if test -n "$ac_prev"; then
940     eval $ac_prev=\$ac_option
941     ac_prev=
942     continue
943   fi
944
945   case $ac_option in
946   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947   *=)   ac_optarg= ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   case $ac_dashdash$ac_option in
952   --)
953     ac_dashdash=yes ;;
954
955   -bindir | --bindir | --bindi | --bind | --bin | --bi)
956     ac_prev=bindir ;;
957   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958     bindir=$ac_optarg ;;
959
960   -build | --build | --buil | --bui | --bu)
961     ac_prev=build_alias ;;
962   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963     build_alias=$ac_optarg ;;
964
965   -cache-file | --cache-file | --cache-fil | --cache-fi \
966   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967     ac_prev=cache_file ;;
968   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970     cache_file=$ac_optarg ;;
971
972   --config-cache | -C)
973     cache_file=config.cache ;;
974
975   -datadir | --datadir | --datadi | --datad)
976     ac_prev=datadir ;;
977   -datadir=* | --datadir=* | --datadi=* | --datad=*)
978     datadir=$ac_optarg ;;
979
980   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981   | --dataroo | --dataro | --datar)
982     ac_prev=datarootdir ;;
983   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985     datarootdir=$ac_optarg ;;
986
987   -disable-* | --disable-*)
988     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989     # Reject names that are not valid shell variable names.
990     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991       as_fn_error $? "invalid feature name: \`$ac_useropt'"
992     ac_useropt_orig=$ac_useropt
993     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994     case $ac_user_opts in
995       *"
996 "enable_$ac_useropt"
997 "*) ;;
998       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999          ac_unrecognized_sep=', ';;
1000     esac
1001     eval enable_$ac_useropt=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031   | --exec | --exe | --ex)
1032     ac_prev=exec_prefix ;;
1033   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035   | --exec=* | --exe=* | --ex=*)
1036     exec_prefix=$ac_optarg ;;
1037
1038   -gas | --gas | --ga | --g)
1039     # Obsolete; use --with-gas.
1040     with_gas=yes ;;
1041
1042   -help | --help | --hel | --he | -h)
1043     ac_init_help=long ;;
1044   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045     ac_init_help=recursive ;;
1046   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047     ac_init_help=short ;;
1048
1049   -host | --host | --hos | --ho)
1050     ac_prev=host_alias ;;
1051   -host=* | --host=* | --hos=* | --ho=*)
1052     host_alias=$ac_optarg ;;
1053
1054   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055     ac_prev=htmldir ;;
1056   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057   | --ht=*)
1058     htmldir=$ac_optarg ;;
1059
1060   -includedir | --includedir | --includedi | --included | --include \
1061   | --includ | --inclu | --incl | --inc)
1062     ac_prev=includedir ;;
1063   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064   | --includ=* | --inclu=* | --incl=* | --inc=*)
1065     includedir=$ac_optarg ;;
1066
1067   -infodir | --infodir | --infodi | --infod | --info | --inf)
1068     ac_prev=infodir ;;
1069   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070     infodir=$ac_optarg ;;
1071
1072   -libdir | --libdir | --libdi | --libd)
1073     ac_prev=libdir ;;
1074   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075     libdir=$ac_optarg ;;
1076
1077   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078   | --libexe | --libex | --libe)
1079     ac_prev=libexecdir ;;
1080   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081   | --libexe=* | --libex=* | --libe=*)
1082     libexecdir=$ac_optarg ;;
1083
1084   -localedir | --localedir | --localedi | --localed | --locale)
1085     ac_prev=localedir ;;
1086   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087     localedir=$ac_optarg ;;
1088
1089   -localstatedir | --localstatedir | --localstatedi | --localstated \
1090   | --localstate | --localstat | --localsta | --localst | --locals)
1091     ac_prev=localstatedir ;;
1092   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094     localstatedir=$ac_optarg ;;
1095
1096   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097     ac_prev=mandir ;;
1098   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099     mandir=$ac_optarg ;;
1100
1101   -nfp | --nfp | --nf)
1102     # Obsolete; use --without-fp.
1103     with_fp=no ;;
1104
1105   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106   | --no-cr | --no-c | -n)
1107     no_create=yes ;;
1108
1109   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111     no_recursion=yes ;;
1112
1113   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115   | --oldin | --oldi | --old | --ol | --o)
1116     ac_prev=oldincludedir ;;
1117   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120     oldincludedir=$ac_optarg ;;
1121
1122   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123     ac_prev=prefix ;;
1124   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125     prefix=$ac_optarg ;;
1126
1127   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128   | --program-pre | --program-pr | --program-p)
1129     ac_prev=program_prefix ;;
1130   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132     program_prefix=$ac_optarg ;;
1133
1134   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135   | --program-suf | --program-su | --program-s)
1136     ac_prev=program_suffix ;;
1137   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139     program_suffix=$ac_optarg ;;
1140
1141   -program-transform-name | --program-transform-name \
1142   | --program-transform-nam | --program-transform-na \
1143   | --program-transform-n | --program-transform- \
1144   | --program-transform | --program-transfor \
1145   | --program-transfo | --program-transf \
1146   | --program-trans | --program-tran \
1147   | --progr-tra | --program-tr | --program-t)
1148     ac_prev=program_transform_name ;;
1149   -program-transform-name=* | --program-transform-name=* \
1150   | --program-transform-nam=* | --program-transform-na=* \
1151   | --program-transform-n=* | --program-transform-=* \
1152   | --program-transform=* | --program-transfor=* \
1153   | --program-transfo=* | --program-transf=* \
1154   | --program-trans=* | --program-tran=* \
1155   | --progr-tra=* | --program-tr=* | --program-t=*)
1156     program_transform_name=$ac_optarg ;;
1157
1158   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159     ac_prev=pdfdir ;;
1160   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161     pdfdir=$ac_optarg ;;
1162
1163   -psdir | --psdir | --psdi | --psd | --ps)
1164     ac_prev=psdir ;;
1165   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166     psdir=$ac_optarg ;;
1167
1168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169   | -silent | --silent | --silen | --sile | --sil)
1170     silent=yes ;;
1171
1172   -runstatedir | --runstatedir | --runstatedi | --runstated \
1173   | --runstate | --runstat | --runsta | --runst | --runs \
1174   | --run | --ru | --r)
1175     ac_prev=runstatedir ;;
1176   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1177   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1178   | --run=* | --ru=* | --r=*)
1179     runstatedir=$ac_optarg ;;
1180
1181   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182     ac_prev=sbindir ;;
1183   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184   | --sbi=* | --sb=*)
1185     sbindir=$ac_optarg ;;
1186
1187   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189   | --sharedst | --shareds | --shared | --share | --shar \
1190   | --sha | --sh)
1191     ac_prev=sharedstatedir ;;
1192   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195   | --sha=* | --sh=*)
1196     sharedstatedir=$ac_optarg ;;
1197
1198   -site | --site | --sit)
1199     ac_prev=site ;;
1200   -site=* | --site=* | --sit=*)
1201     site=$ac_optarg ;;
1202
1203   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204     ac_prev=srcdir ;;
1205   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206     srcdir=$ac_optarg ;;
1207
1208   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209   | --syscon | --sysco | --sysc | --sys | --sy)
1210     ac_prev=sysconfdir ;;
1211   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213     sysconfdir=$ac_optarg ;;
1214
1215   -target | --target | --targe | --targ | --tar | --ta | --t)
1216     ac_prev=target_alias ;;
1217   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218     target_alias=$ac_optarg ;;
1219
1220   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221     verbose=yes ;;
1222
1223   -version | --version | --versio | --versi | --vers | -V)
1224     ac_init_version=: ;;
1225
1226   -with-* | --with-*)
1227     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230       as_fn_error $? "invalid package name: \`$ac_useropt'"
1231     ac_useropt_orig=$ac_useropt
1232     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233     case $ac_user_opts in
1234       *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238          ac_unrecognized_sep=', ';;
1239     esac
1240     eval with_$ac_useropt=\$ac_optarg ;;
1241
1242   -without-* | --without-*)
1243     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246       as_fn_error $? "invalid package name: \`$ac_useropt'"
1247     ac_useropt_orig=$ac_useropt
1248     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1249     case $ac_user_opts in
1250       *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254          ac_unrecognized_sep=', ';;
1255     esac
1256     eval with_$ac_useropt=no ;;
1257
1258   --x)
1259     # Obsolete; use --with-x.
1260     with_x=yes ;;
1261
1262   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263   | --x-incl | --x-inc | --x-in | --x-i)
1264     ac_prev=x_includes ;;
1265   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267     x_includes=$ac_optarg ;;
1268
1269   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271     ac_prev=x_libraries ;;
1272   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274     x_libraries=$ac_optarg ;;
1275
1276   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1277 Try \`$0 --help' for more information"
1278     ;;
1279
1280   *=*)
1281     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282     # Reject names that are not valid shell variable names.
1283     case $ac_envvar in #(
1284       '' | [0-9]* | *[!_$as_cr_alnum]* )
1285       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1286     esac
1287     eval $ac_envvar=\$ac_optarg
1288     export $ac_envvar ;;
1289
1290   *)
1291     # FIXME: should be removed in autoconf 3.0.
1292     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1293     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1295     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296     ;;
1297
1298   esac
1299 done
1300
1301 if test -n "$ac_prev"; then
1302   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303   as_fn_error $? "missing argument to $ac_option"
1304 fi
1305
1306 if test -n "$ac_unrecognized_opts"; then
1307   case $enable_option_checking in
1308     no) ;;
1309     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1310     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311   esac
1312 fi
1313
1314 # Check all directory arguments for consistency.
1315 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316                 datadir sysconfdir sharedstatedir localstatedir includedir \
1317                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318                 libdir localedir mandir runstatedir
1319 do
1320   eval ac_val=\$$ac_var
1321   # Remove trailing slashes.
1322   case $ac_val in
1323     */ )
1324       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325       eval $ac_var=\$ac_val;;
1326   esac
1327   # Be sure to have absolute directory names.
1328   case $ac_val in
1329     [\\/$]* | ?:[\\/]* )  continue;;
1330     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331   esac
1332   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344   if test "x$build_alias" = x; then
1345     cross_compiling=maybe
1346   elif test "x$build_alias" != "x$host_alias"; then
1347     cross_compiling=yes
1348   fi
1349 fi
1350
1351 ac_tool_prefix=
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354 test "$silent" = yes && exec 6>/dev/null
1355
1356
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360   as_fn_error $? "working directory cannot be determined"
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362   as_fn_error $? "pwd does not report name of working directory"
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367   ac_srcdir_defaulted=yes
1368   # Try the directory containing this script, then the parent directory.
1369   ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371          X"$as_myself" : 'X\(//\)[^/]' \| \
1372          X"$as_myself" : 'X\(//\)$' \| \
1373          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 printf "%s\n" X"$as_myself" |
1375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)[^/].*/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\).*/{
1388             s//\1/
1389             q
1390           }
1391           s/.*/./; q'`
1392   srcdir=$ac_confdir
1393   if test ! -r "$srcdir/$ac_unique_file"; then
1394     srcdir=..
1395   fi
1396 else
1397   ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406         pwd)`
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409   srcdir=.
1410 fi
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1414 case $srcdir in
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 esac
1417 for ac_var in $ac_precious_vars; do
1418   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_env_${ac_var}_value=\$${ac_var}
1420   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428   # Omit some internal or obsolete options to make the list less imposing.
1429   # This message is too long to be a string in the A/UX 3.1 sh.
1430   cat <<_ACEOF
1431 \`configure' configures libarchive 3.6.2 to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE.  See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441   -h, --help              display this help and exit
1442       --help=short        display options specific to this package
1443       --help=recursive    display the short help of all the included packages
1444   -V, --version           display version information and exit
1445   -q, --quiet, --silent   do not print \`checking ...' messages
1446       --cache-file=FILE   cache test results in FILE [disabled]
1447   -C, --config-cache      alias for \`--cache-file=config.cache'
1448   -n, --no-create         do not create output files
1449       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452   --prefix=PREFIX         install architecture-independent files in PREFIX
1453                           [$ac_default_prefix]
1454   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1455                           [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465   --bindir=DIR            user executables [EPREFIX/bin]
1466   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1467   --libexecdir=DIR        program executables [EPREFIX/libexec]
1468   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1469   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1470   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1471   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1472   --libdir=DIR            object code libraries [EPREFIX/lib]
1473   --includedir=DIR        C header files [PREFIX/include]
1474   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR           info documentation [DATAROOTDIR/info]
1478   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR            man documentation [DATAROOTDIR/man]
1480   --docdir=DIR            documentation root [DATAROOTDIR/doc/libarchive]
1481   --htmldir=DIR           html documentation [DOCDIR]
1482   --dvidir=DIR            dvi documentation [DOCDIR]
1483   --pdfdir=DIR            pdf documentation [DOCDIR]
1484   --psdir=DIR             ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501   case $ac_init_help in
1502      short | recursive ) echo "Configuration of libarchive 3.6.2:";;
1503    esac
1504   cat <<\_ACEOF
1505
1506 Optional Features:
1507   --disable-option-checking  ignore unrecognized --enable/--with options
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-silent-rules   less verbose build output (undo: "make V=1")
1511   --disable-silent-rules  verbose build output (undo: "make V=0")
1512   --disable-maintainer-mode
1513                           disable make rules and dependencies not useful (and
1514                           sometimes confusing) to the casual installer
1515   --enable-dependency-tracking
1516                           do not reject slow dependency extractors
1517   --disable-dependency-tracking
1518                           speeds up one-time build
1519   --enable-shared[=PKGS]  build shared libraries [default=yes]
1520   --enable-static[=PKGS]  build static libraries [default=yes]
1521   --enable-fast-install[=PKGS]
1522                           optimize for fast installation [default=yes]
1523   --disable-libtool-lock  avoid locking (might break parallel builds)
1524   --enable-bsdtar         enable build of bsdtar (default)
1525           --enable-bsdtar=static  force static build of bsdtar
1526           --enable-bsdtar=shared  force dynamic build of bsdtar
1527   --disable-bsdtar        disable build of bsdtar
1528   --enable-bsdcat         enable build of bsdcat (default)
1529           --enable-bsdcat=static  force static build of bsdcat
1530           --enable-bsdcat=shared  force dynamic build of bsdcat
1531   --disable-bsdcat        disable build of bsdcat
1532   --enable-bsdcpio        enable build of bsdcpio (default)
1533           --enable-bsdcpio=static static build of bsdcpio
1534           --enable-bsdcpio=shared dynamic build of bsdcpio
1535   --disable-bsdcpio       disable build of bsdcpio
1536   --disable-rpath         do not hardcode runtime library paths
1537   --enable-posix-regex-lib
1538                           choose what library to use for POSIX regular
1539                           expression support (default: auto)
1540     --enable-posix-regex-lib=libc
1541                           use libc POSIX regular expression support
1542     --enable-posix-regex-lib=libregex
1543                           use libregex POSIX regular expression support
1544     --enable-posix-regex-lib=libpcreposix
1545                           use libpcreposix POSIX regular expression support
1546     --disable-posix-regex-lib
1547                           don't enable POSIX regular expression support
1548   --disable-xattr         Disable Extended Attributes support (default: check)
1549   --disable-acl           Disable ACL support (default: check)
1550   --disable-largefile     omit support for large files
1551
1552 Optional Packages:
1553   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1554   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1555   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1556                           both]
1557   --with-aix-soname=aix|svr4|both
1558                           shared library versioning (aka "SONAME") variant to
1559                           provide on AIX, [default=aix].
1560   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1562                           compiler's sysroot if not specified).
1563   --without-zlib          Don't build support for gzip through zlib
1564   --without-bz2lib        Don't build support for bzip2 through bz2lib
1565   --without-libb2         Don't build support for BLAKE2 through libb2
1566   --without-iconv         Don't try to link against iconv
1567   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1568   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1569   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1570   --without-lz4           Don't build support for lz4 through liblz4
1571   --without-zstd          Don't build support for zstd through libzstd
1572   --without-lzma          Don't build support for xz through lzma
1573   --with-lzo2             Build with LZO support from liblzo2
1574   --without-cng           Don't build support of CNG(Crypto Next Generation)
1575   --with-mbedtls          Build with crypto support from mbed TLS
1576   --with-nettle           Build with crypto support from Nettle
1577   --without-openssl       Don't build support for mtree and xar hashes through
1578                           openssl
1579   --without-xml2          Don't build support for xar through libxml2
1580   --without-expat         Don't build support for xar through expat
1581
1582 Some influential environment variables:
1583   CC          C compiler command
1584   CFLAGS      C compiler flags
1585   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586               nonstandard directory <lib dir>
1587   LIBS        libraries to pass to the linker, e.g. -l<library>
1588   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589               you have headers in a nonstandard directory <include dir>
1590   CPP         C preprocessor
1591   LT_SYS_LIBRARY_PATH
1592               User-defined run-time library search path.
1593   PKG_CONFIG  path to pkg-config utility
1594   PKG_CONFIG_PATH
1595               directories to add to pkg-config's search path
1596   PKG_CONFIG_LIBDIR
1597               path overriding pkg-config's built-in search path
1598   LIBXML2_PC_CFLAGS
1599               C compiler flags for LIBXML2_PC, overriding pkg-config
1600   LIBXML2_PC_LIBS
1601               linker flags for LIBXML2_PC, overriding pkg-config
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to <libarchive-discuss@googlegroups.com>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612   # If there are subdirs, report their specific --help.
1613   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614     test -d "$ac_dir" ||
1615       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616       continue
1617     ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623   # A ".." for each directory in $ac_dir_suffix.
1624   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625   case $ac_top_builddir_sub in
1626   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628   esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636   .)  # We are building in place.
1637     ac_srcdir=.
1638     ac_top_srcdir=$ac_top_builddir_sub
1639     ac_abs_top_srcdir=$ac_pwd ;;
1640   [\\/]* | ?:[\\/]* )  # Absolute name.
1641     ac_srcdir=$srcdir$ac_dir_suffix;
1642     ac_top_srcdir=$srcdir
1643     ac_abs_top_srcdir=$srcdir ;;
1644   *) # Relative name.
1645     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646     ac_top_srcdir=$ac_top_build_prefix$srcdir
1647     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651     cd "$ac_dir" || { ac_status=$?; continue; }
1652     # Check for configure.gnu first; this name is used for a wrapper for
1653     # Metaconfig's "Configure" on case-insensitive file systems.
1654     if test -f "$ac_srcdir/configure.gnu"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657     elif test -f "$ac_srcdir/configure"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure" --help=recursive
1660     else
1661       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662     fi || ac_status=$?
1663     cd "$ac_pwd" || { ac_status=$?; break; }
1664   done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669   cat <<\_ACEOF
1670 libarchive configure 3.6.2
1671 generated by GNU Autoconf 2.71
1672
1673 Copyright (C) 2021 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677   exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   rm -f conftest.$ac_objext conftest.beam
1691   if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698   (eval "$ac_compile") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && {
1707          test -z "$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        } && test -s conftest.$ac_objext
1710 then :
1711   ac_retval=0
1712 else $as_nop
1713   printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_cpp ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 printf "%s\n" "$ac_try_echo"; } >&5
1736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737   ac_status=$?
1738   if test -s conftest.err; then
1739     grep -v '^ *+' conftest.err >conftest.er1
1740     cat conftest.er1 >&5
1741     mv -f conftest.er1 conftest.err
1742   fi
1743   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744   test $ac_status = 0; } > conftest.i && {
1745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746          test ! -s conftest.err
1747        }
1748 then :
1749   ac_retval=0
1750 else $as_nop
1751   printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754     ac_retval=1
1755 fi
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_cpp
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 printf %s "checking for $2... " >&6; }
1770 if eval test \${$3+y}
1771 then :
1772   printf %s "(cached) " >&6
1773 else $as_nop
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"
1780 then :
1781   eval "$3=yes"
1782 else $as_nop
1783   eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1801   if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804   *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 printf "%s\n" "$ac_try_echo"; } >&5
1808   (eval "$ac_link") 2>conftest.err
1809   ac_status=$?
1810   if test -s conftest.err; then
1811     grep -v '^ *+' conftest.err >conftest.er1
1812     cat conftest.er1 >&5
1813     mv -f conftest.er1 conftest.err
1814   fi
1815   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816   test $ac_status = 0; } && {
1817          test -z "$ac_c_werror_flag" ||
1818          test ! -s conftest.err
1819        } && test -s conftest$ac_exeext && {
1820          test "$cross_compiling" = yes ||
1821          test -x conftest$ac_exeext
1822        }
1823 then :
1824   ac_retval=0
1825 else $as_nop
1826   printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833   # interfere with the next link command; also delete a directory that is
1834   # left behind by Apple's compiler.  We do this before executing the actions.
1835   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_link
1840
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 printf %s "checking for $2... " >&6; }
1849 if eval test \${$3+y}
1850 then :
1851   printf %s "(cached) " >&6
1852 else $as_nop
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1857 #define $2 innocuous_$2
1858
1859 /* System header to define __stub macros and hopefully few prototypes,
1860    which can conflict with char $2 (); below.  */
1861
1862 #include <limits.h>
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866    Use char because int might match the return type of a GCC
1867    builtin and then its argument prototype would still apply.  */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873     to always fail with ENOSYS.  Some functions are actually named
1874     something starting with __ and the normal name is an alias.  */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main (void)
1881 {
1882 return $2 ();
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"
1888 then :
1889   eval "$3=yes"
1890 else $as_nop
1891   eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894     conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf "%s\n" "$ac_res" >&6; }
1899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1906 # executables *can* be run.
1907 ac_fn_c_try_run ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917   (eval "$ac_link") 2>&5
1918   ac_status=$?
1919   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1928   ac_status=$?
1929   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; }; }
1931 then :
1932   ac_retval=0
1933 else $as_nop
1934   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1935        printf "%s\n" "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938        ac_retval=$ac_status
1939 fi
1940   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942   as_fn_set_status $ac_retval
1943
1944 } # ac_fn_c_try_run
1945
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 printf %s "checking for $2... " >&6; }
1955 if eval test \${$3+y}
1956 then :
1957   printf %s "(cached) " >&6
1958 else $as_nop
1959   eval "$3=no"
1960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h.  */
1962 $4
1963 int
1964 main (void)
1965 {
1966 if (sizeof ($2))
1967          return 0;
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"
1973 then :
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main (void)
1979 {
1980 if (sizeof (($2)))
1981             return 0;
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"
1987 then :
1988
1989 else $as_nop
1990   eval "$3=yes"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 printf "%s\n" "$ac_res" >&6; }
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_type
2002
2003 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004 # ----------------------------------------------------
2005 # Tries to find if the field MEMBER exists in type AGGR, after including
2006 # INCLUDES, setting cache variable VAR accordingly.
2007 ac_fn_c_check_member ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011 printf %s "checking for $2.$3... " >&6; }
2012 if eval test \${$4+y}
2013 then :
2014   printf %s "(cached) " >&6
2015 else $as_nop
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $5
2019 int
2020 main (void)
2021 {
2022 static $2 ac_aggr;
2023 if (ac_aggr.$3)
2024 return 0;
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"
2030 then :
2031   eval "$4=yes"
2032 else $as_nop
2033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h.  */
2035 $5
2036 int
2037 main (void)
2038 {
2039 static $2 ac_aggr;
2040 if (sizeof ac_aggr.$3)
2041 return 0;
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"
2047 then :
2048   eval "$4=yes"
2049 else $as_nop
2050   eval "$4=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$4
2057                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 printf "%s\n" "$ac_res" >&6; }
2059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_member
2062
2063 # ac_fn_c_find_intX_t LINENO BITS VAR
2064 # -----------------------------------
2065 # Finds a signed integer type with width BITS, setting cache variable VAR
2066 # accordingly.
2067 ac_fn_c_find_intX_t ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2071 printf %s "checking for int$2_t... " >&6; }
2072 if eval test \${$3+y}
2073 then :
2074   printf %s "(cached) " >&6
2075 else $as_nop
2076   eval "$3=no"
2077      # Order is important - never check a type that is potentially smaller
2078      # than half of the expected target width.
2079      for ac_type in int$2_t 'int' 'long int' \
2080          'long long int' 'short int' 'signed char'; do
2081        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $ac_includes_default
2084              enum { N = $2 / 2 - 1 };
2085 int
2086 main (void)
2087 {
2088 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"
2097 then :
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $ac_includes_default
2101                 enum { N = $2 / 2 - 1 };
2102 int
2103 main (void)
2104 {
2105 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2106                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2107 test_array [0] = 0;
2108 return test_array [0];
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"
2115 then :
2116
2117 else $as_nop
2118   case $ac_type in #(
2119   int$2_t) :
2120     eval "$3=yes" ;; #(
2121   *) :
2122     eval "$3=\$ac_type" ;;
2123 esac
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128        if eval test \"x\$"$3"\" = x"no"
2129 then :
2130
2131 else $as_nop
2132   break
2133 fi
2134      done
2135 fi
2136 eval ac_res=\$$3
2137                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 printf "%s\n" "$ac_res" >&6; }
2139   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141 } # ac_fn_c_find_intX_t
2142
2143 # ac_fn_c_find_uintX_t LINENO BITS VAR
2144 # ------------------------------------
2145 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2146 # accordingly.
2147 ac_fn_c_find_uintX_t ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2151 printf %s "checking for uint$2_t... " >&6; }
2152 if eval test \${$3+y}
2153 then :
2154   printf %s "(cached) " >&6
2155 else $as_nop
2156   eval "$3=no"
2157      # Order is important - never check a type that is potentially smaller
2158      # than half of the expected target width.
2159      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2160          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2161        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $ac_includes_default
2164 int
2165 main (void)
2166 {
2167 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2168 test_array [0] = 0;
2169 return test_array [0];
2170
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"
2176 then :
2177   case $ac_type in #(
2178   uint$2_t) :
2179     eval "$3=yes" ;; #(
2180   *) :
2181     eval "$3=\$ac_type" ;;
2182 esac
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2185        if eval test \"x\$"$3"\" = x"no"
2186 then :
2187
2188 else $as_nop
2189   break
2190 fi
2191      done
2192 fi
2193 eval ac_res=\$$3
2194                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 printf "%s\n" "$ac_res" >&6; }
2196   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_find_uintX_t
2199
2200 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2201 # ------------------------------------------------------------------
2202 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2203 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2204 ac_fn_check_decl ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   as_decl_name=`echo $2|sed 's/ *(.*//'`
2208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2209 printf %s "checking whether $as_decl_name is declared... " >&6; }
2210 if eval test \${$3+y}
2211 then :
2212   printf %s "(cached) " >&6
2213 else $as_nop
2214   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215   eval ac_save_FLAGS=\$$6
2216   as_fn_append $6 " $5"
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main (void)
2222 {
2223 #ifndef $as_decl_name
2224 #ifdef __cplusplus
2225   (void) $as_decl_use;
2226 #else
2227   (void) $as_decl_name;
2228 #endif
2229 #endif
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"
2236 then :
2237   eval "$3=yes"
2238 else $as_nop
2239   eval "$3=no"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2242   eval $6=\$ac_save_FLAGS
2243
2244 fi
2245 eval ac_res=\$$3
2246                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 printf "%s\n" "$ac_res" >&6; }
2248   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250 } # ac_fn_check_decl
2251
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2256 # computed
2257 ac_fn_c_compute_int ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   if test "$cross_compiling" = yes; then
2261     # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h.  */
2264 $4
2265 int
2266 main (void)
2267 {
2268 static int test_array [1 - 2 * !(($2) >= 0)];
2269 test_array [0] = 0;
2270 return test_array [0];
2271
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"
2277 then :
2278   ac_lo=0 ac_mid=0
2279   while :; do
2280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main (void)
2285 {
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"
2295 then :
2296   ac_hi=$ac_mid; break
2297 else $as_nop
2298   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2299                         if test $ac_lo -le $ac_mid; then
2300                           ac_lo= ac_hi=
2301                           break
2302                         fi
2303                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2306   done
2307 else $as_nop
2308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h.  */
2310 $4
2311 int
2312 main (void)
2313 {
2314 static int test_array [1 - 2 * !(($2) < 0)];
2315 test_array [0] = 0;
2316 return test_array [0];
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"
2323 then :
2324   ac_hi=-1 ac_mid=-1
2325   while :; do
2326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 $4
2329 int
2330 main (void)
2331 {
2332 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2333 test_array [0] = 0;
2334 return test_array [0];
2335
2336   ;
2337   return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"
2341 then :
2342   ac_lo=$ac_mid; break
2343 else $as_nop
2344   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2345                         if test $ac_mid -le $ac_hi; then
2346                           ac_lo= ac_hi=
2347                           break
2348                         fi
2349                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2352   done
2353 else $as_nop
2354   ac_lo= ac_hi=
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 # Binary search between lo and hi bounds.
2360 while test "x$ac_lo" != "x$ac_hi"; do
2361   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 $4
2365 int
2366 main (void)
2367 {
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"
2377 then :
2378   ac_hi=$ac_mid
2379 else $as_nop
2380   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 done
2384 case $ac_lo in #((
2385 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2386 '') ac_retval=1 ;;
2387 esac
2388   else
2389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 $4
2392 static long int longval (void) { return $2; }
2393 static unsigned long int ulongval (void) { return $2; }
2394 #include <stdio.h>
2395 #include <stdlib.h>
2396 int
2397 main (void)
2398 {
2399
2400   FILE *f = fopen ("conftest.val", "w");
2401   if (! f)
2402     return 1;
2403   if (($2) < 0)
2404     {
2405       long int i = longval ();
2406       if (i != ($2))
2407         return 1;
2408       fprintf (f, "%ld", i);
2409     }
2410   else
2411     {
2412       unsigned long int i = ulongval ();
2413       if (i != ($2))
2414         return 1;
2415       fprintf (f, "%lu", i);
2416     }
2417   /* Do not output a trailing newline, as this causes \r\n confusion
2418      on some platforms.  */
2419   return ferror (f) || fclose (f) != 0;
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_run "$LINENO"
2426 then :
2427   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2428 else $as_nop
2429   ac_retval=1
2430 fi
2431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2432   conftest.$ac_objext conftest.beam conftest.$ac_ext
2433 rm -f conftest.val
2434
2435   fi
2436   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437   as_fn_set_status $ac_retval
2438
2439 } # ac_fn_c_compute_int
2440 ac_configure_args_raw=
2441 for ac_arg
2442 do
2443   case $ac_arg in
2444   *\'*)
2445     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2446   esac
2447   as_fn_append ac_configure_args_raw " '$ac_arg'"
2448 done
2449
2450 case $ac_configure_args_raw in
2451   *$as_nl*)
2452     ac_safe_unquote= ;;
2453   *)
2454     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2455     ac_unsafe_a="$ac_unsafe_z#~"
2456     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2457     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2458 esac
2459
2460 cat >config.log <<_ACEOF
2461 This file contains any messages produced by compilers while
2462 running configure, to aid debugging if configure makes a mistake.
2463
2464 It was created by libarchive $as_me 3.6.2, which was
2465 generated by GNU Autoconf 2.71.  Invocation command line was
2466
2467   $ $0$ac_configure_args_raw
2468
2469 _ACEOF
2470 exec 5>>config.log
2471 {
2472 cat <<_ASUNAME
2473 ## --------- ##
2474 ## Platform. ##
2475 ## --------- ##
2476
2477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2482
2483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2484 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2485
2486 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2487 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2489 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2490 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2491 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2492 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2493
2494 _ASUNAME
2495
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   case $as_dir in #(((
2501     '') as_dir=./ ;;
2502     */) ;;
2503     *) as_dir=$as_dir/ ;;
2504   esac
2505     printf "%s\n" "PATH: $as_dir"
2506   done
2507 IFS=$as_save_IFS
2508
2509 } >&5
2510
2511 cat >&5 <<_ACEOF
2512
2513
2514 ## ----------- ##
2515 ## Core tests. ##
2516 ## ----------- ##
2517
2518 _ACEOF
2519
2520
2521 # Keep a trace of the command line.
2522 # Strip out --no-create and --no-recursion so they do not pile up.
2523 # Strip out --silent because we don't want to record it for future runs.
2524 # Also quote any args containing shell meta-characters.
2525 # Make two passes to allow for proper duplicate-argument suppression.
2526 ac_configure_args=
2527 ac_configure_args0=
2528 ac_configure_args1=
2529 ac_must_keep_next=false
2530 for ac_pass in 1 2
2531 do
2532   for ac_arg
2533   do
2534     case $ac_arg in
2535     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2536     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2537     | -silent | --silent | --silen | --sile | --sil)
2538       continue ;;
2539     *\'*)
2540       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2541     esac
2542     case $ac_pass in
2543     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2544     2)
2545       as_fn_append ac_configure_args1 " '$ac_arg'"
2546       if test $ac_must_keep_next = true; then
2547         ac_must_keep_next=false # Got value, back to normal.
2548       else
2549         case $ac_arg in
2550           *=* | --config-cache | -C | -disable-* | --disable-* \
2551           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2552           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2553           | -with-* | --with-* | -without-* | --without-* | --x)
2554             case "$ac_configure_args0 " in
2555               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2556             esac
2557             ;;
2558           -* ) ac_must_keep_next=true ;;
2559         esac
2560       fi
2561       as_fn_append ac_configure_args " '$ac_arg'"
2562       ;;
2563     esac
2564   done
2565 done
2566 { ac_configure_args0=; unset ac_configure_args0;}
2567 { ac_configure_args1=; unset ac_configure_args1;}
2568
2569 # When interrupted or exit'd, cleanup temporary files, and complete
2570 # config.log.  We remove comments because anyway the quotes in there
2571 # would cause problems or look ugly.
2572 # WARNING: Use '\'' to represent an apostrophe within the trap.
2573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2574 trap 'exit_status=$?
2575   # Sanitize IFS.
2576   IFS=" ""      $as_nl"
2577   # Save into config.log some information that might help in debugging.
2578   {
2579     echo
2580
2581     printf "%s\n" "## ---------------- ##
2582 ## Cache variables. ##
2583 ## ---------------- ##"
2584     echo
2585     # The following way of writing the cache mishandles newlines in values,
2586 (
2587   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2588     eval ac_val=\$$ac_var
2589     case $ac_val in #(
2590     *${as_nl}*)
2591       case $ac_var in #(
2592       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2593 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2594       esac
2595       case $ac_var in #(
2596       _ | IFS | as_nl) ;; #(
2597       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2598       *) { eval $ac_var=; unset $ac_var;} ;;
2599       esac ;;
2600     esac
2601   done
2602   (set) 2>&1 |
2603     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2604     *${as_nl}ac_space=\ *)
2605       sed -n \
2606         "s/'\''/'\''\\\\'\'''\''/g;
2607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2608       ;; #(
2609     *)
2610       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2611       ;;
2612     esac |
2613     sort
2614 )
2615     echo
2616
2617     printf "%s\n" "## ----------------- ##
2618 ## Output variables. ##
2619 ## ----------------- ##"
2620     echo
2621     for ac_var in $ac_subst_vars
2622     do
2623       eval ac_val=\$$ac_var
2624       case $ac_val in
2625       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626       esac
2627       printf "%s\n" "$ac_var='\''$ac_val'\''"
2628     done | sort
2629     echo
2630
2631     if test -n "$ac_subst_files"; then
2632       printf "%s\n" "## ------------------- ##
2633 ## File substitutions. ##
2634 ## ------------------- ##"
2635       echo
2636       for ac_var in $ac_subst_files
2637       do
2638         eval ac_val=\$$ac_var
2639         case $ac_val in
2640         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641         esac
2642         printf "%s\n" "$ac_var='\''$ac_val'\''"
2643       done | sort
2644       echo
2645     fi
2646
2647     if test -s confdefs.h; then
2648       printf "%s\n" "## ----------- ##
2649 ## confdefs.h. ##
2650 ## ----------- ##"
2651       echo
2652       cat confdefs.h
2653       echo
2654     fi
2655     test "$ac_signal" != 0 &&
2656       printf "%s\n" "$as_me: caught signal $ac_signal"
2657     printf "%s\n" "$as_me: exit $exit_status"
2658   } >&5
2659   rm -f core *.core core.conftest.* &&
2660     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2661     exit $exit_status
2662 ' 0
2663 for ac_signal in 1 2 13 15; do
2664   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2665 done
2666 ac_signal=0
2667
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2670
2671 printf "%s\n" "/* confdefs.h */" > confdefs.h
2672
2673 # Predefined preprocessor variables.
2674
2675 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2676
2677 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2678
2679 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2680
2681 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2682
2683 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2684
2685 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2686
2687
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2690 if test -n "$CONFIG_SITE"; then
2691   ac_site_files="$CONFIG_SITE"
2692 elif test "x$prefix" != xNONE; then
2693   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2694 else
2695   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2696 fi
2697
2698 for ac_site_file in $ac_site_files
2699 do
2700   case $ac_site_file in #(
2701   */*) :
2702      ;; #(
2703   *) :
2704     ac_site_file=./$ac_site_file ;;
2705 esac
2706   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2707     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2708 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2709     sed 's/^/| /' "$ac_site_file" >&5
2710     . "$ac_site_file" \
2711       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2713 as_fn_error $? "failed to load site script $ac_site_file
2714 See \`config.log' for more details" "$LINENO" 5; }
2715   fi
2716 done
2717
2718 if test -r "$cache_file"; then
2719   # Some versions of bash will fail to source /dev/null (special files
2720   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2721   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2722     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2724     case $cache_file in
2725       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2726       *)                      . "./$cache_file";;
2727     esac
2728   fi
2729 else
2730   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2732   >$cache_file
2733 fi
2734
2735 # Test code for whether the C compiler supports C89 (global declarations)
2736 ac_c_conftest_c89_globals='
2737 /* Does the compiler advertise C89 conformance?
2738    Do not test the value of __STDC__, because some compilers set it to 0
2739    while being otherwise adequately conformant. */
2740 #if !defined __STDC__
2741 # error "Compiler does not advertise C89 conformance"
2742 #endif
2743
2744 #include <stddef.h>
2745 #include <stdarg.h>
2746 struct stat;
2747 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2748 struct buf { int x; };
2749 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2750 static char *e (p, i)
2751      char **p;
2752      int i;
2753 {
2754   return p[i];
2755 }
2756 static char *f (char * (*g) (char **, int), char **p, ...)
2757 {
2758   char *s;
2759   va_list v;
2760   va_start (v,p);
2761   s = g (p, va_arg (v,int));
2762   va_end (v);
2763   return s;
2764 }
2765
2766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2767    function prototypes and stuff, but not \xHH hex character constants.
2768    These do not provoke an error unfortunately, instead are silently treated
2769    as an "x".  The following induces an error, until -std is added to get
2770    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2771    array size at least.  It is necessary to write \x00 == 0 to get something
2772    that is true only with -std.  */
2773 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2774
2775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2776    inside strings and character constants.  */
2777 #define FOO(x) '\''x'\''
2778 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2779
2780 int test (int i, double x);
2781 struct s1 {int (*f) (int a);};
2782 struct s2 {int (*f) (double a);};
2783 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2784                int, int);'
2785
2786 # Test code for whether the C compiler supports C89 (body of main).
2787 ac_c_conftest_c89_main='
2788 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2789 '
2790
2791 # Test code for whether the C compiler supports C99 (global declarations)
2792 ac_c_conftest_c99_globals='
2793 // Does the compiler advertise C99 conformance?
2794 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2795 # error "Compiler does not advertise C99 conformance"
2796 #endif
2797
2798 #include <stdbool.h>
2799 extern int puts (const char *);
2800 extern int printf (const char *, ...);
2801 extern int dprintf (int, const char *, ...);
2802 extern void *malloc (size_t);
2803
2804 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2805 // dprintf is used instead of fprintf to avoid needing to declare
2806 // FILE and stderr.
2807 #define debug(...) dprintf (2, __VA_ARGS__)
2808 #define showlist(...) puts (#__VA_ARGS__)
2809 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2810 static void
2811 test_varargs_macros (void)
2812 {
2813   int x = 1234;
2814   int y = 5678;
2815   debug ("Flag");
2816   debug ("X = %d\n", x);
2817   showlist (The first, second, and third items.);
2818   report (x>y, "x is %d but y is %d", x, y);
2819 }
2820
2821 // Check long long types.
2822 #define BIG64 18446744073709551615ull
2823 #define BIG32 4294967295ul
2824 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2825 #if !BIG_OK
2826   #error "your preprocessor is broken"
2827 #endif
2828 #if BIG_OK
2829 #else
2830   #error "your preprocessor is broken"
2831 #endif
2832 static long long int bignum = -9223372036854775807LL;
2833 static unsigned long long int ubignum = BIG64;
2834
2835 struct incomplete_array
2836 {
2837   int datasize;
2838   double data[];
2839 };
2840
2841 struct named_init {
2842   int number;
2843   const wchar_t *name;
2844   double average;
2845 };
2846
2847 typedef const char *ccp;
2848
2849 static inline int
2850 test_restrict (ccp restrict text)
2851 {
2852   // See if C++-style comments work.
2853   // Iterate through items via the restricted pointer.
2854   // Also check for declarations in for loops.
2855   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2856     continue;
2857   return 0;
2858 }
2859
2860 // Check varargs and va_copy.
2861 static bool
2862 test_varargs (const char *format, ...)
2863 {
2864   va_list args;
2865   va_start (args, format);
2866   va_list args_copy;
2867   va_copy (args_copy, args);
2868
2869   const char *str = "";
2870   int number = 0;
2871   float fnumber = 0;
2872
2873   while (*format)
2874     {
2875       switch (*format++)
2876         {
2877         case '\''s'\'': // string
2878           str = va_arg (args_copy, const char *);
2879           break;
2880         case '\''d'\'': // int
2881           number = va_arg (args_copy, int);
2882           break;
2883         case '\''f'\'': // float
2884           fnumber = va_arg (args_copy, double);
2885           break;
2886         default:
2887           break;
2888         }
2889     }
2890   va_end (args_copy);
2891   va_end (args);
2892
2893   return *str && number && fnumber;
2894 }
2895 '
2896
2897 # Test code for whether the C compiler supports C99 (body of main).
2898 ac_c_conftest_c99_main='
2899   // Check bool.
2900   _Bool success = false;
2901   success |= (argc != 0);
2902
2903   // Check restrict.
2904   if (test_restrict ("String literal") == 0)
2905     success = true;
2906   char *restrict newvar = "Another string";
2907
2908   // Check varargs.
2909   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2910   test_varargs_macros ();
2911
2912   // Check flexible array members.
2913   struct incomplete_array *ia =
2914     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2915   ia->datasize = 10;
2916   for (int i = 0; i < ia->datasize; ++i)
2917     ia->data[i] = i * 1.234;
2918
2919   // Check named initializers.
2920   struct named_init ni = {
2921     .number = 34,
2922     .name = L"Test wide string",
2923     .average = 543.34343,
2924   };
2925
2926   ni.number = 58;
2927
2928   int dynamic_array[ni.number];
2929   dynamic_array[0] = argv[0][0];
2930   dynamic_array[ni.number - 1] = 543;
2931
2932   // work around unused variable warnings
2933   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2934          || dynamic_array[ni.number - 1] != 543);
2935 '
2936
2937 # Test code for whether the C compiler supports C11 (global declarations)
2938 ac_c_conftest_c11_globals='
2939 // Does the compiler advertise C11 conformance?
2940 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2941 # error "Compiler does not advertise C11 conformance"
2942 #endif
2943
2944 // Check _Alignas.
2945 char _Alignas (double) aligned_as_double;
2946 char _Alignas (0) no_special_alignment;
2947 extern char aligned_as_int;
2948 char _Alignas (0) _Alignas (int) aligned_as_int;
2949
2950 // Check _Alignof.
2951 enum
2952 {
2953   int_alignment = _Alignof (int),
2954   int_array_alignment = _Alignof (int[100]),
2955   char_alignment = _Alignof (char)
2956 };
2957 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2958
2959 // Check _Noreturn.
2960 int _Noreturn does_not_return (void) { for (;;) continue; }
2961
2962 // Check _Static_assert.
2963 struct test_static_assert
2964 {
2965   int x;
2966   _Static_assert (sizeof (int) <= sizeof (long int),
2967                   "_Static_assert does not work in struct");
2968   long int y;
2969 };
2970
2971 // Check UTF-8 literals.
2972 #define u8 syntax error!
2973 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2974
2975 // Check duplicate typedefs.
2976 typedef long *long_ptr;
2977 typedef long int *long_ptr;
2978 typedef long_ptr long_ptr;
2979
2980 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2981 struct anonymous
2982 {
2983   union {
2984     struct { int i; int j; };
2985     struct { int k; long int l; } w;
2986   };
2987   int m;
2988 } v1;
2989 '
2990
2991 # Test code for whether the C compiler supports C11 (body of main).
2992 ac_c_conftest_c11_main='
2993   _Static_assert ((offsetof (struct anonymous, i)
2994                    == offsetof (struct anonymous, w.k)),
2995                   "Anonymous union alignment botch");
2996   v1.i = 2;
2997   v1.w.k = 5;
2998   ok |= v1.i != 5;
2999 '
3000
3001 # Test code for whether the C compiler supports C11 (complete).
3002 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3003 ${ac_c_conftest_c99_globals}
3004 ${ac_c_conftest_c11_globals}
3005
3006 int
3007 main (int argc, char **argv)
3008 {
3009   int ok = 0;
3010   ${ac_c_conftest_c89_main}
3011   ${ac_c_conftest_c99_main}
3012   ${ac_c_conftest_c11_main}
3013   return ok;
3014 }
3015 "
3016
3017 # Test code for whether the C compiler supports C99 (complete).
3018 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3019 ${ac_c_conftest_c99_globals}
3020
3021 int
3022 main (int argc, char **argv)
3023 {
3024   int ok = 0;
3025   ${ac_c_conftest_c89_main}
3026   ${ac_c_conftest_c99_main}
3027   return ok;
3028 }
3029 "
3030
3031 # Test code for whether the C compiler supports C89 (complete).
3032 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3033
3034 int
3035 main (int argc, char **argv)
3036 {
3037   int ok = 0;
3038   ${ac_c_conftest_c89_main}
3039   return ok;
3040 }
3041 "
3042
3043 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3044 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3045 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3046 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3047 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3048 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3049 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3050 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3051 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3052 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3053 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3054 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3055 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3056
3057 # Auxiliary files required by this configure script.
3058 ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
3059
3060 # Locations in which to look for auxiliary files.
3061 ac_aux_dir_candidates="${srcdir}/build/autoconf"
3062
3063 # Search for a directory containing all of the required auxiliary files,
3064 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3065 # If we don't find one directory that contains all the files we need,
3066 # we report the set of missing files from the *first* directory in
3067 # $ac_aux_dir_candidates and give up.
3068 ac_missing_aux_files=""
3069 ac_first_candidate=:
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 as_found=false
3073 for as_dir in $ac_aux_dir_candidates
3074 do
3075   IFS=$as_save_IFS
3076   case $as_dir in #(((
3077     '') as_dir=./ ;;
3078     */) ;;
3079     *) as_dir=$as_dir/ ;;
3080   esac
3081   as_found=:
3082
3083   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3084   ac_aux_dir_found=yes
3085   ac_install_sh=
3086   for ac_aux in $ac_aux_files
3087   do
3088     # As a special case, if "install-sh" is required, that requirement
3089     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3090     # and $ac_install_sh is set appropriately for whichever one is found.
3091     if test x"$ac_aux" = x"install-sh"
3092     then
3093       if test -f "${as_dir}install-sh"; then
3094         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3095         ac_install_sh="${as_dir}install-sh -c"
3096       elif test -f "${as_dir}install.sh"; then
3097         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3098         ac_install_sh="${as_dir}install.sh -c"
3099       elif test -f "${as_dir}shtool"; then
3100         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3101         ac_install_sh="${as_dir}shtool install -c"
3102       else
3103         ac_aux_dir_found=no
3104         if $ac_first_candidate; then
3105           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3106         else
3107           break
3108         fi
3109       fi
3110     else
3111       if test -f "${as_dir}${ac_aux}"; then
3112         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3113       else
3114         ac_aux_dir_found=no
3115         if $ac_first_candidate; then
3116           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3117         else
3118           break
3119         fi
3120       fi
3121     fi
3122   done
3123   if test "$ac_aux_dir_found" = yes; then
3124     ac_aux_dir="$as_dir"
3125     break
3126   fi
3127   ac_first_candidate=false
3128
3129   as_found=false
3130 done
3131 IFS=$as_save_IFS
3132 if $as_found
3133 then :
3134
3135 else $as_nop
3136   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3137 fi
3138
3139
3140 # These three variables are undocumented and unsupported,
3141 # and are intended to be withdrawn in a future Autoconf release.
3142 # They can cause serious problems if a builder's source tree is in a directory
3143 # whose full name contains unusual characters.
3144 if test -f "${ac_aux_dir}config.guess"; then
3145   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3146 fi
3147 if test -f "${ac_aux_dir}config.sub"; then
3148   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3149 fi
3150 if test -f "$ac_aux_dir/configure"; then
3151   ac_configure="$SHELL ${ac_aux_dir}configure"
3152 fi
3153
3154 # Check that the precious variables saved in the cache have kept the same
3155 # value.
3156 ac_cache_corrupted=false
3157 for ac_var in $ac_precious_vars; do
3158   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3159   eval ac_new_set=\$ac_env_${ac_var}_set
3160   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3161   eval ac_new_val=\$ac_env_${ac_var}_value
3162   case $ac_old_set,$ac_new_set in
3163     set,)
3164       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3165 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3166       ac_cache_corrupted=: ;;
3167     ,set)
3168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3169 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3170       ac_cache_corrupted=: ;;
3171     ,);;
3172     *)
3173       if test "x$ac_old_val" != "x$ac_new_val"; then
3174         # differences in whitespace do not lead to failure.
3175         ac_old_val_w=`echo x $ac_old_val`
3176         ac_new_val_w=`echo x $ac_new_val`
3177         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3178           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3179 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3180           ac_cache_corrupted=:
3181         else
3182           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3183 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3184           eval $ac_var=\$ac_old_val
3185         fi
3186         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3187 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3188         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3189 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3190       fi;;
3191   esac
3192   # Pass precious variables to config.status.
3193   if test "$ac_new_set" = set; then
3194     case $ac_new_val in
3195     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3196     *) ac_arg=$ac_var=$ac_new_val ;;
3197     esac
3198     case " $ac_configure_args " in
3199       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3200       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3201     esac
3202   fi
3203 done
3204 if $ac_cache_corrupted; then
3205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3208 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3209   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3210             and start over" "$LINENO" 5
3211 fi
3212 ## -------------------- ##
3213 ## Main body of script. ##
3214 ## -------------------- ##
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223 # Make sure the srcdir contains "libarchive" directory
3224
3225 # Use auxiliary subscripts from this subdirectory (cleans up root)
3226
3227 # M4 scripts
3228
3229 # Must follow AC_CONFIG macros above...
3230 am__api_version='1.16'
3231
3232
3233
3234   # Find a good install program.  We prefer a C program (faster),
3235 # so one script is as good as another.  But avoid the broken or
3236 # incompatible versions:
3237 # SysV /etc/install, /usr/sbin/install
3238 # SunOS /usr/etc/install
3239 # IRIX /sbin/install
3240 # AIX /bin/install
3241 # AmigaOS /C/install, which installs bootblocks on floppy discs
3242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3245 # OS/2's system install, which has a completely different semantic
3246 # ./install, which can be erroneously created by make from ./install.sh.
3247 # Reject install programs that cannot install multiple files.
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3249 printf %s "checking for a BSD-compatible install... " >&6; }
3250 if test -z "$INSTALL"; then
3251 if test ${ac_cv_path_install+y}
3252 then :
3253   printf %s "(cached) " >&6
3254 else $as_nop
3255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258   IFS=$as_save_IFS
3259   case $as_dir in #(((
3260     '') as_dir=./ ;;
3261     */) ;;
3262     *) as_dir=$as_dir/ ;;
3263   esac
3264     # Account for fact that we put trailing slashes in our PATH walk.
3265 case $as_dir in #((
3266   ./ | /[cC]/* | \
3267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3269   /usr/ucb/* ) ;;
3270   *)
3271     # OSF1 and SCO ODT 3.0 have their own names for install.
3272     # Don't use installbsd from OSF since it installs stuff as root
3273     # by default.
3274     for ac_prog in ginstall scoinst install; do
3275       for ac_exec_ext in '' $ac_executable_extensions; do
3276         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3277           if test $ac_prog = install &&
3278             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279             # AIX install.  It has an incompatible calling convention.
3280             :
3281           elif test $ac_prog = install &&
3282             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283             # program-specific install script used by HP pwplus--don't use.
3284             :
3285           else
3286             rm -rf conftest.one conftest.two conftest.dir
3287             echo one > conftest.one
3288             echo two > conftest.two
3289             mkdir conftest.dir
3290             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3291               test -s conftest.one && test -s conftest.two &&
3292               test -s conftest.dir/conftest.one &&
3293               test -s conftest.dir/conftest.two
3294             then
3295               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3296               break 3
3297             fi
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304
3305   done
3306 IFS=$as_save_IFS
3307
3308 rm -rf conftest.one conftest.two conftest.dir
3309
3310 fi
3311   if test ${ac_cv_path_install+y}; then
3312     INSTALL=$ac_cv_path_install
3313   else
3314     # As a last resort, use the slow shell script.  Don't cache a
3315     # value for INSTALL within a source directory, because that will
3316     # break other packages using the cache if that directory is
3317     # removed, or if the value is a relative name.
3318     INSTALL=$ac_install_sh
3319   fi
3320 fi
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322 printf "%s\n" "$INSTALL" >&6; }
3323
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3329
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333 printf %s "checking whether build environment is sane... " >&6; }
3334 # Reject unsafe characters in $srcdir or the absolute working directory
3335 # name.  Accept space and tab only in the latter.
3336 am_lf='
3337 '
3338 case `pwd` in
3339   *[\\\"\#\$\&\'\`$am_lf]*)
3340     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3341 esac
3342 case $srcdir in
3343   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3344     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3345 esac
3346
3347 # Do 'set' in a subshell so we don't clobber the current shell's
3348 # arguments.  Must try -L first in case configure is actually a
3349 # symlink; some systems play weird games with the mod time of symlinks
3350 # (eg FreeBSD returns the mod time of the symlink's containing
3351 # directory).
3352 if (
3353    am_has_slept=no
3354    for am_try in 1 2; do
3355      echo "timestamp, slept: $am_has_slept" > conftest.file
3356      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3357      if test "$*" = "X"; then
3358         # -L didn't work.
3359         set X `ls -t "$srcdir/configure" conftest.file`
3360      fi
3361      if test "$*" != "X $srcdir/configure conftest.file" \
3362         && test "$*" != "X conftest.file $srcdir/configure"; then
3363
3364         # If neither matched, then we have a broken ls.  This can happen
3365         # if, for instance, CONFIG_SHELL is bash and it inherits a
3366         # broken ls alias from the environment.  This has actually
3367         # happened.  Such a system could not be considered "sane".
3368         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3369   alias in your environment" "$LINENO" 5
3370      fi
3371      if test "$2" = conftest.file || test $am_try -eq 2; then
3372        break
3373      fi
3374      # Just in case.
3375      sleep 1
3376      am_has_slept=yes
3377    done
3378    test "$2" = conftest.file
3379    )
3380 then
3381    # Ok.
3382    :
3383 else
3384    as_fn_error $? "newly created file is older than distributed files!
3385 Check your system clock" "$LINENO" 5
3386 fi
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388 printf "%s\n" "yes" >&6; }
3389 # If we didn't sleep, we still need to ensure time stamps of config.status and
3390 # generated files are strictly newer.
3391 am_sleep_pid=
3392 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3393   ( sleep 1 ) &
3394   am_sleep_pid=$!
3395 fi
3396
3397 rm -f conftest.file
3398
3399 test "$program_prefix" != NONE &&
3400   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3401 # Use a double $ so make ignores it.
3402 test "$program_suffix" != NONE &&
3403   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3404 # Double any \ or $.
3405 # By default was `s,x,x', remove it if useless.
3406 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3407 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3408
3409
3410 # Expand $ac_aux_dir to an absolute path.
3411 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3412
3413
3414   if test x"${MISSING+set}" != xset; then
3415   MISSING="\${SHELL} '$am_aux_dir/missing'"
3416 fi
3417 # Use eval to expand $SHELL
3418 if eval "$MISSING --is-lightweight"; then
3419   am_missing_run="$MISSING "
3420 else
3421   am_missing_run=
3422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3423 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3424 fi
3425
3426 if test x"${install_sh+set}" != xset; then
3427   case $am_aux_dir in
3428   *\ * | *\     *)
3429     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3430   *)
3431     install_sh="\${SHELL} $am_aux_dir/install-sh"
3432   esac
3433 fi
3434
3435 # Installed binaries are usually stripped using 'strip' when the user
3436 # run "make install-strip".  However 'strip' might not be the right
3437 # tool to use in cross-compilation environments, therefore Automake
3438 # will honor the 'STRIP' environment variable to overrule this program.
3439 if test "$cross_compiling" != no; then
3440   if test -n "$ac_tool_prefix"; then
3441   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}strip; ac_word=$2
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 printf %s "checking for $ac_word... " >&6; }
3445 if test ${ac_cv_prog_STRIP+y}
3446 then :
3447   printf %s "(cached) " >&6
3448 else $as_nop
3449   if test -n "$STRIP"; then
3450   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   case $as_dir in #(((
3457     '') as_dir=./ ;;
3458     */) ;;
3459     *) as_dir=$as_dir/ ;;
3460   esac
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3464     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468   done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 STRIP=$ac_cv_prog_STRIP
3474 if test -n "$STRIP"; then
3475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3476 printf "%s\n" "$STRIP" >&6; }
3477 else
3478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 printf "%s\n" "no" >&6; }
3480 fi
3481
3482
3483 fi
3484 if test -z "$ac_cv_prog_STRIP"; then
3485   ac_ct_STRIP=$STRIP
3486   # Extract the first word of "strip", so it can be a program name with args.
3487 set dummy strip; ac_word=$2
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 printf %s "checking for $ac_word... " >&6; }
3490 if test ${ac_cv_prog_ac_ct_STRIP+y}
3491 then :
3492   printf %s "(cached) " >&6
3493 else $as_nop
3494   if test -n "$ac_ct_STRIP"; then
3495   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   case $as_dir in #(((
3502     '') as_dir=./ ;;
3503     */) ;;
3504     *) as_dir=$as_dir/ ;;
3505   esac
3506     for ac_exec_ext in '' $ac_executable_extensions; do
3507   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3508     ac_cv_prog_ac_ct_STRIP="strip"
3509     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513   done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3519 if test -n "$ac_ct_STRIP"; then
3520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3521 printf "%s\n" "$ac_ct_STRIP" >&6; }
3522 else
3523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 printf "%s\n" "no" >&6; }
3525 fi
3526
3527   if test "x$ac_ct_STRIP" = x; then
3528     STRIP=":"
3529   else
3530     case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536     STRIP=$ac_ct_STRIP
3537   fi
3538 else
3539   STRIP="$ac_cv_prog_STRIP"
3540 fi
3541
3542 fi
3543 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3544
3545
3546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3547 printf %s "checking for a race-free mkdir -p... " >&6; }
3548 if test -z "$MKDIR_P"; then
3549   if test ${ac_cv_path_mkdir+y}
3550 then :
3551   printf %s "(cached) " >&6
3552 else $as_nop
3553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3555 do
3556   IFS=$as_save_IFS
3557   case $as_dir in #(((
3558     '') as_dir=./ ;;
3559     */) ;;
3560     *) as_dir=$as_dir/ ;;
3561   esac
3562     for ac_prog in mkdir gmkdir; do
3563          for ac_exec_ext in '' $ac_executable_extensions; do
3564            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3565            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3566              'mkdir ('*'coreutils) '* | \
3567              'BusyBox '* | \
3568              'mkdir (fileutils) '4.1*)
3569                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3570                break 3;;
3571            esac
3572          done
3573        done
3574   done
3575 IFS=$as_save_IFS
3576
3577 fi
3578
3579   test -d ./--version && rmdir ./--version
3580   if test ${ac_cv_path_mkdir+y}; then
3581     MKDIR_P="$ac_cv_path_mkdir -p"
3582   else
3583     # As a last resort, use the slow shell script.  Don't cache a
3584     # value for MKDIR_P within a source directory, because that will
3585     # break other packages using the cache if that directory is
3586     # removed, or if the value is a relative name.
3587     MKDIR_P="$ac_install_sh -d"
3588   fi
3589 fi
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3591 printf "%s\n" "$MKDIR_P" >&6; }
3592
3593 for ac_prog in gawk mawk nawk awk
3594 do
3595   # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 printf %s "checking for $ac_word... " >&6; }
3599 if test ${ac_cv_prog_AWK+y}
3600 then :
3601   printf %s "(cached) " >&6
3602 else $as_nop
3603   if test -n "$AWK"; then
3604   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609   IFS=$as_save_IFS
3610   case $as_dir in #(((
3611     '') as_dir=./ ;;
3612     */) ;;
3613     *) as_dir=$as_dir/ ;;
3614   esac
3615     for ac_exec_ext in '' $ac_executable_extensions; do
3616   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617     ac_cv_prog_AWK="$ac_prog"
3618     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619     break 2
3620   fi
3621 done
3622   done
3623 IFS=$as_save_IFS
3624
3625 fi
3626 fi
3627 AWK=$ac_cv_prog_AWK
3628 if test -n "$AWK"; then
3629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3630 printf "%s\n" "$AWK" >&6; }
3631 else
3632   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3634 fi
3635
3636
3637   test -n "$AWK" && break
3638 done
3639
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3641 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3642 set x ${MAKE-make}
3643 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3644 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3645 then :
3646   printf %s "(cached) " >&6
3647 else $as_nop
3648   cat >conftest.make <<\_ACEOF
3649 SHELL = /bin/sh
3650 all:
3651         @echo '@@@%%%=$(MAKE)=@@@%%%'
3652 _ACEOF
3653 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3655   *@@@%%%=?*=@@@%%%*)
3656     eval ac_cv_prog_make_${ac_make}_set=yes;;
3657   *)
3658     eval ac_cv_prog_make_${ac_make}_set=no;;
3659 esac
3660 rm -f conftest.make
3661 fi
3662 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 printf "%s\n" "yes" >&6; }
3665   SET_MAKE=
3666 else
3667   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669   SET_MAKE="MAKE=${MAKE-make}"
3670 fi
3671
3672 rm -rf .tst 2>/dev/null
3673 mkdir .tst 2>/dev/null
3674 if test -d .tst; then
3675   am__leading_dot=.
3676 else
3677   am__leading_dot=_
3678 fi
3679 rmdir .tst 2>/dev/null
3680
3681 # Check whether --enable-silent-rules was given.
3682 if test ${enable_silent_rules+y}
3683 then :
3684   enableval=$enable_silent_rules;
3685 fi
3686
3687 case $enable_silent_rules in # (((
3688   yes) AM_DEFAULT_VERBOSITY=0;;
3689    no) AM_DEFAULT_VERBOSITY=1;;
3690     *) AM_DEFAULT_VERBOSITY=1;;
3691 esac
3692 am_make=${MAKE-make}
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3694 printf %s "checking whether $am_make supports nested variables... " >&6; }
3695 if test ${am_cv_make_support_nested_variables+y}
3696 then :
3697   printf %s "(cached) " >&6
3698 else $as_nop
3699   if printf "%s\n" 'TRUE=$(BAR$(V))
3700 BAR0=false
3701 BAR1=true
3702 V=1
3703 am__doit:
3704         @$(TRUE)
3705 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3706   am_cv_make_support_nested_variables=yes
3707 else
3708   am_cv_make_support_nested_variables=no
3709 fi
3710 fi
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3712 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3713 if test $am_cv_make_support_nested_variables = yes; then
3714     AM_V='$(V)'
3715   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3716 else
3717   AM_V=$AM_DEFAULT_VERBOSITY
3718   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3719 fi
3720 AM_BACKSLASH='\'
3721
3722 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3723   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3724   # is not polluted with repeated "-I."
3725   am__isrc=' -I$(srcdir)'
3726   # test to see if srcdir already configured
3727   if test -f $srcdir/config.status; then
3728     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3729   fi
3730 fi
3731
3732 # test whether we have cygpath
3733 if test -z "$CYGPATH_W"; then
3734   if (cygpath --version) >/dev/null 2>/dev/null; then
3735     CYGPATH_W='cygpath -w'
3736   else
3737     CYGPATH_W=echo
3738   fi
3739 fi
3740
3741
3742 # Define the identity of the package.
3743  PACKAGE='libarchive'
3744  VERSION='3.6.2'
3745
3746
3747 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3748
3749
3750 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3751
3752 # Some tools Automake needs.
3753
3754 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3755
3756
3757 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3758
3759
3760 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3761
3762
3763 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3764
3765
3766 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3767
3768 # For better backward compatibility.  To be removed once Automake 1.9.x
3769 # dies out for good.  For more background, see:
3770 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3771 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3772 mkdir_p='$(MKDIR_P)'
3773
3774 # We need awk for the "check" target (and possibly the TAP driver).  The
3775 # system "awk" is bad on some platforms.
3776 # Always define AMTAR for backward compatibility.  Yes, it's still used
3777 # in the wild :-(  We should find a proper way to deprecate it ...
3778 AMTAR='$${TAR-tar}'
3779
3780
3781 # We'll loop over all known methods to create a tar archive until one works.
3782 _am_tools='gnutar  pax cpio none'
3783
3784 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3785
3786
3787
3788
3789
3790 # Variables for tags utilities; see am/tags.am
3791 if test -z "$CTAGS"; then
3792   CTAGS=ctags
3793 fi
3794
3795 if test -z "$ETAGS"; then
3796   ETAGS=etags
3797 fi
3798
3799 if test -z "$CSCOPE"; then
3800   CSCOPE=cscope
3801 fi
3802
3803
3804
3805 # POSIX will say in a future version that running "rm -f" with no argument
3806 # is OK; and we want to be able to make that assumption in our Makefile
3807 # recipes.  So use an aggressive probe to check that the usage we want is
3808 # actually supported "in the wild" to an acceptable degree.
3809 # See automake bug#10828.
3810 # To make any issue more visible, cause the running configure to be aborted
3811 # by default if the 'rm' program in use doesn't match our expectations; the
3812 # user can still override this though.
3813 if rm -f && rm -fr && rm -rf; then : OK; else
3814   cat >&2 <<'END'
3815 Oops!
3816
3817 Your 'rm' program seems unable to run without file operands specified
3818 on the command line, even when the '-f' option is present.  This is contrary
3819 to the behaviour of most rm programs out there, and not conforming with
3820 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3821
3822 Please tell bug-automake@gnu.org about your system, including the value
3823 of your $PATH and any error possibly output before this message.  This
3824 can help us improve future automake versions.
3825
3826 END
3827   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3828     echo 'Configuration will proceed anyway, since you have set the' >&2
3829     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3830     echo >&2
3831   else
3832     cat >&2 <<'END'
3833 Aborting the configuration process, to ensure you take notice of the issue.
3834
3835 You can download and install GNU coreutils to get an 'rm' implementation
3836 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3837
3838 If you want to complete the configuration process using your problematic
3839 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3840 to "yes", and re-run configure.
3841
3842 END
3843     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3844   fi
3845 fi
3846
3847
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3849 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3850     # Check whether --enable-maintainer-mode was given.
3851 if test ${enable_maintainer_mode+y}
3852 then :
3853   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3854 else $as_nop
3855   USE_MAINTAINER_MODE=yes
3856 fi
3857
3858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3859 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3860    if test $USE_MAINTAINER_MODE = yes; then
3861   MAINTAINER_MODE_TRUE=
3862   MAINTAINER_MODE_FALSE='#'
3863 else
3864   MAINTAINER_MODE_TRUE='#'
3865   MAINTAINER_MODE_FALSE=
3866 fi
3867
3868   MAINT=$MAINTAINER_MODE_TRUE
3869
3870
3871 # Check whether --enable-silent-rules was given.
3872 if test ${enable_silent_rules+y}
3873 then :
3874   enableval=$enable_silent_rules;
3875 fi
3876
3877 case $enable_silent_rules in # (((
3878   yes) AM_DEFAULT_VERBOSITY=0;;
3879    no) AM_DEFAULT_VERBOSITY=1;;
3880     *) AM_DEFAULT_VERBOSITY=0;;
3881 esac
3882 am_make=${MAKE-make}
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3884 printf %s "checking whether $am_make supports nested variables... " >&6; }
3885 if test ${am_cv_make_support_nested_variables+y}
3886 then :
3887   printf %s "(cached) " >&6
3888 else $as_nop
3889   if printf "%s\n" 'TRUE=$(BAR$(V))
3890 BAR0=false
3891 BAR1=true
3892 V=1
3893 am__doit:
3894         @$(TRUE)
3895 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3896   am_cv_make_support_nested_variables=yes
3897 else
3898   am_cv_make_support_nested_variables=no
3899 fi
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3902 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3903 if test $am_cv_make_support_nested_variables = yes; then
3904     AM_V='$(V)'
3905   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3906 else
3907   AM_V=$AM_DEFAULT_VERBOSITY
3908   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3909 fi
3910 AM_BACKSLASH='\'
3911
3912
3913 # Libtool's "interface version" can be computed from the libarchive version.
3914
3915 # Libtool interface version bumps on any API change, so increments
3916 # whenever libarchive minor version does.
3917 ARCHIVE_MINOR=$(( (3006002 / 1000) % 1000 ))
3918 # Libarchive 2.7 == libtool interface 9 = 2 + 7
3919 # Libarchive 2.8 == libtool interface 10 = 2 + 8
3920 # Libarchive 2.9 == libtool interface 11 = 2 + 8
3921 # Libarchive 3.0 == libtool interface 12
3922 # Libarchive 3.1 == libtool interface 13
3923 ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`
3924 # Libarchive revision is bumped on any source change === libtool revision
3925 ARCHIVE_REVISION=$(( 3006002 % 1000 ))
3926 # Libarchive minor is bumped on any interface addition === libtool age
3927 ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR
3928
3929 # Stick the version numbers into config.h
3930
3931 printf "%s\n" "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h
3932
3933
3934 printf "%s\n" "#define LIBARCHIVE_VERSION_STRING \"3.6.2\"" >>confdefs.h
3935
3936
3937 printf "%s\n" "#define LIBARCHIVE_VERSION_NUMBER \"3006002\"" >>confdefs.h
3938
3939
3940 printf "%s\n" "#define BSDCPIO_VERSION_STRING \"3.6.2\"" >>confdefs.h
3941
3942
3943 printf "%s\n" "#define BSDTAR_VERSION_STRING \"3.6.2\"" >>confdefs.h
3944
3945
3946 printf "%s\n" "#define BSDCAT_VERSION_STRING \"3.6.2\"" >>confdefs.h
3947
3948
3949 # The shell variables here must be the same as the AC_SUBST() variables
3950 # below, but the shell variable names apparently cannot be the same as
3951 # the m4 macro names above.  Why?  Ask autoconf.
3952 BSDCPIO_VERSION_STRING=3.6.2
3953 BSDTAR_VERSION_STRING=3.6.2
3954 BSDCAT_VERSION_STRING=3.6.2
3955 LIBARCHIVE_VERSION_STRING=3.6.2
3956 LIBARCHIVE_VERSION_NUMBER=3006002
3957
3958 # Substitute the above version numbers into the various files below.
3959 # Yes, I believe this is the fourth time we define what are essentially
3960 # the same symbols.  Why? Ask autoconf.
3961
3962
3963
3964
3965
3966
3967
3968 ac_config_headers="$ac_config_headers config.h"
3969
3970 ac_config_files="$ac_config_files Makefile"
3971
3972 ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc"
3973
3974
3975 # Check for host type
3976
3977
3978   # Make sure we can run config.sub.
3979 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3980   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3981
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3983 printf %s "checking build system type... " >&6; }
3984 if test ${ac_cv_build+y}
3985 then :
3986   printf %s "(cached) " >&6
3987 else $as_nop
3988   ac_build_alias=$build_alias
3989 test "x$ac_build_alias" = x &&
3990   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3991 test "x$ac_build_alias" = x &&
3992   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3993 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3994   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3995
3996 fi
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3998 printf "%s\n" "$ac_cv_build" >&6; }
3999 case $ac_cv_build in
4000 *-*-*) ;;
4001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4002 esac
4003 build=$ac_cv_build
4004 ac_save_IFS=$IFS; IFS='-'
4005 set x $ac_cv_build
4006 shift
4007 build_cpu=$1
4008 build_vendor=$2
4009 shift; shift
4010 # Remember, the first character of IFS is used to create $*,
4011 # except with old shells:
4012 build_os=$*
4013 IFS=$ac_save_IFS
4014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4015
4016
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4018 printf %s "checking host system type... " >&6; }
4019 if test ${ac_cv_host+y}
4020 then :
4021   printf %s "(cached) " >&6
4022 else $as_nop
4023   if test "x$host_alias" = x; then
4024   ac_cv_host=$ac_cv_build
4025 else
4026   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4027     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4028 fi
4029
4030 fi
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4032 printf "%s\n" "$ac_cv_host" >&6; }
4033 case $ac_cv_host in
4034 *-*-*) ;;
4035 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4036 esac
4037 host=$ac_cv_host
4038 ac_save_IFS=$IFS; IFS='-'
4039 set x $ac_cv_host
4040 shift
4041 host_cpu=$1
4042 host_vendor=$2
4043 shift; shift
4044 # Remember, the first character of IFS is used to create $*,
4045 # except with old shells:
4046 host_os=$*
4047 IFS=$ac_save_IFS
4048 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4049
4050
4051
4052 inc_windows_files=no
4053 inc_cygwin_files=no
4054 case "$host_os" in
4055   *mingw* ) inc_windows_files=yes ;;
4056   *cygwin* | *msys*) inc_cygwin_files=yes ;;
4057 esac
4058  if test $inc_windows_files = yes; then
4059   INC_WINDOWS_FILES_TRUE=
4060   INC_WINDOWS_FILES_FALSE='#'
4061 else
4062   INC_WINDOWS_FILES_TRUE='#'
4063   INC_WINDOWS_FILES_FALSE=
4064 fi
4065
4066  if test $inc_cygwin_files = yes; then
4067   INC_CYGWIN_FILES_TRUE=
4068   INC_CYGWIN_FILES_FALSE='#'
4069 else
4070   INC_CYGWIN_FILES_TRUE='#'
4071   INC_CYGWIN_FILES_FALSE=
4072 fi
4073
4074
4075 PLATFORMCPPFLAGS=
4076 case "$host_os" in
4077   *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO ;;
4078 esac
4079
4080
4081 # Checks for programs.
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 if test -n "$ac_tool_prefix"; then
4097   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 printf %s "checking for $ac_word... " >&6; }
4101 if test ${ac_cv_prog_CC+y}
4102 then :
4103   printf %s "(cached) " >&6
4104 else $as_nop
4105   if test -n "$CC"; then
4106   ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   case $as_dir in #(((
4113     '') as_dir=./ ;;
4114     */) ;;
4115     *) as_dir=$as_dir/ ;;
4116   esac
4117     for ac_exec_ext in '' $ac_executable_extensions; do
4118   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4119     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4120     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4121     break 2
4122   fi
4123 done
4124   done
4125 IFS=$as_save_IFS
4126
4127 fi
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132 printf "%s\n" "$CC" >&6; }
4133 else
4134   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 printf "%s\n" "no" >&6; }
4136 fi
4137
4138
4139 fi
4140 if test -z "$ac_cv_prog_CC"; then
4141   ac_ct_CC=$CC
4142   # Extract the first word of "gcc", so it can be a program name with args.
4143 set dummy gcc; ac_word=$2
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 printf %s "checking for $ac_word... " >&6; }
4146 if test ${ac_cv_prog_ac_ct_CC+y}
4147 then :
4148   printf %s "(cached) " >&6
4149 else $as_nop
4150   if test -n "$ac_ct_CC"; then
4151   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   case $as_dir in #(((
4158     '') as_dir=./ ;;
4159     */) ;;
4160     *) as_dir=$as_dir/ ;;
4161   esac
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_ac_ct_CC="gcc"
4165     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175 if test -n "$ac_ct_CC"; then
4176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177 printf "%s\n" "$ac_ct_CC" >&6; }
4178 else
4179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 printf "%s\n" "no" >&6; }
4181 fi
4182
4183   if test "x$ac_ct_CC" = x; then
4184     CC=""
4185   else
4186     case $cross_compiling:$ac_tool_warned in
4187 yes:)
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190 ac_tool_warned=yes ;;
4191 esac
4192     CC=$ac_ct_CC
4193   fi
4194 else
4195   CC="$ac_cv_prog_CC"
4196 fi
4197
4198 if test -z "$CC"; then
4199           if test -n "$ac_tool_prefix"; then
4200     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}cc; ac_word=$2
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 printf %s "checking for $ac_word... " >&6; }
4204 if test ${ac_cv_prog_CC+y}
4205 then :
4206   printf %s "(cached) " >&6
4207 else $as_nop
4208   if test -n "$CC"; then
4209   ac_cv_prog_CC="$CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   case $as_dir in #(((
4216     '') as_dir=./ ;;
4217     */) ;;
4218     *) as_dir=$as_dir/ ;;
4219   esac
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4222     ac_cv_prog_CC="${ac_tool_prefix}cc"
4223     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 printf "%s\n" "$CC" >&6; }
4236 else
4237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 printf "%s\n" "no" >&6; }
4239 fi
4240
4241
4242   fi
4243 fi
4244 if test -z "$CC"; then
4245   # Extract the first word of "cc", so it can be a program name with args.
4246 set dummy cc; ac_word=$2
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printf %s "checking for $ac_word... " >&6; }
4249 if test ${ac_cv_prog_CC+y}
4250 then :
4251   printf %s "(cached) " >&6
4252 else $as_nop
4253   if test -n "$CC"; then
4254   ac_cv_prog_CC="$CC" # Let the user override the test.
4255 else
4256   ac_prog_rejected=no
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   case $as_dir in #(((
4262     '') as_dir=./ ;;
4263     */) ;;
4264     *) as_dir=$as_dir/ ;;
4265   esac
4266     for ac_exec_ext in '' $ac_executable_extensions; do
4267   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4268     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4269        ac_prog_rejected=yes
4270        continue
4271      fi
4272     ac_cv_prog_CC="cc"
4273     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280 if test $ac_prog_rejected = yes; then
4281   # We found a bogon in the path, so make sure we never use it.
4282   set dummy $ac_cv_prog_CC
4283   shift
4284   if test $# != 0; then
4285     # We chose a different compiler from the bogus one.
4286     # However, it has the same basename, so the bogon will be chosen
4287     # first if we set CC to just the basename; use the full file name.
4288     shift
4289     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4290   fi
4291 fi
4292 fi
4293 fi
4294 CC=$ac_cv_prog_CC
4295 if test -n "$CC"; then
4296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4297 printf "%s\n" "$CC" >&6; }
4298 else
4299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 printf "%s\n" "no" >&6; }
4301 fi
4302
4303
4304 fi
4305 if test -z "$CC"; then
4306   if test -n "$ac_tool_prefix"; then
4307   for ac_prog in cl.exe
4308   do
4309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 printf %s "checking for $ac_word... " >&6; }
4313 if test ${ac_cv_prog_CC+y}
4314 then :
4315   printf %s "(cached) " >&6
4316 else $as_nop
4317   if test -n "$CC"; then
4318   ac_cv_prog_CC="$CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323   IFS=$as_save_IFS
4324   case $as_dir in #(((
4325     '') as_dir=./ ;;
4326     */) ;;
4327     *) as_dir=$as_dir/ ;;
4328   esac
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4332     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 CC=$ac_cv_prog_CC
4342 if test -n "$CC"; then
4343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4344 printf "%s\n" "$CC" >&6; }
4345 else
4346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 printf "%s\n" "no" >&6; }
4348 fi
4349
4350
4351     test -n "$CC" && break
4352   done
4353 fi
4354 if test -z "$CC"; then
4355   ac_ct_CC=$CC
4356   for ac_prog in cl.exe
4357 do
4358   # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 printf %s "checking for $ac_word... " >&6; }
4362 if test ${ac_cv_prog_ac_ct_CC+y}
4363 then :
4364   printf %s "(cached) " >&6
4365 else $as_nop
4366   if test -n "$ac_ct_CC"; then
4367   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   case $as_dir in #(((
4374     '') as_dir=./ ;;
4375     */) ;;
4376     *) as_dir=$as_dir/ ;;
4377   esac
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4380     ac_cv_prog_ac_ct_CC="$ac_prog"
4381     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385   done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 printf "%s\n" "$ac_ct_CC" >&6; }
4394 else
4395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 printf "%s\n" "no" >&6; }
4397 fi
4398
4399
4400   test -n "$ac_ct_CC" && break
4401 done
4402
4403   if test "x$ac_ct_CC" = x; then
4404     CC=""
4405   else
4406     case $cross_compiling:$ac_tool_warned in
4407 yes:)
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4411 esac
4412     CC=$ac_ct_CC
4413   fi
4414 fi
4415
4416 fi
4417 if test -z "$CC"; then
4418   if test -n "$ac_tool_prefix"; then
4419   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}clang; ac_word=$2
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 printf %s "checking for $ac_word... " >&6; }
4423 if test ${ac_cv_prog_CC+y}
4424 then :
4425   printf %s "(cached) " >&6
4426 else $as_nop
4427   if test -n "$CC"; then
4428   ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   case $as_dir in #(((
4435     '') as_dir=./ ;;
4436     */) ;;
4437     *) as_dir=$as_dir/ ;;
4438   esac
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4441     ac_cv_prog_CC="${ac_tool_prefix}clang"
4442     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 CC=$ac_cv_prog_CC
4452 if test -n "$CC"; then
4453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4454 printf "%s\n" "$CC" >&6; }
4455 else
4456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4458 fi
4459
4460
4461 fi
4462 if test -z "$ac_cv_prog_CC"; then
4463   ac_ct_CC=$CC
4464   # Extract the first word of "clang", so it can be a program name with args.
4465 set dummy clang; ac_word=$2
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 printf %s "checking for $ac_word... " >&6; }
4468 if test ${ac_cv_prog_ac_ct_CC+y}
4469 then :
4470   printf %s "(cached) " >&6
4471 else $as_nop
4472   if test -n "$ac_ct_CC"; then
4473   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   case $as_dir in #(((
4480     '') as_dir=./ ;;
4481     */) ;;
4482     *) as_dir=$as_dir/ ;;
4483   esac
4484     for ac_exec_ext in '' $ac_executable_extensions; do
4485   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4486     ac_cv_prog_ac_ct_CC="clang"
4487     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491   done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4497 if test -n "$ac_ct_CC"; then
4498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4499 printf "%s\n" "$ac_ct_CC" >&6; }
4500 else
4501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 printf "%s\n" "no" >&6; }
4503 fi
4504
4505   if test "x$ac_ct_CC" = x; then
4506     CC=""
4507   else
4508     case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514     CC=$ac_ct_CC
4515   fi
4516 else
4517   CC="$ac_cv_prog_CC"
4518 fi
4519
4520 fi
4521
4522
4523 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4525 as_fn_error $? "no acceptable C compiler found in \$PATH
4526 See \`config.log' for more details" "$LINENO" 5; }
4527
4528 # Provide some information about the compiler.
4529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4530 set X $ac_compile
4531 ac_compiler=$2
4532 for ac_option in --version -v -V -qversion -version; do
4533   { { ac_try="$ac_compiler $ac_option >&5"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 printf "%s\n" "$ac_try_echo"; } >&5
4540   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4541   ac_status=$?
4542   if test -s conftest.err; then
4543     sed '10a\
4544 ... rest of stderr output deleted ...
4545          10q' conftest.err >conftest.er1
4546     cat conftest.er1 >&5
4547   fi
4548   rm -f conftest.er1 conftest.err
4549   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550   test $ac_status = 0; }
4551 done
4552
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555
4556 int
4557 main (void)
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 ac_clean_files_save=$ac_clean_files
4565 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4566 # Try to create an executable without -o first, disregard a.out.
4567 # It will help us diagnose broken compilers, and finding out an intuition
4568 # of exeext.
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4570 printf %s "checking whether the C compiler works... " >&6; }
4571 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4572
4573 # The possible output files:
4574 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4575
4576 ac_rmfiles=
4577 for ac_file in $ac_files
4578 do
4579   case $ac_file in
4580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4581     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4582   esac
4583 done
4584 rm -f $ac_rmfiles
4585
4586 if { { ac_try="$ac_link_default"
4587 case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 printf "%s\n" "$ac_try_echo"; } >&5
4593   (eval "$ac_link_default") 2>&5
4594   ac_status=$?
4595   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596   test $ac_status = 0; }
4597 then :
4598   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4599 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4600 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4601 # so that the user can short-circuit this test for compilers unknown to
4602 # Autoconf.
4603 for ac_file in $ac_files ''
4604 do
4605   test -f "$ac_file" || continue
4606   case $ac_file in
4607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4608         ;;
4609     [ab].out )
4610         # We found the default executable, but exeext='' is most
4611         # certainly right.
4612         break;;
4613     *.* )
4614         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4615         then :; else
4616            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4617         fi
4618         # We set ac_cv_exeext here because the later test for it is not
4619         # safe: cross compilers may not add the suffix if given an `-o'
4620         # argument, so we may need to know it at that point already.
4621         # Even if this section looks crufty: it has the advantage of
4622         # actually working.
4623         break;;
4624     * )
4625         break;;
4626   esac
4627 done
4628 test "$ac_cv_exeext" = no && ac_cv_exeext=
4629
4630 else $as_nop
4631   ac_file=''
4632 fi
4633 if test -z "$ac_file"
4634 then :
4635   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 printf "%s\n" "no" >&6; }
4637 printf "%s\n" "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error 77 "C compiler cannot create executables
4643 See \`config.log' for more details" "$LINENO" 5; }
4644 else $as_nop
4645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 printf "%s\n" "yes" >&6; }
4647 fi
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4649 printf %s "checking for C compiler default output file name... " >&6; }
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4651 printf "%s\n" "$ac_file" >&6; }
4652 ac_exeext=$ac_cv_exeext
4653
4654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4657 printf %s "checking for suffix of executables... " >&6; }
4658 if { { ac_try="$ac_link"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 printf "%s\n" "$ac_try_echo"; } >&5
4665   (eval "$ac_link") 2>&5
4666   ac_status=$?
4667   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668   test $ac_status = 0; }
4669 then :
4670   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4673 # `rm'.
4674 for ac_file in conftest.exe conftest conftest.*; do
4675   test -f "$ac_file" || continue
4676   case $ac_file in
4677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4678     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679           break;;
4680     * ) break;;
4681   esac
4682 done
4683 else $as_nop
4684   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4687 See \`config.log' for more details" "$LINENO" 5; }
4688 fi
4689 rm -f conftest conftest$ac_cv_exeext
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4691 printf "%s\n" "$ac_cv_exeext" >&6; }
4692
4693 rm -f conftest.$ac_ext
4694 EXEEXT=$ac_cv_exeext
4695 ac_exeext=$EXEEXT
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <stdio.h>
4699 int
4700 main (void)
4701 {
4702 FILE *f = fopen ("conftest.out", "w");
4703  return ferror (f) || fclose (f) != 0;
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 ac_clean_files="$ac_clean_files conftest.out"
4710 # Check that the compiler produces executables we can run.  If not, either
4711 # the compiler is broken, or we cross compile.
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4713 printf %s "checking whether we are cross compiling... " >&6; }
4714 if test "$cross_compiling" != yes; then
4715   { { ac_try="$ac_link"
4716 case "(($ac_try" in
4717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718   *) ac_try_echo=$ac_try;;
4719 esac
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 printf "%s\n" "$ac_try_echo"; } >&5
4722   (eval "$ac_link") 2>&5
4723   ac_status=$?
4724   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725   test $ac_status = 0; }
4726   if { ac_try='./conftest$ac_cv_exeext'
4727   { { case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 printf "%s\n" "$ac_try_echo"; } >&5
4733   (eval "$ac_try") 2>&5
4734   ac_status=$?
4735   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736   test $ac_status = 0; }; }; then
4737     cross_compiling=no
4738   else
4739     if test "$cross_compiling" = maybe; then
4740         cross_compiling=yes
4741     else
4742         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error 77 "cannot run C compiled programs.
4745 If you meant to cross compile, use \`--host'.
4746 See \`config.log' for more details" "$LINENO" 5; }
4747     fi
4748   fi
4749 fi
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4751 printf "%s\n" "$cross_compiling" >&6; }
4752
4753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4754 ac_clean_files=$ac_clean_files_save
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4756 printf %s "checking for suffix of object files... " >&6; }
4757 if test ${ac_cv_objext+y}
4758 then :
4759   printf %s "(cached) " >&6
4760 else $as_nop
4761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763
4764 int
4765 main (void)
4766 {
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.o conftest.obj
4773 if { { ac_try="$ac_compile"
4774 case "(($ac_try" in
4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776   *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 printf "%s\n" "$ac_try_echo"; } >&5
4780   (eval "$ac_compile") 2>&5
4781   ac_status=$?
4782   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783   test $ac_status = 0; }
4784 then :
4785   for ac_file in conftest.o conftest.obj conftest.*; do
4786   test -f "$ac_file" || continue;
4787   case $ac_file in
4788     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4789     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4790        break;;
4791   esac
4792 done
4793 else $as_nop
4794   printf "%s\n" "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4799 as_fn_error $? "cannot compute suffix of object files: cannot compile
4800 See \`config.log' for more details" "$LINENO" 5; }
4801 fi
4802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4803 fi
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4805 printf "%s\n" "$ac_cv_objext" >&6; }
4806 OBJEXT=$ac_cv_objext
4807 ac_objext=$OBJEXT
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4809 printf %s "checking whether the compiler supports GNU C... " >&6; }
4810 if test ${ac_cv_c_compiler_gnu+y}
4811 then :
4812   printf %s "(cached) " >&6
4813 else $as_nop
4814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h.  */
4816
4817 int
4818 main (void)
4819 {
4820 #ifndef __GNUC__
4821        choke me
4822 #endif
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 if ac_fn_c_try_compile "$LINENO"
4829 then :
4830   ac_compiler_gnu=yes
4831 else $as_nop
4832   ac_compiler_gnu=no
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4836
4837 fi
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4839 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842 if test $ac_compiler_gnu = yes; then
4843   GCC=yes
4844 else
4845   GCC=
4846 fi
4847 ac_test_CFLAGS=${CFLAGS+y}
4848 ac_save_CFLAGS=$CFLAGS
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4850 printf %s "checking whether $CC accepts -g... " >&6; }
4851 if test ${ac_cv_prog_cc_g+y}
4852 then :
4853   printf %s "(cached) " >&6
4854 else $as_nop
4855   ac_save_c_werror_flag=$ac_c_werror_flag
4856    ac_c_werror_flag=yes
4857    ac_cv_prog_cc_g=no
4858    CFLAGS="-g"
4859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861
4862 int
4863 main (void)
4864 {
4865
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"
4871 then :
4872   ac_cv_prog_cc_g=yes
4873 else $as_nop
4874   CFLAGS=""
4875       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h.  */
4877
4878 int
4879 main (void)
4880 {
4881
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"
4887 then :
4888
4889 else $as_nop
4890   ac_c_werror_flag=$ac_save_c_werror_flag
4891          CFLAGS="-g"
4892          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h.  */
4894
4895 int
4896 main (void)
4897 {
4898
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905   ac_cv_prog_cc_g=yes
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4912    ac_c_werror_flag=$ac_save_c_werror_flag
4913 fi
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4915 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4916 if test $ac_test_CFLAGS; then
4917   CFLAGS=$ac_save_CFLAGS
4918 elif test $ac_cv_prog_cc_g = yes; then
4919   if test "$GCC" = yes; then
4920     CFLAGS="-g -O2"
4921   else
4922     CFLAGS="-g"
4923   fi
4924 else
4925   if test "$GCC" = yes; then
4926     CFLAGS="-O2"
4927   else
4928     CFLAGS=
4929   fi
4930 fi
4931 ac_prog_cc_stdc=no
4932 if test x$ac_prog_cc_stdc = xno
4933 then :
4934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4935 printf %s "checking for $CC option to enable C11 features... " >&6; }
4936 if test ${ac_cv_prog_cc_c11+y}
4937 then :
4938   printf %s "(cached) " >&6
4939 else $as_nop
4940   ac_cv_prog_cc_c11=no
4941 ac_save_CC=$CC
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h.  */
4944 $ac_c_conftest_c11_program
4945 _ACEOF
4946 for ac_arg in '' -std=gnu11
4947 do
4948   CC="$ac_save_CC $ac_arg"
4949   if ac_fn_c_try_compile "$LINENO"
4950 then :
4951   ac_cv_prog_cc_c11=$ac_arg
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext conftest.beam
4954   test "x$ac_cv_prog_cc_c11" != "xno" && break
4955 done
4956 rm -f conftest.$ac_ext
4957 CC=$ac_save_CC
4958 fi
4959
4960 if test "x$ac_cv_prog_cc_c11" = xno
4961 then :
4962   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4963 printf "%s\n" "unsupported" >&6; }
4964 else $as_nop
4965   if test "x$ac_cv_prog_cc_c11" = x
4966 then :
4967   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968 printf "%s\n" "none needed" >&6; }
4969 else $as_nop
4970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4971 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4972      CC="$CC $ac_cv_prog_cc_c11"
4973 fi
4974   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4975   ac_prog_cc_stdc=c11
4976 fi
4977 fi
4978 if test x$ac_prog_cc_stdc = xno
4979 then :
4980   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4981 printf %s "checking for $CC option to enable C99 features... " >&6; }
4982 if test ${ac_cv_prog_cc_c99+y}
4983 then :
4984   printf %s "(cached) " >&6
4985 else $as_nop
4986   ac_cv_prog_cc_c99=no
4987 ac_save_CC=$CC
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990 $ac_c_conftest_c99_program
4991 _ACEOF
4992 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4993 do
4994   CC="$ac_save_CC $ac_arg"
4995   if ac_fn_c_try_compile "$LINENO"
4996 then :
4997   ac_cv_prog_cc_c99=$ac_arg
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.beam
5000   test "x$ac_cv_prog_cc_c99" != "xno" && break
5001 done
5002 rm -f conftest.$ac_ext
5003 CC=$ac_save_CC
5004 fi
5005
5006 if test "x$ac_cv_prog_cc_c99" = xno
5007 then :
5008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5009 printf "%s\n" "unsupported" >&6; }
5010 else $as_nop
5011   if test "x$ac_cv_prog_cc_c99" = x
5012 then :
5013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 printf "%s\n" "none needed" >&6; }
5015 else $as_nop
5016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5017 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5018      CC="$CC $ac_cv_prog_cc_c99"
5019 fi
5020   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5021   ac_prog_cc_stdc=c99
5022 fi
5023 fi
5024 if test x$ac_prog_cc_stdc = xno
5025 then :
5026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5027 printf %s "checking for $CC option to enable C89 features... " >&6; }
5028 if test ${ac_cv_prog_cc_c89+y}
5029 then :
5030   printf %s "(cached) " >&6
5031 else $as_nop
5032   ac_cv_prog_cc_c89=no
5033 ac_save_CC=$CC
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h.  */
5036 $ac_c_conftest_c89_program
5037 _ACEOF
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5039 do
5040   CC="$ac_save_CC $ac_arg"
5041   if ac_fn_c_try_compile "$LINENO"
5042 then :
5043   ac_cv_prog_cc_c89=$ac_arg
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.beam
5046   test "x$ac_cv_prog_cc_c89" != "xno" && break
5047 done
5048 rm -f conftest.$ac_ext
5049 CC=$ac_save_CC
5050 fi
5051
5052 if test "x$ac_cv_prog_cc_c89" = xno
5053 then :
5054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5055 printf "%s\n" "unsupported" >&6; }
5056 else $as_nop
5057   if test "x$ac_cv_prog_cc_c89" = x
5058 then :
5059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5060 printf "%s\n" "none needed" >&6; }
5061 else $as_nop
5062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5064      CC="$CC $ac_cv_prog_cc_c89"
5065 fi
5066   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5067   ac_prog_cc_stdc=c89
5068 fi
5069 fi
5070
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077
5078   ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5084 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5085 if test ${am_cv_prog_cc_c_o+y}
5086 then :
5087   printf %s "(cached) " >&6
5088 else $as_nop
5089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091
5092 int
5093 main (void)
5094 {
5095
5096   ;
5097   return 0;
5098 }
5099 _ACEOF
5100   # Make sure it works both with $CC and with simple cc.
5101   # Following AC_PROG_CC_C_O, we do the test twice because some
5102   # compilers refuse to overwrite an existing .o file with -o,
5103   # though they will create one.
5104   am_cv_prog_cc_c_o=yes
5105   for am_i in 1 2; do
5106     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5107    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5108    ac_status=$?
5109    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110    (exit $ac_status); } \
5111          && test -f conftest2.$ac_objext; then
5112       : OK
5113     else
5114       am_cv_prog_cc_c_o=no
5115       break
5116     fi
5117   done
5118   rm -f core conftest*
5119   unset am_i
5120 fi
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5122 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5123 if test "$am_cv_prog_cc_c_o" != yes; then
5124    # Losing compiler, so override with the script.
5125    # FIXME: It is wrong to rewrite CC.
5126    # But if we don't then we get into trouble of one sort or another.
5127    # A longer-term fix would be to have automake use am__CC in this case,
5128    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5129    CC="$am_aux_dir/compile $CC"
5130 fi
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 DEPDIR="${am__leading_dot}deps"
5138
5139 ac_config_commands="$ac_config_commands depfiles"
5140
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5142 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5143 cat > confinc.mk << 'END'
5144 am__doit:
5145         @echo this is the am__doit target >confinc.out
5146 .PHONY: am__doit
5147 END
5148 am__include="#"
5149 am__quote=
5150 # BSD make does it like this.
5151 echo '.include "confinc.mk" # ignored' > confmf.BSD
5152 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5153 echo 'include confinc.mk # ignored' > confmf.GNU
5154 _am_result=no
5155 for s in GNU BSD; do
5156   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5157    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5158    ac_status=$?
5159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160    (exit $ac_status); }
5161   case $?:`cat confinc.out 2>/dev/null` in #(
5162   '0:this is the am__doit target') :
5163     case $s in #(
5164   BSD) :
5165     am__include='.include' am__quote='"' ;; #(
5166   *) :
5167     am__include='include' am__quote='' ;;
5168 esac ;; #(
5169   *) :
5170      ;;
5171 esac
5172   if test "$am__include" != "#"; then
5173     _am_result="yes ($s style)"
5174     break
5175   fi
5176 done
5177 rm -f confinc.* confmf.*
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5179 printf "%s\n" "${_am_result}" >&6; }
5180
5181 # Check whether --enable-dependency-tracking was given.
5182 if test ${enable_dependency_tracking+y}
5183 then :
5184   enableval=$enable_dependency_tracking;
5185 fi
5186
5187 if test "x$enable_dependency_tracking" != xno; then
5188   am_depcomp="$ac_aux_dir/depcomp"
5189   AMDEPBACKSLASH='\'
5190   am__nodep='_no'
5191 fi
5192  if test "x$enable_dependency_tracking" != xno; then
5193   AMDEP_TRUE=
5194   AMDEP_FALSE='#'
5195 else
5196   AMDEP_TRUE='#'
5197   AMDEP_FALSE=
5198 fi
5199
5200
5201
5202 depcc="$CC"   am_compiler_list=
5203
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5205 printf %s "checking dependency style of $depcc... " >&6; }
5206 if test ${am_cv_CC_dependencies_compiler_type+y}
5207 then :
5208   printf %s "(cached) " >&6
5209 else $as_nop
5210   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5211   # We make a subdir and do the tests there.  Otherwise we can end up
5212   # making bogus files that we don't know about and never remove.  For
5213   # instance it was reported that on HP-UX the gcc test will end up
5214   # making a dummy file named 'D' -- because '-MD' means "put the output
5215   # in D".
5216   rm -rf conftest.dir
5217   mkdir conftest.dir
5218   # Copy depcomp to subdir because otherwise we won't find it if we're
5219   # using a relative directory.
5220   cp "$am_depcomp" conftest.dir
5221   cd conftest.dir
5222   # We will build objects and dependencies in a subdirectory because
5223   # it helps to detect inapplicable dependency modes.  For instance
5224   # both Tru64's cc and ICC support -MD to output dependencies as a
5225   # side effect of compilation, but ICC will put the dependencies in
5226   # the current directory while Tru64 will put them in the object
5227   # directory.
5228   mkdir sub
5229
5230   am_cv_CC_dependencies_compiler_type=none
5231   if test "$am_compiler_list" = ""; then
5232      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5233   fi
5234   am__universal=false
5235   case " $depcc " in #(
5236      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5237      esac
5238
5239   for depmode in $am_compiler_list; do
5240     # Setup a source with many dependencies, because some compilers
5241     # like to wrap large dependency lists on column 80 (with \), and
5242     # we should not choose a depcomp mode which is confused by this.
5243     #
5244     # We need to recreate these files for each test, as the compiler may
5245     # overwrite some of them when testing with obscure command lines.
5246     # This happens at least with the AIX C compiler.
5247     : > sub/conftest.c
5248     for i in 1 2 3 4 5 6; do
5249       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5250       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5251       # Solaris 10 /bin/sh.
5252       echo '/* dummy */' > sub/conftst$i.h
5253     done
5254     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5255
5256     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5257     # mode.  It turns out that the SunPro C++ compiler does not properly
5258     # handle '-M -o', and we need to detect this.  Also, some Intel
5259     # versions had trouble with output in subdirs.
5260     am__obj=sub/conftest.${OBJEXT-o}
5261     am__minus_obj="-o $am__obj"
5262     case $depmode in
5263     gcc)
5264       # This depmode causes a compiler race in universal mode.
5265       test "$am__universal" = false || continue
5266       ;;
5267     nosideeffect)
5268       # After this tag, mechanisms are not by side-effect, so they'll
5269       # only be used when explicitly requested.
5270       if test "x$enable_dependency_tracking" = xyes; then
5271         continue
5272       else
5273         break
5274       fi
5275       ;;
5276     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5277       # This compiler won't grok '-c -o', but also, the minuso test has
5278       # not run yet.  These depmodes are late enough in the game, and
5279       # so weak that their functioning should not be impacted.
5280       am__obj=conftest.${OBJEXT-o}
5281       am__minus_obj=
5282       ;;
5283     none) break ;;
5284     esac
5285     if depmode=$depmode \
5286        source=sub/conftest.c object=$am__obj \
5287        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5288        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5289          >/dev/null 2>conftest.err &&
5290        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5291        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5292        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5293        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5294       # icc doesn't choke on unknown options, it will just issue warnings
5295       # or remarks (even with -Werror).  So we grep stderr for any message
5296       # that says an option was ignored or not supported.
5297       # When given -MP, icc 7.0 and 7.1 complain thusly:
5298       #   icc: Command line warning: ignoring option '-M'; no argument required
5299       # The diagnosis changed in icc 8.0:
5300       #   icc: Command line remark: option '-MP' not supported
5301       if (grep 'ignoring option' conftest.err ||
5302           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5303         am_cv_CC_dependencies_compiler_type=$depmode
5304         break
5305       fi
5306     fi
5307   done
5308
5309   cd ..
5310   rm -rf conftest.dir
5311 else
5312   am_cv_CC_dependencies_compiler_type=none
5313 fi
5314
5315 fi
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5317 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5319
5320  if
5321   test "x$enable_dependency_tracking" != xno \
5322   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5323   am__fastdepCC_TRUE=
5324   am__fastdepCC_FALSE='#'
5325 else
5326   am__fastdepCC_TRUE='#'
5327   am__fastdepCC_FALSE=
5328 fi
5329
5330
5331
5332
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 printf %s "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5342   CPP=
5343 fi
5344 if test -z "$CPP"; then
5345   if test ${ac_cv_prog_CPP+y}
5346 then :
5347   printf %s "(cached) " >&6
5348 else $as_nop
5349       # Double quotes because $CC needs to be expanded
5350     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5351     do
5352       ac_preproc_ok=false
5353 for ac_c_preproc_warn_flag in '' yes
5354 do
5355   # Use a header file that comes with gcc, so configuring glibc
5356   # with a fresh cross-compiler works.
5357   # On the NeXT, cc -E runs the code through the compiler's parser,
5358   # not just through cpp. "Syntax error" is here to catch this case.
5359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361 #include <limits.h>
5362                      Syntax error
5363 _ACEOF
5364 if ac_fn_c_try_cpp "$LINENO"
5365 then :
5366
5367 else $as_nop
5368   # Broken: fails on valid input.
5369 continue
5370 fi
5371 rm -f conftest.err conftest.i conftest.$ac_ext
5372
5373   # OK, works on sane cases.  Now check whether nonexistent headers
5374   # can be detected and how.
5375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h.  */
5377 #include <ac_nonexistent.h>
5378 _ACEOF
5379 if ac_fn_c_try_cpp "$LINENO"
5380 then :
5381   # Broken: success on invalid input.
5382 continue
5383 else $as_nop
5384   # Passes both tests.
5385 ac_preproc_ok=:
5386 break
5387 fi
5388 rm -f conftest.err conftest.i conftest.$ac_ext
5389
5390 done
5391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5392 rm -f conftest.i conftest.err conftest.$ac_ext
5393 if $ac_preproc_ok
5394 then :
5395   break
5396 fi
5397
5398     done
5399     ac_cv_prog_CPP=$CPP
5400
5401 fi
5402   CPP=$ac_cv_prog_CPP
5403 else
5404   ac_cv_prog_CPP=$CPP
5405 fi
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5407 printf "%s\n" "$CPP" >&6; }
5408 ac_preproc_ok=false
5409 for ac_c_preproc_warn_flag in '' yes
5410 do
5411   # Use a header file that comes with gcc, so configuring glibc
5412   # with a fresh cross-compiler works.
5413   # On the NeXT, cc -E runs the code through the compiler's parser,
5414   # not just through cpp. "Syntax error" is here to catch this case.
5415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h.  */
5417 #include <limits.h>
5418                      Syntax error
5419 _ACEOF
5420 if ac_fn_c_try_cpp "$LINENO"
5421 then :
5422
5423 else $as_nop
5424   # Broken: fails on valid input.
5425 continue
5426 fi
5427 rm -f conftest.err conftest.i conftest.$ac_ext
5428
5429   # OK, works on sane cases.  Now check whether nonexistent headers
5430   # can be detected and how.
5431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433 #include <ac_nonexistent.h>
5434 _ACEOF
5435 if ac_fn_c_try_cpp "$LINENO"
5436 then :
5437   # Broken: success on invalid input.
5438 continue
5439 else $as_nop
5440   # Passes both tests.
5441 ac_preproc_ok=:
5442 break
5443 fi
5444 rm -f conftest.err conftest.i conftest.$ac_ext
5445
5446 done
5447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448 rm -f conftest.i conftest.err conftest.$ac_ext
5449 if $ac_preproc_ok
5450 then :
5451
5452 else $as_nop
5453   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details" "$LINENO" 5; }
5457 fi
5458
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464
5465
5466 ac_header= ac_cache=
5467 for ac_item in $ac_header_c_list
5468 do
5469   if test $ac_cache; then
5470     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5471     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5472       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5473     fi
5474     ac_header= ac_cache=
5475   elif test $ac_header; then
5476     ac_cache=$ac_item
5477   else
5478     ac_header=$ac_item
5479   fi
5480 done
5481
5482
5483
5484
5485
5486
5487
5488
5489 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5490 then :
5491
5492 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5493
5494 fi
5495
5496
5497
5498
5499
5500
5501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5502 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5503 if test ${ac_cv_safe_to_define___extensions__+y}
5504 then :
5505   printf %s "(cached) " >&6
5506 else $as_nop
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509
5510 #         define __EXTENSIONS__ 1
5511           $ac_includes_default
5512 int
5513 main (void)
5514 {
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"
5521 then :
5522   ac_cv_safe_to_define___extensions__=yes
5523 else $as_nop
5524   ac_cv_safe_to_define___extensions__=no
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5527 fi
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5529 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5530
5531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5532 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5533 if test ${ac_cv_should_define__xopen_source+y}
5534 then :
5535   printf %s "(cached) " >&6
5536 else $as_nop
5537   ac_cv_should_define__xopen_source=no
5538     if test $ac_cv_header_wchar_h = yes
5539 then :
5540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h.  */
5542
5543           #include <wchar.h>
5544           mbstate_t x;
5545 int
5546 main (void)
5547 {
5548
5549   ;
5550   return 0;
5551 }
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"
5554 then :
5555
5556 else $as_nop
5557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h.  */
5559
5560             #define _XOPEN_SOURCE 500
5561             #include <wchar.h>
5562             mbstate_t x;
5563 int
5564 main (void)
5565 {
5566
5567   ;
5568   return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"
5572 then :
5573   ac_cv_should_define__xopen_source=yes
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5578 fi
5579 fi
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5581 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5582
5583   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5584
5585   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5586
5587   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5588
5589   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5590
5591   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5592
5593   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5594
5595   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5596
5597   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5598
5599   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5600
5601   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5602
5603   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5604
5605   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5606
5607   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5608
5609   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5610
5611   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5612
5613   if test $ac_cv_header_minix_config_h = yes
5614 then :
5615   MINIX=yes
5616     printf "%s\n" "#define _MINIX 1" >>confdefs.h
5617
5618     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5619
5620     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5621
5622 else $as_nop
5623   MINIX=
5624 fi
5625   if test $ac_cv_safe_to_define___extensions__ = yes
5626 then :
5627   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5628
5629 fi
5630   if test $ac_cv_should_define__xopen_source = yes
5631 then :
5632   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5633
5634 fi
5635
5636 enable_win32_dll=yes
5637
5638 case $host in
5639 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5640   if test -n "$ac_tool_prefix"; then
5641   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}as; ac_word=$2
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 printf %s "checking for $ac_word... " >&6; }
5645 if test ${ac_cv_prog_AS+y}
5646 then :
5647   printf %s "(cached) " >&6
5648 else $as_nop
5649   if test -n "$AS"; then
5650   ac_cv_prog_AS="$AS" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   case $as_dir in #(((
5657     '') as_dir=./ ;;
5658     */) ;;
5659     *) as_dir=$as_dir/ ;;
5660   esac
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5663     ac_cv_prog_AS="${ac_tool_prefix}as"
5664     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 AS=$ac_cv_prog_AS
5674 if test -n "$AS"; then
5675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5676 printf "%s\n" "$AS" >&6; }
5677 else
5678   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 printf "%s\n" "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$ac_cv_prog_AS"; then
5685   ac_ct_AS=$AS
5686   # Extract the first word of "as", so it can be a program name with args.
5687 set dummy as; ac_word=$2
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 printf %s "checking for $ac_word... " >&6; }
5690 if test ${ac_cv_prog_ac_ct_AS+y}
5691 then :
5692   printf %s "(cached) " >&6
5693 else $as_nop
5694   if test -n "$ac_ct_AS"; then
5695   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   case $as_dir in #(((
5702     '') as_dir=./ ;;
5703     */) ;;
5704     *) as_dir=$as_dir/ ;;
5705   esac
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5708     ac_cv_prog_ac_ct_AS="as"
5709     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5719 if test -n "$ac_ct_AS"; then
5720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5721 printf "%s\n" "$ac_ct_AS" >&6; }
5722 else
5723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5725 fi
5726
5727   if test "x$ac_ct_AS" = x; then
5728     AS="false"
5729   else
5730     case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5735 esac
5736     AS=$ac_ct_AS
5737   fi
5738 else
5739   AS="$ac_cv_prog_AS"
5740 fi
5741
5742   if test -n "$ac_tool_prefix"; then
5743   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 printf %s "checking for $ac_word... " >&6; }
5747 if test ${ac_cv_prog_DLLTOOL+y}
5748 then :
5749   printf %s "(cached) " >&6
5750 else $as_nop
5751   if test -n "$DLLTOOL"; then
5752   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   case $as_dir in #(((
5759     '') as_dir=./ ;;
5760     */) ;;
5761     *) as_dir=$as_dir/ ;;
5762   esac
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5766     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770   done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 DLLTOOL=$ac_cv_prog_DLLTOOL
5776 if test -n "$DLLTOOL"; then
5777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5778 printf "%s\n" "$DLLTOOL" >&6; }
5779 else
5780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 printf "%s\n" "no" >&6; }
5782 fi
5783
5784
5785 fi
5786 if test -z "$ac_cv_prog_DLLTOOL"; then
5787   ac_ct_DLLTOOL=$DLLTOOL
5788   # Extract the first word of "dlltool", so it can be a program name with args.
5789 set dummy dlltool; ac_word=$2
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 printf %s "checking for $ac_word... " >&6; }
5792 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5793 then :
5794   printf %s "(cached) " >&6
5795 else $as_nop
5796   if test -n "$ac_ct_DLLTOOL"; then
5797   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   case $as_dir in #(((
5804     '') as_dir=./ ;;
5805     */) ;;
5806     *) as_dir=$as_dir/ ;;
5807   esac
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5810     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5811     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5821 if test -n "$ac_ct_DLLTOOL"; then
5822   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5823 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5824 else
5825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 fi
5828
5829   if test "x$ac_ct_DLLTOOL" = x; then
5830     DLLTOOL="false"
5831   else
5832     case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838     DLLTOOL=$ac_ct_DLLTOOL
5839   fi
5840 else
5841   DLLTOOL="$ac_cv_prog_DLLTOOL"
5842 fi
5843
5844   if test -n "$ac_tool_prefix"; then
5845   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 printf %s "checking for $ac_word... " >&6; }
5849 if test ${ac_cv_prog_OBJDUMP+y}
5850 then :
5851   printf %s "(cached) " >&6
5852 else $as_nop
5853   if test -n "$OBJDUMP"; then
5854   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   case $as_dir in #(((
5861     '') as_dir=./ ;;
5862     */) ;;
5863     *) as_dir=$as_dir/ ;;
5864   esac
5865     for ac_exec_ext in '' $ac_executable_extensions; do
5866   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5867     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5868     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5869     break 2
5870   fi
5871 done
5872   done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 OBJDUMP=$ac_cv_prog_OBJDUMP
5878 if test -n "$OBJDUMP"; then
5879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5880 printf "%s\n" "$OBJDUMP" >&6; }
5881 else
5882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 printf "%s\n" "no" >&6; }
5884 fi
5885
5886
5887 fi
5888 if test -z "$ac_cv_prog_OBJDUMP"; then
5889   ac_ct_OBJDUMP=$OBJDUMP
5890   # Extract the first word of "objdump", so it can be a program name with args.
5891 set dummy objdump; ac_word=$2
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 printf %s "checking for $ac_word... " >&6; }
5894 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5895 then :
5896   printf %s "(cached) " >&6
5897 else $as_nop
5898   if test -n "$ac_ct_OBJDUMP"; then
5899   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   case $as_dir in #(((
5906     '') as_dir=./ ;;
5907     */) ;;
5908     *) as_dir=$as_dir/ ;;
5909   esac
5910     for ac_exec_ext in '' $ac_executable_extensions; do
5911   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5912     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5913     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917   done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5923 if test -n "$ac_ct_OBJDUMP"; then
5924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5925 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5926 else
5927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 printf "%s\n" "no" >&6; }
5929 fi
5930
5931   if test "x$ac_ct_OBJDUMP" = x; then
5932     OBJDUMP="false"
5933   else
5934     case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938 ac_tool_warned=yes ;;
5939 esac
5940     OBJDUMP=$ac_ct_OBJDUMP
5941   fi
5942 else
5943   OBJDUMP="$ac_cv_prog_OBJDUMP"
5944 fi
5945
5946   ;;
5947 esac
5948
5949 test -z "$AS" && AS=as
5950
5951
5952
5953
5954
5955 test -z "$DLLTOOL" && DLLTOOL=dlltool
5956
5957
5958
5959
5960
5961 test -z "$OBJDUMP" && OBJDUMP=objdump
5962
5963
5964
5965
5966
5967
5968
5969 case `pwd` in
5970   *\ * | *\     *)
5971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5972 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5973 esac
5974
5975
5976
5977 macro_version='2.4.6'
5978 macro_revision='2.4.6'
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 ltmain=$ac_aux_dir/ltmain.sh
5994
5995 # Backslashify metacharacters that are still active within
5996 # double-quoted strings.
5997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5998
5999 # Same as above, but do not quote variable references.
6000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6001
6002 # Sed substitution to delay expansion of an escaped shell variable in a
6003 # double_quote_subst'ed string.
6004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6005
6006 # Sed substitution to delay expansion of an escaped single quote.
6007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6008
6009 # Sed substitution to avoid accidental globbing in evaled expressions
6010 no_glob_subst='s/\*/\\\*/g'
6011
6012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6015
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6017 printf %s "checking how to print strings... " >&6; }
6018 # Test print first, because it will be a builtin if present.
6019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6020    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6021   ECHO='print -r --'
6022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6023   ECHO='printf %s\n'
6024 else
6025   # Use this function as a fallback that always works.
6026   func_fallback_echo ()
6027   {
6028     eval 'cat <<_LTECHO_EOF
6029 $1
6030 _LTECHO_EOF'
6031   }
6032   ECHO='func_fallback_echo'
6033 fi
6034
6035 # func_echo_all arg...
6036 # Invoke $ECHO with all args, space-separated.
6037 func_echo_all ()
6038 {
6039     $ECHO ""
6040 }
6041
6042 case $ECHO in
6043   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6044 printf "%s\n" "printf" >&6; } ;;
6045   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6046 printf "%s\n" "print -r" >&6; } ;;
6047   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6048 printf "%s\n" "cat" >&6; } ;;
6049 esac
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6065 printf %s "checking for a sed that does not truncate output... " >&6; }
6066 if test ${ac_cv_path_SED+y}
6067 then :
6068   printf %s "(cached) " >&6
6069 else $as_nop
6070             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6071      for ac_i in 1 2 3 4 5 6 7; do
6072        ac_script="$ac_script$as_nl$ac_script"
6073      done
6074      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6075      { ac_script=; unset ac_script;}
6076      if test -z "$SED"; then
6077   ac_path_SED_found=false
6078   # Loop through the user's path and test for each of PROGNAME-LIST
6079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   case $as_dir in #(((
6084     '') as_dir=./ ;;
6085     */) ;;
6086     *) as_dir=$as_dir/ ;;
6087   esac
6088     for ac_prog in sed gsed
6089    do
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6092       as_fn_executable_p "$ac_path_SED" || continue
6093 # Check for GNU ac_path_SED and select it if it is found.
6094   # Check for GNU $ac_path_SED
6095 case `"$ac_path_SED" --version 2>&1` in
6096 *GNU*)
6097   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6098 *)
6099   ac_count=0
6100   printf %s 0123456789 >"conftest.in"
6101   while :
6102   do
6103     cat "conftest.in" "conftest.in" >"conftest.tmp"
6104     mv "conftest.tmp" "conftest.in"
6105     cp "conftest.in" "conftest.nl"
6106     printf "%s\n" '' >> "conftest.nl"
6107     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6108     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6109     as_fn_arith $ac_count + 1 && ac_count=$as_val
6110     if test $ac_count -gt ${ac_path_SED_max-0}; then
6111       # Best one so far, save it but keep looking for a better one
6112       ac_cv_path_SED="$ac_path_SED"
6113       ac_path_SED_max=$ac_count
6114     fi
6115     # 10*(2^10) chars as input seems more than enough
6116     test $ac_count -gt 10 && break
6117   done
6118   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6119 esac
6120
6121       $ac_path_SED_found && break 3
6122     done
6123   done
6124   done
6125 IFS=$as_save_IFS
6126   if test -z "$ac_cv_path_SED"; then
6127     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6128   fi
6129 else
6130   ac_cv_path_SED=$SED
6131 fi
6132
6133 fi
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6135 printf "%s\n" "$ac_cv_path_SED" >&6; }
6136  SED="$ac_cv_path_SED"
6137   rm -f conftest.sed
6138
6139 test -z "$SED" && SED=sed
6140 Xsed="$SED -e 1s/^X//"
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6153 printf %s "checking for grep that handles long lines and -e... " >&6; }
6154 if test ${ac_cv_path_GREP+y}
6155 then :
6156   printf %s "(cached) " >&6
6157 else $as_nop
6158   if test -z "$GREP"; then
6159   ac_path_GREP_found=false
6160   # Loop through the user's path and test for each of PROGNAME-LIST
6161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6163 do
6164   IFS=$as_save_IFS
6165   case $as_dir in #(((
6166     '') as_dir=./ ;;
6167     */) ;;
6168     *) as_dir=$as_dir/ ;;
6169   esac
6170     for ac_prog in grep ggrep
6171    do
6172     for ac_exec_ext in '' $ac_executable_extensions; do
6173       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6174       as_fn_executable_p "$ac_path_GREP" || continue
6175 # Check for GNU ac_path_GREP and select it if it is found.
6176   # Check for GNU $ac_path_GREP
6177 case `"$ac_path_GREP" --version 2>&1` in
6178 *GNU*)
6179   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6180 *)
6181   ac_count=0
6182   printf %s 0123456789 >"conftest.in"
6183   while :
6184   do
6185     cat "conftest.in" "conftest.in" >"conftest.tmp"
6186     mv "conftest.tmp" "conftest.in"
6187     cp "conftest.in" "conftest.nl"
6188     printf "%s\n" 'GREP' >> "conftest.nl"
6189     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191     as_fn_arith $ac_count + 1 && ac_count=$as_val
6192     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6193       # Best one so far, save it but keep looking for a better one
6194       ac_cv_path_GREP="$ac_path_GREP"
6195       ac_path_GREP_max=$ac_count
6196     fi
6197     # 10*(2^10) chars as input seems more than enough
6198     test $ac_count -gt 10 && break
6199   done
6200   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201 esac
6202
6203       $ac_path_GREP_found && break 3
6204     done
6205   done
6206   done
6207 IFS=$as_save_IFS
6208   if test -z "$ac_cv_path_GREP"; then
6209     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6210   fi
6211 else
6212   ac_cv_path_GREP=$GREP
6213 fi
6214
6215 fi
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6217 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6218  GREP="$ac_cv_path_GREP"
6219
6220
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6222 printf %s "checking for egrep... " >&6; }
6223 if test ${ac_cv_path_EGREP+y}
6224 then :
6225   printf %s "(cached) " >&6
6226 else $as_nop
6227   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6228    then ac_cv_path_EGREP="$GREP -E"
6229    else
6230      if test -z "$EGREP"; then
6231   ac_path_EGREP_found=false
6232   # Loop through the user's path and test for each of PROGNAME-LIST
6233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6235 do
6236   IFS=$as_save_IFS
6237   case $as_dir in #(((
6238     '') as_dir=./ ;;
6239     */) ;;
6240     *) as_dir=$as_dir/ ;;
6241   esac
6242     for ac_prog in egrep
6243    do
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6246       as_fn_executable_p "$ac_path_EGREP" || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248   # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6250 *GNU*)
6251   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6252 *)
6253   ac_count=0
6254   printf %s 0123456789 >"conftest.in"
6255   while :
6256   do
6257     cat "conftest.in" "conftest.in" >"conftest.tmp"
6258     mv "conftest.tmp" "conftest.in"
6259     cp "conftest.in" "conftest.nl"
6260     printf "%s\n" 'EGREP' >> "conftest.nl"
6261     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263     as_fn_arith $ac_count + 1 && ac_count=$as_val
6264     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265       # Best one so far, save it but keep looking for a better one
6266       ac_cv_path_EGREP="$ac_path_EGREP"
6267       ac_path_EGREP_max=$ac_count
6268     fi
6269     # 10*(2^10) chars as input seems more than enough
6270     test $ac_count -gt 10 && break
6271   done
6272   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 esac
6274
6275       $ac_path_EGREP_found && break 3
6276     done
6277   done
6278   done
6279 IFS=$as_save_IFS
6280   if test -z "$ac_cv_path_EGREP"; then
6281     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6282   fi
6283 else
6284   ac_cv_path_EGREP=$EGREP
6285 fi
6286
6287    fi
6288 fi
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6291  EGREP="$ac_cv_path_EGREP"
6292
6293
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6295 printf %s "checking for fgrep... " >&6; }
6296 if test ${ac_cv_path_FGREP+y}
6297 then :
6298   printf %s "(cached) " >&6
6299 else $as_nop
6300   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6301    then ac_cv_path_FGREP="$GREP -F"
6302    else
6303      if test -z "$FGREP"; then
6304   ac_path_FGREP_found=false
6305   # Loop through the user's path and test for each of PROGNAME-LIST
6306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6308 do
6309   IFS=$as_save_IFS
6310   case $as_dir in #(((
6311     '') as_dir=./ ;;
6312     */) ;;
6313     *) as_dir=$as_dir/ ;;
6314   esac
6315     for ac_prog in fgrep
6316    do
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6319       as_fn_executable_p "$ac_path_FGREP" || continue
6320 # Check for GNU ac_path_FGREP and select it if it is found.
6321   # Check for GNU $ac_path_FGREP
6322 case `"$ac_path_FGREP" --version 2>&1` in
6323 *GNU*)
6324   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6325 *)
6326   ac_count=0
6327   printf %s 0123456789 >"conftest.in"
6328   while :
6329   do
6330     cat "conftest.in" "conftest.in" >"conftest.tmp"
6331     mv "conftest.tmp" "conftest.in"
6332     cp "conftest.in" "conftest.nl"
6333     printf "%s\n" 'FGREP' >> "conftest.nl"
6334     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6335     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6336     as_fn_arith $ac_count + 1 && ac_count=$as_val
6337     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6338       # Best one so far, save it but keep looking for a better one
6339       ac_cv_path_FGREP="$ac_path_FGREP"
6340       ac_path_FGREP_max=$ac_count
6341     fi
6342     # 10*(2^10) chars as input seems more than enough
6343     test $ac_count -gt 10 && break
6344   done
6345   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6346 esac
6347
6348       $ac_path_FGREP_found && break 3
6349     done
6350   done
6351   done
6352 IFS=$as_save_IFS
6353   if test -z "$ac_cv_path_FGREP"; then
6354     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6355   fi
6356 else
6357   ac_cv_path_FGREP=$FGREP
6358 fi
6359
6360    fi
6361 fi
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6363 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6364  FGREP="$ac_cv_path_FGREP"
6365
6366
6367 test -z "$GREP" && GREP=grep
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 # Check whether --with-gnu-ld was given.
6388 if test ${with_gnu_ld+y}
6389 then :
6390   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6391 else $as_nop
6392   with_gnu_ld=no
6393 fi
6394
6395 ac_prog=ld
6396 if test yes = "$GCC"; then
6397   # Check if gcc -print-prog-name=ld gives a path.
6398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6399 printf %s "checking for ld used by $CC... " >&6; }
6400   case $host in
6401   *-*-mingw*)
6402     # gcc leaves a trailing carriage return, which upsets mingw
6403     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6404   *)
6405     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6406   esac
6407   case $ac_prog in
6408     # Accept absolute paths.
6409     [\\/]* | ?:[\\/]*)
6410       re_direlt='/[^/][^/]*/\.\./'
6411       # Canonicalize the pathname of ld
6412       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6413       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6414         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6415       done
6416       test -z "$LD" && LD=$ac_prog
6417       ;;
6418   "")
6419     # If it fails, then pretend we aren't using GCC.
6420     ac_prog=ld
6421     ;;
6422   *)
6423     # If it is relative, then search for the first ld in PATH.
6424     with_gnu_ld=unknown
6425     ;;
6426   esac
6427 elif test yes = "$with_gnu_ld"; then
6428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6429 printf %s "checking for GNU ld... " >&6; }
6430 else
6431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6432 printf %s "checking for non-GNU ld... " >&6; }
6433 fi
6434 if test ${lt_cv_path_LD+y}
6435 then :
6436   printf %s "(cached) " >&6
6437 else $as_nop
6438   if test -z "$LD"; then
6439   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6440   for ac_dir in $PATH; do
6441     IFS=$lt_save_ifs
6442     test -z "$ac_dir" && ac_dir=.
6443     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6444       lt_cv_path_LD=$ac_dir/$ac_prog
6445       # Check to see if the program is GNU ld.  I'd rather use --version,
6446       # but apparently some variants of GNU ld only accept -v.
6447       # Break only if it was the GNU/non-GNU ld that we prefer.
6448       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6449       *GNU* | *'with BFD'*)
6450         test no != "$with_gnu_ld" && break
6451         ;;
6452       *)
6453         test yes != "$with_gnu_ld" && break
6454         ;;
6455       esac
6456     fi
6457   done
6458   IFS=$lt_save_ifs
6459 else
6460   lt_cv_path_LD=$LD # Let the user override the test with a path.
6461 fi
6462 fi
6463
6464 LD=$lt_cv_path_LD
6465 if test -n "$LD"; then
6466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6467 printf "%s\n" "$LD" >&6; }
6468 else
6469   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 printf "%s\n" "no" >&6; }
6471 fi
6472 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6474 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6475 if test ${lt_cv_prog_gnu_ld+y}
6476 then :
6477   printf %s "(cached) " >&6
6478 else $as_nop
6479   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6480 case `$LD -v 2>&1 </dev/null` in
6481 *GNU* | *'with BFD'*)
6482   lt_cv_prog_gnu_ld=yes
6483   ;;
6484 *)
6485   lt_cv_prog_gnu_ld=no
6486   ;;
6487 esac
6488 fi
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6490 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6491 with_gnu_ld=$lt_cv_prog_gnu_ld
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6502 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6503 if test ${lt_cv_path_NM+y}
6504 then :
6505   printf %s "(cached) " >&6
6506 else $as_nop
6507   if test -n "$NM"; then
6508   # Let the user override the test.
6509   lt_cv_path_NM=$NM
6510 else
6511   lt_nm_to_check=${ac_tool_prefix}nm
6512   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6513     lt_nm_to_check="$lt_nm_to_check nm"
6514   fi
6515   for lt_tmp_nm in $lt_nm_to_check; do
6516     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6517     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6518       IFS=$lt_save_ifs
6519       test -z "$ac_dir" && ac_dir=.
6520       tmp_nm=$ac_dir/$lt_tmp_nm
6521       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6522         # Check to see if the nm accepts a BSD-compat flag.
6523         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6524         #   nm: unknown option "B" ignored
6525         # Tru64's nm complains that /dev/null is an invalid object file
6526         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6527         case $build_os in
6528         mingw*) lt_bad_file=conftest.nm/nofile ;;
6529         *) lt_bad_file=/dev/null ;;
6530         esac
6531         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6532         *$lt_bad_file* | *'Invalid file or object type'*)
6533           lt_cv_path_NM="$tmp_nm -B"
6534           break 2
6535           ;;
6536         *)
6537           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6538           */dev/null*)
6539             lt_cv_path_NM="$tmp_nm -p"
6540             break 2
6541             ;;
6542           *)
6543             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6544             continue # so that we can try to find one that supports BSD flags
6545             ;;
6546           esac
6547           ;;
6548         esac
6549       fi
6550     done
6551     IFS=$lt_save_ifs
6552   done
6553   : ${lt_cv_path_NM=no}
6554 fi
6555 fi
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6557 printf "%s\n" "$lt_cv_path_NM" >&6; }
6558 if test no != "$lt_cv_path_NM"; then
6559   NM=$lt_cv_path_NM
6560 else
6561   # Didn't find any BSD compatible name lister, look for dumpbin.
6562   if test -n "$DUMPBIN"; then :
6563     # Let the user override the test.
6564   else
6565     if test -n "$ac_tool_prefix"; then
6566   for ac_prog in dumpbin "link -dump"
6567   do
6568     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 printf %s "checking for $ac_word... " >&6; }
6572 if test ${ac_cv_prog_DUMPBIN+y}
6573 then :
6574   printf %s "(cached) " >&6
6575 else $as_nop
6576   if test -n "$DUMPBIN"; then
6577   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   case $as_dir in #(((
6584     '') as_dir=./ ;;
6585     */) ;;
6586     *) as_dir=$as_dir/ ;;
6587   esac
6588     for ac_exec_ext in '' $ac_executable_extensions; do
6589   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6590     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6591     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595   done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 DUMPBIN=$ac_cv_prog_DUMPBIN
6601 if test -n "$DUMPBIN"; then
6602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6603 printf "%s\n" "$DUMPBIN" >&6; }
6604 else
6605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 printf "%s\n" "no" >&6; }
6607 fi
6608
6609
6610     test -n "$DUMPBIN" && break
6611   done
6612 fi
6613 if test -z "$DUMPBIN"; then
6614   ac_ct_DUMPBIN=$DUMPBIN
6615   for ac_prog in dumpbin "link -dump"
6616 do
6617   # Extract the first word of "$ac_prog", so it can be a program name with args.
6618 set dummy $ac_prog; ac_word=$2
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 printf %s "checking for $ac_word... " >&6; }
6621 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6622 then :
6623   printf %s "(cached) " >&6
6624 else $as_nop
6625   if test -n "$ac_ct_DUMPBIN"; then
6626   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   case $as_dir in #(((
6633     '') as_dir=./ ;;
6634     */) ;;
6635     *) as_dir=$as_dir/ ;;
6636   esac
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6639     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6640     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6650 if test -n "$ac_ct_DUMPBIN"; then
6651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6652 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6653 else
6654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 printf "%s\n" "no" >&6; }
6656 fi
6657
6658
6659   test -n "$ac_ct_DUMPBIN" && break
6660 done
6661
6662   if test "x$ac_ct_DUMPBIN" = x; then
6663     DUMPBIN=":"
6664   else
6665     case $cross_compiling:$ac_tool_warned in
6666 yes:)
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671     DUMPBIN=$ac_ct_DUMPBIN
6672   fi
6673 fi
6674
6675     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6676     *COFF*)
6677       DUMPBIN="$DUMPBIN -symbols -headers"
6678       ;;
6679     *)
6680       DUMPBIN=:
6681       ;;
6682     esac
6683   fi
6684
6685   if test : != "$DUMPBIN"; then
6686     NM=$DUMPBIN
6687   fi
6688 fi
6689 test -z "$NM" && NM=nm
6690
6691
6692
6693
6694
6695
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6697 printf %s "checking the name lister ($NM) interface... " >&6; }
6698 if test ${lt_cv_nm_interface+y}
6699 then :
6700   printf %s "(cached) " >&6
6701 else $as_nop
6702   lt_cv_nm_interface="BSD nm"
6703   echo "int some_variable = 0;" > conftest.$ac_ext
6704   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6705   (eval "$ac_compile" 2>conftest.err)
6706   cat conftest.err >&5
6707   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6708   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6709   cat conftest.err >&5
6710   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6711   cat conftest.out >&5
6712   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6713     lt_cv_nm_interface="MS dumpbin"
6714   fi
6715   rm -f conftest*
6716 fi
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6718 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6719
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6721 printf %s "checking whether ln -s works... " >&6; }
6722 LN_S=$as_ln_s
6723 if test "$LN_S" = "ln -s"; then
6724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6725 printf "%s\n" "yes" >&6; }
6726 else
6727   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6728 printf "%s\n" "no, using $LN_S" >&6; }
6729 fi
6730
6731 # find the maximum length of command line arguments
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6733 printf %s "checking the maximum length of command line arguments... " >&6; }
6734 if test ${lt_cv_sys_max_cmd_len+y}
6735 then :
6736   printf %s "(cached) " >&6
6737 else $as_nop
6738     i=0
6739   teststring=ABCD
6740
6741   case $build_os in
6742   msdosdjgpp*)
6743     # On DJGPP, this test can blow up pretty badly due to problems in libc
6744     # (any single argument exceeding 2000 bytes causes a buffer overrun
6745     # during glob expansion).  Even if it were fixed, the result of this
6746     # check would be larger than it should be.
6747     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6748     ;;
6749
6750   gnu*)
6751     # Under GNU Hurd, this test is not required because there is
6752     # no limit to the length of command line arguments.
6753     # Libtool will interpret -1 as no limit whatsoever
6754     lt_cv_sys_max_cmd_len=-1;
6755     ;;
6756
6757   cygwin* | mingw* | cegcc*)
6758     # On Win9x/ME, this test blows up -- it succeeds, but takes
6759     # about 5 minutes as the teststring grows exponentially.
6760     # Worse, since 9x/ME are not pre-emptively multitasking,
6761     # you end up with a "frozen" computer, even though with patience
6762     # the test eventually succeeds (with a max line length of 256k).
6763     # Instead, let's just punt: use the minimum linelength reported by
6764     # all of the supported platforms: 8192 (on NT/2K/XP).
6765     lt_cv_sys_max_cmd_len=8192;
6766     ;;
6767
6768   mint*)
6769     # On MiNT this can take a long time and run out of memory.
6770     lt_cv_sys_max_cmd_len=8192;
6771     ;;
6772
6773   amigaos*)
6774     # On AmigaOS with pdksh, this test takes hours, literally.
6775     # So we just punt and use a minimum line length of 8192.
6776     lt_cv_sys_max_cmd_len=8192;
6777     ;;
6778
6779   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6780     # This has been around since 386BSD, at least.  Likely further.
6781     if test -x /sbin/sysctl; then
6782       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6783     elif test -x /usr/sbin/sysctl; then
6784       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6785     else
6786       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6787     fi
6788     # And add a safety zone
6789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6790     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6791     ;;
6792
6793   interix*)
6794     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6795     lt_cv_sys_max_cmd_len=196608
6796     ;;
6797
6798   os2*)
6799     # The test takes a long time on OS/2.
6800     lt_cv_sys_max_cmd_len=8192
6801     ;;
6802
6803   osf*)
6804     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6805     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6806     # nice to cause kernel panics so lets avoid the loop below.
6807     # First set a reasonable default.
6808     lt_cv_sys_max_cmd_len=16384
6809     #
6810     if test -x /sbin/sysconfig; then
6811       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6812         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6813       esac
6814     fi
6815     ;;
6816   sco3.2v5*)
6817     lt_cv_sys_max_cmd_len=102400
6818     ;;
6819   sysv5* | sco5v6* | sysv4.2uw2*)
6820     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6821     if test -n "$kargmax"; then
6822       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6823     else
6824       lt_cv_sys_max_cmd_len=32768
6825     fi
6826     ;;
6827   *)
6828     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6829     if test -n "$lt_cv_sys_max_cmd_len" && \
6830        test undefined != "$lt_cv_sys_max_cmd_len"; then
6831       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6832       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6833     else
6834       # Make teststring a little bigger before we do anything with it.
6835       # a 1K string should be a reasonable start.
6836       for i in 1 2 3 4 5 6 7 8; do
6837         teststring=$teststring$teststring
6838       done
6839       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6840       # If test is not a shell built-in, we'll probably end up computing a
6841       # maximum length that is only half of the actual maximum length, but
6842       # we can't tell.
6843       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6844                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6845               test 17 != "$i" # 1/2 MB should be enough
6846       do
6847         i=`expr $i + 1`
6848         teststring=$teststring$teststring
6849       done
6850       # Only check the string length outside the loop.
6851       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6852       teststring=
6853       # Add a significant safety factor because C++ compilers can tack on
6854       # massive amounts of additional arguments before passing them to the
6855       # linker.  It appears as though 1/2 is a usable value.
6856       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6857     fi
6858     ;;
6859   esac
6860
6861 fi
6862
6863 if test -n "$lt_cv_sys_max_cmd_len"; then
6864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6865 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6866 else
6867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6868 printf "%s\n" "none" >&6; }
6869 fi
6870 max_cmd_len=$lt_cv_sys_max_cmd_len
6871
6872
6873
6874
6875
6876
6877 : ${CP="cp -f"}
6878 : ${MV="mv -f"}
6879 : ${RM="rm -f"}
6880
6881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6882   lt_unset=unset
6883 else
6884   lt_unset=false
6885 fi
6886
6887
6888
6889
6890
6891 # test EBCDIC or ASCII
6892 case `echo X|tr X '\101'` in
6893  A) # ASCII based system
6894     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6895   lt_SP2NL='tr \040 \012'
6896   lt_NL2SP='tr \015\012 \040\040'
6897   ;;
6898  *) # EBCDIC based system
6899   lt_SP2NL='tr \100 \n'
6900   lt_NL2SP='tr \r\n \100\100'
6901   ;;
6902 esac
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6913 printf %s "checking how to convert $build file names to $host format... " >&6; }
6914 if test ${lt_cv_to_host_file_cmd+y}
6915 then :
6916   printf %s "(cached) " >&6
6917 else $as_nop
6918   case $host in
6919   *-*-mingw* )
6920     case $build in
6921       *-*-mingw* ) # actually msys
6922         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6923         ;;
6924       *-*-cygwin* )
6925         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6926         ;;
6927       * ) # otherwise, assume *nix
6928         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6929         ;;
6930     esac
6931     ;;
6932   *-*-cygwin* )
6933     case $build in
6934       *-*-mingw* ) # actually msys
6935         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6936         ;;
6937       *-*-cygwin* )
6938         lt_cv_to_host_file_cmd=func_convert_file_noop
6939         ;;
6940       * ) # otherwise, assume *nix
6941         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6942         ;;
6943     esac
6944     ;;
6945   * ) # unhandled hosts (and "normal" native builds)
6946     lt_cv_to_host_file_cmd=func_convert_file_noop
6947     ;;
6948 esac
6949
6950 fi
6951
6952 to_host_file_cmd=$lt_cv_to_host_file_cmd
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6954 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6955
6956
6957
6958
6959
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6961 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6962 if test ${lt_cv_to_tool_file_cmd+y}
6963 then :
6964   printf %s "(cached) " >&6
6965 else $as_nop
6966   #assume ordinary cross tools, or native build.
6967 lt_cv_to_tool_file_cmd=func_convert_file_noop
6968 case $host in
6969   *-*-mingw* )
6970     case $build in
6971       *-*-mingw* ) # actually msys
6972         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6973         ;;
6974     esac
6975     ;;
6976 esac
6977
6978 fi
6979
6980 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6982 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6983
6984
6985
6986
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6989 printf %s "checking for $LD option to reload object files... " >&6; }
6990 if test ${lt_cv_ld_reload_flag+y}
6991 then :
6992   printf %s "(cached) " >&6
6993 else $as_nop
6994   lt_cv_ld_reload_flag='-r'
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6997 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6998 reload_flag=$lt_cv_ld_reload_flag
6999 case $reload_flag in
7000 "" | " "*) ;;
7001 *) reload_flag=" $reload_flag" ;;
7002 esac
7003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7004 case $host_os in
7005   cygwin* | mingw* | pw32* | cegcc*)
7006     if test yes != "$GCC"; then
7007       reload_cmds=false
7008     fi
7009     ;;
7010   darwin*)
7011     if test yes = "$GCC"; then
7012       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7013     else
7014       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7015     fi
7016     ;;
7017 esac
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027 if test -n "$ac_tool_prefix"; then
7028   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 printf %s "checking for $ac_word... " >&6; }
7032 if test ${ac_cv_prog_OBJDUMP+y}
7033 then :
7034   printf %s "(cached) " >&6
7035 else $as_nop
7036   if test -n "$OBJDUMP"; then
7037   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   case $as_dir in #(((
7044     '') as_dir=./ ;;
7045     */) ;;
7046     *) as_dir=$as_dir/ ;;
7047   esac
7048     for ac_exec_ext in '' $ac_executable_extensions; do
7049   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7051     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055   done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 OBJDUMP=$ac_cv_prog_OBJDUMP
7061 if test -n "$OBJDUMP"; then
7062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7063 printf "%s\n" "$OBJDUMP" >&6; }
7064 else
7065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_OBJDUMP"; then
7072   ac_ct_OBJDUMP=$OBJDUMP
7073   # Extract the first word of "objdump", so it can be a program name with args.
7074 set dummy objdump; ac_word=$2
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 printf %s "checking for $ac_word... " >&6; }
7077 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7078 then :
7079   printf %s "(cached) " >&6
7080 else $as_nop
7081   if test -n "$ac_ct_OBJDUMP"; then
7082   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   case $as_dir in #(((
7089     '') as_dir=./ ;;
7090     */) ;;
7091     *) as_dir=$as_dir/ ;;
7092   esac
7093     for ac_exec_ext in '' $ac_executable_extensions; do
7094   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7095     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7096     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100   done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7106 if test -n "$ac_ct_OBJDUMP"; then
7107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7108 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7109 else
7110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 printf "%s\n" "no" >&6; }
7112 fi
7113
7114   if test "x$ac_ct_OBJDUMP" = x; then
7115     OBJDUMP="false"
7116   else
7117     case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123     OBJDUMP=$ac_ct_OBJDUMP
7124   fi
7125 else
7126   OBJDUMP="$ac_cv_prog_OBJDUMP"
7127 fi
7128
7129 test -z "$OBJDUMP" && OBJDUMP=objdump
7130
7131
7132
7133
7134
7135
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7137 printf %s "checking how to recognize dependent libraries... " >&6; }
7138 if test ${lt_cv_deplibs_check_method+y}
7139 then :
7140   printf %s "(cached) " >&6
7141 else $as_nop
7142   lt_cv_file_magic_cmd='$MAGIC_CMD'
7143 lt_cv_file_magic_test_file=
7144 lt_cv_deplibs_check_method='unknown'
7145 # Need to set the preceding variable on all platforms that support
7146 # interlibrary dependencies.
7147 # 'none' -- dependencies not supported.
7148 # 'unknown' -- same as none, but documents that we really don't know.
7149 # 'pass_all' -- all dependencies passed with no checks.
7150 # 'test_compile' -- check by making test program.
7151 # 'file_magic [[regex]]' -- check by looking for files in library path
7152 # that responds to the $file_magic_cmd with a given extended regex.
7153 # If you have 'file' or equivalent on your system and you're not sure
7154 # whether 'pass_all' will *always* work, you probably want this one.
7155
7156 case $host_os in
7157 aix[4-9]*)
7158   lt_cv_deplibs_check_method=pass_all
7159   ;;
7160
7161 beos*)
7162   lt_cv_deplibs_check_method=pass_all
7163   ;;
7164
7165 bsdi[45]*)
7166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7167   lt_cv_file_magic_cmd='/usr/bin/file -L'
7168   lt_cv_file_magic_test_file=/shlib/libc.so
7169   ;;
7170
7171 cygwin*)
7172   # func_win32_libid is a shell function defined in ltmain.sh
7173   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7174   lt_cv_file_magic_cmd='func_win32_libid'
7175   ;;
7176
7177 mingw* | pw32*)
7178   # Base MSYS/MinGW do not provide the 'file' command needed by
7179   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7180   # unless we find 'file', for example because we are cross-compiling.
7181   if ( file / ) >/dev/null 2>&1; then
7182     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7183     lt_cv_file_magic_cmd='func_win32_libid'
7184   else
7185     # Keep this pattern in sync with the one in func_win32_libid.
7186     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7187     lt_cv_file_magic_cmd='$OBJDUMP -f'
7188   fi
7189   ;;
7190
7191 cegcc*)
7192   # use the weaker test based on 'objdump'. See mingw*.
7193   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7194   lt_cv_file_magic_cmd='$OBJDUMP -f'
7195   ;;
7196
7197 darwin* | rhapsody*)
7198   lt_cv_deplibs_check_method=pass_all
7199   ;;
7200
7201 freebsd* | dragonfly*)
7202   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7203     case $host_cpu in
7204     i*86 )
7205       # Not sure whether the presence of OpenBSD here was a mistake.
7206       # Let's accept both of them until this is cleared up.
7207       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7208       lt_cv_file_magic_cmd=/usr/bin/file
7209       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7210       ;;
7211     esac
7212   else
7213     lt_cv_deplibs_check_method=pass_all
7214   fi
7215   ;;
7216
7217 haiku*)
7218   lt_cv_deplibs_check_method=pass_all
7219   ;;
7220
7221 hpux10.20* | hpux11*)
7222   lt_cv_file_magic_cmd=/usr/bin/file
7223   case $host_cpu in
7224   ia64*)
7225     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7226     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7227     ;;
7228   hppa*64*)
7229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7230     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7231     ;;
7232   *)
7233     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7234     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7235     ;;
7236   esac
7237   ;;
7238
7239 interix[3-9]*)
7240   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7241   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7242   ;;
7243
7244 irix5* | irix6* | nonstopux*)
7245   case $LD in
7246   *-32|*"-32 ") libmagic=32-bit;;
7247   *-n32|*"-n32 ") libmagic=N32;;
7248   *-64|*"-64 ") libmagic=64-bit;;
7249   *) libmagic=never-match;;
7250   esac
7251   lt_cv_deplibs_check_method=pass_all
7252   ;;
7253
7254 # This must be glibc/ELF.
7255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7256   lt_cv_deplibs_check_method=pass_all
7257   ;;
7258
7259 netbsd* | netbsdelf*-gnu)
7260   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7261     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7262   else
7263     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7264   fi
7265   ;;
7266
7267 newos6*)
7268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7269   lt_cv_file_magic_cmd=/usr/bin/file
7270   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7271   ;;
7272
7273 *nto* | *qnx*)
7274   lt_cv_deplibs_check_method=pass_all
7275   ;;
7276
7277 openbsd* | bitrig*)
7278   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7279     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7280   else
7281     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7282   fi
7283   ;;
7284
7285 osf3* | osf4* | osf5*)
7286   lt_cv_deplibs_check_method=pass_all
7287   ;;
7288
7289 rdos*)
7290   lt_cv_deplibs_check_method=pass_all
7291   ;;
7292
7293 solaris*)
7294   lt_cv_deplibs_check_method=pass_all
7295   ;;
7296
7297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7298   lt_cv_deplibs_check_method=pass_all
7299   ;;
7300
7301 sysv4 | sysv4.3*)
7302   case $host_vendor in
7303   motorola)
7304     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7305     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7306     ;;
7307   ncr)
7308     lt_cv_deplibs_check_method=pass_all
7309     ;;
7310   sequent)
7311     lt_cv_file_magic_cmd='/bin/file'
7312     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7313     ;;
7314   sni)
7315     lt_cv_file_magic_cmd='/bin/file'
7316     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7317     lt_cv_file_magic_test_file=/lib/libc.so
7318     ;;
7319   siemens)
7320     lt_cv_deplibs_check_method=pass_all
7321     ;;
7322   pc)
7323     lt_cv_deplibs_check_method=pass_all
7324     ;;
7325   esac
7326   ;;
7327
7328 tpf*)
7329   lt_cv_deplibs_check_method=pass_all
7330   ;;
7331 os2*)
7332   lt_cv_deplibs_check_method=pass_all
7333   ;;
7334 esac
7335
7336 fi
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7338 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7339
7340 file_magic_glob=
7341 want_nocaseglob=no
7342 if test "$build" = "$host"; then
7343   case $host_os in
7344   mingw* | pw32*)
7345     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7346       want_nocaseglob=yes
7347     else
7348       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7349     fi
7350     ;;
7351   esac
7352 fi
7353
7354 file_magic_cmd=$lt_cv_file_magic_cmd
7355 deplibs_check_method=$lt_cv_deplibs_check_method
7356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379 if test -n "$ac_tool_prefix"; then
7380   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 printf %s "checking for $ac_word... " >&6; }
7384 if test ${ac_cv_prog_DLLTOOL+y}
7385 then :
7386   printf %s "(cached) " >&6
7387 else $as_nop
7388   if test -n "$DLLTOOL"; then
7389   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   case $as_dir in #(((
7396     '') as_dir=./ ;;
7397     */) ;;
7398     *) as_dir=$as_dir/ ;;
7399   esac
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7402     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 DLLTOOL=$ac_cv_prog_DLLTOOL
7413 if test -n "$DLLTOOL"; then
7414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7415 printf "%s\n" "$DLLTOOL" >&6; }
7416 else
7417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 printf "%s\n" "no" >&6; }
7419 fi
7420
7421
7422 fi
7423 if test -z "$ac_cv_prog_DLLTOOL"; then
7424   ac_ct_DLLTOOL=$DLLTOOL
7425   # Extract the first word of "dlltool", so it can be a program name with args.
7426 set dummy dlltool; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7430 then :
7431   printf %s "(cached) " >&6
7432 else $as_nop
7433   if test -n "$ac_ct_DLLTOOL"; then
7434   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   case $as_dir in #(((
7441     '') as_dir=./ ;;
7442     */) ;;
7443     *) as_dir=$as_dir/ ;;
7444   esac
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7458 if test -n "$ac_ct_DLLTOOL"; then
7459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7460 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7461 else
7462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 printf "%s\n" "no" >&6; }
7464 fi
7465
7466   if test "x$ac_ct_DLLTOOL" = x; then
7467     DLLTOOL="false"
7468   else
7469     case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475     DLLTOOL=$ac_ct_DLLTOOL
7476   fi
7477 else
7478   DLLTOOL="$ac_cv_prog_DLLTOOL"
7479 fi
7480
7481 test -z "$DLLTOOL" && DLLTOOL=dlltool
7482
7483
7484
7485
7486
7487
7488
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7490 printf %s "checking how to associate runtime and link libraries... " >&6; }
7491 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7492 then :
7493   printf %s "(cached) " >&6
7494 else $as_nop
7495   lt_cv_sharedlib_from_linklib_cmd='unknown'
7496
7497 case $host_os in
7498 cygwin* | mingw* | pw32* | cegcc*)
7499   # two different shell functions defined in ltmain.sh;
7500   # decide which one to use based on capabilities of $DLLTOOL
7501   case `$DLLTOOL --help 2>&1` in
7502   *--identify-strict*)
7503     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7504     ;;
7505   *)
7506     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7507     ;;
7508   esac
7509   ;;
7510 *)
7511   # fallback: assume linklib IS sharedlib
7512   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7513   ;;
7514 esac
7515
7516 fi
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7518 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7519 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7520 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7521
7522
7523
7524
7525
7526
7527
7528 if test -n "$ac_tool_prefix"; then
7529   for ac_prog in ar
7530   do
7531     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 printf %s "checking for $ac_word... " >&6; }
7535 if test ${ac_cv_prog_AR+y}
7536 then :
7537   printf %s "(cached) " >&6
7538 else $as_nop
7539   if test -n "$AR"; then
7540   ac_cv_prog_AR="$AR" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   case $as_dir in #(((
7547     '') as_dir=./ ;;
7548     */) ;;
7549     *) as_dir=$as_dir/ ;;
7550   esac
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7553     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7554     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 AR=$ac_cv_prog_AR
7564 if test -n "$AR"; then
7565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7566 printf "%s\n" "$AR" >&6; }
7567 else
7568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 printf "%s\n" "no" >&6; }
7570 fi
7571
7572
7573     test -n "$AR" && break
7574   done
7575 fi
7576 if test -z "$AR"; then
7577   ac_ct_AR=$AR
7578   for ac_prog in ar
7579 do
7580   # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 printf %s "checking for $ac_word... " >&6; }
7584 if test ${ac_cv_prog_ac_ct_AR+y}
7585 then :
7586   printf %s "(cached) " >&6
7587 else $as_nop
7588   if test -n "$ac_ct_AR"; then
7589   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   case $as_dir in #(((
7596     '') as_dir=./ ;;
7597     */) ;;
7598     *) as_dir=$as_dir/ ;;
7599   esac
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_ac_ct_AR="$ac_prog"
7603     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7613 if test -n "$ac_ct_AR"; then
7614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7615 printf "%s\n" "$ac_ct_AR" >&6; }
7616 else
7617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 printf "%s\n" "no" >&6; }
7619 fi
7620
7621
7622   test -n "$ac_ct_AR" && break
7623 done
7624
7625   if test "x$ac_ct_AR" = x; then
7626     AR="false"
7627   else
7628     case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634     AR=$ac_ct_AR
7635   fi
7636 fi
7637
7638 : ${AR=ar}
7639 : ${AR_FLAGS=cr}
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7652 printf %s "checking for archiver @FILE support... " >&6; }
7653 if test ${lt_cv_ar_at_file+y}
7654 then :
7655   printf %s "(cached) " >&6
7656 else $as_nop
7657   lt_cv_ar_at_file=no
7658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660
7661 int
7662 main (void)
7663 {
7664
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"
7670 then :
7671   echo conftest.$ac_objext > conftest.lst
7672       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7673       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7674   (eval $lt_ar_try) 2>&5
7675   ac_status=$?
7676   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677   test $ac_status = 0; }
7678       if test 0 -eq "$ac_status"; then
7679         # Ensure the archiver fails upon bogus file names.
7680         rm -f conftest.$ac_objext libconftest.a
7681         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7682   (eval $lt_ar_try) 2>&5
7683   ac_status=$?
7684   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685   test $ac_status = 0; }
7686         if test 0 -ne "$ac_status"; then
7687           lt_cv_ar_at_file=@
7688         fi
7689       fi
7690       rm -f conftest.* libconftest.a
7691
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7694
7695 fi
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7697 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7698
7699 if test no = "$lt_cv_ar_at_file"; then
7700   archiver_list_spec=
7701 else
7702   archiver_list_spec=$lt_cv_ar_at_file
7703 fi
7704
7705
7706
7707
7708
7709
7710
7711 if test -n "$ac_tool_prefix"; then
7712   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}strip; ac_word=$2
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 printf %s "checking for $ac_word... " >&6; }
7716 if test ${ac_cv_prog_STRIP+y}
7717 then :
7718   printf %s "(cached) " >&6
7719 else $as_nop
7720   if test -n "$STRIP"; then
7721   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   case $as_dir in #(((
7728     '') as_dir=./ ;;
7729     */) ;;
7730     *) as_dir=$as_dir/ ;;
7731   esac
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7734     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7735     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 STRIP=$ac_cv_prog_STRIP
7745 if test -n "$STRIP"; then
7746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7747 printf "%s\n" "$STRIP" >&6; }
7748 else
7749   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 printf "%s\n" "no" >&6; }
7751 fi
7752
7753
7754 fi
7755 if test -z "$ac_cv_prog_STRIP"; then
7756   ac_ct_STRIP=$STRIP
7757   # Extract the first word of "strip", so it can be a program name with args.
7758 set dummy strip; ac_word=$2
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 printf %s "checking for $ac_word... " >&6; }
7761 if test ${ac_cv_prog_ac_ct_STRIP+y}
7762 then :
7763   printf %s "(cached) " >&6
7764 else $as_nop
7765   if test -n "$ac_ct_STRIP"; then
7766   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   case $as_dir in #(((
7773     '') as_dir=./ ;;
7774     */) ;;
7775     *) as_dir=$as_dir/ ;;
7776   esac
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7779     ac_cv_prog_ac_ct_STRIP="strip"
7780     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7790 if test -n "$ac_ct_STRIP"; then
7791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7792 printf "%s\n" "$ac_ct_STRIP" >&6; }
7793 else
7794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 printf "%s\n" "no" >&6; }
7796 fi
7797
7798   if test "x$ac_ct_STRIP" = x; then
7799     STRIP=":"
7800   else
7801     case $cross_compiling:$ac_tool_warned in
7802 yes:)
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7806 esac
7807     STRIP=$ac_ct_STRIP
7808   fi
7809 else
7810   STRIP="$ac_cv_prog_STRIP"
7811 fi
7812
7813 test -z "$STRIP" && STRIP=:
7814
7815
7816
7817
7818
7819
7820 if test -n "$ac_tool_prefix"; then
7821   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 printf %s "checking for $ac_word... " >&6; }
7825 if test ${ac_cv_prog_RANLIB+y}
7826 then :
7827   printf %s "(cached) " >&6
7828 else $as_nop
7829   if test -n "$RANLIB"; then
7830   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835   IFS=$as_save_IFS
7836   case $as_dir in #(((
7837     '') as_dir=./ ;;
7838     */) ;;
7839     *) as_dir=$as_dir/ ;;
7840   esac
7841     for ac_exec_ext in '' $ac_executable_extensions; do
7842   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7844     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848   done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 RANLIB=$ac_cv_prog_RANLIB
7854 if test -n "$RANLIB"; then
7855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7856 printf "%s\n" "$RANLIB" >&6; }
7857 else
7858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 printf "%s\n" "no" >&6; }
7860 fi
7861
7862
7863 fi
7864 if test -z "$ac_cv_prog_RANLIB"; then
7865   ac_ct_RANLIB=$RANLIB
7866   # Extract the first word of "ranlib", so it can be a program name with args.
7867 set dummy ranlib; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7871 then :
7872   printf %s "(cached) " >&6
7873 else $as_nop
7874   if test -n "$ac_ct_RANLIB"; then
7875   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880   IFS=$as_save_IFS
7881   case $as_dir in #(((
7882     '') as_dir=./ ;;
7883     */) ;;
7884     *) as_dir=$as_dir/ ;;
7885   esac
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888     ac_cv_prog_ac_ct_RANLIB="ranlib"
7889     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7899 if test -n "$ac_ct_RANLIB"; then
7900   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7901 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7902 else
7903   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 printf "%s\n" "no" >&6; }
7905 fi
7906
7907   if test "x$ac_ct_RANLIB" = x; then
7908     RANLIB=":"
7909   else
7910     case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916     RANLIB=$ac_ct_RANLIB
7917   fi
7918 else
7919   RANLIB="$ac_cv_prog_RANLIB"
7920 fi
7921
7922 test -z "$RANLIB" && RANLIB=:
7923
7924
7925
7926
7927
7928
7929 # Determine commands to create old-style static archives.
7930 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7931 old_postinstall_cmds='chmod 644 $oldlib'
7932 old_postuninstall_cmds=
7933
7934 if test -n "$RANLIB"; then
7935   case $host_os in
7936   bitrig* | openbsd*)
7937     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7938     ;;
7939   *)
7940     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7941     ;;
7942   esac
7943   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7944 fi
7945
7946 case $host_os in
7947   darwin*)
7948     lock_old_archive_extraction=yes ;;
7949   *)
7950     lock_old_archive_extraction=no ;;
7951 esac
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 # If no C compiler was specified, use CC.
7992 LTCC=${LTCC-"$CC"}
7993
7994 # If no C compiler flags were specified, use CFLAGS.
7995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7996
7997 # Allow CC to be a program name with arguments.
7998 compiler=$CC
7999
8000
8001 # Check for command to grab the raw symbol name followed by C symbol from nm.
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8003 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8004 if test ${lt_cv_sys_global_symbol_pipe+y}
8005 then :
8006   printf %s "(cached) " >&6
8007 else $as_nop
8008
8009 # These are sane defaults that work on at least a few old systems.
8010 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8011
8012 # Character class describing NM global symbol codes.
8013 symcode='[BCDEGRST]'
8014
8015 # Regexp to match symbols that can be accessed directly from C.
8016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8017
8018 # Define system-specific variables.
8019 case $host_os in
8020 aix*)
8021   symcode='[BCDT]'
8022   ;;
8023 cygwin* | mingw* | pw32* | cegcc*)
8024   symcode='[ABCDGISTW]'
8025   ;;
8026 hpux*)
8027   if test ia64 = "$host_cpu"; then
8028     symcode='[ABCDEGRST]'
8029   fi
8030   ;;
8031 irix* | nonstopux*)
8032   symcode='[BCDEGRST]'
8033   ;;
8034 osf*)
8035   symcode='[BCDEGQRST]'
8036   ;;
8037 solaris*)
8038   symcode='[BDRT]'
8039   ;;
8040 sco3.2v5*)
8041   symcode='[DT]'
8042   ;;
8043 sysv4.2uw2*)
8044   symcode='[DT]'
8045   ;;
8046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8047   symcode='[ABDT]'
8048   ;;
8049 sysv4)
8050   symcode='[DFNSTU]'
8051   ;;
8052 esac
8053
8054 # If we're using GNU nm, then use its standard symbol codes.
8055 case `$NM -V 2>&1` in
8056 *GNU* | *'with BFD'*)
8057   symcode='[ABCDGIRSTW]' ;;
8058 esac
8059
8060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8061   # Gets list of data symbols to import.
8062   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8063   # Adjust the below global symbol transforms to fixup imported variables.
8064   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8065   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8066   lt_c_name_lib_hook="\
8067   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8068   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8069 else
8070   # Disable hooks by default.
8071   lt_cv_sys_global_symbol_to_import=
8072   lt_cdecl_hook=
8073   lt_c_name_hook=
8074   lt_c_name_lib_hook=
8075 fi
8076
8077 # Transform an extracted symbol line into a proper C declaration.
8078 # Some systems (esp. on ia64) link data and code symbols differently,
8079 # so use this general approach.
8080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8081 $lt_cdecl_hook\
8082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8084
8085 # Transform an extracted symbol line into symbol name and symbol address
8086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8087 $lt_c_name_hook\
8088 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8089 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8090
8091 # Transform an extracted symbol line into symbol name with lib prefix and
8092 # symbol address.
8093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8094 $lt_c_name_lib_hook\
8095 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8097 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8098
8099 # Handle CRLF in mingw tool chain
8100 opt_cr=
8101 case $build_os in
8102 mingw*)
8103   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8104   ;;
8105 esac
8106
8107 # Try without a prefix underscore, then with it.
8108 for ac_symprfx in "" "_"; do
8109
8110   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8111   symxfrm="\\1 $ac_symprfx\\2 \\2"
8112
8113   # Write the raw and C identifiers.
8114   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8115     # Fake it for dumpbin and say T for any non-static function,
8116     # D for any global variable and I for any imported variable.
8117     # Also find C++ and __fastcall symbols from MSVC++,
8118     # which start with @ or ?.
8119     lt_cv_sys_global_symbol_pipe="$AWK '"\
8120 "     {last_section=section; section=\$ 3};"\
8121 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8122 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8123 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8124 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8125 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8126 "     \$ 0!~/External *\|/{next};"\
8127 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8128 "     {if(hide[section]) next};"\
8129 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8130 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8131 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8132 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8133 "     ' prfx=^$ac_symprfx"
8134   else
8135     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8136   fi
8137   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8138
8139   # Check to see that the pipe works correctly.
8140   pipe_works=no
8141
8142   rm -f conftest*
8143   cat > conftest.$ac_ext <<_LT_EOF
8144 #ifdef __cplusplus
8145 extern "C" {
8146 #endif
8147 char nm_test_var;
8148 void nm_test_func(void);
8149 void nm_test_func(void){}
8150 #ifdef __cplusplus
8151 }
8152 #endif
8153 int main(){nm_test_var='a';nm_test_func();return(0);}
8154 _LT_EOF
8155
8156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8157   (eval $ac_compile) 2>&5
8158   ac_status=$?
8159   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160   test $ac_status = 0; }; then
8161     # Now try to grab the symbols.
8162     nlist=conftest.nm
8163     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8164     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8165       # Try sorting and uniquifying the output.
8166       if sort "$nlist" | uniq > "$nlist"T; then
8167         mv -f "$nlist"T "$nlist"
8168       else
8169         rm -f "$nlist"T
8170       fi
8171
8172       # Make sure that we snagged all the symbols we need.
8173       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8174         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8175           cat <<_LT_EOF > conftest.$ac_ext
8176 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8177 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8178 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8179    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8180 # define LT_DLSYM_CONST
8181 #elif defined __osf__
8182 /* This system does not cope well with relocations in const data.  */
8183 # define LT_DLSYM_CONST
8184 #else
8185 # define LT_DLSYM_CONST const
8186 #endif
8187
8188 #ifdef __cplusplus
8189 extern "C" {
8190 #endif
8191
8192 _LT_EOF
8193           # Now generate the symbol file.
8194           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8195
8196           cat <<_LT_EOF >> conftest.$ac_ext
8197
8198 /* The mapping between symbol names and symbols.  */
8199 LT_DLSYM_CONST struct {
8200   const char *name;
8201   void       *address;
8202 }
8203 lt__PROGRAM__LTX_preloaded_symbols[] =
8204 {
8205   { "@PROGRAM@", (void *) 0 },
8206 _LT_EOF
8207           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8208           cat <<\_LT_EOF >> conftest.$ac_ext
8209   {0, (void *) 0}
8210 };
8211
8212 /* This works around a problem in FreeBSD linker */
8213 #ifdef FREEBSD_WORKAROUND
8214 static const void *lt_preloaded_setup() {
8215   return lt__PROGRAM__LTX_preloaded_symbols;
8216 }
8217 #endif
8218
8219 #ifdef __cplusplus
8220 }
8221 #endif
8222 _LT_EOF
8223           # Now try linking the two files.
8224           mv conftest.$ac_objext conftstm.$ac_objext
8225           lt_globsym_save_LIBS=$LIBS
8226           lt_globsym_save_CFLAGS=$CFLAGS
8227           LIBS=conftstm.$ac_objext
8228           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8229           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8230   (eval $ac_link) 2>&5
8231   ac_status=$?
8232   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8234             pipe_works=yes
8235           fi
8236           LIBS=$lt_globsym_save_LIBS
8237           CFLAGS=$lt_globsym_save_CFLAGS
8238         else
8239           echo "cannot find nm_test_func in $nlist" >&5
8240         fi
8241       else
8242         echo "cannot find nm_test_var in $nlist" >&5
8243       fi
8244     else
8245       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8246     fi
8247   else
8248     echo "$progname: failed program was:" >&5
8249     cat conftest.$ac_ext >&5
8250   fi
8251   rm -rf conftest* conftst*
8252
8253   # Do not use the global_symbol_pipe unless it works.
8254   if test yes = "$pipe_works"; then
8255     break
8256   else
8257     lt_cv_sys_global_symbol_pipe=
8258   fi
8259 done
8260
8261 fi
8262
8263 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8264   lt_cv_sys_global_symbol_to_cdecl=
8265 fi
8266 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8268 printf "%s\n" "failed" >&6; }
8269 else
8270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8271 printf "%s\n" "ok" >&6; }
8272 fi
8273
8274 # Response file support.
8275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8276   nm_file_list_spec='@'
8277 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8278   nm_file_list_spec='@'
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8318 printf %s "checking for sysroot... " >&6; }
8319
8320 # Check whether --with-sysroot was given.
8321 if test ${with_sysroot+y}
8322 then :
8323   withval=$with_sysroot;
8324 else $as_nop
8325   with_sysroot=no
8326 fi
8327
8328
8329 lt_sysroot=
8330 case $with_sysroot in #(
8331  yes)
8332    if test yes = "$GCC"; then
8333      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8334    fi
8335    ;; #(
8336  /*)
8337    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8338    ;; #(
8339  no|'')
8340    ;; #(
8341  *)
8342    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8343 printf "%s\n" "$with_sysroot" >&6; }
8344    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8345    ;;
8346 esac
8347
8348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8349 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8350
8351
8352
8353
8354
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8356 printf %s "checking for a working dd... " >&6; }
8357 if test ${ac_cv_path_lt_DD+y}
8358 then :
8359   printf %s "(cached) " >&6
8360 else $as_nop
8361   printf 0123456789abcdef0123456789abcdef >conftest.i
8362 cat conftest.i conftest.i >conftest2.i
8363 : ${lt_DD:=$DD}
8364 if test -z "$lt_DD"; then
8365   ac_path_lt_DD_found=false
8366   # Loop through the user's path and test for each of PROGNAME-LIST
8367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   case $as_dir in #(((
8372     '') as_dir=./ ;;
8373     */) ;;
8374     *) as_dir=$as_dir/ ;;
8375   esac
8376     for ac_prog in dd
8377    do
8378     for ac_exec_ext in '' $ac_executable_extensions; do
8379       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8380       as_fn_executable_p "$ac_path_lt_DD" || continue
8381 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8382   cmp -s conftest.i conftest.out \
8383   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8384 fi
8385       $ac_path_lt_DD_found && break 3
8386     done
8387   done
8388   done
8389 IFS=$as_save_IFS
8390   if test -z "$ac_cv_path_lt_DD"; then
8391     :
8392   fi
8393 else
8394   ac_cv_path_lt_DD=$lt_DD
8395 fi
8396
8397 rm -f conftest.i conftest2.i conftest.out
8398 fi
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8400 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8401
8402
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8404 printf %s "checking how to truncate binary pipes... " >&6; }
8405 if test ${lt_cv_truncate_bin+y}
8406 then :
8407   printf %s "(cached) " >&6
8408 else $as_nop
8409   printf 0123456789abcdef0123456789abcdef >conftest.i
8410 cat conftest.i conftest.i >conftest2.i
8411 lt_cv_truncate_bin=
8412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8413   cmp -s conftest.i conftest.out \
8414   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8415 fi
8416 rm -f conftest.i conftest2.i conftest.out
8417 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8418 fi
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8420 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8421
8422
8423
8424
8425
8426
8427
8428 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8429 func_cc_basename ()
8430 {
8431     for cc_temp in $*""; do
8432       case $cc_temp in
8433         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435         \-*) ;;
8436         *) break;;
8437       esac
8438     done
8439     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8440 }
8441
8442 # Check whether --enable-libtool-lock was given.
8443 if test ${enable_libtool_lock+y}
8444 then :
8445   enableval=$enable_libtool_lock;
8446 fi
8447
8448 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8449
8450 # Some flags need to be propagated to the compiler or linker for good
8451 # libtool support.
8452 case $host in
8453 ia64-*-hpux*)
8454   # Find out what ABI is being produced by ac_compile, and set mode
8455   # options accordingly.
8456   echo 'int i;' > conftest.$ac_ext
8457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8458   (eval $ac_compile) 2>&5
8459   ac_status=$?
8460   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8461   test $ac_status = 0; }; then
8462     case `/usr/bin/file conftest.$ac_objext` in
8463       *ELF-32*)
8464         HPUX_IA64_MODE=32
8465         ;;
8466       *ELF-64*)
8467         HPUX_IA64_MODE=64
8468         ;;
8469     esac
8470   fi
8471   rm -rf conftest*
8472   ;;
8473 *-*-irix6*)
8474   # Find out what ABI is being produced by ac_compile, and set linker
8475   # options accordingly.
8476   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8477   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8478   (eval $ac_compile) 2>&5
8479   ac_status=$?
8480   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8481   test $ac_status = 0; }; then
8482     if test yes = "$lt_cv_prog_gnu_ld"; then
8483       case `/usr/bin/file conftest.$ac_objext` in
8484         *32-bit*)
8485           LD="${LD-ld} -melf32bsmip"
8486           ;;
8487         *N32*)
8488           LD="${LD-ld} -melf32bmipn32"
8489           ;;
8490         *64-bit*)
8491           LD="${LD-ld} -melf64bmip"
8492         ;;
8493       esac
8494     else
8495       case `/usr/bin/file conftest.$ac_objext` in
8496         *32-bit*)
8497           LD="${LD-ld} -32"
8498           ;;
8499         *N32*)
8500           LD="${LD-ld} -n32"
8501           ;;
8502         *64-bit*)
8503           LD="${LD-ld} -64"
8504           ;;
8505       esac
8506     fi
8507   fi
8508   rm -rf conftest*
8509   ;;
8510
8511 mips64*-*linux*)
8512   # Find out what ABI is being produced by ac_compile, and set linker
8513   # options accordingly.
8514   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8515   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8516   (eval $ac_compile) 2>&5
8517   ac_status=$?
8518   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8519   test $ac_status = 0; }; then
8520     emul=elf
8521     case `/usr/bin/file conftest.$ac_objext` in
8522       *32-bit*)
8523         emul="${emul}32"
8524         ;;
8525       *64-bit*)
8526         emul="${emul}64"
8527         ;;
8528     esac
8529     case `/usr/bin/file conftest.$ac_objext` in
8530       *MSB*)
8531         emul="${emul}btsmip"
8532         ;;
8533       *LSB*)
8534         emul="${emul}ltsmip"
8535         ;;
8536     esac
8537     case `/usr/bin/file conftest.$ac_objext` in
8538       *N32*)
8539         emul="${emul}n32"
8540         ;;
8541     esac
8542     LD="${LD-ld} -m $emul"
8543   fi
8544   rm -rf conftest*
8545   ;;
8546
8547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8548 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8549   # Find out what ABI is being produced by ac_compile, and set linker
8550   # options accordingly.  Note that the listed cases only cover the
8551   # situations where additional linker options are needed (such as when
8552   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8553   # vice versa); the common cases where no linker options are needed do
8554   # not appear in the list.
8555   echo 'int i;' > conftest.$ac_ext
8556   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8557   (eval $ac_compile) 2>&5
8558   ac_status=$?
8559   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560   test $ac_status = 0; }; then
8561     case `/usr/bin/file conftest.o` in
8562       *32-bit*)
8563         case $host in
8564           x86_64-*kfreebsd*-gnu)
8565             LD="${LD-ld} -m elf_i386_fbsd"
8566             ;;
8567           x86_64-*linux*)
8568             case `/usr/bin/file conftest.o` in
8569               *x86-64*)
8570                 LD="${LD-ld} -m elf32_x86_64"
8571                 ;;
8572               *)
8573                 LD="${LD-ld} -m elf_i386"
8574                 ;;
8575             esac
8576             ;;
8577           powerpc64le-*linux*)
8578             LD="${LD-ld} -m elf32lppclinux"
8579             ;;
8580           powerpc64-*linux*)
8581             LD="${LD-ld} -m elf32ppclinux"
8582             ;;
8583           s390x-*linux*)
8584             LD="${LD-ld} -m elf_s390"
8585             ;;
8586           sparc64-*linux*)
8587             LD="${LD-ld} -m elf32_sparc"
8588             ;;
8589         esac
8590         ;;
8591       *64-bit*)
8592         case $host in
8593           x86_64-*kfreebsd*-gnu)
8594             LD="${LD-ld} -m elf_x86_64_fbsd"
8595             ;;
8596           x86_64-*linux*)
8597             LD="${LD-ld} -m elf_x86_64"
8598             ;;
8599           powerpcle-*linux*)
8600             LD="${LD-ld} -m elf64lppc"
8601             ;;
8602           powerpc-*linux*)
8603             LD="${LD-ld} -m elf64ppc"
8604             ;;
8605           s390*-*linux*|s390*-*tpf*)
8606             LD="${LD-ld} -m elf64_s390"
8607             ;;
8608           sparc*-*linux*)
8609             LD="${LD-ld} -m elf64_sparc"
8610             ;;
8611         esac
8612         ;;
8613     esac
8614   fi
8615   rm -rf conftest*
8616   ;;
8617
8618 *-*-sco3.2v5*)
8619   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8620   SAVE_CFLAGS=$CFLAGS
8621   CFLAGS="$CFLAGS -belf"
8622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8623 printf %s "checking whether the C compiler needs -belf... " >&6; }
8624 if test ${lt_cv_cc_needs_belf+y}
8625 then :
8626   printf %s "(cached) " >&6
8627 else $as_nop
8628   ac_ext=c
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633
8634      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h.  */
8636
8637 int
8638 main (void)
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_c_try_link "$LINENO"
8646 then :
8647   lt_cv_cc_needs_belf=yes
8648 else $as_nop
8649   lt_cv_cc_needs_belf=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8652     conftest$ac_exeext conftest.$ac_ext
8653      ac_ext=c
8654 ac_cpp='$CPP $CPPFLAGS'
8655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8658
8659 fi
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8661 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8662   if test yes != "$lt_cv_cc_needs_belf"; then
8663     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8664     CFLAGS=$SAVE_CFLAGS
8665   fi
8666   ;;
8667 *-*solaris*)
8668   # Find out what ABI is being produced by ac_compile, and set linker
8669   # options accordingly.
8670   echo 'int i;' > conftest.$ac_ext
8671   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8672   (eval $ac_compile) 2>&5
8673   ac_status=$?
8674   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8675   test $ac_status = 0; }; then
8676     case `/usr/bin/file conftest.o` in
8677     *64-bit*)
8678       case $lt_cv_prog_gnu_ld in
8679       yes*)
8680         case $host in
8681         i?86-*-solaris*|x86_64-*-solaris*)
8682           LD="${LD-ld} -m elf_x86_64"
8683           ;;
8684         sparc*-*-solaris*)
8685           LD="${LD-ld} -m elf64_sparc"
8686           ;;
8687         esac
8688         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8689         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8690           LD=${LD-ld}_sol2
8691         fi
8692         ;;
8693       *)
8694         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8695           LD="${LD-ld} -64"
8696         fi
8697         ;;
8698       esac
8699       ;;
8700     esac
8701   fi
8702   rm -rf conftest*
8703   ;;
8704 esac
8705
8706 need_locks=$enable_libtool_lock
8707
8708 if test -n "$ac_tool_prefix"; then
8709   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8710 set dummy ${ac_tool_prefix}mt; ac_word=$2
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 printf %s "checking for $ac_word... " >&6; }
8713 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8714 then :
8715   printf %s "(cached) " >&6
8716 else $as_nop
8717   if test -n "$MANIFEST_TOOL"; then
8718   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8719 else
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 for as_dir in $PATH
8722 do
8723   IFS=$as_save_IFS
8724   case $as_dir in #(((
8725     '') as_dir=./ ;;
8726     */) ;;
8727     *) as_dir=$as_dir/ ;;
8728   esac
8729     for ac_exec_ext in '' $ac_executable_extensions; do
8730   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8731     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8732     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8733     break 2
8734   fi
8735 done
8736   done
8737 IFS=$as_save_IFS
8738
8739 fi
8740 fi
8741 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8742 if test -n "$MANIFEST_TOOL"; then
8743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8744 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8745 else
8746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 printf "%s\n" "no" >&6; }
8748 fi
8749
8750
8751 fi
8752 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8753   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8754   # Extract the first word of "mt", so it can be a program name with args.
8755 set dummy mt; ac_word=$2
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 printf %s "checking for $ac_word... " >&6; }
8758 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8759 then :
8760   printf %s "(cached) " >&6
8761 else $as_nop
8762   if test -n "$ac_ct_MANIFEST_TOOL"; then
8763   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   case $as_dir in #(((
8770     '') as_dir=./ ;;
8771     */) ;;
8772     *) as_dir=$as_dir/ ;;
8773   esac
8774     for ac_exec_ext in '' $ac_executable_extensions; do
8775   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8776     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8777     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8778     break 2
8779   fi
8780 done
8781   done
8782 IFS=$as_save_IFS
8783
8784 fi
8785 fi
8786 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8787 if test -n "$ac_ct_MANIFEST_TOOL"; then
8788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8789 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8790 else
8791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 printf "%s\n" "no" >&6; }
8793 fi
8794
8795   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8796     MANIFEST_TOOL=":"
8797   else
8798     case $cross_compiling:$ac_tool_warned in
8799 yes:)
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802 ac_tool_warned=yes ;;
8803 esac
8804     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8805   fi
8806 else
8807   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8808 fi
8809
8810 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8812 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8813 if test ${lt_cv_path_mainfest_tool+y}
8814 then :
8815   printf %s "(cached) " >&6
8816 else $as_nop
8817   lt_cv_path_mainfest_tool=no
8818   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8819   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8820   cat conftest.err >&5
8821   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8822     lt_cv_path_mainfest_tool=yes
8823   fi
8824   rm -f conftest*
8825 fi
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8827 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8828 if test yes != "$lt_cv_path_mainfest_tool"; then
8829   MANIFEST_TOOL=:
8830 fi
8831
8832
8833
8834
8835
8836
8837   case $host_os in
8838     rhapsody* | darwin*)
8839     if test -n "$ac_tool_prefix"; then
8840   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8841 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 printf %s "checking for $ac_word... " >&6; }
8844 if test ${ac_cv_prog_DSYMUTIL+y}
8845 then :
8846   printf %s "(cached) " >&6
8847 else $as_nop
8848   if test -n "$DSYMUTIL"; then
8849   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8853 do
8854   IFS=$as_save_IFS
8855   case $as_dir in #(((
8856     '') as_dir=./ ;;
8857     */) ;;
8858     *) as_dir=$as_dir/ ;;
8859   esac
8860     for ac_exec_ext in '' $ac_executable_extensions; do
8861   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8862     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8863     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8864     break 2
8865   fi
8866 done
8867   done
8868 IFS=$as_save_IFS
8869
8870 fi
8871 fi
8872 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8873 if test -n "$DSYMUTIL"; then
8874   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8875 printf "%s\n" "$DSYMUTIL" >&6; }
8876 else
8877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 printf "%s\n" "no" >&6; }
8879 fi
8880
8881
8882 fi
8883 if test -z "$ac_cv_prog_DSYMUTIL"; then
8884   ac_ct_DSYMUTIL=$DSYMUTIL
8885   # Extract the first word of "dsymutil", so it can be a program name with args.
8886 set dummy dsymutil; ac_word=$2
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 printf %s "checking for $ac_word... " >&6; }
8889 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8890 then :
8891   printf %s "(cached) " >&6
8892 else $as_nop
8893   if test -n "$ac_ct_DSYMUTIL"; then
8894   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8895 else
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897 for as_dir in $PATH
8898 do
8899   IFS=$as_save_IFS
8900   case $as_dir in #(((
8901     '') as_dir=./ ;;
8902     */) ;;
8903     *) as_dir=$as_dir/ ;;
8904   esac
8905     for ac_exec_ext in '' $ac_executable_extensions; do
8906   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8907     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8908     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8909     break 2
8910   fi
8911 done
8912   done
8913 IFS=$as_save_IFS
8914
8915 fi
8916 fi
8917 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8918 if test -n "$ac_ct_DSYMUTIL"; then
8919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8920 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8921 else
8922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 printf "%s\n" "no" >&6; }
8924 fi
8925
8926   if test "x$ac_ct_DSYMUTIL" = x; then
8927     DSYMUTIL=":"
8928   else
8929     case $cross_compiling:$ac_tool_warned in
8930 yes:)
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933 ac_tool_warned=yes ;;
8934 esac
8935     DSYMUTIL=$ac_ct_DSYMUTIL
8936   fi
8937 else
8938   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8939 fi
8940
8941     if test -n "$ac_tool_prefix"; then
8942   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8943 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 printf %s "checking for $ac_word... " >&6; }
8946 if test ${ac_cv_prog_NMEDIT+y}
8947 then :
8948   printf %s "(cached) " >&6
8949 else $as_nop
8950   if test -n "$NMEDIT"; then
8951   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8955 do
8956   IFS=$as_save_IFS
8957   case $as_dir in #(((
8958     '') as_dir=./ ;;
8959     */) ;;
8960     *) as_dir=$as_dir/ ;;
8961   esac
8962     for ac_exec_ext in '' $ac_executable_extensions; do
8963   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8964     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8965     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8966     break 2
8967   fi
8968 done
8969   done
8970 IFS=$as_save_IFS
8971
8972 fi
8973 fi
8974 NMEDIT=$ac_cv_prog_NMEDIT
8975 if test -n "$NMEDIT"; then
8976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8977 printf "%s\n" "$NMEDIT" >&6; }
8978 else
8979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf "%s\n" "no" >&6; }
8981 fi
8982
8983
8984 fi
8985 if test -z "$ac_cv_prog_NMEDIT"; then
8986   ac_ct_NMEDIT=$NMEDIT
8987   # Extract the first word of "nmedit", so it can be a program name with args.
8988 set dummy nmedit; ac_word=$2
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 printf %s "checking for $ac_word... " >&6; }
8991 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8992 then :
8993   printf %s "(cached) " >&6
8994 else $as_nop
8995   if test -n "$ac_ct_NMEDIT"; then
8996   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9000 do
9001   IFS=$as_save_IFS
9002   case $as_dir in #(((
9003     '') as_dir=./ ;;
9004     */) ;;
9005     *) as_dir=$as_dir/ ;;
9006   esac
9007     for ac_exec_ext in '' $ac_executable_extensions; do
9008   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9009     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9010     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9011     break 2
9012   fi
9013 done
9014   done
9015 IFS=$as_save_IFS
9016
9017 fi
9018 fi
9019 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9020 if test -n "$ac_ct_NMEDIT"; then
9021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9022 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9023 else
9024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 printf "%s\n" "no" >&6; }
9026 fi
9027
9028   if test "x$ac_ct_NMEDIT" = x; then
9029     NMEDIT=":"
9030   else
9031     case $cross_compiling:$ac_tool_warned in
9032 yes:)
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9035 ac_tool_warned=yes ;;
9036 esac
9037     NMEDIT=$ac_ct_NMEDIT
9038   fi
9039 else
9040   NMEDIT="$ac_cv_prog_NMEDIT"
9041 fi
9042
9043     if test -n "$ac_tool_prefix"; then
9044   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9045 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 printf %s "checking for $ac_word... " >&6; }
9048 if test ${ac_cv_prog_LIPO+y}
9049 then :
9050   printf %s "(cached) " >&6
9051 else $as_nop
9052   if test -n "$LIPO"; then
9053   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058   IFS=$as_save_IFS
9059   case $as_dir in #(((
9060     '') as_dir=./ ;;
9061     */) ;;
9062     *) as_dir=$as_dir/ ;;
9063   esac
9064     for ac_exec_ext in '' $ac_executable_extensions; do
9065   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9066     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9067     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9068     break 2
9069   fi
9070 done
9071   done
9072 IFS=$as_save_IFS
9073
9074 fi
9075 fi
9076 LIPO=$ac_cv_prog_LIPO
9077 if test -n "$LIPO"; then
9078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9079 printf "%s\n" "$LIPO" >&6; }
9080 else
9081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 printf "%s\n" "no" >&6; }
9083 fi
9084
9085
9086 fi
9087 if test -z "$ac_cv_prog_LIPO"; then
9088   ac_ct_LIPO=$LIPO
9089   # Extract the first word of "lipo", so it can be a program name with args.
9090 set dummy lipo; ac_word=$2
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 printf %s "checking for $ac_word... " >&6; }
9093 if test ${ac_cv_prog_ac_ct_LIPO+y}
9094 then :
9095   printf %s "(cached) " >&6
9096 else $as_nop
9097   if test -n "$ac_ct_LIPO"; then
9098   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9099 else
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103   IFS=$as_save_IFS
9104   case $as_dir in #(((
9105     '') as_dir=./ ;;
9106     */) ;;
9107     *) as_dir=$as_dir/ ;;
9108   esac
9109     for ac_exec_ext in '' $ac_executable_extensions; do
9110   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9111     ac_cv_prog_ac_ct_LIPO="lipo"
9112     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9113     break 2
9114   fi
9115 done
9116   done
9117 IFS=$as_save_IFS
9118
9119 fi
9120 fi
9121 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9122 if test -n "$ac_ct_LIPO"; then
9123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9124 printf "%s\n" "$ac_ct_LIPO" >&6; }
9125 else
9126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 printf "%s\n" "no" >&6; }
9128 fi
9129
9130   if test "x$ac_ct_LIPO" = x; then
9131     LIPO=":"
9132   else
9133     case $cross_compiling:$ac_tool_warned in
9134 yes:)
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9137 ac_tool_warned=yes ;;
9138 esac
9139     LIPO=$ac_ct_LIPO
9140   fi
9141 else
9142   LIPO="$ac_cv_prog_LIPO"
9143 fi
9144
9145     if test -n "$ac_tool_prefix"; then
9146   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}otool; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_OTOOL+y}
9151 then :
9152   printf %s "(cached) " >&6
9153 else $as_nop
9154   if test -n "$OTOOL"; then
9155   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   case $as_dir in #(((
9162     '') as_dir=./ ;;
9163     */) ;;
9164     *) as_dir=$as_dir/ ;;
9165   esac
9166     for ac_exec_ext in '' $ac_executable_extensions; do
9167   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9169     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9170     break 2
9171   fi
9172 done
9173   done
9174 IFS=$as_save_IFS
9175
9176 fi
9177 fi
9178 OTOOL=$ac_cv_prog_OTOOL
9179 if test -n "$OTOOL"; then
9180   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9181 printf "%s\n" "$OTOOL" >&6; }
9182 else
9183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 printf "%s\n" "no" >&6; }
9185 fi
9186
9187
9188 fi
9189 if test -z "$ac_cv_prog_OTOOL"; then
9190   ac_ct_OTOOL=$OTOOL
9191   # Extract the first word of "otool", so it can be a program name with args.
9192 set dummy otool; ac_word=$2
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 printf %s "checking for $ac_word... " >&6; }
9195 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9196 then :
9197   printf %s "(cached) " >&6
9198 else $as_nop
9199   if test -n "$ac_ct_OTOOL"; then
9200   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9201 else
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9204 do
9205   IFS=$as_save_IFS
9206   case $as_dir in #(((
9207     '') as_dir=./ ;;
9208     */) ;;
9209     *) as_dir=$as_dir/ ;;
9210   esac
9211     for ac_exec_ext in '' $ac_executable_extensions; do
9212   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9213     ac_cv_prog_ac_ct_OTOOL="otool"
9214     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9215     break 2
9216   fi
9217 done
9218   done
9219 IFS=$as_save_IFS
9220
9221 fi
9222 fi
9223 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9224 if test -n "$ac_ct_OTOOL"; then
9225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9226 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9227 else
9228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 printf "%s\n" "no" >&6; }
9230 fi
9231
9232   if test "x$ac_ct_OTOOL" = x; then
9233     OTOOL=":"
9234   else
9235     case $cross_compiling:$ac_tool_warned in
9236 yes:)
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9239 ac_tool_warned=yes ;;
9240 esac
9241     OTOOL=$ac_ct_OTOOL
9242   fi
9243 else
9244   OTOOL="$ac_cv_prog_OTOOL"
9245 fi
9246
9247     if test -n "$ac_tool_prefix"; then
9248   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9249 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 printf %s "checking for $ac_word... " >&6; }
9252 if test ${ac_cv_prog_OTOOL64+y}
9253 then :
9254   printf %s "(cached) " >&6
9255 else $as_nop
9256   if test -n "$OTOOL64"; then
9257   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9258 else
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9261 do
9262   IFS=$as_save_IFS
9263   case $as_dir in #(((
9264     '') as_dir=./ ;;
9265     */) ;;
9266     *) as_dir=$as_dir/ ;;
9267   esac
9268     for ac_exec_ext in '' $ac_executable_extensions; do
9269   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9270     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9271     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9272     break 2
9273   fi
9274 done
9275   done
9276 IFS=$as_save_IFS
9277
9278 fi
9279 fi
9280 OTOOL64=$ac_cv_prog_OTOOL64
9281 if test -n "$OTOOL64"; then
9282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9283 printf "%s\n" "$OTOOL64" >&6; }
9284 else
9285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 printf "%s\n" "no" >&6; }
9287 fi
9288
9289
9290 fi
9291 if test -z "$ac_cv_prog_OTOOL64"; then
9292   ac_ct_OTOOL64=$OTOOL64
9293   # Extract the first word of "otool64", so it can be a program name with args.
9294 set dummy otool64; ac_word=$2
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 printf %s "checking for $ac_word... " >&6; }
9297 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9298 then :
9299   printf %s "(cached) " >&6
9300 else $as_nop
9301   if test -n "$ac_ct_OTOOL64"; then
9302   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9303 else
9304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 for as_dir in $PATH
9306 do
9307   IFS=$as_save_IFS
9308   case $as_dir in #(((
9309     '') as_dir=./ ;;
9310     */) ;;
9311     *) as_dir=$as_dir/ ;;
9312   esac
9313     for ac_exec_ext in '' $ac_executable_extensions; do
9314   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9315     ac_cv_prog_ac_ct_OTOOL64="otool64"
9316     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9317     break 2
9318   fi
9319 done
9320   done
9321 IFS=$as_save_IFS
9322
9323 fi
9324 fi
9325 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9326 if test -n "$ac_ct_OTOOL64"; then
9327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9328 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9329 else
9330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 printf "%s\n" "no" >&6; }
9332 fi
9333
9334   if test "x$ac_ct_OTOOL64" = x; then
9335     OTOOL64=":"
9336   else
9337     case $cross_compiling:$ac_tool_warned in
9338 yes:)
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9341 ac_tool_warned=yes ;;
9342 esac
9343     OTOOL64=$ac_ct_OTOOL64
9344   fi
9345 else
9346   OTOOL64="$ac_cv_prog_OTOOL64"
9347 fi
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9376 printf %s "checking for -single_module linker flag... " >&6; }
9377 if test ${lt_cv_apple_cc_single_mod+y}
9378 then :
9379   printf %s "(cached) " >&6
9380 else $as_nop
9381   lt_cv_apple_cc_single_mod=no
9382       if test -z "$LT_MULTI_MODULE"; then
9383         # By default we will add the -single_module flag. You can override
9384         # by either setting the environment variable LT_MULTI_MODULE
9385         # non-empty at configure time, or by adding -multi_module to the
9386         # link flags.
9387         rm -rf libconftest.dylib*
9388         echo "int foo(void){return 1;}" > conftest.c
9389         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9390 -dynamiclib -Wl,-single_module conftest.c" >&5
9391         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9392           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9393         _lt_result=$?
9394         # If there is a non-empty error log, and "single_module"
9395         # appears in it, assume the flag caused a linker warning
9396         if test -s conftest.err && $GREP single_module conftest.err; then
9397           cat conftest.err >&5
9398         # Otherwise, if the output was created with a 0 exit code from
9399         # the compiler, it worked.
9400         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9401           lt_cv_apple_cc_single_mod=yes
9402         else
9403           cat conftest.err >&5
9404         fi
9405         rm -rf libconftest.dylib*
9406         rm -f conftest.*
9407       fi
9408 fi
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9410 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9411
9412     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9413 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9414 if test ${lt_cv_ld_exported_symbols_list+y}
9415 then :
9416   printf %s "(cached) " >&6
9417 else $as_nop
9418   lt_cv_ld_exported_symbols_list=no
9419       save_LDFLAGS=$LDFLAGS
9420       echo "_main" > conftest.sym
9421       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h.  */
9424
9425 int
9426 main (void)
9427 {
9428
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"
9434 then :
9435   lt_cv_ld_exported_symbols_list=yes
9436 else $as_nop
9437   lt_cv_ld_exported_symbols_list=no
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9440     conftest$ac_exeext conftest.$ac_ext
9441         LDFLAGS=$save_LDFLAGS
9442
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9445 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9446
9447     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9448 printf %s "checking for -force_load linker flag... " >&6; }
9449 if test ${lt_cv_ld_force_load+y}
9450 then :
9451   printf %s "(cached) " >&6
9452 else $as_nop
9453   lt_cv_ld_force_load=no
9454       cat > conftest.c << _LT_EOF
9455 int forced_loaded() { return 2;}
9456 _LT_EOF
9457       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9458       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9459       echo "$AR cr libconftest.a conftest.o" >&5
9460       $AR cr libconftest.a conftest.o 2>&5
9461       echo "$RANLIB libconftest.a" >&5
9462       $RANLIB libconftest.a 2>&5
9463       cat > conftest.c << _LT_EOF
9464 int main() { return 0;}
9465 _LT_EOF
9466       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9467       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9468       _lt_result=$?
9469       if test -s conftest.err && $GREP force_load conftest.err; then
9470         cat conftest.err >&5
9471       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9472         lt_cv_ld_force_load=yes
9473       else
9474         cat conftest.err >&5
9475       fi
9476         rm -f conftest.err libconftest.a conftest conftest.c
9477         rm -rf conftest.dSYM
9478
9479 fi
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9481 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9482     case $host_os in
9483     rhapsody* | darwin1.[012])
9484       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9485     darwin1.*)
9486       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9487     darwin*) # darwin 5.x on
9488       # if running on 10.5 or later, the deployment target defaults
9489       # to the OS version, if on x86, and 10.4, the deployment
9490       # target defaults to 10.4. Don't you love it?
9491       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9492         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9493           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9494         10.[012][,.]*)
9495           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9496         10.*|11.*)
9497           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9498       esac
9499     ;;
9500   esac
9501     if test yes = "$lt_cv_apple_cc_single_mod"; then
9502       _lt_dar_single_mod='$single_module'
9503     fi
9504     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9505       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9506     else
9507       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9508     fi
9509     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9510       _lt_dsymutil='~$DSYMUTIL $lib || :'
9511     else
9512       _lt_dsymutil=
9513     fi
9514     ;;
9515   esac
9516
9517 # func_munge_path_list VARIABLE PATH
9518 # -----------------------------------
9519 # VARIABLE is name of variable containing _space_ separated list of
9520 # directories to be munged by the contents of PATH, which is string
9521 # having a format:
9522 # "DIR[:DIR]:"
9523 #       string "DIR[ DIR]" will be prepended to VARIABLE
9524 # ":DIR[:DIR]"
9525 #       string "DIR[ DIR]" will be appended to VARIABLE
9526 # "DIRP[:DIRP]::[DIRA:]DIRA"
9527 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9528 #       "DIRA[ DIRA]" will be appended to VARIABLE
9529 # "DIR[:DIR]"
9530 #       VARIABLE will be replaced by "DIR[ DIR]"
9531 func_munge_path_list ()
9532 {
9533     case x$2 in
9534     x)
9535         ;;
9536     *:)
9537         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9538         ;;
9539     x:*)
9540         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9541         ;;
9542     *::*)
9543         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9544         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9545         ;;
9546     *)
9547         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9548         ;;
9549     esac
9550 }
9551
9552 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9553 "
9554 if test "x$ac_cv_header_dlfcn_h" = xyes
9555 then :
9556   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9557
9558 fi
9559
9560
9561
9562
9563
9564 # Set options
9565
9566
9567
9568         enable_dlopen=no
9569
9570
9571
9572             # Check whether --enable-shared was given.
9573 if test ${enable_shared+y}
9574 then :
9575   enableval=$enable_shared; p=${PACKAGE-default}
9576     case $enableval in
9577     yes) enable_shared=yes ;;
9578     no) enable_shared=no ;;
9579     *)
9580       enable_shared=no
9581       # Look at the argument we got.  We use all the common list separators.
9582       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9583       for pkg in $enableval; do
9584         IFS=$lt_save_ifs
9585         if test "X$pkg" = "X$p"; then
9586           enable_shared=yes
9587         fi
9588       done
9589       IFS=$lt_save_ifs
9590       ;;
9591     esac
9592 else $as_nop
9593   enable_shared=yes
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604   # Check whether --enable-static was given.
9605 if test ${enable_static+y}
9606 then :
9607   enableval=$enable_static; p=${PACKAGE-default}
9608     case $enableval in
9609     yes) enable_static=yes ;;
9610     no) enable_static=no ;;
9611     *)
9612      enable_static=no
9613       # Look at the argument we got.  We use all the common list separators.
9614       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9615       for pkg in $enableval; do
9616         IFS=$lt_save_ifs
9617         if test "X$pkg" = "X$p"; then
9618           enable_static=yes
9619         fi
9620       done
9621       IFS=$lt_save_ifs
9622       ;;
9623     esac
9624 else $as_nop
9625   enable_static=yes
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 # Check whether --with-pic was given.
9638 if test ${with_pic+y}
9639 then :
9640   withval=$with_pic; lt_p=${PACKAGE-default}
9641     case $withval in
9642     yes|no) pic_mode=$withval ;;
9643     *)
9644       pic_mode=default
9645       # Look at the argument we got.  We use all the common list separators.
9646       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9647       for lt_pkg in $withval; do
9648         IFS=$lt_save_ifs
9649         if test "X$lt_pkg" = "X$lt_p"; then
9650           pic_mode=yes
9651         fi
9652       done
9653       IFS=$lt_save_ifs
9654       ;;
9655     esac
9656 else $as_nop
9657   pic_mode=default
9658 fi
9659
9660
9661
9662
9663
9664
9665
9666
9667   # Check whether --enable-fast-install was given.
9668 if test ${enable_fast_install+y}
9669 then :
9670   enableval=$enable_fast_install; p=${PACKAGE-default}
9671     case $enableval in
9672     yes) enable_fast_install=yes ;;
9673     no) enable_fast_install=no ;;
9674     *)
9675       enable_fast_install=no
9676       # Look at the argument we got.  We use all the common list separators.
9677       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9678       for pkg in $enableval; do
9679         IFS=$lt_save_ifs
9680         if test "X$pkg" = "X$p"; then
9681           enable_fast_install=yes
9682         fi
9683       done
9684       IFS=$lt_save_ifs
9685       ;;
9686     esac
9687 else $as_nop
9688   enable_fast_install=yes
9689 fi
9690
9691
9692
9693
9694
9695
9696
9697
9698   shared_archive_member_spec=
9699 case $host,$enable_shared in
9700 power*-*-aix[5-9]*,yes)
9701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9702 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9703
9704 # Check whether --with-aix-soname was given.
9705 if test ${with_aix_soname+y}
9706 then :
9707   withval=$with_aix_soname; case $withval in
9708     aix|svr4|both)
9709       ;;
9710     *)
9711       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9712       ;;
9713     esac
9714     lt_cv_with_aix_soname=$with_aix_soname
9715 else $as_nop
9716   if test ${lt_cv_with_aix_soname+y}
9717 then :
9718   printf %s "(cached) " >&6
9719 else $as_nop
9720   lt_cv_with_aix_soname=aix
9721 fi
9722
9723     with_aix_soname=$lt_cv_with_aix_soname
9724 fi
9725
9726   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9727 printf "%s\n" "$with_aix_soname" >&6; }
9728   if test aix != "$with_aix_soname"; then
9729     # For the AIX way of multilib, we name the shared archive member
9730     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9731     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9732     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9733     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9734     if test 64 = "${OBJECT_MODE-32}"; then
9735       shared_archive_member_spec=shr_64
9736     else
9737       shared_archive_member_spec=shr
9738     fi
9739   fi
9740   ;;
9741 *)
9742   with_aix_soname=aix
9743   ;;
9744 esac
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 # This can be used to rebuild libtool when needed
9756 LIBTOOL_DEPS=$ltmain
9757
9758 # Always use our own libtool.
9759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790 test -z "$LN_S" && LN_S="ln -s"
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805 if test -n "${ZSH_VERSION+set}"; then
9806    setopt NO_GLOB_SUBST
9807 fi
9808
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9810 printf %s "checking for objdir... " >&6; }
9811 if test ${lt_cv_objdir+y}
9812 then :
9813   printf %s "(cached) " >&6
9814 else $as_nop
9815   rm -f .libs 2>/dev/null
9816 mkdir .libs 2>/dev/null
9817 if test -d .libs; then
9818   lt_cv_objdir=.libs
9819 else
9820   # MS-DOS does not allow filenames that begin with a dot.
9821   lt_cv_objdir=_libs
9822 fi
9823 rmdir .libs 2>/dev/null
9824 fi
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9826 printf "%s\n" "$lt_cv_objdir" >&6; }
9827 objdir=$lt_cv_objdir
9828
9829
9830
9831
9832
9833 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9834
9835
9836
9837
9838 case $host_os in
9839 aix3*)
9840   # AIX sometimes has problems with the GCC collect2 program.  For some
9841   # reason, if we set the COLLECT_NAMES environment variable, the problems
9842   # vanish in a puff of smoke.
9843   if test set != "${COLLECT_NAMES+set}"; then
9844     COLLECT_NAMES=
9845     export COLLECT_NAMES
9846   fi
9847   ;;
9848 esac
9849
9850 # Global variables:
9851 ofile=libtool
9852 can_build_shared=yes
9853
9854 # All known linkers require a '.a' archive for static linking (except MSVC,
9855 # which needs '.lib').
9856 libext=a
9857
9858 with_gnu_ld=$lt_cv_prog_gnu_ld
9859
9860 old_CC=$CC
9861 old_CFLAGS=$CFLAGS
9862
9863 # Set sane defaults for various variables
9864 test -z "$CC" && CC=cc
9865 test -z "$LTCC" && LTCC=$CC
9866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9867 test -z "$LD" && LD=ld
9868 test -z "$ac_objext" && ac_objext=o
9869
9870 func_cc_basename $compiler
9871 cc_basename=$func_cc_basename_result
9872
9873
9874 # Only perform the check for file, if the check method requires it
9875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9876 case $deplibs_check_method in
9877 file_magic*)
9878   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9879     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9880 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9881 if test ${lt_cv_path_MAGIC_CMD+y}
9882 then :
9883   printf %s "(cached) " >&6
9884 else $as_nop
9885   case $MAGIC_CMD in
9886 [\\/*] |  ?:[\\/]*)
9887   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9888   ;;
9889 *)
9890   lt_save_MAGIC_CMD=$MAGIC_CMD
9891   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9892   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9893   for ac_dir in $ac_dummy; do
9894     IFS=$lt_save_ifs
9895     test -z "$ac_dir" && ac_dir=.
9896     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9897       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9898       if test -n "$file_magic_test_file"; then
9899         case $deplibs_check_method in
9900         "file_magic "*)
9901           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9902           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9903           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9904             $EGREP "$file_magic_regex" > /dev/null; then
9905             :
9906           else
9907             cat <<_LT_EOF 1>&2
9908
9909 *** Warning: the command libtool uses to detect shared libraries,
9910 *** $file_magic_cmd, produces output that libtool cannot recognize.
9911 *** The result is that libtool may fail to recognize shared libraries
9912 *** as such.  This will affect the creation of libtool libraries that
9913 *** depend on shared libraries, but programs linked with such libtool
9914 *** libraries will work regardless of this problem.  Nevertheless, you
9915 *** may want to report the problem to your system manager and/or to
9916 *** bug-libtool@gnu.org
9917
9918 _LT_EOF
9919           fi ;;
9920         esac
9921       fi
9922       break
9923     fi
9924   done
9925   IFS=$lt_save_ifs
9926   MAGIC_CMD=$lt_save_MAGIC_CMD
9927   ;;
9928 esac
9929 fi
9930
9931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9932 if test -n "$MAGIC_CMD"; then
9933   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9934 printf "%s\n" "$MAGIC_CMD" >&6; }
9935 else
9936   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 printf "%s\n" "no" >&6; }
9938 fi
9939
9940
9941
9942
9943
9944 if test -z "$lt_cv_path_MAGIC_CMD"; then
9945   if test -n "$ac_tool_prefix"; then
9946     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9947 printf %s "checking for file... " >&6; }
9948 if test ${lt_cv_path_MAGIC_CMD+y}
9949 then :
9950   printf %s "(cached) " >&6
9951 else $as_nop
9952   case $MAGIC_CMD in
9953 [\\/*] |  ?:[\\/]*)
9954   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9955   ;;
9956 *)
9957   lt_save_MAGIC_CMD=$MAGIC_CMD
9958   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9959   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9960   for ac_dir in $ac_dummy; do
9961     IFS=$lt_save_ifs
9962     test -z "$ac_dir" && ac_dir=.
9963     if test -f "$ac_dir/file"; then
9964       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9965       if test -n "$file_magic_test_file"; then
9966         case $deplibs_check_method in
9967         "file_magic "*)
9968           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9969           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9970           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9971             $EGREP "$file_magic_regex" > /dev/null; then
9972             :
9973           else
9974             cat <<_LT_EOF 1>&2
9975
9976 *** Warning: the command libtool uses to detect shared libraries,
9977 *** $file_magic_cmd, produces output that libtool cannot recognize.
9978 *** The result is that libtool may fail to recognize shared libraries
9979 *** as such.  This will affect the creation of libtool libraries that
9980 *** depend on shared libraries, but programs linked with such libtool
9981 *** libraries will work regardless of this problem.  Nevertheless, you
9982 *** may want to report the problem to your system manager and/or to
9983 *** bug-libtool@gnu.org
9984
9985 _LT_EOF
9986           fi ;;
9987         esac
9988       fi
9989       break
9990     fi
9991   done
9992   IFS=$lt_save_ifs
9993   MAGIC_CMD=$lt_save_MAGIC_CMD
9994   ;;
9995 esac
9996 fi
9997
9998 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9999 if test -n "$MAGIC_CMD"; then
10000   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10001 printf "%s\n" "$MAGIC_CMD" >&6; }
10002 else
10003   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 printf "%s\n" "no" >&6; }
10005 fi
10006
10007
10008   else
10009     MAGIC_CMD=:
10010   fi
10011 fi
10012
10013   fi
10014   ;;
10015 esac
10016
10017 # Use C for the default configuration in the libtool script
10018
10019 lt_save_CC=$CC
10020 ac_ext=c
10021 ac_cpp='$CPP $CPPFLAGS'
10022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10025
10026
10027 # Source file extension for C test sources.
10028 ac_ext=c
10029
10030 # Object file extension for compiled C test sources.
10031 objext=o
10032 objext=$objext
10033
10034 # Code to be used in simple compile tests
10035 lt_simple_compile_test_code="int some_variable = 0;"
10036
10037 # Code to be used in simple link tests
10038 lt_simple_link_test_code='int main(){return(0);}'
10039
10040
10041
10042
10043
10044
10045
10046 # If no C compiler was specified, use CC.
10047 LTCC=${LTCC-"$CC"}
10048
10049 # If no C compiler flags were specified, use CFLAGS.
10050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10051
10052 # Allow CC to be a program name with arguments.
10053 compiler=$CC
10054
10055 # Save the default compiler, since it gets overwritten when the other
10056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10057 compiler_DEFAULT=$CC
10058
10059 # save warnings/boilerplate of simple test code
10060 ac_outfile=conftest.$ac_objext
10061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10063 _lt_compiler_boilerplate=`cat conftest.err`
10064 $RM conftest*
10065
10066 ac_outfile=conftest.$ac_objext
10067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10069 _lt_linker_boilerplate=`cat conftest.err`
10070 $RM -r conftest*
10071
10072
10073 if test -n "$compiler"; then
10074
10075 lt_prog_compiler_no_builtin_flag=
10076
10077 if test yes = "$GCC"; then
10078   case $cc_basename in
10079   nvcc*)
10080     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10081   *)
10082     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10083   esac
10084
10085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10086 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10087 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10088 then :
10089   printf %s "(cached) " >&6
10090 else $as_nop
10091   lt_cv_prog_compiler_rtti_exceptions=no
10092    ac_outfile=conftest.$ac_objext
10093    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10094    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10095    # Insert the option either (1) after the last *FLAGS variable, or
10096    # (2) before a word containing "conftest.", or (3) at the end.
10097    # Note that $ac_compile itself does not contain backslashes and begins
10098    # with a dollar sign (not a hyphen), so the echo should work correctly.
10099    # The option is referenced via a variable to avoid confusing sed.
10100    lt_compile=`echo "$ac_compile" | $SED \
10101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10103    -e 's:$: $lt_compiler_flag:'`
10104    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10105    (eval "$lt_compile" 2>conftest.err)
10106    ac_status=$?
10107    cat conftest.err >&5
10108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109    if (exit $ac_status) && test -s "$ac_outfile"; then
10110      # The compiler can only warn and ignore the option if not recognized
10111      # So say no if there are warnings other than the usual output.
10112      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10113      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10115        lt_cv_prog_compiler_rtti_exceptions=yes
10116      fi
10117    fi
10118    $RM conftest*
10119
10120 fi
10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10122 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10123
10124 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10125     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10126 else
10127     :
10128 fi
10129
10130 fi
10131
10132
10133
10134
10135
10136
10137   lt_prog_compiler_wl=
10138 lt_prog_compiler_pic=
10139 lt_prog_compiler_static=
10140
10141
10142   if test yes = "$GCC"; then
10143     lt_prog_compiler_wl='-Wl,'
10144     lt_prog_compiler_static='-static'
10145
10146     case $host_os in
10147       aix*)
10148       # All AIX code is PIC.
10149       if test ia64 = "$host_cpu"; then
10150         # AIX 5 now supports IA64 processor
10151         lt_prog_compiler_static='-Bstatic'
10152       fi
10153       lt_prog_compiler_pic='-fPIC'
10154       ;;
10155
10156     amigaos*)
10157       case $host_cpu in
10158       powerpc)
10159             # see comment about AmigaOS4 .so support
10160             lt_prog_compiler_pic='-fPIC'
10161         ;;
10162       m68k)
10163             # FIXME: we need at least 68020 code to build shared libraries, but
10164             # adding the '-m68020' flag to GCC prevents building anything better,
10165             # like '-m68040'.
10166             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10167         ;;
10168       esac
10169       ;;
10170
10171     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172       # PIC is the default for these OSes.
10173       ;;
10174
10175     mingw* | cygwin* | pw32* | os2* | cegcc*)
10176       # This hack is so that the source file can tell whether it is being
10177       # built for inclusion in a dll (and should export symbols for example).
10178       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10179       # (--disable-auto-import) libraries
10180       lt_prog_compiler_pic='-DDLL_EXPORT'
10181       case $host_os in
10182       os2*)
10183         lt_prog_compiler_static='$wl-static'
10184         ;;
10185       esac
10186       ;;
10187
10188     darwin* | rhapsody*)
10189       # PIC is the default on this platform
10190       # Common symbols not allowed in MH_DYLIB files
10191       lt_prog_compiler_pic='-fno-common'
10192       ;;
10193
10194     haiku*)
10195       # PIC is the default for Haiku.
10196       # The "-static" flag exists, but is broken.
10197       lt_prog_compiler_static=
10198       ;;
10199
10200     hpux*)
10201       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10202       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10203       # sets the default TLS model and affects inlining.
10204       case $host_cpu in
10205       hppa*64*)
10206         # +Z the default
10207         ;;
10208       *)
10209         lt_prog_compiler_pic='-fPIC'
10210         ;;
10211       esac
10212       ;;
10213
10214     interix[3-9]*)
10215       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10216       # Instead, we relocate shared libraries at runtime.
10217       ;;
10218
10219     msdosdjgpp*)
10220       # Just because we use GCC doesn't mean we suddenly get shared libraries
10221       # on systems that don't support them.
10222       lt_prog_compiler_can_build_shared=no
10223       enable_shared=no
10224       ;;
10225
10226     *nto* | *qnx*)
10227       # QNX uses GNU C++, but need to define -shared option too, otherwise
10228       # it will coredump.
10229       lt_prog_compiler_pic='-fPIC -shared'
10230       ;;
10231
10232     sysv4*MP*)
10233       if test -d /usr/nec; then
10234         lt_prog_compiler_pic=-Kconform_pic
10235       fi
10236       ;;
10237
10238     *)
10239       lt_prog_compiler_pic='-fPIC'
10240       ;;
10241     esac
10242
10243     case $cc_basename in
10244     nvcc*) # Cuda Compiler Driver 2.2
10245       lt_prog_compiler_wl='-Xlinker '
10246       if test -n "$lt_prog_compiler_pic"; then
10247         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10248       fi
10249       ;;
10250     esac
10251   else
10252     # PORTME Check for flag to pass linker flags through the system compiler.
10253     case $host_os in
10254     aix*)
10255       lt_prog_compiler_wl='-Wl,'
10256       if test ia64 = "$host_cpu"; then
10257         # AIX 5 now supports IA64 processor
10258         lt_prog_compiler_static='-Bstatic'
10259       else
10260         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10261       fi
10262       ;;
10263
10264     darwin* | rhapsody*)
10265       # PIC is the default on this platform
10266       # Common symbols not allowed in MH_DYLIB files
10267       lt_prog_compiler_pic='-fno-common'
10268       case $cc_basename in
10269       nagfor*)
10270         # NAG Fortran compiler
10271         lt_prog_compiler_wl='-Wl,-Wl,,'
10272         lt_prog_compiler_pic='-PIC'
10273         lt_prog_compiler_static='-Bstatic'
10274         ;;
10275       esac
10276       ;;
10277
10278     mingw* | cygwin* | pw32* | os2* | cegcc*)
10279       # This hack is so that the source file can tell whether it is being
10280       # built for inclusion in a dll (and should export symbols for example).
10281       lt_prog_compiler_pic='-DDLL_EXPORT'
10282       case $host_os in
10283       os2*)
10284         lt_prog_compiler_static='$wl-static'
10285         ;;
10286       esac
10287       ;;
10288
10289     hpux9* | hpux10* | hpux11*)
10290       lt_prog_compiler_wl='-Wl,'
10291       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10292       # not for PA HP-UX.
10293       case $host_cpu in
10294       hppa*64*|ia64*)
10295         # +Z the default
10296         ;;
10297       *)
10298         lt_prog_compiler_pic='+Z'
10299         ;;
10300       esac
10301       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10302       lt_prog_compiler_static='$wl-a ${wl}archive'
10303       ;;
10304
10305     irix5* | irix6* | nonstopux*)
10306       lt_prog_compiler_wl='-Wl,'
10307       # PIC (with -KPIC) is the default.
10308       lt_prog_compiler_static='-non_shared'
10309       ;;
10310
10311     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10312       case $cc_basename in
10313       # old Intel for x86_64, which still supported -KPIC.
10314       ecc*)
10315         lt_prog_compiler_wl='-Wl,'
10316         lt_prog_compiler_pic='-KPIC'
10317         lt_prog_compiler_static='-static'
10318         ;;
10319       # flang / f18. f95 an alias for gfortran or flang on Debian
10320       flang* | f18* | f95*)
10321         lt_prog_compiler_wl='-Wl,'
10322         lt_prog_compiler_pic='-fPIC'
10323         lt_prog_compiler_static='-static'
10324         ;;
10325       # icc used to be incompatible with GCC.
10326       # ICC 10 doesn't accept -KPIC any more.
10327       icc* | ifort*)
10328         lt_prog_compiler_wl='-Wl,'
10329         lt_prog_compiler_pic='-fPIC'
10330         lt_prog_compiler_static='-static'
10331         ;;
10332       # Lahey Fortran 8.1.
10333       lf95*)
10334         lt_prog_compiler_wl='-Wl,'
10335         lt_prog_compiler_pic='--shared'
10336         lt_prog_compiler_static='--static'
10337         ;;
10338       nagfor*)
10339         # NAG Fortran compiler
10340         lt_prog_compiler_wl='-Wl,-Wl,,'
10341         lt_prog_compiler_pic='-PIC'
10342         lt_prog_compiler_static='-Bstatic'
10343         ;;
10344       tcc*)
10345         # Fabrice Bellard et al's Tiny C Compiler
10346         lt_prog_compiler_wl='-Wl,'
10347         lt_prog_compiler_pic='-fPIC'
10348         lt_prog_compiler_static='-static'
10349         ;;
10350       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10351         # Portland Group compilers (*not* the Pentium gcc compiler,
10352         # which looks to be a dead project)
10353         lt_prog_compiler_wl='-Wl,'
10354         lt_prog_compiler_pic='-fpic'
10355         lt_prog_compiler_static='-Bstatic'
10356         ;;
10357       ccc*)
10358         lt_prog_compiler_wl='-Wl,'
10359         # All Alpha code is PIC.
10360         lt_prog_compiler_static='-non_shared'
10361         ;;
10362       xl* | bgxl* | bgf* | mpixl*)
10363         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10364         lt_prog_compiler_wl='-Wl,'
10365         lt_prog_compiler_pic='-qpic'
10366         lt_prog_compiler_static='-qstaticlink'
10367         ;;
10368       *)
10369         case `$CC -V 2>&1 | sed 5q` in
10370         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10371           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10372           lt_prog_compiler_pic='-KPIC'
10373           lt_prog_compiler_static='-Bstatic'
10374           lt_prog_compiler_wl=''
10375           ;;
10376         *Sun\ F* | *Sun*Fortran*)
10377           lt_prog_compiler_pic='-KPIC'
10378           lt_prog_compiler_static='-Bstatic'
10379           lt_prog_compiler_wl='-Qoption ld '
10380           ;;
10381         *Sun\ C*)
10382           # Sun C 5.9
10383           lt_prog_compiler_pic='-KPIC'
10384           lt_prog_compiler_static='-Bstatic'
10385           lt_prog_compiler_wl='-Wl,'
10386           ;;
10387         *Intel*\ [CF]*Compiler*)
10388           lt_prog_compiler_wl='-Wl,'
10389           lt_prog_compiler_pic='-fPIC'
10390           lt_prog_compiler_static='-static'
10391           ;;
10392         *Portland\ Group*)
10393           lt_prog_compiler_wl='-Wl,'
10394           lt_prog_compiler_pic='-fpic'
10395           lt_prog_compiler_static='-Bstatic'
10396           ;;
10397         esac
10398         ;;
10399       esac
10400       ;;
10401
10402     newsos6)
10403       lt_prog_compiler_pic='-KPIC'
10404       lt_prog_compiler_static='-Bstatic'
10405       ;;
10406
10407     *nto* | *qnx*)
10408       # QNX uses GNU C++, but need to define -shared option too, otherwise
10409       # it will coredump.
10410       lt_prog_compiler_pic='-fPIC -shared'
10411       ;;
10412
10413     osf3* | osf4* | osf5*)
10414       lt_prog_compiler_wl='-Wl,'
10415       # All OSF/1 code is PIC.
10416       lt_prog_compiler_static='-non_shared'
10417       ;;
10418
10419     rdos*)
10420       lt_prog_compiler_static='-non_shared'
10421       ;;
10422
10423     solaris*)
10424       lt_prog_compiler_pic='-KPIC'
10425       lt_prog_compiler_static='-Bstatic'
10426       case $cc_basename in
10427       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10428         lt_prog_compiler_wl='-Qoption ld ';;
10429       *)
10430         lt_prog_compiler_wl='-Wl,';;
10431       esac
10432       ;;
10433
10434     sunos4*)
10435       lt_prog_compiler_wl='-Qoption ld '
10436       lt_prog_compiler_pic='-PIC'
10437       lt_prog_compiler_static='-Bstatic'
10438       ;;
10439
10440     sysv4 | sysv4.2uw2* | sysv4.3*)
10441       lt_prog_compiler_wl='-Wl,'
10442       lt_prog_compiler_pic='-KPIC'
10443       lt_prog_compiler_static='-Bstatic'
10444       ;;
10445
10446     sysv4*MP*)
10447       if test -d /usr/nec; then
10448         lt_prog_compiler_pic='-Kconform_pic'
10449         lt_prog_compiler_static='-Bstatic'
10450       fi
10451       ;;
10452
10453     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10454       lt_prog_compiler_wl='-Wl,'
10455       lt_prog_compiler_pic='-KPIC'
10456       lt_prog_compiler_static='-Bstatic'
10457       ;;
10458
10459     unicos*)
10460       lt_prog_compiler_wl='-Wl,'
10461       lt_prog_compiler_can_build_shared=no
10462       ;;
10463
10464     uts4*)
10465       lt_prog_compiler_pic='-pic'
10466       lt_prog_compiler_static='-Bstatic'
10467       ;;
10468
10469     *)
10470       lt_prog_compiler_can_build_shared=no
10471       ;;
10472     esac
10473   fi
10474
10475 case $host_os in
10476   # For platforms that do not support PIC, -DPIC is meaningless:
10477   *djgpp*)
10478     lt_prog_compiler_pic=
10479     ;;
10480   *)
10481     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10482     ;;
10483 esac
10484
10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10486 printf %s "checking for $compiler option to produce PIC... " >&6; }
10487 if test ${lt_cv_prog_compiler_pic+y}
10488 then :
10489   printf %s "(cached) " >&6
10490 else $as_nop
10491   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10492 fi
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10494 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10495 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10496
10497 #
10498 # Check to make sure the PIC flag actually works.
10499 #
10500 if test -n "$lt_prog_compiler_pic"; then
10501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10502 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10503 if test ${lt_cv_prog_compiler_pic_works+y}
10504 then :
10505   printf %s "(cached) " >&6
10506 else $as_nop
10507   lt_cv_prog_compiler_pic_works=no
10508    ac_outfile=conftest.$ac_objext
10509    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10510    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10511    # Insert the option either (1) after the last *FLAGS variable, or
10512    # (2) before a word containing "conftest.", or (3) at the end.
10513    # Note that $ac_compile itself does not contain backslashes and begins
10514    # with a dollar sign (not a hyphen), so the echo should work correctly.
10515    # The option is referenced via a variable to avoid confusing sed.
10516    lt_compile=`echo "$ac_compile" | $SED \
10517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10519    -e 's:$: $lt_compiler_flag:'`
10520    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10521    (eval "$lt_compile" 2>conftest.err)
10522    ac_status=$?
10523    cat conftest.err >&5
10524    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525    if (exit $ac_status) && test -s "$ac_outfile"; then
10526      # The compiler can only warn and ignore the option if not recognized
10527      # So say no if there are warnings other than the usual output.
10528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10529      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10530      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10531        lt_cv_prog_compiler_pic_works=yes
10532      fi
10533    fi
10534    $RM conftest*
10535
10536 fi
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10538 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10539
10540 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10541     case $lt_prog_compiler_pic in
10542      "" | " "*) ;;
10543      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10544      esac
10545 else
10546     lt_prog_compiler_pic=
10547      lt_prog_compiler_can_build_shared=no
10548 fi
10549
10550 fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562 #
10563 # Check to make sure the static flag actually works.
10564 #
10565 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10567 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10568 if test ${lt_cv_prog_compiler_static_works+y}
10569 then :
10570   printf %s "(cached) " >&6
10571 else $as_nop
10572   lt_cv_prog_compiler_static_works=no
10573    save_LDFLAGS=$LDFLAGS
10574    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10575    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10576    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10577      # The linker can only warn and ignore the option if not recognized
10578      # So say no if there are warnings
10579      if test -s conftest.err; then
10580        # Append any errors to the config.log.
10581        cat conftest.err 1>&5
10582        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10583        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10584        if diff conftest.exp conftest.er2 >/dev/null; then
10585          lt_cv_prog_compiler_static_works=yes
10586        fi
10587      else
10588        lt_cv_prog_compiler_static_works=yes
10589      fi
10590    fi
10591    $RM -r conftest*
10592    LDFLAGS=$save_LDFLAGS
10593
10594 fi
10595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10596 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10597
10598 if test yes = "$lt_cv_prog_compiler_static_works"; then
10599     :
10600 else
10601     lt_prog_compiler_static=
10602 fi
10603
10604
10605
10606
10607
10608
10609
10610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10611 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10612 if test ${lt_cv_prog_compiler_c_o+y}
10613 then :
10614   printf %s "(cached) " >&6
10615 else $as_nop
10616   lt_cv_prog_compiler_c_o=no
10617    $RM -r conftest 2>/dev/null
10618    mkdir conftest
10619    cd conftest
10620    mkdir out
10621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10622
10623    lt_compiler_flag="-o out/conftest2.$ac_objext"
10624    # Insert the option either (1) after the last *FLAGS variable, or
10625    # (2) before a word containing "conftest.", or (3) at the end.
10626    # Note that $ac_compile itself does not contain backslashes and begins
10627    # with a dollar sign (not a hyphen), so the echo should work correctly.
10628    lt_compile=`echo "$ac_compile" | $SED \
10629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10631    -e 's:$: $lt_compiler_flag:'`
10632    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10633    (eval "$lt_compile" 2>out/conftest.err)
10634    ac_status=$?
10635    cat out/conftest.err >&5
10636    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10638    then
10639      # The compiler can only warn and ignore the option if not recognized
10640      # So say no if there are warnings
10641      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10642      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10643      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10644        lt_cv_prog_compiler_c_o=yes
10645      fi
10646    fi
10647    chmod u+w . 2>&5
10648    $RM conftest*
10649    # SGI C++ compiler will create directory out/ii_files/ for
10650    # template instantiation
10651    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10652    $RM out/* && rmdir out
10653    cd ..
10654    $RM -r conftest
10655    $RM conftest*
10656
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10659 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10660
10661
10662
10663
10664
10665
10666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668 if test ${lt_cv_prog_compiler_c_o+y}
10669 then :
10670   printf %s "(cached) " >&6
10671 else $as_nop
10672   lt_cv_prog_compiler_c_o=no
10673    $RM -r conftest 2>/dev/null
10674    mkdir conftest
10675    cd conftest
10676    mkdir out
10677    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10678
10679    lt_compiler_flag="-o out/conftest2.$ac_objext"
10680    # Insert the option either (1) after the last *FLAGS variable, or
10681    # (2) before a word containing "conftest.", or (3) at the end.
10682    # Note that $ac_compile itself does not contain backslashes and begins
10683    # with a dollar sign (not a hyphen), so the echo should work correctly.
10684    lt_compile=`echo "$ac_compile" | $SED \
10685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10687    -e 's:$: $lt_compiler_flag:'`
10688    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10689    (eval "$lt_compile" 2>out/conftest.err)
10690    ac_status=$?
10691    cat out/conftest.err >&5
10692    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10694    then
10695      # The compiler can only warn and ignore the option if not recognized
10696      # So say no if there are warnings
10697      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10698      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10699      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10700        lt_cv_prog_compiler_c_o=yes
10701      fi
10702    fi
10703    chmod u+w . 2>&5
10704    $RM conftest*
10705    # SGI C++ compiler will create directory out/ii_files/ for
10706    # template instantiation
10707    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10708    $RM out/* && rmdir out
10709    cd ..
10710    $RM -r conftest
10711    $RM conftest*
10712
10713 fi
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10715 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10716
10717
10718
10719
10720 hard_links=nottested
10721 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10722   # do not overwrite the value of need_locks provided by the user
10723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10724 printf %s "checking if we can lock with hard links... " >&6; }
10725   hard_links=yes
10726   $RM conftest*
10727   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10728   touch conftest.a
10729   ln conftest.a conftest.b 2>&5 || hard_links=no
10730   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10732 printf "%s\n" "$hard_links" >&6; }
10733   if test no = "$hard_links"; then
10734     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10735 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10736     need_locks=warn
10737   fi
10738 else
10739   need_locks=no
10740 fi
10741
10742
10743
10744
10745
10746
10747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10748 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10749
10750   runpath_var=
10751   allow_undefined_flag=
10752   always_export_symbols=no
10753   archive_cmds=
10754   archive_expsym_cmds=
10755   compiler_needs_object=no
10756   enable_shared_with_static_runtimes=no
10757   export_dynamic_flag_spec=
10758   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10759   hardcode_automatic=no
10760   hardcode_direct=no
10761   hardcode_direct_absolute=no
10762   hardcode_libdir_flag_spec=
10763   hardcode_libdir_separator=
10764   hardcode_minus_L=no
10765   hardcode_shlibpath_var=unsupported
10766   inherit_rpath=no
10767   link_all_deplibs=unknown
10768   module_cmds=
10769   module_expsym_cmds=
10770   old_archive_from_new_cmds=
10771   old_archive_from_expsyms_cmds=
10772   thread_safe_flag_spec=
10773   whole_archive_flag_spec=
10774   # include_expsyms should be a list of space-separated symbols to be *always*
10775   # included in the symbol list
10776   include_expsyms=
10777   # exclude_expsyms can be an extended regexp of symbols to exclude
10778   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10779   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10780   # as well as any symbol that contains 'd'.
10781   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10782   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10783   # platforms (ab)use it in PIC code, but their linkers get confused if
10784   # the symbol is explicitly referenced.  Since portable code cannot
10785   # rely on this symbol name, it's probably fine to never include it in
10786   # preloaded symbol tables.
10787   # Exclude shared library initialization/finalization symbols.
10788   extract_expsyms_cmds=
10789
10790   case $host_os in
10791   cygwin* | mingw* | pw32* | cegcc*)
10792     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10793     # When not using gcc, we currently assume that we are using
10794     # Microsoft Visual C++.
10795     if test yes != "$GCC"; then
10796       with_gnu_ld=no
10797     fi
10798     ;;
10799   interix*)
10800     # we just hope/assume this is gcc and not c89 (= MSVC++)
10801     with_gnu_ld=yes
10802     ;;
10803   openbsd* | bitrig*)
10804     with_gnu_ld=no
10805     ;;
10806   linux* | k*bsd*-gnu | gnu*)
10807     link_all_deplibs=no
10808     ;;
10809   esac
10810
10811   ld_shlibs=yes
10812
10813   # On some targets, GNU ld is compatible enough with the native linker
10814   # that we're better off using the native interface for both.
10815   lt_use_gnu_ld_interface=no
10816   if test yes = "$with_gnu_ld"; then
10817     case $host_os in
10818       aix*)
10819         # The AIX port of GNU ld has always aspired to compatibility
10820         # with the native linker.  However, as the warning in the GNU ld
10821         # block says, versions before 2.19.5* couldn't really create working
10822         # shared libraries, regardless of the interface used.
10823         case `$LD -v 2>&1` in
10824           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10825           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10826           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10827           *)
10828             lt_use_gnu_ld_interface=yes
10829             ;;
10830         esac
10831         ;;
10832       *)
10833         lt_use_gnu_ld_interface=yes
10834         ;;
10835     esac
10836   fi
10837
10838   if test yes = "$lt_use_gnu_ld_interface"; then
10839     # If archive_cmds runs LD, not CC, wlarc should be empty
10840     wlarc='$wl'
10841
10842     # Set some defaults for GNU ld with shared library support. These
10843     # are reset later if shared libraries are not supported. Putting them
10844     # here allows them to be overridden if necessary.
10845     runpath_var=LD_RUN_PATH
10846     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10847     export_dynamic_flag_spec='$wl--export-dynamic'
10848     # ancient GNU ld didn't support --whole-archive et. al.
10849     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10850       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10851     else
10852       whole_archive_flag_spec=
10853     fi
10854     supports_anon_versioning=no
10855     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10856       *GNU\ gold*) supports_anon_versioning=yes ;;
10857       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10858       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10859       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10860       *\ 2.11.*) ;; # other 2.11 versions
10861       *) supports_anon_versioning=yes ;;
10862     esac
10863
10864     # See if GNU ld supports shared libraries.
10865     case $host_os in
10866     aix[3-9]*)
10867       # On AIX/PPC, the GNU linker is very broken
10868       if test ia64 != "$host_cpu"; then
10869         ld_shlibs=no
10870         cat <<_LT_EOF 1>&2
10871
10872 *** Warning: the GNU linker, at least up to release 2.19, is reported
10873 *** to be unable to reliably create shared libraries on AIX.
10874 *** Therefore, libtool is disabling shared libraries support.  If you
10875 *** really care for shared libraries, you may want to install binutils
10876 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10877 *** You will then need to restart the configuration process.
10878
10879 _LT_EOF
10880       fi
10881       ;;
10882
10883     amigaos*)
10884       case $host_cpu in
10885       powerpc)
10886             # see comment about AmigaOS4 .so support
10887             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10888             archive_expsym_cmds=''
10889         ;;
10890       m68k)
10891             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10892             hardcode_libdir_flag_spec='-L$libdir'
10893             hardcode_minus_L=yes
10894         ;;
10895       esac
10896       ;;
10897
10898     beos*)
10899       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10900         allow_undefined_flag=unsupported
10901         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10902         # support --undefined.  This deserves some investigation.  FIXME
10903         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10904       else
10905         ld_shlibs=no
10906       fi
10907       ;;
10908
10909     cygwin* | mingw* | pw32* | cegcc*)
10910       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10911       # as there is no search path for DLLs.
10912       hardcode_libdir_flag_spec='-L$libdir'
10913       export_dynamic_flag_spec='$wl--export-all-symbols'
10914       allow_undefined_flag=unsupported
10915       always_export_symbols=no
10916       enable_shared_with_static_runtimes=yes
10917       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10918       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10919
10920       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10921         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10922         # If the export-symbols file already is a .def file, use it as
10923         # is; otherwise, prepend EXPORTS...
10924         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10925           cp $export_symbols $output_objdir/$soname.def;
10926         else
10927           echo EXPORTS > $output_objdir/$soname.def;
10928           cat $export_symbols >> $output_objdir/$soname.def;
10929         fi~
10930         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10931       else
10932         ld_shlibs=no
10933       fi
10934       ;;
10935
10936     haiku*)
10937       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10938       link_all_deplibs=yes
10939       ;;
10940
10941     os2*)
10942       hardcode_libdir_flag_spec='-L$libdir'
10943       hardcode_minus_L=yes
10944       allow_undefined_flag=unsupported
10945       shrext_cmds=.dll
10946       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10947         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10948         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10949         $ECHO EXPORTS >> $output_objdir/$libname.def~
10950         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10951         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10952         emximp -o $lib $output_objdir/$libname.def'
10953       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10954         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10955         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10956         $ECHO EXPORTS >> $output_objdir/$libname.def~
10957         prefix_cmds="$SED"~
10958         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10959           prefix_cmds="$prefix_cmds -e 1d";
10960         fi~
10961         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10962         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10963         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10964         emximp -o $lib $output_objdir/$libname.def'
10965       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10966       enable_shared_with_static_runtimes=yes
10967       ;;
10968
10969     interix[3-9]*)
10970       hardcode_direct=no
10971       hardcode_shlibpath_var=no
10972       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10973       export_dynamic_flag_spec='$wl-E'
10974       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10975       # Instead, shared libraries are loaded at an image base (0x10000000 by
10976       # default) and relocated if they conflict, which is a slow very memory
10977       # consuming and fragmenting process.  To avoid this, we pick a random,
10978       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10979       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10980       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10981       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10982       ;;
10983
10984     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10985       tmp_diet=no
10986       if test linux-dietlibc = "$host_os"; then
10987         case $cc_basename in
10988           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10989         esac
10990       fi
10991       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10992          && test no = "$tmp_diet"
10993       then
10994         tmp_addflag=' $pic_flag'
10995         tmp_sharedflag='-shared'
10996         case $cc_basename,$host_cpu in
10997         pgcc*)                          # Portland Group C compiler
10998           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10999           tmp_addflag=' $pic_flag'
11000           ;;
11001         pgf77* | pgf90* | pgf95* | pgfortran*)
11002                                         # Portland Group f77 and f90 compilers
11003           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11004           tmp_addflag=' $pic_flag -Mnomain' ;;
11005         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11006           tmp_addflag=' -i_dynamic' ;;
11007         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11008           tmp_addflag=' -i_dynamic -nofor_main' ;;
11009         ifc* | ifort*)                  # Intel Fortran compiler
11010           tmp_addflag=' -nofor_main' ;;
11011         lf95*)                          # Lahey Fortran 8.1
11012           whole_archive_flag_spec=
11013           tmp_sharedflag='--shared' ;;
11014         nagfor*)                        # NAGFOR 5.3
11015           tmp_sharedflag='-Wl,-shared' ;;
11016         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11017           tmp_sharedflag='-qmkshrobj'
11018           tmp_addflag= ;;
11019         nvcc*)  # Cuda Compiler Driver 2.2
11020           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11021           compiler_needs_object=yes
11022           ;;
11023         esac
11024         case `$CC -V 2>&1 | sed 5q` in
11025         *Sun\ C*)                       # Sun C 5.9
11026           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11027           compiler_needs_object=yes
11028           tmp_sharedflag='-G' ;;
11029         *Sun\ F*)                       # Sun Fortran 8.3
11030           tmp_sharedflag='-G' ;;
11031         esac
11032         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11033
11034         if test yes = "$supports_anon_versioning"; then
11035           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11036             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11037             echo "local: *; };" >> $output_objdir/$libname.ver~
11038             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11039         fi
11040
11041         case $cc_basename in
11042         tcc*)
11043           export_dynamic_flag_spec='-rdynamic'
11044           ;;
11045         xlf* | bgf* | bgxlf* | mpixlf*)
11046           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11047           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11048           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11050           if test yes = "$supports_anon_versioning"; then
11051             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11052               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11053               echo "local: *; };" >> $output_objdir/$libname.ver~
11054               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11055           fi
11056           ;;
11057         esac
11058       else
11059         ld_shlibs=no
11060       fi
11061       ;;
11062
11063     netbsd* | netbsdelf*-gnu)
11064       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11065         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11066         wlarc=
11067       else
11068         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11069         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11070       fi
11071       ;;
11072
11073     solaris*)
11074       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11075         ld_shlibs=no
11076         cat <<_LT_EOF 1>&2
11077
11078 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11079 *** create shared libraries on Solaris systems.  Therefore, libtool
11080 *** is disabling shared libraries support.  We urge you to upgrade GNU
11081 *** binutils to release 2.9.1 or newer.  Another option is to modify
11082 *** your PATH or compiler configuration so that the native linker is
11083 *** used, and then restart.
11084
11085 _LT_EOF
11086       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11087         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11088         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11089       else
11090         ld_shlibs=no
11091       fi
11092       ;;
11093
11094     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11095       case `$LD -v 2>&1` in
11096         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11097         ld_shlibs=no
11098         cat <<_LT_EOF 1>&2
11099
11100 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11101 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11102 *** is disabling shared libraries support.  We urge you to upgrade GNU
11103 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11104 *** your PATH or compiler configuration so that the native linker is
11105 *** used, and then restart.
11106
11107 _LT_EOF
11108         ;;
11109         *)
11110           # For security reasons, it is highly recommended that you always
11111           # use absolute paths for naming shared libraries, and exclude the
11112           # DT_RUNPATH tag from executables and libraries.  But doing so
11113           # requires that you compile everything twice, which is a pain.
11114           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11115             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11116             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11117             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11118           else
11119             ld_shlibs=no
11120           fi
11121         ;;
11122       esac
11123       ;;
11124
11125     sunos4*)
11126       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11127       wlarc=
11128       hardcode_direct=yes
11129       hardcode_shlibpath_var=no
11130       ;;
11131
11132     *)
11133       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11134         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11135         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11136       else
11137         ld_shlibs=no
11138       fi
11139       ;;
11140     esac
11141
11142     if test no = "$ld_shlibs"; then
11143       runpath_var=
11144       hardcode_libdir_flag_spec=
11145       export_dynamic_flag_spec=
11146       whole_archive_flag_spec=
11147     fi
11148   else
11149     # PORTME fill in a description of your system's linker (not GNU ld)
11150     case $host_os in
11151     aix3*)
11152       allow_undefined_flag=unsupported
11153       always_export_symbols=yes
11154       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11155       # Note: this linker hardcodes the directories in LIBPATH if there
11156       # are no directories specified by -L.
11157       hardcode_minus_L=yes
11158       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11159         # Neither direct hardcoding nor static linking is supported with a
11160         # broken collect2.
11161         hardcode_direct=unsupported
11162       fi
11163       ;;
11164
11165     aix[4-9]*)
11166       if test ia64 = "$host_cpu"; then
11167         # On IA64, the linker does run time linking by default, so we don't
11168         # have to do anything special.
11169         aix_use_runtimelinking=no
11170         exp_sym_flag='-Bexport'
11171         no_entry_flag=
11172       else
11173         # If we're using GNU nm, then we don't want the "-C" option.
11174         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11175         # Without the "-l" option, or with the "-B" option, AIX nm treats
11176         # weak defined symbols like other global defined symbols, whereas
11177         # GNU nm marks them as "W".
11178         # While the 'weak' keyword is ignored in the Export File, we need
11179         # it in the Import File for the 'aix-soname' feature, so we have
11180         # to replace the "-B" option with "-P" for AIX nm.
11181         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11182           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11183         else
11184           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11185         fi
11186         aix_use_runtimelinking=no
11187
11188         # Test if we are trying to use run time linking or normal
11189         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11190         # have runtime linking enabled, and use it for executables.
11191         # For shared libraries, we enable/disable runtime linking
11192         # depending on the kind of the shared library created -
11193         # when "with_aix_soname,aix_use_runtimelinking" is:
11194         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11195         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11196         #            lib.a           static archive
11197         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11198         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11199         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11200         #            lib.a(lib.so.V) shared, rtl:no
11201         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11202         #            lib.a           static archive
11203         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11204           for ld_flag in $LDFLAGS; do
11205           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11206             aix_use_runtimelinking=yes
11207             break
11208           fi
11209           done
11210           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11211             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11212             # so we don't have lib.a shared libs to link our executables.
11213             # We have to force runtime linking in this case.
11214             aix_use_runtimelinking=yes
11215             LDFLAGS="$LDFLAGS -Wl,-brtl"
11216           fi
11217           ;;
11218         esac
11219
11220         exp_sym_flag='-bexport'
11221         no_entry_flag='-bnoentry'
11222       fi
11223
11224       # When large executables or shared objects are built, AIX ld can
11225       # have problems creating the table of contents.  If linking a library
11226       # or program results in "error TOC overflow" add -mminimal-toc to
11227       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11228       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11229
11230       archive_cmds=''
11231       hardcode_direct=yes
11232       hardcode_direct_absolute=yes
11233       hardcode_libdir_separator=':'
11234       link_all_deplibs=yes
11235       file_list_spec='$wl-f,'
11236       case $with_aix_soname,$aix_use_runtimelinking in
11237       aix,*) ;; # traditional, no import file
11238       svr4,* | *,yes) # use import file
11239         # The Import File defines what to hardcode.
11240         hardcode_direct=no
11241         hardcode_direct_absolute=no
11242         ;;
11243       esac
11244
11245       if test yes = "$GCC"; then
11246         case $host_os in aix4.[012]|aix4.[012].*)
11247         # We only want to do this on AIX 4.2 and lower, the check
11248         # below for broken collect2 doesn't work under 4.3+
11249           collect2name=`$CC -print-prog-name=collect2`
11250           if test -f "$collect2name" &&
11251            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11252           then
11253           # We have reworked collect2
11254           :
11255           else
11256           # We have old collect2
11257           hardcode_direct=unsupported
11258           # It fails to find uninstalled libraries when the uninstalled
11259           # path is not listed in the libpath.  Setting hardcode_minus_L
11260           # to unsupported forces relinking
11261           hardcode_minus_L=yes
11262           hardcode_libdir_flag_spec='-L$libdir'
11263           hardcode_libdir_separator=
11264           fi
11265           ;;
11266         esac
11267         shared_flag='-shared'
11268         if test yes = "$aix_use_runtimelinking"; then
11269           shared_flag="$shared_flag "'$wl-G'
11270         fi
11271         # Need to ensure runtime linking is disabled for the traditional
11272         # shared library, or the linker may eventually find shared libraries
11273         # /with/ Import File - we do not want to mix them.
11274         shared_flag_aix='-shared'
11275         shared_flag_svr4='-shared $wl-G'
11276       else
11277         # not using gcc
11278         if test ia64 = "$host_cpu"; then
11279         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11280         # chokes on -Wl,-G. The following line is correct:
11281           shared_flag='-G'
11282         else
11283           if test yes = "$aix_use_runtimelinking"; then
11284             shared_flag='$wl-G'
11285           else
11286             shared_flag='$wl-bM:SRE'
11287           fi
11288           shared_flag_aix='$wl-bM:SRE'
11289           shared_flag_svr4='$wl-G'
11290         fi
11291       fi
11292
11293       export_dynamic_flag_spec='$wl-bexpall'
11294       # It seems that -bexpall does not export symbols beginning with
11295       # underscore (_), so it is better to generate a list of symbols to export.
11296       always_export_symbols=yes
11297       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11298         # Warning - without using the other runtime loading flags (-brtl),
11299         # -berok will link without error, but may produce a broken library.
11300         allow_undefined_flag='-berok'
11301         # Determine the default libpath from the value encoded in an
11302         # empty executable.
11303         if test set = "${lt_cv_aix_libpath+set}"; then
11304   aix_libpath=$lt_cv_aix_libpath
11305 else
11306   if test ${lt_cv_aix_libpath_+y}
11307 then :
11308   printf %s "(cached) " >&6
11309 else $as_nop
11310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h.  */
11312
11313 int
11314 main (void)
11315 {
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"
11322 then :
11323
11324   lt_aix_libpath_sed='
11325       /Import File Strings/,/^$/ {
11326           /^0/ {
11327               s/^0  *\([^ ]*\) *$/\1/
11328               p
11329           }
11330       }'
11331   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11332   # Check for a 64-bit object if we didn't find anything.
11333   if test -z "$lt_cv_aix_libpath_"; then
11334     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11335   fi
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11338     conftest$ac_exeext conftest.$ac_ext
11339   if test -z "$lt_cv_aix_libpath_"; then
11340     lt_cv_aix_libpath_=/usr/lib:/lib
11341   fi
11342
11343 fi
11344
11345   aix_libpath=$lt_cv_aix_libpath_
11346 fi
11347
11348         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11349         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11350       else
11351         if test ia64 = "$host_cpu"; then
11352           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11353           allow_undefined_flag="-z nodefs"
11354           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11355         else
11356          # Determine the default libpath from the value encoded in an
11357          # empty executable.
11358          if test set = "${lt_cv_aix_libpath+set}"; then
11359   aix_libpath=$lt_cv_aix_libpath
11360 else
11361   if test ${lt_cv_aix_libpath_+y}
11362 then :
11363   printf %s "(cached) " >&6
11364 else $as_nop
11365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h.  */
11367
11368 int
11369 main (void)
11370 {
11371
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"
11377 then :
11378
11379   lt_aix_libpath_sed='
11380       /Import File Strings/,/^$/ {
11381           /^0/ {
11382               s/^0  *\([^ ]*\) *$/\1/
11383               p
11384           }
11385       }'
11386   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11387   # Check for a 64-bit object if we didn't find anything.
11388   if test -z "$lt_cv_aix_libpath_"; then
11389     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11390   fi
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11393     conftest$ac_exeext conftest.$ac_ext
11394   if test -z "$lt_cv_aix_libpath_"; then
11395     lt_cv_aix_libpath_=/usr/lib:/lib
11396   fi
11397
11398 fi
11399
11400   aix_libpath=$lt_cv_aix_libpath_
11401 fi
11402
11403          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11404           # Warning - without using the other run time loading flags,
11405           # -berok will link without error, but may produce a broken library.
11406           no_undefined_flag=' $wl-bernotok'
11407           allow_undefined_flag=' $wl-berok'
11408           if test yes = "$with_gnu_ld"; then
11409             # We only use this code for GNU lds that support --whole-archive.
11410             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11411           else
11412             # Exported symbols can be pulled into shared objects from archives
11413             whole_archive_flag_spec='$convenience'
11414           fi
11415           archive_cmds_need_lc=yes
11416           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11417           # -brtl affects multiple linker settings, -berok does not and is overridden later
11418           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11419           if test svr4 != "$with_aix_soname"; then
11420             # This is similar to how AIX traditionally builds its shared libraries.
11421             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11422           fi
11423           if test aix != "$with_aix_soname"; then
11424             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11425           else
11426             # used by -dlpreopen to get the symbols
11427             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11428           fi
11429           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11430         fi
11431       fi
11432       ;;
11433
11434     amigaos*)
11435       case $host_cpu in
11436       powerpc)
11437             # see comment about AmigaOS4 .so support
11438             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11439             archive_expsym_cmds=''
11440         ;;
11441       m68k)
11442             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11443             hardcode_libdir_flag_spec='-L$libdir'
11444             hardcode_minus_L=yes
11445         ;;
11446       esac
11447       ;;
11448
11449     bsdi[45]*)
11450       export_dynamic_flag_spec=-rdynamic
11451       ;;
11452
11453     cygwin* | mingw* | pw32* | cegcc*)
11454       # When not using gcc, we currently assume that we are using
11455       # Microsoft Visual C++.
11456       # hardcode_libdir_flag_spec is actually meaningless, as there is
11457       # no search path for DLLs.
11458       case $cc_basename in
11459       cl*)
11460         # Native MSVC
11461         hardcode_libdir_flag_spec=' '
11462         allow_undefined_flag=unsupported
11463         always_export_symbols=yes
11464         file_list_spec='@'
11465         # Tell ltmain to make .lib files, not .a files.
11466         libext=lib
11467         # Tell ltmain to make .dll files, not .so files.
11468         shrext_cmds=.dll
11469         # FIXME: Setting linknames here is a bad hack.
11470         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11471         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11472             cp "$export_symbols" "$output_objdir/$soname.def";
11473             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11474           else
11475             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11476           fi~
11477           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11478           linknames='
11479         # The linker will not automatically build a static lib if we build a DLL.
11480         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11481         enable_shared_with_static_runtimes=yes
11482         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11483         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11484         # Don't use ranlib
11485         old_postinstall_cmds='chmod 644 $oldlib'
11486         postlink_cmds='lt_outputfile="@OUTPUT@"~
11487           lt_tool_outputfile="@TOOL_OUTPUT@"~
11488           case $lt_outputfile in
11489             *.exe|*.EXE) ;;
11490             *)
11491               lt_outputfile=$lt_outputfile.exe
11492               lt_tool_outputfile=$lt_tool_outputfile.exe
11493               ;;
11494           esac~
11495           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11496             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11497             $RM "$lt_outputfile.manifest";
11498           fi'
11499         ;;
11500       *)
11501         # Assume MSVC wrapper
11502         hardcode_libdir_flag_spec=' '
11503         allow_undefined_flag=unsupported
11504         # Tell ltmain to make .lib files, not .a files.
11505         libext=lib
11506         # Tell ltmain to make .dll files, not .so files.
11507         shrext_cmds=.dll
11508         # FIXME: Setting linknames here is a bad hack.
11509         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11510         # The linker will automatically build a .lib file if we build a DLL.
11511         old_archive_from_new_cmds='true'
11512         # FIXME: Should let the user specify the lib program.
11513         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11514         enable_shared_with_static_runtimes=yes
11515         ;;
11516       esac
11517       ;;
11518
11519     darwin* | rhapsody*)
11520
11521
11522   archive_cmds_need_lc=no
11523   hardcode_direct=no
11524   hardcode_automatic=yes
11525   hardcode_shlibpath_var=unsupported
11526   if test yes = "$lt_cv_ld_force_load"; then
11527     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11528
11529   else
11530     whole_archive_flag_spec=''
11531   fi
11532   link_all_deplibs=yes
11533   allow_undefined_flag=$_lt_dar_allow_undefined
11534   case $cc_basename in
11535      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11536      *) _lt_dar_can_shared=$GCC ;;
11537   esac
11538   if test yes = "$_lt_dar_can_shared"; then
11539     output_verbose_link_cmd=func_echo_all
11540     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11541     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11542     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11543     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11544
11545   else
11546   ld_shlibs=no
11547   fi
11548
11549       ;;
11550
11551     dgux*)
11552       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11553       hardcode_libdir_flag_spec='-L$libdir'
11554       hardcode_shlibpath_var=no
11555       ;;
11556
11557     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11558     # support.  Future versions do this automatically, but an explicit c++rt0.o
11559     # does not break anything, and helps significantly (at the cost of a little
11560     # extra space).
11561     freebsd2.2*)
11562       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11563       hardcode_libdir_flag_spec='-R$libdir'
11564       hardcode_direct=yes
11565       hardcode_shlibpath_var=no
11566       ;;
11567
11568     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11569     freebsd2.*)
11570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11571       hardcode_direct=yes
11572       hardcode_minus_L=yes
11573       hardcode_shlibpath_var=no
11574       ;;
11575
11576     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11577     freebsd* | dragonfly*)
11578       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11579       hardcode_libdir_flag_spec='-R$libdir'
11580       hardcode_direct=yes
11581       hardcode_shlibpath_var=no
11582       ;;
11583
11584     hpux9*)
11585       if test yes = "$GCC"; then
11586         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11587       else
11588         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11589       fi
11590       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11591       hardcode_libdir_separator=:
11592       hardcode_direct=yes
11593
11594       # hardcode_minus_L: Not really in the search PATH,
11595       # but as the default location of the library.
11596       hardcode_minus_L=yes
11597       export_dynamic_flag_spec='$wl-E'
11598       ;;
11599
11600     hpux10*)
11601       if test yes,no = "$GCC,$with_gnu_ld"; then
11602         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11603       else
11604         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11605       fi
11606       if test no = "$with_gnu_ld"; then
11607         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11608         hardcode_libdir_separator=:
11609         hardcode_direct=yes
11610         hardcode_direct_absolute=yes
11611         export_dynamic_flag_spec='$wl-E'
11612         # hardcode_minus_L: Not really in the search PATH,
11613         # but as the default location of the library.
11614         hardcode_minus_L=yes
11615       fi
11616       ;;
11617
11618     hpux11*)
11619       if test yes,no = "$GCC,$with_gnu_ld"; then
11620         case $host_cpu in
11621         hppa*64*)
11622           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11623           ;;
11624         ia64*)
11625           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11626           ;;
11627         *)
11628           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11629           ;;
11630         esac
11631       else
11632         case $host_cpu in
11633         hppa*64*)
11634           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11635           ;;
11636         ia64*)
11637           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11638           ;;
11639         *)
11640
11641           # Older versions of the 11.00 compiler do not understand -b yet
11642           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11643           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11644 printf %s "checking if $CC understands -b... " >&6; }
11645 if test ${lt_cv_prog_compiler__b+y}
11646 then :
11647   printf %s "(cached) " >&6
11648 else $as_nop
11649   lt_cv_prog_compiler__b=no
11650    save_LDFLAGS=$LDFLAGS
11651    LDFLAGS="$LDFLAGS -b"
11652    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11653    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11654      # The linker can only warn and ignore the option if not recognized
11655      # So say no if there are warnings
11656      if test -s conftest.err; then
11657        # Append any errors to the config.log.
11658        cat conftest.err 1>&5
11659        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11660        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11661        if diff conftest.exp conftest.er2 >/dev/null; then
11662          lt_cv_prog_compiler__b=yes
11663        fi
11664      else
11665        lt_cv_prog_compiler__b=yes
11666      fi
11667    fi
11668    $RM -r conftest*
11669    LDFLAGS=$save_LDFLAGS
11670
11671 fi
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11673 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11674
11675 if test yes = "$lt_cv_prog_compiler__b"; then
11676     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11677 else
11678     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11679 fi
11680
11681           ;;
11682         esac
11683       fi
11684       if test no = "$with_gnu_ld"; then
11685         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11686         hardcode_libdir_separator=:
11687
11688         case $host_cpu in
11689         hppa*64*|ia64*)
11690           hardcode_direct=no
11691           hardcode_shlibpath_var=no
11692           ;;
11693         *)
11694           hardcode_direct=yes
11695           hardcode_direct_absolute=yes
11696           export_dynamic_flag_spec='$wl-E'
11697
11698           # hardcode_minus_L: Not really in the search PATH,
11699           # but as the default location of the library.
11700           hardcode_minus_L=yes
11701           ;;
11702         esac
11703       fi
11704       ;;
11705
11706     irix5* | irix6* | nonstopux*)
11707       if test yes = "$GCC"; then
11708         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11709         # Try to use the -exported_symbol ld option, if it does not
11710         # work, assume that -exports_file does not work either and
11711         # implicitly export all symbols.
11712         # This should be the same for all languages, so no per-tag cache variable.
11713         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11714 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11715 if test ${lt_cv_irix_exported_symbol+y}
11716 then :
11717   printf %s "(cached) " >&6
11718 else $as_nop
11719   save_LDFLAGS=$LDFLAGS
11720            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11721            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h.  */
11723 int foo (void) { return 0; }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"
11726 then :
11727   lt_cv_irix_exported_symbol=yes
11728 else $as_nop
11729   lt_cv_irix_exported_symbol=no
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11732     conftest$ac_exeext conftest.$ac_ext
11733            LDFLAGS=$save_LDFLAGS
11734 fi
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11736 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11737         if test yes = "$lt_cv_irix_exported_symbol"; then
11738           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11739         fi
11740         link_all_deplibs=no
11741       else
11742         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11743         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11744       fi
11745       archive_cmds_need_lc='no'
11746       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11747       hardcode_libdir_separator=:
11748       inherit_rpath=yes
11749       link_all_deplibs=yes
11750       ;;
11751
11752     linux*)
11753       case $cc_basename in
11754       tcc*)
11755         # Fabrice Bellard et al's Tiny C Compiler
11756         ld_shlibs=yes
11757         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11758         ;;
11759       esac
11760       ;;
11761
11762     netbsd* | netbsdelf*-gnu)
11763       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11764         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11765       else
11766         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11767       fi
11768       hardcode_libdir_flag_spec='-R$libdir'
11769       hardcode_direct=yes
11770       hardcode_shlibpath_var=no
11771       ;;
11772
11773     newsos6)
11774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775       hardcode_direct=yes
11776       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11777       hardcode_libdir_separator=:
11778       hardcode_shlibpath_var=no
11779       ;;
11780
11781     *nto* | *qnx*)
11782       ;;
11783
11784     openbsd* | bitrig*)
11785       if test -f /usr/libexec/ld.so; then
11786         hardcode_direct=yes
11787         hardcode_shlibpath_var=no
11788         hardcode_direct_absolute=yes
11789         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11790           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11791           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11792           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11793           export_dynamic_flag_spec='$wl-E'
11794         else
11795           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11796           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11797         fi
11798       else
11799         ld_shlibs=no
11800       fi
11801       ;;
11802
11803     os2*)
11804       hardcode_libdir_flag_spec='-L$libdir'
11805       hardcode_minus_L=yes
11806       allow_undefined_flag=unsupported
11807       shrext_cmds=.dll
11808       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11809         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11810         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11811         $ECHO EXPORTS >> $output_objdir/$libname.def~
11812         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11813         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11814         emximp -o $lib $output_objdir/$libname.def'
11815       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11816         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11817         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11818         $ECHO EXPORTS >> $output_objdir/$libname.def~
11819         prefix_cmds="$SED"~
11820         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11821           prefix_cmds="$prefix_cmds -e 1d";
11822         fi~
11823         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11824         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11825         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11826         emximp -o $lib $output_objdir/$libname.def'
11827       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11828       enable_shared_with_static_runtimes=yes
11829       ;;
11830
11831     osf3*)
11832       if test yes = "$GCC"; then
11833         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11834         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11835       else
11836         allow_undefined_flag=' -expect_unresolved \*'
11837         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11838       fi
11839       archive_cmds_need_lc='no'
11840       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11841       hardcode_libdir_separator=:
11842       ;;
11843
11844     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11845       if test yes = "$GCC"; then
11846         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11847         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11848         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11849       else
11850         allow_undefined_flag=' -expect_unresolved \*'
11851         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11852         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11853           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11854
11855         # Both c and cxx compiler support -rpath directly
11856         hardcode_libdir_flag_spec='-rpath $libdir'
11857       fi
11858       archive_cmds_need_lc='no'
11859       hardcode_libdir_separator=:
11860       ;;
11861
11862     solaris*)
11863       no_undefined_flag=' -z defs'
11864       if test yes = "$GCC"; then
11865         wlarc='$wl'
11866         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11867         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11868           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11869       else
11870         case `$CC -V 2>&1` in
11871         *"Compilers 5.0"*)
11872           wlarc=''
11873           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11874           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11875             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11876           ;;
11877         *)
11878           wlarc='$wl'
11879           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11880           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11881             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11882           ;;
11883         esac
11884       fi
11885       hardcode_libdir_flag_spec='-R$libdir'
11886       hardcode_shlibpath_var=no
11887       case $host_os in
11888       solaris2.[0-5] | solaris2.[0-5].*) ;;
11889       *)
11890         # The compiler driver will combine and reorder linker options,
11891         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11892         # but is careful enough not to reorder.
11893         # Supported since Solaris 2.6 (maybe 2.5.1?)
11894         if test yes = "$GCC"; then
11895           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11896         else
11897           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11898         fi
11899         ;;
11900       esac
11901       link_all_deplibs=yes
11902       ;;
11903
11904     sunos4*)
11905       if test sequent = "$host_vendor"; then
11906         # Use $CC to link under sequent, because it throws in some extra .o
11907         # files that make .init and .fini sections work.
11908         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11909       else
11910         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11911       fi
11912       hardcode_libdir_flag_spec='-L$libdir'
11913       hardcode_direct=yes
11914       hardcode_minus_L=yes
11915       hardcode_shlibpath_var=no
11916       ;;
11917
11918     sysv4)
11919       case $host_vendor in
11920         sni)
11921           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11922           hardcode_direct=yes # is this really true???
11923         ;;
11924         siemens)
11925           ## LD is ld it makes a PLAMLIB
11926           ## CC just makes a GrossModule.
11927           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11928           reload_cmds='$CC -r -o $output$reload_objs'
11929           hardcode_direct=no
11930         ;;
11931         motorola)
11932           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11933           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11934         ;;
11935       esac
11936       runpath_var='LD_RUN_PATH'
11937       hardcode_shlibpath_var=no
11938       ;;
11939
11940     sysv4.3*)
11941       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11942       hardcode_shlibpath_var=no
11943       export_dynamic_flag_spec='-Bexport'
11944       ;;
11945
11946     sysv4*MP*)
11947       if test -d /usr/nec; then
11948         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949         hardcode_shlibpath_var=no
11950         runpath_var=LD_RUN_PATH
11951         hardcode_runpath_var=yes
11952         ld_shlibs=yes
11953       fi
11954       ;;
11955
11956     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11957       no_undefined_flag='$wl-z,text'
11958       archive_cmds_need_lc=no
11959       hardcode_shlibpath_var=no
11960       runpath_var='LD_RUN_PATH'
11961
11962       if test yes = "$GCC"; then
11963         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965       else
11966         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968       fi
11969       ;;
11970
11971     sysv5* | sco3.2v5* | sco5v6*)
11972       # Note: We CANNOT use -z defs as we might desire, because we do not
11973       # link with -lc, and that would cause any symbols used from libc to
11974       # always be unresolved, which means just about no library would
11975       # ever link correctly.  If we're not using GNU ld we use -z text
11976       # though, which does catch some bad symbols but isn't as heavy-handed
11977       # as -z defs.
11978       no_undefined_flag='$wl-z,text'
11979       allow_undefined_flag='$wl-z,nodefs'
11980       archive_cmds_need_lc=no
11981       hardcode_shlibpath_var=no
11982       hardcode_libdir_flag_spec='$wl-R,$libdir'
11983       hardcode_libdir_separator=':'
11984       link_all_deplibs=yes
11985       export_dynamic_flag_spec='$wl-Bexport'
11986       runpath_var='LD_RUN_PATH'
11987
11988       if test yes = "$GCC"; then
11989         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11990         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11991       else
11992         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11994       fi
11995       ;;
11996
11997     uts4*)
11998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11999       hardcode_libdir_flag_spec='-L$libdir'
12000       hardcode_shlibpath_var=no
12001       ;;
12002
12003     *)
12004       ld_shlibs=no
12005       ;;
12006     esac
12007
12008     if test sni = "$host_vendor"; then
12009       case $host in
12010       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12011         export_dynamic_flag_spec='$wl-Blargedynsym'
12012         ;;
12013       esac
12014     fi
12015   fi
12016
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12018 printf "%s\n" "$ld_shlibs" >&6; }
12019 test no = "$ld_shlibs" && can_build_shared=no
12020
12021 with_gnu_ld=$with_gnu_ld
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037 #
12038 # Do we need to explicitly link libc?
12039 #
12040 case "x$archive_cmds_need_lc" in
12041 x|xyes)
12042   # Assume -lc should be added
12043   archive_cmds_need_lc=yes
12044
12045   if test yes,yes = "$GCC,$enable_shared"; then
12046     case $archive_cmds in
12047     *'~'*)
12048       # FIXME: we may have to deal with multi-command sequences.
12049       ;;
12050     '$CC '*)
12051       # Test whether the compiler implicitly links with -lc since on some
12052       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12053       # to ld, don't add -lc before -lgcc.
12054       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12055 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12056 if test ${lt_cv_archive_cmds_need_lc+y}
12057 then :
12058   printf %s "(cached) " >&6
12059 else $as_nop
12060   $RM conftest*
12061         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12062
12063         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12064   (eval $ac_compile) 2>&5
12065   ac_status=$?
12066   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067   test $ac_status = 0; } 2>conftest.err; then
12068           soname=conftest
12069           lib=conftest
12070           libobjs=conftest.$ac_objext
12071           deplibs=
12072           wl=$lt_prog_compiler_wl
12073           pic_flag=$lt_prog_compiler_pic
12074           compiler_flags=-v
12075           linker_flags=-v
12076           verstring=
12077           output_objdir=.
12078           libname=conftest
12079           lt_save_allow_undefined_flag=$allow_undefined_flag
12080           allow_undefined_flag=
12081           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12082   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12083   ac_status=$?
12084   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085   test $ac_status = 0; }
12086           then
12087             lt_cv_archive_cmds_need_lc=no
12088           else
12089             lt_cv_archive_cmds_need_lc=yes
12090           fi
12091           allow_undefined_flag=$lt_save_allow_undefined_flag
12092         else
12093           cat conftest.err 1>&5
12094         fi
12095         $RM conftest*
12096
12097 fi
12098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12099 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12100       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12101       ;;
12102     esac
12103   fi
12104   ;;
12105 esac
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12259 printf %s "checking dynamic linker characteristics... " >&6; }
12260
12261 if test yes = "$GCC"; then
12262   case $host_os in
12263     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12264     *) lt_awk_arg='/^libraries:/' ;;
12265   esac
12266   case $host_os in
12267     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12268     *) lt_sed_strip_eq='s|=/|/|g' ;;
12269   esac
12270   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12271   case $lt_search_path_spec in
12272   *\;*)
12273     # if the path contains ";" then we assume it to be the separator
12274     # otherwise default to the standard path separator (i.e. ":") - it is
12275     # assumed that no part of a normal pathname contains ";" but that should
12276     # okay in the real world where ";" in dirpaths is itself problematic.
12277     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12278     ;;
12279   *)
12280     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12281     ;;
12282   esac
12283   # Ok, now we have the path, separated by spaces, we can step through it
12284   # and add multilib dir if necessary...
12285   lt_tmp_lt_search_path_spec=
12286   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12287   # ...but if some path component already ends with the multilib dir we assume
12288   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12289   case "$lt_multi_os_dir; $lt_search_path_spec " in
12290   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12291     lt_multi_os_dir=
12292     ;;
12293   esac
12294   for lt_sys_path in $lt_search_path_spec; do
12295     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12296       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12297     elif test -n "$lt_multi_os_dir"; then
12298       test -d "$lt_sys_path" && \
12299         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12300     fi
12301   done
12302   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12303 BEGIN {RS = " "; FS = "/|\n";} {
12304   lt_foo = "";
12305   lt_count = 0;
12306   for (lt_i = NF; lt_i > 0; lt_i--) {
12307     if ($lt_i != "" && $lt_i != ".") {
12308       if ($lt_i == "..") {
12309         lt_count++;
12310       } else {
12311         if (lt_count == 0) {
12312           lt_foo = "/" $lt_i lt_foo;
12313         } else {
12314           lt_count--;
12315         }
12316       }
12317     }
12318   }
12319   if (lt_foo != "") { lt_freq[lt_foo]++; }
12320   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12321 }'`
12322   # AWK program above erroneously prepends '/' to C:/dos/paths
12323   # for these hosts.
12324   case $host_os in
12325     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12326       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12327   esac
12328   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12329 else
12330   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12331 fi
12332 library_names_spec=
12333 libname_spec='lib$name'
12334 soname_spec=
12335 shrext_cmds=.so
12336 postinstall_cmds=
12337 postuninstall_cmds=
12338 finish_cmds=
12339 finish_eval=
12340 shlibpath_var=
12341 shlibpath_overrides_runpath=unknown
12342 version_type=none
12343 dynamic_linker="$host_os ld.so"
12344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12345 need_lib_prefix=unknown
12346 hardcode_into_libs=no
12347
12348 # when you set need_version to no, make sure it does not cause -set_version
12349 # flags to be left without arguments
12350 need_version=unknown
12351
12352
12353
12354 case $host_os in
12355 aix3*)
12356   version_type=linux # correct to gnu/linux during the next big refactor
12357   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12358   shlibpath_var=LIBPATH
12359
12360   # AIX 3 has no versioning support, so we append a major version to the name.
12361   soname_spec='$libname$release$shared_ext$major'
12362   ;;
12363
12364 aix[4-9]*)
12365   version_type=linux # correct to gnu/linux during the next big refactor
12366   need_lib_prefix=no
12367   need_version=no
12368   hardcode_into_libs=yes
12369   if test ia64 = "$host_cpu"; then
12370     # AIX 5 supports IA64
12371     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12372     shlibpath_var=LD_LIBRARY_PATH
12373   else
12374     # With GCC up to 2.95.x, collect2 would create an import file
12375     # for dependence libraries.  The import file would start with
12376     # the line '#! .'.  This would cause the generated library to
12377     # depend on '.', always an invalid library.  This was fixed in
12378     # development snapshots of GCC prior to 3.0.
12379     case $host_os in
12380       aix4 | aix4.[01] | aix4.[01].*)
12381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12382            echo ' yes '
12383            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12384         :
12385       else
12386         can_build_shared=no
12387       fi
12388       ;;
12389     esac
12390     # Using Import Files as archive members, it is possible to support
12391     # filename-based versioning of shared library archives on AIX. While
12392     # this would work for both with and without runtime linking, it will
12393     # prevent static linking of such archives. So we do filename-based
12394     # shared library versioning with .so extension only, which is used
12395     # when both runtime linking and shared linking is enabled.
12396     # Unfortunately, runtime linking may impact performance, so we do
12397     # not want this to be the default eventually. Also, we use the
12398     # versioned .so libs for executables only if there is the -brtl
12399     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12400     # To allow for filename-based versioning support, we need to create
12401     # libNAME.so.V as an archive file, containing:
12402     # *) an Import File, referring to the versioned filename of the
12403     #    archive as well as the shared archive member, telling the
12404     #    bitwidth (32 or 64) of that shared object, and providing the
12405     #    list of exported symbols of that shared object, eventually
12406     #    decorated with the 'weak' keyword
12407     # *) the shared object with the F_LOADONLY flag set, to really avoid
12408     #    it being seen by the linker.
12409     # At run time we better use the real file rather than another symlink,
12410     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12411
12412     case $with_aix_soname,$aix_use_runtimelinking in
12413     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12414     # soname into executable. Probably we can add versioning support to
12415     # collect2, so additional links can be useful in future.
12416     aix,yes) # traditional libtool
12417       dynamic_linker='AIX unversionable lib.so'
12418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12419       # instead of lib<name>.a to let people know that these are not
12420       # typical AIX shared libraries.
12421       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422       ;;
12423     aix,no) # traditional AIX only
12424       dynamic_linker='AIX lib.a(lib.so.V)'
12425       # We preserve .a as extension for shared libraries through AIX4.2
12426       # and later when we are not doing run time linking.
12427       library_names_spec='$libname$release.a $libname.a'
12428       soname_spec='$libname$release$shared_ext$major'
12429       ;;
12430     svr4,*) # full svr4 only
12431       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12432       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12433       # We do not specify a path in Import Files, so LIBPATH fires.
12434       shlibpath_overrides_runpath=yes
12435       ;;
12436     *,yes) # both, prefer svr4
12437       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12438       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12439       # unpreferred sharedlib libNAME.a needs extra handling
12440       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12441       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12442       # We do not specify a path in Import Files, so LIBPATH fires.
12443       shlibpath_overrides_runpath=yes
12444       ;;
12445     *,no) # both, prefer aix
12446       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12447       library_names_spec='$libname$release.a $libname.a'
12448       soname_spec='$libname$release$shared_ext$major'
12449       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12450       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12451       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12452       ;;
12453     esac
12454     shlibpath_var=LIBPATH
12455   fi
12456   ;;
12457
12458 amigaos*)
12459   case $host_cpu in
12460   powerpc)
12461     # Since July 2007 AmigaOS4 officially supports .so libraries.
12462     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12463     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464     ;;
12465   m68k)
12466     library_names_spec='$libname.ixlibrary $libname.a'
12467     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12468     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12469     ;;
12470   esac
12471   ;;
12472
12473 beos*)
12474   library_names_spec='$libname$shared_ext'
12475   dynamic_linker="$host_os ld.so"
12476   shlibpath_var=LIBRARY_PATH
12477   ;;
12478
12479 bsdi[45]*)
12480   version_type=linux # correct to gnu/linux during the next big refactor
12481   need_version=no
12482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483   soname_spec='$libname$release$shared_ext$major'
12484   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12485   shlibpath_var=LD_LIBRARY_PATH
12486   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12487   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12488   # the default ld.so.conf also contains /usr/contrib/lib and
12489   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12490   # libtool to hard-code these into programs
12491   ;;
12492
12493 cygwin* | mingw* | pw32* | cegcc*)
12494   version_type=windows
12495   shrext_cmds=.dll
12496   need_version=no
12497   need_lib_prefix=no
12498
12499   case $GCC,$cc_basename in
12500   yes,*)
12501     # gcc
12502     library_names_spec='$libname.dll.a'
12503     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12504     postinstall_cmds='base_file=`basename \$file`~
12505       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12506       dldir=$destdir/`dirname \$dlpath`~
12507       test -d \$dldir || mkdir -p \$dldir~
12508       $install_prog $dir/$dlname \$dldir/$dlname~
12509       chmod a+x \$dldir/$dlname~
12510       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12511         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12512       fi'
12513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12514       dlpath=$dir/\$dldll~
12515        $RM \$dlpath'
12516     shlibpath_overrides_runpath=yes
12517
12518     case $host_os in
12519     cygwin*)
12520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12521       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12522
12523       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12524       ;;
12525     mingw* | cegcc*)
12526       # MinGW DLLs use traditional 'lib' prefix
12527       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12528       ;;
12529     pw32*)
12530       # pw32 DLLs use 'pw' prefix rather than 'lib'
12531       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12532       ;;
12533     esac
12534     dynamic_linker='Win32 ld.exe'
12535     ;;
12536
12537   *,cl*)
12538     # Native MSVC
12539     libname_spec='$name'
12540     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12541     library_names_spec='$libname.dll.lib'
12542
12543     case $build_os in
12544     mingw*)
12545       sys_lib_search_path_spec=
12546       lt_save_ifs=$IFS
12547       IFS=';'
12548       for lt_path in $LIB
12549       do
12550         IFS=$lt_save_ifs
12551         # Let DOS variable expansion print the short 8.3 style file name.
12552         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12553         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12554       done
12555       IFS=$lt_save_ifs
12556       # Convert to MSYS style.
12557       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12558       ;;
12559     cygwin*)
12560       # Convert to unix form, then to dos form, then back to unix form
12561       # but this time dos style (no spaces!) so that the unix form looks
12562       # like /cygdrive/c/PROGRA~1:/cygdr...
12563       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12564       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12565       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12566       ;;
12567     *)
12568       sys_lib_search_path_spec=$LIB
12569       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12570         # It is most probably a Windows format PATH.
12571         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12572       else
12573         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12574       fi
12575       # FIXME: find the short name or the path components, as spaces are
12576       # common. (e.g. "Program Files" -> "PROGRA~1")
12577       ;;
12578     esac
12579
12580     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12581     postinstall_cmds='base_file=`basename \$file`~
12582       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12583       dldir=$destdir/`dirname \$dlpath`~
12584       test -d \$dldir || mkdir -p \$dldir~
12585       $install_prog $dir/$dlname \$dldir/$dlname'
12586     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12587       dlpath=$dir/\$dldll~
12588        $RM \$dlpath'
12589     shlibpath_overrides_runpath=yes
12590     dynamic_linker='Win32 link.exe'
12591     ;;
12592
12593   *)
12594     # Assume MSVC wrapper
12595     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12596     dynamic_linker='Win32 ld.exe'
12597     ;;
12598   esac
12599   # FIXME: first we should search . and the directory the executable is in
12600   shlibpath_var=PATH
12601   ;;
12602
12603 darwin* | rhapsody*)
12604   dynamic_linker="$host_os dyld"
12605   version_type=darwin
12606   need_lib_prefix=no
12607   need_version=no
12608   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12609   soname_spec='$libname$release$major$shared_ext'
12610   shlibpath_overrides_runpath=yes
12611   shlibpath_var=DYLD_LIBRARY_PATH
12612   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12613
12614   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12615   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12616   ;;
12617
12618 dgux*)
12619   version_type=linux # correct to gnu/linux during the next big refactor
12620   need_lib_prefix=no
12621   need_version=no
12622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623   soname_spec='$libname$release$shared_ext$major'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   ;;
12626
12627 freebsd* | dragonfly*)
12628   # DragonFly does not have aout.  When/if they implement a new
12629   # versioning mechanism, adjust this.
12630   if test -x /usr/bin/objformat; then
12631     objformat=`/usr/bin/objformat`
12632   else
12633     case $host_os in
12634     freebsd[23].*) objformat=aout ;;
12635     *) objformat=elf ;;
12636     esac
12637   fi
12638   version_type=freebsd-$objformat
12639   case $version_type in
12640     freebsd-elf*)
12641       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12642       soname_spec='$libname$release$shared_ext$major'
12643       need_version=no
12644       need_lib_prefix=no
12645       ;;
12646     freebsd-*)
12647       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12648       need_version=yes
12649       ;;
12650   esac
12651   shlibpath_var=LD_LIBRARY_PATH
12652   case $host_os in
12653   freebsd2.*)
12654     shlibpath_overrides_runpath=yes
12655     ;;
12656   freebsd3.[01]* | freebsdelf3.[01]*)
12657     shlibpath_overrides_runpath=yes
12658     hardcode_into_libs=yes
12659     ;;
12660   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12661   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12662     shlibpath_overrides_runpath=no
12663     hardcode_into_libs=yes
12664     ;;
12665   *) # from 4.6 on, and DragonFly
12666     shlibpath_overrides_runpath=yes
12667     hardcode_into_libs=yes
12668     ;;
12669   esac
12670   ;;
12671
12672 haiku*)
12673   version_type=linux # correct to gnu/linux during the next big refactor
12674   need_lib_prefix=no
12675   need_version=no
12676   dynamic_linker="$host_os runtime_loader"
12677   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678   soname_spec='$libname$release$shared_ext$major'
12679   shlibpath_var=LIBRARY_PATH
12680   shlibpath_overrides_runpath=no
12681   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12682   hardcode_into_libs=yes
12683   ;;
12684
12685 hpux9* | hpux10* | hpux11*)
12686   # Give a soname corresponding to the major version so that dld.sl refuses to
12687   # link against other versions.
12688   version_type=sunos
12689   need_lib_prefix=no
12690   need_version=no
12691   case $host_cpu in
12692   ia64*)
12693     shrext_cmds='.so'
12694     hardcode_into_libs=yes
12695     dynamic_linker="$host_os dld.so"
12696     shlibpath_var=LD_LIBRARY_PATH
12697     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12698     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12699     soname_spec='$libname$release$shared_ext$major'
12700     if test 32 = "$HPUX_IA64_MODE"; then
12701       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12702       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12703     else
12704       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12705       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12706     fi
12707     ;;
12708   hppa*64*)
12709     shrext_cmds='.sl'
12710     hardcode_into_libs=yes
12711     dynamic_linker="$host_os dld.sl"
12712     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12713     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12714     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715     soname_spec='$libname$release$shared_ext$major'
12716     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12717     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12718     ;;
12719   *)
12720     shrext_cmds='.sl'
12721     dynamic_linker="$host_os dld.sl"
12722     shlibpath_var=SHLIB_PATH
12723     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12724     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12725     soname_spec='$libname$release$shared_ext$major'
12726     ;;
12727   esac
12728   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12729   postinstall_cmds='chmod 555 $lib'
12730   # or fails outright, so override atomically:
12731   install_override_mode=555
12732   ;;
12733
12734 interix[3-9]*)
12735   version_type=linux # correct to gnu/linux during the next big refactor
12736   need_lib_prefix=no
12737   need_version=no
12738   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12739   soname_spec='$libname$release$shared_ext$major'
12740   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12741   shlibpath_var=LD_LIBRARY_PATH
12742   shlibpath_overrides_runpath=no
12743   hardcode_into_libs=yes
12744   ;;
12745
12746 irix5* | irix6* | nonstopux*)
12747   case $host_os in
12748     nonstopux*) version_type=nonstopux ;;
12749     *)
12750         if test yes = "$lt_cv_prog_gnu_ld"; then
12751                 version_type=linux # correct to gnu/linux during the next big refactor
12752         else
12753                 version_type=irix
12754         fi ;;
12755   esac
12756   need_lib_prefix=no
12757   need_version=no
12758   soname_spec='$libname$release$shared_ext$major'
12759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12760   case $host_os in
12761   irix5* | nonstopux*)
12762     libsuff= shlibsuff=
12763     ;;
12764   *)
12765     case $LD in # libtool.m4 will add one of these switches to LD
12766     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12767       libsuff= shlibsuff= libmagic=32-bit;;
12768     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12769       libsuff=32 shlibsuff=N32 libmagic=N32;;
12770     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12771       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12772     *) libsuff= shlibsuff= libmagic=never-match;;
12773     esac
12774     ;;
12775   esac
12776   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12777   shlibpath_overrides_runpath=no
12778   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12779   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12780   hardcode_into_libs=yes
12781   ;;
12782
12783 # No shared lib support for Linux oldld, aout, or coff.
12784 linux*oldld* | linux*aout* | linux*coff*)
12785   dynamic_linker=no
12786   ;;
12787
12788 linux*android*)
12789   version_type=none # Android doesn't support versioned libraries.
12790   need_lib_prefix=no
12791   need_version=no
12792   library_names_spec='$libname$release$shared_ext'
12793   soname_spec='$libname$release$shared_ext'
12794   finish_cmds=
12795   shlibpath_var=LD_LIBRARY_PATH
12796   shlibpath_overrides_runpath=yes
12797
12798   # This implies no fast_install, which is unacceptable.
12799   # Some rework will be needed to allow for fast_install
12800   # before this can be enabled.
12801   hardcode_into_libs=yes
12802
12803   dynamic_linker='Android linker'
12804   # Don't embed -rpath directories since the linker doesn't support them.
12805   hardcode_libdir_flag_spec='-L$libdir'
12806   ;;
12807
12808 # This must be glibc/ELF.
12809 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12810   version_type=linux # correct to gnu/linux during the next big refactor
12811   need_lib_prefix=no
12812   need_version=no
12813   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814   soname_spec='$libname$release$shared_ext$major'
12815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12816   shlibpath_var=LD_LIBRARY_PATH
12817   shlibpath_overrides_runpath=no
12818
12819   # Some binutils ld are patched to set DT_RUNPATH
12820   if test ${lt_cv_shlibpath_overrides_runpath+y}
12821 then :
12822   printf %s "(cached) " >&6
12823 else $as_nop
12824   lt_cv_shlibpath_overrides_runpath=no
12825     save_LDFLAGS=$LDFLAGS
12826     save_libdir=$libdir
12827     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12828          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h.  */
12831
12832 int
12833 main (void)
12834 {
12835
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"
12841 then :
12842   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12843 then :
12844   lt_cv_shlibpath_overrides_runpath=yes
12845 fi
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12848     conftest$ac_exeext conftest.$ac_ext
12849     LDFLAGS=$save_LDFLAGS
12850     libdir=$save_libdir
12851
12852 fi
12853
12854   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12855
12856   # This implies no fast_install, which is unacceptable.
12857   # Some rework will be needed to allow for fast_install
12858   # before this can be enabled.
12859   hardcode_into_libs=yes
12860
12861   # Ideally, we could use ldconfig to report *all* directores which are
12862   # searched for libraries, however this is still not possible.  Aside from not
12863   # being certain /sbin/ldconfig is available, command
12864   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12865   # even though it is searched at run-time.  Try to do the best guess by
12866   # appending ld.so.conf contents (and includes) to the search path.
12867   if test -f /etc/ld.so.conf; then
12868     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12869     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12870   fi
12871
12872   # We used to test for /lib/ld.so.1 and disable shared libraries on
12873   # powerpc, because MkLinux only supported shared libraries with the
12874   # GNU dynamic linker.  Since this was broken with cross compilers,
12875   # most powerpc-linux boxes support dynamic linking these days and
12876   # people can always --disable-shared, the test was removed, and we
12877   # assume the GNU/Linux dynamic linker is in use.
12878   dynamic_linker='GNU/Linux ld.so'
12879   ;;
12880
12881 netbsdelf*-gnu)
12882   version_type=linux
12883   need_lib_prefix=no
12884   need_version=no
12885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12886   soname_spec='${libname}${release}${shared_ext}$major'
12887   shlibpath_var=LD_LIBRARY_PATH
12888   shlibpath_overrides_runpath=no
12889   hardcode_into_libs=yes
12890   dynamic_linker='NetBSD ld.elf_so'
12891   ;;
12892
12893 netbsd*)
12894   version_type=sunos
12895   need_lib_prefix=no
12896   need_version=no
12897   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12898     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12899     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12900     dynamic_linker='NetBSD (a.out) ld.so'
12901   else
12902     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12903     soname_spec='$libname$release$shared_ext$major'
12904     dynamic_linker='NetBSD ld.elf_so'
12905   fi
12906   shlibpath_var=LD_LIBRARY_PATH
12907   shlibpath_overrides_runpath=yes
12908   hardcode_into_libs=yes
12909   ;;
12910
12911 newsos6)
12912   version_type=linux # correct to gnu/linux during the next big refactor
12913   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914   shlibpath_var=LD_LIBRARY_PATH
12915   shlibpath_overrides_runpath=yes
12916   ;;
12917
12918 *nto* | *qnx*)
12919   version_type=qnx
12920   need_lib_prefix=no
12921   need_version=no
12922   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923   soname_spec='$libname$release$shared_ext$major'
12924   shlibpath_var=LD_LIBRARY_PATH
12925   shlibpath_overrides_runpath=no
12926   hardcode_into_libs=yes
12927   dynamic_linker='ldqnx.so'
12928   ;;
12929
12930 openbsd* | bitrig*)
12931   version_type=sunos
12932   sys_lib_dlsearch_path_spec=/usr/lib
12933   need_lib_prefix=no
12934   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12935     need_version=no
12936   else
12937     need_version=yes
12938   fi
12939   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12941   shlibpath_var=LD_LIBRARY_PATH
12942   shlibpath_overrides_runpath=yes
12943   ;;
12944
12945 os2*)
12946   libname_spec='$name'
12947   version_type=windows
12948   shrext_cmds=.dll
12949   need_version=no
12950   need_lib_prefix=no
12951   # OS/2 can only load a DLL with a base name of 8 characters or less.
12952   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12953     v=$($ECHO $release$versuffix | tr -d .-);
12954     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12955     $ECHO $n$v`$shared_ext'
12956   library_names_spec='${libname}_dll.$libext'
12957   dynamic_linker='OS/2 ld.exe'
12958   shlibpath_var=BEGINLIBPATH
12959   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12960   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12961   postinstall_cmds='base_file=`basename \$file`~
12962     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12963     dldir=$destdir/`dirname \$dlpath`~
12964     test -d \$dldir || mkdir -p \$dldir~
12965     $install_prog $dir/$dlname \$dldir/$dlname~
12966     chmod a+x \$dldir/$dlname~
12967     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12968       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12969     fi'
12970   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12971     dlpath=$dir/\$dldll~
12972     $RM \$dlpath'
12973   ;;
12974
12975 osf3* | osf4* | osf5*)
12976   version_type=osf
12977   need_lib_prefix=no
12978   need_version=no
12979   soname_spec='$libname$release$shared_ext$major'
12980   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981   shlibpath_var=LD_LIBRARY_PATH
12982   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12983   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12984   ;;
12985
12986 rdos*)
12987   dynamic_linker=no
12988   ;;
12989
12990 solaris*)
12991   version_type=linux # correct to gnu/linux during the next big refactor
12992   need_lib_prefix=no
12993   need_version=no
12994   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12995   soname_spec='$libname$release$shared_ext$major'
12996   shlibpath_var=LD_LIBRARY_PATH
12997   shlibpath_overrides_runpath=yes
12998   hardcode_into_libs=yes
12999   # ldd complains unless libraries are executable
13000   postinstall_cmds='chmod +x $lib'
13001   ;;
13002
13003 sunos4*)
13004   version_type=sunos
13005   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13006   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13007   shlibpath_var=LD_LIBRARY_PATH
13008   shlibpath_overrides_runpath=yes
13009   if test yes = "$with_gnu_ld"; then
13010     need_lib_prefix=no
13011   fi
13012   need_version=yes
13013   ;;
13014
13015 sysv4 | sysv4.3*)
13016   version_type=linux # correct to gnu/linux during the next big refactor
13017   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13018   soname_spec='$libname$release$shared_ext$major'
13019   shlibpath_var=LD_LIBRARY_PATH
13020   case $host_vendor in
13021     sni)
13022       shlibpath_overrides_runpath=no
13023       need_lib_prefix=no
13024       runpath_var=LD_RUN_PATH
13025       ;;
13026     siemens)
13027       need_lib_prefix=no
13028       ;;
13029     motorola)
13030       need_lib_prefix=no
13031       need_version=no
13032       shlibpath_overrides_runpath=no
13033       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13034       ;;
13035   esac
13036   ;;
13037
13038 sysv4*MP*)
13039   if test -d /usr/nec; then
13040     version_type=linux # correct to gnu/linux during the next big refactor
13041     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13042     soname_spec='$libname$shared_ext.$major'
13043     shlibpath_var=LD_LIBRARY_PATH
13044   fi
13045   ;;
13046
13047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13048   version_type=sco
13049   need_lib_prefix=no
13050   need_version=no
13051   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13052   soname_spec='$libname$release$shared_ext$major'
13053   shlibpath_var=LD_LIBRARY_PATH
13054   shlibpath_overrides_runpath=yes
13055   hardcode_into_libs=yes
13056   if test yes = "$with_gnu_ld"; then
13057     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13058   else
13059     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13060     case $host_os in
13061       sco3.2v5*)
13062         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13063         ;;
13064     esac
13065   fi
13066   sys_lib_dlsearch_path_spec='/usr/lib'
13067   ;;
13068
13069 tpf*)
13070   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13071   version_type=linux # correct to gnu/linux during the next big refactor
13072   need_lib_prefix=no
13073   need_version=no
13074   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13075   shlibpath_var=LD_LIBRARY_PATH
13076   shlibpath_overrides_runpath=no
13077   hardcode_into_libs=yes
13078   ;;
13079
13080 uts4*)
13081   version_type=linux # correct to gnu/linux during the next big refactor
13082   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13083   soname_spec='$libname$release$shared_ext$major'
13084   shlibpath_var=LD_LIBRARY_PATH
13085   ;;
13086
13087 *)
13088   dynamic_linker=no
13089   ;;
13090 esac
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13092 printf "%s\n" "$dynamic_linker" >&6; }
13093 test no = "$dynamic_linker" && can_build_shared=no
13094
13095 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13096 if test yes = "$GCC"; then
13097   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13098 fi
13099
13100 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13101   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13102 fi
13103
13104 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13105   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13106 fi
13107
13108 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13109 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13110
13111 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13112 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13113
13114 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13115 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13214 printf %s "checking how to hardcode library paths into programs... " >&6; }
13215 hardcode_action=
13216 if test -n "$hardcode_libdir_flag_spec" ||
13217    test -n "$runpath_var" ||
13218    test yes = "$hardcode_automatic"; then
13219
13220   # We can hardcode non-existent directories.
13221   if test no != "$hardcode_direct" &&
13222      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13223      # have to relink, otherwise we might link with an installed library
13224      # when we should be linking with a yet-to-be-installed one
13225      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13226      test no != "$hardcode_minus_L"; then
13227     # Linking always hardcodes the temporary library directory.
13228     hardcode_action=relink
13229   else
13230     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13231     hardcode_action=immediate
13232   fi
13233 else
13234   # We cannot hardcode anything, or else we can only hardcode existing
13235   # directories.
13236   hardcode_action=unsupported
13237 fi
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13239 printf "%s\n" "$hardcode_action" >&6; }
13240
13241 if test relink = "$hardcode_action" ||
13242    test yes = "$inherit_rpath"; then
13243   # Fast installation is not supported
13244   enable_fast_install=no
13245 elif test yes = "$shlibpath_overrides_runpath" ||
13246      test no = "$enable_shared"; then
13247   # Fast installation is not necessary
13248   enable_fast_install=needless
13249 fi
13250
13251
13252
13253
13254
13255
13256   if test yes != "$enable_dlopen"; then
13257   enable_dlopen=unknown
13258   enable_dlopen_self=unknown
13259   enable_dlopen_self_static=unknown
13260 else
13261   lt_cv_dlopen=no
13262   lt_cv_dlopen_libs=
13263
13264   case $host_os in
13265   beos*)
13266     lt_cv_dlopen=load_add_on
13267     lt_cv_dlopen_libs=
13268     lt_cv_dlopen_self=yes
13269     ;;
13270
13271   mingw* | pw32* | cegcc*)
13272     lt_cv_dlopen=LoadLibrary
13273     lt_cv_dlopen_libs=
13274     ;;
13275
13276   cygwin*)
13277     lt_cv_dlopen=dlopen
13278     lt_cv_dlopen_libs=
13279     ;;
13280
13281   darwin*)
13282     # if libdl is installed we need to link against it
13283     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13284 printf %s "checking for dlopen in -ldl... " >&6; }
13285 if test ${ac_cv_lib_dl_dlopen+y}
13286 then :
13287   printf %s "(cached) " >&6
13288 else $as_nop
13289   ac_check_lib_save_LIBS=$LIBS
13290 LIBS="-ldl  $LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293
13294 /* Override any GCC internal prototype to avoid an error.
13295    Use char because int might match the return type of a GCC
13296    builtin and then its argument prototype would still apply.  */
13297 char dlopen ();
13298 int
13299 main (void)
13300 {
13301 return dlopen ();
13302   ;
13303   return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"
13307 then :
13308   ac_cv_lib_dl_dlopen=yes
13309 else $as_nop
13310   ac_cv_lib_dl_dlopen=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13313     conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13317 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13318 if test "x$ac_cv_lib_dl_dlopen" = xyes
13319 then :
13320   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13321 else $as_nop
13322
13323     lt_cv_dlopen=dyld
13324     lt_cv_dlopen_libs=
13325     lt_cv_dlopen_self=yes
13326
13327 fi
13328
13329     ;;
13330
13331   tpf*)
13332     # Don't try to run any link tests for TPF.  We know it's impossible
13333     # because TPF is a cross-compiler, and we know how we open DSOs.
13334     lt_cv_dlopen=dlopen
13335     lt_cv_dlopen_libs=
13336     lt_cv_dlopen_self=no
13337     ;;
13338
13339   *)
13340     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13341 if test "x$ac_cv_func_shl_load" = xyes
13342 then :
13343   lt_cv_dlopen=shl_load
13344 else $as_nop
13345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13346 printf %s "checking for shl_load in -ldld... " >&6; }
13347 if test ${ac_cv_lib_dld_shl_load+y}
13348 then :
13349   printf %s "(cached) " >&6
13350 else $as_nop
13351   ac_check_lib_save_LIBS=$LIBS
13352 LIBS="-ldld  $LIBS"
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h.  */
13355
13356 /* Override any GCC internal prototype to avoid an error.
13357    Use char because int might match the return type of a GCC
13358    builtin and then its argument prototype would still apply.  */
13359 char shl_load ();
13360 int
13361 main (void)
13362 {
13363 return shl_load ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"
13369 then :
13370   ac_cv_lib_dld_shl_load=yes
13371 else $as_nop
13372   ac_cv_lib_dld_shl_load=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13375     conftest$ac_exeext conftest.$ac_ext
13376 LIBS=$ac_check_lib_save_LIBS
13377 fi
13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13379 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13380 if test "x$ac_cv_lib_dld_shl_load" = xyes
13381 then :
13382   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13383 else $as_nop
13384   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13385 if test "x$ac_cv_func_dlopen" = xyes
13386 then :
13387   lt_cv_dlopen=dlopen
13388 else $as_nop
13389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13390 printf %s "checking for dlopen in -ldl... " >&6; }
13391 if test ${ac_cv_lib_dl_dlopen+y}
13392 then :
13393   printf %s "(cached) " >&6
13394 else $as_nop
13395   ac_check_lib_save_LIBS=$LIBS
13396 LIBS="-ldl  $LIBS"
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h.  */
13399
13400 /* Override any GCC internal prototype to avoid an error.
13401    Use char because int might match the return type of a GCC
13402    builtin and then its argument prototype would still apply.  */
13403 char dlopen ();
13404 int
13405 main (void)
13406 {
13407 return dlopen ();
13408   ;
13409   return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"
13413 then :
13414   ac_cv_lib_dl_dlopen=yes
13415 else $as_nop
13416   ac_cv_lib_dl_dlopen=no
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13419     conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13421 fi
13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13423 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13424 if test "x$ac_cv_lib_dl_dlopen" = xyes
13425 then :
13426   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13427 else $as_nop
13428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13429 printf %s "checking for dlopen in -lsvld... " >&6; }
13430 if test ${ac_cv_lib_svld_dlopen+y}
13431 then :
13432   printf %s "(cached) " >&6
13433 else $as_nop
13434   ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lsvld  $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h.  */
13438
13439 /* Override any GCC internal prototype to avoid an error.
13440    Use char because int might match the return type of a GCC
13441    builtin and then its argument prototype would still apply.  */
13442 char dlopen ();
13443 int
13444 main (void)
13445 {
13446 return dlopen ();
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"
13452 then :
13453   ac_cv_lib_svld_dlopen=yes
13454 else $as_nop
13455   ac_cv_lib_svld_dlopen=no
13456 fi
13457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13458     conftest$ac_exeext conftest.$ac_ext
13459 LIBS=$ac_check_lib_save_LIBS
13460 fi
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13462 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13463 if test "x$ac_cv_lib_svld_dlopen" = xyes
13464 then :
13465   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13466 else $as_nop
13467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13468 printf %s "checking for dld_link in -ldld... " >&6; }
13469 if test ${ac_cv_lib_dld_dld_link+y}
13470 then :
13471   printf %s "(cached) " >&6
13472 else $as_nop
13473   ac_check_lib_save_LIBS=$LIBS
13474 LIBS="-ldld  $LIBS"
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477
13478 /* Override any GCC internal prototype to avoid an error.
13479    Use char because int might match the return type of a GCC
13480    builtin and then its argument prototype would still apply.  */
13481 char dld_link ();
13482 int
13483 main (void)
13484 {
13485 return dld_link ();
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 if ac_fn_c_try_link "$LINENO"
13491 then :
13492   ac_cv_lib_dld_dld_link=yes
13493 else $as_nop
13494   ac_cv_lib_dld_dld_link=no
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13497     conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13499 fi
13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13501 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13502 if test "x$ac_cv_lib_dld_dld_link" = xyes
13503 then :
13504   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513
13514 fi
13515
13516
13517 fi
13518
13519
13520 fi
13521
13522     ;;
13523   esac
13524
13525   if test no = "$lt_cv_dlopen"; then
13526     enable_dlopen=no
13527   else
13528     enable_dlopen=yes
13529   fi
13530
13531   case $lt_cv_dlopen in
13532   dlopen)
13533     save_CPPFLAGS=$CPPFLAGS
13534     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13535
13536     save_LDFLAGS=$LDFLAGS
13537     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13538
13539     save_LIBS=$LIBS
13540     LIBS="$lt_cv_dlopen_libs $LIBS"
13541
13542     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13543 printf %s "checking whether a program can dlopen itself... " >&6; }
13544 if test ${lt_cv_dlopen_self+y}
13545 then :
13546   printf %s "(cached) " >&6
13547 else $as_nop
13548           if test yes = "$cross_compiling"; then :
13549   lt_cv_dlopen_self=cross
13550 else
13551   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13552   lt_status=$lt_dlunknown
13553   cat > conftest.$ac_ext <<_LT_EOF
13554 #line $LINENO "configure"
13555 #include "confdefs.h"
13556
13557 #if HAVE_DLFCN_H
13558 #include <dlfcn.h>
13559 #endif
13560
13561 #include <stdio.h>
13562
13563 #ifdef RTLD_GLOBAL
13564 #  define LT_DLGLOBAL           RTLD_GLOBAL
13565 #else
13566 #  ifdef DL_GLOBAL
13567 #    define LT_DLGLOBAL         DL_GLOBAL
13568 #  else
13569 #    define LT_DLGLOBAL         0
13570 #  endif
13571 #endif
13572
13573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13574    find out it does not work in some platform. */
13575 #ifndef LT_DLLAZY_OR_NOW
13576 #  ifdef RTLD_LAZY
13577 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13578 #  else
13579 #    ifdef DL_LAZY
13580 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13581 #    else
13582 #      ifdef RTLD_NOW
13583 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13584 #      else
13585 #        ifdef DL_NOW
13586 #          define LT_DLLAZY_OR_NOW      DL_NOW
13587 #        else
13588 #          define LT_DLLAZY_OR_NOW      0
13589 #        endif
13590 #      endif
13591 #    endif
13592 #  endif
13593 #endif
13594
13595 /* When -fvisibility=hidden is used, assume the code has been annotated
13596    correspondingly for the symbols needed.  */
13597 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13598 int fnord () __attribute__((visibility("default")));
13599 #endif
13600
13601 int fnord () { return 42; }
13602 int main ()
13603 {
13604   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13605   int status = $lt_dlunknown;
13606
13607   if (self)
13608     {
13609       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13610       else
13611         {
13612           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13613           else puts (dlerror ());
13614         }
13615       /* dlclose (self); */
13616     }
13617   else
13618     puts (dlerror ());
13619
13620   return status;
13621 }
13622 _LT_EOF
13623   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13624   (eval $ac_link) 2>&5
13625   ac_status=$?
13626   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13628     (./conftest; exit; ) >&5 2>/dev/null
13629     lt_status=$?
13630     case x$lt_status in
13631       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13632       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13633       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13634     esac
13635   else :
13636     # compilation failed
13637     lt_cv_dlopen_self=no
13638   fi
13639 fi
13640 rm -fr conftest*
13641
13642
13643 fi
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13645 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13646
13647     if test yes = "$lt_cv_dlopen_self"; then
13648       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13649       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13650 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13651 if test ${lt_cv_dlopen_self_static+y}
13652 then :
13653   printf %s "(cached) " >&6
13654 else $as_nop
13655           if test yes = "$cross_compiling"; then :
13656   lt_cv_dlopen_self_static=cross
13657 else
13658   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13659   lt_status=$lt_dlunknown
13660   cat > conftest.$ac_ext <<_LT_EOF
13661 #line $LINENO "configure"
13662 #include "confdefs.h"
13663
13664 #if HAVE_DLFCN_H
13665 #include <dlfcn.h>
13666 #endif
13667
13668 #include <stdio.h>
13669
13670 #ifdef RTLD_GLOBAL
13671 #  define LT_DLGLOBAL           RTLD_GLOBAL
13672 #else
13673 #  ifdef DL_GLOBAL
13674 #    define LT_DLGLOBAL         DL_GLOBAL
13675 #  else
13676 #    define LT_DLGLOBAL         0
13677 #  endif
13678 #endif
13679
13680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13681    find out it does not work in some platform. */
13682 #ifndef LT_DLLAZY_OR_NOW
13683 #  ifdef RTLD_LAZY
13684 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13685 #  else
13686 #    ifdef DL_LAZY
13687 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13688 #    else
13689 #      ifdef RTLD_NOW
13690 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13691 #      else
13692 #        ifdef DL_NOW
13693 #          define LT_DLLAZY_OR_NOW      DL_NOW
13694 #        else
13695 #          define LT_DLLAZY_OR_NOW      0
13696 #        endif
13697 #      endif
13698 #    endif
13699 #  endif
13700 #endif
13701
13702 /* When -fvisibility=hidden is used, assume the code has been annotated
13703    correspondingly for the symbols needed.  */
13704 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13705 int fnord () __attribute__((visibility("default")));
13706 #endif
13707
13708 int fnord () { return 42; }
13709 int main ()
13710 {
13711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13712   int status = $lt_dlunknown;
13713
13714   if (self)
13715     {
13716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13717       else
13718         {
13719           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13720           else puts (dlerror ());
13721         }
13722       /* dlclose (self); */
13723     }
13724   else
13725     puts (dlerror ());
13726
13727   return status;
13728 }
13729 _LT_EOF
13730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13731   (eval $ac_link) 2>&5
13732   ac_status=$?
13733   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13735     (./conftest; exit; ) >&5 2>/dev/null
13736     lt_status=$?
13737     case x$lt_status in
13738       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13739       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13740       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13741     esac
13742   else :
13743     # compilation failed
13744     lt_cv_dlopen_self_static=no
13745   fi
13746 fi
13747 rm -fr conftest*
13748
13749
13750 fi
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13752 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13753     fi
13754
13755     CPPFLAGS=$save_CPPFLAGS
13756     LDFLAGS=$save_LDFLAGS
13757     LIBS=$save_LIBS
13758     ;;
13759   esac
13760
13761   case $lt_cv_dlopen_self in
13762   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13763   *) enable_dlopen_self=unknown ;;
13764   esac
13765
13766   case $lt_cv_dlopen_self_static in
13767   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13768   *) enable_dlopen_self_static=unknown ;;
13769   esac
13770 fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788 striplib=
13789 old_striplib=
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13791 printf %s "checking whether stripping libraries is possible... " >&6; }
13792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13793   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13794   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 printf "%s\n" "yes" >&6; }
13797 else
13798 # FIXME - insert some real tests, host_os isn't really good enough
13799   case $host_os in
13800   darwin*)
13801     if test -n "$STRIP"; then
13802       striplib="$STRIP -x"
13803       old_striplib="$STRIP -S"
13804       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 printf "%s\n" "yes" >&6; }
13806     else
13807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 printf "%s\n" "no" >&6; }
13809     fi
13810     ;;
13811   *)
13812     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 printf "%s\n" "no" >&6; }
13814     ;;
13815   esac
13816 fi
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829   # Report what library types will actually be built
13830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13831 printf %s "checking if libtool supports shared libraries... " >&6; }
13832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13833 printf "%s\n" "$can_build_shared" >&6; }
13834
13835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13836 printf %s "checking whether to build shared libraries... " >&6; }
13837   test no = "$can_build_shared" && enable_shared=no
13838
13839   # On AIX, shared libraries and static libraries use the same namespace, and
13840   # are all built from PIC.
13841   case $host_os in
13842   aix3*)
13843     test yes = "$enable_shared" && enable_static=no
13844     if test -n "$RANLIB"; then
13845       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13846       postinstall_cmds='$RANLIB $lib'
13847     fi
13848     ;;
13849
13850   aix[4-9]*)
13851     if test ia64 != "$host_cpu"; then
13852       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13853       yes,aix,yes) ;;                   # shared object as lib.so file only
13854       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13855       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13856       esac
13857     fi
13858     ;;
13859   esac
13860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13861 printf "%s\n" "$enable_shared" >&6; }
13862
13863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13864 printf %s "checking whether to build static libraries... " >&6; }
13865   # Make sure either enable_shared or enable_static is yes.
13866   test yes = "$enable_shared" || enable_static=yes
13867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13868 printf "%s\n" "$enable_static" >&6; }
13869
13870
13871
13872
13873 fi
13874 ac_ext=c
13875 ac_cpp='$CPP $CPPFLAGS'
13876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13879
13880 CC=$lt_save_CC
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896         ac_config_commands="$ac_config_commands libtool"
13897
13898
13899
13900
13901 # Only expand once:
13902
13903
13904 if test -n "$ac_tool_prefix"; then
13905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13906 set dummy ${ac_tool_prefix}strip; ac_word=$2
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13908 printf %s "checking for $ac_word... " >&6; }
13909 if test ${ac_cv_prog_STRIP+y}
13910 then :
13911   printf %s "(cached) " >&6
13912 else $as_nop
13913   if test -n "$STRIP"; then
13914   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13918 do
13919   IFS=$as_save_IFS
13920   case $as_dir in #(((
13921     '') as_dir=./ ;;
13922     */) ;;
13923     *) as_dir=$as_dir/ ;;
13924   esac
13925     for ac_exec_ext in '' $ac_executable_extensions; do
13926   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13927     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13928     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13929     break 2
13930   fi
13931 done
13932   done
13933 IFS=$as_save_IFS
13934
13935 fi
13936 fi
13937 STRIP=$ac_cv_prog_STRIP
13938 if test -n "$STRIP"; then
13939   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13940 printf "%s\n" "$STRIP" >&6; }
13941 else
13942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 printf "%s\n" "no" >&6; }
13944 fi
13945
13946
13947 fi
13948 if test -z "$ac_cv_prog_STRIP"; then
13949   ac_ct_STRIP=$STRIP
13950   # Extract the first word of "strip", so it can be a program name with args.
13951 set dummy strip; ac_word=$2
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953 printf %s "checking for $ac_word... " >&6; }
13954 if test ${ac_cv_prog_ac_ct_STRIP+y}
13955 then :
13956   printf %s "(cached) " >&6
13957 else $as_nop
13958   if test -n "$ac_ct_STRIP"; then
13959   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13960 else
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13963 do
13964   IFS=$as_save_IFS
13965   case $as_dir in #(((
13966     '') as_dir=./ ;;
13967     */) ;;
13968     *) as_dir=$as_dir/ ;;
13969   esac
13970     for ac_exec_ext in '' $ac_executable_extensions; do
13971   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13972     ac_cv_prog_ac_ct_STRIP="strip"
13973     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13974     break 2
13975   fi
13976 done
13977   done
13978 IFS=$as_save_IFS
13979
13980 fi
13981 fi
13982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13983 if test -n "$ac_ct_STRIP"; then
13984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13985 printf "%s\n" "$ac_ct_STRIP" >&6; }
13986 else
13987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 printf "%s\n" "no" >&6; }
13989 fi
13990
13991   if test "x$ac_ct_STRIP" = x; then
13992     STRIP=""
13993   else
13994     case $cross_compiling:$ac_tool_warned in
13995 yes:)
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13998 ac_tool_warned=yes ;;
13999 esac
14000     STRIP=$ac_ct_STRIP
14001   fi
14002 else
14003   STRIP="$ac_cv_prog_STRIP"
14004 fi
14005
14006
14007
14008 #
14009 # Options for building bsdtar.
14010 #
14011 # Default is to build bsdtar, but allow people to override that.
14012 #
14013 # Check whether --enable-bsdtar was given.
14014 if test ${enable_bsdtar+y}
14015 then :
14016   enableval=$enable_bsdtar;
14017 else $as_nop
14018   enable_bsdtar=yes
14019 fi
14020
14021
14022 case "$enable_bsdtar" in
14023 yes)
14024         if test "$enable_static" = "no"; then
14025                 static_bsdtar=no
14026         else
14027                 static_bsdtar=yes
14028         fi
14029         build_bsdtar=yes
14030         ;;
14031 dynamic|shared)
14032         if test "$enable_shared" = "no"; then
14033                 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14035 as_fn_error $? "Shared linking of bsdtar requires shared libarchive
14036 See \`config.log' for more details" "$LINENO" 5; }
14037         fi
14038         build_bsdtar=yes
14039         static_bsdtar=no
14040         ;;
14041 static)
14042         build_bsdtar=yes
14043         static_bsdtar=yes
14044         ;;
14045 no)
14046         build_bsdtar=no
14047         static_bsdtar=no
14048         ;;
14049 *)
14050         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14051 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14052 as_fn_error $? "Unsupported value for --enable-bsdtar
14053 See \`config.log' for more details" "$LINENO" 5; }
14054         ;;
14055 esac
14056
14057  if  test "$build_bsdtar" = yes ; then
14058   BUILD_BSDTAR_TRUE=
14059   BUILD_BSDTAR_FALSE='#'
14060 else
14061   BUILD_BSDTAR_TRUE='#'
14062   BUILD_BSDTAR_FALSE=
14063 fi
14064
14065  if  test "$static_bsdtar" = yes ; then
14066   STATIC_BSDTAR_TRUE=
14067   STATIC_BSDTAR_FALSE='#'
14068 else
14069   STATIC_BSDTAR_TRUE='#'
14070   STATIC_BSDTAR_FALSE=
14071 fi
14072
14073
14074 #
14075 # Options for building bsdcat.
14076 #
14077 # Default is to build bsdcat, but allow people to override that.
14078 #
14079 # Check whether --enable-bsdcat was given.
14080 if test ${enable_bsdcat+y}
14081 then :
14082   enableval=$enable_bsdcat;
14083 else $as_nop
14084   enable_bsdcat=yes
14085 fi
14086
14087
14088 case "$enable_bsdcat" in
14089 yes)
14090         if test "$enable_static" = "no"; then
14091                 static_bsdcat=no
14092         else
14093                 static_bsdcat=yes
14094         fi
14095         build_bsdcat=yes
14096         ;;
14097 dynamic|shared)
14098         if test "$enable_shared" = "no"; then
14099                 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14100 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14101 as_fn_error $? "Shared linking of bsdcat requires shared libarchive
14102 See \`config.log' for more details" "$LINENO" 5; }
14103         fi
14104         build_bsdcat=yes
14105         static_bsdcat=no
14106         ;;
14107 static)
14108         build_bsdcat=yes
14109         static_bsdcat=yes
14110         ;;
14111 no)
14112         build_bsdcat=no
14113         static_bsdcat=no
14114         ;;
14115 *)
14116         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14118 as_fn_error $? "Unsupported value for --enable-bsdcat
14119 See \`config.log' for more details" "$LINENO" 5; }
14120         ;;
14121 esac
14122
14123  if  test "$build_bsdcat" = yes ; then
14124   BUILD_BSDCAT_TRUE=
14125   BUILD_BSDCAT_FALSE='#'
14126 else
14127   BUILD_BSDCAT_TRUE='#'
14128   BUILD_BSDCAT_FALSE=
14129 fi
14130
14131  if  test "$static_bsdcat" = yes ; then
14132   STATIC_BSDCAT_TRUE=
14133   STATIC_BSDCAT_FALSE='#'
14134 else
14135   STATIC_BSDCAT_TRUE='#'
14136   STATIC_BSDCAT_FALSE=
14137 fi
14138
14139
14140 #
14141 # Options for building bsdcpio.
14142 #
14143 # Default is not to build bsdcpio, but that can be overridden.
14144 #
14145 # Check whether --enable-bsdcpio was given.
14146 if test ${enable_bsdcpio+y}
14147 then :
14148   enableval=$enable_bsdcpio;
14149 else $as_nop
14150   enable_bsdcpio=yes
14151 fi
14152
14153
14154 case "$enable_bsdcpio" in
14155 yes)
14156         if test "$enable_static" = "no"; then
14157            static_bsdcpio=no
14158         else
14159            static_bsdcpio=yes
14160         fi
14161         build_bsdcpio=yes
14162         ;;
14163 dynamic|shared)
14164         if test "$enabled_shared" = "no"; then
14165            { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14167 as_fn_error $? "Shared linking of bsdcpio requires shared libarchive
14168 See \`config.log' for more details" "$LINENO" 5; }
14169         fi
14170         build_bsdcpio=yes
14171         ;;
14172 static)
14173         build_bsdcpio=yes
14174         static_bsdcpio=yes
14175         ;;
14176 no)
14177         build_bsdcpio=no
14178         static_bsdcpio=no
14179         ;;
14180 *)
14181         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14183 as_fn_error $? "Unsupported value for --enable-bsdcpio
14184 See \`config.log' for more details" "$LINENO" 5; }
14185         ;;
14186 esac
14187
14188  if  test "$build_bsdcpio" = yes ; then
14189   BUILD_BSDCPIO_TRUE=
14190   BUILD_BSDCPIO_FALSE='#'
14191 else
14192   BUILD_BSDCPIO_TRUE='#'
14193   BUILD_BSDCPIO_FALSE=
14194 fi
14195
14196  if  test "$static_bsdcpio" = yes ; then
14197   STATIC_BSDCPIO_TRUE=
14198   STATIC_BSDCPIO_FALSE='#'
14199 else
14200   STATIC_BSDCPIO_TRUE='#'
14201   STATIC_BSDCPIO_FALSE=
14202 fi
14203
14204
14205 # Set up defines needed before including any headers
14206 case $host in
14207   *mingw* | *cygwin* | *msys*  )
14208
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 #ifdef _WIN32_WINNT
14212      # error _WIN32_WINNT already defined
14213      #endif
14214
14215 int
14216 main (void)
14217 {
14218 ;
14219   ;
14220   return 0;
14221 }
14222
14223 _ACEOF
14224 if ac_fn_c_try_cpp "$LINENO"
14225 then :
14226
14227
14228 printf "%s\n" "#define _WIN32_WINNT 0x0502" >>confdefs.h
14229
14230
14231 printf "%s\n" "#define NTDDI_VERSION 0x05020000" >>confdefs.h
14232
14233
14234 fi
14235 rm -f conftest.err conftest.i conftest.$ac_ext
14236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h.  */
14238 #ifdef WINVER
14239      # error WINVER already defined
14240      #endif
14241
14242 int
14243 main (void)
14244 {
14245 ;
14246   ;
14247   return 0;
14248 }
14249
14250 _ACEOF
14251 if ac_fn_c_try_cpp "$LINENO"
14252 then :
14253
14254
14255 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
14256
14257
14258 fi
14259 rm -f conftest.err conftest.i conftest.$ac_ext
14260   ;;
14261 esac
14262
14263 # Checks for header files.
14264 ac_header_dirent=no
14265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14266   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14268 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
14269 if eval test \${$as_ac_Header+y}
14270 then :
14271   printf %s "(cached) " >&6
14272 else $as_nop
14273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h.  */
14275 #include <sys/types.h>
14276 #include <$ac_hdr>
14277
14278 int
14279 main (void)
14280 {
14281 if ((DIR *) 0)
14282 return 0;
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_compile "$LINENO"
14288 then :
14289   eval "$as_ac_Header=yes"
14290 else $as_nop
14291   eval "$as_ac_Header=no"
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14294 fi
14295 eval ac_res=\$$as_ac_Header
14296                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14297 printf "%s\n" "$ac_res" >&6; }
14298 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14299 then :
14300   cat >>confdefs.h <<_ACEOF
14301 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
14302 _ACEOF
14303
14304 ac_header_dirent=$ac_hdr; break
14305 fi
14306
14307 done
14308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14309 if test $ac_header_dirent = dirent.h; then
14310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14311 printf %s "checking for library containing opendir... " >&6; }
14312 if test ${ac_cv_search_opendir+y}
14313 then :
14314   printf %s "(cached) " >&6
14315 else $as_nop
14316   ac_func_search_save_LIBS=$LIBS
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h.  */
14319
14320 /* Override any GCC internal prototype to avoid an error.
14321    Use char because int might match the return type of a GCC
14322    builtin and then its argument prototype would still apply.  */
14323 char opendir ();
14324 int
14325 main (void)
14326 {
14327 return opendir ();
14328   ;
14329   return 0;
14330 }
14331 _ACEOF
14332 for ac_lib in '' dir
14333 do
14334   if test -z "$ac_lib"; then
14335     ac_res="none required"
14336   else
14337     ac_res=-l$ac_lib
14338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14339   fi
14340   if ac_fn_c_try_link "$LINENO"
14341 then :
14342   ac_cv_search_opendir=$ac_res
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14345     conftest$ac_exeext
14346   if test ${ac_cv_search_opendir+y}
14347 then :
14348   break
14349 fi
14350 done
14351 if test ${ac_cv_search_opendir+y}
14352 then :
14353
14354 else $as_nop
14355   ac_cv_search_opendir=no
14356 fi
14357 rm conftest.$ac_ext
14358 LIBS=$ac_func_search_save_LIBS
14359 fi
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14361 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14362 ac_res=$ac_cv_search_opendir
14363 if test "$ac_res" != no
14364 then :
14365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14366
14367 fi
14368
14369 else
14370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14371 printf %s "checking for library containing opendir... " >&6; }
14372 if test ${ac_cv_search_opendir+y}
14373 then :
14374   printf %s "(cached) " >&6
14375 else $as_nop
14376   ac_func_search_save_LIBS=$LIBS
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h.  */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381    Use char because int might match the return type of a GCC
14382    builtin and then its argument prototype would still apply.  */
14383 char opendir ();
14384 int
14385 main (void)
14386 {
14387 return opendir ();
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 for ac_lib in '' x
14393 do
14394   if test -z "$ac_lib"; then
14395     ac_res="none required"
14396   else
14397     ac_res=-l$ac_lib
14398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14399   fi
14400   if ac_fn_c_try_link "$LINENO"
14401 then :
14402   ac_cv_search_opendir=$ac_res
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14405     conftest$ac_exeext
14406   if test ${ac_cv_search_opendir+y}
14407 then :
14408   break
14409 fi
14410 done
14411 if test ${ac_cv_search_opendir+y}
14412 then :
14413
14414 else $as_nop
14415   ac_cv_search_opendir=no
14416 fi
14417 rm conftest.$ac_ext
14418 LIBS=$ac_func_search_save_LIBS
14419 fi
14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14421 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14422 ac_res=$ac_cv_search_opendir
14423 if test "$ac_res" != no
14424 then :
14425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14426
14427 fi
14428
14429 fi
14430
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14432 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14433 if test ${ac_cv_header_sys_wait_h+y}
14434 then :
14435   printf %s "(cached) " >&6
14436 else $as_nop
14437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h.  */
14439 #include <sys/types.h>
14440 #include <sys/wait.h>
14441 #ifndef WEXITSTATUS
14442 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14443 #endif
14444 #ifndef WIFEXITED
14445 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14446 #endif
14447
14448 int
14449 main (void)
14450 {
14451   int s;
14452   wait (&s);
14453   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"
14459 then :
14460   ac_cv_header_sys_wait_h=yes
14461 else $as_nop
14462   ac_cv_header_sys_wait_h=no
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14465 fi
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14467 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
14468 if test $ac_cv_header_sys_wait_h = yes; then
14469
14470 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14471
14472 fi
14473
14474 ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
14475 if test "x$ac_cv_header_acl_libacl_h" = xyes
14476 then :
14477   printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h
14478
14479 fi
14480 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
14481 if test "x$ac_cv_header_attr_xattr_h" = xyes
14482 then :
14483   printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
14484
14485 fi
14486
14487 ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default"
14488 if test "x$ac_cv_header_copyfile_h" = xyes
14489 then :
14490   printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h
14491
14492 fi
14493 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_ctype_h" = xyes
14495 then :
14496   printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
14497
14498 fi
14499
14500 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
14501 if test "x$ac_cv_header_errno_h" = xyes
14502 then :
14503   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
14504
14505 fi
14506 ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"
14507 if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes
14508 then :
14509   printf "%s\n" "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h
14510
14511 fi
14512 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14513 if test "x$ac_cv_header_fcntl_h" = xyes
14514 then :
14515   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14516
14517 fi
14518 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
14519 if test "x$ac_cv_header_grp_h" = xyes
14520 then :
14521   printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
14522
14523 fi
14524
14525
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5
14527 printf %s "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }
14528 if test ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+y}
14529 then :
14530   printf %s "(cached) " >&6
14531 else $as_nop
14532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h.  */
14534 #include <sys/ioctl.h>
14535 #include <ext2fs/ext2_fs.h>
14536 int
14537 main (void)
14538 {
14539 int x = EXT2_IOC_GETFLAGS
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"
14545 then :
14546   ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes
14547 else $as_nop
14548   ac_cv_have_decl_EXT2_IOC_GETFLAGS=no
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14551 fi
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5
14553 printf "%s\n" "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }
14554
14555 if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes
14556 then :
14557
14558 printf "%s\n" "#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1" >>confdefs.h
14559
14560 fi
14561
14562 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14563 if test "x$ac_cv_header_inttypes_h" = xyes
14564 then :
14565   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14566
14567 fi
14568 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
14569 if test "x$ac_cv_header_io_h" = xyes
14570 then :
14571   printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
14572
14573 fi
14574 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_langinfo_h" = xyes
14576 then :
14577   printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
14578
14579 fi
14580 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14581 if test "x$ac_cv_header_limits_h" = xyes
14582 then :
14583   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14584
14585 fi
14586
14587 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
14588 if test "x$ac_cv_header_linux_fiemap_h" = xyes
14589 then :
14590   printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
14591
14592 fi
14593 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
14594 if test "x$ac_cv_header_linux_fs_h" = xyes
14595 then :
14596   printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
14597
14598 fi
14599 ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
14600 if test "x$ac_cv_header_linux_magic_h" = xyes
14601 then :
14602   printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
14603
14604 fi
14605 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
14606 if test "x$ac_cv_header_linux_types_h" = xyes
14607 then :
14608   printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
14609
14610 fi
14611
14612
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5
14614 printf %s "checking whether FS_IOC_GETFLAGS is usable... " >&6; }
14615 if test ${ac_cv_have_decl_FS_IOC_GETFLAGS+y}
14616 then :
14617   printf %s "(cached) " >&6
14618 else $as_nop
14619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h.  */
14621 #include <sys/ioctl.h>
14622 #include <linux/fs.h>
14623 int
14624 main (void)
14625 {
14626 int x = FS_IOC_GETFLAGS
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 if ac_fn_c_try_compile "$LINENO"
14632 then :
14633   ac_cv_have_decl_FS_IOC_GETFLAGS=yes
14634 else $as_nop
14635   ac_cv_have_decl_FS_IOC_GETFLAGS=no
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14638 fi
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5
14640 printf "%s\n" "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }
14641
14642 if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes
14643 then :
14644
14645 printf "%s\n" "#define HAVE_WORKING_FS_IOC_GETFLAGS 1" >>confdefs.h
14646
14647 fi
14648
14649 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14650 if test "x$ac_cv_header_locale_h" = xyes
14651 then :
14652   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14653
14654 fi
14655 ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
14656 if test "x$ac_cv_header_membership_h" = xyes
14657 then :
14658   printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
14659
14660 fi
14661 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
14662 if test "x$ac_cv_header_paths_h" = xyes
14663 then :
14664   printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
14665
14666 fi
14667 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14668 if test "x$ac_cv_header_poll_h" = xyes
14669 then :
14670   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
14671
14672 fi
14673 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_pthread_h" = xyes
14675 then :
14676   printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
14677
14678 fi
14679 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14680 if test "x$ac_cv_header_pwd_h" = xyes
14681 then :
14682   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
14683
14684 fi
14685
14686 ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"
14687 if test "x$ac_cv_header_readpassphrase_h" = xyes
14688 then :
14689   printf "%s\n" "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h
14690
14691 fi
14692 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14693 if test "x$ac_cv_header_signal_h" = xyes
14694 then :
14695   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
14696
14697 fi
14698 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
14699 if test "x$ac_cv_header_spawn_h" = xyes
14700 then :
14701   printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
14702
14703 fi
14704
14705 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14706 if test "x$ac_cv_header_stdarg_h" = xyes
14707 then :
14708   printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14709
14710 fi
14711 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14712 if test "x$ac_cv_header_stdint_h" = xyes
14713 then :
14714   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14715
14716 fi
14717 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14718 if test "x$ac_cv_header_stdlib_h" = xyes
14719 then :
14720   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14721
14722 fi
14723 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14724 if test "x$ac_cv_header_string_h" = xyes
14725 then :
14726   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14727
14728 fi
14729
14730 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_sys_acl_h" = xyes
14732 then :
14733   printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
14734
14735 fi
14736 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
14737 if test "x$ac_cv_header_sys_cdefs_h" = xyes
14738 then :
14739   printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
14740
14741 fi
14742 ac_fn_c_check_header_compile "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
14743 if test "x$ac_cv_header_sys_ea_h" = xyes
14744 then :
14745   printf "%s\n" "#define HAVE_SYS_EA_H 1" >>confdefs.h
14746
14747 fi
14748 ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
14749 if test "x$ac_cv_header_sys_extattr_h" = xyes
14750 then :
14751   printf "%s\n" "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
14752
14753 fi
14754
14755 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14756 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14757 then :
14758   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14759
14760 fi
14761 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14762 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14763 then :
14764   printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
14765
14766 fi
14767 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
14768 if test "x$ac_cv_header_sys_mount_h" = xyes
14769 then :
14770   printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
14771
14772 fi
14773
14774 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
14775 if test "x$ac_cv_header_sys_param_h" = xyes
14776 then :
14777   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
14778
14779 fi
14780 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
14781 if test "x$ac_cv_header_sys_poll_h" = xyes
14782 then :
14783   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
14784
14785 fi
14786 ac_fn_c_check_header_compile "$LINENO" "sys/richacl.h" "ac_cv_header_sys_richacl_h" "$ac_includes_default"
14787 if test "x$ac_cv_header_sys_richacl_h" = xyes
14788 then :
14789   printf "%s\n" "#define HAVE_SYS_RICHACL_H 1" >>confdefs.h
14790
14791 fi
14792
14793 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14794 if test "x$ac_cv_header_sys_select_h" = xyes
14795 then :
14796   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14797
14798 fi
14799 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
14800 if test "x$ac_cv_header_sys_statfs_h" = xyes
14801 then :
14802   printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
14803
14804 fi
14805 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
14806 if test "x$ac_cv_header_sys_statvfs_h" = xyes
14807 then :
14808   printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
14809
14810 fi
14811 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14812 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14813 then :
14814   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
14815
14816 fi
14817
14818 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14819 if test "x$ac_cv_header_sys_time_h" = xyes
14820 then :
14821   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14822
14823 fi
14824 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_sys_utime_h" = xyes
14826 then :
14827   printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
14828
14829 fi
14830 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14831 if test "x$ac_cv_header_sys_utsname_h" = xyes
14832 then :
14833   printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
14834
14835 fi
14836 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
14837 if test "x$ac_cv_header_sys_vfs_h" = xyes
14838 then :
14839   printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
14840
14841 fi
14842 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_sys_xattr_h" = xyes
14844 then :
14845   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
14846
14847 fi
14848
14849 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
14850 if test "x$ac_cv_header_time_h" = xyes
14851 then :
14852   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
14853
14854 fi
14855 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_unistd_h" = xyes
14857 then :
14858   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14859
14860 fi
14861 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
14862 if test "x$ac_cv_header_utime_h" = xyes
14863 then :
14864   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
14865
14866 fi
14867 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_wchar_h" = xyes
14869 then :
14870   printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
14871
14872 fi
14873 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
14874 if test "x$ac_cv_header_wctype_h" = xyes
14875 then :
14876   printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
14877
14878 fi
14879
14880 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14881 if test "x$ac_cv_header_windows_h" = xyes
14882 then :
14883   printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
14884
14885 fi
14886
14887 # check windows.h first; the other headers require it.
14888 ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#ifdef HAVE_WINDOWS_H
14889 # include <windows.h>
14890 #endif
14891
14892 "
14893 if test "x$ac_cv_header_wincrypt_h" = xyes
14894 then :
14895   printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
14896
14897 fi
14898 ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H
14899 # include <windows.h>
14900 #endif
14901
14902 "
14903 if test "x$ac_cv_header_winioctl_h" = xyes
14904 then :
14905   printf "%s\n" "#define HAVE_WINIOCTL_H 1" >>confdefs.h
14906
14907 fi
14908
14909
14910 # Checks for libraries.
14911
14912 # Check whether --with-zlib was given.
14913 if test ${with_zlib+y}
14914 then :
14915   withval=$with_zlib;
14916 fi
14917
14918
14919 if test "x$with_zlib" != "xno"; then
14920   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14921 if test "x$ac_cv_header_zlib_h" = xyes
14922 then :
14923   printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
14924
14925 fi
14926
14927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
14928 printf %s "checking for inflate in -lz... " >&6; }
14929 if test ${ac_cv_lib_z_inflate+y}
14930 then :
14931   printf %s "(cached) " >&6
14932 else $as_nop
14933   ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lz  $LIBS"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h.  */
14937
14938 /* Override any GCC internal prototype to avoid an error.
14939    Use char because int might match the return type of a GCC
14940    builtin and then its argument prototype would still apply.  */
14941 char inflate ();
14942 int
14943 main (void)
14944 {
14945 return inflate ();
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"
14951 then :
14952   ac_cv_lib_z_inflate=yes
14953 else $as_nop
14954   ac_cv_lib_z_inflate=no
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14957     conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14959 fi
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
14961 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
14962 if test "x$ac_cv_lib_z_inflate" = xyes
14963 then :
14964   printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14965
14966   LIBS="-lz $LIBS"
14967
14968 fi
14969
14970 fi
14971
14972
14973 # Check whether --with-bz2lib was given.
14974 if test ${with_bz2lib+y}
14975 then :
14976   withval=$with_bz2lib;
14977 fi
14978
14979
14980 if test "x$with_bz2lib" != "xno"; then
14981   ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14982 if test "x$ac_cv_header_bzlib_h" = xyes
14983 then :
14984   printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
14985
14986 fi
14987
14988   case "$host_os" in
14989     *mingw* | *cygwin* | *msys*)
14990                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
14991 printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
14992       old_LIBS="$LIBS"
14993       LIBS="-lbz2 $LIBS"
14994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h.  */
14996 #include <bzlib.h>
14997           int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }
14998 _ACEOF
14999 if ac_fn_c_try_link "$LINENO"
15000 then :
15001   ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
15002 else $as_nop
15003   ac_cv_lib_bz2_BZ2_bzDecompressInit=no
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006     conftest$ac_exeext conftest.$ac_ext
15007       LIBS="$old_LIBS"
15008           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
15009 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
15010       if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then
15011
15012 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15013
15014         LIBS="-lbz2 $LIBS"
15015       fi
15016     ;;
15017     *)
15018       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
15019 printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
15020 if test ${ac_cv_lib_bz2_BZ2_bzDecompressInit+y}
15021 then :
15022   printf %s "(cached) " >&6
15023 else $as_nop
15024   ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lbz2  $LIBS"
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h.  */
15028
15029 /* Override any GCC internal prototype to avoid an error.
15030    Use char because int might match the return type of a GCC
15031    builtin and then its argument prototype would still apply.  */
15032 char BZ2_bzDecompressInit ();
15033 int
15034 main (void)
15035 {
15036 return BZ2_bzDecompressInit ();
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"
15042 then :
15043   ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
15044 else $as_nop
15045   ac_cv_lib_bz2_BZ2_bzDecompressInit=no
15046 fi
15047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15048     conftest$ac_exeext conftest.$ac_ext
15049 LIBS=$ac_check_lib_save_LIBS
15050 fi
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
15052 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
15053 if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes
15054 then :
15055   printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15056
15057   LIBS="-lbz2 $LIBS"
15058
15059 fi
15060
15061     ;;
15062   esac
15063 fi
15064
15065
15066 # Check whether --with-libb2 was given.
15067 if test ${with_libb2+y}
15068 then :
15069   withval=$with_libb2;
15070 fi
15071
15072
15073 if test "x$with_libb2" != "xno"; then
15074   ac_fn_c_check_header_compile "$LINENO" "blake2.h" "ac_cv_header_blake2_h" "$ac_includes_default"
15075 if test "x$ac_cv_header_blake2_h" = xyes
15076 then :
15077   printf "%s\n" "#define HAVE_BLAKE2_H 1" >>confdefs.h
15078
15079 fi
15080
15081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blake2sp_init in -lb2" >&5
15082 printf %s "checking for blake2sp_init in -lb2... " >&6; }
15083 if test ${ac_cv_lib_b2_blake2sp_init+y}
15084 then :
15085   printf %s "(cached) " >&6
15086 else $as_nop
15087   ac_check_lib_save_LIBS=$LIBS
15088 LIBS="-lb2  $LIBS"
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h.  */
15091
15092 /* Override any GCC internal prototype to avoid an error.
15093    Use char because int might match the return type of a GCC
15094    builtin and then its argument prototype would still apply.  */
15095 char blake2sp_init ();
15096 int
15097 main (void)
15098 {
15099 return blake2sp_init ();
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"
15105 then :
15106   ac_cv_lib_b2_blake2sp_init=yes
15107 else $as_nop
15108   ac_cv_lib_b2_blake2sp_init=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15111     conftest$ac_exeext conftest.$ac_ext
15112 LIBS=$ac_check_lib_save_LIBS
15113 fi
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_b2_blake2sp_init" >&5
15115 printf "%s\n" "$ac_cv_lib_b2_blake2sp_init" >&6; }
15116 if test "x$ac_cv_lib_b2_blake2sp_init" = xyes
15117 then :
15118   printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
15119
15120   LIBS="-lb2 $LIBS"
15121
15122 fi
15123
15124 fi
15125
15126  if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then
15127   INC_BLAKE2_TRUE=
15128   INC_BLAKE2_FALSE='#'
15129 else
15130   INC_BLAKE2_TRUE='#'
15131   INC_BLAKE2_FALSE=
15132 fi
15133
15134
15135
15136 # Check whether --with-iconv was given.
15137 if test ${with_iconv+y}
15138 then :
15139   withval=$with_iconv;
15140 fi
15141
15142
15143 if test "x$with_iconv" != "xno"; then
15144
15145       if test "X$prefix" = "XNONE"; then
15146     acl_final_prefix="$ac_default_prefix"
15147   else
15148     acl_final_prefix="$prefix"
15149   fi
15150   if test "X$exec_prefix" = "XNONE"; then
15151     acl_final_exec_prefix='${prefix}'
15152   else
15153     acl_final_exec_prefix="$exec_prefix"
15154   fi
15155   acl_save_prefix="$prefix"
15156   prefix="$acl_final_prefix"
15157   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15158   prefix="$acl_save_prefix"
15159
15160
15161 # Check whether --with-gnu-ld was given.
15162 if test ${with_gnu_ld+y}
15163 then :
15164   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15165 else $as_nop
15166   with_gnu_ld=no
15167 fi
15168
15169 # Prepare PATH_SEPARATOR.
15170 # The user is always right.
15171 if test "${PATH_SEPARATOR+set}" != set; then
15172   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15173   # contains only /bin. Note that ksh looks also at the FPATH variable,
15174   # so we have to set that as well for the test.
15175   PATH_SEPARATOR=:
15176   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15177     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15178            || PATH_SEPARATOR=';'
15179        }
15180 fi
15181 ac_prog=ld
15182 if test "$GCC" = yes; then
15183   # Check if gcc -print-prog-name=ld gives a path.
15184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15185 printf %s "checking for ld used by GCC... " >&6; }
15186   case $host in
15187   *-*-mingw*)
15188     # gcc leaves a trailing carriage return which upsets mingw
15189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15190   *)
15191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15192   esac
15193   case $ac_prog in
15194     # Accept absolute paths.
15195     [\\/]* | [A-Za-z]:[\\/]*)
15196       re_direlt='/[^/][^/]*/\.\./'
15197       # Canonicalize the path of ld
15198       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15200         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15201       done
15202       test -z "$LD" && LD="$ac_prog"
15203       ;;
15204   "")
15205     # If it fails, then pretend we aren't using GCC.
15206     ac_prog=ld
15207     ;;
15208   *)
15209     # If it is relative, then search for the first ld in PATH.
15210     with_gnu_ld=unknown
15211     ;;
15212   esac
15213 elif test "$with_gnu_ld" = yes; then
15214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15215 printf %s "checking for GNU ld... " >&6; }
15216 else
15217   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15218 printf %s "checking for non-GNU ld... " >&6; }
15219 fi
15220 if test ${acl_cv_path_LD+y}
15221 then :
15222   printf %s "(cached) " >&6
15223 else $as_nop
15224   if test -z "$LD"; then
15225   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15226   for ac_dir in $PATH; do
15227     test -z "$ac_dir" && ac_dir=.
15228     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15229       acl_cv_path_LD="$ac_dir/$ac_prog"
15230       # Check to see if the program is GNU ld.  I'd rather use --version,
15231       # but apparently some GNU ld's only accept -v.
15232       # Break only if it was the GNU/non-GNU ld that we prefer.
15233       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15234       *GNU* | *'with BFD'*)
15235         test "$with_gnu_ld" != no && break ;;
15236       *)
15237         test "$with_gnu_ld" != yes && break ;;
15238       esac
15239     fi
15240   done
15241   IFS="$ac_save_ifs"
15242 else
15243   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15244 fi
15245 fi
15246
15247 LD="$acl_cv_path_LD"
15248 if test -n "$LD"; then
15249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15250 printf "%s\n" "$LD" >&6; }
15251 else
15252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15253 printf "%s\n" "no" >&6; }
15254 fi
15255 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15257 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15258 if test ${acl_cv_prog_gnu_ld+y}
15259 then :
15260   printf %s "(cached) " >&6
15261 else $as_nop
15262   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15263 case `$LD -v 2>&1 </dev/null` in
15264 *GNU* | *'with BFD'*)
15265   acl_cv_prog_gnu_ld=yes ;;
15266 *)
15267   acl_cv_prog_gnu_ld=no ;;
15268 esac
15269 fi
15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15271 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15272 with_gnu_ld=$acl_cv_prog_gnu_ld
15273
15274
15275
15276
15277
15278                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15279 printf %s "checking for shared library run path origin... " >&6; }
15280 if test ${acl_cv_rpath+y}
15281 then :
15282   printf %s "(cached) " >&6
15283 else $as_nop
15284
15285     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15286     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15287     . ./conftest.sh
15288     rm -f ./conftest.sh
15289     acl_cv_rpath=done
15290
15291 fi
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15293 printf "%s\n" "$acl_cv_rpath" >&6; }
15294   wl="$acl_cv_wl"
15295   acl_libext="$acl_cv_libext"
15296   acl_shlibext="$acl_cv_shlibext"
15297   acl_libname_spec="$acl_cv_libname_spec"
15298   acl_library_names_spec="$acl_cv_library_names_spec"
15299   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15300   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15301   acl_hardcode_direct="$acl_cv_hardcode_direct"
15302   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15303     # Check whether --enable-rpath was given.
15304 if test ${enable_rpath+y}
15305 then :
15306   enableval=$enable_rpath; :
15307 else $as_nop
15308   enable_rpath=yes
15309 fi
15310
15311
15312
15313
15314   acl_libdirstem=lib
15315   acl_libdirstem2=
15316   case "$host_os" in
15317     solaris*)
15318                                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15319 printf %s "checking for 64-bit host... " >&6; }
15320 if test ${gl_cv_solaris_64bit+y}
15321 then :
15322   printf %s "(cached) " >&6
15323 else $as_nop
15324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h.  */
15326
15327 #ifdef _LP64
15328 sixtyfour bits
15329 #endif
15330
15331 _ACEOF
15332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15333   $EGREP "sixtyfour bits" >/dev/null 2>&1
15334 then :
15335   gl_cv_solaris_64bit=yes
15336 else $as_nop
15337   gl_cv_solaris_64bit=no
15338 fi
15339 rm -rf conftest*
15340
15341
15342 fi
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15344 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15345       if test $gl_cv_solaris_64bit = yes; then
15346         acl_libdirstem=lib/64
15347         case "$host_cpu" in
15348           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
15349           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15350         esac
15351       fi
15352       ;;
15353     *)
15354       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15355       if test -n "$searchpath"; then
15356         acl_save_IFS="${IFS=    }"; IFS=":"
15357         for searchdir in $searchpath; do
15358           if test -d "$searchdir"; then
15359             case "$searchdir" in
15360               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15361               */../ | */.. )
15362                 # Better ignore directories of this form. They are misleading.
15363                 ;;
15364               *) searchdir=`cd "$searchdir" && pwd`
15365                  case "$searchdir" in
15366                    */lib64 ) acl_libdirstem=lib64 ;;
15367                  esac ;;
15368             esac
15369           fi
15370         done
15371         IFS="$acl_save_IFS"
15372       fi
15373       ;;
15374   esac
15375   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388     use_additional=yes
15389
15390   acl_save_prefix="$prefix"
15391   prefix="$acl_final_prefix"
15392   acl_save_exec_prefix="$exec_prefix"
15393   exec_prefix="$acl_final_exec_prefix"
15394
15395     eval additional_includedir=\"$includedir\"
15396     eval additional_libdir=\"$libdir\"
15397
15398   exec_prefix="$acl_save_exec_prefix"
15399   prefix="$acl_save_prefix"
15400
15401
15402 # Check whether --with-libiconv-prefix was given.
15403 if test ${with_libiconv_prefix+y}
15404 then :
15405   withval=$with_libiconv_prefix;
15406     if test "X$withval" = "Xno"; then
15407       use_additional=no
15408     else
15409       if test "X$withval" = "X"; then
15410
15411   acl_save_prefix="$prefix"
15412   prefix="$acl_final_prefix"
15413   acl_save_exec_prefix="$exec_prefix"
15414   exec_prefix="$acl_final_exec_prefix"
15415
15416           eval additional_includedir=\"$includedir\"
15417           eval additional_libdir=\"$libdir\"
15418
15419   exec_prefix="$acl_save_exec_prefix"
15420   prefix="$acl_save_prefix"
15421
15422       else
15423         additional_includedir="$withval/include"
15424         additional_libdir="$withval/$acl_libdirstem"
15425         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15426            && ! test -d "$withval/$acl_libdirstem"; then
15427           additional_libdir="$withval/$acl_libdirstem2"
15428         fi
15429       fi
15430     fi
15431
15432 fi
15433
15434       LIBICONV=
15435   LTLIBICONV=
15436   INCICONV=
15437   LIBICONV_PREFIX=
15438       HAVE_LIBICONV=
15439   rpathdirs=
15440   ltrpathdirs=
15441   names_already_handled=
15442   names_next_round='iconv '
15443   while test -n "$names_next_round"; do
15444     names_this_round="$names_next_round"
15445     names_next_round=
15446     for name in $names_this_round; do
15447       already_handled=
15448       for n in $names_already_handled; do
15449         if test "$n" = "$name"; then
15450           already_handled=yes
15451           break
15452         fi
15453       done
15454       if test -z "$already_handled"; then
15455         names_already_handled="$names_already_handled $name"
15456                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15457         eval value=\"\$HAVE_LIB$uppername\"
15458         if test -n "$value"; then
15459           if test "$value" = yes; then
15460             eval value=\"\$LIB$uppername\"
15461             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15462             eval value=\"\$LTLIB$uppername\"
15463             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15464           else
15465                                     :
15466           fi
15467         else
15468                               found_dir=
15469           found_la=
15470           found_so=
15471           found_a=
15472           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15473           if test -n "$acl_shlibext"; then
15474             shrext=".$acl_shlibext"             # typically: shrext=.so
15475           else
15476             shrext=
15477           fi
15478           if test $use_additional = yes; then
15479             dir="$additional_libdir"
15480                                     if test -n "$acl_shlibext"; then
15481               if test -f "$dir/$libname$shrext"; then
15482                 found_dir="$dir"
15483                 found_so="$dir/$libname$shrext"
15484               else
15485                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15486                   ver=`(cd "$dir" && \
15487                         for f in "$libname$shrext".*; do echo "$f"; done \
15488                         | sed -e "s,^$libname$shrext\\\\.,," \
15489                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15490                         | sed 1q ) 2>/dev/null`
15491                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15492                     found_dir="$dir"
15493                     found_so="$dir/$libname$shrext.$ver"
15494                   fi
15495                 else
15496                   eval library_names=\"$acl_library_names_spec\"
15497                   for f in $library_names; do
15498                     if test -f "$dir/$f"; then
15499                       found_dir="$dir"
15500                       found_so="$dir/$f"
15501                       break
15502                     fi
15503                   done
15504                 fi
15505               fi
15506             fi
15507                         if test "X$found_dir" = "X"; then
15508               if test -f "$dir/$libname.$acl_libext"; then
15509                 found_dir="$dir"
15510                 found_a="$dir/$libname.$acl_libext"
15511               fi
15512             fi
15513             if test "X$found_dir" != "X"; then
15514               if test -f "$dir/$libname.la"; then
15515                 found_la="$dir/$libname.la"
15516               fi
15517             fi
15518           fi
15519           if test "X$found_dir" = "X"; then
15520             for x in $LDFLAGS $LTLIBICONV; do
15521
15522   acl_save_prefix="$prefix"
15523   prefix="$acl_final_prefix"
15524   acl_save_exec_prefix="$exec_prefix"
15525   exec_prefix="$acl_final_exec_prefix"
15526   eval x=\"$x\"
15527   exec_prefix="$acl_save_exec_prefix"
15528   prefix="$acl_save_prefix"
15529
15530               case "$x" in
15531                 -L*)
15532                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15533                                     if test -n "$acl_shlibext"; then
15534                     if test -f "$dir/$libname$shrext"; then
15535                       found_dir="$dir"
15536                       found_so="$dir/$libname$shrext"
15537                     else
15538                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15539                         ver=`(cd "$dir" && \
15540                               for f in "$libname$shrext".*; do echo "$f"; done \
15541                               | sed -e "s,^$libname$shrext\\\\.,," \
15542                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15543                               | sed 1q ) 2>/dev/null`
15544                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15545                           found_dir="$dir"
15546                           found_so="$dir/$libname$shrext.$ver"
15547                         fi
15548                       else
15549                         eval library_names=\"$acl_library_names_spec\"
15550                         for f in $library_names; do
15551                           if test -f "$dir/$f"; then
15552                             found_dir="$dir"
15553                             found_so="$dir/$f"
15554                             break
15555                           fi
15556                         done
15557                       fi
15558                     fi
15559                   fi
15560                                     if test "X$found_dir" = "X"; then
15561                     if test -f "$dir/$libname.$acl_libext"; then
15562                       found_dir="$dir"
15563                       found_a="$dir/$libname.$acl_libext"
15564                     fi
15565                   fi
15566                   if test "X$found_dir" != "X"; then
15567                     if test -f "$dir/$libname.la"; then
15568                       found_la="$dir/$libname.la"
15569                     fi
15570                   fi
15571                   ;;
15572               esac
15573               if test "X$found_dir" != "X"; then
15574                 break
15575               fi
15576             done
15577           fi
15578           if test "X$found_dir" != "X"; then
15579                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15580             if test "X$found_so" != "X"; then
15581                                                         if test "$enable_rpath" = no \
15582                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15583                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15584                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15585               else
15586                                                                                 haveit=
15587                 for x in $ltrpathdirs; do
15588                   if test "X$x" = "X$found_dir"; then
15589                     haveit=yes
15590                     break
15591                   fi
15592                 done
15593                 if test -z "$haveit"; then
15594                   ltrpathdirs="$ltrpathdirs $found_dir"
15595                 fi
15596                                 if test "$acl_hardcode_direct" = yes; then
15597                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15598                 else
15599                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15600                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15601                                                             haveit=
15602                     for x in $rpathdirs; do
15603                       if test "X$x" = "X$found_dir"; then
15604                         haveit=yes
15605                         break
15606                       fi
15607                     done
15608                     if test -z "$haveit"; then
15609                       rpathdirs="$rpathdirs $found_dir"
15610                     fi
15611                   else
15612                                                                                 haveit=
15613                     for x in $LDFLAGS $LIBICONV; do
15614
15615   acl_save_prefix="$prefix"
15616   prefix="$acl_final_prefix"
15617   acl_save_exec_prefix="$exec_prefix"
15618   exec_prefix="$acl_final_exec_prefix"
15619   eval x=\"$x\"
15620   exec_prefix="$acl_save_exec_prefix"
15621   prefix="$acl_save_prefix"
15622
15623                       if test "X$x" = "X-L$found_dir"; then
15624                         haveit=yes
15625                         break
15626                       fi
15627                     done
15628                     if test -z "$haveit"; then
15629                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15630                     fi
15631                     if test "$acl_hardcode_minus_L" != no; then
15632                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15633                     else
15634                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15635                     fi
15636                   fi
15637                 fi
15638               fi
15639             else
15640               if test "X$found_a" != "X"; then
15641                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15642               else
15643                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15644               fi
15645             fi
15646                         additional_includedir=
15647             case "$found_dir" in
15648               */$acl_libdirstem | */$acl_libdirstem/)
15649                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15650                 if test "$name" = 'iconv'; then
15651                   LIBICONV_PREFIX="$basedir"
15652                 fi
15653                 additional_includedir="$basedir/include"
15654                 ;;
15655               */$acl_libdirstem2 | */$acl_libdirstem2/)
15656                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15657                 if test "$name" = 'iconv'; then
15658                   LIBICONV_PREFIX="$basedir"
15659                 fi
15660                 additional_includedir="$basedir/include"
15661                 ;;
15662             esac
15663             if test "X$additional_includedir" != "X"; then
15664                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15665                 haveit=
15666                 if test "X$additional_includedir" = "X/usr/local/include"; then
15667                   if test -n "$GCC"; then
15668                     case $host_os in
15669                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15670                     esac
15671                   fi
15672                 fi
15673                 if test -z "$haveit"; then
15674                   for x in $CPPFLAGS $INCICONV; do
15675
15676   acl_save_prefix="$prefix"
15677   prefix="$acl_final_prefix"
15678   acl_save_exec_prefix="$exec_prefix"
15679   exec_prefix="$acl_final_exec_prefix"
15680   eval x=\"$x\"
15681   exec_prefix="$acl_save_exec_prefix"
15682   prefix="$acl_save_prefix"
15683
15684                     if test "X$x" = "X-I$additional_includedir"; then
15685                       haveit=yes
15686                       break
15687                     fi
15688                   done
15689                   if test -z "$haveit"; then
15690                     if test -d "$additional_includedir"; then
15691                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15692                     fi
15693                   fi
15694                 fi
15695               fi
15696             fi
15697                         if test -n "$found_la"; then
15698                                                         save_libdir="$libdir"
15699               case "$found_la" in
15700                 */* | *\\*) . "$found_la" ;;
15701                 *) . "./$found_la" ;;
15702               esac
15703               libdir="$save_libdir"
15704                             for dep in $dependency_libs; do
15705                 case "$dep" in
15706                   -L*)
15707                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15708                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15709                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15710                       haveit=
15711                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15712                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15713                         if test -n "$GCC"; then
15714                           case $host_os in
15715                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15716                           esac
15717                         fi
15718                       fi
15719                       if test -z "$haveit"; then
15720                         haveit=
15721                         for x in $LDFLAGS $LIBICONV; do
15722
15723   acl_save_prefix="$prefix"
15724   prefix="$acl_final_prefix"
15725   acl_save_exec_prefix="$exec_prefix"
15726   exec_prefix="$acl_final_exec_prefix"
15727   eval x=\"$x\"
15728   exec_prefix="$acl_save_exec_prefix"
15729   prefix="$acl_save_prefix"
15730
15731                           if test "X$x" = "X-L$additional_libdir"; then
15732                             haveit=yes
15733                             break
15734                           fi
15735                         done
15736                         if test -z "$haveit"; then
15737                           if test -d "$additional_libdir"; then
15738                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15739                           fi
15740                         fi
15741                         haveit=
15742                         for x in $LDFLAGS $LTLIBICONV; do
15743
15744   acl_save_prefix="$prefix"
15745   prefix="$acl_final_prefix"
15746   acl_save_exec_prefix="$exec_prefix"
15747   exec_prefix="$acl_final_exec_prefix"
15748   eval x=\"$x\"
15749   exec_prefix="$acl_save_exec_prefix"
15750   prefix="$acl_save_prefix"
15751
15752                           if test "X$x" = "X-L$additional_libdir"; then
15753                             haveit=yes
15754                             break
15755                           fi
15756                         done
15757                         if test -z "$haveit"; then
15758                           if test -d "$additional_libdir"; then
15759                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15760                           fi
15761                         fi
15762                       fi
15763                     fi
15764                     ;;
15765                   -R*)
15766                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15767                     if test "$enable_rpath" != no; then
15768                                                                   haveit=
15769                       for x in $rpathdirs; do
15770                         if test "X$x" = "X$dir"; then
15771                           haveit=yes
15772                           break
15773                         fi
15774                       done
15775                       if test -z "$haveit"; then
15776                         rpathdirs="$rpathdirs $dir"
15777                       fi
15778                                                                   haveit=
15779                       for x in $ltrpathdirs; do
15780                         if test "X$x" = "X$dir"; then
15781                           haveit=yes
15782                           break
15783                         fi
15784                       done
15785                       if test -z "$haveit"; then
15786                         ltrpathdirs="$ltrpathdirs $dir"
15787                       fi
15788                     fi
15789                     ;;
15790                   -l*)
15791                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15792                     ;;
15793                   *.la)
15794                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15795                     ;;
15796                   *)
15797                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15798                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15799                     ;;
15800                 esac
15801               done
15802             fi
15803           else
15804                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15805             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15806           fi
15807         fi
15808       fi
15809     done
15810   done
15811   if test "X$rpathdirs" != "X"; then
15812     if test -n "$acl_hardcode_libdir_separator"; then
15813                         alldirs=
15814       for found_dir in $rpathdirs; do
15815         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15816       done
15817             acl_save_libdir="$libdir"
15818       libdir="$alldirs"
15819       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15820       libdir="$acl_save_libdir"
15821       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15822     else
15823             for found_dir in $rpathdirs; do
15824         acl_save_libdir="$libdir"
15825         libdir="$found_dir"
15826         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15827         libdir="$acl_save_libdir"
15828         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15829       done
15830     fi
15831   fi
15832   if test "X$ltrpathdirs" != "X"; then
15833             for found_dir in $ltrpathdirs; do
15834       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15835     done
15836   fi
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849           am_save_CPPFLAGS="$CPPFLAGS"
15850
15851   for element in $INCICONV; do
15852     haveit=
15853     for x in $CPPFLAGS; do
15854
15855   acl_save_prefix="$prefix"
15856   prefix="$acl_final_prefix"
15857   acl_save_exec_prefix="$exec_prefix"
15858   exec_prefix="$acl_final_exec_prefix"
15859   eval x=\"$x\"
15860   exec_prefix="$acl_save_exec_prefix"
15861   prefix="$acl_save_prefix"
15862
15863       if test "X$x" = "X$element"; then
15864         haveit=yes
15865         break
15866       fi
15867     done
15868     if test -z "$haveit"; then
15869       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15870     fi
15871   done
15872
15873
15874   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15875 printf %s "checking for iconv... " >&6; }
15876 if test ${am_cv_func_iconv+y}
15877 then :
15878   printf %s "(cached) " >&6
15879 else $as_nop
15880
15881     am_cv_func_iconv="no, consider installing GNU libiconv"
15882     am_cv_lib_iconv=no
15883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h.  */
15885
15886 #include <stdlib.h>
15887 #include <iconv.h>
15888
15889 int
15890 main (void)
15891 {
15892 iconv_t cd = iconv_open("","");
15893            iconv(cd,NULL,NULL,NULL,NULL);
15894            iconv_close(cd);
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 if ac_fn_c_try_link "$LINENO"
15900 then :
15901   am_cv_func_iconv=yes
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15904     conftest$ac_exeext conftest.$ac_ext
15905     if test "$am_cv_func_iconv" != yes; then
15906       am_save_LIBS="$LIBS"
15907       LIBS="$LIBS $LIBICONV"
15908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h.  */
15910
15911 #include <stdlib.h>
15912 #include <iconv.h>
15913
15914 int
15915 main (void)
15916 {
15917 iconv_t cd = iconv_open("","");
15918              iconv(cd,NULL,NULL,NULL,NULL);
15919              iconv_close(cd);
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"
15925 then :
15926   am_cv_lib_iconv=yes
15927         am_cv_func_iconv=yes
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930     conftest$ac_exeext conftest.$ac_ext
15931       LIBS="$am_save_LIBS"
15932     fi
15933
15934 fi
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15936 printf "%s\n" "$am_cv_func_iconv" >&6; }
15937   if test "$am_cv_func_iconv" = yes; then
15938     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15939 printf %s "checking for working iconv... " >&6; }
15940 if test ${am_cv_func_iconv_works+y}
15941 then :
15942   printf %s "(cached) " >&6
15943 else $as_nop
15944
15945                   am_save_LIBS="$LIBS"
15946       if test $am_cv_lib_iconv = yes; then
15947         LIBS="$LIBS $LIBICONV"
15948       fi
15949       am_cv_func_iconv_works=no
15950       for ac_iconv_const in '' 'const'; do
15951         if test "$cross_compiling" = yes
15952 then :
15953   case "$host_os" in
15954              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15955              *)            am_cv_func_iconv_works="guessing yes" ;;
15956            esac
15957 else $as_nop
15958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960
15961 #include <iconv.h>
15962 #include <string.h>
15963
15964 #ifndef ICONV_CONST
15965 # define ICONV_CONST $ac_iconv_const
15966 #endif
15967
15968 int
15969 main (void)
15970 {
15971 int result = 0;
15972   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15973      returns.  */
15974   {
15975     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15976     if (cd_utf8_to_88591 != (iconv_t)(-1))
15977       {
15978         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15979         char buf[10];
15980         ICONV_CONST char *inptr = input;
15981         size_t inbytesleft = strlen (input);
15982         char *outptr = buf;
15983         size_t outbytesleft = sizeof (buf);
15984         size_t res = iconv (cd_utf8_to_88591,
15985                             &inptr, &inbytesleft,
15986                             &outptr, &outbytesleft);
15987         if (res == 0)
15988           result |= 1;
15989         iconv_close (cd_utf8_to_88591);
15990       }
15991   }
15992   /* Test against Solaris 10 bug: Failures are not distinguishable from
15993      successful returns.  */
15994   {
15995     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15996     if (cd_ascii_to_88591 != (iconv_t)(-1))
15997       {
15998         static ICONV_CONST char input[] = "\263";
15999         char buf[10];
16000         ICONV_CONST char *inptr = input;
16001         size_t inbytesleft = strlen (input);
16002         char *outptr = buf;
16003         size_t outbytesleft = sizeof (buf);
16004         size_t res = iconv (cd_ascii_to_88591,
16005                             &inptr, &inbytesleft,
16006                             &outptr, &outbytesleft);
16007         if (res == 0)
16008           result |= 2;
16009         iconv_close (cd_ascii_to_88591);
16010       }
16011   }
16012   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
16013   {
16014     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16015     if (cd_88591_to_utf8 != (iconv_t)(-1))
16016       {
16017         static ICONV_CONST char input[] = "\304";
16018         static char buf[2] = { (char)0xDE, (char)0xAD };
16019         ICONV_CONST char *inptr = input;
16020         size_t inbytesleft = 1;
16021         char *outptr = buf;
16022         size_t outbytesleft = 1;
16023         size_t res = iconv (cd_88591_to_utf8,
16024                             &inptr, &inbytesleft,
16025                             &outptr, &outbytesleft);
16026         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16027           result |= 4;
16028         iconv_close (cd_88591_to_utf8);
16029       }
16030   }
16031 #if 0 /* This bug could be worked around by the caller.  */
16032   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16033   {
16034     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16035     if (cd_88591_to_utf8 != (iconv_t)(-1))
16036       {
16037         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16038         char buf[50];
16039         ICONV_CONST char *inptr = input;
16040         size_t inbytesleft = strlen (input);
16041         char *outptr = buf;
16042         size_t outbytesleft = sizeof (buf);
16043         size_t res = iconv (cd_88591_to_utf8,
16044                             &inptr, &inbytesleft,
16045                             &outptr, &outbytesleft);
16046         if ((int)res > 0)
16047           result |= 8;
16048         iconv_close (cd_88591_to_utf8);
16049       }
16050   }
16051 #endif
16052   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16053      provided.  */
16054   if (/* Try standardized names.  */
16055       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16056       /* Try IRIX, OSF/1 names.  */
16057       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16058       /* Try AIX names.  */
16059       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16060       /* Try HP-UX names.  */
16061       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16062     result |= 16;
16063   return result;
16064
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 if ac_fn_c_try_run "$LINENO"
16070 then :
16071   am_cv_func_iconv_works=yes
16072 fi
16073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16074   conftest.$ac_objext conftest.beam conftest.$ac_ext
16075 fi
16076
16077         test "$am_cv_func_iconv_works" = no || break
16078       done
16079       LIBS="$am_save_LIBS"
16080
16081 fi
16082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16083 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16084     case "$am_cv_func_iconv_works" in
16085       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16086       *)   am_func_iconv=yes ;;
16087     esac
16088   else
16089     am_func_iconv=no am_cv_lib_iconv=no
16090   fi
16091   if test "$am_func_iconv" = yes; then
16092
16093 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16094
16095   fi
16096   if test "$am_cv_lib_iconv" = yes; then
16097     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16098 printf %s "checking how to link with libiconv... " >&6; }
16099     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16100 printf "%s\n" "$LIBICONV" >&6; }
16101   else
16102             CPPFLAGS="$am_save_CPPFLAGS"
16103     LIBICONV=
16104     LTLIBICONV=
16105   fi
16106
16107
16108
16109   if test "$am_cv_func_iconv" = yes; then
16110     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16111 printf %s "checking for iconv declaration... " >&6; }
16112     if test ${am_cv_proto_iconv+y}
16113 then :
16114   printf %s "(cached) " >&6
16115 else $as_nop
16116
16117       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h.  */
16119
16120 #include <stdlib.h>
16121 #include <iconv.h>
16122 extern
16123 #ifdef __cplusplus
16124 "C"
16125 #endif
16126 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
16127 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16128 #else
16129 size_t iconv();
16130 #endif
16131
16132 int
16133 main (void)
16134 {
16135
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_compile "$LINENO"
16141 then :
16142   am_cv_proto_iconv_arg1=""
16143 else $as_nop
16144   am_cv_proto_iconv_arg1="const"
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16147       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16148 fi
16149
16150     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16151     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
16152          $am_cv_proto_iconv" >&5
16153 printf "%s\n" "
16154          $am_cv_proto_iconv" >&6; }
16155
16156 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
16157
16158
16159   fi
16160
16161   ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>
16162 "
16163 if test "x$ac_cv_header_iconv_h" = xyes
16164 then :
16165   printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
16166
16167 fi
16168
16169   if test "x$am_cv_func_iconv" = "xyes"; then
16170     ac_fn_c_check_header_compile "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"
16171 if test "x$ac_cv_header_localcharset_h" = xyes
16172 then :
16173   printf "%s\n" "#define HAVE_LOCALCHARSET_H 1" >>confdefs.h
16174
16175 fi
16176
16177     am_save_LIBS="$LIBS"
16178     LIBS="${LIBS} ${LIBICONV}"
16179     LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"
16180     ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
16181 if test "x$ac_cv_func_locale_charset" = xyes
16182 then :
16183   printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
16184
16185 fi
16186
16187     LIBS="${am_save_LIBS}"
16188     if test "x$ac_cv_func_locale_charset" != "xyes"; then
16189       # If locale_charset() is not in libiconv, we have to find libcharset.
16190       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
16191 printf %s "checking for locale_charset in -lcharset... " >&6; }
16192 if test ${ac_cv_lib_charset_locale_charset+y}
16193 then :
16194   printf %s "(cached) " >&6
16195 else $as_nop
16196   ac_check_lib_save_LIBS=$LIBS
16197 LIBS="-lcharset  $LIBS"
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h.  */
16200
16201 /* Override any GCC internal prototype to avoid an error.
16202    Use char because int might match the return type of a GCC
16203    builtin and then its argument prototype would still apply.  */
16204 char locale_charset ();
16205 int
16206 main (void)
16207 {
16208 return locale_charset ();
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"
16214 then :
16215   ac_cv_lib_charset_locale_charset=yes
16216 else $as_nop
16217   ac_cv_lib_charset_locale_charset=no
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16220     conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
16224 printf "%s\n" "$ac_cv_lib_charset_locale_charset" >&6; }
16225 if test "x$ac_cv_lib_charset_locale_charset" = xyes
16226 then :
16227   printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h
16228
16229   LIBS="-lcharset $LIBS"
16230
16231 fi
16232
16233     fi
16234   fi
16235 fi
16236
16237
16238 # Check whether --with-lz4 was given.
16239 if test ${with_lz4+y}
16240 then :
16241   withval=$with_lz4;
16242 fi
16243
16244
16245 if test "x$with_lz4" != "xno"; then
16246   ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
16247 if test "x$ac_cv_header_lz4_h" = xyes
16248 then :
16249   printf "%s\n" "#define HAVE_LZ4_H 1" >>confdefs.h
16250
16251 fi
16252 ac_fn_c_check_header_compile "$LINENO" "lz4hc.h" "ac_cv_header_lz4hc_h" "$ac_includes_default"
16253 if test "x$ac_cv_header_lz4hc_h" = xyes
16254 then :
16255   printf "%s\n" "#define HAVE_LZ4HC_H 1" >>confdefs.h
16256
16257 fi
16258
16259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5
16260 printf %s "checking for LZ4_decompress_safe in -llz4... " >&6; }
16261 if test ${ac_cv_lib_lz4_LZ4_decompress_safe+y}
16262 then :
16263   printf %s "(cached) " >&6
16264 else $as_nop
16265   ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-llz4  $LIBS"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h.  */
16269
16270 /* Override any GCC internal prototype to avoid an error.
16271    Use char because int might match the return type of a GCC
16272    builtin and then its argument prototype would still apply.  */
16273 char LZ4_decompress_safe ();
16274 int
16275 main (void)
16276 {
16277 return LZ4_decompress_safe ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 if ac_fn_c_try_link "$LINENO"
16283 then :
16284   ac_cv_lib_lz4_LZ4_decompress_safe=yes
16285 else $as_nop
16286   ac_cv_lib_lz4_LZ4_decompress_safe=no
16287 fi
16288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16289     conftest$ac_exeext conftest.$ac_ext
16290 LIBS=$ac_check_lib_save_LIBS
16291 fi
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5
16293 printf "%s\n" "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }
16294 if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes
16295 then :
16296   printf "%s\n" "#define HAVE_LIBLZ4 1" >>confdefs.h
16297
16298   LIBS="-llz4 $LIBS"
16299
16300 fi
16301
16302 fi
16303
16304
16305 # Check whether --with-zstd was given.
16306 if test ${with_zstd+y}
16307 then :
16308   withval=$with_zstd;
16309 fi
16310
16311
16312 if test "x$with_zstd" != "xno"; then
16313   ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
16314 if test "x$ac_cv_header_zstd_h" = xyes
16315 then :
16316   printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
16317
16318 fi
16319
16320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5
16321 printf %s "checking for ZSTD_decompressStream in -lzstd... " >&6; }
16322 if test ${ac_cv_lib_zstd_ZSTD_decompressStream+y}
16323 then :
16324   printf %s "(cached) " >&6
16325 else $as_nop
16326   ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lzstd  $LIBS"
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h.  */
16330
16331 /* Override any GCC internal prototype to avoid an error.
16332    Use char because int might match the return type of a GCC
16333    builtin and then its argument prototype would still apply.  */
16334 char ZSTD_decompressStream ();
16335 int
16336 main (void)
16337 {
16338 return ZSTD_decompressStream ();
16339   ;
16340   return 0;
16341 }
16342 _ACEOF
16343 if ac_fn_c_try_link "$LINENO"
16344 then :
16345   ac_cv_lib_zstd_ZSTD_decompressStream=yes
16346 else $as_nop
16347   ac_cv_lib_zstd_ZSTD_decompressStream=no
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16350     conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16352 fi
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5
16354 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }
16355 if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes
16356 then :
16357   printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
16358
16359   LIBS="-lzstd $LIBS"
16360
16361 fi
16362
16363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5
16364 printf %s "checking for ZSTD_compressStream in -lzstd... " >&6; }
16365 if test ${ac_cv_lib_zstd_ZSTD_compressStream+y}
16366 then :
16367   printf %s "(cached) " >&6
16368 else $as_nop
16369   ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-lzstd  $LIBS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h.  */
16373
16374 /* Override any GCC internal prototype to avoid an error.
16375    Use char because int might match the return type of a GCC
16376    builtin and then its argument prototype would still apply.  */
16377 char ZSTD_compressStream ();
16378 int
16379 main (void)
16380 {
16381 return ZSTD_compressStream ();
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_c_try_link "$LINENO"
16387 then :
16388   ac_cv_lib_zstd_ZSTD_compressStream=yes
16389 else $as_nop
16390   ac_cv_lib_zstd_ZSTD_compressStream=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16393     conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16395 fi
16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5
16397 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }
16398 if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes
16399 then :
16400
16401 printf "%s\n" "#define HAVE_LIBZSTD_COMPRESSOR 1" >>confdefs.h
16402
16403 fi
16404
16405 fi
16406
16407
16408 # Check whether --with-lzma was given.
16409 if test ${with_lzma+y}
16410 then :
16411   withval=$with_lzma;
16412 fi
16413
16414
16415 if test "x$with_lzma" != "xno"; then
16416   ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
16417 if test "x$ac_cv_header_lzma_h" = xyes
16418 then :
16419   printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
16420
16421 fi
16422
16423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
16424 printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
16425 if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
16426 then :
16427   printf %s "(cached) " >&6
16428 else $as_nop
16429   ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-llzma  $LIBS"
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h.  */
16433
16434 /* Override any GCC internal prototype to avoid an error.
16435    Use char because int might match the return type of a GCC
16436    builtin and then its argument prototype would still apply.  */
16437 char lzma_stream_decoder ();
16438 int
16439 main (void)
16440 {
16441 return lzma_stream_decoder ();
16442   ;
16443   return 0;
16444 }
16445 _ACEOF
16446 if ac_fn_c_try_link "$LINENO"
16447 then :
16448   ac_cv_lib_lzma_lzma_stream_decoder=yes
16449 else $as_nop
16450   ac_cv_lib_lzma_lzma_stream_decoder=no
16451 fi
16452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16453     conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16455 fi
16456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
16457 printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
16458 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
16459 then :
16460   printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
16461
16462   LIBS="-llzma $LIBS"
16463
16464 fi
16465
16466   # Some pre-release (but widely distributed) versions of liblzma
16467   # included a disabled version of lzma_stream_encoder_mt that
16468   # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need
16469   # to do something more complex here:
16470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5
16471 printf %s "checking whether we have multithread support in lzma... " >&6; }
16472 if test ${ac_cv_lzma_has_mt+y}
16473 then :
16474   printf %s "(cached) " >&6
16475 else $as_nop
16476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h.  */
16478
16479       #include <lzma.h>
16480                        #if LZMA_VERSION < 50020000
16481                        #error unsupported
16482                        #endif
16483 int
16484 main (void)
16485 {
16486 lzma_stream_encoder_mt(0, 0);
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_link "$LINENO"
16492 then :
16493   ac_cv_lzma_has_mt=yes
16494 else $as_nop
16495   ac_cv_lzma_has_mt=no
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16498     conftest$ac_exeext conftest.$ac_ext
16499 fi
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5
16501 printf "%s\n" "$ac_cv_lzma_has_mt" >&6; }
16502   if test "x$ac_cv_lzma_has_mt" != xno; then
16503
16504 printf "%s\n" "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h
16505
16506   fi
16507 fi
16508
16509
16510 # Check whether --with-lzo2 was given.
16511 if test ${with_lzo2+y}
16512 then :
16513   withval=$with_lzo2;
16514 fi
16515
16516
16517 if test "x$with_lzo2" = "xyes"; then
16518   ac_fn_c_check_header_compile "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
16519 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes
16520 then :
16521   printf "%s\n" "#define HAVE_LZO_LZOCONF_H 1" >>confdefs.h
16522
16523 fi
16524 ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16525 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
16526 then :
16527   printf "%s\n" "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h
16528
16529 fi
16530
16531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
16532 printf %s "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
16533 if test ${ac_cv_lib_lzo2_lzo1x_decompress_safe+y}
16534 then :
16535   printf %s "(cached) " >&6
16536 else $as_nop
16537   ac_check_lib_save_LIBS=$LIBS
16538 LIBS="-llzo2  $LIBS"
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h.  */
16541
16542 /* Override any GCC internal prototype to avoid an error.
16543    Use char because int might match the return type of a GCC
16544    builtin and then its argument prototype would still apply.  */
16545 char lzo1x_decompress_safe ();
16546 int
16547 main (void)
16548 {
16549 return lzo1x_decompress_safe ();
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"
16555 then :
16556   ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
16557 else $as_nop
16558   ac_cv_lib_lzo2_lzo1x_decompress_safe=no
16559 fi
16560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16561     conftest$ac_exeext conftest.$ac_ext
16562 LIBS=$ac_check_lib_save_LIBS
16563 fi
16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
16565 printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
16566 if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes
16567 then :
16568   printf "%s\n" "#define HAVE_LIBLZO2 1" >>confdefs.h
16569
16570   LIBS="-llzo2 $LIBS"
16571
16572 fi
16573
16574 fi
16575
16576
16577 # Check whether --with-cng was given.
16578 if test ${with_cng+y}
16579 then :
16580   withval=$with_cng;
16581 fi
16582
16583
16584
16585 # Check whether --with-mbedtls was given.
16586 if test ${with_mbedtls+y}
16587 then :
16588   withval=$with_mbedtls;
16589 fi
16590
16591
16592 # Check whether --with-nettle was given.
16593 if test ${with_nettle+y}
16594 then :
16595   withval=$with_nettle;
16596 fi
16597
16598
16599 # Check whether --with-openssl was given.
16600 if test ${with_openssl+y}
16601 then :
16602   withval=$with_openssl;
16603 fi
16604
16605 case "$host_os" in
16606   *darwin* ) with_openssl=no ;;
16607 esac
16608
16609
16610 # Check whether --with-xml2 was given.
16611 if test ${with_xml2+y}
16612 then :
16613   withval=$with_xml2;
16614 fi
16615
16616
16617 # Check whether --with-expat was given.
16618 if test ${with_expat+y}
16619 then :
16620   withval=$with_expat;
16621 fi
16622
16623
16624 if test "x$with_xml2" != "xno"; then
16625
16626
16627
16628
16629
16630
16631
16632 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16633         if test -n "$ac_tool_prefix"; then
16634   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16635 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637 printf %s "checking for $ac_word... " >&6; }
16638 if test ${ac_cv_path_PKG_CONFIG+y}
16639 then :
16640   printf %s "(cached) " >&6
16641 else $as_nop
16642   case $PKG_CONFIG in
16643   [\\/]* | ?:[\\/]*)
16644   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16645   ;;
16646   *)
16647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16649 do
16650   IFS=$as_save_IFS
16651   case $as_dir in #(((
16652     '') as_dir=./ ;;
16653     */) ;;
16654     *) as_dir=$as_dir/ ;;
16655   esac
16656     for ac_exec_ext in '' $ac_executable_extensions; do
16657   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16658     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16659     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16660     break 2
16661   fi
16662 done
16663   done
16664 IFS=$as_save_IFS
16665
16666   ;;
16667 esac
16668 fi
16669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16670 if test -n "$PKG_CONFIG"; then
16671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16672 printf "%s\n" "$PKG_CONFIG" >&6; }
16673 else
16674   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 printf "%s\n" "no" >&6; }
16676 fi
16677
16678
16679 fi
16680 if test -z "$ac_cv_path_PKG_CONFIG"; then
16681   ac_pt_PKG_CONFIG=$PKG_CONFIG
16682   # Extract the first word of "pkg-config", so it can be a program name with args.
16683 set dummy pkg-config; ac_word=$2
16684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 printf %s "checking for $ac_word... " >&6; }
16686 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16687 then :
16688   printf %s "(cached) " >&6
16689 else $as_nop
16690   case $ac_pt_PKG_CONFIG in
16691   [\\/]* | ?:[\\/]*)
16692   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16693   ;;
16694   *)
16695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16697 do
16698   IFS=$as_save_IFS
16699   case $as_dir in #(((
16700     '') as_dir=./ ;;
16701     */) ;;
16702     *) as_dir=$as_dir/ ;;
16703   esac
16704     for ac_exec_ext in '' $ac_executable_extensions; do
16705   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16706     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16707     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16708     break 2
16709   fi
16710 done
16711   done
16712 IFS=$as_save_IFS
16713
16714   ;;
16715 esac
16716 fi
16717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16718 if test -n "$ac_pt_PKG_CONFIG"; then
16719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16720 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16721 else
16722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 printf "%s\n" "no" >&6; }
16724 fi
16725
16726   if test "x$ac_pt_PKG_CONFIG" = x; then
16727     PKG_CONFIG=""
16728   else
16729     case $cross_compiling:$ac_tool_warned in
16730 yes:)
16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16733 ac_tool_warned=yes ;;
16734 esac
16735     PKG_CONFIG=$ac_pt_PKG_CONFIG
16736   fi
16737 else
16738   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16739 fi
16740
16741 fi
16742 if test -n "$PKG_CONFIG"; then
16743         _pkg_min_version=0.9.0
16744         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16745 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16746         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16747                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748 printf "%s\n" "yes" >&6; }
16749         else
16750                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 printf "%s\n" "no" >&6; }
16752                 PKG_CONFIG=""
16753         fi
16754 fi
16755
16756 pkg_failed=no
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
16758 printf %s "checking for libxml-2.0... " >&6; }
16759
16760 if test -n "$LIBXML2_PC_CFLAGS"; then
16761     pkg_cv_LIBXML2_PC_CFLAGS="$LIBXML2_PC_CFLAGS"
16762  elif test -n "$PKG_CONFIG"; then
16763     if test -n "$PKG_CONFIG" && \
16764     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
16765   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
16766   ac_status=$?
16767   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16768   test $ac_status = 0; }; then
16769   pkg_cv_LIBXML2_PC_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
16770                       test "x$?" != "x0" && pkg_failed=yes
16771 else
16772   pkg_failed=yes
16773 fi
16774  else
16775     pkg_failed=untried
16776 fi
16777 if test -n "$LIBXML2_PC_LIBS"; then
16778     pkg_cv_LIBXML2_PC_LIBS="$LIBXML2_PC_LIBS"
16779  elif test -n "$PKG_CONFIG"; then
16780     if test -n "$PKG_CONFIG" && \
16781     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
16782   ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
16783   ac_status=$?
16784   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16785   test $ac_status = 0; }; then
16786   pkg_cv_LIBXML2_PC_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
16787                       test "x$?" != "x0" && pkg_failed=yes
16788 else
16789   pkg_failed=yes
16790 fi
16791  else
16792     pkg_failed=untried
16793 fi
16794
16795
16796
16797 if test $pkg_failed = yes; then
16798         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799 printf "%s\n" "no" >&6; }
16800
16801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16802         _pkg_short_errors_supported=yes
16803 else
16804         _pkg_short_errors_supported=no
16805 fi
16806         if test $_pkg_short_errors_supported = yes; then
16807                 LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
16808         else
16809                 LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
16810         fi
16811         # Put the nasty error message in config.log where it belongs
16812         echo "$LIBXML2_PC_PKG_ERRORS" >&5
16813
16814
16815     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16816 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16817 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16818 then :
16819   printf %s "(cached) " >&6
16820 else $as_nop
16821   ac_check_lib_save_LIBS=$LIBS
16822 LIBS="-lxml2  $LIBS"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h.  */
16825
16826 /* Override any GCC internal prototype to avoid an error.
16827    Use char because int might match the return type of a GCC
16828    builtin and then its argument prototype would still apply.  */
16829 char xmlInitParser ();
16830 int
16831 main (void)
16832 {
16833 return xmlInitParser ();
16834   ;
16835   return 0;
16836 }
16837 _ACEOF
16838 if ac_fn_c_try_link "$LINENO"
16839 then :
16840   ac_cv_lib_xml2_xmlInitParser=yes
16841 else $as_nop
16842   ac_cv_lib_xml2_xmlInitParser=no
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16845     conftest$ac_exeext conftest.$ac_ext
16846 LIBS=$ac_check_lib_save_LIBS
16847 fi
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16849 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16850 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16851 then :
16852   printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
16853
16854   LIBS="-lxml2 $LIBS"
16855
16856 fi
16857
16858
16859 elif test $pkg_failed = untried; then
16860         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861 printf "%s\n" "no" >&6; }
16862
16863     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16864 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16865 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16866 then :
16867   printf %s "(cached) " >&6
16868 else $as_nop
16869   ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lxml2  $LIBS"
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h.  */
16873
16874 /* Override any GCC internal prototype to avoid an error.
16875    Use char because int might match the return type of a GCC
16876    builtin and then its argument prototype would still apply.  */
16877 char xmlInitParser ();
16878 int
16879 main (void)
16880 {
16881 return xmlInitParser ();
16882   ;
16883   return 0;
16884 }
16885 _ACEOF
16886 if ac_fn_c_try_link "$LINENO"
16887 then :
16888   ac_cv_lib_xml2_xmlInitParser=yes
16889 else $as_nop
16890   ac_cv_lib_xml2_xmlInitParser=no
16891 fi
16892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16893     conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16895 fi
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16897 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16898 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16899 then :
16900   printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
16901
16902   LIBS="-lxml2 $LIBS"
16903
16904 fi
16905
16906
16907 else
16908         LIBXML2_PC_CFLAGS=$pkg_cv_LIBXML2_PC_CFLAGS
16909         LIBXML2_PC_LIBS=$pkg_cv_LIBXML2_PC_LIBS
16910         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 printf "%s\n" "yes" >&6; }
16912
16913     CPPFLAGS="${CPPFLAGS} ${LIBXML2_PC_CFLAGS}"
16914     LIBS="${LIBS} ${LIBXML2_PC_LIBS}"
16915     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16916 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16917 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16918 then :
16919   printf %s "(cached) " >&6
16920 else $as_nop
16921   ac_check_lib_save_LIBS=$LIBS
16922 LIBS="-lxml2  $LIBS"
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h.  */
16925
16926 /* Override any GCC internal prototype to avoid an error.
16927    Use char because int might match the return type of a GCC
16928    builtin and then its argument prototype would still apply.  */
16929 char xmlInitParser ();
16930 int
16931 main (void)
16932 {
16933 return xmlInitParser ();
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_c_try_link "$LINENO"
16939 then :
16940   ac_cv_lib_xml2_xmlInitParser=yes
16941 else $as_nop
16942   ac_cv_lib_xml2_xmlInitParser=no
16943 fi
16944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16945     conftest$ac_exeext conftest.$ac_ext
16946 LIBS=$ac_check_lib_save_LIBS
16947 fi
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16949 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16950 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16951 then :
16952   true
16953 else $as_nop
16954   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16956 as_fn_error $? "Missing xml2 library
16957 See \`config.log' for more details" "$LINENO" 5; }
16958 fi
16959
16960
16961 fi
16962   ac_fn_c_check_header_compile "$LINENO" "libxml/xmlreader.h" "ac_cv_header_libxml_xmlreader_h" "$ac_includes_default"
16963 if test "x$ac_cv_header_libxml_xmlreader_h" = xyes
16964 then :
16965   printf "%s\n" "#define HAVE_LIBXML_XMLREADER_H 1" >>confdefs.h
16966
16967 fi
16968 ac_fn_c_check_header_compile "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
16969 if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes
16970 then :
16971   printf "%s\n" "#define HAVE_LIBXML_XMLWRITER_H 1" >>confdefs.h
16972
16973 fi
16974
16975 fi
16976 if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then
16977   if test "x$with_expat" != "xno"; then
16978     ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_expat_h" = xyes
16980 then :
16981   printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h
16982
16983 fi
16984
16985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16986 printf %s "checking for XML_ParserCreate in -lexpat... " >&6; }
16987 if test ${ac_cv_lib_expat_XML_ParserCreate+y}
16988 then :
16989   printf %s "(cached) " >&6
16990 else $as_nop
16991   ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lexpat  $LIBS"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h.  */
16995
16996 /* Override any GCC internal prototype to avoid an error.
16997    Use char because int might match the return type of a GCC
16998    builtin and then its argument prototype would still apply.  */
16999 char XML_ParserCreate ();
17000 int
17001 main (void)
17002 {
17003 return XML_ParserCreate ();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 if ac_fn_c_try_link "$LINENO"
17009 then :
17010   ac_cv_lib_expat_XML_ParserCreate=yes
17011 else $as_nop
17012   ac_cv_lib_expat_XML_ParserCreate=no
17013 fi
17014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17015     conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_check_lib_save_LIBS
17017 fi
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
17019 printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
17020 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes
17021 then :
17022   printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h
17023
17024   LIBS="-lexpat $LIBS"
17025
17026 fi
17027
17028   fi
17029 fi
17030
17031 # Check whether --enable-posix-regex-lib was given.
17032 if test ${enable_posix_regex_lib+y}
17033 then :
17034   enableval=$enable_posix_regex_lib;
17035 else $as_nop
17036   enable_posix_regex_lib=auto
17037 fi
17038
17039
17040 posix_regex_lib_found=
17041 if test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libc" || test "$enable_posix_regex_lib" = "libregex"; then
17042   ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17043 if test "x$ac_cv_header_regex_h" = xyes
17044 then :
17045   printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
17046
17047 fi
17048
17049   if test "x$ac_cv_header_regex_h" != "xno"; then
17050     ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
17051 if test "x$ac_cv_func_regcomp" = xyes
17052 then :
17053
17054 fi
17055
17056     if test "x$ac_cv_func_regcomp" = xyes; then
17057       posix_regex_lib_found=1
17058     else
17059       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
17060 printf %s "checking for regcomp in -lregex... " >&6; }
17061 if test ${ac_cv_lib_regex_regcomp+y}
17062 then :
17063   printf %s "(cached) " >&6
17064 else $as_nop
17065   ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-lregex  $LIBS"
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h.  */
17069
17070 /* Override any GCC internal prototype to avoid an error.
17071    Use char because int might match the return type of a GCC
17072    builtin and then its argument prototype would still apply.  */
17073 char regcomp ();
17074 int
17075 main (void)
17076 {
17077 return regcomp ();
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 if ac_fn_c_try_link "$LINENO"
17083 then :
17084   ac_cv_lib_regex_regcomp=yes
17085 else $as_nop
17086   ac_cv_lib_regex_regcomp=no
17087 fi
17088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17089     conftest$ac_exeext conftest.$ac_ext
17090 LIBS=$ac_check_lib_save_LIBS
17091 fi
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
17093 printf "%s\n" "$ac_cv_lib_regex_regcomp" >&6; }
17094 if test "x$ac_cv_lib_regex_regcomp" = xyes
17095 then :
17096   printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
17097
17098   LIBS="-lregex $LIBS"
17099
17100 fi
17101
17102       if test "x$ac_cv_lib_regex_regcomp" = xyes; then
17103         posix_regex_lib_found=1
17104       fi
17105     fi
17106   fi
17107 fi
17108 if test -z $posix_regex_lib_found && (test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libpcreposix"); then
17109   ac_fn_c_check_header_compile "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17110 if test "x$ac_cv_header_pcreposix_h" = xyes
17111 then :
17112   printf "%s\n" "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
17113
17114 fi
17115
17116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
17117 printf %s "checking for regcomp in -lpcreposix... " >&6; }
17118 if test ${ac_cv_lib_pcreposix_regcomp+y}
17119 then :
17120   printf %s "(cached) " >&6
17121 else $as_nop
17122   ac_check_lib_save_LIBS=$LIBS
17123 LIBS="-lpcreposix  $LIBS"
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h.  */
17126
17127 /* Override any GCC internal prototype to avoid an error.
17128    Use char because int might match the return type of a GCC
17129    builtin and then its argument prototype would still apply.  */
17130 char regcomp ();
17131 int
17132 main (void)
17133 {
17134 return regcomp ();
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_link "$LINENO"
17140 then :
17141   ac_cv_lib_pcreposix_regcomp=yes
17142 else $as_nop
17143   ac_cv_lib_pcreposix_regcomp=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17146     conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17148 fi
17149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
17150 printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
17151 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
17152 then :
17153   printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
17154
17155   LIBS="-lpcreposix $LIBS"
17156
17157 fi
17158
17159   if test "x$ac_cv_lib_pcreposix_regcomp" != xyes; then
17160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying libpcreposix check again with libpcre" >&5
17161 printf "%s\n" "$as_me: trying libpcreposix check again with libpcre" >&6;}
17162         unset ac_cv_lib_pcreposix_regcomp
17163         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
17164 printf %s "checking for pcre_exec in -lpcre... " >&6; }
17165 if test ${ac_cv_lib_pcre_pcre_exec+y}
17166 then :
17167   printf %s "(cached) " >&6
17168 else $as_nop
17169   ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lpcre  $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h.  */
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175    Use char because int might match the return type of a GCC
17176    builtin and then its argument prototype would still apply.  */
17177 char pcre_exec ();
17178 int
17179 main (void)
17180 {
17181 return pcre_exec ();
17182   ;
17183   return 0;
17184 }
17185 _ACEOF
17186 if ac_fn_c_try_link "$LINENO"
17187 then :
17188   ac_cv_lib_pcre_pcre_exec=yes
17189 else $as_nop
17190   ac_cv_lib_pcre_pcre_exec=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193     conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17195 fi
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
17197 printf "%s\n" "$ac_cv_lib_pcre_pcre_exec" >&6; }
17198 if test "x$ac_cv_lib_pcre_pcre_exec" = xyes
17199 then :
17200   printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h
17201
17202   LIBS="-lpcre $LIBS"
17203
17204 fi
17205
17206     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
17207 printf %s "checking for regcomp in -lpcreposix... " >&6; }
17208 if test ${ac_cv_lib_pcreposix_regcomp+y}
17209 then :
17210   printf %s "(cached) " >&6
17211 else $as_nop
17212   ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lpcreposix  $LIBS"
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h.  */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 char regcomp ();
17221 int
17222 main (void)
17223 {
17224 return regcomp ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 if ac_fn_c_try_link "$LINENO"
17230 then :
17231   ac_cv_lib_pcreposix_regcomp=yes
17232 else $as_nop
17233   ac_cv_lib_pcreposix_regcomp=no
17234 fi
17235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17236     conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17238 fi
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
17240 printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
17241 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
17242 then :
17243   printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
17244
17245   LIBS="-lpcreposix $LIBS"
17246
17247 fi
17248
17249     if test "x$ac_cv_lib_pcre_pcre_exec" = xyes && test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then
17250       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE_STATIC needs to be defined" >&5
17251 printf %s "checking if PCRE_STATIC needs to be defined... " >&6; }
17252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h.  */
17254 #include <pcreposix.h>
17255           int main() { return regcomp(NULL, NULL, 0); }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"
17258 then :
17259   without_pcre_static=yes
17260 else $as_nop
17261   without_pcre_static=no
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17264     conftest$ac_exeext conftest.$ac_ext
17265       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h.  */
17267 #define PCRE_STATIC
17268           #include <pcreposix.h>
17269           int main() { return regcomp(NULL, NULL, 0); }
17270 _ACEOF
17271 if ac_fn_c_try_link "$LINENO"
17272 then :
17273   with_pcre_static=yes
17274 else $as_nop
17275   with_pcre_static=no
17276 fi
17277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17278     conftest$ac_exeext conftest.$ac_ext
17279       if test "x$without_pcre_static" != xyes && test "x$with_pcre_static" = xyes; then
17280         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281 printf "%s\n" "yes" >&6; }
17282
17283 printf "%s\n" "#define PCRE_STATIC 1" >>confdefs.h
17284
17285       elif test "x$without_pcre_static" = xyes || test "x$with_pcre_static" = xyes; then
17286         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 printf "%s\n" "no" >&6; }
17288       fi
17289       posix_regex_lib_found=1
17290     fi
17291   else
17292     posix_regex_lib_found=1
17293   fi
17294 fi
17295
17296 # TODO: Give the user the option of using a pre-existing system
17297 # libarchive.  This will define HAVE_LIBARCHIVE which will cause
17298 # bsdtar_platform.h to use #include <...> for the libarchive headers.
17299 # Need to include Makefile.am magic to link against system
17300 # -larchive in that case.
17301 #AC_CHECK_LIB(archive,archive_version)
17302
17303 # Checks for supported compiler flags
17304
17305
17306
17307
17308 for flag in -Wall -Wformat -Wformat-security; do
17309   as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17311 printf %s "checking whether C compiler accepts $flag... " >&6; }
17312 if eval test \${$as_CACHEVAR+y}
17313 then :
17314   printf %s "(cached) " >&6
17315 else $as_nop
17316
17317   ax_check_save_flags=$CFLAGS
17318   CFLAGS="$CFLAGS  $flag"
17319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h.  */
17321
17322 int
17323 main (void)
17324 {
17325
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"
17331 then :
17332   eval "$as_CACHEVAR=yes"
17333 else $as_nop
17334   eval "$as_CACHEVAR=no"
17335 fi
17336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17337   CFLAGS=$ax_check_save_flags
17338 fi
17339 eval ac_res=\$$as_CACHEVAR
17340                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17341 printf "%s\n" "$ac_res" >&6; }
17342 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17343 then :
17344
17345 if test ${CFLAGS+y}
17346 then :
17347
17348   case " $CFLAGS " in #(
17349   *" $flag "*) :
17350     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17351   (: CFLAGS already contains $flag) 2>&5
17352   ac_status=$?
17353   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354   test $ac_status = 0; } ;; #(
17355   *) :
17356
17357      as_fn_append CFLAGS " $flag"
17358      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17359   (: CFLAGS="$CFLAGS") 2>&5
17360   ac_status=$?
17361   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362   test $ac_status = 0; }
17363      ;;
17364 esac
17365
17366 else $as_nop
17367
17368   CFLAGS=$flag
17369   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17370   (: CFLAGS="$CFLAGS") 2>&5
17371   ac_status=$?
17372   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17373   test $ac_status = 0; }
17374
17375 fi
17376
17377 else $as_nop
17378   :
17379 fi
17380
17381 done
17382
17383
17384 # Place the functions and data into separate sections, allowing the linker
17385 # to garbage collect the unused ones.
17386 save_LDFLAGS=$LDFLAGS
17387 LDFLAGS="$LDFLAGS -Wl,--gc-sections"
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports --gc-sections" >&5
17389 printf %s "checking whether ld supports --gc-sections... " >&6; }
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h.  */
17392 static char UnusedFunc() { return 5; } int main() { return 0;}
17393 _ACEOF
17394 if ac_fn_c_try_link "$LINENO"
17395 then :
17396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17397 printf "%s\n" "yes" >&6; }
17398         GC_SECTIONS="-Wl,--gc-sections";
17399
17400
17401
17402
17403 for flag in -ffunction-sections -fdata-sections; do
17404   as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17406 printf %s "checking whether C compiler accepts $flag... " >&6; }
17407 if eval test \${$as_CACHEVAR+y}
17408 then :
17409   printf %s "(cached) " >&6
17410 else $as_nop
17411
17412   ax_check_save_flags=$CFLAGS
17413   CFLAGS="$CFLAGS  $flag"
17414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h.  */
17416
17417 int
17418 main (void)
17419 {
17420
17421   ;
17422   return 0;
17423 }
17424 _ACEOF
17425 if ac_fn_c_try_compile "$LINENO"
17426 then :
17427   eval "$as_CACHEVAR=yes"
17428 else $as_nop
17429   eval "$as_CACHEVAR=no"
17430 fi
17431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17432   CFLAGS=$ax_check_save_flags
17433 fi
17434 eval ac_res=\$$as_CACHEVAR
17435                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17436 printf "%s\n" "$ac_res" >&6; }
17437 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17438 then :
17439
17440 if test ${CFLAGS+y}
17441 then :
17442
17443   case " $CFLAGS " in #(
17444   *" $flag "*) :
17445     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17446   (: CFLAGS already contains $flag) 2>&5
17447   ac_status=$?
17448   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17449   test $ac_status = 0; } ;; #(
17450   *) :
17451
17452      as_fn_append CFLAGS " $flag"
17453      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17454   (: CFLAGS="$CFLAGS") 2>&5
17455   ac_status=$?
17456   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457   test $ac_status = 0; }
17458      ;;
17459 esac
17460
17461 else $as_nop
17462
17463   CFLAGS=$flag
17464   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17465   (: CFLAGS="$CFLAGS") 2>&5
17466   ac_status=$?
17467   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468   test $ac_status = 0; }
17469
17470 fi
17471
17472 else $as_nop
17473   :
17474 fi
17475
17476 done
17477
17478 else $as_nop
17479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17480 printf "%s\n" "no" >&6; }
17481         GC_SECTIONS="";
17482 fi
17483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17484     conftest$ac_exeext conftest.$ac_ext
17485 LDFLAGS=$save_LDFLAGS
17486
17487
17488
17489 # Checks for typedefs, structures, and compiler characteristics.
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17491 printf %s "checking for an ANSI C-conforming const... " >&6; }
17492 if test ${ac_cv_c_const+y}
17493 then :
17494   printf %s "(cached) " >&6
17495 else $as_nop
17496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h.  */
17498
17499 int
17500 main (void)
17501 {
17502
17503 #ifndef __cplusplus
17504   /* Ultrix mips cc rejects this sort of thing.  */
17505   typedef int charset[2];
17506   const charset cs = { 0, 0 };
17507   /* SunOS 4.1.1 cc rejects this.  */
17508   char const *const *pcpcc;
17509   char **ppc;
17510   /* NEC SVR4.0.2 mips cc rejects this.  */
17511   struct point {int x, y;};
17512   static struct point const zero = {0,0};
17513   /* IBM XL C 1.02.0.0 rejects this.
17514      It does not let you subtract one const X* pointer from another in
17515      an arm of an if-expression whose if-part is not a constant
17516      expression */
17517   const char *g = "string";
17518   pcpcc = &g + (g ? g-g : 0);
17519   /* HPUX 7.0 cc rejects these. */
17520   ++pcpcc;
17521   ppc = (char**) pcpcc;
17522   pcpcc = (char const *const *) ppc;
17523   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17524     char tx;
17525     char *t = &tx;
17526     char const *s = 0 ? (char *) 0 : (char const *) 0;
17527
17528     *t++ = 0;
17529     if (s) return 0;
17530   }
17531   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17532     int x[] = {25, 17};
17533     const int *foo = &x[0];
17534     ++foo;
17535   }
17536   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17537     typedef const int *iptr;
17538     iptr p = 0;
17539     ++p;
17540   }
17541   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17542        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17543     struct s { int j; const int *ap[3]; } bx;
17544     struct s *b = &bx; b->j = 5;
17545   }
17546   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17547     const int foo = 10;
17548     if (!foo) return 0;
17549   }
17550   return !cs[0] && !zero.x;
17551 #endif
17552
17553   ;
17554   return 0;
17555 }
17556 _ACEOF
17557 if ac_fn_c_try_compile "$LINENO"
17558 then :
17559   ac_cv_c_const=yes
17560 else $as_nop
17561   ac_cv_c_const=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17564 fi
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17566 printf "%s\n" "$ac_cv_c_const" >&6; }
17567 if test $ac_cv_c_const = no; then
17568
17569 printf "%s\n" "#define const /**/" >>confdefs.h
17570
17571 fi
17572
17573 # la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
17574 # and MSVC. Use a customized version.
17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17576 printf %s "checking for uid_t in sys/types.h... " >&6; }
17577 if test ${la_cv_type_uid_t+y}
17578 then :
17579   printf %s "(cached) " >&6
17580 else $as_nop
17581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h.  */
17583 #include <sys/types.h>
17584
17585 _ACEOF
17586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17587   $EGREP "uid_t" >/dev/null 2>&1
17588 then :
17589   la_cv_type_uid_t=yes
17590 else $as_nop
17591   la_cv_type_uid_t=no
17592 fi
17593 rm -rf conftest*
17594
17595 fi
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5
17597 printf "%s\n" "$la_cv_type_uid_t" >&6; }
17598 if test $la_cv_type_uid_t = no; then
17599   case $host in
17600     *mingw*) def_uid_t=short ;;
17601     *) def_uid_t=int ;;
17602   esac
17603
17604 printf "%s\n" "#define uid_t $def_uid_t" >>confdefs.h
17605
17606
17607 printf "%s\n" "#define gid_t $def_uid_t" >>confdefs.h
17608
17609 fi
17610
17611 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17612 if test "x$ac_cv_type_mode_t" = xyes
17613 then :
17614
17615 else $as_nop
17616
17617 printf "%s\n" "#define mode_t int" >>confdefs.h
17618
17619 fi
17620
17621 # AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
17622 # most systems... default to "long long" instead.
17623 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17624 if test "x$ac_cv_type_off_t" = xyes
17625 then :
17626
17627 else $as_nop
17628
17629 printf "%s\n" "#define off_t long long" >>confdefs.h
17630
17631 fi
17632
17633 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17634 if test "x$ac_cv_type_size_t" = xyes
17635 then :
17636
17637 else $as_nop
17638
17639 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17640
17641 fi
17642
17643 ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
17644 if test "x$ac_cv_type_id_t" = xyes
17645 then :
17646
17647 else $as_nop
17648
17649 printf "%s\n" "#define id_t unsigned long" >>confdefs.h
17650
17651 fi
17652
17653 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17654 if test "x$ac_cv_type_uintptr_t" = xyes
17655 then :
17656
17657 else $as_nop
17658
17659 printf "%s\n" "#define uintptr_t unsigned int" >>confdefs.h
17660
17661 fi
17662
17663
17664 # Check for tm_gmtoff in struct tm
17665 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
17666 #include <time.h>
17667
17668 "
17669 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
17670 then :
17671
17672 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
17673
17674
17675 fi
17676 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
17677 #include <time.h>
17678
17679 "
17680 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes
17681 then :
17682
17683 printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h
17684
17685
17686 fi
17687
17688
17689 # Check for f_namemax in struct statfs
17690 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "
17691 #include <sys/param.h>
17692 #include <sys/mount.h>
17693
17694 "
17695 if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes
17696 then :
17697
17698 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_NAMEMAX 1" >>confdefs.h
17699
17700
17701 fi
17702
17703
17704 # Check for f_iosize in struct statfs
17705 ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "
17706 #include <sys/param.h>
17707 #include <sys/mount.h>
17708
17709 "
17710 if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes
17711 then :
17712
17713 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h
17714
17715
17716 fi
17717
17718
17719 # Check for f_iosize in struct statvfs
17720 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "
17721 #include <sys/statvfs.h>
17722
17723 "
17724 if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
17725 then :
17726
17727 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
17728
17729
17730 fi
17731
17732
17733 # Check for birthtime in struct stat
17734 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
17735 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
17736 then :
17737
17738 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
17739
17740
17741 fi
17742
17743
17744 # Check for high-resolution timestamps in struct stat
17745 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
17746 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
17747 then :
17748
17749 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
17750
17751
17752 fi
17753
17754 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
17755 if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
17756 then :
17757
17758 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
17759
17760
17761 fi
17762
17763 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
17764 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
17765 then :
17766
17767 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
17768
17769
17770 fi
17771
17772 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
17773 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes
17774 then :
17775
17776 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_N 1" >>confdefs.h
17777
17778
17779 fi
17780  # AIX
17781 ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
17782 if test "x$ac_cv_member_struct_stat_st_umtime" = xyes
17783 then :
17784
17785 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_UMTIME 1" >>confdefs.h
17786
17787
17788 fi
17789  # Tru64
17790 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
17791 if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes
17792 then :
17793
17794 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1" >>confdefs.h
17795
17796
17797 fi
17798  # Hurd
17799 # Check for block size support in struct stat
17800 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
17801 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
17802 then :
17803
17804 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
17805
17806
17807 fi
17808
17809 # Check for st_flags in struct stat (BSD fflags)
17810 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
17811 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
17812 then :
17813
17814 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
17815
17816
17817 fi
17818
17819
17820 # If you have uintmax_t, we assume printf supports %ju
17821 # If you have unsigned long long, we assume printf supports %llu
17822 # TODO: Check for %ju and %llu support directly.
17823 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17824 if test "x$ac_cv_type_uintmax_t" = xyes
17825 then :
17826
17827 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
17828
17829
17830 fi
17831 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17832 if test "x$ac_cv_type_unsigned_long_long" = xyes
17833 then :
17834
17835 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
17836
17837
17838 fi
17839
17840
17841 # We use C99-style integer types
17842 # Declare them if the local platform doesn't already do so.
17843
17844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17845 printf %s "checking for unsigned long long int... " >&6; }
17846 if test ${ac_cv_type_unsigned_long_long_int+y}
17847 then :
17848   printf %s "(cached) " >&6
17849 else $as_nop
17850   ac_cv_type_unsigned_long_long_int=yes
17851      case $ac_prog_cc_stdc in
17852        no | c89) ;;
17853        *)
17854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h.  */
17856
17857   /* For now, do not test the preprocessor; as of 2007 there are too many
17858          implementations with broken preprocessors.  Perhaps this can
17859          be revisited in 2012.  In the meantime, code should not expect
17860          #if to work with literals wider than 32 bits.  */
17861       /* Test literals.  */
17862       long long int ll = 9223372036854775807ll;
17863       long long int nll = -9223372036854775807LL;
17864       unsigned long long int ull = 18446744073709551615ULL;
17865       /* Test constant expressions.   */
17866       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17867                      ? 1 : -1)];
17868       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17869                      ? 1 : -1)];
17870       int i = 63;
17871 int
17872 main (void)
17873 {
17874 /* Test availability of runtime routines for shift and division.  */
17875       long long int llmax = 9223372036854775807ll;
17876       unsigned long long int ullmax = 18446744073709551615ull;
17877       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17878               | (llmax / ll) | (llmax % ll)
17879               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17880               | (ullmax / ull) | (ullmax % ull));
17881   ;
17882   return 0;
17883 }
17884
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"
17887 then :
17888
17889 else $as_nop
17890   ac_cv_type_unsigned_long_long_int=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893     conftest$ac_exeext conftest.$ac_ext;;
17894      esac
17895 fi
17896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17897 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
17898   if test $ac_cv_type_unsigned_long_long_int = yes; then
17899
17900 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17901
17902   fi
17903
17904
17905
17906   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17907 printf %s "checking for long long int... " >&6; }
17908 if test ${ac_cv_type_long_long_int+y}
17909 then :
17910   printf %s "(cached) " >&6
17911 else $as_nop
17912   ac_cv_type_long_long_int=yes
17913       case $ac_prog_cc_stdc in
17914         no | c89) ;;
17915         *)
17916           ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17917           if test $ac_cv_type_long_long_int = yes; then
17918                                     if test "$cross_compiling" = yes
17919 then :
17920   :
17921 else $as_nop
17922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h.  */
17924 #include <limits.h>
17925                    #ifndef LLONG_MAX
17926                    # define HALF \
17927                             (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17928                    # define LLONG_MAX (HALF - 1 + HALF)
17929                    #endif
17930 int
17931 main (void)
17932 {
17933 long long int n = 1;
17934                    int i;
17935                    for (i = 0; ; i++)
17936                      {
17937                        long long int m = n << i;
17938                        if (m >> i != n)
17939                          return 1;
17940                        if (LLONG_MAX / 2 < m)
17941                          break;
17942                      }
17943                    return 0;
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 if ac_fn_c_try_run "$LINENO"
17949 then :
17950
17951 else $as_nop
17952   ac_cv_type_long_long_int=no
17953 fi
17954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17955   conftest.$ac_objext conftest.beam conftest.$ac_ext
17956 fi
17957
17958           fi;;
17959       esac
17960 fi
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17962 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
17963   if test $ac_cv_type_long_long_int = yes; then
17964
17965 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17966
17967   fi
17968
17969
17970
17971   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17972 if test "x$ac_cv_type_intmax_t" = xyes
17973 then :
17974
17975 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
17976
17977 else $as_nop
17978   test $ac_cv_type_long_long_int = yes \
17979        && ac_type='long long int' \
17980        || ac_type='long int'
17981
17982 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
17983
17984 fi
17985
17986
17987
17988
17989   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17990 if test "x$ac_cv_type_uintmax_t" = xyes
17991 then :
17992
17993 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
17994
17995 else $as_nop
17996   test $ac_cv_type_unsigned_long_long_int = yes \
17997        && ac_type='unsigned long long int' \
17998        || ac_type='unsigned long int'
17999
18000 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
18001
18002 fi
18003
18004
18005 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18006 case $ac_cv_c_int64_t in #(
18007   no|yes) ;; #(
18008   *)
18009
18010 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18011 ;;
18012 esac
18013
18014 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18015 case $ac_cv_c_uint64_t in #(
18016   no|yes) ;; #(
18017   *)
18018
18019 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
18020
18021
18022 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
18023 ;;
18024   esac
18025
18026 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18027 case $ac_cv_c_int32_t in #(
18028   no|yes) ;; #(
18029   *)
18030
18031 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18032 ;;
18033 esac
18034
18035 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18036 case $ac_cv_c_uint32_t in #(
18037   no|yes) ;; #(
18038   *)
18039
18040 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18041
18042
18043 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18044 ;;
18045   esac
18046
18047 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18048 case $ac_cv_c_int16_t in #(
18049   no|yes) ;; #(
18050   *)
18051
18052 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18053 ;;
18054 esac
18055
18056 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
18057 case $ac_cv_c_uint16_t in #(
18058   no|yes) ;; #(
18059   *)
18060
18061
18062 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
18063 ;;
18064   esac
18065
18066 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18067 case $ac_cv_c_uint8_t in #(
18068   no|yes) ;; #(
18069   *)
18070
18071 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
18072
18073
18074 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
18075 ;;
18076   esac
18077
18078
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18080 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18081 if test ${ac_cv_c_undeclared_builtin_options+y}
18082 then :
18083   printf %s "(cached) " >&6
18084 else $as_nop
18085   ac_save_CFLAGS=$CFLAGS
18086    ac_cv_c_undeclared_builtin_options='cannot detect'
18087    for ac_arg in '' -fno-builtin; do
18088      CFLAGS="$ac_save_CFLAGS $ac_arg"
18089      # This test program should *not* compile successfully.
18090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h.  */
18092
18093 int
18094 main (void)
18095 {
18096 (void) strchr;
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 if ac_fn_c_try_compile "$LINENO"
18102 then :
18103
18104 else $as_nop
18105   # This test program should compile successfully.
18106         # No library function is consistently available on
18107         # freestanding implementations, so test against a dummy
18108         # declaration.  Include always-available headers on the
18109         # off chance that they somehow elicit warnings.
18110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h.  */
18112 #include <float.h>
18113 #include <limits.h>
18114 #include <stdarg.h>
18115 #include <stddef.h>
18116 extern void ac_decl (int, char *);
18117
18118 int
18119 main (void)
18120 {
18121 (void) ac_decl (0, (char *) 0);
18122   (void) ac_decl;
18123
18124   ;
18125   return 0;
18126 }
18127 _ACEOF
18128 if ac_fn_c_try_compile "$LINENO"
18129 then :
18130   if test x"$ac_arg" = x
18131 then :
18132   ac_cv_c_undeclared_builtin_options='none needed'
18133 else $as_nop
18134   ac_cv_c_undeclared_builtin_options=$ac_arg
18135 fi
18136           break
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18141     done
18142     CFLAGS=$ac_save_CFLAGS
18143
18144 fi
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18146 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18147   case $ac_cv_c_undeclared_builtin_options in #(
18148   'cannot detect') :
18149     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18151 as_fn_error $? "cannot make $CC report undeclared builtins
18152 See \`config.log' for more details" "$LINENO" 5; } ;; #(
18153   'none needed') :
18154     ac_c_undeclared_builtin_options='' ;; #(
18155   *) :
18156     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18157 esac
18158
18159 ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18160 if test "x$ac_cv_have_decl_SIZE_MAX" = xyes
18161 then :
18162   ac_have_decl=1
18163 else $as_nop
18164   ac_have_decl=0
18165 fi
18166 printf "%s\n" "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h
18167 ac_fn_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18168 if test "x$ac_cv_have_decl_INT32_MAX" = xyes
18169 then :
18170   ac_have_decl=1
18171 else $as_nop
18172   ac_have_decl=0
18173 fi
18174 printf "%s\n" "#define HAVE_DECL_INT32_MAX $ac_have_decl" >>confdefs.h
18175 ac_fn_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18176 if test "x$ac_cv_have_decl_INT32_MIN" = xyes
18177 then :
18178   ac_have_decl=1
18179 else $as_nop
18180   ac_have_decl=0
18181 fi
18182 printf "%s\n" "#define HAVE_DECL_INT32_MIN $ac_have_decl" >>confdefs.h
18183
18184 ac_fn_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18185 if test "x$ac_cv_have_decl_INT64_MAX" = xyes
18186 then :
18187   ac_have_decl=1
18188 else $as_nop
18189   ac_have_decl=0
18190 fi
18191 printf "%s\n" "#define HAVE_DECL_INT64_MAX $ac_have_decl" >>confdefs.h
18192 ac_fn_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18193 if test "x$ac_cv_have_decl_INT64_MIN" = xyes
18194 then :
18195   ac_have_decl=1
18196 else $as_nop
18197   ac_have_decl=0
18198 fi
18199 printf "%s\n" "#define HAVE_DECL_INT64_MIN $ac_have_decl" >>confdefs.h
18200 ac_fn_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18201 if test "x$ac_cv_have_decl_UINT64_MAX" = xyes
18202 then :
18203   ac_have_decl=1
18204 else $as_nop
18205   ac_have_decl=0
18206 fi
18207 printf "%s\n" "#define HAVE_DECL_UINT64_MAX $ac_have_decl" >>confdefs.h
18208 ac_fn_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18209 if test "x$ac_cv_have_decl_UINT32_MAX" = xyes
18210 then :
18211   ac_have_decl=1
18212 else $as_nop
18213   ac_have_decl=0
18214 fi
18215 printf "%s\n" "#define HAVE_DECL_UINT32_MAX $ac_have_decl" >>confdefs.h
18216
18217 ac_fn_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18218 if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes
18219 then :
18220   ac_have_decl=1
18221 else $as_nop
18222   ac_have_decl=0
18223 fi
18224 printf "%s\n" "#define HAVE_DECL_INTMAX_MAX $ac_have_decl" >>confdefs.h
18225 ac_fn_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18226 if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes
18227 then :
18228   ac_have_decl=1
18229 else $as_nop
18230   ac_have_decl=0
18231 fi
18232 printf "%s\n" "#define HAVE_DECL_INTMAX_MIN $ac_have_decl" >>confdefs.h
18233 ac_fn_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18234 if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes
18235 then :
18236   ac_have_decl=1
18237 else $as_nop
18238   ac_have_decl=0
18239 fi
18240 printf "%s\n" "#define HAVE_DECL_UINTMAX_MAX $ac_have_decl" >>confdefs.h
18241
18242
18243 ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>
18244 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18245 if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes
18246 then :
18247
18248 printf "%s\n" "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h
18249
18250 fi
18251
18252 ac_fn_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
18253 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18254 if test "x$ac_cv_have_decl_EFTYPE" = xyes
18255 then :
18256
18257 printf "%s\n" "#define HAVE_EFTYPE 1" >>confdefs.h
18258
18259 fi
18260 ac_fn_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
18261 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18262 if test "x$ac_cv_have_decl_EILSEQ" = xyes
18263 then :
18264
18265 printf "%s\n" "#define HAVE_EILSEQ 1" >>confdefs.h
18266
18267 fi
18268 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18269 if test "x$ac_cv_type_wchar_t" = xyes
18270 then :
18271
18272 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
18273                 # The cast to long int works around a bug in the HP C Compiler
18274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18276 # This bug is HP SR number 8606223364.
18277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
18278 printf %s "checking size of wchar_t... " >&6; }
18279 if test ${ac_cv_sizeof_wchar_t+y}
18280 then :
18281   printf %s "(cached) " >&6
18282 else $as_nop
18283   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"
18284 then :
18285
18286 else $as_nop
18287   if test "$ac_cv_type_wchar_t" = yes; then
18288      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18289 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18290 as_fn_error 77 "cannot compute sizeof (wchar_t)
18291 See \`config.log' for more details" "$LINENO" 5; }
18292    else
18293      ac_cv_sizeof_wchar_t=0
18294    fi
18295 fi
18296
18297 fi
18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
18299 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
18300
18301
18302
18303 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
18304
18305
18306 fi
18307
18308
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18310 printf %s "checking size of int... " >&6; }
18311 if test ${ac_cv_sizeof_int+y}
18312 then :
18313   printf %s "(cached) " >&6
18314 else $as_nop
18315   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
18316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h.  */
18318
18319 #include <sys/types.h>
18320
18321
18322 int
18323 main (void)
18324 {
18325 switch (0) case 0: case (sizeof (int) == $ac_size):;
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 if ac_fn_c_try_compile "$LINENO"
18331 then :
18332   ac_cv_sizeof_int=$ac_size
18333 fi
18334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18335   if test x$ac_cv_sizeof_int != x ; then break; fi
18336 done
18337
18338 fi
18339
18340 if test x$ac_cv_sizeof_int = x ; then
18341   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
18342 fi
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18344 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
18345
18346 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
18347
18348
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18350 printf %s "checking size of long... " >&6; }
18351 if test ${ac_cv_sizeof_long+y}
18352 then :
18353   printf %s "(cached) " >&6
18354 else $as_nop
18355   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
18356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h.  */
18358
18359 #include <sys/types.h>
18360
18361
18362 int
18363 main (void)
18364 {
18365 switch (0) case 0: case (sizeof (long) == $ac_size):;
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 if ac_fn_c_try_compile "$LINENO"
18371 then :
18372   ac_cv_sizeof_long=$ac_size
18373 fi
18374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18375   if test x$ac_cv_sizeof_long != x ; then break; fi
18376 done
18377
18378 fi
18379
18380 if test x$ac_cv_sizeof_long = x ; then
18381   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
18382 fi
18383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18384 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
18385
18386 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
18387
18388
18389
18390
18391
18392 # Obsolete code to be removed.
18393 if test $ac_cv_header_sys_time_h = yes; then
18394
18395 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18396
18397 fi
18398 # End of obsolete code.
18399
18400
18401 # Checks for library functions.
18402 if test $ac_cv_c_compiler_gnu = yes; then
18403     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
18404 printf %s "checking whether $CC needs -traditional... " >&6; }
18405 if test ${ac_cv_prog_gcc_traditional+y}
18406 then :
18407   printf %s "(cached) " >&6
18408 else $as_nop
18409     ac_pattern="Autoconf.*'x'"
18410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h.  */
18412 #include <sgtty.h>
18413 Autoconf TIOCGETP
18414 _ACEOF
18415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18416   $EGREP "$ac_pattern" >/dev/null 2>&1
18417 then :
18418   ac_cv_prog_gcc_traditional=yes
18419 else $as_nop
18420   ac_cv_prog_gcc_traditional=no
18421 fi
18422 rm -rf conftest*
18423
18424
18425   if test $ac_cv_prog_gcc_traditional = no; then
18426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h.  */
18428 #include <termio.h>
18429 Autoconf TCGETA
18430 _ACEOF
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432   $EGREP "$ac_pattern" >/dev/null 2>&1
18433 then :
18434   ac_cv_prog_gcc_traditional=yes
18435 fi
18436 rm -rf conftest*
18437
18438   fi
18439 fi
18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
18441 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
18442   if test $ac_cv_prog_gcc_traditional = yes; then
18443     CC="$CC -traditional"
18444   fi
18445 fi
18446
18447
18448 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
18449 if test "x$ac_cv_header_sys_mkdev_h" = xyes
18450 then :
18451
18452 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
18453
18454 fi
18455
18456 if test $ac_cv_header_sys_mkdev_h = no; then
18457   ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
18458 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
18459 then :
18460
18461 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
18462
18463 fi
18464
18465 fi
18466
18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18468 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18469 if test ${ac_cv_sys_largefile_source+y}
18470 then :
18471   printf %s "(cached) " >&6
18472 else $as_nop
18473   while :; do
18474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h.  */
18476 #include <sys/types.h> /* for off_t */
18477      #include <stdio.h>
18478 int
18479 main (void)
18480 {
18481 int (*fp) (FILE *, off_t, int) = fseeko;
18482      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18483   ;
18484   return 0;
18485 }
18486 _ACEOF
18487 if ac_fn_c_try_link "$LINENO"
18488 then :
18489   ac_cv_sys_largefile_source=no; break
18490 fi
18491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18492     conftest$ac_exeext conftest.$ac_ext
18493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h.  */
18495 #define _LARGEFILE_SOURCE 1
18496 #include <sys/types.h> /* for off_t */
18497      #include <stdio.h>
18498 int
18499 main (void)
18500 {
18501 int (*fp) (FILE *, off_t, int) = fseeko;
18502      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 if ac_fn_c_try_link "$LINENO"
18508 then :
18509   ac_cv_sys_largefile_source=1; break
18510 fi
18511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18512     conftest$ac_exeext conftest.$ac_ext
18513   ac_cv_sys_largefile_source=unknown
18514   break
18515 done
18516 fi
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
18518 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
18519 case $ac_cv_sys_largefile_source in #(
18520   no | unknown) ;;
18521   *)
18522 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
18523 ;;
18524 esac
18525 rm -rf conftest*
18526
18527 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18528 # in glibc 2.1.3, but that breaks too many other things.
18529 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18530 if test $ac_cv_sys_largefile_source != unknown; then
18531
18532 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
18533
18534 fi
18535
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18537 printf %s "checking for working memcmp... " >&6; }
18538 if test ${ac_cv_func_memcmp_working+y}
18539 then :
18540   printf %s "(cached) " >&6
18541 else $as_nop
18542   if test "$cross_compiling" = yes
18543 then :
18544   ac_cv_func_memcmp_working=no
18545 else $as_nop
18546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h.  */
18548 $ac_includes_default
18549 int
18550 main (void)
18551 {
18552
18553   /* Some versions of memcmp are not 8-bit clean.  */
18554   char c0 = '\100', c1 = '\200', c2 = '\201';
18555   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18556     return 1;
18557
18558   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18559      or more and with at least one buffer not starting on a 4-byte boundary.
18560      William Lewis provided this test program.   */
18561   {
18562     char foo[21];
18563     char bar[21];
18564     int i;
18565     for (i = 0; i < 4; i++)
18566       {
18567         char *a = foo + i;
18568         char *b = bar + i;
18569         strcpy (a, "--------01111111");
18570         strcpy (b, "--------10000000");
18571         if (memcmp (a, b, 16) >= 0)
18572           return 1;
18573       }
18574     return 0;
18575   }
18576
18577   ;
18578   return 0;
18579 }
18580 _ACEOF
18581 if ac_fn_c_try_run "$LINENO"
18582 then :
18583   ac_cv_func_memcmp_working=yes
18584 else $as_nop
18585   ac_cv_func_memcmp_working=no
18586 fi
18587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18588   conftest.$ac_objext conftest.beam conftest.$ac_ext
18589 fi
18590
18591 fi
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18593 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
18594 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18595   *" memcmp.$ac_objext "* ) ;;
18596   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18597  ;;
18598 esac
18599
18600
18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18602 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
18603 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
18604 then :
18605   printf %s "(cached) " >&6
18606 else $as_nop
18607   rm -f conftest.sym conftest.file
18608 echo >conftest.file
18609 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18610   if test "$cross_compiling" = yes
18611 then :
18612   case "$host_os" in # ((
18613                            # Guess yes on glibc systems.
18614                    *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
18615                            # If we don't know, assume the worst.
18616                    *)      ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
18617                  esac
18618 else $as_nop
18619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h.  */
18621 $ac_includes_default
18622 int
18623 main (void)
18624 {
18625 struct stat sbuf;
18626      /* Linux will dereference the symlink and fail, as required by POSIX.
18627         That is better in the sense that it means we will not
18628         have to compile and use the lstat wrapper.  */
18629      return lstat ("conftest.sym/", &sbuf) == 0;
18630   ;
18631   return 0;
18632 }
18633 _ACEOF
18634 if ac_fn_c_try_run "$LINENO"
18635 then :
18636   ac_cv_func_lstat_dereferences_slashed_symlink=yes
18637 else $as_nop
18638   ac_cv_func_lstat_dereferences_slashed_symlink=no
18639 fi
18640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18641   conftest.$ac_objext conftest.beam conftest.$ac_ext
18642 fi
18643
18644 else
18645   # If the `ln -s' command failed, then we probably don't even
18646   # have an lstat function.
18647   ac_cv_func_lstat_dereferences_slashed_symlink=no
18648 fi
18649 rm -f conftest.sym conftest.file
18650
18651 fi
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18653 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18654
18655 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18656
18657 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
18658
18659
18660 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
18661   case " $LIBOBJS " in
18662   *" lstat.$ac_objext "* ) ;;
18663   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18664  ;;
18665 esac
18666
18667 fi
18668
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
18670 printf %s "checking whether lstat accepts an empty string... " >&6; }
18671 if test ${ac_cv_func_lstat_empty_string_bug+y}
18672 then :
18673   printf %s "(cached) " >&6
18674 else $as_nop
18675   if test "$cross_compiling" = yes
18676 then :
18677   ac_cv_func_lstat_empty_string_bug=yes
18678 else $as_nop
18679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h.  */
18681 $ac_includes_default
18682 int
18683 main (void)
18684 {
18685 struct stat sbuf;
18686   return lstat ("", &sbuf) == 0;
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 if ac_fn_c_try_run "$LINENO"
18692 then :
18693   ac_cv_func_lstat_empty_string_bug=no
18694 else $as_nop
18695   ac_cv_func_lstat_empty_string_bug=yes
18696 fi
18697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18698   conftest.$ac_objext conftest.beam conftest.$ac_ext
18699 fi
18700
18701 fi
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
18703 printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
18704 if test $ac_cv_func_lstat_empty_string_bug = yes; then
18705   case " $LIBOBJS " in
18706   *" lstat.$ac_objext "* ) ;;
18707   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18708  ;;
18709 esac
18710
18711
18712 printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
18713
18714 fi
18715
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
18717 printf %s "checking whether stat accepts an empty string... " >&6; }
18718 if test ${ac_cv_func_stat_empty_string_bug+y}
18719 then :
18720   printf %s "(cached) " >&6
18721 else $as_nop
18722   if test "$cross_compiling" = yes
18723 then :
18724   ac_cv_func_stat_empty_string_bug=yes
18725 else $as_nop
18726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h.  */
18728 $ac_includes_default
18729 int
18730 main (void)
18731 {
18732 struct stat sbuf;
18733   return stat ("", &sbuf) == 0;
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 if ac_fn_c_try_run "$LINENO"
18739 then :
18740   ac_cv_func_stat_empty_string_bug=no
18741 else $as_nop
18742   ac_cv_func_stat_empty_string_bug=yes
18743 fi
18744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18745   conftest.$ac_objext conftest.beam conftest.$ac_ext
18746 fi
18747
18748 fi
18749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
18750 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
18751 if test $ac_cv_func_stat_empty_string_bug = yes; then
18752   case " $LIBOBJS " in
18753   *" stat.$ac_objext "* ) ;;
18754   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
18755  ;;
18756 esac
18757
18758
18759 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
18760
18761 fi
18762
18763 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18764 if test "x$ac_cv_have_decl_strerror_r" = xyes
18765 then :
18766   ac_have_decl=1
18767 else $as_nop
18768   ac_have_decl=0
18769 fi
18770 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
18771
18772
18773 if test $ac_cv_have_decl_strerror_r = yes; then
18774   # For backward compatibility's sake, define HAVE_STRERROR_R.
18775   # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
18776   # as AC_CHECK_DECLS_ONCE.)
18777
18778 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18779
18780 fi
18781
18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18783 printf %s "checking whether strerror_r returns char *... " >&6; }
18784 if test ${ac_cv_func_strerror_r_char_p+y}
18785 then :
18786   printf %s "(cached) " >&6
18787 else $as_nop
18788
18789     ac_cv_func_strerror_r_char_p=no
18790     if test $ac_cv_have_decl_strerror_r = yes; then
18791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h.  */
18793 #include <string.h>
18794 int
18795 main (void)
18796 {
18797
18798           char buf[100];
18799           char x = *strerror_r (0, buf, sizeof buf);
18800           char *p = strerror_r (0, buf, sizeof buf);
18801           return !p || x;
18802
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 if ac_fn_c_try_compile "$LINENO"
18808 then :
18809   ac_cv_func_strerror_r_char_p=yes
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18812
18813     fi
18814
18815 fi
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18817 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
18818 if test $ac_cv_func_strerror_r_char_p = yes; then
18819
18820 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18821
18822 fi
18823
18824
18825   for ac_func in strftime
18826 do :
18827   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18828 if test "x$ac_cv_func_strftime" = xyes
18829 then :
18830   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18831
18832 else $as_nop
18833   # strftime is in -lintl on SCO UNIX.
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
18835 printf %s "checking for strftime in -lintl... " >&6; }
18836 if test ${ac_cv_lib_intl_strftime+y}
18837 then :
18838   printf %s "(cached) " >&6
18839 else $as_nop
18840   ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lintl  $LIBS"
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h.  */
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 char strftime ();
18849 int
18850 main (void)
18851 {
18852 return strftime ();
18853   ;
18854   return 0;
18855 }
18856 _ACEOF
18857 if ac_fn_c_try_link "$LINENO"
18858 then :
18859   ac_cv_lib_intl_strftime=yes
18860 else $as_nop
18861   ac_cv_lib_intl_strftime=no
18862 fi
18863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18864     conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18866 fi
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
18868 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
18869 if test "x$ac_cv_lib_intl_strftime" = xyes
18870 then :
18871   printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18872
18873 LIBS="-lintl $LIBS"
18874 fi
18875
18876 fi
18877
18878 done
18879 ac_func=
18880 for ac_item in $ac_func_c_list
18881 do
18882   if test $ac_func; then
18883     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18884     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18885       echo "#define $ac_item 1" >> confdefs.h
18886     fi
18887     ac_func=
18888   else
18889     ac_func=$ac_item
18890   fi
18891 done
18892
18893 if test "x$ac_cv_func_vprintf" = xno
18894 then :
18895   ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18896 if test "x$ac_cv_func__doprnt" = xyes
18897 then :
18898
18899 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18900
18901 fi
18902
18903 fi
18904 # check for:
18905 #   CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)
18906 # To avoid necessity for including windows.h or special forward declaration
18907 # workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5
18909 printf %s "checking for CreateHardLinkA... " >&6; }
18910 if test ${ac_cv_func_CreateHardLinkA+y}
18911 then :
18912   printf %s "(cached) " >&6
18913 else $as_nop
18914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h.  */
18916 /* System header to define __stub macros and hopefully few prototypes,
18917     which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below.  */
18918 #include <assert.h>
18919 /* Override any gcc2 internal prototype to avoid an error.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 /* We use char because int might match the return type of a gcc2
18924    builtin and then its argument prototype would still apply.  */
18925 char __stdcall CreateHardLinkA ( const char *, const char *, void * );
18926 char (*f) ( const char *, const char *, void * );
18927
18928 int
18929 main (void)
18930 {
18931 /* The GNU C library defines this for functions which it implements
18932     to always fail with ENOSYS.  Some functions are actually named
18933     something starting with __ and the normal name is an alias.  */
18934 #if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)
18935 choke me
18936 #else
18937 f = CreateHardLinkA;
18938 #endif
18939
18940   ;
18941   return 0;
18942 }
18943 _ACEOF
18944 if ac_fn_c_try_link "$LINENO"
18945 then :
18946   ac_cv_func_CreateHardLinkA=yes
18947 else $as_nop
18948   ac_cv_func_CreateHardLinkA=no
18949 fi
18950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18951     conftest$ac_exeext conftest.$ac_ext
18952 fi
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5
18954 printf "%s\n" "$ac_cv_func_CreateHardLinkA" >&6; }
18955 if test $ac_cv_func_CreateHardLinkA = yes
18956 then :
18957
18958 fi
18959 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
18960 if test "x$ac_cv_func_arc4random_buf" = xyes
18961 then :
18962   printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
18963
18964 fi
18965 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
18966 if test "x$ac_cv_func_chflags" = xyes
18967 then :
18968   printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
18969
18970 fi
18971 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
18972 if test "x$ac_cv_func_chown" = xyes
18973 then :
18974   printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
18975
18976 fi
18977 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
18978 if test "x$ac_cv_func_chroot" = xyes
18979 then :
18980   printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
18981
18982 fi
18983 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18984 if test "x$ac_cv_func_ctime_r" = xyes
18985 then :
18986   printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
18987
18988 fi
18989
18990 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
18991 if test "x$ac_cv_func_fchdir" = xyes
18992 then :
18993   printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
18994
18995 fi
18996 ac_fn_c_check_func "$LINENO" "fchflags" "ac_cv_func_fchflags"
18997 if test "x$ac_cv_func_fchflags" = xyes
18998 then :
18999   printf "%s\n" "#define HAVE_FCHFLAGS 1" >>confdefs.h
19000
19001 fi
19002 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
19003 if test "x$ac_cv_func_fchmod" = xyes
19004 then :
19005   printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
19006
19007 fi
19008 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19009 if test "x$ac_cv_func_fchown" = xyes
19010 then :
19011   printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
19012
19013 fi
19014 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
19015 if test "x$ac_cv_func_fcntl" = xyes
19016 then :
19017   printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
19018
19019 fi
19020 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
19021 if test "x$ac_cv_func_fdopendir" = xyes
19022 then :
19023   printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
19024
19025 fi
19026 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19027 if test "x$ac_cv_func_fork" = xyes
19028 then :
19029   printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
19030
19031 fi
19032
19033 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
19034 if test "x$ac_cv_func_fstat" = xyes
19035 then :
19036   printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
19037
19038 fi
19039 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
19040 if test "x$ac_cv_func_fstatat" = xyes
19041 then :
19042   printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
19043
19044 fi
19045 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
19046 if test "x$ac_cv_func_fstatfs" = xyes
19047 then :
19048   printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
19049
19050 fi
19051 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
19052 if test "x$ac_cv_func_fstatvfs" = xyes
19053 then :
19054   printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
19055
19056 fi
19057 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
19058 if test "x$ac_cv_func_ftruncate" = xyes
19059 then :
19060   printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
19061
19062 fi
19063
19064 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
19065 if test "x$ac_cv_func_futimens" = xyes
19066 then :
19067   printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
19068
19069 fi
19070 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
19071 if test "x$ac_cv_func_futimes" = xyes
19072 then :
19073   printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
19074
19075 fi
19076 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
19077 if test "x$ac_cv_func_futimesat" = xyes
19078 then :
19079   printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
19080
19081 fi
19082
19083 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19084 if test "x$ac_cv_func_geteuid" = xyes
19085 then :
19086   printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
19087
19088 fi
19089 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
19090 if test "x$ac_cv_func_getpid" = xyes
19091 then :
19092   printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
19093
19094 fi
19095 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
19096 if test "x$ac_cv_func_getgrgid_r" = xyes
19097 then :
19098   printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
19099
19100 fi
19101 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
19102 if test "x$ac_cv_func_getgrnam_r" = xyes
19103 then :
19104   printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
19105
19106 fi
19107
19108 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
19109 if test "x$ac_cv_func_getpwnam_r" = xyes
19110 then :
19111   printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
19112
19113 fi
19114 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
19115 if test "x$ac_cv_func_getpwuid_r" = xyes
19116 then :
19117   printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
19118
19119 fi
19120 ac_fn_c_check_func "$LINENO" "getvfsbyname" "ac_cv_func_getvfsbyname"
19121 if test "x$ac_cv_func_getvfsbyname" = xyes
19122 then :
19123   printf "%s\n" "#define HAVE_GETVFSBYNAME 1" >>confdefs.h
19124
19125 fi
19126 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19127 if test "x$ac_cv_func_gmtime_r" = xyes
19128 then :
19129   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
19130
19131 fi
19132
19133 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
19134 if test "x$ac_cv_func_lchflags" = xyes
19135 then :
19136   printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
19137
19138 fi
19139 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
19140 if test "x$ac_cv_func_lchmod" = xyes
19141 then :
19142   printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
19143
19144 fi
19145 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
19146 if test "x$ac_cv_func_lchown" = xyes
19147 then :
19148   printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
19149
19150 fi
19151 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
19152 if test "x$ac_cv_func_link" = xyes
19153 then :
19154   printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19155
19156 fi
19157 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
19158 if test "x$ac_cv_func_linkat" = xyes
19159 then :
19160   printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
19161
19162 fi
19163 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19164 if test "x$ac_cv_func_localtime_r" = xyes
19165 then :
19166   printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
19167
19168 fi
19169 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19170 if test "x$ac_cv_func_lstat" = xyes
19171 then :
19172   printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
19173
19174 fi
19175 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
19176 if test "x$ac_cv_func_lutimes" = xyes
19177 then :
19178   printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
19179
19180 fi
19181
19182 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
19183 if test "x$ac_cv_func_mbrtowc" = xyes
19184 then :
19185   printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
19186
19187 fi
19188 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19189 if test "x$ac_cv_func_memmove" = xyes
19190 then :
19191   printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
19192
19193 fi
19194 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
19195 if test "x$ac_cv_func_memset" = xyes
19196 then :
19197   printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
19198
19199 fi
19200
19201 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19202 if test "x$ac_cv_func_mkdir" = xyes
19203 then :
19204   printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
19205
19206 fi
19207 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
19208 if test "x$ac_cv_func_mkfifo" = xyes
19209 then :
19210   printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
19211
19212 fi
19213 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
19214 if test "x$ac_cv_func_mknod" = xyes
19215 then :
19216   printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
19217
19218 fi
19219 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19220 if test "x$ac_cv_func_mkstemp" = xyes
19221 then :
19222   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
19223
19224 fi
19225
19226 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
19227 if test "x$ac_cv_func_nl_langinfo" = xyes
19228 then :
19229   printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
19230
19231 fi
19232 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
19233 if test "x$ac_cv_func_openat" = xyes
19234 then :
19235   printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
19236
19237 fi
19238 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
19239 if test "x$ac_cv_func_pipe" = xyes
19240 then :
19241   printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
19242
19243 fi
19244 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19245 if test "x$ac_cv_func_poll" = xyes
19246 then :
19247   printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
19248
19249 fi
19250 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
19251 if test "x$ac_cv_func_posix_spawnp" = xyes
19252 then :
19253   printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
19254
19255 fi
19256 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
19257 if test "x$ac_cv_func_readlink" = xyes
19258 then :
19259   printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
19260
19261 fi
19262 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
19263 if test "x$ac_cv_func_readlinkat" = xyes
19264 then :
19265   printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
19266
19267 fi
19268
19269 ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"
19270 if test "x$ac_cv_func_readpassphrase" = xyes
19271 then :
19272   printf "%s\n" "#define HAVE_READPASSPHRASE 1" >>confdefs.h
19273
19274 fi
19275
19276 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
19277 if test "x$ac_cv_func_select" = xyes
19278 then :
19279   printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
19280
19281 fi
19282 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19283 if test "x$ac_cv_func_setenv" = xyes
19284 then :
19285   printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
19286
19287 fi
19288 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19289 if test "x$ac_cv_func_setlocale" = xyes
19290 then :
19291   printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
19292
19293 fi
19294 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
19295 if test "x$ac_cv_func_sigaction" = xyes
19296 then :
19297   printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
19298
19299 fi
19300 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
19301 if test "x$ac_cv_func_statfs" = xyes
19302 then :
19303   printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
19304
19305 fi
19306 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
19307 if test "x$ac_cv_func_statvfs" = xyes
19308 then :
19309   printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
19310
19311 fi
19312
19313 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
19314 if test "x$ac_cv_func_strchr" = xyes
19315 then :
19316   printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
19317
19318 fi
19319 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19320 if test "x$ac_cv_func_strdup" = xyes
19321 then :
19322   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
19323
19324 fi
19325 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19326 if test "x$ac_cv_func_strerror" = xyes
19327 then :
19328   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
19329
19330 fi
19331 ac_fn_c_check_func "$LINENO" "strncpy_s" "ac_cv_func_strncpy_s"
19332 if test "x$ac_cv_func_strncpy_s" = xyes
19333 then :
19334   printf "%s\n" "#define HAVE_STRNCPY_S 1" >>confdefs.h
19335
19336 fi
19337 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
19338 if test "x$ac_cv_func_strnlen" = xyes
19339 then :
19340   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
19341
19342 fi
19343 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
19344 if test "x$ac_cv_func_strrchr" = xyes
19345 then :
19346   printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
19347
19348 fi
19349 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
19350 if test "x$ac_cv_func_symlink" = xyes
19351 then :
19352   printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19353
19354 fi
19355
19356 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19357 if test "x$ac_cv_func_timegm" = xyes
19358 then :
19359   printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19360
19361 fi
19362 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
19363 if test "x$ac_cv_func_tzset" = xyes
19364 then :
19365   printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
19366
19367 fi
19368 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
19369 if test "x$ac_cv_func_unlinkat" = xyes
19370 then :
19371   printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
19372
19373 fi
19374 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
19375 if test "x$ac_cv_func_unsetenv" = xyes
19376 then :
19377   printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
19378
19379 fi
19380 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
19381 if test "x$ac_cv_func_utime" = xyes
19382 then :
19383   printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
19384
19385 fi
19386 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
19387 if test "x$ac_cv_func_utimensat" = xyes
19388 then :
19389   printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
19390
19391 fi
19392 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
19393 if test "x$ac_cv_func_utimes" = xyes
19394 then :
19395   printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
19396
19397 fi
19398 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
19399 if test "x$ac_cv_func_vfork" = xyes
19400 then :
19401   printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
19402
19403 fi
19404
19405 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
19406 if test "x$ac_cv_func_wcrtomb" = xyes
19407 then :
19408   printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
19409
19410 fi
19411 ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
19412 if test "x$ac_cv_func_wcscmp" = xyes
19413 then :
19414   printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
19415
19416 fi
19417 ac_fn_c_check_func "$LINENO" "wcscpy" "ac_cv_func_wcscpy"
19418 if test "x$ac_cv_func_wcscpy" = xyes
19419 then :
19420   printf "%s\n" "#define HAVE_WCSCPY 1" >>confdefs.h
19421
19422 fi
19423 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
19424 if test "x$ac_cv_func_wcslen" = xyes
19425 then :
19426   printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
19427
19428 fi
19429 ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"
19430 if test "x$ac_cv_func_wctomb" = xyes
19431 then :
19432   printf "%s\n" "#define HAVE_WCTOMB 1" >>confdefs.h
19433
19434 fi
19435 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
19436 if test "x$ac_cv_func_wmemcmp" = xyes
19437 then :
19438   printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
19439
19440 fi
19441 ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"
19442 if test "x$ac_cv_func_wmemcpy" = xyes
19443 then :
19444   printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h
19445
19446 fi
19447 ac_fn_c_check_func "$LINENO" "wmemmove" "ac_cv_func_wmemmove"
19448 if test "x$ac_cv_func_wmemmove" = xyes
19449 then :
19450   printf "%s\n" "#define HAVE_WMEMMOVE 1" >>confdefs.h
19451
19452 fi
19453
19454 ac_fn_c_check_func "$LINENO" "_ctime64_s" "ac_cv_func__ctime64_s"
19455 if test "x$ac_cv_func__ctime64_s" = xyes
19456 then :
19457   printf "%s\n" "#define HAVE__CTIME64_S 1" >>confdefs.h
19458
19459 fi
19460 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
19461 if test "x$ac_cv_func__fseeki64" = xyes
19462 then :
19463   printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
19464
19465 fi
19466
19467 ac_fn_c_check_func "$LINENO" "_get_timezone" "ac_cv_func__get_timezone"
19468 if test "x$ac_cv_func__get_timezone" = xyes
19469 then :
19470   printf "%s\n" "#define HAVE__GET_TIMEZONE 1" >>confdefs.h
19471
19472 fi
19473 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
19474 if test "x$ac_cv_func__gmtime64_s" = xyes
19475 then :
19476   printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h
19477
19478 fi
19479 ac_fn_c_check_func "$LINENO" "_localtime64_s" "ac_cv_func__localtime64_s"
19480 if test "x$ac_cv_func__localtime64_s" = xyes
19481 then :
19482   printf "%s\n" "#define HAVE__LOCALTIME64_S 1" >>confdefs.h
19483
19484 fi
19485 ac_fn_c_check_func "$LINENO" "_mkgmtime64" "ac_cv_func__mkgmtime64"
19486 if test "x$ac_cv_func__mkgmtime64" = xyes
19487 then :
19488   printf "%s\n" "#define HAVE__MKGMTIME64 1" >>confdefs.h
19489
19490 fi
19491
19492 # detects cygwin-1.7, as opposed to older versions
19493 ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
19494 if test "x$ac_cv_func_cygwin_conv_path" = xyes
19495 then :
19496   printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h
19497
19498 fi
19499
19500
19501 # DragonFly uses vfsconf, FreeBSD xvfsconf.
19502 ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H
19503         #include <sys/types.h>
19504         #endif
19505         #include <sys/mount.h>
19506
19507 "
19508 if test "x$ac_cv_type_struct_vfsconf" = xyes
19509 then :
19510
19511 printf "%s\n" "#define HAVE_STRUCT_VFSCONF 1" >>confdefs.h
19512
19513
19514 fi
19515
19516
19517 ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H
19518         #include <sys/types.h>
19519         #endif
19520         #include <sys/mount.h>
19521
19522 "
19523 if test "x$ac_cv_type_struct_xvfsconf" = xyes
19524 then :
19525
19526 printf "%s\n" "#define HAVE_STRUCT_XVFSCONF 1" >>confdefs.h
19527
19528
19529 fi
19530
19531
19532 ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H
19533         #include <sys/types.h>
19534         #endif
19535         #include <sys/mount.h>
19536
19537 "
19538 if test "x$ac_cv_type_struct_statfs" = xyes
19539 then :
19540
19541 printf "%s\n" "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
19542
19543
19544 fi
19545
19546
19547 # There are several variants of readdir_r around; we only
19548 # accept the POSIX-compliant version.
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h.  */
19551 #include <dirent.h>
19552 int
19553 main (void)
19554 {
19555 DIR *dir; struct dirent e, *r;
19556                     return(readdir_r(dir, &e, &r));
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 if ac_fn_c_try_link "$LINENO"
19562 then :
19563
19564 printf "%s\n" "#define HAVE_READDIR_R 1" >>confdefs.h
19565
19566
19567 fi
19568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19569     conftest$ac_exeext conftest.$ac_ext
19570 # dirfd can be either a function or a macro.
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h.  */
19573 #include <dirent.h>
19574                     DIR *dir;
19575 int
19576 main (void)
19577 {
19578 return(dirfd(dir));
19579   ;
19580   return 0;
19581 }
19582 _ACEOF
19583 if ac_fn_c_try_link "$LINENO"
19584 then :
19585
19586 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19587
19588
19589 fi
19590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19591     conftest$ac_exeext conftest.$ac_ext
19592
19593 # FreeBSD's nl_langinfo supports an option to specify whether the
19594 # current locale uses month/day or day/month ordering.  It makes the
19595 # output a little prettier...
19596 ac_fn_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
19597 #include <langinfo.h>
19598 #endif
19599
19600 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19601 if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes
19602 then :
19603
19604 printf "%s\n" "#define HAVE_D_MD_ORDER 1" >>confdefs.h
19605
19606 fi
19607
19608 # Check for dirent.d_namlen field explicitly
19609 # (This is a bit more straightforward than, if not quite as portable as,
19610 # the recipe given by the autoconf maintainers.)
19611 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
19612 #include <dirent.h>
19613 #endif
19614
19615 "
19616 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
19617 then :
19618
19619 fi
19620
19621
19622 # Check for Extended Attributes support
19623 # Check whether --enable-xattr was given.
19624 if test ${enable_xattr+y}
19625 then :
19626   enableval=$enable_xattr;
19627 fi
19628
19629
19630 if test "x$enable_xattr" != "xno"; then
19631     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5
19632 printf %s "checking for library containing setxattr... " >&6; }
19633 if test ${ac_cv_search_setxattr+y}
19634 then :
19635   printf %s "(cached) " >&6
19636 else $as_nop
19637   ac_func_search_save_LIBS=$LIBS
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h.  */
19640
19641 /* Override any GCC internal prototype to avoid an error.
19642    Use char because int might match the return type of a GCC
19643    builtin and then its argument prototype would still apply.  */
19644 char setxattr ();
19645 int
19646 main (void)
19647 {
19648 return setxattr ();
19649   ;
19650   return 0;
19651 }
19652 _ACEOF
19653 for ac_lib in '' attr gnu
19654 do
19655   if test -z "$ac_lib"; then
19656     ac_res="none required"
19657   else
19658     ac_res=-l$ac_lib
19659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19660   fi
19661   if ac_fn_c_try_link "$LINENO"
19662 then :
19663   ac_cv_search_setxattr=$ac_res
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19666     conftest$ac_exeext
19667   if test ${ac_cv_search_setxattr+y}
19668 then :
19669   break
19670 fi
19671 done
19672 if test ${ac_cv_search_setxattr+y}
19673 then :
19674
19675 else $as_nop
19676   ac_cv_search_setxattr=no
19677 fi
19678 rm conftest.$ac_ext
19679 LIBS=$ac_func_search_save_LIBS
19680 fi
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5
19682 printf "%s\n" "$ac_cv_search_setxattr" >&6; }
19683 ac_res=$ac_cv_search_setxattr
19684 if test "$ac_res" != no
19685 then :
19686   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19687
19688 fi
19689
19690     ac_fn_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>
19691 #include <sys/extattr.h>
19692
19693 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19694 if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes
19695 then :
19696   ac_have_decl=1
19697 else $as_nop
19698   ac_have_decl=0
19699 fi
19700 printf "%s\n" "#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl" >>confdefs.h
19701
19702     ac_fn_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>
19703
19704 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19705 if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes
19706 then :
19707   ac_have_decl=1
19708 else $as_nop
19709   ac_have_decl=0
19710 fi
19711 printf "%s\n" "#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl" >>confdefs.h
19712
19713     if test "x$ac_cv_header_sys_xattr_h" = "xyes" \
19714          -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then
19715         # Darwin extended attributes support
19716         if test ${ac_cv_archive_xattr_darwin+y}
19717 then :
19718   printf %s "(cached) " >&6
19719 else $as_nop
19720
19721   for ac_func in fgetxattr flistxattr fsetxattr getxattr listxattr setxattr
19722 do :
19723   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19725 if eval test \"x\$"$as_ac_var"\" = x"yes"
19726 then :
19727   cat >>confdefs.h <<_ACEOF
19728 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19729 _ACEOF
19730  ac_cv_archive_xattr_darwin=yes
19731 else $as_nop
19732   ac_cv_archive_xattr_darwin=no
19733 fi
19734
19735 done
19736
19737
19738 fi
19739
19740     elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \
19741            -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then
19742         # FreeBSD extended attributes support
19743         if test ${ac_cv_archive_xattr_freebsd+y}
19744 then :
19745   printf %s "(cached) " >&6
19746 else $as_nop
19747
19748   for ac_func in extattr_get_fd extattr_get_file extattr_get_link extattr_list_fd extattr_list_file extattr_list_link extattr_set_fd extattr_set_link
19749 do :
19750   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19752 if eval test \"x\$"$as_ac_var"\" = x"yes"
19753 then :
19754   cat >>confdefs.h <<_ACEOF
19755 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19756 _ACEOF
19757  ac_cv_archive_xattr_freebsd=yes
19758 else $as_nop
19759   ac_cv_archive_xattr_freebsd=no
19760 fi
19761
19762 done
19763
19764
19765 fi
19766
19767     elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \
19768            -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then
19769         # Linux extended attributes support
19770         if test ${ac_cv_archive_xattr_linux+y}
19771 then :
19772   printf %s "(cached) " >&6
19773 else $as_nop
19774
19775   for ac_func in fgetxattr flistxattr fsetxattr getxattr lgetxattr listxattr llistxattr lsetxattr
19776 do :
19777   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19779 if eval test \"x\$"$as_ac_var"\" = x"yes"
19780 then :
19781   cat >>confdefs.h <<_ACEOF
19782 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19783 _ACEOF
19784  ac_cv_archive_xattr_linux=yes
19785 else $as_nop
19786   ac_cv_archive_xattr_linux=no
19787 fi
19788
19789 done
19790
19791
19792 fi
19793
19794     elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then
19795         # AIX extended attributes support
19796         if test ${ac_cv_archive_xattr_aix+y}
19797 then :
19798   printf %s "(cached) " >&6
19799 else $as_nop
19800
19801   for ac_func in fgetea flistea fsetea getea lgetea listea llistea lsetea
19802 do :
19803   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19805 if eval test \"x\$"$as_ac_var"\" = x"yes"
19806 then :
19807   cat >>confdefs.h <<_ACEOF
19808 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19809 _ACEOF
19810  ac_cv_archive_xattr_aix=yes
19811 else $as_nop
19812   ac_cv_archive_xattr_aix=no
19813 fi
19814
19815 done
19816
19817
19818 fi
19819
19820     fi
19821
19822     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
19823 printf %s "checking for extended attributes support... " >&6; }
19824     if test "x$ac_cv_archive_xattr_linux" = "xyes"; then
19825
19826 printf "%s\n" "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h
19827
19828         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
19829 printf "%s\n" "Linux" >&6; }
19830     elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then
19831
19832 printf "%s\n" "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h
19833
19834         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
19835 printf "%s\n" "Darwin" >&6; }
19836     elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then
19837
19838 printf "%s\n" "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h
19839
19840         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
19841 printf "%s\n" "FreeBSD" >&6; }
19842     elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then
19843
19844 printf "%s\n" "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h
19845
19846         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
19847 printf "%s\n" "AIX" >&6; }
19848     else
19849         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
19850 printf "%s\n" "none" >&6; }
19851     fi
19852 fi
19853
19854 # Check for ACL support
19855 #
19856 # The ACL support in libarchive is written against the POSIX1e draft,
19857 # which was never officially approved and varies quite a bit across
19858 # platforms.  Worse, some systems have completely non-POSIX acl functions,
19859 # which makes the following checks rather more complex than I would like.
19860 #
19861 # Check whether --enable-acl was given.
19862 if test ${enable_acl+y}
19863 then :
19864   enableval=$enable_acl;
19865 fi
19866
19867
19868 if test "x$enable_acl" != "xno"; then
19869     # Libacl
19870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
19871 printf %s "checking for acl_get_file in -lacl... " >&6; }
19872 if test ${ac_cv_lib_acl_acl_get_file+y}
19873 then :
19874   printf %s "(cached) " >&6
19875 else $as_nop
19876   ac_check_lib_save_LIBS=$LIBS
19877 LIBS="-lacl  $LIBS"
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h.  */
19880
19881 /* Override any GCC internal prototype to avoid an error.
19882    Use char because int might match the return type of a GCC
19883    builtin and then its argument prototype would still apply.  */
19884 char acl_get_file ();
19885 int
19886 main (void)
19887 {
19888 return acl_get_file ();
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 if ac_fn_c_try_link "$LINENO"
19894 then :
19895   ac_cv_lib_acl_acl_get_file=yes
19896 else $as_nop
19897   ac_cv_lib_acl_acl_get_file=no
19898 fi
19899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19900     conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19902 fi
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
19904 printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }
19905 if test "x$ac_cv_lib_acl_acl_get_file" = xyes
19906 then :
19907   printf "%s\n" "#define HAVE_LIBACL 1" >>confdefs.h
19908
19909   LIBS="-lacl $LIBS"
19910
19911 fi
19912
19913
19914     ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "
19915       #if HAVE_SYS_TYPES_H
19916       #include <sys/types.h>
19917       #endif
19918       #if HAVE_SYS_ACL_H
19919       #include <sys/acl.h>
19920       #endif
19921
19922 "
19923 if test "x$ac_cv_type_acl_t" = xyes
19924 then :
19925
19926 printf "%s\n" "#define HAVE_ACL_T 1" >>confdefs.h
19927
19928
19929 fi
19930 ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "
19931       #if HAVE_SYS_TYPES_H
19932       #include <sys/types.h>
19933       #endif
19934       #if HAVE_SYS_ACL_H
19935       #include <sys/acl.h>
19936       #endif
19937
19938 "
19939 if test "x$ac_cv_type_acl_entry_t" = xyes
19940 then :
19941
19942 printf "%s\n" "#define HAVE_ACL_ENTRY_T 1" >>confdefs.h
19943
19944
19945 fi
19946 ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "
19947       #if HAVE_SYS_TYPES_H
19948       #include <sys/types.h>
19949       #endif
19950       #if HAVE_SYS_ACL_H
19951       #include <sys/acl.h>
19952       #endif
19953
19954 "
19955 if test "x$ac_cv_type_acl_permset_t" = xyes
19956 then :
19957
19958 printf "%s\n" "#define HAVE_ACL_PERMSET_T 1" >>confdefs.h
19959
19960
19961 fi
19962 ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "
19963       #if HAVE_SYS_TYPES_H
19964       #include <sys/types.h>
19965       #endif
19966       #if HAVE_SYS_ACL_H
19967       #include <sys/acl.h>
19968       #endif
19969
19970 "
19971 if test "x$ac_cv_type_acl_tag_t" = xyes
19972 then :
19973
19974 printf "%s\n" "#define HAVE_ACL_TAG_T 1" >>confdefs.h
19975
19976
19977 fi
19978
19979
19980     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5
19981 printf %s "checking for richacl_get_file in -lrichacl... " >&6; }
19982 if test ${ac_cv_lib_richacl_richacl_get_file+y}
19983 then :
19984   printf %s "(cached) " >&6
19985 else $as_nop
19986   ac_check_lib_save_LIBS=$LIBS
19987 LIBS="-lrichacl  $LIBS"
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h.  */
19990
19991 /* Override any GCC internal prototype to avoid an error.
19992    Use char because int might match the return type of a GCC
19993    builtin and then its argument prototype would still apply.  */
19994 char richacl_get_file ();
19995 int
19996 main (void)
19997 {
19998 return richacl_get_file ();
19999   ;
20000   return 0;
20001 }
20002 _ACEOF
20003 if ac_fn_c_try_link "$LINENO"
20004 then :
20005   ac_cv_lib_richacl_richacl_get_file=yes
20006 else $as_nop
20007   ac_cv_lib_richacl_richacl_get_file=no
20008 fi
20009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20010     conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20012 fi
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5
20014 printf "%s\n" "$ac_cv_lib_richacl_richacl_get_file" >&6; }
20015 if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes
20016 then :
20017   printf "%s\n" "#define HAVE_LIBRICHACL 1" >>confdefs.h
20018
20019   LIBS="-lrichacl $LIBS"
20020
20021 fi
20022
20023
20024     ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "
20025       #if HAVE_SYS_RICHACL_H
20026       #include <sys/richacl.h>
20027       #endif
20028
20029 "
20030 if test "x$ac_cv_type_struct_richace" = xyes
20031 then :
20032
20033 printf "%s\n" "#define HAVE_STRUCT_RICHACE 1" >>confdefs.h
20034
20035
20036 fi
20037 ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "
20038       #if HAVE_SYS_RICHACL_H
20039       #include <sys/richacl.h>
20040       #endif
20041
20042 "
20043 if test "x$ac_cv_type_struct_richacl" = xyes
20044 then :
20045
20046 printf "%s\n" "#define HAVE_STRUCT_RICHACL 1" >>confdefs.h
20047
20048
20049 fi
20050
20051
20052     # Solaris and derivates ACLs
20053     ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"
20054 if test "x$ac_cv_func_acl" = xyes
20055 then :
20056   printf "%s\n" "#define HAVE_ACL 1" >>confdefs.h
20057
20058 fi
20059 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
20060 if test "x$ac_cv_func_facl" = xyes
20061 then :
20062   printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h
20063
20064 fi
20065
20066
20067     if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \
20068          -a "x$ac_cv_type_struct_richace" = "xyes" \
20069          -a "x$ac_cv_type_struct_richacl" = "xyes"; then
20070         if test ${ac_cv_archive_acl_librichacl+y}
20071 then :
20072   printf %s "(cached) " >&6
20073 else $as_nop
20074
20075   for ac_func in richacl_alloc richacl_equiv_mode richacl_free richacl_get_fd richacl_get_file richacl_set_fd richacl_set_file
20076 do :
20077   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
20078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20079 if eval test \"x\$"$as_ac_var"\" = x"yes"
20080 then :
20081   cat >>confdefs.h <<_ACEOF
20082 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
20083 _ACEOF
20084  ac_cv_archive_acl_librichacl=yes
20085 else $as_nop
20086   ac_cv_archive_acl_librichacl=no
20087 fi
20088
20089 done
20090 fi
20091
20092     fi
20093
20094     if test "x$ac_cv_func_acl" = "xyes" \
20095          -a "x$ac_cv_func_facl" = "xyes"; then
20096         ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>
20097 "
20098 if test "x$ac_cv_type_aclent_t" = xyes
20099 then :
20100
20101 printf "%s\n" "#define HAVE_ACLENT_T 1" >>confdefs.h
20102
20103
20104 fi
20105
20106         if test "x$ac_cv_type_aclent_t" = "xyes"; then
20107             if test ${ac_cv_archive_acl_sunos+y}
20108 then :
20109   printf %s "(cached) " >&6
20110 else $as_nop
20111   ac_fn_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>
20112 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20113 if test "x$ac_cv_have_decl_GETACL" = xyes
20114 then :
20115   ac_have_decl=1
20116 else $as_nop
20117   ac_have_decl=0
20118 fi
20119 printf "%s\n" "#define HAVE_DECL_GETACL $ac_have_decl" >>confdefs.h
20120 if test $ac_have_decl = 1
20121 then :
20122   ac_cv_archive_acl_sunos=yes
20123 else $as_nop
20124   ac_cv_archive_acl_sunos=no
20125 fi
20126 ac_fn_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>
20127 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20128 if test "x$ac_cv_have_decl_SETACL" = xyes
20129 then :
20130   ac_have_decl=1
20131 else $as_nop
20132   ac_have_decl=0
20133 fi
20134 printf "%s\n" "#define HAVE_DECL_SETACL $ac_have_decl" >>confdefs.h
20135 if test $ac_have_decl = 1
20136 then :
20137   ac_cv_archive_acl_sunos=yes
20138 else $as_nop
20139   ac_cv_archive_acl_sunos=no
20140 fi
20141 ac_fn_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>
20142 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20143 if test "x$ac_cv_have_decl_GETACLCNT" = xyes
20144 then :
20145   ac_have_decl=1
20146 else $as_nop
20147   ac_have_decl=0
20148 fi
20149 printf "%s\n" "#define HAVE_DECL_GETACLCNT $ac_have_decl" >>confdefs.h
20150 if test $ac_have_decl = 1
20151 then :
20152   ac_cv_archive_acl_sunos=yes
20153 else $as_nop
20154   ac_cv_archive_acl_sunos=no
20155 fi
20156
20157 fi
20158
20159             ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>
20160 "
20161 if test "x$ac_cv_type_ace_t" = xyes
20162 then :
20163
20164 printf "%s\n" "#define HAVE_ACE_T 1" >>confdefs.h
20165
20166
20167 fi
20168
20169             if test "x$ac_cv_type_ace_t" = "xyes"; then
20170                 if test ${ac_cv_archive_acl_sunos_nfs4+y}
20171 then :
20172   printf %s "(cached) " >&6
20173 else $as_nop
20174   ac_fn_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>
20175 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20176 if test "x$ac_cv_have_decl_ACE_GETACL" = xyes
20177 then :
20178   ac_have_decl=1
20179 else $as_nop
20180   ac_have_decl=0
20181 fi
20182 printf "%s\n" "#define HAVE_DECL_ACE_GETACL $ac_have_decl" >>confdefs.h
20183 if test $ac_have_decl = 1
20184 then :
20185   ac_cv_archive_acl_sunos_nfs4=yes
20186 else $as_nop
20187   ac_cv_archive_acl_sonos_nfs4=no
20188 fi
20189 ac_fn_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>
20190 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20191 if test "x$ac_cv_have_decl_ACE_SETACL" = xyes
20192 then :
20193   ac_have_decl=1
20194 else $as_nop
20195   ac_have_decl=0
20196 fi
20197 printf "%s\n" "#define HAVE_DECL_ACE_SETACL $ac_have_decl" >>confdefs.h
20198 if test $ac_have_decl = 1
20199 then :
20200   ac_cv_archive_acl_sunos_nfs4=yes
20201 else $as_nop
20202   ac_cv_archive_acl_sonos_nfs4=no
20203 fi
20204 ac_fn_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>
20205 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20206 if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes
20207 then :
20208   ac_have_decl=1
20209 else $as_nop
20210   ac_have_decl=0
20211 fi
20212 printf "%s\n" "#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl" >>confdefs.h
20213 if test $ac_have_decl = 1
20214 then :
20215   ac_cv_archive_acl_sunos_nfs4=yes
20216 else $as_nop
20217   ac_cv_archive_acl_sonos_nfs4=no
20218 fi
20219
20220 fi
20221
20222             fi
20223         fi
20224     elif test "x$ac_cv_type_acl_t" = "xyes" \
20225          -a "x$ac_cv_type_acl_entry_t" = "xyes" \
20226          -a "x$ac_cv_type_acl_permset_t" = "xyes" \
20227          -a "x$ac_cv_type_acl_tag_t" = "xyes"; then
20228         # POSIX.1e ACL functions
20229         if test ${ac_cv_posix_acl_funcs+y}
20230 then :
20231   printf %s "(cached) " >&6
20232 else $as_nop
20233
20234   for ac_func in acl_add_perm acl_clear_perms acl_create_entry acl_delete_def_file acl_free acl_get_entry acl_get_fd acl_get_file acl_get_permset acl_get_qualifier acl_get_tag_type acl_init acl_set_fd acl_set_file acl_set_qualifier acl_set_tag_type
20235 do :
20236   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
20237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20238 if eval test \"x\$"$as_ac_var"\" = x"yes"
20239 then :
20240   cat >>confdefs.h <<_ACEOF
20241 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
20242 _ACEOF
20243  ac_cv_posix_acl_funcs=yes
20244 else $as_nop
20245   ac_cv_posix_acl_funcs=no
20246 fi
20247
20248 done
20249
20250 fi
20251
20252
20253         ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"
20254 if test "x$ac_cv_func_acl_get_perm" = xyes
20255 then :
20256   printf "%s\n" "#define HAVE_ACL_GET_PERM 1" >>confdefs.h
20257
20258 fi
20259
20260
20261         if test "x$ac_cv_posix_acl_funcs" = "xyes" \
20262              -a "x$ac_cv_header_acl_libacl_h" = "xyes" \
20263              -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \
20264              -a "x$ac_cv_func_acl_get_perm"; then
20265             if test ${ac_cv_archive_acl_libacl+y}
20266 then :
20267   printf %s "(cached) " >&6
20268 else $as_nop
20269   ac_cv_archive_acl_libacl=yes
20270 fi
20271
20272
20273 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20274
20275         else
20276              # FreeBSD/Darwin
20277              ac_fn_c_check_func "$LINENO" "acl_add_flag_np" "ac_cv_func_acl_add_flag_np"
20278 if test "x$ac_cv_func_acl_add_flag_np" = xyes
20279 then :
20280   printf "%s\n" "#define HAVE_ACL_ADD_FLAG_NP 1" >>confdefs.h
20281
20282 fi
20283 ac_fn_c_check_func "$LINENO" "acl_clear_flags_np" "ac_cv_func_acl_clear_flags_np"
20284 if test "x$ac_cv_func_acl_clear_flags_np" = xyes
20285 then :
20286   printf "%s\n" "#define HAVE_ACL_CLEAR_FLAGS_NP 1" >>confdefs.h
20287
20288 fi
20289 ac_fn_c_check_func "$LINENO" "acl_get_brand_np" "ac_cv_func_acl_get_brand_np"
20290 if test "x$ac_cv_func_acl_get_brand_np" = xyes
20291 then :
20292   printf "%s\n" "#define HAVE_ACL_GET_BRAND_NP 1" >>confdefs.h
20293
20294 fi
20295 ac_fn_c_check_func "$LINENO" "acl_get_entry_type_np" "ac_cv_func_acl_get_entry_type_np"
20296 if test "x$ac_cv_func_acl_get_entry_type_np" = xyes
20297 then :
20298   printf "%s\n" "#define HAVE_ACL_GET_ENTRY_TYPE_NP 1" >>confdefs.h
20299
20300 fi
20301 ac_fn_c_check_func "$LINENO" "acl_get_flag_np" "ac_cv_func_acl_get_flag_np"
20302 if test "x$ac_cv_func_acl_get_flag_np" = xyes
20303 then :
20304   printf "%s\n" "#define HAVE_ACL_GET_FLAG_NP 1" >>confdefs.h
20305
20306 fi
20307 ac_fn_c_check_func "$LINENO" "acl_get_flagset_np" "ac_cv_func_acl_get_flagset_np"
20308 if test "x$ac_cv_func_acl_get_flagset_np" = xyes
20309 then :
20310   printf "%s\n" "#define HAVE_ACL_GET_FLAGSET_NP 1" >>confdefs.h
20311
20312 fi
20313 ac_fn_c_check_func "$LINENO" "acl_get_fd_np" "ac_cv_func_acl_get_fd_np"
20314 if test "x$ac_cv_func_acl_get_fd_np" = xyes
20315 then :
20316   printf "%s\n" "#define HAVE_ACL_GET_FD_NP 1" >>confdefs.h
20317
20318 fi
20319 ac_fn_c_check_func "$LINENO" "acl_get_link_np" "ac_cv_func_acl_get_link_np"
20320 if test "x$ac_cv_func_acl_get_link_np" = xyes
20321 then :
20322   printf "%s\n" "#define HAVE_ACL_GET_LINK_NP 1" >>confdefs.h
20323
20324 fi
20325 ac_fn_c_check_func "$LINENO" "acl_get_perm_np" "ac_cv_func_acl_get_perm_np"
20326 if test "x$ac_cv_func_acl_get_perm_np" = xyes
20327 then :
20328   printf "%s\n" "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
20329
20330 fi
20331 ac_fn_c_check_func "$LINENO" "acl_is_trivial_np" "ac_cv_func_acl_is_trivial_np"
20332 if test "x$ac_cv_func_acl_is_trivial_np" = xyes
20333 then :
20334   printf "%s\n" "#define HAVE_ACL_IS_TRIVIAL_NP 1" >>confdefs.h
20335
20336 fi
20337 ac_fn_c_check_func "$LINENO" "acl_set_entry_type_np" "ac_cv_func_acl_set_entry_type_np"
20338 if test "x$ac_cv_func_acl_set_entry_type_np" = xyes
20339 then :
20340   printf "%s\n" "#define HAVE_ACL_SET_ENTRY_TYPE_NP 1" >>confdefs.h
20341
20342 fi
20343 ac_fn_c_check_func "$LINENO" "acl_set_fd_np" "ac_cv_func_acl_set_fd_np"
20344 if test "x$ac_cv_func_acl_set_fd_np" = xyes
20345 then :
20346   printf "%s\n" "#define HAVE_ACL_SET_FD_NP 1" >>confdefs.h
20347
20348 fi
20349 ac_fn_c_check_func "$LINENO" "acl_set_link_np" "ac_cv_func_acl_set_link_np"
20350 if test "x$ac_cv_func_acl_set_link_np" = xyes
20351 then :
20352   printf "%s\n" "#define HAVE_ACL_SET_LINK_NP 1" >>confdefs.h
20353
20354 fi
20355
20356
20357             ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
20358 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes
20359 then :
20360   printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h
20361
20362 fi
20363 ac_fn_c_check_func "$LINENO" "mbr_uuid_to_id" "ac_cv_func_mbr_uuid_to_id"
20364 if test "x$ac_cv_func_mbr_uuid_to_id" = xyes
20365 then :
20366   printf "%s\n" "#define HAVE_MBR_UUID_TO_ID 1" >>confdefs.h
20367
20368 fi
20369 ac_fn_c_check_func "$LINENO" "mbr_gid_to_uuid" "ac_cv_func_mbr_gid_to_uuid"
20370 if test "x$ac_cv_func_mbr_gid_to_uuid" = xyes
20371 then :
20372   printf "%s\n" "#define HAVE_MBR_GID_TO_UUID 1" >>confdefs.h
20373
20374 fi
20375
20376
20377             ac_fn_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>
20378                #include <sys/acl.h>
20379 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20380 if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes
20381 then :
20382   ac_have_decl=1
20383 else $as_nop
20384   ac_have_decl=0
20385 fi
20386 printf "%s\n" "#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl" >>confdefs.h
20387 ac_fn_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>
20388                #include <sys/acl.h>
20389 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20390 if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes
20391 then :
20392   ac_have_decl=1
20393 else $as_nop
20394   ac_have_decl=0
20395 fi
20396 printf "%s\n" "#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl" >>confdefs.h
20397 ac_fn_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>
20398                #include <sys/acl.h>
20399 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20400 if test "x$ac_cv_have_decl_ACL_USER" = xyes
20401 then :
20402   ac_have_decl=1
20403 else $as_nop
20404   ac_have_decl=0
20405 fi
20406 printf "%s\n" "#define HAVE_DECL_ACL_USER $ac_have_decl" >>confdefs.h
20407 ac_fn_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>
20408                #include <sys/acl.h>
20409 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20410 if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes
20411 then :
20412   ac_have_decl=1
20413 else $as_nop
20414   ac_have_decl=0
20415 fi
20416 printf "%s\n" "#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl" >>confdefs.h
20417
20418             if test "x$ac_cv_posix_acl_funcs" = "xyes" \
20419                  -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \
20420                  -a "x$ac_cv_func_acl_get_perm" != "xyes" \
20421                  -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \
20422                  -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then
20423                 if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then
20424                     if test ${ac_cv_archive_acl_freebsd+y}
20425 then :
20426   printf %s "(cached) " >&6
20427 else $as_nop
20428   ac_cv_archive_acl_freebsd=yes
20429 fi
20430
20431                     if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \
20432                          -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
20433                          -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \
20434                          -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \
20435                          -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
20436                          -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then
20437                         if test ${ac_cv_archive_acl_freebsd_nfs4+y}
20438 then :
20439   printf %s "(cached) " >&6
20440 else $as_nop
20441   ac_cv_archive_acl_freebsd_nfs4=yes
20442 fi
20443
20444                     fi
20445                 elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \
20446                        -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
20447                        -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
20448                        -a "x$ac_cv_func_acl_get_link_np" = "xyes" \
20449                        -a "x$ac_cv_func_acl_set_link_np" = "xyes" \
20450                        -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \
20451                        -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \
20452                        -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then
20453                     if test ${ac_cv_archive_acl_darwin+y}
20454 then :
20455   printf %s "(cached) " >&6
20456 else $as_nop
20457   ac_cv_archive_acl_darwin=yes
20458 fi
20459
20460                 fi
20461             fi
20462         fi
20463     fi
20464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
20465 printf %s "checking for ACL support... " >&6; }
20466     if test "x$ac_cv_archive_acl_libacl" = "xyes" \
20467          -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20468         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5
20469 printf "%s\n" "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }
20470
20471 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20472
20473
20474 printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
20475
20476     elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then
20477         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5
20478 printf "%s\n" "libacl (POSIX.1e)" >&6; }
20479
20480 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20481
20482     elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20483         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5
20484 printf "%s\n" "librichacl (NFSv4)" >&6; }
20485
20486 printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
20487
20488     elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then
20489
20490 printf "%s\n" "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h
20491
20492         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5
20493 printf "%s\n" "Darwin (limited NFSv4)" >&6; }
20494     elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then
20495
20496 printf "%s\n" "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h
20497
20498         if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then
20499
20500 printf "%s\n" "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h
20501
20502             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5
20503 printf "%s\n" "Solaris (POSIX.1e and NFSv4)" >&6; }
20504         else
20505             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5
20506 printf "%s\n" "Solaris (POSIX.1e)" >&6; }
20507         fi
20508     elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
20509
20510 printf "%s\n" "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h
20511
20512         if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then
20513
20514 printf "%s\n" "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h
20515
20516             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5
20517 printf "%s\n" "FreeBSD (POSIX.1e and NFSv4)" >&6; }
20518         else
20519             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5
20520 printf "%s\n" "FreeBSD (POSIX.1e)" >&6; }
20521         fi
20522     else
20523         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
20524 printf "%s\n" "none" >&6; }
20525     fi
20526 fi
20527
20528
20529  if test "x$ac_cv_archive_acl_libacl" = "xyes" \
20530      -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20531   INC_LINUX_ACL_TRUE=
20532   INC_LINUX_ACL_FALSE='#'
20533 else
20534   INC_LINUX_ACL_TRUE='#'
20535   INC_LINUX_ACL_FALSE=
20536 fi
20537
20538  if test "x$ac_cv_archive_acl_sunos" = "xyes"; then
20539   INC_SUNOS_ACL_TRUE=
20540   INC_SUNOS_ACL_FALSE='#'
20541 else
20542   INC_SUNOS_ACL_TRUE='#'
20543   INC_SUNOS_ACL_FALSE=
20544 fi
20545
20546  if test "x$ac_cv_archive_acl_darwin" = "xyes"; then
20547   INC_DARWIN_ACL_TRUE=
20548   INC_DARWIN_ACL_FALSE='#'
20549 else
20550   INC_DARWIN_ACL_TRUE='#'
20551   INC_DARWIN_ACL_FALSE=
20552 fi
20553
20554  if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
20555   INC_FREEBSD_ACL_TRUE=
20556   INC_FREEBSD_ACL_FALSE='#'
20557 else
20558   INC_FREEBSD_ACL_TRUE='#'
20559   INC_FREEBSD_ACL_FALSE=
20560 fi
20561
20562
20563 # Additional requirements
20564 # Check whether --enable-largefile was given.
20565 if test ${enable_largefile+y}
20566 then :
20567   enableval=$enable_largefile;
20568 fi
20569
20570 if test "$enable_largefile" != no; then
20571
20572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20573 printf %s "checking for special C compiler options needed for large files... " >&6; }
20574 if test ${ac_cv_sys_largefile_CC+y}
20575 then :
20576   printf %s "(cached) " >&6
20577 else $as_nop
20578   ac_cv_sys_largefile_CC=no
20579      if test "$GCC" != yes; then
20580        ac_save_CC=$CC
20581        while :; do
20582          # IRIX 6.2 and later do not support large files by default,
20583          # so use the C compiler's -n32 option if that helps.
20584          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h.  */
20586 #include <sys/types.h>
20587  /* Check that off_t can represent 2**63 - 1 correctly.
20588     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20589     since some C++ compilers masquerading as C compilers
20590     incorrectly reject 9223372036854775807.  */
20591 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20592   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20593                        && LARGE_OFF_T % 2147483647 == 1)
20594                       ? 1 : -1];
20595 int
20596 main (void)
20597 {
20598
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603          if ac_fn_c_try_compile "$LINENO"
20604 then :
20605   break
20606 fi
20607 rm -f core conftest.err conftest.$ac_objext conftest.beam
20608          CC="$CC -n32"
20609          if ac_fn_c_try_compile "$LINENO"
20610 then :
20611   ac_cv_sys_largefile_CC=' -n32'; break
20612 fi
20613 rm -f core conftest.err conftest.$ac_objext conftest.beam
20614          break
20615        done
20616        CC=$ac_save_CC
20617        rm -f conftest.$ac_ext
20618     fi
20619 fi
20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20621 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
20622   if test "$ac_cv_sys_largefile_CC" != no; then
20623     CC=$CC$ac_cv_sys_largefile_CC
20624   fi
20625
20626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20627 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20628 if test ${ac_cv_sys_file_offset_bits+y}
20629 then :
20630   printf %s "(cached) " >&6
20631 else $as_nop
20632   while :; do
20633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h.  */
20635 #include <sys/types.h>
20636  /* Check that off_t can represent 2**63 - 1 correctly.
20637     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20638     since some C++ compilers masquerading as C compilers
20639     incorrectly reject 9223372036854775807.  */
20640 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20641   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20642                        && LARGE_OFF_T % 2147483647 == 1)
20643                       ? 1 : -1];
20644 int
20645 main (void)
20646 {
20647
20648   ;
20649   return 0;
20650 }
20651 _ACEOF
20652 if ac_fn_c_try_compile "$LINENO"
20653 then :
20654   ac_cv_sys_file_offset_bits=no; break
20655 fi
20656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h.  */
20659 #define _FILE_OFFSET_BITS 64
20660 #include <sys/types.h>
20661  /* Check that off_t can represent 2**63 - 1 correctly.
20662     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20663     since some C++ compilers masquerading as C compilers
20664     incorrectly reject 9223372036854775807.  */
20665 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20666   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20667                        && LARGE_OFF_T % 2147483647 == 1)
20668                       ? 1 : -1];
20669 int
20670 main (void)
20671 {
20672
20673   ;
20674   return 0;
20675 }
20676 _ACEOF
20677 if ac_fn_c_try_compile "$LINENO"
20678 then :
20679   ac_cv_sys_file_offset_bits=64; break
20680 fi
20681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20682   ac_cv_sys_file_offset_bits=unknown
20683   break
20684 done
20685 fi
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20687 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
20688 case $ac_cv_sys_file_offset_bits in #(
20689   no | unknown) ;;
20690   *)
20691 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
20692 ;;
20693 esac
20694 rm -rf conftest*
20695   if test $ac_cv_sys_file_offset_bits = unknown; then
20696     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20697 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
20698 if test ${ac_cv_sys_large_files+y}
20699 then :
20700   printf %s "(cached) " >&6
20701 else $as_nop
20702   while :; do
20703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h.  */
20705 #include <sys/types.h>
20706  /* Check that off_t can represent 2**63 - 1 correctly.
20707     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20708     since some C++ compilers masquerading as C compilers
20709     incorrectly reject 9223372036854775807.  */
20710 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20711   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20712                        && LARGE_OFF_T % 2147483647 == 1)
20713                       ? 1 : -1];
20714 int
20715 main (void)
20716 {
20717
20718   ;
20719   return 0;
20720 }
20721 _ACEOF
20722 if ac_fn_c_try_compile "$LINENO"
20723 then :
20724   ac_cv_sys_large_files=no; break
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h.  */
20729 #define _LARGE_FILES 1
20730 #include <sys/types.h>
20731  /* Check that off_t can represent 2**63 - 1 correctly.
20732     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20733     since some C++ compilers masquerading as C compilers
20734     incorrectly reject 9223372036854775807.  */
20735 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20736   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20737                        && LARGE_OFF_T % 2147483647 == 1)
20738                       ? 1 : -1];
20739 int
20740 main (void)
20741 {
20742
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 if ac_fn_c_try_compile "$LINENO"
20748 then :
20749   ac_cv_sys_large_files=1; break
20750 fi
20751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20752   ac_cv_sys_large_files=unknown
20753   break
20754 done
20755 fi
20756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20757 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
20758 case $ac_cv_sys_large_files in #(
20759   no | unknown) ;;
20760   *)
20761 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
20762 ;;
20763 esac
20764 rm -rf conftest*
20765   fi
20766 fi
20767
20768
20769
20770
20771
20772
20773 case "$host_os" in
20774   *mingw* | *cygwin* | *msys*)
20775         ;;
20776   *)
20777
20778   if test "$found_MD5" != yes; then
20779     saved_CPPFLAGS="$CPPFLAGS"
20780     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20781     touch "check_crypto_md.h"
20782     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBC" >&5
20783 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBC... " >&6; }
20784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h.  */
20786
20787 #define ARCHIVE_MD5_COMPILE_TEST
20788 #define ARCHIVE_CRYPTO_MD5_LIBC
20789 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20790
20791 $(cat "$srcdir/libarchive/archive_digest.c")
20792
20793 int
20794 main(int argc, char **argv)
20795 {
20796   archive_md5_ctx ctx;
20797   archive_md5_init(&ctx);
20798   archive_md5_update(&ctx, *argv, argc);
20799   archive_md5_final(&ctx, NULL);
20800   return 0;
20801 }
20802
20803 _ACEOF
20804 if ac_fn_c_try_link "$LINENO"
20805 then :
20806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20807 printf "%s\n" "yes" >&6; }
20808       found_MD5=yes
20809       found_LIBC=yes
20810
20811 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBC 1" >>confdefs.h
20812
20813
20814 else $as_nop
20815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816 printf "%s\n" "no" >&6; }
20817 fi
20818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20819     conftest$ac_exeext conftest.$ac_ext
20820     CPPFLAGS="$saved_CPPFLAGS"
20821     rm "check_crypto_md.h"
20822   fi
20823
20824
20825   if test "$found_MD5" != yes; then
20826     saved_CPPFLAGS="$CPPFLAGS"
20827     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20828     touch "check_crypto_md.h"
20829     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM" >&5
20830 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM... " >&6; }
20831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h.  */
20833
20834 #define ARCHIVE_MD5_COMPILE_TEST
20835 #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
20836 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20837
20838 $(cat "$srcdir/libarchive/archive_digest.c")
20839
20840 int
20841 main(int argc, char **argv)
20842 {
20843   archive_md5_ctx ctx;
20844   archive_md5_init(&ctx);
20845   archive_md5_update(&ctx, *argv, argc);
20846   archive_md5_final(&ctx, NULL);
20847   return 0;
20848 }
20849
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"
20852 then :
20853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20854 printf "%s\n" "yes" >&6; }
20855       found_MD5=yes
20856       found_LIBSYSTEM=yes
20857
20858 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM 1" >>confdefs.h
20859
20860
20861 else $as_nop
20862    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863 printf "%s\n" "no" >&6; }
20864 fi
20865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20866     conftest$ac_exeext conftest.$ac_ext
20867     CPPFLAGS="$saved_CPPFLAGS"
20868     rm "check_crypto_md.h"
20869   fi
20870
20871
20872   if test "$found_RMD160" != yes; then
20873     saved_CPPFLAGS="$CPPFLAGS"
20874     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20875     touch "check_crypto_md.h"
20876     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBC" >&5
20877 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBC... " >&6; }
20878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h.  */
20880
20881 #define ARCHIVE_RMD160_COMPILE_TEST
20882 #define ARCHIVE_CRYPTO_RMD160_LIBC
20883 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20884
20885 $(cat "$srcdir/libarchive/archive_digest.c")
20886
20887 int
20888 main(int argc, char **argv)
20889 {
20890   archive_rmd160_ctx ctx;
20891   archive_rmd160_init(&ctx);
20892   archive_rmd160_update(&ctx, *argv, argc);
20893   archive_rmd160_final(&ctx, NULL);
20894   return 0;
20895 }
20896
20897 _ACEOF
20898 if ac_fn_c_try_link "$LINENO"
20899 then :
20900    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20901 printf "%s\n" "yes" >&6; }
20902       found_RMD160=yes
20903       found_LIBC=yes
20904
20905 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBC 1" >>confdefs.h
20906
20907
20908 else $as_nop
20909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20910 printf "%s\n" "no" >&6; }
20911 fi
20912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20913     conftest$ac_exeext conftest.$ac_ext
20914     CPPFLAGS="$saved_CPPFLAGS"
20915     rm "check_crypto_md.h"
20916   fi
20917
20918
20919   if test "$found_SHA1" != yes; then
20920     saved_CPPFLAGS="$CPPFLAGS"
20921     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20922     touch "check_crypto_md.h"
20923     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBC" >&5
20924 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBC... " >&6; }
20925     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h.  */
20927
20928 #define ARCHIVE_SHA1_COMPILE_TEST
20929 #define ARCHIVE_CRYPTO_SHA1_LIBC
20930 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20931
20932 $(cat "$srcdir/libarchive/archive_digest.c")
20933
20934 int
20935 main(int argc, char **argv)
20936 {
20937   archive_sha1_ctx ctx;
20938   archive_sha1_init(&ctx);
20939   archive_sha1_update(&ctx, *argv, argc);
20940   archive_sha1_final(&ctx, NULL);
20941   return 0;
20942 }
20943
20944 _ACEOF
20945 if ac_fn_c_try_link "$LINENO"
20946 then :
20947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20948 printf "%s\n" "yes" >&6; }
20949       found_SHA1=yes
20950       found_LIBC=yes
20951
20952 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBC 1" >>confdefs.h
20953
20954
20955 else $as_nop
20956    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20957 printf "%s\n" "no" >&6; }
20958 fi
20959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20960     conftest$ac_exeext conftest.$ac_ext
20961     CPPFLAGS="$saved_CPPFLAGS"
20962     rm "check_crypto_md.h"
20963   fi
20964
20965
20966   if test "$found_SHA1" != yes; then
20967     saved_CPPFLAGS="$CPPFLAGS"
20968     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20969     touch "check_crypto_md.h"
20970     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM" >&5
20971 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM... " >&6; }
20972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h.  */
20974
20975 #define ARCHIVE_SHA1_COMPILE_TEST
20976 #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
20977 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20978
20979 $(cat "$srcdir/libarchive/archive_digest.c")
20980
20981 int
20982 main(int argc, char **argv)
20983 {
20984   archive_sha1_ctx ctx;
20985   archive_sha1_init(&ctx);
20986   archive_sha1_update(&ctx, *argv, argc);
20987   archive_sha1_final(&ctx, NULL);
20988   return 0;
20989 }
20990
20991 _ACEOF
20992 if ac_fn_c_try_link "$LINENO"
20993 then :
20994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995 printf "%s\n" "yes" >&6; }
20996       found_SHA1=yes
20997       found_LIBSYSTEM=yes
20998
20999 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM 1" >>confdefs.h
21000
21001
21002 else $as_nop
21003    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004 printf "%s\n" "no" >&6; }
21005 fi
21006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21007     conftest$ac_exeext conftest.$ac_ext
21008     CPPFLAGS="$saved_CPPFLAGS"
21009     rm "check_crypto_md.h"
21010   fi
21011
21012
21013   if test "$found_SHA256" != yes; then
21014     saved_CPPFLAGS="$CPPFLAGS"
21015     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21016     touch "check_crypto_md.h"
21017     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC" >&5
21018 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC... " >&6; }
21019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h.  */
21021
21022 #define ARCHIVE_SHA256_COMPILE_TEST
21023 #define ARCHIVE_CRYPTO_SHA256_LIBC
21024 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21025
21026 $(cat "$srcdir/libarchive/archive_digest.c")
21027
21028 int
21029 main(int argc, char **argv)
21030 {
21031   archive_sha256_ctx ctx;
21032   archive_sha256_init(&ctx);
21033   archive_sha256_update(&ctx, *argv, argc);
21034   archive_sha256_final(&ctx, NULL);
21035   return 0;
21036 }
21037
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"
21040 then :
21041    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21042 printf "%s\n" "yes" >&6; }
21043       found_SHA256=yes
21044       found_LIBC=yes
21045
21046 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC 1" >>confdefs.h
21047
21048
21049 else $as_nop
21050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 printf "%s\n" "no" >&6; }
21052 fi
21053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21054     conftest$ac_exeext conftest.$ac_ext
21055     CPPFLAGS="$saved_CPPFLAGS"
21056     rm "check_crypto_md.h"
21057   fi
21058
21059
21060   if test "$found_SHA256" != yes; then
21061     saved_CPPFLAGS="$CPPFLAGS"
21062     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21063     touch "check_crypto_md.h"
21064     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2" >&5
21065 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC2... " >&6; }
21066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21067 /* end confdefs.h.  */
21068
21069 #define ARCHIVE_SHA256_COMPILE_TEST
21070 #define ARCHIVE_CRYPTO_SHA256_LIBC2
21071 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21072
21073 $(cat "$srcdir/libarchive/archive_digest.c")
21074
21075 int
21076 main(int argc, char **argv)
21077 {
21078   archive_sha256_ctx ctx;
21079   archive_sha256_init(&ctx);
21080   archive_sha256_update(&ctx, *argv, argc);
21081   archive_sha256_final(&ctx, NULL);
21082   return 0;
21083 }
21084
21085 _ACEOF
21086 if ac_fn_c_try_link "$LINENO"
21087 then :
21088    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21089 printf "%s\n" "yes" >&6; }
21090       found_SHA256=yes
21091       found_LIBC2=yes
21092
21093 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC2 1" >>confdefs.h
21094
21095
21096 else $as_nop
21097    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098 printf "%s\n" "no" >&6; }
21099 fi
21100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21101     conftest$ac_exeext conftest.$ac_ext
21102     CPPFLAGS="$saved_CPPFLAGS"
21103     rm "check_crypto_md.h"
21104   fi
21105
21106
21107   if test "$found_SHA256" != yes; then
21108     saved_CPPFLAGS="$CPPFLAGS"
21109     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21110     touch "check_crypto_md.h"
21111     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3" >&5
21112 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC3... " >&6; }
21113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h.  */
21115
21116 #define ARCHIVE_SHA256_COMPILE_TEST
21117 #define ARCHIVE_CRYPTO_SHA256_LIBC3
21118 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21119
21120 $(cat "$srcdir/libarchive/archive_digest.c")
21121
21122 int
21123 main(int argc, char **argv)
21124 {
21125   archive_sha256_ctx ctx;
21126   archive_sha256_init(&ctx);
21127   archive_sha256_update(&ctx, *argv, argc);
21128   archive_sha256_final(&ctx, NULL);
21129   return 0;
21130 }
21131
21132 _ACEOF
21133 if ac_fn_c_try_link "$LINENO"
21134 then :
21135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21136 printf "%s\n" "yes" >&6; }
21137       found_SHA256=yes
21138       found_LIBC3=yes
21139
21140 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC3 1" >>confdefs.h
21141
21142
21143 else $as_nop
21144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 printf "%s\n" "no" >&6; }
21146 fi
21147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21148     conftest$ac_exeext conftest.$ac_ext
21149     CPPFLAGS="$saved_CPPFLAGS"
21150     rm "check_crypto_md.h"
21151   fi
21152
21153
21154   if test "$found_SHA256" != yes; then
21155     saved_CPPFLAGS="$CPPFLAGS"
21156     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21157     touch "check_crypto_md.h"
21158     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM" >&5
21159 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM... " >&6; }
21160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h.  */
21162
21163 #define ARCHIVE_SHA256_COMPILE_TEST
21164 #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
21165 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21166
21167 $(cat "$srcdir/libarchive/archive_digest.c")
21168
21169 int
21170 main(int argc, char **argv)
21171 {
21172   archive_sha256_ctx ctx;
21173   archive_sha256_init(&ctx);
21174   archive_sha256_update(&ctx, *argv, argc);
21175   archive_sha256_final(&ctx, NULL);
21176   return 0;
21177 }
21178
21179 _ACEOF
21180 if ac_fn_c_try_link "$LINENO"
21181 then :
21182    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183 printf "%s\n" "yes" >&6; }
21184       found_SHA256=yes
21185       found_LIBSYSTEM=yes
21186
21187 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM 1" >>confdefs.h
21188
21189
21190 else $as_nop
21191    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21192 printf "%s\n" "no" >&6; }
21193 fi
21194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21195     conftest$ac_exeext conftest.$ac_ext
21196     CPPFLAGS="$saved_CPPFLAGS"
21197     rm "check_crypto_md.h"
21198   fi
21199
21200
21201   if test "$found_SHA384" != yes; then
21202     saved_CPPFLAGS="$CPPFLAGS"
21203     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21204     touch "check_crypto_md.h"
21205     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC" >&5
21206 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC... " >&6; }
21207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208 /* end confdefs.h.  */
21209
21210 #define ARCHIVE_SHA384_COMPILE_TEST
21211 #define ARCHIVE_CRYPTO_SHA384_LIBC
21212 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21213
21214 $(cat "$srcdir/libarchive/archive_digest.c")
21215
21216 int
21217 main(int argc, char **argv)
21218 {
21219   archive_sha384_ctx ctx;
21220   archive_sha384_init(&ctx);
21221   archive_sha384_update(&ctx, *argv, argc);
21222   archive_sha384_final(&ctx, NULL);
21223   return 0;
21224 }
21225
21226 _ACEOF
21227 if ac_fn_c_try_link "$LINENO"
21228 then :
21229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21230 printf "%s\n" "yes" >&6; }
21231       found_SHA384=yes
21232       found_LIBC=yes
21233
21234 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC 1" >>confdefs.h
21235
21236
21237 else $as_nop
21238    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21239 printf "%s\n" "no" >&6; }
21240 fi
21241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21242     conftest$ac_exeext conftest.$ac_ext
21243     CPPFLAGS="$saved_CPPFLAGS"
21244     rm "check_crypto_md.h"
21245   fi
21246
21247
21248   if test "$found_SHA384" != yes; then
21249     saved_CPPFLAGS="$CPPFLAGS"
21250     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21251     touch "check_crypto_md.h"
21252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2" >&5
21253 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC2... " >&6; }
21254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h.  */
21256
21257 #define ARCHIVE_SHA384_COMPILE_TEST
21258 #define ARCHIVE_CRYPTO_SHA384_LIBC2
21259 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21260
21261 $(cat "$srcdir/libarchive/archive_digest.c")
21262
21263 int
21264 main(int argc, char **argv)
21265 {
21266   archive_sha384_ctx ctx;
21267   archive_sha384_init(&ctx);
21268   archive_sha384_update(&ctx, *argv, argc);
21269   archive_sha384_final(&ctx, NULL);
21270   return 0;
21271 }
21272
21273 _ACEOF
21274 if ac_fn_c_try_link "$LINENO"
21275 then :
21276    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21277 printf "%s\n" "yes" >&6; }
21278       found_SHA384=yes
21279       found_LIBC2=yes
21280
21281 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC2 1" >>confdefs.h
21282
21283
21284 else $as_nop
21285    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286 printf "%s\n" "no" >&6; }
21287 fi
21288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21289     conftest$ac_exeext conftest.$ac_ext
21290     CPPFLAGS="$saved_CPPFLAGS"
21291     rm "check_crypto_md.h"
21292   fi
21293
21294
21295   if test "$found_SHA384" != yes; then
21296     saved_CPPFLAGS="$CPPFLAGS"
21297     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21298     touch "check_crypto_md.h"
21299     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3" >&5
21300 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC3... " >&6; }
21301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h.  */
21303
21304 #define ARCHIVE_SHA384_COMPILE_TEST
21305 #define ARCHIVE_CRYPTO_SHA384_LIBC3
21306 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21307
21308 $(cat "$srcdir/libarchive/archive_digest.c")
21309
21310 int
21311 main(int argc, char **argv)
21312 {
21313   archive_sha384_ctx ctx;
21314   archive_sha384_init(&ctx);
21315   archive_sha384_update(&ctx, *argv, argc);
21316   archive_sha384_final(&ctx, NULL);
21317   return 0;
21318 }
21319
21320 _ACEOF
21321 if ac_fn_c_try_link "$LINENO"
21322 then :
21323    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21324 printf "%s\n" "yes" >&6; }
21325       found_SHA384=yes
21326       found_LIBC3=yes
21327
21328 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC3 1" >>confdefs.h
21329
21330
21331 else $as_nop
21332    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 printf "%s\n" "no" >&6; }
21334 fi
21335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21336     conftest$ac_exeext conftest.$ac_ext
21337     CPPFLAGS="$saved_CPPFLAGS"
21338     rm "check_crypto_md.h"
21339   fi
21340
21341
21342   if test "$found_SHA384" != yes; then
21343     saved_CPPFLAGS="$CPPFLAGS"
21344     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21345     touch "check_crypto_md.h"
21346     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM" >&5
21347 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM... " >&6; }
21348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349 /* end confdefs.h.  */
21350
21351 #define ARCHIVE_SHA384_COMPILE_TEST
21352 #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
21353 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21354
21355 $(cat "$srcdir/libarchive/archive_digest.c")
21356
21357 int
21358 main(int argc, char **argv)
21359 {
21360   archive_sha384_ctx ctx;
21361   archive_sha384_init(&ctx);
21362   archive_sha384_update(&ctx, *argv, argc);
21363   archive_sha384_final(&ctx, NULL);
21364   return 0;
21365 }
21366
21367 _ACEOF
21368 if ac_fn_c_try_link "$LINENO"
21369 then :
21370    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21371 printf "%s\n" "yes" >&6; }
21372       found_SHA384=yes
21373       found_LIBSYSTEM=yes
21374
21375 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM 1" >>confdefs.h
21376
21377
21378 else $as_nop
21379    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 printf "%s\n" "no" >&6; }
21381 fi
21382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21383     conftest$ac_exeext conftest.$ac_ext
21384     CPPFLAGS="$saved_CPPFLAGS"
21385     rm "check_crypto_md.h"
21386   fi
21387
21388
21389   if test "$found_SHA512" != yes; then
21390     saved_CPPFLAGS="$CPPFLAGS"
21391     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21392     touch "check_crypto_md.h"
21393     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC" >&5
21394 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC... " >&6; }
21395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h.  */
21397
21398 #define ARCHIVE_SHA512_COMPILE_TEST
21399 #define ARCHIVE_CRYPTO_SHA512_LIBC
21400 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21401
21402 $(cat "$srcdir/libarchive/archive_digest.c")
21403
21404 int
21405 main(int argc, char **argv)
21406 {
21407   archive_sha512_ctx ctx;
21408   archive_sha512_init(&ctx);
21409   archive_sha512_update(&ctx, *argv, argc);
21410   archive_sha512_final(&ctx, NULL);
21411   return 0;
21412 }
21413
21414 _ACEOF
21415 if ac_fn_c_try_link "$LINENO"
21416 then :
21417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21418 printf "%s\n" "yes" >&6; }
21419       found_SHA512=yes
21420       found_LIBC=yes
21421
21422 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC 1" >>confdefs.h
21423
21424
21425 else $as_nop
21426    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21427 printf "%s\n" "no" >&6; }
21428 fi
21429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21430     conftest$ac_exeext conftest.$ac_ext
21431     CPPFLAGS="$saved_CPPFLAGS"
21432     rm "check_crypto_md.h"
21433   fi
21434
21435
21436   if test "$found_SHA512" != yes; then
21437     saved_CPPFLAGS="$CPPFLAGS"
21438     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21439     touch "check_crypto_md.h"
21440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2" >&5
21441 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC2... " >&6; }
21442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h.  */
21444
21445 #define ARCHIVE_SHA512_COMPILE_TEST
21446 #define ARCHIVE_CRYPTO_SHA512_LIBC2
21447 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21448
21449 $(cat "$srcdir/libarchive/archive_digest.c")
21450
21451 int
21452 main(int argc, char **argv)
21453 {
21454   archive_sha512_ctx ctx;
21455   archive_sha512_init(&ctx);
21456   archive_sha512_update(&ctx, *argv, argc);
21457   archive_sha512_final(&ctx, NULL);
21458   return 0;
21459 }
21460
21461 _ACEOF
21462 if ac_fn_c_try_link "$LINENO"
21463 then :
21464    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 printf "%s\n" "yes" >&6; }
21466       found_SHA512=yes
21467       found_LIBC2=yes
21468
21469 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC2 1" >>confdefs.h
21470
21471
21472 else $as_nop
21473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474 printf "%s\n" "no" >&6; }
21475 fi
21476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21477     conftest$ac_exeext conftest.$ac_ext
21478     CPPFLAGS="$saved_CPPFLAGS"
21479     rm "check_crypto_md.h"
21480   fi
21481
21482
21483   if test "$found_SHA512" != yes; then
21484     saved_CPPFLAGS="$CPPFLAGS"
21485     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21486     touch "check_crypto_md.h"
21487     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3" >&5
21488 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC3... " >&6; }
21489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h.  */
21491
21492 #define ARCHIVE_SHA512_COMPILE_TEST
21493 #define ARCHIVE_CRYPTO_SHA512_LIBC3
21494 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21495
21496 $(cat "$srcdir/libarchive/archive_digest.c")
21497
21498 int
21499 main(int argc, char **argv)
21500 {
21501   archive_sha512_ctx ctx;
21502   archive_sha512_init(&ctx);
21503   archive_sha512_update(&ctx, *argv, argc);
21504   archive_sha512_final(&ctx, NULL);
21505   return 0;
21506 }
21507
21508 _ACEOF
21509 if ac_fn_c_try_link "$LINENO"
21510 then :
21511    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21512 printf "%s\n" "yes" >&6; }
21513       found_SHA512=yes
21514       found_LIBC3=yes
21515
21516 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC3 1" >>confdefs.h
21517
21518
21519 else $as_nop
21520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521 printf "%s\n" "no" >&6; }
21522 fi
21523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21524     conftest$ac_exeext conftest.$ac_ext
21525     CPPFLAGS="$saved_CPPFLAGS"
21526     rm "check_crypto_md.h"
21527   fi
21528
21529
21530   if test "$found_SHA512" != yes; then
21531     saved_CPPFLAGS="$CPPFLAGS"
21532     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21533     touch "check_crypto_md.h"
21534     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM" >&5
21535 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM... " >&6; }
21536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h.  */
21538
21539 #define ARCHIVE_SHA512_COMPILE_TEST
21540 #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
21541 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21542
21543 $(cat "$srcdir/libarchive/archive_digest.c")
21544
21545 int
21546 main(int argc, char **argv)
21547 {
21548   archive_sha512_ctx ctx;
21549   archive_sha512_init(&ctx);
21550   archive_sha512_update(&ctx, *argv, argc);
21551   archive_sha512_final(&ctx, NULL);
21552   return 0;
21553 }
21554
21555 _ACEOF
21556 if ac_fn_c_try_link "$LINENO"
21557 then :
21558    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21560       found_SHA512=yes
21561       found_LIBSYSTEM=yes
21562
21563 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM 1" >>confdefs.h
21564
21565
21566 else $as_nop
21567    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 printf "%s\n" "no" >&6; }
21569 fi
21570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21571     conftest$ac_exeext conftest.$ac_ext
21572     CPPFLAGS="$saved_CPPFLAGS"
21573     rm "check_crypto_md.h"
21574   fi
21575
21576         ;;
21577 esac
21578
21579 if test "x$with_cng" != "xno"; then
21580            for ac_header in bcrypt.h
21581 do :
21582   ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#ifdef HAVE_WINDOWS_H
21583     # include <windows.h>
21584     #endif
21585
21586 "
21587 if test "x$ac_cv_header_bcrypt_h" = xyes
21588 then :
21589   printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
21590
21591         LIBS="$LIBS -lbcrypt"
21592
21593 fi
21594
21595 done
21596 fi
21597
21598 if test "x$with_mbedtls" = "xyes"; then
21599     ac_fn_c_check_header_compile "$LINENO" "mbedtls/aes.h" "ac_cv_header_mbedtls_aes_h" "$ac_includes_default"
21600 if test "x$ac_cv_header_mbedtls_aes_h" = xyes
21601 then :
21602   printf "%s\n" "#define HAVE_MBEDTLS_AES_H 1" >>confdefs.h
21603
21604 fi
21605 ac_fn_c_check_header_compile "$LINENO" "mbedtls/md.h" "ac_cv_header_mbedtls_md_h" "$ac_includes_default"
21606 if test "x$ac_cv_header_mbedtls_md_h" = xyes
21607 then :
21608   printf "%s\n" "#define HAVE_MBEDTLS_MD_H 1" >>confdefs.h
21609
21610 fi
21611 ac_fn_c_check_header_compile "$LINENO" "mbedtls/pkcs5.h" "ac_cv_header_mbedtls_pkcs5_h" "$ac_includes_default"
21612 if test "x$ac_cv_header_mbedtls_pkcs5_h" = xyes
21613 then :
21614   printf "%s\n" "#define HAVE_MBEDTLS_PKCS5_H 1" >>confdefs.h
21615
21616 fi
21617
21618     saved_LIBS=$LIBS
21619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_sha1_init in -lmbedcrypto" >&5
21620 printf %s "checking for mbedtls_sha1_init in -lmbedcrypto... " >&6; }
21621 if test ${ac_cv_lib_mbedcrypto_mbedtls_sha1_init+y}
21622 then :
21623   printf %s "(cached) " >&6
21624 else $as_nop
21625   ac_check_lib_save_LIBS=$LIBS
21626 LIBS="-lmbedcrypto  $LIBS"
21627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21628 /* end confdefs.h.  */
21629
21630 /* Override any GCC internal prototype to avoid an error.
21631    Use char because int might match the return type of a GCC
21632    builtin and then its argument prototype would still apply.  */
21633 char mbedtls_sha1_init ();
21634 int
21635 main (void)
21636 {
21637 return mbedtls_sha1_init ();
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 if ac_fn_c_try_link "$LINENO"
21643 then :
21644   ac_cv_lib_mbedcrypto_mbedtls_sha1_init=yes
21645 else $as_nop
21646   ac_cv_lib_mbedcrypto_mbedtls_sha1_init=no
21647 fi
21648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21649     conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21651 fi
21652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&5
21653 printf "%s\n" "$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&6; }
21654 if test "x$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" = xyes
21655 then :
21656   printf "%s\n" "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
21657
21658   LIBS="-lmbedcrypto $LIBS"
21659
21660 fi
21661
21662
21663   if test "$found_MD5" != yes; then
21664     saved_CPPFLAGS="$CPPFLAGS"
21665     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21666     touch "check_crypto_md.h"
21667     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS" >&5
21668 printf %s "checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS... " >&6; }
21669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h.  */
21671
21672 #define ARCHIVE_MD5_COMPILE_TEST
21673 #define ARCHIVE_CRYPTO_MD5_MBEDTLS
21674 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21675
21676 $(cat "$srcdir/libarchive/archive_digest.c")
21677
21678 int
21679 main(int argc, char **argv)
21680 {
21681   archive_md5_ctx ctx;
21682   archive_md5_init(&ctx);
21683   archive_md5_update(&ctx, *argv, argc);
21684   archive_md5_final(&ctx, NULL);
21685   return 0;
21686 }
21687
21688 _ACEOF
21689 if ac_fn_c_try_link "$LINENO"
21690 then :
21691    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21692 printf "%s\n" "yes" >&6; }
21693       found_MD5=yes
21694       found_MBEDTLS=yes
21695
21696 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_MBEDTLS 1" >>confdefs.h
21697
21698
21699 else $as_nop
21700    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 printf "%s\n" "no" >&6; }
21702 fi
21703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21704     conftest$ac_exeext conftest.$ac_ext
21705     CPPFLAGS="$saved_CPPFLAGS"
21706     rm "check_crypto_md.h"
21707   fi
21708
21709
21710   if test "$found_RMD160" != yes; then
21711     saved_CPPFLAGS="$CPPFLAGS"
21712     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21713     touch "check_crypto_md.h"
21714     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS" >&5
21715 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS... " >&6; }
21716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h.  */
21718
21719 #define ARCHIVE_RMD160_COMPILE_TEST
21720 #define ARCHIVE_CRYPTO_RMD160_MBEDTLS
21721 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21722
21723 $(cat "$srcdir/libarchive/archive_digest.c")
21724
21725 int
21726 main(int argc, char **argv)
21727 {
21728   archive_rmd160_ctx ctx;
21729   archive_rmd160_init(&ctx);
21730   archive_rmd160_update(&ctx, *argv, argc);
21731   archive_rmd160_final(&ctx, NULL);
21732   return 0;
21733 }
21734
21735 _ACEOF
21736 if ac_fn_c_try_link "$LINENO"
21737 then :
21738    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21739 printf "%s\n" "yes" >&6; }
21740       found_RMD160=yes
21741       found_MBEDTLS=yes
21742
21743 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_MBEDTLS 1" >>confdefs.h
21744
21745
21746 else $as_nop
21747    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 printf "%s\n" "no" >&6; }
21749 fi
21750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21751     conftest$ac_exeext conftest.$ac_ext
21752     CPPFLAGS="$saved_CPPFLAGS"
21753     rm "check_crypto_md.h"
21754   fi
21755
21756
21757   if test "$found_SHA1" != yes; then
21758     saved_CPPFLAGS="$CPPFLAGS"
21759     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21760     touch "check_crypto_md.h"
21761     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS" >&5
21762 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS... " >&6; }
21763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h.  */
21765
21766 #define ARCHIVE_SHA1_COMPILE_TEST
21767 #define ARCHIVE_CRYPTO_SHA1_MBEDTLS
21768 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21769
21770 $(cat "$srcdir/libarchive/archive_digest.c")
21771
21772 int
21773 main(int argc, char **argv)
21774 {
21775   archive_sha1_ctx ctx;
21776   archive_sha1_init(&ctx);
21777   archive_sha1_update(&ctx, *argv, argc);
21778   archive_sha1_final(&ctx, NULL);
21779   return 0;
21780 }
21781
21782 _ACEOF
21783 if ac_fn_c_try_link "$LINENO"
21784 then :
21785    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 printf "%s\n" "yes" >&6; }
21787       found_SHA1=yes
21788       found_MBEDTLS=yes
21789
21790 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_MBEDTLS 1" >>confdefs.h
21791
21792
21793 else $as_nop
21794    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 printf "%s\n" "no" >&6; }
21796 fi
21797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21798     conftest$ac_exeext conftest.$ac_ext
21799     CPPFLAGS="$saved_CPPFLAGS"
21800     rm "check_crypto_md.h"
21801   fi
21802
21803
21804   if test "$found_SHA256" != yes; then
21805     saved_CPPFLAGS="$CPPFLAGS"
21806     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21807     touch "check_crypto_md.h"
21808     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS" >&5
21809 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS... " >&6; }
21810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h.  */
21812
21813 #define ARCHIVE_SHA256_COMPILE_TEST
21814 #define ARCHIVE_CRYPTO_SHA256_MBEDTLS
21815 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21816
21817 $(cat "$srcdir/libarchive/archive_digest.c")
21818
21819 int
21820 main(int argc, char **argv)
21821 {
21822   archive_sha256_ctx ctx;
21823   archive_sha256_init(&ctx);
21824   archive_sha256_update(&ctx, *argv, argc);
21825   archive_sha256_final(&ctx, NULL);
21826   return 0;
21827 }
21828
21829 _ACEOF
21830 if ac_fn_c_try_link "$LINENO"
21831 then :
21832    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21833 printf "%s\n" "yes" >&6; }
21834       found_SHA256=yes
21835       found_MBEDTLS=yes
21836
21837 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_MBEDTLS 1" >>confdefs.h
21838
21839
21840 else $as_nop
21841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 printf "%s\n" "no" >&6; }
21843 fi
21844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21845     conftest$ac_exeext conftest.$ac_ext
21846     CPPFLAGS="$saved_CPPFLAGS"
21847     rm "check_crypto_md.h"
21848   fi
21849
21850
21851   if test "$found_SHA384" != yes; then
21852     saved_CPPFLAGS="$CPPFLAGS"
21853     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21854     touch "check_crypto_md.h"
21855     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS" >&5
21856 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS... " >&6; }
21857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h.  */
21859
21860 #define ARCHIVE_SHA384_COMPILE_TEST
21861 #define ARCHIVE_CRYPTO_SHA384_MBEDTLS
21862 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21863
21864 $(cat "$srcdir/libarchive/archive_digest.c")
21865
21866 int
21867 main(int argc, char **argv)
21868 {
21869   archive_sha384_ctx ctx;
21870   archive_sha384_init(&ctx);
21871   archive_sha384_update(&ctx, *argv, argc);
21872   archive_sha384_final(&ctx, NULL);
21873   return 0;
21874 }
21875
21876 _ACEOF
21877 if ac_fn_c_try_link "$LINENO"
21878 then :
21879    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 printf "%s\n" "yes" >&6; }
21881       found_SHA384=yes
21882       found_MBEDTLS=yes
21883
21884 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_MBEDTLS 1" >>confdefs.h
21885
21886
21887 else $as_nop
21888    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889 printf "%s\n" "no" >&6; }
21890 fi
21891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21892     conftest$ac_exeext conftest.$ac_ext
21893     CPPFLAGS="$saved_CPPFLAGS"
21894     rm "check_crypto_md.h"
21895   fi
21896
21897
21898   if test "$found_SHA512" != yes; then
21899     saved_CPPFLAGS="$CPPFLAGS"
21900     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21901     touch "check_crypto_md.h"
21902     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS" >&5
21903 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS... " >&6; }
21904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h.  */
21906
21907 #define ARCHIVE_SHA512_COMPILE_TEST
21908 #define ARCHIVE_CRYPTO_SHA512_MBEDTLS
21909 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21910
21911 $(cat "$srcdir/libarchive/archive_digest.c")
21912
21913 int
21914 main(int argc, char **argv)
21915 {
21916   archive_sha512_ctx ctx;
21917   archive_sha512_init(&ctx);
21918   archive_sha512_update(&ctx, *argv, argc);
21919   archive_sha512_final(&ctx, NULL);
21920   return 0;
21921 }
21922
21923 _ACEOF
21924 if ac_fn_c_try_link "$LINENO"
21925 then :
21926    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21927 printf "%s\n" "yes" >&6; }
21928       found_SHA512=yes
21929       found_MBEDTLS=yes
21930
21931 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_MBEDTLS 1" >>confdefs.h
21932
21933
21934 else $as_nop
21935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936 printf "%s\n" "no" >&6; }
21937 fi
21938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21939     conftest$ac_exeext conftest.$ac_ext
21940     CPPFLAGS="$saved_CPPFLAGS"
21941     rm "check_crypto_md.h"
21942   fi
21943
21944     if test "x$found_MBEDTLS" != "xyes"; then
21945       LIBS=$saved_LIBS
21946     fi
21947 fi
21948
21949 if test "x$with_nettle" = "xyes"; then
21950     ac_fn_c_check_header_compile "$LINENO" "nettle/md5.h" "ac_cv_header_nettle_md5_h" "$ac_includes_default"
21951 if test "x$ac_cv_header_nettle_md5_h" = xyes
21952 then :
21953   printf "%s\n" "#define HAVE_NETTLE_MD5_H 1" >>confdefs.h
21954
21955 fi
21956 ac_fn_c_check_header_compile "$LINENO" "nettle/ripemd160.h" "ac_cv_header_nettle_ripemd160_h" "$ac_includes_default"
21957 if test "x$ac_cv_header_nettle_ripemd160_h" = xyes
21958 then :
21959   printf "%s\n" "#define HAVE_NETTLE_RIPEMD160_H 1" >>confdefs.h
21960
21961 fi
21962 ac_fn_c_check_header_compile "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
21963 if test "x$ac_cv_header_nettle_sha_h" = xyes
21964 then :
21965   printf "%s\n" "#define HAVE_NETTLE_SHA_H 1" >>confdefs.h
21966
21967 fi
21968
21969     ac_fn_c_check_header_compile "$LINENO" "nettle/pbkdf2.h" "ac_cv_header_nettle_pbkdf2_h" "$ac_includes_default"
21970 if test "x$ac_cv_header_nettle_pbkdf2_h" = xyes
21971 then :
21972   printf "%s\n" "#define HAVE_NETTLE_PBKDF2_H 1" >>confdefs.h
21973
21974 fi
21975 ac_fn_c_check_header_compile "$LINENO" "nettle/aes.h" "ac_cv_header_nettle_aes_h" "$ac_includes_default"
21976 if test "x$ac_cv_header_nettle_aes_h" = xyes
21977 then :
21978   printf "%s\n" "#define HAVE_NETTLE_AES_H 1" >>confdefs.h
21979
21980 fi
21981 ac_fn_c_check_header_compile "$LINENO" "nettle/hmac.h" "ac_cv_header_nettle_hmac_h" "$ac_includes_default"
21982 if test "x$ac_cv_header_nettle_hmac_h" = xyes
21983 then :
21984   printf "%s\n" "#define HAVE_NETTLE_HMAC_H 1" >>confdefs.h
21985
21986 fi
21987
21988     saved_LIBS=$LIBS
21989     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
21990 printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
21991 if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
21992 then :
21993   printf %s "(cached) " >&6
21994 else $as_nop
21995   ac_check_lib_save_LIBS=$LIBS
21996 LIBS="-lnettle  $LIBS"
21997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h.  */
21999
22000 /* Override any GCC internal prototype to avoid an error.
22001    Use char because int might match the return type of a GCC
22002    builtin and then its argument prototype would still apply.  */
22003 char nettle_sha1_init ();
22004 int
22005 main (void)
22006 {
22007 return nettle_sha1_init ();
22008   ;
22009   return 0;
22010 }
22011 _ACEOF
22012 if ac_fn_c_try_link "$LINENO"
22013 then :
22014   ac_cv_lib_nettle_nettle_sha1_init=yes
22015 else $as_nop
22016   ac_cv_lib_nettle_nettle_sha1_init=no
22017 fi
22018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22019     conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22021 fi
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
22023 printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
22024 if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
22025 then :
22026   printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h
22027
22028   LIBS="-lnettle $LIBS"
22029
22030 fi
22031
22032
22033   if test "$found_MD5" != yes; then
22034     saved_CPPFLAGS="$CPPFLAGS"
22035     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22036     touch "check_crypto_md.h"
22037     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_NETTLE" >&5
22038 printf %s "checking support for ARCHIVE_CRYPTO_MD5_NETTLE... " >&6; }
22039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h.  */
22041
22042 #define ARCHIVE_MD5_COMPILE_TEST
22043 #define ARCHIVE_CRYPTO_MD5_NETTLE
22044 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22045
22046 $(cat "$srcdir/libarchive/archive_digest.c")
22047
22048 int
22049 main(int argc, char **argv)
22050 {
22051   archive_md5_ctx ctx;
22052   archive_md5_init(&ctx);
22053   archive_md5_update(&ctx, *argv, argc);
22054   archive_md5_final(&ctx, NULL);
22055   return 0;
22056 }
22057
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"
22060 then :
22061    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22062 printf "%s\n" "yes" >&6; }
22063       found_MD5=yes
22064       found_NETTLE=yes
22065
22066 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_NETTLE 1" >>confdefs.h
22067
22068
22069 else $as_nop
22070    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22071 printf "%s\n" "no" >&6; }
22072 fi
22073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22074     conftest$ac_exeext conftest.$ac_ext
22075     CPPFLAGS="$saved_CPPFLAGS"
22076     rm "check_crypto_md.h"
22077   fi
22078
22079
22080   if test "$found_RMD160" != yes; then
22081     saved_CPPFLAGS="$CPPFLAGS"
22082     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22083     touch "check_crypto_md.h"
22084     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_NETTLE" >&5
22085 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_NETTLE... " >&6; }
22086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h.  */
22088
22089 #define ARCHIVE_RMD160_COMPILE_TEST
22090 #define ARCHIVE_CRYPTO_RMD160_NETTLE
22091 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22092
22093 $(cat "$srcdir/libarchive/archive_digest.c")
22094
22095 int
22096 main(int argc, char **argv)
22097 {
22098   archive_rmd160_ctx ctx;
22099   archive_rmd160_init(&ctx);
22100   archive_rmd160_update(&ctx, *argv, argc);
22101   archive_rmd160_final(&ctx, NULL);
22102   return 0;
22103 }
22104
22105 _ACEOF
22106 if ac_fn_c_try_link "$LINENO"
22107 then :
22108    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22109 printf "%s\n" "yes" >&6; }
22110       found_RMD160=yes
22111       found_NETTLE=yes
22112
22113 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_NETTLE 1" >>confdefs.h
22114
22115
22116 else $as_nop
22117    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 printf "%s\n" "no" >&6; }
22119 fi
22120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22121     conftest$ac_exeext conftest.$ac_ext
22122     CPPFLAGS="$saved_CPPFLAGS"
22123     rm "check_crypto_md.h"
22124   fi
22125
22126
22127   if test "$found_SHA1" != yes; then
22128     saved_CPPFLAGS="$CPPFLAGS"
22129     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22130     touch "check_crypto_md.h"
22131     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_NETTLE" >&5
22132 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_NETTLE... " >&6; }
22133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h.  */
22135
22136 #define ARCHIVE_SHA1_COMPILE_TEST
22137 #define ARCHIVE_CRYPTO_SHA1_NETTLE
22138 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22139
22140 $(cat "$srcdir/libarchive/archive_digest.c")
22141
22142 int
22143 main(int argc, char **argv)
22144 {
22145   archive_sha1_ctx ctx;
22146   archive_sha1_init(&ctx);
22147   archive_sha1_update(&ctx, *argv, argc);
22148   archive_sha1_final(&ctx, NULL);
22149   return 0;
22150 }
22151
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"
22154 then :
22155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 printf "%s\n" "yes" >&6; }
22157       found_SHA1=yes
22158       found_NETTLE=yes
22159
22160 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_NETTLE 1" >>confdefs.h
22161
22162
22163 else $as_nop
22164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22165 printf "%s\n" "no" >&6; }
22166 fi
22167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22168     conftest$ac_exeext conftest.$ac_ext
22169     CPPFLAGS="$saved_CPPFLAGS"
22170     rm "check_crypto_md.h"
22171   fi
22172
22173
22174   if test "$found_SHA256" != yes; then
22175     saved_CPPFLAGS="$CPPFLAGS"
22176     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22177     touch "check_crypto_md.h"
22178     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_NETTLE" >&5
22179 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_NETTLE... " >&6; }
22180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h.  */
22182
22183 #define ARCHIVE_SHA256_COMPILE_TEST
22184 #define ARCHIVE_CRYPTO_SHA256_NETTLE
22185 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22186
22187 $(cat "$srcdir/libarchive/archive_digest.c")
22188
22189 int
22190 main(int argc, char **argv)
22191 {
22192   archive_sha256_ctx ctx;
22193   archive_sha256_init(&ctx);
22194   archive_sha256_update(&ctx, *argv, argc);
22195   archive_sha256_final(&ctx, NULL);
22196   return 0;
22197 }
22198
22199 _ACEOF
22200 if ac_fn_c_try_link "$LINENO"
22201 then :
22202    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22203 printf "%s\n" "yes" >&6; }
22204       found_SHA256=yes
22205       found_NETTLE=yes
22206
22207 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_NETTLE 1" >>confdefs.h
22208
22209
22210 else $as_nop
22211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 printf "%s\n" "no" >&6; }
22213 fi
22214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22215     conftest$ac_exeext conftest.$ac_ext
22216     CPPFLAGS="$saved_CPPFLAGS"
22217     rm "check_crypto_md.h"
22218   fi
22219
22220
22221   if test "$found_SHA384" != yes; then
22222     saved_CPPFLAGS="$CPPFLAGS"
22223     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22224     touch "check_crypto_md.h"
22225     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_NETTLE" >&5
22226 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_NETTLE... " >&6; }
22227     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228 /* end confdefs.h.  */
22229
22230 #define ARCHIVE_SHA384_COMPILE_TEST
22231 #define ARCHIVE_CRYPTO_SHA384_NETTLE
22232 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22233
22234 $(cat "$srcdir/libarchive/archive_digest.c")
22235
22236 int
22237 main(int argc, char **argv)
22238 {
22239   archive_sha384_ctx ctx;
22240   archive_sha384_init(&ctx);
22241   archive_sha384_update(&ctx, *argv, argc);
22242   archive_sha384_final(&ctx, NULL);
22243   return 0;
22244 }
22245
22246 _ACEOF
22247 if ac_fn_c_try_link "$LINENO"
22248 then :
22249    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22250 printf "%s\n" "yes" >&6; }
22251       found_SHA384=yes
22252       found_NETTLE=yes
22253
22254 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_NETTLE 1" >>confdefs.h
22255
22256
22257 else $as_nop
22258    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 printf "%s\n" "no" >&6; }
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22262     conftest$ac_exeext conftest.$ac_ext
22263     CPPFLAGS="$saved_CPPFLAGS"
22264     rm "check_crypto_md.h"
22265   fi
22266
22267
22268   if test "$found_SHA512" != yes; then
22269     saved_CPPFLAGS="$CPPFLAGS"
22270     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22271     touch "check_crypto_md.h"
22272     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_NETTLE" >&5
22273 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_NETTLE... " >&6; }
22274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h.  */
22276
22277 #define ARCHIVE_SHA512_COMPILE_TEST
22278 #define ARCHIVE_CRYPTO_SHA512_NETTLE
22279 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22280
22281 $(cat "$srcdir/libarchive/archive_digest.c")
22282
22283 int
22284 main(int argc, char **argv)
22285 {
22286   archive_sha512_ctx ctx;
22287   archive_sha512_init(&ctx);
22288   archive_sha512_update(&ctx, *argv, argc);
22289   archive_sha512_final(&ctx, NULL);
22290   return 0;
22291 }
22292
22293 _ACEOF
22294 if ac_fn_c_try_link "$LINENO"
22295 then :
22296    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297 printf "%s\n" "yes" >&6; }
22298       found_SHA512=yes
22299       found_NETTLE=yes
22300
22301 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_NETTLE 1" >>confdefs.h
22302
22303
22304 else $as_nop
22305    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306 printf "%s\n" "no" >&6; }
22307 fi
22308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22309     conftest$ac_exeext conftest.$ac_ext
22310     CPPFLAGS="$saved_CPPFLAGS"
22311     rm "check_crypto_md.h"
22312   fi
22313
22314     if test "x$found_NETTLE" != "xyes"; then
22315       LIBS=$saved_LIBS
22316     fi
22317 fi
22318
22319 if test "x$with_openssl" != "xno"; then
22320     ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
22321 if test "x$ac_cv_header_openssl_evp_h" = xyes
22322 then :
22323   printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
22324
22325 fi
22326
22327     saved_LIBS=$LIBS
22328     LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libssl libcrypto"
22329     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -lcrypto" >&5
22330 printf %s "checking for OPENSSL_config in -lcrypto... " >&6; }
22331 if test ${ac_cv_lib_crypto_OPENSSL_config+y}
22332 then :
22333   printf %s "(cached) " >&6
22334 else $as_nop
22335   ac_check_lib_save_LIBS=$LIBS
22336 LIBS="-lcrypto  $LIBS"
22337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h.  */
22339
22340 /* Override any GCC internal prototype to avoid an error.
22341    Use char because int might match the return type of a GCC
22342    builtin and then its argument prototype would still apply.  */
22343 char OPENSSL_config ();
22344 int
22345 main (void)
22346 {
22347 return OPENSSL_config ();
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 if ac_fn_c_try_link "$LINENO"
22353 then :
22354   ac_cv_lib_crypto_OPENSSL_config=yes
22355 else $as_nop
22356   ac_cv_lib_crypto_OPENSSL_config=no
22357 fi
22358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22359     conftest$ac_exeext conftest.$ac_ext
22360 LIBS=$ac_check_lib_save_LIBS
22361 fi
22362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_config" >&5
22363 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_config" >&6; }
22364 if test "x$ac_cv_lib_crypto_OPENSSL_config" = xyes
22365 then :
22366   printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22367
22368   LIBS="-lcrypto $LIBS"
22369
22370 fi
22371
22372
22373   if test "$found_MD5" != yes; then
22374     saved_CPPFLAGS="$CPPFLAGS"
22375     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22376     touch "check_crypto_md.h"
22377     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_OPENSSL" >&5
22378 printf %s "checking support for ARCHIVE_CRYPTO_MD5_OPENSSL... " >&6; }
22379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h.  */
22381
22382 #define ARCHIVE_MD5_COMPILE_TEST
22383 #define ARCHIVE_CRYPTO_MD5_OPENSSL
22384 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22385
22386 $(cat "$srcdir/libarchive/archive_digest.c")
22387
22388 int
22389 main(int argc, char **argv)
22390 {
22391   archive_md5_ctx ctx;
22392   archive_md5_init(&ctx);
22393   archive_md5_update(&ctx, *argv, argc);
22394   archive_md5_final(&ctx, NULL);
22395   return 0;
22396 }
22397
22398 _ACEOF
22399 if ac_fn_c_try_link "$LINENO"
22400 then :
22401    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22402 printf "%s\n" "yes" >&6; }
22403       found_MD5=yes
22404       found_OPENSSL=yes
22405
22406 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_OPENSSL 1" >>confdefs.h
22407
22408
22409 else $as_nop
22410    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 printf "%s\n" "no" >&6; }
22412 fi
22413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22414     conftest$ac_exeext conftest.$ac_ext
22415     CPPFLAGS="$saved_CPPFLAGS"
22416     rm "check_crypto_md.h"
22417   fi
22418
22419
22420   if test "$found_RMD160" != yes; then
22421     saved_CPPFLAGS="$CPPFLAGS"
22422     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22423     touch "check_crypto_md.h"
22424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL" >&5
22425 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL... " >&6; }
22426     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427 /* end confdefs.h.  */
22428
22429 #define ARCHIVE_RMD160_COMPILE_TEST
22430 #define ARCHIVE_CRYPTO_RMD160_OPENSSL
22431 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22432
22433 $(cat "$srcdir/libarchive/archive_digest.c")
22434
22435 int
22436 main(int argc, char **argv)
22437 {
22438   archive_rmd160_ctx ctx;
22439   archive_rmd160_init(&ctx);
22440   archive_rmd160_update(&ctx, *argv, argc);
22441   archive_rmd160_final(&ctx, NULL);
22442   return 0;
22443 }
22444
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"
22447 then :
22448    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22449 printf "%s\n" "yes" >&6; }
22450       found_RMD160=yes
22451       found_OPENSSL=yes
22452
22453 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_OPENSSL 1" >>confdefs.h
22454
22455
22456 else $as_nop
22457    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 printf "%s\n" "no" >&6; }
22459 fi
22460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22461     conftest$ac_exeext conftest.$ac_ext
22462     CPPFLAGS="$saved_CPPFLAGS"
22463     rm "check_crypto_md.h"
22464   fi
22465
22466
22467   if test "$found_SHA1" != yes; then
22468     saved_CPPFLAGS="$CPPFLAGS"
22469     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22470     touch "check_crypto_md.h"
22471     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL" >&5
22472 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL... " >&6; }
22473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h.  */
22475
22476 #define ARCHIVE_SHA1_COMPILE_TEST
22477 #define ARCHIVE_CRYPTO_SHA1_OPENSSL
22478 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22479
22480 $(cat "$srcdir/libarchive/archive_digest.c")
22481
22482 int
22483 main(int argc, char **argv)
22484 {
22485   archive_sha1_ctx ctx;
22486   archive_sha1_init(&ctx);
22487   archive_sha1_update(&ctx, *argv, argc);
22488   archive_sha1_final(&ctx, NULL);
22489   return 0;
22490 }
22491
22492 _ACEOF
22493 if ac_fn_c_try_link "$LINENO"
22494 then :
22495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22496 printf "%s\n" "yes" >&6; }
22497       found_SHA1=yes
22498       found_OPENSSL=yes
22499
22500 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_OPENSSL 1" >>confdefs.h
22501
22502
22503 else $as_nop
22504    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22505 printf "%s\n" "no" >&6; }
22506 fi
22507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22508     conftest$ac_exeext conftest.$ac_ext
22509     CPPFLAGS="$saved_CPPFLAGS"
22510     rm "check_crypto_md.h"
22511   fi
22512
22513
22514   if test "$found_SHA256" != yes; then
22515     saved_CPPFLAGS="$CPPFLAGS"
22516     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22517     touch "check_crypto_md.h"
22518     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL" >&5
22519 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL... " >&6; }
22520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h.  */
22522
22523 #define ARCHIVE_SHA256_COMPILE_TEST
22524 #define ARCHIVE_CRYPTO_SHA256_OPENSSL
22525 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22526
22527 $(cat "$srcdir/libarchive/archive_digest.c")
22528
22529 int
22530 main(int argc, char **argv)
22531 {
22532   archive_sha256_ctx ctx;
22533   archive_sha256_init(&ctx);
22534   archive_sha256_update(&ctx, *argv, argc);
22535   archive_sha256_final(&ctx, NULL);
22536   return 0;
22537 }
22538
22539 _ACEOF
22540 if ac_fn_c_try_link "$LINENO"
22541 then :
22542    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22543 printf "%s\n" "yes" >&6; }
22544       found_SHA256=yes
22545       found_OPENSSL=yes
22546
22547 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_OPENSSL 1" >>confdefs.h
22548
22549
22550 else $as_nop
22551    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552 printf "%s\n" "no" >&6; }
22553 fi
22554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22555     conftest$ac_exeext conftest.$ac_ext
22556     CPPFLAGS="$saved_CPPFLAGS"
22557     rm "check_crypto_md.h"
22558   fi
22559
22560
22561   if test "$found_SHA384" != yes; then
22562     saved_CPPFLAGS="$CPPFLAGS"
22563     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22564     touch "check_crypto_md.h"
22565     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL" >&5
22566 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL... " >&6; }
22567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h.  */
22569
22570 #define ARCHIVE_SHA384_COMPILE_TEST
22571 #define ARCHIVE_CRYPTO_SHA384_OPENSSL
22572 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22573
22574 $(cat "$srcdir/libarchive/archive_digest.c")
22575
22576 int
22577 main(int argc, char **argv)
22578 {
22579   archive_sha384_ctx ctx;
22580   archive_sha384_init(&ctx);
22581   archive_sha384_update(&ctx, *argv, argc);
22582   archive_sha384_final(&ctx, NULL);
22583   return 0;
22584 }
22585
22586 _ACEOF
22587 if ac_fn_c_try_link "$LINENO"
22588 then :
22589    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22590 printf "%s\n" "yes" >&6; }
22591       found_SHA384=yes
22592       found_OPENSSL=yes
22593
22594 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_OPENSSL 1" >>confdefs.h
22595
22596
22597 else $as_nop
22598    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22599 printf "%s\n" "no" >&6; }
22600 fi
22601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22602     conftest$ac_exeext conftest.$ac_ext
22603     CPPFLAGS="$saved_CPPFLAGS"
22604     rm "check_crypto_md.h"
22605   fi
22606
22607
22608   if test "$found_SHA512" != yes; then
22609     saved_CPPFLAGS="$CPPFLAGS"
22610     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22611     touch "check_crypto_md.h"
22612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL" >&5
22613 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL... " >&6; }
22614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h.  */
22616
22617 #define ARCHIVE_SHA512_COMPILE_TEST
22618 #define ARCHIVE_CRYPTO_SHA512_OPENSSL
22619 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22620
22621 $(cat "$srcdir/libarchive/archive_digest.c")
22622
22623 int
22624 main(int argc, char **argv)
22625 {
22626   archive_sha512_ctx ctx;
22627   archive_sha512_init(&ctx);
22628   archive_sha512_update(&ctx, *argv, argc);
22629   archive_sha512_final(&ctx, NULL);
22630   return 0;
22631 }
22632
22633 _ACEOF
22634 if ac_fn_c_try_link "$LINENO"
22635 then :
22636    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 printf "%s\n" "yes" >&6; }
22638       found_SHA512=yes
22639       found_OPENSSL=yes
22640
22641 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_OPENSSL 1" >>confdefs.h
22642
22643
22644 else $as_nop
22645    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646 printf "%s\n" "no" >&6; }
22647 fi
22648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22649     conftest$ac_exeext conftest.$ac_ext
22650     CPPFLAGS="$saved_CPPFLAGS"
22651     rm "check_crypto_md.h"
22652   fi
22653
22654     ac_fn_c_check_func "$LINENO" "PKCS5_PBKDF2_HMAC_SHA1" "ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1"
22655 if test "x$ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1" = xyes
22656 then :
22657   printf "%s\n" "#define HAVE_PKCS5_PBKDF2_HMAC_SHA1 1" >>confdefs.h
22658
22659 fi
22660
22661 fi
22662
22663
22664
22665 # Probe libmd AFTER OpenSSL/libcrypto.
22666 # The two are incompatible and OpenSSL is more complete.
22667 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
22668 if test "x$ac_cv_header_md5_h" = xyes
22669 then :
22670   printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
22671
22672 fi
22673 ac_fn_c_check_header_compile "$LINENO" "ripemd.h" "ac_cv_header_ripemd_h" "$ac_includes_default"
22674 if test "x$ac_cv_header_ripemd_h" = xyes
22675 then :
22676   printf "%s\n" "#define HAVE_RIPEMD_H 1" >>confdefs.h
22677
22678 fi
22679 ac_fn_c_check_header_compile "$LINENO" "sha.h" "ac_cv_header_sha_h" "$ac_includes_default"
22680 if test "x$ac_cv_header_sha_h" = xyes
22681 then :
22682   printf "%s\n" "#define HAVE_SHA_H 1" >>confdefs.h
22683
22684 fi
22685 ac_fn_c_check_header_compile "$LINENO" "sha256.h" "ac_cv_header_sha256_h" "$ac_includes_default"
22686 if test "x$ac_cv_header_sha256_h" = xyes
22687 then :
22688   printf "%s\n" "#define HAVE_SHA256_H 1" >>confdefs.h
22689
22690 fi
22691 ac_fn_c_check_header_compile "$LINENO" "sha512.h" "ac_cv_header_sha512_h" "$ac_includes_default"
22692 if test "x$ac_cv_header_sha512_h" = xyes
22693 then :
22694   printf "%s\n" "#define HAVE_SHA512_H 1" >>confdefs.h
22695
22696 fi
22697
22698 saved_LIBS=$LIBS
22699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
22700 printf %s "checking for MD5Init in -lmd... " >&6; }
22701 if test ${ac_cv_lib_md_MD5Init+y}
22702 then :
22703   printf %s "(cached) " >&6
22704 else $as_nop
22705   ac_check_lib_save_LIBS=$LIBS
22706 LIBS="-lmd  $LIBS"
22707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22708 /* end confdefs.h.  */
22709
22710 /* Override any GCC internal prototype to avoid an error.
22711    Use char because int might match the return type of a GCC
22712    builtin and then its argument prototype would still apply.  */
22713 char MD5Init ();
22714 int
22715 main (void)
22716 {
22717 return MD5Init ();
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 if ac_fn_c_try_link "$LINENO"
22723 then :
22724   ac_cv_lib_md_MD5Init=yes
22725 else $as_nop
22726   ac_cv_lib_md_MD5Init=no
22727 fi
22728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22729     conftest$ac_exeext conftest.$ac_ext
22730 LIBS=$ac_check_lib_save_LIBS
22731 fi
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
22733 printf "%s\n" "$ac_cv_lib_md_MD5Init" >&6; }
22734 if test "x$ac_cv_lib_md_MD5Init" = xyes
22735 then :
22736   printf "%s\n" "#define HAVE_LIBMD 1" >>confdefs.h
22737
22738   LIBS="-lmd $LIBS"
22739
22740 fi
22741
22742
22743   if test "$found_MD5" != yes; then
22744     saved_CPPFLAGS="$CPPFLAGS"
22745     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22746     touch "check_crypto_md.h"
22747     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBMD" >&5
22748 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBMD... " >&6; }
22749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h.  */
22751
22752 #define ARCHIVE_MD5_COMPILE_TEST
22753 #define ARCHIVE_CRYPTO_MD5_LIBMD
22754 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22755
22756 $(cat "$srcdir/libarchive/archive_digest.c")
22757
22758 int
22759 main(int argc, char **argv)
22760 {
22761   archive_md5_ctx ctx;
22762   archive_md5_init(&ctx);
22763   archive_md5_update(&ctx, *argv, argc);
22764   archive_md5_final(&ctx, NULL);
22765   return 0;
22766 }
22767
22768 _ACEOF
22769 if ac_fn_c_try_link "$LINENO"
22770 then :
22771    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22772 printf "%s\n" "yes" >&6; }
22773       found_MD5=yes
22774       found_LIBMD=yes
22775
22776 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBMD 1" >>confdefs.h
22777
22778
22779 else $as_nop
22780    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22781 printf "%s\n" "no" >&6; }
22782 fi
22783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22784     conftest$ac_exeext conftest.$ac_ext
22785     CPPFLAGS="$saved_CPPFLAGS"
22786     rm "check_crypto_md.h"
22787   fi
22788
22789
22790   if test "$found_RMD160" != yes; then
22791     saved_CPPFLAGS="$CPPFLAGS"
22792     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22793     touch "check_crypto_md.h"
22794     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD" >&5
22795 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBMD... " >&6; }
22796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h.  */
22798
22799 #define ARCHIVE_RMD160_COMPILE_TEST
22800 #define ARCHIVE_CRYPTO_RMD160_LIBMD
22801 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22802
22803 $(cat "$srcdir/libarchive/archive_digest.c")
22804
22805 int
22806 main(int argc, char **argv)
22807 {
22808   archive_rmd160_ctx ctx;
22809   archive_rmd160_init(&ctx);
22810   archive_rmd160_update(&ctx, *argv, argc);
22811   archive_rmd160_final(&ctx, NULL);
22812   return 0;
22813 }
22814
22815 _ACEOF
22816 if ac_fn_c_try_link "$LINENO"
22817 then :
22818    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819 printf "%s\n" "yes" >&6; }
22820       found_RMD160=yes
22821       found_LIBMD=yes
22822
22823 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBMD 1" >>confdefs.h
22824
22825
22826 else $as_nop
22827    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828 printf "%s\n" "no" >&6; }
22829 fi
22830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22831     conftest$ac_exeext conftest.$ac_ext
22832     CPPFLAGS="$saved_CPPFLAGS"
22833     rm "check_crypto_md.h"
22834   fi
22835
22836
22837   if test "$found_SHA1" != yes; then
22838     saved_CPPFLAGS="$CPPFLAGS"
22839     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22840     touch "check_crypto_md.h"
22841     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD" >&5
22842 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBMD... " >&6; }
22843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h.  */
22845
22846 #define ARCHIVE_SHA1_COMPILE_TEST
22847 #define ARCHIVE_CRYPTO_SHA1_LIBMD
22848 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22849
22850 $(cat "$srcdir/libarchive/archive_digest.c")
22851
22852 int
22853 main(int argc, char **argv)
22854 {
22855   archive_sha1_ctx ctx;
22856   archive_sha1_init(&ctx);
22857   archive_sha1_update(&ctx, *argv, argc);
22858   archive_sha1_final(&ctx, NULL);
22859   return 0;
22860 }
22861
22862 _ACEOF
22863 if ac_fn_c_try_link "$LINENO"
22864 then :
22865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22866 printf "%s\n" "yes" >&6; }
22867       found_SHA1=yes
22868       found_LIBMD=yes
22869
22870 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBMD 1" >>confdefs.h
22871
22872
22873 else $as_nop
22874    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875 printf "%s\n" "no" >&6; }
22876 fi
22877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22878     conftest$ac_exeext conftest.$ac_ext
22879     CPPFLAGS="$saved_CPPFLAGS"
22880     rm "check_crypto_md.h"
22881   fi
22882
22883
22884   if test "$found_SHA256" != yes; then
22885     saved_CPPFLAGS="$CPPFLAGS"
22886     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22887     touch "check_crypto_md.h"
22888     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD" >&5
22889 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBMD... " >&6; }
22890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22891 /* end confdefs.h.  */
22892
22893 #define ARCHIVE_SHA256_COMPILE_TEST
22894 #define ARCHIVE_CRYPTO_SHA256_LIBMD
22895 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22896
22897 $(cat "$srcdir/libarchive/archive_digest.c")
22898
22899 int
22900 main(int argc, char **argv)
22901 {
22902   archive_sha256_ctx ctx;
22903   archive_sha256_init(&ctx);
22904   archive_sha256_update(&ctx, *argv, argc);
22905   archive_sha256_final(&ctx, NULL);
22906   return 0;
22907 }
22908
22909 _ACEOF
22910 if ac_fn_c_try_link "$LINENO"
22911 then :
22912    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22913 printf "%s\n" "yes" >&6; }
22914       found_SHA256=yes
22915       found_LIBMD=yes
22916
22917 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBMD 1" >>confdefs.h
22918
22919
22920 else $as_nop
22921    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922 printf "%s\n" "no" >&6; }
22923 fi
22924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22925     conftest$ac_exeext conftest.$ac_ext
22926     CPPFLAGS="$saved_CPPFLAGS"
22927     rm "check_crypto_md.h"
22928   fi
22929
22930
22931   if test "$found_SHA512" != yes; then
22932     saved_CPPFLAGS="$CPPFLAGS"
22933     CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22934     touch "check_crypto_md.h"
22935     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD" >&5
22936 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBMD... " >&6; }
22937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h.  */
22939
22940 #define ARCHIVE_SHA512_COMPILE_TEST
22941 #define ARCHIVE_CRYPTO_SHA512_LIBMD
22942 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22943
22944 $(cat "$srcdir/libarchive/archive_digest.c")
22945
22946 int
22947 main(int argc, char **argv)
22948 {
22949   archive_sha512_ctx ctx;
22950   archive_sha512_init(&ctx);
22951   archive_sha512_update(&ctx, *argv, argc);
22952   archive_sha512_final(&ctx, NULL);
22953   return 0;
22954 }
22955
22956 _ACEOF
22957 if ac_fn_c_try_link "$LINENO"
22958 then :
22959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22960 printf "%s\n" "yes" >&6; }
22961       found_SHA512=yes
22962       found_LIBMD=yes
22963
22964 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBMD 1" >>confdefs.h
22965
22966
22967 else $as_nop
22968    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22969 printf "%s\n" "no" >&6; }
22970 fi
22971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22972     conftest$ac_exeext conftest.$ac_ext
22973     CPPFLAGS="$saved_CPPFLAGS"
22974     rm "check_crypto_md.h"
22975   fi
22976
22977 if test "x$found_LIBMD" != "xyes"; then
22978   LIBS=$saved_LIBS
22979 fi
22980
22981 case "$host_os" in
22982   *mingw* | *cygwin* | *msys*)
22983
22984   if test "$found_MD5" != yes; then
22985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_WIN" >&5
22986 printf %s "checking support for ARCHIVE_CRYPTO_MD5_WIN... " >&6; }
22987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22988 /* end confdefs.h.  */
22989
22990 #define ARCHIVE_MD5_COMPILE_TEST
22991 #include <windows.h>
22992 #include <wincrypt.h>
22993
22994 int
22995 main(int argc, char **argv)
22996 {
22997         (void)argc;
22998         (void)argv;
22999
23000         return (CALG_MD5);
23001 }
23002
23003 _ACEOF
23004 if ac_fn_c_try_link "$LINENO"
23005 then :
23006    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23007 printf "%s\n" "yes" >&6; }
23008       found_MD5=yes
23009       found_WIN=yes
23010
23011 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_WIN 1" >>confdefs.h
23012
23013
23014 else $as_nop
23015    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 printf "%s\n" "no" >&6; }
23017 fi
23018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23019     conftest$ac_exeext conftest.$ac_ext
23020   fi
23021
23022
23023   if test "$found_SHA1" != yes; then
23024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_WIN" >&5
23025 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_WIN... " >&6; }
23026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h.  */
23028
23029 #define ARCHIVE_SHA1_COMPILE_TEST
23030 #include <windows.h>
23031 #include <wincrypt.h>
23032
23033 int
23034 main(int argc, char **argv)
23035 {
23036         (void)argc;
23037         (void)argv;
23038
23039         return (CALG_SHA1);
23040 }
23041
23042 _ACEOF
23043 if ac_fn_c_try_link "$LINENO"
23044 then :
23045    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23046 printf "%s\n" "yes" >&6; }
23047       found_SHA1=yes
23048       found_WIN=yes
23049
23050 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_WIN 1" >>confdefs.h
23051
23052
23053 else $as_nop
23054    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 printf "%s\n" "no" >&6; }
23056 fi
23057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23058     conftest$ac_exeext conftest.$ac_ext
23059   fi
23060
23061
23062   if test "$found_SHA256" != yes; then
23063     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_WIN" >&5
23064 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_WIN... " >&6; }
23065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h.  */
23067
23068 #define ARCHIVE_SHA256_COMPILE_TEST
23069 #include <windows.h>
23070 #include <wincrypt.h>
23071
23072 int
23073 main(int argc, char **argv)
23074 {
23075         (void)argc;
23076         (void)argv;
23077
23078         return (CALG_SHA_256);
23079 }
23080
23081 _ACEOF
23082 if ac_fn_c_try_link "$LINENO"
23083 then :
23084    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23085 printf "%s\n" "yes" >&6; }
23086       found_SHA256=yes
23087       found_WIN=yes
23088
23089 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_WIN 1" >>confdefs.h
23090
23091
23092 else $as_nop
23093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 printf "%s\n" "no" >&6; }
23095 fi
23096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23097     conftest$ac_exeext conftest.$ac_ext
23098   fi
23099
23100
23101   if test "$found_SHA384" != yes; then
23102     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_WIN" >&5
23103 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_WIN... " >&6; }
23104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h.  */
23106
23107 #define ARCHIVE_SHA384_COMPILE_TEST
23108 #include <windows.h>
23109 #include <wincrypt.h>
23110
23111 int
23112 main(int argc, char **argv)
23113 {
23114         (void)argc;
23115         (void)argv;
23116
23117         return (CALG_SHA_384);
23118 }
23119
23120 _ACEOF
23121 if ac_fn_c_try_link "$LINENO"
23122 then :
23123    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23124 printf "%s\n" "yes" >&6; }
23125       found_SHA384=yes
23126       found_WIN=yes
23127
23128 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_WIN 1" >>confdefs.h
23129
23130
23131 else $as_nop
23132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23133 printf "%s\n" "no" >&6; }
23134 fi
23135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23136     conftest$ac_exeext conftest.$ac_ext
23137   fi
23138
23139
23140   if test "$found_SHA512" != yes; then
23141     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_WIN" >&5
23142 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_WIN... " >&6; }
23143     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h.  */
23145
23146 #define ARCHIVE_SHA512_COMPILE_TEST
23147 #include <windows.h>
23148 #include <wincrypt.h>
23149
23150 int
23151 main(int argc, char **argv)
23152 {
23153         (void)argc;
23154         (void)argv;
23155
23156         return (CALG_SHA_512);
23157 }
23158
23159 _ACEOF
23160 if ac_fn_c_try_link "$LINENO"
23161 then :
23162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 printf "%s\n" "yes" >&6; }
23164       found_SHA512=yes
23165       found_WIN=yes
23166
23167 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_WIN 1" >>confdefs.h
23168
23169
23170 else $as_nop
23171    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 printf "%s\n" "no" >&6; }
23173 fi
23174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23175     conftest$ac_exeext conftest.$ac_ext
23176   fi
23177
23178         ;;
23179 esac
23180
23181 saved_CFLAGS="$CFLAGS"
23182 CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
23183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility annotations" >&5
23184 printf %s "checking whether compiler supports visibility annotations... " >&6; }
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h.  */
23187
23188                  int foo( void ) __attribute__((visibility("default")));
23189
23190 int
23191 main (void)
23192 {
23193
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 if ac_fn_c_try_link "$LINENO"
23199 then :
23200   CFLAGS="$saved_CFLAGS -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY";
23201                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 printf "%s\n" "yes" >&6; }
23203 else $as_nop
23204   CFLAGS="$saved_CFLAGS"
23205                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 printf "%s\n" "no" >&6; }
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23209     conftest$ac_exeext conftest.$ac_ext
23210
23211 # Ensure test directories are present if building out-of-tree
23212 ac_config_commands="$ac_config_commands mkdirs"
23213
23214
23215 cat >confcache <<\_ACEOF
23216 # This file is a shell script that caches the results of configure
23217 # tests run on this system so they can be shared between configure
23218 # scripts and configure runs, see configure's option --config-cache.
23219 # It is not useful on other systems.  If it contains results you don't
23220 # want to keep, you may remove or edit it.
23221 #
23222 # config.status only pays attention to the cache file if you give it
23223 # the --recheck option to rerun configure.
23224 #
23225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23227 # following values.
23228
23229 _ACEOF
23230
23231 # The following way of writing the cache mishandles newlines in values,
23232 # but we know of no workaround that is simple, portable, and efficient.
23233 # So, we kill variables containing newlines.
23234 # Ultrix sh set writes to stderr and can't be redirected directly,
23235 # and sets the high bit in the cache file unless we assign to the vars.
23236 (
23237   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23238     eval ac_val=\$$ac_var
23239     case $ac_val in #(
23240     *${as_nl}*)
23241       case $ac_var in #(
23242       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23243 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23244       esac
23245       case $ac_var in #(
23246       _ | IFS | as_nl) ;; #(
23247       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23248       *) { eval $ac_var=; unset $ac_var;} ;;
23249       esac ;;
23250     esac
23251   done
23252
23253   (set) 2>&1 |
23254     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23255     *${as_nl}ac_space=\ *)
23256       # `set' does not quote correctly, so add quotes: double-quote
23257       # substitution turns \\\\ into \\, and sed turns \\ into \.
23258       sed -n \
23259         "s/'/'\\\\''/g;
23260           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23261       ;; #(
23262     *)
23263       # `set' quotes correctly as required by POSIX, so do not add quotes.
23264       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23265       ;;
23266     esac |
23267     sort
23268 ) |
23269   sed '
23270      /^ac_cv_env_/b end
23271      t clear
23272      :clear
23273      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23274      t end
23275      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23276      :end' >>confcache
23277 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23278   if test -w "$cache_file"; then
23279     if test "x$cache_file" != "x/dev/null"; then
23280       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23281 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23282       if test ! -f "$cache_file" || test -h "$cache_file"; then
23283         cat confcache >"$cache_file"
23284       else
23285         case $cache_file in #(
23286         */* | ?:*)
23287           mv -f confcache "$cache_file"$$ &&
23288           mv -f "$cache_file"$$ "$cache_file" ;; #(
23289         *)
23290           mv -f confcache "$cache_file" ;;
23291         esac
23292       fi
23293     fi
23294   else
23295     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23296 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23297   fi
23298 fi
23299 rm -f confcache
23300
23301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23302 # Let make expand exec_prefix.
23303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23304
23305 DEFS=-DHAVE_CONFIG_H
23306
23307 ac_libobjs=
23308 ac_ltlibobjs=
23309 U=
23310 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23311   # 1. Remove the extension, and $U if already installed.
23312   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23313   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23314   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23315   #    will be set to the directory where LIBOBJS objects are built.
23316   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23317   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23318 done
23319 LIBOBJS=$ac_libobjs
23320
23321 LTLIBOBJS=$ac_ltlibobjs
23322
23323
23324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23325 printf %s "checking that generated files are newer than configure... " >&6; }
23326    if test -n "$am_sleep_pid"; then
23327      # Hide warnings about reused PIDs.
23328      wait $am_sleep_pid 2>/dev/null
23329    fi
23330    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23331 printf "%s\n" "done" >&6; }
23332  if test -n "$EXEEXT"; then
23333   am__EXEEXT_TRUE=
23334   am__EXEEXT_FALSE='#'
23335 else
23336   am__EXEEXT_TRUE='#'
23337   am__EXEEXT_FALSE=
23338 fi
23339
23340 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23341   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23343 fi
23344 if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
23345   as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
23346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23347 fi
23348 if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
23349   as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
23350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23351 fi
23352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23353   as_fn_error $? "conditional \"AMDEP\" was never defined.
23354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23355 fi
23356 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23357   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23359 fi
23360 if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then
23361   as_fn_error $? "conditional \"BUILD_BSDTAR\" was never defined.
23362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23363 fi
23364 if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then
23365   as_fn_error $? "conditional \"STATIC_BSDTAR\" was never defined.
23366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23367 fi
23368 if test -z "${BUILD_BSDCAT_TRUE}" && test -z "${BUILD_BSDCAT_FALSE}"; then
23369   as_fn_error $? "conditional \"BUILD_BSDCAT\" was never defined.
23370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23371 fi
23372 if test -z "${STATIC_BSDCAT_TRUE}" && test -z "${STATIC_BSDCAT_FALSE}"; then
23373   as_fn_error $? "conditional \"STATIC_BSDCAT\" was never defined.
23374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23375 fi
23376 if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then
23377   as_fn_error $? "conditional \"BUILD_BSDCPIO\" was never defined.
23378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23379 fi
23380 if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then
23381   as_fn_error $? "conditional \"STATIC_BSDCPIO\" was never defined.
23382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23383 fi
23384 if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then
23385   as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.
23386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23387 fi
23388 if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then
23389   as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.
23390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23391 fi
23392 if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then
23393   as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.
23394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23395 fi
23396 if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then
23397   as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.
23398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23399 fi
23400 if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then
23401   as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.
23402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23403 fi
23404
23405 : "${CONFIG_STATUS=./config.status}"
23406 ac_write_fail=0
23407 ac_clean_files_save=$ac_clean_files
23408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23410 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23411 as_write_fail=0
23412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23413 #! $SHELL
23414 # Generated by $as_me.
23415 # Run this file to recreate the current configuration.
23416 # Compiler output produced by configure, useful for debugging
23417 # configure, is in config.log if it exists.
23418
23419 debug=false
23420 ac_cs_recheck=false
23421 ac_cs_silent=false
23422
23423 SHELL=\${CONFIG_SHELL-$SHELL}
23424 export SHELL
23425 _ASEOF
23426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23427 ## -------------------- ##
23428 ## M4sh Initialization. ##
23429 ## -------------------- ##
23430
23431 # Be more Bourne compatible
23432 DUALCASE=1; export DUALCASE # for MKS sh
23433 as_nop=:
23434 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23435 then :
23436   emulate sh
23437   NULLCMD=:
23438   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23439   # is contrary to our usage.  Disable this feature.
23440   alias -g '${1+"$@"}'='"$@"'
23441   setopt NO_GLOB_SUBST
23442 else $as_nop
23443   case `(set -o) 2>/dev/null` in #(
23444   *posix*) :
23445     set -o posix ;; #(
23446   *) :
23447      ;;
23448 esac
23449 fi
23450
23451
23452
23453 # Reset variables that may have inherited troublesome values from
23454 # the environment.
23455
23456 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23457 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23458 # side effect of setting IFS to empty, thus disabling word splitting.)
23459 # Quoting is to prevent editors from complaining about space-tab.
23460 as_nl='
23461 '
23462 export as_nl
23463 IFS=" ""        $as_nl"
23464
23465 PS1='$ '
23466 PS2='> '
23467 PS4='+ '
23468
23469 # Ensure predictable behavior from utilities with locale-dependent output.
23470 LC_ALL=C
23471 export LC_ALL
23472 LANGUAGE=C
23473 export LANGUAGE
23474
23475 # We cannot yet rely on "unset" to work, but we need these variables
23476 # to be unset--not just set to an empty or harmless value--now, to
23477 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23478 # also avoids known problems related to "unset" and subshell syntax
23479 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23480 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23481 do eval test \${$as_var+y} \
23482   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23483 done
23484
23485 # Ensure that fds 0, 1, and 2 are open.
23486 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23487 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23488 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23489
23490 # The user is always right.
23491 if ${PATH_SEPARATOR+false} :; then
23492   PATH_SEPARATOR=:
23493   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23494     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23495       PATH_SEPARATOR=';'
23496   }
23497 fi
23498
23499
23500 # Find who we are.  Look in the path if we contain no directory separator.
23501 as_myself=
23502 case $0 in #((
23503   *[\\/]* ) as_myself=$0 ;;
23504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23506 do
23507   IFS=$as_save_IFS
23508   case $as_dir in #(((
23509     '') as_dir=./ ;;
23510     */) ;;
23511     *) as_dir=$as_dir/ ;;
23512   esac
23513     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23514   done
23515 IFS=$as_save_IFS
23516
23517      ;;
23518 esac
23519 # We did not find ourselves, most probably we were run as `sh COMMAND'
23520 # in which case we are not to be found in the path.
23521 if test "x$as_myself" = x; then
23522   as_myself=$0
23523 fi
23524 if test ! -f "$as_myself"; then
23525   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23526   exit 1
23527 fi
23528
23529
23530
23531 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23532 # ----------------------------------------
23533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23535 # script with STATUS, using 1 if that was 0.
23536 as_fn_error ()
23537 {
23538   as_status=$1; test $as_status -eq 0 && as_status=1
23539   if test "$4"; then
23540     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23541     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23542   fi
23543   printf "%s\n" "$as_me: error: $2" >&2
23544   as_fn_exit $as_status
23545 } # as_fn_error
23546
23547
23548
23549 # as_fn_set_status STATUS
23550 # -----------------------
23551 # Set $? to STATUS, without forking.
23552 as_fn_set_status ()
23553 {
23554   return $1
23555 } # as_fn_set_status
23556
23557 # as_fn_exit STATUS
23558 # -----------------
23559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23560 as_fn_exit ()
23561 {
23562   set +e
23563   as_fn_set_status $1
23564   exit $1
23565 } # as_fn_exit
23566
23567 # as_fn_unset VAR
23568 # ---------------
23569 # Portably unset VAR.
23570 as_fn_unset ()
23571 {
23572   { eval $1=; unset $1;}
23573 }
23574 as_unset=as_fn_unset
23575
23576 # as_fn_append VAR VALUE
23577 # ----------------------
23578 # Append the text in VALUE to the end of the definition contained in VAR. Take
23579 # advantage of any shell optimizations that allow amortized linear growth over
23580 # repeated appends, instead of the typical quadratic growth present in naive
23581 # implementations.
23582 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23583 then :
23584   eval 'as_fn_append ()
23585   {
23586     eval $1+=\$2
23587   }'
23588 else $as_nop
23589   as_fn_append ()
23590   {
23591     eval $1=\$$1\$2
23592   }
23593 fi # as_fn_append
23594
23595 # as_fn_arith ARG...
23596 # ------------------
23597 # Perform arithmetic evaluation on the ARGs, and store the result in the
23598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23599 # must be portable across $(()) and expr.
23600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23601 then :
23602   eval 'as_fn_arith ()
23603   {
23604     as_val=$(( $* ))
23605   }'
23606 else $as_nop
23607   as_fn_arith ()
23608   {
23609     as_val=`expr "$@" || test $? -eq 1`
23610   }
23611 fi # as_fn_arith
23612
23613
23614 if expr a : '\(a\)' >/dev/null 2>&1 &&
23615    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23616   as_expr=expr
23617 else
23618   as_expr=false
23619 fi
23620
23621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23622   as_basename=basename
23623 else
23624   as_basename=false
23625 fi
23626
23627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23628   as_dirname=dirname
23629 else
23630   as_dirname=false
23631 fi
23632
23633 as_me=`$as_basename -- "$0" ||
23634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23635          X"$0" : 'X\(//\)$' \| \
23636          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23637 printf "%s\n" X/"$0" |
23638     sed '/^.*\/\([^/][^/]*\)\/*$/{
23639             s//\1/
23640             q
23641           }
23642           /^X\/\(\/\/\)$/{
23643             s//\1/
23644             q
23645           }
23646           /^X\/\(\/\).*/{
23647             s//\1/
23648             q
23649           }
23650           s/.*/./; q'`
23651
23652 # Avoid depending upon Character Ranges.
23653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23656 as_cr_digits='0123456789'
23657 as_cr_alnum=$as_cr_Letters$as_cr_digits
23658
23659
23660 # Determine whether it's possible to make 'echo' print without a newline.
23661 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23662 # for compatibility with existing Makefiles.
23663 ECHO_C= ECHO_N= ECHO_T=
23664 case `echo -n x` in #(((((
23665 -n*)
23666   case `echo 'xy\c'` in
23667   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23668   xy)  ECHO_C='\c';;
23669   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23670        ECHO_T=' ';;
23671   esac;;
23672 *)
23673   ECHO_N='-n';;
23674 esac
23675
23676 # For backward compatibility with old third-party macros, we provide
23677 # the shell variables $as_echo and $as_echo_n.  New code should use
23678 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23679 as_echo='printf %s\n'
23680 as_echo_n='printf %s'
23681
23682 rm -f conf$$ conf$$.exe conf$$.file
23683 if test -d conf$$.dir; then
23684   rm -f conf$$.dir/conf$$.file
23685 else
23686   rm -f conf$$.dir
23687   mkdir conf$$.dir 2>/dev/null
23688 fi
23689 if (echo >conf$$.file) 2>/dev/null; then
23690   if ln -s conf$$.file conf$$ 2>/dev/null; then
23691     as_ln_s='ln -s'
23692     # ... but there are two gotchas:
23693     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23694     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23695     # In both cases, we have to default to `cp -pR'.
23696     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23697       as_ln_s='cp -pR'
23698   elif ln conf$$.file conf$$ 2>/dev/null; then
23699     as_ln_s=ln
23700   else
23701     as_ln_s='cp -pR'
23702   fi
23703 else
23704   as_ln_s='cp -pR'
23705 fi
23706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23707 rmdir conf$$.dir 2>/dev/null
23708
23709
23710 # as_fn_mkdir_p
23711 # -------------
23712 # Create "$as_dir" as a directory, including parents if necessary.
23713 as_fn_mkdir_p ()
23714 {
23715
23716   case $as_dir in #(
23717   -*) as_dir=./$as_dir;;
23718   esac
23719   test -d "$as_dir" || eval $as_mkdir_p || {
23720     as_dirs=
23721     while :; do
23722       case $as_dir in #(
23723       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23724       *) as_qdir=$as_dir;;
23725       esac
23726       as_dirs="'$as_qdir' $as_dirs"
23727       as_dir=`$as_dirname -- "$as_dir" ||
23728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729          X"$as_dir" : 'X\(//\)[^/]' \| \
23730          X"$as_dir" : 'X\(//\)$' \| \
23731          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23732 printf "%s\n" X"$as_dir" |
23733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23734             s//\1/
23735             q
23736           }
23737           /^X\(\/\/\)[^/].*/{
23738             s//\1/
23739             q
23740           }
23741           /^X\(\/\/\)$/{
23742             s//\1/
23743             q
23744           }
23745           /^X\(\/\).*/{
23746             s//\1/
23747             q
23748           }
23749           s/.*/./; q'`
23750       test -d "$as_dir" && break
23751     done
23752     test -z "$as_dirs" || eval "mkdir $as_dirs"
23753   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23754
23755
23756 } # as_fn_mkdir_p
23757 if mkdir -p . 2>/dev/null; then
23758   as_mkdir_p='mkdir -p "$as_dir"'
23759 else
23760   test -d ./-p && rmdir ./-p
23761   as_mkdir_p=false
23762 fi
23763
23764
23765 # as_fn_executable_p FILE
23766 # -----------------------
23767 # Test if FILE is an executable regular file.
23768 as_fn_executable_p ()
23769 {
23770   test -f "$1" && test -x "$1"
23771 } # as_fn_executable_p
23772 as_test_x='test -x'
23773 as_executable_p=as_fn_executable_p
23774
23775 # Sed expression to map a string onto a valid CPP name.
23776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23777
23778 # Sed expression to map a string onto a valid variable name.
23779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23780
23781
23782 exec 6>&1
23783 ## ----------------------------------- ##
23784 ## Main body of $CONFIG_STATUS script. ##
23785 ## ----------------------------------- ##
23786 _ASEOF
23787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23788
23789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23790 # Save the log message, to keep $0 and so on meaningful, and to
23791 # report actual input values of CONFIG_FILES etc. instead of their
23792 # values after options handling.
23793 ac_log="
23794 This file was extended by libarchive $as_me 3.6.2, which was
23795 generated by GNU Autoconf 2.71.  Invocation command line was
23796
23797   CONFIG_FILES    = $CONFIG_FILES
23798   CONFIG_HEADERS  = $CONFIG_HEADERS
23799   CONFIG_LINKS    = $CONFIG_LINKS
23800   CONFIG_COMMANDS = $CONFIG_COMMANDS
23801   $ $0 $@
23802
23803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23804 "
23805
23806 _ACEOF
23807
23808 case $ac_config_files in *"
23809 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23810 esac
23811
23812 case $ac_config_headers in *"
23813 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23814 esac
23815
23816
23817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23818 # Files that config.status was made for.
23819 config_files="$ac_config_files"
23820 config_headers="$ac_config_headers"
23821 config_commands="$ac_config_commands"
23822
23823 _ACEOF
23824
23825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23826 ac_cs_usage="\
23827 \`$as_me' instantiates files and other configuration actions
23828 from templates according to the current configuration.  Unless the files
23829 and actions are specified as TAGs, all are instantiated by default.
23830
23831 Usage: $0 [OPTION]... [TAG]...
23832
23833   -h, --help       print this help, then exit
23834   -V, --version    print version number and configuration settings, then exit
23835       --config     print configuration, then exit
23836   -q, --quiet, --silent
23837                    do not print progress messages
23838   -d, --debug      don't remove temporary files
23839       --recheck    update $as_me by reconfiguring in the same conditions
23840       --file=FILE[:TEMPLATE]
23841                    instantiate the configuration file FILE
23842       --header=FILE[:TEMPLATE]
23843                    instantiate the configuration header FILE
23844
23845 Configuration files:
23846 $config_files
23847
23848 Configuration headers:
23849 $config_headers
23850
23851 Configuration commands:
23852 $config_commands
23853
23854 Report bugs to <libarchive-discuss@googlegroups.com>."
23855
23856 _ACEOF
23857 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23858 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23860 ac_cs_config='$ac_cs_config_escaped'
23861 ac_cs_version="\\
23862 libarchive config.status 3.6.2
23863 configured by $0, generated by GNU Autoconf 2.71,
23864   with options \\"\$ac_cs_config\\"
23865
23866 Copyright (C) 2021 Free Software Foundation, Inc.
23867 This config.status script is free software; the Free Software Foundation
23868 gives unlimited permission to copy, distribute and modify it."
23869
23870 ac_pwd='$ac_pwd'
23871 srcdir='$srcdir'
23872 INSTALL='$INSTALL'
23873 MKDIR_P='$MKDIR_P'
23874 AWK='$AWK'
23875 test -n "\$AWK" || AWK=awk
23876 _ACEOF
23877
23878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23879 # The default lists apply if the user does not specify any file.
23880 ac_need_defaults=:
23881 while test $# != 0
23882 do
23883   case $1 in
23884   --*=?*)
23885     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23886     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23887     ac_shift=:
23888     ;;
23889   --*=)
23890     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23891     ac_optarg=
23892     ac_shift=:
23893     ;;
23894   *)
23895     ac_option=$1
23896     ac_optarg=$2
23897     ac_shift=shift
23898     ;;
23899   esac
23900
23901   case $ac_option in
23902   # Handling of the options.
23903   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23904     ac_cs_recheck=: ;;
23905   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23906     printf "%s\n" "$ac_cs_version"; exit ;;
23907   --config | --confi | --conf | --con | --co | --c )
23908     printf "%s\n" "$ac_cs_config"; exit ;;
23909   --debug | --debu | --deb | --de | --d | -d )
23910     debug=: ;;
23911   --file | --fil | --fi | --f )
23912     $ac_shift
23913     case $ac_optarg in
23914     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23915     '') as_fn_error $? "missing file argument" ;;
23916     esac
23917     as_fn_append CONFIG_FILES " '$ac_optarg'"
23918     ac_need_defaults=false;;
23919   --header | --heade | --head | --hea )
23920     $ac_shift
23921     case $ac_optarg in
23922     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23923     esac
23924     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23925     ac_need_defaults=false;;
23926   --he | --h)
23927     # Conflict between --help and --header
23928     as_fn_error $? "ambiguous option: \`$1'
23929 Try \`$0 --help' for more information.";;
23930   --help | --hel | -h )
23931     printf "%s\n" "$ac_cs_usage"; exit ;;
23932   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23933   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23934     ac_cs_silent=: ;;
23935
23936   # This is an error.
23937   -*) as_fn_error $? "unrecognized option: \`$1'
23938 Try \`$0 --help' for more information." ;;
23939
23940   *) as_fn_append ac_config_targets " $1"
23941      ac_need_defaults=false ;;
23942
23943   esac
23944   shift
23945 done
23946
23947 ac_configure_extra_args=
23948
23949 if $ac_cs_silent; then
23950   exec 6>/dev/null
23951   ac_configure_extra_args="$ac_configure_extra_args --silent"
23952 fi
23953
23954 _ACEOF
23955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23956 if \$ac_cs_recheck; then
23957   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23958   shift
23959   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23960   CONFIG_SHELL='$SHELL'
23961   export CONFIG_SHELL
23962   exec "\$@"
23963 fi
23964
23965 _ACEOF
23966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23967 exec 5>>config.log
23968 {
23969   echo
23970   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23971 ## Running $as_me. ##
23972 _ASBOX
23973   printf "%s\n" "$ac_log"
23974 } >&5
23975
23976 _ACEOF
23977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23978 #
23979 # INIT-COMMANDS
23980 #
23981 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23982
23983
23984 # The HP-UX ksh and POSIX shell print the target directory to stdout
23985 # if CDPATH is set.
23986 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23987
23988 sed_quote_subst='$sed_quote_subst'
23989 double_quote_subst='$double_quote_subst'
23990 delay_variable_subst='$delay_variable_subst'
23991 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23992 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23993 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23994 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23995 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23996 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23997 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23998 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23999 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24000 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24001 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24002 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24003 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24024 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24025 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24026 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24027 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24028 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24029 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24030 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24031 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24032 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24033 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24034 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24035 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24036 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24037 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24038 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24039 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24040 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24041 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24042 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24043 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24044 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24045 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24046 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24047 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24048 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24049 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24050 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24051 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24052 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24053 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24054 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24055 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24056 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24057 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24058 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24059 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24060 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24061 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24062 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24063 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24064 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24065 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24066 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24067 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24068 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24069 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24070 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24071 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24072 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24073 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24074 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24075 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24076 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24077 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24078 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24079 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24080 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24081 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24082 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24083 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24084 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24085 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24086 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24087 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24088 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24089 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24090 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24091 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24092 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24093 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24094 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24100 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24101 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24102 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24103 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24104 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24105 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24106 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24107 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24108 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24109 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24110 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24111 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24112 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24113 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24114 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24115 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24116 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24117 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24118 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24119 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24120 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24121 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24122 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24123 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24124 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24125 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24126 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24127
24128 LTCC='$LTCC'
24129 LTCFLAGS='$LTCFLAGS'
24130 compiler='$compiler_DEFAULT'
24131
24132 # A function that is used when there is no print builtin or printf.
24133 func_fallback_echo ()
24134 {
24135   eval 'cat <<_LTECHO_EOF
24136 \$1
24137 _LTECHO_EOF'
24138 }
24139
24140 # Quote evaled strings.
24141 for var in AS \
24142 DLLTOOL \
24143 OBJDUMP \
24144 SHELL \
24145 ECHO \
24146 PATH_SEPARATOR \
24147 SED \
24148 GREP \
24149 EGREP \
24150 FGREP \
24151 LD \
24152 NM \
24153 LN_S \
24154 lt_SP2NL \
24155 lt_NL2SP \
24156 reload_flag \
24157 deplibs_check_method \
24158 file_magic_cmd \
24159 file_magic_glob \
24160 want_nocaseglob \
24161 sharedlib_from_linklib_cmd \
24162 AR \
24163 AR_FLAGS \
24164 archiver_list_spec \
24165 STRIP \
24166 RANLIB \
24167 CC \
24168 CFLAGS \
24169 compiler \
24170 lt_cv_sys_global_symbol_pipe \
24171 lt_cv_sys_global_symbol_to_cdecl \
24172 lt_cv_sys_global_symbol_to_import \
24173 lt_cv_sys_global_symbol_to_c_name_address \
24174 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24175 lt_cv_nm_interface \
24176 nm_file_list_spec \
24177 lt_cv_truncate_bin \
24178 lt_prog_compiler_no_builtin_flag \
24179 lt_prog_compiler_pic \
24180 lt_prog_compiler_wl \
24181 lt_prog_compiler_static \
24182 lt_cv_prog_compiler_c_o \
24183 need_locks \
24184 MANIFEST_TOOL \
24185 DSYMUTIL \
24186 NMEDIT \
24187 LIPO \
24188 OTOOL \
24189 OTOOL64 \
24190 shrext_cmds \
24191 export_dynamic_flag_spec \
24192 whole_archive_flag_spec \
24193 compiler_needs_object \
24194 with_gnu_ld \
24195 allow_undefined_flag \
24196 no_undefined_flag \
24197 hardcode_libdir_flag_spec \
24198 hardcode_libdir_separator \
24199 exclude_expsyms \
24200 include_expsyms \
24201 file_list_spec \
24202 variables_saved_for_relink \
24203 libname_spec \
24204 library_names_spec \
24205 soname_spec \
24206 install_override_mode \
24207 finish_eval \
24208 old_striplib \
24209 striplib; do
24210     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24211     *[\\\\\\\`\\"\\\$]*)
24212       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24213       ;;
24214     *)
24215       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24216       ;;
24217     esac
24218 done
24219
24220 # Double-quote double-evaled strings.
24221 for var in reload_cmds \
24222 old_postinstall_cmds \
24223 old_postuninstall_cmds \
24224 old_archive_cmds \
24225 extract_expsyms_cmds \
24226 old_archive_from_new_cmds \
24227 old_archive_from_expsyms_cmds \
24228 archive_cmds \
24229 archive_expsym_cmds \
24230 module_cmds \
24231 module_expsym_cmds \
24232 export_symbols_cmds \
24233 prelink_cmds \
24234 postlink_cmds \
24235 postinstall_cmds \
24236 postuninstall_cmds \
24237 finish_cmds \
24238 sys_lib_search_path_spec \
24239 configure_time_dlsearch_path \
24240 configure_time_lt_sys_library_path; do
24241     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24242     *[\\\\\\\`\\"\\\$]*)
24243       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24244       ;;
24245     *)
24246       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24247       ;;
24248     esac
24249 done
24250
24251 ac_aux_dir='$ac_aux_dir'
24252
24253 # See if we are running on zsh, and set the options that allow our
24254 # commands through without removal of \ escapes INIT.
24255 if test -n "\${ZSH_VERSION+set}"; then
24256    setopt NO_GLOB_SUBST
24257 fi
24258
24259
24260     PACKAGE='$PACKAGE'
24261     VERSION='$VERSION'
24262     RM='$RM'
24263     ofile='$ofile'
24264
24265
24266
24267
24268 _ACEOF
24269
24270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24271
24272 # Handling of arguments.
24273 for ac_config_target in $ac_config_targets
24274 do
24275   case $ac_config_target in
24276     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24277     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24278     "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;;
24279     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24280     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24281     "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24282
24283   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24284   esac
24285 done
24286
24287
24288 # If the user did not use the arguments to specify the items to instantiate,
24289 # then the envvar interface is used.  Set only those that are not.
24290 # We use the long form for the default assignment because of an extremely
24291 # bizarre bug on SunOS 4.1.3.
24292 if $ac_need_defaults; then
24293   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24294   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24295   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24296 fi
24297
24298 # Have a temporary directory for convenience.  Make it in the build tree
24299 # simply because there is no reason against having it here, and in addition,
24300 # creating and moving files from /tmp can sometimes cause problems.
24301 # Hook for its removal unless debugging.
24302 # Note that there is a small window in which the directory will not be cleaned:
24303 # after its creation but before its name has been assigned to `$tmp'.
24304 $debug ||
24305 {
24306   tmp= ac_tmp=
24307   trap 'exit_status=$?
24308   : "${ac_tmp:=$tmp}"
24309   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24310 ' 0
24311   trap 'as_fn_exit 1' 1 2 13 15
24312 }
24313 # Create a (secure) tmp directory for tmp files.
24314
24315 {
24316   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24317   test -d "$tmp"
24318 }  ||
24319 {
24320   tmp=./conf$$-$RANDOM
24321   (umask 077 && mkdir "$tmp")
24322 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24323 ac_tmp=$tmp
24324
24325 # Set up the scripts for CONFIG_FILES section.
24326 # No need to generate them if there are no CONFIG_FILES.
24327 # This happens for instance with `./config.status config.h'.
24328 if test -n "$CONFIG_FILES"; then
24329
24330
24331 ac_cr=`echo X | tr X '\015'`
24332 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24333 # But we know of no other shell where ac_cr would be empty at this
24334 # point, so we can use a bashism as a fallback.
24335 if test "x$ac_cr" = x; then
24336   eval ac_cr=\$\'\\r\'
24337 fi
24338 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24339 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24340   ac_cs_awk_cr='\\r'
24341 else
24342   ac_cs_awk_cr=$ac_cr
24343 fi
24344
24345 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24346 _ACEOF
24347
24348
24349 {
24350   echo "cat >conf$$subs.awk <<_ACEOF" &&
24351   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24352   echo "_ACEOF"
24353 } >conf$$subs.sh ||
24354   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24355 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24356 ac_delim='%!_!# '
24357 for ac_last_try in false false false false false :; do
24358   . ./conf$$subs.sh ||
24359     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24360
24361   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24362   if test $ac_delim_n = $ac_delim_num; then
24363     break
24364   elif $ac_last_try; then
24365     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24366   else
24367     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24368   fi
24369 done
24370 rm -f conf$$subs.sh
24371
24372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24373 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24374 _ACEOF
24375 sed -n '
24376 h
24377 s/^/S["/; s/!.*/"]=/
24378 p
24379 g
24380 s/^[^!]*!//
24381 :repl
24382 t repl
24383 s/'"$ac_delim"'$//
24384 t delim
24385 :nl
24386 h
24387 s/\(.\{148\}\)..*/\1/
24388 t more1
24389 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24390 p
24391 n
24392 b repl
24393 :more1
24394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24395 p
24396 g
24397 s/.\{148\}//
24398 t nl
24399 :delim
24400 h
24401 s/\(.\{148\}\)..*/\1/
24402 t more2
24403 s/["\\]/\\&/g; s/^/"/; s/$/"/
24404 p
24405 b
24406 :more2
24407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24408 p
24409 g
24410 s/.\{148\}//
24411 t delim
24412 ' <conf$$subs.awk | sed '
24413 /^[^""]/{
24414   N
24415   s/\n//
24416 }
24417 ' >>$CONFIG_STATUS || ac_write_fail=1
24418 rm -f conf$$subs.awk
24419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24420 _ACAWK
24421 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24422   for (key in S) S_is_set[key] = 1
24423   FS = "\a"
24424
24425 }
24426 {
24427   line = $ 0
24428   nfields = split(line, field, "@")
24429   substed = 0
24430   len = length(field[1])
24431   for (i = 2; i < nfields; i++) {
24432     key = field[i]
24433     keylen = length(key)
24434     if (S_is_set[key]) {
24435       value = S[key]
24436       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24437       len += length(value) + length(field[++i])
24438       substed = 1
24439     } else
24440       len += 1 + keylen
24441   }
24442
24443   print line
24444 }
24445
24446 _ACAWK
24447 _ACEOF
24448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24449 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24450   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24451 else
24452   cat
24453 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24454   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24455 _ACEOF
24456
24457 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24458 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24459 # trailing colons and then remove the whole line if VPATH becomes empty
24460 # (actually we leave an empty line to preserve line numbers).
24461 if test "x$srcdir" = x.; then
24462   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
24463 h
24464 s///
24465 s/^/:/
24466 s/[      ]*$/:/
24467 s/:\$(srcdir):/:/g
24468 s/:\${srcdir}:/:/g
24469 s/:@srcdir@:/:/g
24470 s/^:*//
24471 s/:*$//
24472 x
24473 s/\(=[   ]*\).*/\1/
24474 G
24475 s/\n//
24476 s/^[^=]*=[       ]*$//
24477 }'
24478 fi
24479
24480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24481 fi # test -n "$CONFIG_FILES"
24482
24483 # Set up the scripts for CONFIG_HEADERS section.
24484 # No need to generate them if there are no CONFIG_HEADERS.
24485 # This happens for instance with `./config.status Makefile'.
24486 if test -n "$CONFIG_HEADERS"; then
24487 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24488 BEGIN {
24489 _ACEOF
24490
24491 # Transform confdefs.h into an awk script `defines.awk', embedded as
24492 # here-document in config.status, that substitutes the proper values into
24493 # config.h.in to produce config.h.
24494
24495 # Create a delimiter string that does not exist in confdefs.h, to ease
24496 # handling of long lines.
24497 ac_delim='%!_!# '
24498 for ac_last_try in false false :; do
24499   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24500   if test -z "$ac_tt"; then
24501     break
24502   elif $ac_last_try; then
24503     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24504   else
24505     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24506   fi
24507 done
24508
24509 # For the awk script, D is an array of macro values keyed by name,
24510 # likewise P contains macro parameters if any.  Preserve backslash
24511 # newline sequences.
24512
24513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24514 sed -n '
24515 s/.\{148\}/&'"$ac_delim"'/g
24516 t rset
24517 :rset
24518 s/^[     ]*#[    ]*define[       ][      ]*/ /
24519 t def
24520 d
24521 :def
24522 s/\\$//
24523 t bsnl
24524 s/["\\]/\\&/g
24525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24526 D["\1"]=" \3"/p
24527 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
24528 d
24529 :bsnl
24530 s/["\\]/\\&/g
24531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24532 D["\1"]=" \3\\\\\\n"\\/p
24533 t cont
24534 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24535 t cont
24536 d
24537 :cont
24538 n
24539 s/.\{148\}/&'"$ac_delim"'/g
24540 t clear
24541 :clear
24542 s/\\$//
24543 t bsnlc
24544 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24545 d
24546 :bsnlc
24547 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24548 b cont
24549 ' <confdefs.h | sed '
24550 s/'"$ac_delim"'/"\\\
24551 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24552
24553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24554   for (key in D) D_is_set[key] = 1
24555   FS = "\a"
24556 }
24557 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24558   line = \$ 0
24559   split(line, arg, " ")
24560   if (arg[1] == "#") {
24561     defundef = arg[2]
24562     mac1 = arg[3]
24563   } else {
24564     defundef = substr(arg[1], 2)
24565     mac1 = arg[2]
24566   }
24567   split(mac1, mac2, "(") #)
24568   macro = mac2[1]
24569   prefix = substr(line, 1, index(line, defundef) - 1)
24570   if (D_is_set[macro]) {
24571     # Preserve the white space surrounding the "#".
24572     print prefix "define", macro P[macro] D[macro]
24573     next
24574   } else {
24575     # Replace #undef with comments.  This is necessary, for example,
24576     # in the case of _POSIX_SOURCE, which is predefined and required
24577     # on some systems where configure will not decide to define it.
24578     if (defundef == "undef") {
24579       print "/*", prefix defundef, macro, "*/"
24580       next
24581     }
24582   }
24583 }
24584 { print }
24585 _ACAWK
24586 _ACEOF
24587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24588   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24589 fi # test -n "$CONFIG_HEADERS"
24590
24591
24592 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24593 shift
24594 for ac_tag
24595 do
24596   case $ac_tag in
24597   :[FHLC]) ac_mode=$ac_tag; continue;;
24598   esac
24599   case $ac_mode$ac_tag in
24600   :[FHL]*:*);;
24601   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24602   :[FH]-) ac_tag=-:-;;
24603   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24604   esac
24605   ac_save_IFS=$IFS
24606   IFS=:
24607   set x $ac_tag
24608   IFS=$ac_save_IFS
24609   shift
24610   ac_file=$1
24611   shift
24612
24613   case $ac_mode in
24614   :L) ac_source=$1;;
24615   :[FH])
24616     ac_file_inputs=
24617     for ac_f
24618     do
24619       case $ac_f in
24620       -) ac_f="$ac_tmp/stdin";;
24621       *) # Look for the file first in the build tree, then in the source tree
24622          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24623          # because $ac_f cannot contain `:'.
24624          test -f "$ac_f" ||
24625            case $ac_f in
24626            [\\/$]*) false;;
24627            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24628            esac ||
24629            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24630       esac
24631       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24632       as_fn_append ac_file_inputs " '$ac_f'"
24633     done
24634
24635     # Let's still pretend it is `configure' which instantiates (i.e., don't
24636     # use $as_me), people would be surprised to read:
24637     #    /* config.h.  Generated by config.status.  */
24638     configure_input='Generated from '`
24639           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24640         `' by configure.'
24641     if test x"$ac_file" != x-; then
24642       configure_input="$ac_file.  $configure_input"
24643       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24644 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24645     fi
24646     # Neutralize special characters interpreted by sed in replacement strings.
24647     case $configure_input in #(
24648     *\&* | *\|* | *\\* )
24649        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24650        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24651     *) ac_sed_conf_input=$configure_input;;
24652     esac
24653
24654     case $ac_tag in
24655     *:-:* | *:-) cat >"$ac_tmp/stdin" \
24656       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24657     esac
24658     ;;
24659   esac
24660
24661   ac_dir=`$as_dirname -- "$ac_file" ||
24662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24663          X"$ac_file" : 'X\(//\)[^/]' \| \
24664          X"$ac_file" : 'X\(//\)$' \| \
24665          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24666 printf "%s\n" X"$ac_file" |
24667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24668             s//\1/
24669             q
24670           }
24671           /^X\(\/\/\)[^/].*/{
24672             s//\1/
24673             q
24674           }
24675           /^X\(\/\/\)$/{
24676             s//\1/
24677             q
24678           }
24679           /^X\(\/\).*/{
24680             s//\1/
24681             q
24682           }
24683           s/.*/./; q'`
24684   as_dir="$ac_dir"; as_fn_mkdir_p
24685   ac_builddir=.
24686
24687 case "$ac_dir" in
24688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24689 *)
24690   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24691   # A ".." for each directory in $ac_dir_suffix.
24692   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24693   case $ac_top_builddir_sub in
24694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24696   esac ;;
24697 esac
24698 ac_abs_top_builddir=$ac_pwd
24699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24700 # for backward compatibility:
24701 ac_top_builddir=$ac_top_build_prefix
24702
24703 case $srcdir in
24704   .)  # We are building in place.
24705     ac_srcdir=.
24706     ac_top_srcdir=$ac_top_builddir_sub
24707     ac_abs_top_srcdir=$ac_pwd ;;
24708   [\\/]* | ?:[\\/]* )  # Absolute name.
24709     ac_srcdir=$srcdir$ac_dir_suffix;
24710     ac_top_srcdir=$srcdir
24711     ac_abs_top_srcdir=$srcdir ;;
24712   *) # Relative name.
24713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24714     ac_top_srcdir=$ac_top_build_prefix$srcdir
24715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24716 esac
24717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24718
24719
24720   case $ac_mode in
24721   :F)
24722   #
24723   # CONFIG_FILE
24724   #
24725
24726   case $INSTALL in
24727   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24728   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24729   esac
24730   ac_MKDIR_P=$MKDIR_P
24731   case $MKDIR_P in
24732   [\\/$]* | ?:[\\/]* ) ;;
24733   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24734   esac
24735 _ACEOF
24736
24737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24738 # If the template does not know about datarootdir, expand it.
24739 # FIXME: This hack should be removed a few years after 2.60.
24740 ac_datarootdir_hack=; ac_datarootdir_seen=
24741 ac_sed_dataroot='
24742 /datarootdir/ {
24743   p
24744   q
24745 }
24746 /@datadir@/p
24747 /@docdir@/p
24748 /@infodir@/p
24749 /@localedir@/p
24750 /@mandir@/p'
24751 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24752 *datarootdir*) ac_datarootdir_seen=yes;;
24753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24754   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24755 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24756 _ACEOF
24757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24758   ac_datarootdir_hack='
24759   s&@datadir@&$datadir&g
24760   s&@docdir@&$docdir&g
24761   s&@infodir@&$infodir&g
24762   s&@localedir@&$localedir&g
24763   s&@mandir@&$mandir&g
24764   s&\\\${datarootdir}&$datarootdir&g' ;;
24765 esac
24766 _ACEOF
24767
24768 # Neutralize VPATH when `$srcdir' = `.'.
24769 # Shell code in configure.ac might set extrasub.
24770 # FIXME: do we really want to maintain this feature?
24771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24772 ac_sed_extra="$ac_vpsub
24773 $extrasub
24774 _ACEOF
24775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24776 :t
24777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24778 s|@configure_input@|$ac_sed_conf_input|;t t
24779 s&@top_builddir@&$ac_top_builddir_sub&;t t
24780 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24781 s&@srcdir@&$ac_srcdir&;t t
24782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24783 s&@top_srcdir@&$ac_top_srcdir&;t t
24784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24785 s&@builddir@&$ac_builddir&;t t
24786 s&@abs_builddir@&$ac_abs_builddir&;t t
24787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24788 s&@INSTALL@&$ac_INSTALL&;t t
24789 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24790 $ac_datarootdir_hack
24791 "
24792 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24793   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24794
24795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24796   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24797   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
24798       "$ac_tmp/out"`; test -z "$ac_out"; } &&
24799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24800 which seems to be undefined.  Please make sure it is defined" >&5
24801 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24802 which seems to be undefined.  Please make sure it is defined" >&2;}
24803
24804   rm -f "$ac_tmp/stdin"
24805   case $ac_file in
24806   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24807   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24808   esac \
24809   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24810  ;;
24811   :H)
24812   #
24813   # CONFIG_HEADER
24814   #
24815   if test x"$ac_file" != x-; then
24816     {
24817       printf "%s\n" "/* $configure_input  */" >&1 \
24818       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24819     } >"$ac_tmp/config.h" \
24820       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24821     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24822       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24823 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24824     else
24825       rm -f "$ac_file"
24826       mv "$ac_tmp/config.h" "$ac_file" \
24827         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24828     fi
24829   else
24830     printf "%s\n" "/* $configure_input  */" >&1 \
24831       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24832       || as_fn_error $? "could not create -" "$LINENO" 5
24833   fi
24834 # Compute "$ac_file"'s index in $config_headers.
24835 _am_arg="$ac_file"
24836 _am_stamp_count=1
24837 for _am_header in $config_headers :; do
24838   case $_am_header in
24839     $_am_arg | $_am_arg:* )
24840       break ;;
24841     * )
24842       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24843   esac
24844 done
24845 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24846 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24847          X"$_am_arg" : 'X\(//\)[^/]' \| \
24848          X"$_am_arg" : 'X\(//\)$' \| \
24849          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24850 printf "%s\n" X"$_am_arg" |
24851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24852             s//\1/
24853             q
24854           }
24855           /^X\(\/\/\)[^/].*/{
24856             s//\1/
24857             q
24858           }
24859           /^X\(\/\/\)$/{
24860             s//\1/
24861             q
24862           }
24863           /^X\(\/\).*/{
24864             s//\1/
24865             q
24866           }
24867           s/.*/./; q'`/stamp-h$_am_stamp_count
24868  ;;
24869
24870   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24871 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24872  ;;
24873   esac
24874
24875
24876   case $ac_file$ac_mode in
24877     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24878   # Older Autoconf quotes --file arguments for eval, but not when files
24879   # are listed without --file.  Let's play safe and only enable the eval
24880   # if we detect the quoting.
24881   # TODO: see whether this extra hack can be removed once we start
24882   # requiring Autoconf 2.70 or later.
24883   case $CONFIG_FILES in #(
24884   *\'*) :
24885     eval set x "$CONFIG_FILES" ;; #(
24886   *) :
24887     set x $CONFIG_FILES ;; #(
24888   *) :
24889      ;;
24890 esac
24891   shift
24892   # Used to flag and report bootstrapping failures.
24893   am_rc=0
24894   for am_mf
24895   do
24896     # Strip MF so we end up with the name of the file.
24897     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24898     # Check whether this is an Automake generated Makefile which includes
24899     # dependency-tracking related rules and includes.
24900     # Grep'ing the whole file directly is not great: AIX grep has a line
24901     # limit of 2048, but all sed's we know have understand at least 4000.
24902     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24903       || continue
24904     am_dirpart=`$as_dirname -- "$am_mf" ||
24905 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24906          X"$am_mf" : 'X\(//\)[^/]' \| \
24907          X"$am_mf" : 'X\(//\)$' \| \
24908          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24909 printf "%s\n" X"$am_mf" |
24910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24911             s//\1/
24912             q
24913           }
24914           /^X\(\/\/\)[^/].*/{
24915             s//\1/
24916             q
24917           }
24918           /^X\(\/\/\)$/{
24919             s//\1/
24920             q
24921           }
24922           /^X\(\/\).*/{
24923             s//\1/
24924             q
24925           }
24926           s/.*/./; q'`
24927     am_filepart=`$as_basename -- "$am_mf" ||
24928 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24929          X"$am_mf" : 'X\(//\)$' \| \
24930          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24931 printf "%s\n" X/"$am_mf" |
24932     sed '/^.*\/\([^/][^/]*\)\/*$/{
24933             s//\1/
24934             q
24935           }
24936           /^X\/\(\/\/\)$/{
24937             s//\1/
24938             q
24939           }
24940           /^X\/\(\/\).*/{
24941             s//\1/
24942             q
24943           }
24944           s/.*/./; q'`
24945     { echo "$as_me:$LINENO: cd "$am_dirpart" \
24946       && sed -e '/# am--include-marker/d' "$am_filepart" \
24947         | $MAKE -f - am--depfiles" >&5
24948    (cd "$am_dirpart" \
24949       && sed -e '/# am--include-marker/d' "$am_filepart" \
24950         | $MAKE -f - am--depfiles) >&5 2>&5
24951    ac_status=$?
24952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953    (exit $ac_status); } || am_rc=$?
24954   done
24955   if test $am_rc -ne 0; then
24956     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24958 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24959     for automatic dependency tracking.  If GNU make was not used, consider
24960     re-running the configure script with MAKE=\"gmake\" (or whatever is
24961     necessary).  You can also try re-running configure with the
24962     '--disable-dependency-tracking' option to at least be able to build
24963     the package (albeit without support for automatic dependency tracking).
24964 See \`config.log' for more details" "$LINENO" 5; }
24965   fi
24966   { am_dirpart=; unset am_dirpart;}
24967   { am_filepart=; unset am_filepart;}
24968   { am_mf=; unset am_mf;}
24969   { am_rc=; unset am_rc;}
24970   rm -f conftest-deps.mk
24971 }
24972  ;;
24973     "libtool":C)
24974
24975     # See if we are running on zsh, and set the options that allow our
24976     # commands through without removal of \ escapes.
24977     if test -n "${ZSH_VERSION+set}"; then
24978       setopt NO_GLOB_SUBST
24979     fi
24980
24981     cfgfile=${ofile}T
24982     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24983     $RM "$cfgfile"
24984
24985     cat <<_LT_EOF >> "$cfgfile"
24986 #! $SHELL
24987 # Generated automatically by $as_me ($PACKAGE) $VERSION
24988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24989
24990 # Provide generalized library-building support services.
24991 # Written by Gordon Matzigkeit, 1996
24992
24993 # Copyright (C) 2014 Free Software Foundation, Inc.
24994 # This is free software; see the source for copying conditions.  There is NO
24995 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24996
24997 # GNU Libtool is free software; you can redistribute it and/or modify
24998 # it under the terms of the GNU General Public License as published by
24999 # the Free Software Foundation; either version 2 of of the License, or
25000 # (at your option) any later version.
25001 #
25002 # As a special exception to the GNU General Public License, if you
25003 # distribute this file as part of a program or library that is built
25004 # using GNU Libtool, you may include this file under the  same
25005 # distribution terms that you use for the rest of that program.
25006 #
25007 # GNU Libtool is distributed in the hope that it will be useful, but
25008 # WITHOUT ANY WARRANTY; without even the implied warranty of
25009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25010 # GNU General Public License for more details.
25011 #
25012 # You should have received a copy of the GNU General Public License
25013 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
25014
25015
25016 # The names of the tagged configurations supported by this script.
25017 available_tags=''
25018
25019 # Configured defaults for sys_lib_dlsearch_path munging.
25020 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25021
25022 # ### BEGIN LIBTOOL CONFIG
25023
25024 # Assembler program.
25025 AS=$lt_AS
25026
25027 # DLL creation program.
25028 DLLTOOL=$lt_DLLTOOL
25029
25030 # Object dumper program.
25031 OBJDUMP=$lt_OBJDUMP
25032
25033 # Which release of libtool.m4 was used?
25034 macro_version=$macro_version
25035 macro_revision=$macro_revision
25036
25037 # Whether or not to build shared libraries.
25038 build_libtool_libs=$enable_shared
25039
25040 # Whether or not to build static libraries.
25041 build_old_libs=$enable_static
25042
25043 # What type of objects to build.
25044 pic_mode=$pic_mode
25045
25046 # Whether or not to optimize for fast installation.
25047 fast_install=$enable_fast_install
25048
25049 # Shared archive member basename,for filename based shared library versioning on AIX.
25050 shared_archive_member_spec=$shared_archive_member_spec
25051
25052 # Shell to use when invoking shell scripts.
25053 SHELL=$lt_SHELL
25054
25055 # An echo program that protects backslashes.
25056 ECHO=$lt_ECHO
25057
25058 # The PATH separator for the build system.
25059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25060
25061 # The host system.
25062 host_alias=$host_alias
25063 host=$host
25064 host_os=$host_os
25065
25066 # The build system.
25067 build_alias=$build_alias
25068 build=$build
25069 build_os=$build_os
25070
25071 # A sed program that does not truncate output.
25072 SED=$lt_SED
25073
25074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25075 Xsed="\$SED -e 1s/^X//"
25076
25077 # A grep program that handles long lines.
25078 GREP=$lt_GREP
25079
25080 # An ERE matcher.
25081 EGREP=$lt_EGREP
25082
25083 # A literal string matcher.
25084 FGREP=$lt_FGREP
25085
25086 # A BSD- or MS-compatible name lister.
25087 NM=$lt_NM
25088
25089 # Whether we need soft or hard links.
25090 LN_S=$lt_LN_S
25091
25092 # What is the maximum length of a command?
25093 max_cmd_len=$max_cmd_len
25094
25095 # Object file suffix (normally "o").
25096 objext=$ac_objext
25097
25098 # Executable file suffix (normally "").
25099 exeext=$exeext
25100
25101 # whether the shell understands "unset".
25102 lt_unset=$lt_unset
25103
25104 # turn spaces into newlines.
25105 SP2NL=$lt_lt_SP2NL
25106
25107 # turn newlines into spaces.
25108 NL2SP=$lt_lt_NL2SP
25109
25110 # convert \$build file names to \$host format.
25111 to_host_file_cmd=$lt_cv_to_host_file_cmd
25112
25113 # convert \$build files to toolchain format.
25114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25115
25116 # Method to check whether dependent libraries are shared objects.
25117 deplibs_check_method=$lt_deplibs_check_method
25118
25119 # Command to use when deplibs_check_method = "file_magic".
25120 file_magic_cmd=$lt_file_magic_cmd
25121
25122 # How to find potential files when deplibs_check_method = "file_magic".
25123 file_magic_glob=$lt_file_magic_glob
25124
25125 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25126 want_nocaseglob=$lt_want_nocaseglob
25127
25128 # Command to associate shared and link libraries.
25129 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25130
25131 # The archiver.
25132 AR=$lt_AR
25133
25134 # Flags to create an archive.
25135 AR_FLAGS=$lt_AR_FLAGS
25136
25137 # How to feed a file listing to the archiver.
25138 archiver_list_spec=$lt_archiver_list_spec
25139
25140 # A symbol stripping program.
25141 STRIP=$lt_STRIP
25142
25143 # Commands used to install an old-style archive.
25144 RANLIB=$lt_RANLIB
25145 old_postinstall_cmds=$lt_old_postinstall_cmds
25146 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25147
25148 # Whether to use a lock for old archive extraction.
25149 lock_old_archive_extraction=$lock_old_archive_extraction
25150
25151 # A C compiler.
25152 LTCC=$lt_CC
25153
25154 # LTCC compiler flags.
25155 LTCFLAGS=$lt_CFLAGS
25156
25157 # Take the output of nm and produce a listing of raw symbols and C names.
25158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25159
25160 # Transform the output of nm in a proper C declaration.
25161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25162
25163 # Transform the output of nm into a list of symbols to manually relocate.
25164 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25165
25166 # Transform the output of nm in a C name address pair.
25167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25168
25169 # Transform the output of nm in a C name address pair when lib prefix is needed.
25170 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25171
25172 # The name lister interface.
25173 nm_interface=$lt_lt_cv_nm_interface
25174
25175 # Specify filename containing input files for \$NM.
25176 nm_file_list_spec=$lt_nm_file_list_spec
25177
25178 # The root where to search for dependent libraries,and where our libraries should be installed.
25179 lt_sysroot=$lt_sysroot
25180
25181 # Command to truncate a binary pipe.
25182 lt_truncate_bin=$lt_lt_cv_truncate_bin
25183
25184 # The name of the directory that contains temporary libtool files.
25185 objdir=$objdir
25186
25187 # Used to examine libraries when file_magic_cmd begins with "file".
25188 MAGIC_CMD=$MAGIC_CMD
25189
25190 # Must we lock files when doing compilation?
25191 need_locks=$lt_need_locks
25192
25193 # Manifest tool.
25194 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25195
25196 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25197 DSYMUTIL=$lt_DSYMUTIL
25198
25199 # Tool to change global to local symbols on Mac OS X.
25200 NMEDIT=$lt_NMEDIT
25201
25202 # Tool to manipulate fat objects and archives on Mac OS X.
25203 LIPO=$lt_LIPO
25204
25205 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25206 OTOOL=$lt_OTOOL
25207
25208 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25209 OTOOL64=$lt_OTOOL64
25210
25211 # Old archive suffix (normally "a").
25212 libext=$libext
25213
25214 # Shared library suffix (normally ".so").
25215 shrext_cmds=$lt_shrext_cmds
25216
25217 # The commands to extract the exported symbol list from a shared archive.
25218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25219
25220 # Variables whose values should be saved in libtool wrapper scripts and
25221 # restored at link time.
25222 variables_saved_for_relink=$lt_variables_saved_for_relink
25223
25224 # Do we need the "lib" prefix for modules?
25225 need_lib_prefix=$need_lib_prefix
25226
25227 # Do we need a version for libraries?
25228 need_version=$need_version
25229
25230 # Library versioning type.
25231 version_type=$version_type
25232
25233 # Shared library runtime path variable.
25234 runpath_var=$runpath_var
25235
25236 # Shared library path variable.
25237 shlibpath_var=$shlibpath_var
25238
25239 # Is shlibpath searched before the hard-coded library search path?
25240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25241
25242 # Format of library name prefix.
25243 libname_spec=$lt_libname_spec
25244
25245 # List of archive names.  First name is the real one, the rest are links.
25246 # The last name is the one that the linker finds with -lNAME
25247 library_names_spec=$lt_library_names_spec
25248
25249 # The coded name of the library, if different from the real name.
25250 soname_spec=$lt_soname_spec
25251
25252 # Permission mode override for installation of shared libraries.
25253 install_override_mode=$lt_install_override_mode
25254
25255 # Command to use after installation of a shared archive.
25256 postinstall_cmds=$lt_postinstall_cmds
25257
25258 # Command to use after uninstallation of a shared archive.
25259 postuninstall_cmds=$lt_postuninstall_cmds
25260
25261 # Commands used to finish a libtool library installation in a directory.
25262 finish_cmds=$lt_finish_cmds
25263
25264 # As "finish_cmds", except a single script fragment to be evaled but
25265 # not shown.
25266 finish_eval=$lt_finish_eval
25267
25268 # Whether we should hardcode library paths into libraries.
25269 hardcode_into_libs=$hardcode_into_libs
25270
25271 # Compile-time system search path for libraries.
25272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25273
25274 # Detected run-time system search path for libraries.
25275 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25276
25277 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25278 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25279
25280 # Whether dlopen is supported.
25281 dlopen_support=$enable_dlopen
25282
25283 # Whether dlopen of programs is supported.
25284 dlopen_self=$enable_dlopen_self
25285
25286 # Whether dlopen of statically linked programs is supported.
25287 dlopen_self_static=$enable_dlopen_self_static
25288
25289 # Commands to strip libraries.
25290 old_striplib=$lt_old_striplib
25291 striplib=$lt_striplib
25292
25293
25294 # The linker used to build libraries.
25295 LD=$lt_LD
25296
25297 # How to create reloadable object files.
25298 reload_flag=$lt_reload_flag
25299 reload_cmds=$lt_reload_cmds
25300
25301 # Commands used to build an old-style archive.
25302 old_archive_cmds=$lt_old_archive_cmds
25303
25304 # A language specific compiler.
25305 CC=$lt_compiler
25306
25307 # Is the compiler the GNU compiler?
25308 with_gcc=$GCC
25309
25310 # Compiler flag to turn off builtin functions.
25311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25312
25313 # Additional compiler flags for building library objects.
25314 pic_flag=$lt_lt_prog_compiler_pic
25315
25316 # How to pass a linker flag through the compiler.
25317 wl=$lt_lt_prog_compiler_wl
25318
25319 # Compiler flag to prevent dynamic linking.
25320 link_static_flag=$lt_lt_prog_compiler_static
25321
25322 # Does compiler simultaneously support -c and -o options?
25323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25324
25325 # Whether or not to add -lc for building shared libraries.
25326 build_libtool_need_lc=$archive_cmds_need_lc
25327
25328 # Whether or not to disallow shared libs when runtime libs are static.
25329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25330
25331 # Compiler flag to allow reflexive dlopens.
25332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25333
25334 # Compiler flag to generate shared objects directly from archives.
25335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25336
25337 # Whether the compiler copes with passing no objects directly.
25338 compiler_needs_object=$lt_compiler_needs_object
25339
25340 # Create an old-style archive from a shared archive.
25341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25342
25343 # Create a temporary old-style archive to link instead of a shared archive.
25344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25345
25346 # Commands used to build a shared archive.
25347 archive_cmds=$lt_archive_cmds
25348 archive_expsym_cmds=$lt_archive_expsym_cmds
25349
25350 # Commands used to build a loadable module if different from building
25351 # a shared archive.
25352 module_cmds=$lt_module_cmds
25353 module_expsym_cmds=$lt_module_expsym_cmds
25354
25355 # Whether we are building with GNU ld or not.
25356 with_gnu_ld=$lt_with_gnu_ld
25357
25358 # Flag that allows shared libraries with undefined symbols to be built.
25359 allow_undefined_flag=$lt_allow_undefined_flag
25360
25361 # Flag that enforces no undefined symbols.
25362 no_undefined_flag=$lt_no_undefined_flag
25363
25364 # Flag to hardcode \$libdir into a binary during linking.
25365 # This must work even if \$libdir does not exist
25366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25367
25368 # Whether we need a single "-rpath" flag with a separated argument.
25369 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25370
25371 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25372 # DIR into the resulting binary.
25373 hardcode_direct=$hardcode_direct
25374
25375 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25376 # DIR into the resulting binary and the resulting library dependency is
25377 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25378 # library is relocated.
25379 hardcode_direct_absolute=$hardcode_direct_absolute
25380
25381 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25382 # into the resulting binary.
25383 hardcode_minus_L=$hardcode_minus_L
25384
25385 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25386 # into the resulting binary.
25387 hardcode_shlibpath_var=$hardcode_shlibpath_var
25388
25389 # Set to "yes" if building a shared library automatically hardcodes DIR
25390 # into the library and all subsequent libraries and executables linked
25391 # against it.
25392 hardcode_automatic=$hardcode_automatic
25393
25394 # Set to yes if linker adds runtime paths of dependent libraries
25395 # to runtime path list.
25396 inherit_rpath=$inherit_rpath
25397
25398 # Whether libtool must link a program against all its dependency libraries.
25399 link_all_deplibs=$link_all_deplibs
25400
25401 # Set to "yes" if exported symbols are required.
25402 always_export_symbols=$always_export_symbols
25403
25404 # The commands to list exported symbols.
25405 export_symbols_cmds=$lt_export_symbols_cmds
25406
25407 # Symbols that should not be listed in the preloaded symbols.
25408 exclude_expsyms=$lt_exclude_expsyms
25409
25410 # Symbols that must always be exported.
25411 include_expsyms=$lt_include_expsyms
25412
25413 # Commands necessary for linking programs (against libraries) with templates.
25414 prelink_cmds=$lt_prelink_cmds
25415
25416 # Commands necessary for finishing linking programs.
25417 postlink_cmds=$lt_postlink_cmds
25418
25419 # Specify filename containing input files.
25420 file_list_spec=$lt_file_list_spec
25421
25422 # How to hardcode a shared library path into an executable.
25423 hardcode_action=$hardcode_action
25424
25425 # ### END LIBTOOL CONFIG
25426
25427 _LT_EOF
25428
25429     cat <<'_LT_EOF' >> "$cfgfile"
25430
25431 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25432
25433 # func_munge_path_list VARIABLE PATH
25434 # -----------------------------------
25435 # VARIABLE is name of variable containing _space_ separated list of
25436 # directories to be munged by the contents of PATH, which is string
25437 # having a format:
25438 # "DIR[:DIR]:"
25439 #       string "DIR[ DIR]" will be prepended to VARIABLE
25440 # ":DIR[:DIR]"
25441 #       string "DIR[ DIR]" will be appended to VARIABLE
25442 # "DIRP[:DIRP]::[DIRA:]DIRA"
25443 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25444 #       "DIRA[ DIRA]" will be appended to VARIABLE
25445 # "DIR[:DIR]"
25446 #       VARIABLE will be replaced by "DIR[ DIR]"
25447 func_munge_path_list ()
25448 {
25449     case x$2 in
25450     x)
25451         ;;
25452     *:)
25453         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25454         ;;
25455     x:*)
25456         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25457         ;;
25458     *::*)
25459         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25460         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25461         ;;
25462     *)
25463         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25464         ;;
25465     esac
25466 }
25467
25468
25469 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25470 func_cc_basename ()
25471 {
25472     for cc_temp in $*""; do
25473       case $cc_temp in
25474         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25475         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25476         \-*) ;;
25477         *) break;;
25478       esac
25479     done
25480     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25481 }
25482
25483
25484 # ### END FUNCTIONS SHARED WITH CONFIGURE
25485
25486 _LT_EOF
25487
25488   case $host_os in
25489   aix3*)
25490     cat <<\_LT_EOF >> "$cfgfile"
25491 # AIX sometimes has problems with the GCC collect2 program.  For some
25492 # reason, if we set the COLLECT_NAMES environment variable, the problems
25493 # vanish in a puff of smoke.
25494 if test set != "${COLLECT_NAMES+set}"; then
25495   COLLECT_NAMES=
25496   export COLLECT_NAMES
25497 fi
25498 _LT_EOF
25499     ;;
25500   esac
25501
25502
25503
25504 ltmain=$ac_aux_dir/ltmain.sh
25505
25506
25507   # We use sed instead of cat because bash on DJGPP gets confused if
25508   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25509   # text mode, it properly converts lines to CR/LF.  This bash problem
25510   # is reportedly fixed, but why not run on old versions too?
25511   sed '$q' "$ltmain" >> "$cfgfile" \
25512      || (rm -f "$cfgfile"; exit 1)
25513
25514    mv -f "$cfgfile" "$ofile" ||
25515     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25516   chmod +x "$ofile"
25517
25518  ;;
25519     "mkdirs":C) mkdir -p libarchive/test tar/test cat/test cpio/test ;;
25520
25521   esac
25522 done # for ac_tag
25523
25524
25525 as_fn_exit 0
25526 _ACEOF
25527 ac_clean_files=$ac_clean_files_save
25528
25529 test $ac_write_fail = 0 ||
25530   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25531
25532
25533 # configure is writing to config.log, and then calls config.status.
25534 # config.status does its own redirection, appending to config.log.
25535 # Unfortunately, on DOS this fails, as config.log is still kept open
25536 # by configure, so config.status won't be able to write to it; its
25537 # output is simply discarded.  So we exec the FD to /dev/null,
25538 # effectively closing config.log, so it can be properly (re)opened and
25539 # appended to by config.status.  When coming back to configure, we
25540 # need to make the FD available again.
25541 if test "$no_create" != yes; then
25542   ac_cs_success=:
25543   ac_config_status_args=
25544   test "$silent" = yes &&
25545     ac_config_status_args="$ac_config_status_args --quiet"
25546   exec 5>/dev/null
25547   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25548   exec 5>>config.log
25549   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25550   # would make configure fail if this is the last instruction.
25551   $ac_cs_success || as_fn_exit 1
25552 fi
25553 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25555 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25556 fi
25557
25558