Imported Upstream version 8.5.0
[platform/upstream/curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
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 # Copyright (C) Daniel Stenberg, <daniel@haxx.se>
16 # This configure script may be copied, distributed and modified under the
17 # terms of the curl license; see COPYING for more details
18
19 ## -------------------------------- ##
20 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
21 ## -------------------------------- ##
22
23 xc_configure_preamble_ver_major='1'
24 xc_configure_preamble_ver_minor='0'
25
26 #
27 # Set IFS to space, tab and newline.
28 #
29
30 xc_space=' '
31 xc_tab='        '
32 xc_newline='
33 '
34 IFS="$xc_space$xc_tab$xc_newline"
35
36 #
37 # Set internationalization behavior variables.
38 #
39
40 LANG='C'
41 LC_ALL='C'
42 LANGUAGE='C'
43 export LANG
44 export LC_ALL
45 export LANGUAGE
46
47 #
48 # Some useful variables.
49 #
50
51 xc_msg_warn='configure: WARNING:'
52 xc_msg_abrt='Can not continue.'
53 xc_msg_err='configure: error:'
54
55 #
56 # Verify that 'echo' command is available, otherwise abort.
57 #
58
59 xc_tst_str='unknown'
60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61 case "x$xc_tst_str" in # ((
62   xsuccess)
63     :
64     ;;
65   *)
66     # Try built-in echo, and fail.
67     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68     exit 1
69     ;;
70 esac
71
72 #
73 # Verify that 'test' command is available, otherwise abort.
74 #
75
76 xc_tst_str='unknown'
77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78 case "x$xc_tst_str" in # ((
79   xsuccess)
80     :
81     ;;
82   *)
83     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84     exit 1
85     ;;
86 esac
87
88 #
89 # Verify that 'PATH' variable is set, otherwise abort.
90 #
91
92 xc_tst_str='unknown'
93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94 case "x$xc_tst_str" in # ((
95   xsuccess)
96     :
97     ;;
98   *)
99     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100     exit 1
101     ;;
102 esac
103
104 #
105 # Verify that 'expr' command is available, otherwise abort.
106 #
107
108 xc_tst_str='unknown'
109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110 case "x$xc_tst_str" in # ((
111   x7)
112     :
113     ;;
114   *)
115     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116     exit 1
117     ;;
118 esac
119
120 #
121 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
122 #
123
124 xc_tst_str='unknown'
125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126   | sed -e 's:unknown:success:' 2>/dev/null`
127 case "x$xc_tst_str" in # ((
128   xsuccess)
129     :
130     ;;
131   *)
132     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133     exit 1
134     ;;
135 esac
136
137 #
138 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
139 #
140
141 xc_tst_str='unknown'
142 (`echo "$xc_tst_str" 2>/dev/null \
143   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144 case "x$xc_tst_str" in # ((
145   xsuccess)
146     :
147     ;;
148   *)
149     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150     exit 1
151     ;;
152 esac
153
154 #
155 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
156 #
157
158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160   | tr -d "0123456789$xc_tab" 2>/dev/null`
161 case "x$xc_tst_str" in # ((
162   xsuccess)
163     :
164     ;;
165   *)
166     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167     exit 1
168     ;;
169 esac
170
171 #
172 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
173 #
174
175 xc_tst_str='unknown unknown unknown unknown'
176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178 case "x$xc_tst_str" in # ((
179   x4)
180     :
181     ;;
182   *)
183     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184     exit 1
185     ;;
186 esac
187
188 #
189 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
190 #
191
192 xc_tst_str='unknown'
193 xc_tst_str=`cat <<_EOT 2>/dev/null \
194   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195 unknown
196 unknown
197 unknown
198 _EOT`
199 case "x$xc_tst_str" in # ((
200   x3)
201     :
202     ;;
203   *)
204     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205     exit 1
206     ;;
207 esac
208
209 #
210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
211 #
212
213 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_dirs_col='x'
215 xc_tst_prev_IFS=$IFS; IFS=':'
216 for xc_tst_dir in $PATH; do
217   IFS=$xc_tst_prev_IFS
218   xc_tst_dirs_col="x$xc_tst_dirs_col"
219 done
220 IFS=$xc_tst_prev_IFS
221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222
223 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_dirs_sem='x'
225 xc_tst_prev_IFS=$IFS; IFS=';'
226 for xc_tst_dir in $PATH; do
227   IFS=$xc_tst_prev_IFS
228   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
229 done
230 IFS=$xc_tst_prev_IFS
231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232
233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234   # When both counting methods give the same result we do not want to
235   # chose one over the other, and consider auto-detection not possible.
236   if test -z "$PATH_SEPARATOR"; then
237     # User should provide the correct 'PATH_SEPARATOR' definition.
238     # Until then, guess that it is colon!
239     echo "$xc_msg_warn path separator not determined, guessing colon" >&2
240     PATH_SEPARATOR=':'
241   fi
242 else
243   # Separator with the greater directory count is the auto-detected one.
244   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245     xc_tst_auto_separator=';'
246   else
247     xc_tst_auto_separator=':'
248   fi
249   if test -z "$PATH_SEPARATOR"; then
250     # Simply use the auto-detected one when not already set.
251     PATH_SEPARATOR=$xc_tst_auto_separator
252   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254   fi
255 fi
256 xc_PATH_SEPARATOR=$PATH_SEPARATOR
257
258 xc_configure_preamble_result='yes'
259
260
261 ## -------------------- ##
262 ## M4sh Initialization. ##
263 ## -------------------- ##
264
265 # Be more Bourne compatible
266 DUALCASE=1; export DUALCASE # for MKS sh
267 as_nop=:
268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
269 then :
270   emulate sh
271   NULLCMD=:
272   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273   # is contrary to our usage.  Disable this feature.
274   alias -g '${1+"$@"}'='"$@"'
275   setopt NO_GLOB_SUBST
276 else $as_nop
277   case `(set -o) 2>/dev/null` in #(
278   *posix*) :
279     set -o posix ;; #(
280   *) :
281      ;;
282 esac
283 fi
284
285
286
287 # Reset variables that may have inherited troublesome values from
288 # the environment.
289
290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
292 # side effect of setting IFS to empty, thus disabling word splitting.)
293 # Quoting is to prevent editors from complaining about space-tab.
294 as_nl='
295 '
296 export as_nl
297 IFS=" ""        $as_nl"
298
299 PS1='$ '
300 PS2='> '
301 PS4='+ '
302
303 # Ensure predictable behavior from utilities with locale-dependent output.
304 LC_ALL=C
305 export LC_ALL
306 LANGUAGE=C
307 export LANGUAGE
308
309 # We cannot yet rely on "unset" to work, but we need these variables
310 # to be unset--not just set to an empty or harmless value--now, to
311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
312 # also avoids known problems related to "unset" and subshell syntax
313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315 do eval test \${$as_var+y} \
316   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
317 done
318
319 # Ensure that fds 0, 1, and 2 are open.
320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
323
324
325
326 # Find who we are.  Look in the path if we contain no directory separator.
327 as_myself=
328 case $0 in #((
329   *[\\/]* ) as_myself=$0 ;;
330   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331 for as_dir in $PATH
332 do
333   IFS=$as_save_IFS
334   case $as_dir in #(((
335     '') as_dir=./ ;;
336     */) ;;
337     *) as_dir=$as_dir/ ;;
338   esac
339     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
340   done
341 IFS=$as_save_IFS
342
343      ;;
344 esac
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
348   as_myself=$0
349 fi
350 if test ! -f "$as_myself"; then
351   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352   exit 1
353 fi
354
355
356 # Use a proper internal environment variable to ensure we don't fall
357   # into an infinite loop, continuously re-executing ourselves.
358   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359     _as_can_reexec=no; export _as_can_reexec;
360     # We cannot yet assume a decent shell, so we have to provide a
361 # neutralization value for shells without unset; and this also
362 # works around shells that cannot unset nonexistent variables.
363 # Preserve -v and -x to the replacement shell.
364 BASH_ENV=/dev/null
365 ENV=/dev/null
366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367 case $- in # ((((
368   *v*x* | *x*v* ) as_opts=-vx ;;
369   *v* ) as_opts=-v ;;
370   *x* ) as_opts=-x ;;
371   * ) as_opts= ;;
372 esac
373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374 # Admittedly, this is quite paranoid, since all the known shells bail
375 # out after a failed `exec'.
376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
377 exit 255
378   fi
379   # We don't want this to propagate to other subprocesses.
380           { _as_can_reexec=; unset _as_can_reexec;}
381 if test "x$CONFIG_SHELL" = x; then
382   as_bourne_compatible="as_nop=:
383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
384 then :
385   emulate sh
386   NULLCMD=:
387   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388   # is contrary to our usage.  Disable this feature.
389   alias -g '\${1+\"\$@\"}'='\"\$@\"'
390   setopt NO_GLOB_SUBST
391 else \$as_nop
392   case \`(set -o) 2>/dev/null\` in #(
393   *posix*) :
394     set -o posix ;; #(
395   *) :
396      ;;
397 esac
398 fi
399 "
400   as_required="as_fn_return () { (exit \$1); }
401 as_fn_success () { as_fn_return 0; }
402 as_fn_failure () { as_fn_return 1; }
403 as_fn_ret_success () { return 0; }
404 as_fn_ret_failure () { return 1; }
405
406 exitcode=0
407 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
412 then :
413
414 else \$as_nop
415   exitcode=1; echo positional parameters were not saved.
416 fi
417 test x\$exitcode = x0 || exit 1
418 blah=\$(echo \$(echo blah))
419 test x\"\$blah\" = xblah || exit 1
420 test -x / || exit 1"
421   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425 test \$(( 1 + 1 )) = 2 || exit 1
426
427   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431     PATH=/empty FPATH=/empty; export PATH FPATH
432     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434   if (eval "$as_required") 2>/dev/null
435 then :
436   as_have_required=yes
437 else $as_nop
438   as_have_required=no
439 fi
440   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
441 then :
442
443 else $as_nop
444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
445 as_found=false
446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447 do
448   IFS=$as_save_IFS
449   case $as_dir in #(((
450     '') as_dir=./ ;;
451     */) ;;
452     *) as_dir=$as_dir/ ;;
453   esac
454   as_found=:
455   case $as_dir in #(
456          /*)
457            for as_base in sh bash ksh sh5; do
458              # Try only shells that exist, to save several forks.
459              as_shell=$as_dir$as_base
460              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
462 then :
463   CONFIG_SHELL=$as_shell as_have_required=yes
464                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
465 then :
466   break 2
467 fi
468 fi
469            done;;
470        esac
471   as_found=false
472 done
473 IFS=$as_save_IFS
474 if $as_found
475 then :
476
477 else $as_nop
478   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
480 then :
481   CONFIG_SHELL=$SHELL as_have_required=yes
482 fi
483 fi
484
485
486       if test "x$CONFIG_SHELL" != x
487 then :
488   export CONFIG_SHELL
489              # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
493 BASH_ENV=/dev/null
494 ENV=/dev/null
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 case $- in # ((((
497   *v*x* | *x*v* ) as_opts=-vx ;;
498   *v* ) as_opts=-v ;;
499   *x* ) as_opts=-x ;;
500   * ) as_opts= ;;
501 esac
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
506 exit 255
507 fi
508
509     if test x$as_have_required = xno
510 then :
511   printf "%s\n" "$0: This script requires a shell more modern than all"
512   printf "%s\n" "$0: the shells that I found on your system."
513   if test ${ZSH_VERSION+y} ; then
514     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
516   else
517     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518 $0: mailing list: https://curl.se/mail/ about your system,
519 $0: including any error possibly output before this
520 $0: message. Then install a modern shell, or manually run
521 $0: the script under such a shell if you do have one."
522   fi
523   exit 1
524 fi
525 fi
526 fi
527 SHELL=${CONFIG_SHELL-/bin/sh}
528 export SHELL
529 # Unset more variables known to interfere with behavior of common tools.
530 CLICOLOR_FORCE= GREP_OPTIONS=
531 unset CLICOLOR_FORCE GREP_OPTIONS
532
533 ## --------------------- ##
534 ## M4sh Shell Functions. ##
535 ## --------------------- ##
536 # as_fn_unset VAR
537 # ---------------
538 # Portably unset VAR.
539 as_fn_unset ()
540 {
541   { eval $1=; unset $1;}
542 }
543 as_unset=as_fn_unset
544
545
546 # as_fn_set_status STATUS
547 # -----------------------
548 # Set $? to STATUS, without forking.
549 as_fn_set_status ()
550 {
551   return $1
552 } # as_fn_set_status
553
554 # as_fn_exit STATUS
555 # -----------------
556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
557 as_fn_exit ()
558 {
559   set +e
560   as_fn_set_status $1
561   exit $1
562 } # as_fn_exit
563 # as_fn_nop
564 # ---------
565 # Do nothing but, unlike ":", preserve the value of $?.
566 as_fn_nop ()
567 {
568   return $?
569 }
570 as_nop=as_fn_nop
571
572 # as_fn_mkdir_p
573 # -------------
574 # Create "$as_dir" as a directory, including parents if necessary.
575 as_fn_mkdir_p ()
576 {
577
578   case $as_dir in #(
579   -*) as_dir=./$as_dir;;
580   esac
581   test -d "$as_dir" || eval $as_mkdir_p || {
582     as_dirs=
583     while :; do
584       case $as_dir in #(
585       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
586       *) as_qdir=$as_dir;;
587       esac
588       as_dirs="'$as_qdir' $as_dirs"
589       as_dir=`$as_dirname -- "$as_dir" ||
590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591          X"$as_dir" : 'X\(//\)[^/]' \| \
592          X"$as_dir" : 'X\(//\)$' \| \
593          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594 printf "%s\n" X"$as_dir" |
595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
596             s//\1/
597             q
598           }
599           /^X\(\/\/\)[^/].*/{
600             s//\1/
601             q
602           }
603           /^X\(\/\/\)$/{
604             s//\1/
605             q
606           }
607           /^X\(\/\).*/{
608             s//\1/
609             q
610           }
611           s/.*/./; q'`
612       test -d "$as_dir" && break
613     done
614     test -z "$as_dirs" || eval "mkdir $as_dirs"
615   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
616
617
618 } # as_fn_mkdir_p
619
620 # as_fn_executable_p FILE
621 # -----------------------
622 # Test if FILE is an executable regular file.
623 as_fn_executable_p ()
624 {
625   test -f "$1" && test -x "$1"
626 } # as_fn_executable_p
627 # as_fn_append VAR VALUE
628 # ----------------------
629 # Append the text in VALUE to the end of the definition contained in VAR. Take
630 # advantage of any shell optimizations that allow amortized linear growth over
631 # repeated appends, instead of the typical quadratic growth present in naive
632 # implementations.
633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
634 then :
635   eval 'as_fn_append ()
636   {
637     eval $1+=\$2
638   }'
639 else $as_nop
640   as_fn_append ()
641   {
642     eval $1=\$$1\$2
643   }
644 fi # as_fn_append
645
646 # as_fn_arith ARG...
647 # ------------------
648 # Perform arithmetic evaluation on the ARGs, and store the result in the
649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
650 # must be portable across $(()) and expr.
651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
652 then :
653   eval 'as_fn_arith ()
654   {
655     as_val=$(( $* ))
656   }'
657 else $as_nop
658   as_fn_arith ()
659   {
660     as_val=`expr "$@" || test $? -eq 1`
661   }
662 fi # as_fn_arith
663
664 # as_fn_nop
665 # ---------
666 # Do nothing but, unlike ":", preserve the value of $?.
667 as_fn_nop ()
668 {
669   return $?
670 }
671 as_nop=as_fn_nop
672
673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
674 # ----------------------------------------
675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677 # script with STATUS, using 1 if that was 0.
678 as_fn_error ()
679 {
680   as_status=$1; test $as_status -eq 0 && as_status=1
681   if test "$4"; then
682     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
684   fi
685   printf "%s\n" "$as_me: error: $2" >&2
686   as_fn_exit $as_status
687 } # as_fn_error
688
689 if expr a : '\(a\)' >/dev/null 2>&1 &&
690    test "X`expr 00001 : '.*\(...\)'`" = X001; then
691   as_expr=expr
692 else
693   as_expr=false
694 fi
695
696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697   as_basename=basename
698 else
699   as_basename=false
700 fi
701
702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703   as_dirname=dirname
704 else
705   as_dirname=false
706 fi
707
708 as_me=`$as_basename -- "$0" ||
709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710          X"$0" : 'X\(//\)$' \| \
711          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712 printf "%s\n" X/"$0" |
713     sed '/^.*\/\([^/][^/]*\)\/*$/{
714             s//\1/
715             q
716           }
717           /^X\/\(\/\/\)$/{
718             s//\1/
719             q
720           }
721           /^X\/\(\/\).*/{
722             s//\1/
723             q
724           }
725           s/.*/./; q'`
726
727 # Avoid depending upon Character Ranges.
728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731 as_cr_digits='0123456789'
732 as_cr_alnum=$as_cr_Letters$as_cr_digits
733
734
735   as_lineno_1=$LINENO as_lineno_1a=$LINENO
736   as_lineno_2=$LINENO as_lineno_2a=$LINENO
737   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
740   sed -n '
741     p
742     /[$]LINENO/=
743   ' <$as_myself |
744     sed '
745       s/[$]LINENO.*/&-/
746       t lineno
747       b
748       :lineno
749       N
750       :loop
751       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
752       t loop
753       s/-\n.*//
754     ' >$as_me.lineno &&
755   chmod +x "$as_me.lineno" ||
756     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
757
758   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759   # already done that, so ensure we don't try to do so again and fall
760   # in an infinite loop.  This has already happened in practice.
761   _as_can_reexec=no; export _as_can_reexec
762   # Don't try to exec as it changes $[0], causing all sort of problems
763   # (the dirname of $[0] is not the place where we might find the
764   # original and so on.  Autoconf is especially sensitive to this).
765   . "./$as_me.lineno"
766   # Exit status is that of the last command.
767   exit
768 }
769
770
771 # Determine whether it's possible to make 'echo' print without a newline.
772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773 # for compatibility with existing Makefiles.
774 ECHO_C= ECHO_N= ECHO_T=
775 case `echo -n x` in #(((((
776 -n*)
777   case `echo 'xy\c'` in
778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
779   xy)  ECHO_C='\c';;
780   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
781        ECHO_T=' ';;
782   esac;;
783 *)
784   ECHO_N='-n';;
785 esac
786
787 # For backward compatibility with old third-party macros, we provide
788 # the shell variables $as_echo and $as_echo_n.  New code should use
789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790 as_echo='printf %s\n'
791 as_echo_n='printf %s'
792
793
794 rm -f conf$$ conf$$.exe conf$$.file
795 if test -d conf$$.dir; then
796   rm -f conf$$.dir/conf$$.file
797 else
798   rm -f conf$$.dir
799   mkdir conf$$.dir 2>/dev/null
800 fi
801 if (echo >conf$$.file) 2>/dev/null; then
802   if ln -s conf$$.file conf$$ 2>/dev/null; then
803     as_ln_s='ln -s'
804     # ... but there are two gotchas:
805     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807     # In both cases, we have to default to `cp -pR'.
808     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
809       as_ln_s='cp -pR'
810   elif ln conf$$.file conf$$ 2>/dev/null; then
811     as_ln_s=ln
812   else
813     as_ln_s='cp -pR'
814   fi
815 else
816   as_ln_s='cp -pR'
817 fi
818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819 rmdir conf$$.dir 2>/dev/null
820
821 if mkdir -p . 2>/dev/null; then
822   as_mkdir_p='mkdir -p "$as_dir"'
823 else
824   test -d ./-p && rmdir ./-p
825   as_mkdir_p=false
826 fi
827
828 as_test_x='test -x'
829 as_executable_p=as_fn_executable_p
830
831 # Sed expression to map a string onto a valid CPP name.
832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
833
834 # Sed expression to map a string onto a valid variable name.
835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
836
837 SHELL=${CONFIG_SHELL-/bin/sh}
838
839
840 test -n "$DJDIR" || exec 7<&0 </dev/null
841 exec 6>&1
842
843 # Name of the host.
844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845 # so uname gets run too.
846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
847
848 #
849 # Initializations.
850 #
851 ac_default_prefix=/usr/local
852 ac_clean_files=
853 ac_config_libobj_dir=.
854 LIBOBJS=
855 cross_compiling=no
856 subdirs=
857 MFLAGS=
858 MAKEFLAGS=
859
860 # Identity of this package.
861 PACKAGE_NAME='curl'
862 PACKAGE_TARNAME='curl'
863 PACKAGE_VERSION='-'
864 PACKAGE_STRING='curl -'
865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
866 PACKAGE_URL=''
867
868 ac_unique_file="lib/urldata.h"
869 # Factoring default headers for most tests.
870 ac_includes_default="\
871 #include <stddef.h>
872 #ifdef HAVE_STDIO_H
873 # include <stdio.h>
874 #endif
875 #ifdef HAVE_STDLIB_H
876 # include <stdlib.h>
877 #endif
878 #ifdef HAVE_STRING_H
879 # include <string.h>
880 #endif
881 #ifdef HAVE_INTTYPES_H
882 # include <inttypes.h>
883 #endif
884 #ifdef HAVE_STDINT_H
885 # include <stdint.h>
886 #endif
887 #ifdef HAVE_STRINGS_H
888 # include <strings.h>
889 #endif
890 #ifdef HAVE_SYS_TYPES_H
891 # include <sys/types.h>
892 #endif
893 #ifdef HAVE_SYS_STAT_H
894 # include <sys/stat.h>
895 #endif
896 #ifdef HAVE_UNISTD_H
897 # include <unistd.h>
898 #endif"
899
900 ac_header_c_list=
901 ac_subst_vars='am__EXEEXT_FALSE
902 am__EXEEXT_TRUE
903 LTLIBOBJS
904 LIBOBJS
905 SSL_BACKENDS
906 SUPPORT_PROTOCOLS
907 SUPPORT_FEATURES
908 LIBCURL_NO_SHARED
909 ENABLE_STATIC
910 ENABLE_SHARED
911 CROSSCOMPILING_FALSE
912 CROSSCOMPILING_TRUE
913 BLANK_AT_MAKETIME
914 CURL_NETWORK_AND_TIME_LIBS
915 CURL_NETWORK_LIBS
916 LIBCURL_LIBS
917 CFLAG_CURL_SYMBOL_HIDING
918 DOING_CURL_SYMBOL_HIDING_FALSE
919 DOING_CURL_SYMBOL_HIDING_TRUE
920 USE_UNIX_SOCKETS
921 BUILD_LIBHOSTNAME_FALSE
922 BUILD_LIBHOSTNAME_TRUE
923 USE_ARES
924 USE_MANUAL_FALSE
925 USE_MANUAL_TRUE
926 MANOPT
927 NROFF
928 PERL
929 FISH_FUNCTIONS_DIR
930 ZSH_FUNCTIONS_DIR
931 USE_MSH3
932 USE_QUICHE
933 USE_NGHTTP3
934 USE_NGTCP2_CRYPTO_WOLFSSL
935 USE_NGTCP2_CRYPTO_GNUTLS
936 USE_NGTCP2_CRYPTO_QUICTLS
937 USE_NGTCP2
938 USE_NGHTTP2
939 IDN_ENABLED
940 CURL_PLIST_VERSION
941 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
942 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
943 CURL_LT_SHLIB_VERSIONED_FLAVOUR
944 USE_LIBRTMP
945 USE_WOLFSSH
946 USE_LIBSSH
947 USE_LIBSSH2
948 USE_GSASL_FALSE
949 USE_GSASL_TRUE
950 USE_LIBPSL_FALSE
951 USE_LIBPSL_TRUE
952 CURL_CA_BUNDLE
953 CURL_WITH_MULTI_SSL
954 SSL_ENABLED
955 USE_RUSTLS
956 USE_BEARSSL
957 USE_WOLFSSL
958 USE_MBEDTLS
959 HAVE_GNUTLS_SRP
960 USE_GNUTLS
961 HAVE_OPENSSL_SRP
962 RANDOM_FILE
963 SSL_LIBS
964 USE_SECTRANSP
965 USE_WINDOWS_SSPI
966 USE_SCHANNEL
967 DEFAULT_SSL_BACKEND
968 BUILD_STUB_GSS_FALSE
969 BUILD_STUB_GSS_TRUE
970 IPV6_ENABLED
971 USE_OPENLDAP
972 HAVE_ZSTD
973 HAVE_BROTLI
974 ZLIB_LIBS
975 HAVE_LIBZ_FALSE
976 HAVE_LIBZ_TRUE
977 HAVE_LIBZ
978 HAVE_PROTO_BSDSOCKET_H
979 CURL_DISABLE_MQTT
980 CURL_DISABLE_GOPHER
981 CURL_DISABLE_SMTP
982 CURL_DISABLE_SMB
983 CURL_DISABLE_IMAP
984 CURL_DISABLE_POP3
985 CURL_DISABLE_TFTP
986 CURL_DISABLE_TELNET
987 CURL_DISABLE_DICT
988 CURL_DISABLE_PROXY
989 USE_HYPER
990 PKGCONFIG
991 HAVE_LDAP_SSL
992 CURL_DISABLE_LDAPS
993 CURL_DISABLE_LDAP
994 CURL_DISABLE_FILE
995 CURL_DISABLE_FTP
996 CURL_DISABLE_RTSP
997 CURL_DISABLE_HTTP
998 HAVE_WINDRES_FALSE
999 HAVE_WINDRES_TRUE
1000 USE_WIN32_CRYPTO
1001 USE_WIN32_SMALL_FILES
1002 USE_WIN32_LARGE_FILES
1003 DOING_NATIVE_WINDOWS_FALSE
1004 DOING_NATIVE_WINDOWS_TRUE
1005 BUILD_UNITTESTS_FALSE
1006 BUILD_UNITTESTS_TRUE
1007 CURLDEBUG_FALSE
1008 CURLDEBUG_TRUE
1009 CURL_CFLAG_EXTRAS
1010 USE_EXPLICIT_LIB_DEPS_FALSE
1011 USE_EXPLICIT_LIB_DEPS_TRUE
1012 REQUIRE_LIB_DEPS
1013 CPPFLAG_CURL_STATICLIB
1014 USE_CPPFLAG_CURL_STATICLIB_FALSE
1015 USE_CPPFLAG_CURL_STATICLIB_TRUE
1016 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1017 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1018 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1019 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1020 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1021 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1022 RC
1023 LT_SYS_LIBRARY_PATH
1024 OTOOL64
1025 OTOOL
1026 LIPO
1027 NMEDIT
1028 DSYMUTIL
1029 MANIFEST_TOOL
1030 RANLIB
1031 ac_ct_AR
1032 FILECMD
1033 LN_S
1034 NM
1035 ac_ct_DUMPBIN
1036 DUMPBIN
1037 LD
1038 FGREP
1039 LIBTOOL
1040 OBJDUMP
1041 DLLTOOL
1042 AS
1043 AR_FLAGS
1044 host_os
1045 host_vendor
1046 host_cpu
1047 host
1048 build_os
1049 build_vendor
1050 build_cpu
1051 build
1052 HTTPD_NGHTTPX
1053 APACHECTL
1054 HTTPD
1055 APXS
1056 CADDY
1057 TEST_NGHTTPX
1058 PKGADD_VENDOR
1059 PKGADD_NAME
1060 PKGADD_PKG
1061 VERSIONNUM
1062 CURLVERSION
1063 CSCOPE
1064 ETAGS
1065 CTAGS
1066 am__fastdepCC_FALSE
1067 am__fastdepCC_TRUE
1068 CCDEPMODE
1069 am__nodep
1070 AMDEPBACKSLASH
1071 AMDEP_FALSE
1072 AMDEP_TRUE
1073 am__include
1074 DEPDIR
1075 am__untar
1076 am__tar
1077 AMTAR
1078 am__leading_dot
1079 SET_MAKE
1080 AWK
1081 mkdir_p
1082 MKDIR_P
1083 INSTALL_STRIP_PROGRAM
1084 STRIP
1085 install_sh
1086 MAKEINFO
1087 AUTOHEADER
1088 AUTOMAKE
1089 AUTOCONF
1090 ACLOCAL
1091 VERSION
1092 PACKAGE
1093 CYGPATH_W
1094 am__isrc
1095 LCOV
1096 GCOV
1097 CPP
1098 OBJEXT
1099 EXEEXT
1100 ac_ct_CC
1101 CPPFLAGS
1102 LDFLAGS
1103 CFLAGS
1104 CC
1105 INSTALL_DATA
1106 INSTALL_SCRIPT
1107 INSTALL_PROGRAM
1108 libext
1109 AR
1110 EGREP
1111 GREP
1112 SED
1113 CONFIGURE_OPTIONS
1114 AM_BACKSLASH
1115 AM_DEFAULT_VERBOSITY
1116 AM_DEFAULT_V
1117 AM_V
1118 MAINT
1119 MAINTAINER_MODE_FALSE
1120 MAINTAINER_MODE_TRUE
1121 target_alias
1122 host_alias
1123 build_alias
1124 LIBS
1125 ECHO_T
1126 ECHO_N
1127 ECHO_C
1128 DEFS
1129 mandir
1130 localedir
1131 libdir
1132 psdir
1133 pdfdir
1134 dvidir
1135 htmldir
1136 infodir
1137 docdir
1138 oldincludedir
1139 includedir
1140 runstatedir
1141 localstatedir
1142 sharedstatedir
1143 sysconfdir
1144 datadir
1145 datarootdir
1146 libexecdir
1147 sbindir
1148 bindir
1149 program_transform_name
1150 prefix
1151 exec_prefix
1152 PACKAGE_URL
1153 PACKAGE_BUGREPORT
1154 PACKAGE_STRING
1155 PACKAGE_VERSION
1156 PACKAGE_TARNAME
1157 PACKAGE_NAME
1158 SHELL
1159 PATH_SEPARATOR
1160 am__quote'
1161 ac_subst_files=''
1162 ac_user_opts='
1163 enable_option_checking
1164 enable_maintainer_mode
1165 enable_silent_rules
1166 enable_debug
1167 enable_optimize
1168 enable_warnings
1169 enable_werror
1170 enable_curldebug
1171 enable_symbol_hiding
1172 enable_ares
1173 enable_rt
1174 enable_ech
1175 enable_code_coverage
1176 enable_dependency_tracking
1177 with_schannel
1178 with_secure_transport
1179 with_amissl
1180 with_ssl
1181 with_openssl
1182 with_gnutls
1183 with_mbedtls
1184 with_wolfssl
1185 with_bearssl
1186 with_rustls
1187 with_test_nghttpx
1188 with_test_caddy
1189 with_test_httpd
1190 with_darwinssl
1191 enable_largefile
1192 enable_shared
1193 enable_static
1194 with_pic
1195 enable_fast_install
1196 with_aix_soname
1197 with_gnu_ld
1198 with_sysroot
1199 enable_libtool_lock
1200 enable_http
1201 enable_ftp
1202 enable_file
1203 enable_ldap
1204 enable_ldaps
1205 with_hyper
1206 enable_rtsp
1207 enable_proxy
1208 enable_dict
1209 enable_telnet
1210 enable_tftp
1211 enable_pop3
1212 enable_imap
1213 enable_smb
1214 enable_smtp
1215 enable_gopher
1216 enable_mqtt
1217 enable_manual
1218 enable_libcurl_option
1219 enable_libgcc
1220 with_zlib
1221 with_brotli
1222 with_zstd
1223 with_ldap_lib
1224 with_lber_lib
1225 enable_ipv6
1226 with_gssapi_includes
1227 with_gssapi_libs
1228 with_gssapi
1229 with_default_ssl_backend
1230 with_random
1231 enable_openssl_auto_load_config
1232 with_ca_bundle
1233 with_ca_path
1234 with_ca_fallback
1235 with_libpsl
1236 with_libgsasl
1237 with_libmetalink
1238 with_libssh2
1239 with_libssh
1240 with_wolfssh
1241 with_librtmp
1242 enable_versioned_symbols
1243 with_winidn
1244 with_libidn2
1245 with_nghttp2
1246 with_ngtcp2
1247 with_nghttp3
1248 with_quiche
1249 with_msh3
1250 with_zsh_functions_dir
1251 with_fish_functions_dir
1252 enable_threaded_resolver
1253 enable_pthreads
1254 enable_verbose
1255 enable_sspi
1256 enable_basic_auth
1257 enable_bearer_auth
1258 enable_digest_auth
1259 enable_kerberos_auth
1260 enable_negotiate_auth
1261 enable_aws
1262 enable_ntlm
1263 enable_ntlm_wb
1264 enable_tls_srp
1265 enable_unix_sockets
1266 enable_cookies
1267 enable_socketpair
1268 enable_http_auth
1269 enable_doh
1270 enable_mime
1271 enable_bindlocal
1272 enable_form_api
1273 enable_dateparse
1274 enable_netrc
1275 enable_progress_meter
1276 enable_dnsshuffle
1277 enable_get_easy_options
1278 enable_alt_svc
1279 enable_headers_api
1280 enable_hsts
1281 enable_websockets
1282 '
1283       ac_precious_vars='build_alias
1284 host_alias
1285 target_alias
1286 CC
1287 CFLAGS
1288 LDFLAGS
1289 LIBS
1290 CPPFLAGS
1291 CPP
1292 LT_SYS_LIBRARY_PATH'
1293
1294
1295 # Initialize some variables set by options.
1296 ac_init_help=
1297 ac_init_version=false
1298 ac_unrecognized_opts=
1299 ac_unrecognized_sep=
1300 # The variables have the same names as the options, with
1301 # dashes changed to underlines.
1302 cache_file=/dev/null
1303 exec_prefix=NONE
1304 no_create=
1305 no_recursion=
1306 prefix=NONE
1307 program_prefix=NONE
1308 program_suffix=NONE
1309 program_transform_name=s,x,x,
1310 silent=
1311 site=
1312 srcdir=
1313 verbose=
1314 x_includes=NONE
1315 x_libraries=NONE
1316
1317 # Installation directory options.
1318 # These are left unexpanded so users can "make install exec_prefix=/foo"
1319 # and all the variables that are supposed to be based on exec_prefix
1320 # by default will actually change.
1321 # Use braces instead of parens because sh, perl, etc. also accept them.
1322 # (The list follows the same order as the GNU Coding Standards.)
1323 bindir='${exec_prefix}/bin'
1324 sbindir='${exec_prefix}/sbin'
1325 libexecdir='${exec_prefix}/libexec'
1326 datarootdir='${prefix}/share'
1327 datadir='${datarootdir}'
1328 sysconfdir='${prefix}/etc'
1329 sharedstatedir='${prefix}/com'
1330 localstatedir='${prefix}/var'
1331 runstatedir='${localstatedir}/run'
1332 includedir='${prefix}/include'
1333 oldincludedir='/usr/include'
1334 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1335 infodir='${datarootdir}/info'
1336 htmldir='${docdir}'
1337 dvidir='${docdir}'
1338 pdfdir='${docdir}'
1339 psdir='${docdir}'
1340 libdir='${exec_prefix}/lib'
1341 localedir='${datarootdir}/locale'
1342 mandir='${datarootdir}/man'
1343
1344 ac_prev=
1345 ac_dashdash=
1346 for ac_option
1347 do
1348   # If the previous option needs an argument, assign it.
1349   if test -n "$ac_prev"; then
1350     eval $ac_prev=\$ac_option
1351     ac_prev=
1352     continue
1353   fi
1354
1355   case $ac_option in
1356   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1357   *=)   ac_optarg= ;;
1358   *)    ac_optarg=yes ;;
1359   esac
1360
1361   case $ac_dashdash$ac_option in
1362   --)
1363     ac_dashdash=yes ;;
1364
1365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1366     ac_prev=bindir ;;
1367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368     bindir=$ac_optarg ;;
1369
1370   -build | --build | --buil | --bui | --bu)
1371     ac_prev=build_alias ;;
1372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373     build_alias=$ac_optarg ;;
1374
1375   -cache-file | --cache-file | --cache-fil | --cache-fi \
1376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377     ac_prev=cache_file ;;
1378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380     cache_file=$ac_optarg ;;
1381
1382   --config-cache | -C)
1383     cache_file=config.cache ;;
1384
1385   -datadir | --datadir | --datadi | --datad)
1386     ac_prev=datadir ;;
1387   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388     datadir=$ac_optarg ;;
1389
1390   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391   | --dataroo | --dataro | --datar)
1392     ac_prev=datarootdir ;;
1393   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395     datarootdir=$ac_optarg ;;
1396
1397   -disable-* | --disable-*)
1398     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1402     ac_useropt_orig=$ac_useropt
1403     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1404     case $ac_user_opts in
1405       *"
1406 "enable_$ac_useropt"
1407 "*) ;;
1408       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409          ac_unrecognized_sep=', ';;
1410     esac
1411     eval enable_$ac_useropt=no ;;
1412
1413   -docdir | --docdir | --docdi | --doc | --do)
1414     ac_prev=docdir ;;
1415   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416     docdir=$ac_optarg ;;
1417
1418   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1419     ac_prev=dvidir ;;
1420   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421     dvidir=$ac_optarg ;;
1422
1423   -enable-* | --enable-*)
1424     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425     # Reject names that are not valid shell variable names.
1426     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1428     ac_useropt_orig=$ac_useropt
1429     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1430     case $ac_user_opts in
1431       *"
1432 "enable_$ac_useropt"
1433 "*) ;;
1434       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435          ac_unrecognized_sep=', ';;
1436     esac
1437     eval enable_$ac_useropt=\$ac_optarg ;;
1438
1439   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441   | --exec | --exe | --ex)
1442     ac_prev=exec_prefix ;;
1443   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445   | --exec=* | --exe=* | --ex=*)
1446     exec_prefix=$ac_optarg ;;
1447
1448   -gas | --gas | --ga | --g)
1449     # Obsolete; use --with-gas.
1450     with_gas=yes ;;
1451
1452   -help | --help | --hel | --he | -h)
1453     ac_init_help=long ;;
1454   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455     ac_init_help=recursive ;;
1456   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457     ac_init_help=short ;;
1458
1459   -host | --host | --hos | --ho)
1460     ac_prev=host_alias ;;
1461   -host=* | --host=* | --hos=* | --ho=*)
1462     host_alias=$ac_optarg ;;
1463
1464   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465     ac_prev=htmldir ;;
1466   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467   | --ht=*)
1468     htmldir=$ac_optarg ;;
1469
1470   -includedir | --includedir | --includedi | --included | --include \
1471   | --includ | --inclu | --incl | --inc)
1472     ac_prev=includedir ;;
1473   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474   | --includ=* | --inclu=* | --incl=* | --inc=*)
1475     includedir=$ac_optarg ;;
1476
1477   -infodir | --infodir | --infodi | --infod | --info | --inf)
1478     ac_prev=infodir ;;
1479   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480     infodir=$ac_optarg ;;
1481
1482   -libdir | --libdir | --libdi | --libd)
1483     ac_prev=libdir ;;
1484   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485     libdir=$ac_optarg ;;
1486
1487   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488   | --libexe | --libex | --libe)
1489     ac_prev=libexecdir ;;
1490   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491   | --libexe=* | --libex=* | --libe=*)
1492     libexecdir=$ac_optarg ;;
1493
1494   -localedir | --localedir | --localedi | --localed | --locale)
1495     ac_prev=localedir ;;
1496   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497     localedir=$ac_optarg ;;
1498
1499   -localstatedir | --localstatedir | --localstatedi | --localstated \
1500   | --localstate | --localstat | --localsta | --localst | --locals)
1501     ac_prev=localstatedir ;;
1502   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504     localstatedir=$ac_optarg ;;
1505
1506   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507     ac_prev=mandir ;;
1508   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509     mandir=$ac_optarg ;;
1510
1511   -nfp | --nfp | --nf)
1512     # Obsolete; use --without-fp.
1513     with_fp=no ;;
1514
1515   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516   | --no-cr | --no-c | -n)
1517     no_create=yes ;;
1518
1519   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521     no_recursion=yes ;;
1522
1523   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525   | --oldin | --oldi | --old | --ol | --o)
1526     ac_prev=oldincludedir ;;
1527   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530     oldincludedir=$ac_optarg ;;
1531
1532   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533     ac_prev=prefix ;;
1534   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535     prefix=$ac_optarg ;;
1536
1537   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538   | --program-pre | --program-pr | --program-p)
1539     ac_prev=program_prefix ;;
1540   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542     program_prefix=$ac_optarg ;;
1543
1544   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545   | --program-suf | --program-su | --program-s)
1546     ac_prev=program_suffix ;;
1547   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549     program_suffix=$ac_optarg ;;
1550
1551   -program-transform-name | --program-transform-name \
1552   | --program-transform-nam | --program-transform-na \
1553   | --program-transform-n | --program-transform- \
1554   | --program-transform | --program-transfor \
1555   | --program-transfo | --program-transf \
1556   | --program-trans | --program-tran \
1557   | --progr-tra | --program-tr | --program-t)
1558     ac_prev=program_transform_name ;;
1559   -program-transform-name=* | --program-transform-name=* \
1560   | --program-transform-nam=* | --program-transform-na=* \
1561   | --program-transform-n=* | --program-transform-=* \
1562   | --program-transform=* | --program-transfor=* \
1563   | --program-transfo=* | --program-transf=* \
1564   | --program-trans=* | --program-tran=* \
1565   | --progr-tra=* | --program-tr=* | --program-t=*)
1566     program_transform_name=$ac_optarg ;;
1567
1568   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569     ac_prev=pdfdir ;;
1570   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571     pdfdir=$ac_optarg ;;
1572
1573   -psdir | --psdir | --psdi | --psd | --ps)
1574     ac_prev=psdir ;;
1575   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576     psdir=$ac_optarg ;;
1577
1578   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579   | -silent | --silent | --silen | --sile | --sil)
1580     silent=yes ;;
1581
1582   -runstatedir | --runstatedir | --runstatedi | --runstated \
1583   | --runstate | --runstat | --runsta | --runst | --runs \
1584   | --run | --ru | --r)
1585     ac_prev=runstatedir ;;
1586   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1587   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1588   | --run=* | --ru=* | --r=*)
1589     runstatedir=$ac_optarg ;;
1590
1591   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1592     ac_prev=sbindir ;;
1593   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1594   | --sbi=* | --sb=*)
1595     sbindir=$ac_optarg ;;
1596
1597   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1598   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1599   | --sharedst | --shareds | --shared | --share | --shar \
1600   | --sha | --sh)
1601     ac_prev=sharedstatedir ;;
1602   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1603   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1604   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1605   | --sha=* | --sh=*)
1606     sharedstatedir=$ac_optarg ;;
1607
1608   -site | --site | --sit)
1609     ac_prev=site ;;
1610   -site=* | --site=* | --sit=*)
1611     site=$ac_optarg ;;
1612
1613   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1614     ac_prev=srcdir ;;
1615   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1616     srcdir=$ac_optarg ;;
1617
1618   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1619   | --syscon | --sysco | --sysc | --sys | --sy)
1620     ac_prev=sysconfdir ;;
1621   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1622   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1623     sysconfdir=$ac_optarg ;;
1624
1625   -target | --target | --targe | --targ | --tar | --ta | --t)
1626     ac_prev=target_alias ;;
1627   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1628     target_alias=$ac_optarg ;;
1629
1630   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1631     verbose=yes ;;
1632
1633   -version | --version | --versio | --versi | --vers | -V)
1634     ac_init_version=: ;;
1635
1636   -with-* | --with-*)
1637     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1638     # Reject names that are not valid shell variable names.
1639     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1640       as_fn_error $? "invalid package name: \`$ac_useropt'"
1641     ac_useropt_orig=$ac_useropt
1642     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1643     case $ac_user_opts in
1644       *"
1645 "with_$ac_useropt"
1646 "*) ;;
1647       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1648          ac_unrecognized_sep=', ';;
1649     esac
1650     eval with_$ac_useropt=\$ac_optarg ;;
1651
1652   -without-* | --without-*)
1653     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1654     # Reject names that are not valid shell variable names.
1655     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656       as_fn_error $? "invalid package name: \`$ac_useropt'"
1657     ac_useropt_orig=$ac_useropt
1658     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1659     case $ac_user_opts in
1660       *"
1661 "with_$ac_useropt"
1662 "*) ;;
1663       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1664          ac_unrecognized_sep=', ';;
1665     esac
1666     eval with_$ac_useropt=no ;;
1667
1668   --x)
1669     # Obsolete; use --with-x.
1670     with_x=yes ;;
1671
1672   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1673   | --x-incl | --x-inc | --x-in | --x-i)
1674     ac_prev=x_includes ;;
1675   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1676   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1677     x_includes=$ac_optarg ;;
1678
1679   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1680   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1681     ac_prev=x_libraries ;;
1682   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1683   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1684     x_libraries=$ac_optarg ;;
1685
1686   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1687 Try \`$0 --help' for more information"
1688     ;;
1689
1690   *=*)
1691     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1692     # Reject names that are not valid shell variable names.
1693     case $ac_envvar in #(
1694       '' | [0-9]* | *[!_$as_cr_alnum]* )
1695       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1696     esac
1697     eval $ac_envvar=\$ac_optarg
1698     export $ac_envvar ;;
1699
1700   *)
1701     # FIXME: should be removed in autoconf 3.0.
1702     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1703     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1704       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1705     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1706     ;;
1707
1708   esac
1709 done
1710
1711 if test -n "$ac_prev"; then
1712   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1713   as_fn_error $? "missing argument to $ac_option"
1714 fi
1715
1716 if test -n "$ac_unrecognized_opts"; then
1717   case $enable_option_checking in
1718     no) ;;
1719     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1720     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1721   esac
1722 fi
1723
1724 # Check all directory arguments for consistency.
1725 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1726                 datadir sysconfdir sharedstatedir localstatedir includedir \
1727                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1728                 libdir localedir mandir runstatedir
1729 do
1730   eval ac_val=\$$ac_var
1731   # Remove trailing slashes.
1732   case $ac_val in
1733     */ )
1734       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1735       eval $ac_var=\$ac_val;;
1736   esac
1737   # Be sure to have absolute directory names.
1738   case $ac_val in
1739     [\\/$]* | ?:[\\/]* )  continue;;
1740     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1741   esac
1742   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1743 done
1744
1745 # There might be people who depend on the old broken behavior: `$host'
1746 # used to hold the argument of --host etc.
1747 # FIXME: To remove some day.
1748 build=$build_alias
1749 host=$host_alias
1750 target=$target_alias
1751
1752 # FIXME: To remove some day.
1753 if test "x$host_alias" != x; then
1754   if test "x$build_alias" = x; then
1755     cross_compiling=maybe
1756   elif test "x$build_alias" != "x$host_alias"; then
1757     cross_compiling=yes
1758   fi
1759 fi
1760
1761 ac_tool_prefix=
1762 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1763
1764 test "$silent" = yes && exec 6>/dev/null
1765
1766
1767 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1768 ac_ls_di=`ls -di .` &&
1769 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1770   as_fn_error $? "working directory cannot be determined"
1771 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1772   as_fn_error $? "pwd does not report name of working directory"
1773
1774
1775 # Find the source files, if location was not specified.
1776 if test -z "$srcdir"; then
1777   ac_srcdir_defaulted=yes
1778   # Try the directory containing this script, then the parent directory.
1779   ac_confdir=`$as_dirname -- "$as_myself" ||
1780 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781          X"$as_myself" : 'X\(//\)[^/]' \| \
1782          X"$as_myself" : 'X\(//\)$' \| \
1783          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784 printf "%s\n" X"$as_myself" |
1785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1786             s//\1/
1787             q
1788           }
1789           /^X\(\/\/\)[^/].*/{
1790             s//\1/
1791             q
1792           }
1793           /^X\(\/\/\)$/{
1794             s//\1/
1795             q
1796           }
1797           /^X\(\/\).*/{
1798             s//\1/
1799             q
1800           }
1801           s/.*/./; q'`
1802   srcdir=$ac_confdir
1803   if test ! -r "$srcdir/$ac_unique_file"; then
1804     srcdir=..
1805   fi
1806 else
1807   ac_srcdir_defaulted=no
1808 fi
1809 if test ! -r "$srcdir/$ac_unique_file"; then
1810   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1812 fi
1813 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1814 ac_abs_confdir=`(
1815         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1816         pwd)`
1817 # When building in place, set srcdir=.
1818 if test "$ac_abs_confdir" = "$ac_pwd"; then
1819   srcdir=.
1820 fi
1821 # Remove unnecessary trailing slashes from srcdir.
1822 # Double slashes in file names in object file debugging info
1823 # mess up M-x gdb in Emacs.
1824 case $srcdir in
1825 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1826 esac
1827 for ac_var in $ac_precious_vars; do
1828   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1829   eval ac_env_${ac_var}_value=\$${ac_var}
1830   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1831   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1832 done
1833
1834 #
1835 # Report the --help message.
1836 #
1837 if test "$ac_init_help" = "long"; then
1838   # Omit some internal or obsolete options to make the list less imposing.
1839   # This message is too long to be a string in the A/UX 3.1 sh.
1840   cat <<_ACEOF
1841 \`configure' configures curl - to adapt to many kinds of systems.
1842
1843 Usage: $0 [OPTION]... [VAR=VALUE]...
1844
1845 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1846 VAR=VALUE.  See below for descriptions of some of the useful variables.
1847
1848 Defaults for the options are specified in brackets.
1849
1850 Configuration:
1851   -h, --help              display this help and exit
1852       --help=short        display options specific to this package
1853       --help=recursive    display the short help of all the included packages
1854   -V, --version           display version information and exit
1855   -q, --quiet, --silent   do not print \`checking ...' messages
1856       --cache-file=FILE   cache test results in FILE [disabled]
1857   -C, --config-cache      alias for \`--cache-file=config.cache'
1858   -n, --no-create         do not create output files
1859       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1860
1861 Installation directories:
1862   --prefix=PREFIX         install architecture-independent files in PREFIX
1863                           [$ac_default_prefix]
1864   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1865                           [PREFIX]
1866
1867 By default, \`make install' will install all the files in
1868 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1869 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1870 for instance \`--prefix=\$HOME'.
1871
1872 For better control, use the options below.
1873
1874 Fine tuning of the installation directories:
1875   --bindir=DIR            user executables [EPREFIX/bin]
1876   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1877   --libexecdir=DIR        program executables [EPREFIX/libexec]
1878   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1879   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1880   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1881   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1882   --libdir=DIR            object code libraries [EPREFIX/lib]
1883   --includedir=DIR        C header files [PREFIX/include]
1884   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1885   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1886   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1887   --infodir=DIR           info documentation [DATAROOTDIR/info]
1888   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1889   --mandir=DIR            man documentation [DATAROOTDIR/man]
1890   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1891   --htmldir=DIR           html documentation [DOCDIR]
1892   --dvidir=DIR            dvi documentation [DOCDIR]
1893   --pdfdir=DIR            pdf documentation [DOCDIR]
1894   --psdir=DIR             ps documentation [DOCDIR]
1895 _ACEOF
1896
1897   cat <<\_ACEOF
1898
1899 Program names:
1900   --program-prefix=PREFIX            prepend PREFIX to installed program names
1901   --program-suffix=SUFFIX            append SUFFIX to installed program names
1902   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1903
1904 System types:
1905   --build=BUILD     configure for building on BUILD [guessed]
1906   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1907 _ACEOF
1908 fi
1909
1910 if test -n "$ac_init_help"; then
1911   case $ac_init_help in
1912      short | recursive ) echo "Configuration of curl -:";;
1913    esac
1914   cat <<\_ACEOF
1915
1916 Optional Features:
1917   --disable-option-checking  ignore unrecognized --enable/--with options
1918   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1919   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1920   --enable-maintainer-mode
1921                           enable make rules and dependencies not useful (and
1922                           sometimes confusing) to the casual installer
1923   --enable-silent-rules   less verbose build output (undo: "make V=1")
1924   --disable-silent-rules  verbose build output (undo: "make V=0")
1925   --enable-debug          Enable debug build options
1926   --disable-debug         Disable debug build options
1927   --enable-optimize       Enable compiler optimizations
1928   --disable-optimize      Disable compiler optimizations
1929   --enable-warnings       Enable strict compiler warnings
1930   --disable-warnings      Disable strict compiler warnings
1931   --enable-werror         Enable compiler warnings as errors
1932   --disable-werror        Disable compiler warnings as errors
1933   --enable-curldebug      Enable curl debug memory tracking
1934   --disable-curldebug     Disable curl debug memory tracking
1935   --enable-symbol-hiding  Enable hiding of library internal symbols
1936   --disable-symbol-hiding Disable hiding of library internal symbols
1937   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1938   --disable-ares          Disable c-ares for DNS lookups
1939   --disable-rt            disable dependency on -lrt
1940   --enable-ech            Enable ECH support
1941   --disable-ech           Disable ECH support
1942   --enable-code-coverage  Provide code coverage
1943   --enable-dependency-tracking
1944                           do not reject slow dependency extractors
1945   --disable-dependency-tracking
1946                           speeds up one-time build
1947   --disable-largefile     omit support for large files
1948   --enable-shared[=PKGS]  build shared libraries [default=yes]
1949   --enable-static[=PKGS]  build static libraries [default=yes]
1950   --enable-fast-install[=PKGS]
1951                           optimize for fast installation [default=yes]
1952   --disable-libtool-lock  avoid locking (might break parallel builds)
1953   --enable-http           Enable HTTP support
1954   --disable-http          Disable HTTP support
1955   --enable-ftp            Enable FTP support
1956   --disable-ftp           Disable FTP support
1957   --enable-file           Enable FILE support
1958   --disable-file          Disable FILE support
1959   --enable-ldap           Enable LDAP support
1960   --disable-ldap          Disable LDAP support
1961   --enable-ldaps          Enable LDAPS support
1962   --disable-ldaps         Disable LDAPS support
1963   --enable-rtsp           Enable RTSP support
1964   --disable-rtsp          Disable RTSP support
1965   --enable-proxy          Enable proxy support
1966   --disable-proxy         Disable proxy support
1967   --enable-dict           Enable DICT support
1968   --disable-dict          Disable DICT support
1969   --enable-telnet         Enable TELNET support
1970   --disable-telnet        Disable TELNET support
1971   --enable-tftp           Enable TFTP support
1972   --disable-tftp          Disable TFTP support
1973   --enable-pop3           Enable POP3 support
1974   --disable-pop3          Disable POP3 support
1975   --enable-imap           Enable IMAP support
1976   --disable-imap          Disable IMAP support
1977   --enable-smb            Enable SMB/CIFS support
1978   --disable-smb           Disable SMB/CIFS support
1979   --enable-smtp           Enable SMTP support
1980   --disable-smtp          Disable SMTP support
1981   --enable-gopher         Enable Gopher support
1982   --disable-gopher        Disable Gopher support
1983   --enable-mqtt           Enable MQTT support
1984   --disable-mqtt          Disable MQTT support
1985   --enable-manual         Enable built-in manual
1986   --disable-manual        Disable built-in manual
1987   --enable-libcurl-option Enable --libcurl C code generation support
1988   --disable-libcurl-option
1989                           Disable --libcurl C code generation support
1990   --enable-libgcc         use libgcc when linking
1991   --enable-ipv6           Enable IPv6 (with IPv4) support
1992   --disable-ipv6          Disable IPv6 support
1993   --enable-openssl-auto-load-config
1994                           Enable automatic loading of OpenSSL configuration
1995   --disable-openssl-auto-load-config
1996                           Disable automatic loading of OpenSSL configuration
1997   --enable-versioned-symbols
1998                           Enable versioned symbols in shared library
1999   --disable-versioned-symbols
2000                           Disable versioned symbols in shared library
2001   --enable-threaded-resolver
2002                           Enable threaded resolver
2003   --disable-threaded-resolver
2004                           Disable threaded resolver
2005   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
2006   --disable-pthreads      Disable POSIX threads
2007   --enable-verbose        Enable verbose strings
2008   --disable-verbose       Disable verbose strings
2009   --enable-sspi           Enable SSPI
2010   --disable-sspi          Disable SSPI
2011   --enable-basic-auth     Enable basic authentication (default)
2012   --disable-basic-auth    Disable basic authentication
2013   --enable-bearer-auth    Enable bearer authentication (default)
2014   --disable-bearer-auth   Disable bearer authentication
2015   --enable-digest-auth    Enable digest authentication (default)
2016   --disable-digest-auth   Disable digest authentication
2017   --enable-kerberos-auth  Enable kerberos authentication (default)
2018   --disable-kerberos-auth Disable kerberos authentication
2019   --enable-negotiate-auth Enable negotiate authentication (default)
2020   --disable-negotiate-auth
2021                           Disable negotiate authentication
2022   --enable-aws            Enable AWS sig support (default)
2023   --disable-aws           Disable AWS sig support
2024   --enable-ntlm           Enable NTLM support
2025   --disable-ntlm          Disable NTLM support
2026   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2027                           helper, where FILE is ntlm_auth's absolute filename
2028                           (default: /usr/bin/ntlm_auth)
2029   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2030                           helper
2031   --enable-tls-srp        Enable TLS-SRP authentication
2032   --disable-tls-srp       Disable TLS-SRP authentication
2033   --enable-unix-sockets   Enable Unix domain sockets
2034   --disable-unix-sockets  Disable Unix domain sockets
2035   --enable-cookies        Enable cookies support
2036   --disable-cookies       Disable cookies support
2037   --enable-socketpair     Enable socketpair support
2038   --disable-socketpair    Disable socketpair support
2039   --enable-http-auth      Enable HTTP authentication support
2040   --disable-http-auth     Disable HTTP authentication support
2041   --enable-doh            Enable DoH support
2042   --disable-doh           Disable DoH support
2043   --enable-mime           Enable mime API support
2044   --disable-mime          Disable mime API support
2045   --enable-bindlocal      Enable local binding support
2046   --disable-bindlocal     Disable local binding support
2047   --enable-form-api       Enable form API support
2048   --disable-form-api      Disable form API support
2049   --enable-dateparse      Enable date parsing
2050   --disable-dateparse     Disable date parsing
2051   --enable-netrc          Enable netrc parsing
2052   --disable-netrc         Disable netrc parsing
2053   --enable-progress-meter Enable progress-meter
2054   --disable-progress-meter
2055                           Disable progress-meter
2056   --enable-dnsshuffle     Enable DNS shuffling
2057   --disable-dnsshuffle    Disable DNS shuffling
2058   --enable-get-easy-options
2059                           Enable curl_easy_options
2060   --disable-get-easy-options
2061                           Disable curl_easy_options
2062   --enable-alt-svc        Enable alt-svc support
2063   --disable-alt-svc       Disable alt-svc support
2064   --enable-headers-api    Enable headers-api support
2065   --disable-headers-api   Disable headers-api support
2066   --enable-hsts           Enable HSTS support
2067   --disable-hsts          Disable HSTS support
2068   --enable-websockets     Enable WebSockets support
2069   --disable-websockets    Disable WebSockets support
2070
2071 Optional Packages:
2072   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2073   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2074   --with-schannel         enable Windows native SSL/TLS
2075   --with-secure-transport enable Apple OS native SSL/TLS
2076   --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2077   --with-ssl=PATH         old version of --with-openssl
2078   --without-ssl           build without any TLS library
2079   --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2080                           installation (default: /usr/local/ssl); when
2081                           possible, set the PKG_CONFIG_PATH environment
2082                           variable instead of using this option
2083   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2084                           installation root
2085   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2086                           installation root
2087   --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2088                           installation root (default: system lib default)
2089   --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2090                           installation root
2091   --with-rustls=PATH      where to look for rustls, PATH points to the
2092                           installation root
2093   --with-test-nghttpx=PATH
2094                           where to find nghttpx for testing
2095   --with-test-caddy=PATH  where to find caddy for testing
2096   --with-test-httpd=PATH  where to find httpd/apache2 for testing
2097
2098   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2099                           both]
2100   --with-aix-soname=aix|svr4|both
2101                           shared library versioning (aka "SONAME") variant to
2102                           provide on AIX, [default=aix].
2103   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2104   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2105                           compiler's sysroot if not specified).
2106   --with-hyper=PATH       Enable hyper usage
2107   --without-hyper         Disable hyper usage
2108   --with-zlib=PATH        search for zlib in PATH
2109   --without-zlib          disable use of zlib
2110   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2111                           installation; when possible, set the PKG_CONFIG_PATH
2112                           environment variable instead of using this option
2113   --without-brotli        disable BROTLI
2114   --with-zstd=PATH        Where to look for libzstd, PATH points to the
2115                           libzstd installation; when possible, set the
2116                           PKG_CONFIG_PATH environment variable instead of
2117                           using this option
2118   --without-zstd          disable libzstd
2119   --with-ldap-lib=libname Specify name of ldap lib file
2120   --with-lber-lib=libname Specify name of lber lib file
2121   --with-gssapi-includes=DIR
2122                           Specify location of GSS-API headers
2123   --with-gssapi-libs=DIR  Specify location of GSS-API libs
2124   --with-gssapi=DIR       Where to look for GSS-API
2125   --with-default-ssl-backend=NAME
2126                           Use NAME as default SSL backend
2127   --without-default-ssl-backend
2128                           Use implicit default SSL backend
2129   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2130   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2131                           /etc/ca-bundle.crt)
2132   --without-ca-bundle     Don't use a default CA bundle
2133   --with-ca-path=DIRECTORY
2134                           Path to a directory containing CA certificates
2135                           stored individually, with their filenames in a hash
2136                           format. This option can be used with the OpenSSL,
2137                           GnuTLS, mbedTLS and wolfSSL backends. Refer to
2138                           OpenSSL c_rehash for details. (example:
2139                           /etc/certificates)
2140   --without-ca-path       Don't use a default CA path
2141   --with-ca-fallback      Use the built in CA store of the SSL library
2142   --without-ca-fallback   Don't use the built in CA store of the SSL library
2143   --without-libpsl        disable support for libpsl cookie checking
2144   --without-libgsasl      disable libgsasl support for SCRAM
2145   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2146                           libssh2 installation; when possible, set the
2147                           PKG_CONFIG_PATH environment variable instead of
2148                           using this option
2149   --with-libssh2          enable libssh2
2150   --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2151                           installation; when possible, set the PKG_CONFIG_PATH
2152                           environment variable instead of using this option
2153   --with-libssh           enable libssh
2154   --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2155                           wolfSSH installation; when possible, set the
2156                           PKG_CONFIG_PATH environment variable instead of
2157                           using this option
2158   --with-wolfssh          enable wolfssh
2159   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2160                           LIBRTMP installation; when possible, set the
2161                           PKG_CONFIG_PATH environment variable instead of
2162                           using this option
2163   --without-librtmp       disable LIBRTMP
2164   --with-winidn=PATH      enable Windows native IDN
2165   --without-winidn        disable Windows native IDN
2166   --with-libidn2=PATH     Enable libidn2 usage
2167   --without-libidn2       Disable libidn2 usage
2168   --with-nghttp2=PATH     Enable nghttp2 usage
2169   --without-nghttp2       Disable nghttp2 usage
2170   --with-ngtcp2=PATH      Enable ngtcp2 usage
2171   --without-ngtcp2        Disable ngtcp2 usage
2172   --with-nghttp3=PATH     Enable nghttp3 usage
2173   --without-nghttp3       Disable nghttp3 usage
2174   --with-quiche=PATH      Enable quiche usage
2175   --without-quiche        Disable quiche usage
2176   --with-msh3=PATH        Enable msh3 usage
2177   --without-msh3          Disable msh3 usage
2178   --with-zsh-functions-dir=PATH
2179                           Install zsh completions to PATH
2180   --without-zsh-functions-dir
2181                           Do not install zsh completions
2182   --with-fish-functions-dir=PATH
2183                           Install fish completions to PATH
2184   --without-fish-functions-dir
2185                           Do not install fish completions
2186
2187 Some influential environment variables:
2188   CC          C compiler command
2189   CFLAGS      C compiler flags
2190   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2191               nonstandard directory <lib dir>
2192   LIBS        libraries to pass to the linker, e.g. -l<library>
2193   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2194               you have headers in a nonstandard directory <include dir>
2195   CPP         C preprocessor
2196   LT_SYS_LIBRARY_PATH
2197               User-defined run-time library search path.
2198
2199 Use these variables to override the choices made by `configure' or to help
2200 it to find libraries and programs with nonstandard names/locations.
2201
2202 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2203 _ACEOF
2204 ac_status=$?
2205 fi
2206
2207 if test "$ac_init_help" = "recursive"; then
2208   # If there are subdirs, report their specific --help.
2209   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2210     test -d "$ac_dir" ||
2211       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2212       continue
2213     ac_builddir=.
2214
2215 case "$ac_dir" in
2216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2217 *)
2218   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2219   # A ".." for each directory in $ac_dir_suffix.
2220   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2221   case $ac_top_builddir_sub in
2222   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2223   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2224   esac ;;
2225 esac
2226 ac_abs_top_builddir=$ac_pwd
2227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2228 # for backward compatibility:
2229 ac_top_builddir=$ac_top_build_prefix
2230
2231 case $srcdir in
2232   .)  # We are building in place.
2233     ac_srcdir=.
2234     ac_top_srcdir=$ac_top_builddir_sub
2235     ac_abs_top_srcdir=$ac_pwd ;;
2236   [\\/]* | ?:[\\/]* )  # Absolute name.
2237     ac_srcdir=$srcdir$ac_dir_suffix;
2238     ac_top_srcdir=$srcdir
2239     ac_abs_top_srcdir=$srcdir ;;
2240   *) # Relative name.
2241     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2242     ac_top_srcdir=$ac_top_build_prefix$srcdir
2243     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2244 esac
2245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2246
2247     cd "$ac_dir" || { ac_status=$?; continue; }
2248     # Check for configure.gnu first; this name is used for a wrapper for
2249     # Metaconfig's "Configure" on case-insensitive file systems.
2250     if test -f "$ac_srcdir/configure.gnu"; then
2251       echo &&
2252       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2253     elif test -f "$ac_srcdir/configure"; then
2254       echo &&
2255       $SHELL "$ac_srcdir/configure" --help=recursive
2256     else
2257       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2258     fi || ac_status=$?
2259     cd "$ac_pwd" || { ac_status=$?; break; }
2260   done
2261 fi
2262
2263 test -n "$ac_init_help" && exit $ac_status
2264 if $ac_init_version; then
2265   cat <<\_ACEOF
2266 curl configure -
2267 generated by GNU Autoconf 2.71
2268
2269 Copyright (C) 2021 Free Software Foundation, Inc.
2270 This configure script is free software; the Free Software Foundation
2271 gives unlimited permission to copy, distribute and modify it.
2272
2273 Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2274 This configure script may be copied, distributed and modified under the
2275 terms of the curl license; see COPYING for more details
2276 _ACEOF
2277   exit
2278 fi
2279
2280 ## ------------------------ ##
2281 ## Autoconf initialization. ##
2282 ## ------------------------ ##
2283
2284 # ac_fn_c_try_compile LINENO
2285 # --------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_c_try_compile ()
2288 {
2289   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290   rm -f conftest.$ac_objext conftest.beam
2291   if { { ac_try="$ac_compile"
2292 case "(($ac_try" in
2293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294   *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 printf "%s\n" "$ac_try_echo"; } >&5
2298   (eval "$ac_compile") 2>conftest.err
2299   ac_status=$?
2300   if test -s conftest.err; then
2301     grep -v '^ *+' conftest.err >conftest.er1
2302     cat conftest.er1 >&5
2303     mv -f conftest.er1 conftest.err
2304   fi
2305   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306   test $ac_status = 0; } && {
2307          test -z "$ac_c_werror_flag" ||
2308          test ! -s conftest.err
2309        } && test -s conftest.$ac_objext
2310 then :
2311   ac_retval=0
2312 else $as_nop
2313   printf "%s\n" "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316         ac_retval=1
2317 fi
2318   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319   as_fn_set_status $ac_retval
2320
2321 } # ac_fn_c_try_compile
2322
2323 # ac_fn_c_try_cpp LINENO
2324 # ----------------------
2325 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2326 ac_fn_c_try_cpp ()
2327 {
2328   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329   if { { ac_try="$ac_cpp conftest.$ac_ext"
2330 case "(($ac_try" in
2331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332   *) ac_try_echo=$ac_try;;
2333 esac
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 printf "%s\n" "$ac_try_echo"; } >&5
2336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2337   ac_status=$?
2338   if test -s conftest.err; then
2339     grep -v '^ *+' conftest.err >conftest.er1
2340     cat conftest.er1 >&5
2341     mv -f conftest.er1 conftest.err
2342   fi
2343   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344   test $ac_status = 0; } > conftest.i && {
2345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2346          test ! -s conftest.err
2347        }
2348 then :
2349   ac_retval=0
2350 else $as_nop
2351   printf "%s\n" "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354     ac_retval=1
2355 fi
2356   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357   as_fn_set_status $ac_retval
2358
2359 } # ac_fn_c_try_cpp
2360
2361 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2362 # -------------------------------------------------------
2363 # Tests whether HEADER exists and can be compiled using the include files in
2364 # INCLUDES, setting the cache variable VAR accordingly.
2365 ac_fn_c_check_header_compile ()
2366 {
2367   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 printf %s "checking for $2... " >&6; }
2370 if eval test \${$3+y}
2371 then :
2372   printf %s "(cached) " >&6
2373 else $as_nop
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 #include <$2>
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"
2380 then :
2381   eval "$3=yes"
2382 else $as_nop
2383   eval "$3=no"
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$3
2388                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 printf "%s\n" "$ac_res" >&6; }
2390   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392 } # ac_fn_c_check_header_compile
2393
2394 # ac_fn_c_try_link LINENO
2395 # -----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded.
2397 ac_fn_c_try_link ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2401   if { { ac_try="$ac_link"
2402 case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 printf "%s\n" "$ac_try_echo"; } >&5
2408   (eval "$ac_link") 2>conftest.err
2409   ac_status=$?
2410   if test -s conftest.err; then
2411     grep -v '^ *+' conftest.err >conftest.er1
2412     cat conftest.er1 >&5
2413     mv -f conftest.er1 conftest.err
2414   fi
2415   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416   test $ac_status = 0; } && {
2417          test -z "$ac_c_werror_flag" ||
2418          test ! -s conftest.err
2419        } && test -s conftest$ac_exeext && {
2420          test "$cross_compiling" = yes ||
2421          test -x conftest$ac_exeext
2422        }
2423 then :
2424   ac_retval=0
2425 else $as_nop
2426   printf "%s\n" "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429         ac_retval=1
2430 fi
2431   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2432   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2433   # interfere with the next link command; also delete a directory that is
2434   # left behind by Apple's compiler.  We do this before executing the actions.
2435   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2436   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437   as_fn_set_status $ac_retval
2438
2439 } # ac_fn_c_try_link
2440
2441 # ac_fn_c_check_func LINENO FUNC VAR
2442 # ----------------------------------
2443 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2444 ac_fn_c_check_func ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 printf %s "checking for $2... " >&6; }
2449 if eval test \${$3+y}
2450 then :
2451   printf %s "(cached) " >&6
2452 else $as_nop
2453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455
2456 #define $2 innocuous_$2
2457 #ifdef __STDC__
2458 # include <limits.h>
2459 #else
2460 # include <assert.h>
2461 #endif
2462 #undef $2
2463 #ifdef __cplusplus
2464 extern "C"
2465 #endif
2466 char $2 ();
2467 #if defined __stub_$2 || defined __stub___$2
2468 choke me
2469 #endif
2470
2471 int main (void)
2472 {
2473 return $2 ();
2474  ;
2475  return 0;
2476 }
2477 _ACEOF
2478 if ac_fn_c_try_link "$LINENO"
2479 then :
2480   eval "$3=yes"
2481 else $as_nop
2482   eval "$3=no"
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2485     conftest$ac_exeext conftest.$ac_ext
2486 fi
2487 eval ac_res=\$$3
2488                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 printf "%s\n" "$ac_res" >&6; }
2490   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492 } # ac_fn_c_check_func
2493
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2497 # executables *can* be run.
2498 ac_fn_c_try_run ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   if { { ac_try="$ac_link"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 printf "%s\n" "$ac_try_echo"; } >&5
2508   (eval "$ac_link") 2>&5
2509   ac_status=$?
2510   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512   { { case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 printf "%s\n" "$ac_try_echo"; } >&5
2518   (eval "$ac_try") 2>&5
2519   ac_status=$?
2520   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521   test $ac_status = 0; }; }
2522 then :
2523   ac_retval=0
2524 else $as_nop
2525   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2526        printf "%s\n" "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529        ac_retval=$ac_status
2530 fi
2531   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533   as_fn_set_status $ac_retval
2534
2535 } # ac_fn_c_try_run
2536
2537 # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2538 # -------------------------------------------------------
2539 # Tests whether TYPE exists after having included INCLUDES, setting cache
2540 # variable VAR accordingly.
2541 ac_fn_c_check_type ()
2542 {
2543   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 printf %s "checking for $2... " >&6; }
2546 if eval test \${$3+y}
2547 then :
2548   printf %s "(cached) " >&6
2549 else $as_nop
2550   eval "$3=no"
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 int main (void)
2555 {
2556 if (sizeof ($2))
2557          return 0;
2558  ;
2559  return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_c_try_compile "$LINENO"
2563 then :
2564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 $4
2567 int main (void)
2568 {
2569 if (sizeof (($2)))
2570             return 0;
2571  ;
2572  return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"
2576 then :
2577
2578 else $as_nop
2579   eval "$3=yes"
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2584 fi
2585 eval ac_res=\$$3
2586                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 printf "%s\n" "$ac_res" >&6; }
2588   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590 } # ac_fn_c_check_type
2591
2592 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2593 # ------------------------------------------------------------------
2594 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2595 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2596 ac_fn_check_decl ()
2597 {
2598   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599   as_decl_name=`echo $2|sed 's/ *(.*//'`
2600   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2601 printf %s "checking whether $as_decl_name is declared... " >&6; }
2602 if eval test \${$3+y}
2603 then :
2604   printf %s "(cached) " >&6
2605 else $as_nop
2606   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2607   eval ac_save_FLAGS=\$$6
2608   as_fn_append $6 " $5"
2609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $4
2612 int main (void)
2613 {
2614 #ifndef $as_decl_name
2615 #ifdef __cplusplus
2616   (void) $as_decl_use;
2617 #else
2618   (void) $as_decl_name;
2619 #endif
2620 #endif
2621
2622  ;
2623  return 0;
2624 }
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"
2627 then :
2628   eval "$3=yes"
2629 else $as_nop
2630   eval "$3=no"
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2633   eval $6=\$ac_save_FLAGS
2634
2635 fi
2636 eval ac_res=\$$3
2637                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 printf "%s\n" "$ac_res" >&6; }
2639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640
2641 } # ac_fn_check_decl
2642
2643 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2644 # ----------------------------------------------------
2645 # Tries to find if the field MEMBER exists in type AGGR, after including
2646 # INCLUDES, setting cache variable VAR accordingly.
2647 ac_fn_c_check_member ()
2648 {
2649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2651 printf %s "checking for $2.$3... " >&6; }
2652 if eval test \${$4+y}
2653 then :
2654   printf %s "(cached) " >&6
2655 else $as_nop
2656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h.  */
2658 $5
2659 int main (void)
2660 {
2661 static $2 ac_aggr;
2662 if (ac_aggr.$3)
2663 return 0;
2664  ;
2665  return 0;
2666 }
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"
2669 then :
2670   eval "$4=yes"
2671 else $as_nop
2672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h.  */
2674 $5
2675 int main (void)
2676 {
2677 static $2 ac_aggr;
2678 if (sizeof ac_aggr.$3)
2679 return 0;
2680  ;
2681  return 0;
2682 }
2683 _ACEOF
2684 if ac_fn_c_try_compile "$LINENO"
2685 then :
2686   eval "$4=yes"
2687 else $as_nop
2688   eval "$4=no"
2689 fi
2690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2691 fi
2692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2693 fi
2694 eval ac_res=\$$4
2695                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 printf "%s\n" "$ac_res" >&6; }
2697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698
2699 } # ac_fn_c_check_member
2700 ac_configure_args_raw=
2701 for ac_arg
2702 do
2703   case $ac_arg in
2704   *\'*)
2705     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2706   esac
2707   as_fn_append ac_configure_args_raw " '$ac_arg'"
2708 done
2709
2710 case $ac_configure_args_raw in
2711   *$as_nl*)
2712     ac_safe_unquote= ;;
2713   *)
2714     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2715     ac_unsafe_a="$ac_unsafe_z#~"
2716     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2717     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2718 esac
2719
2720 cat >config.log <<_ACEOF
2721 This file contains any messages produced by compilers while
2722 running configure, to aid debugging if configure makes a mistake.
2723
2724 It was created by curl $as_me -, which was
2725 generated by GNU Autoconf 2.71.  Invocation command line was
2726
2727   $ $0$ac_configure_args_raw
2728
2729 _ACEOF
2730 exec 5>>config.log
2731 {
2732 cat <<_ASUNAME
2733 ## --------- ##
2734 ## Platform. ##
2735 ## --------- ##
2736
2737 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2738 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2739 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2740 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2741 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2742
2743 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2744 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2745
2746 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2747 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2748 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2749 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2750 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2751 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2752 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2753
2754 _ASUNAME
2755
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   case $as_dir in #(((
2761     '') as_dir=./ ;;
2762     */) ;;
2763     *) as_dir=$as_dir/ ;;
2764   esac
2765     printf "%s\n" "PATH: $as_dir"
2766   done
2767 IFS=$as_save_IFS
2768
2769 } >&5
2770
2771 cat >&5 <<_ACEOF
2772
2773
2774 ## ----------- ##
2775 ## Core tests. ##
2776 ## ----------- ##
2777
2778 _ACEOF
2779
2780
2781 # Keep a trace of the command line.
2782 # Strip out --no-create and --no-recursion so they do not pile up.
2783 # Strip out --silent because we don't want to record it for future runs.
2784 # Also quote any args containing shell meta-characters.
2785 # Make two passes to allow for proper duplicate-argument suppression.
2786 ac_configure_args=
2787 ac_configure_args0=
2788 ac_configure_args1=
2789 ac_must_keep_next=false
2790 for ac_pass in 1 2
2791 do
2792   for ac_arg
2793   do
2794     case $ac_arg in
2795     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2796     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2797     | -silent | --silent | --silen | --sile | --sil)
2798       continue ;;
2799     *\'*)
2800       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2801     esac
2802     case $ac_pass in
2803     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2804     2)
2805       as_fn_append ac_configure_args1 " '$ac_arg'"
2806       if test $ac_must_keep_next = true; then
2807         ac_must_keep_next=false # Got value, back to normal.
2808       else
2809         case $ac_arg in
2810           *=* | --config-cache | -C | -disable-* | --disable-* \
2811           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2812           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2813           | -with-* | --with-* | -without-* | --without-* | --x)
2814             case "$ac_configure_args0 " in
2815               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2816             esac
2817             ;;
2818           -* ) ac_must_keep_next=true ;;
2819         esac
2820       fi
2821       as_fn_append ac_configure_args " '$ac_arg'"
2822       ;;
2823     esac
2824   done
2825 done
2826 { ac_configure_args0=; unset ac_configure_args0;}
2827 { ac_configure_args1=; unset ac_configure_args1;}
2828
2829 # When interrupted or exit'd, cleanup temporary files, and complete
2830 # config.log.  We remove comments because anyway the quotes in there
2831 # would cause problems or look ugly.
2832 # WARNING: Use '\'' to represent an apostrophe within the trap.
2833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2834 trap 'exit_status=$?
2835   # Sanitize IFS.
2836   IFS=" ""      $as_nl"
2837   # Save into config.log some information that might help in debugging.
2838   {
2839     echo
2840
2841     printf "%s\n" "## ---------------- ##
2842 ## Cache variables. ##
2843 ## ---------------- ##"
2844     echo
2845     # The following way of writing the cache mishandles newlines in values,
2846 (
2847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2848     eval ac_val=\$$ac_var
2849     case $ac_val in #(
2850     *${as_nl}*)
2851       case $ac_var in #(
2852       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2853 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2854       esac
2855       case $ac_var in #(
2856       _ | IFS | as_nl) ;; #(
2857       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2858       *) { eval $ac_var=; unset $ac_var;} ;;
2859       esac ;;
2860     esac
2861   done
2862   (set) 2>&1 |
2863     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2864     *${as_nl}ac_space=\ *)
2865       sed -n \
2866         "s/'\''/'\''\\\\'\'''\''/g;
2867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2868       ;; #(
2869     *)
2870       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2871       ;;
2872     esac |
2873     sort
2874 )
2875     echo
2876
2877     printf "%s\n" "## ----------------- ##
2878 ## Output variables. ##
2879 ## ----------------- ##"
2880     echo
2881     for ac_var in $ac_subst_vars
2882     do
2883       eval ac_val=\$$ac_var
2884       case $ac_val in
2885       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886       esac
2887       printf "%s\n" "$ac_var='\''$ac_val'\''"
2888     done | sort
2889     echo
2890
2891     if test -n "$ac_subst_files"; then
2892       printf "%s\n" "## ------------------- ##
2893 ## File substitutions. ##
2894 ## ------------------- ##"
2895       echo
2896       for ac_var in $ac_subst_files
2897       do
2898         eval ac_val=\$$ac_var
2899         case $ac_val in
2900         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2901         esac
2902         printf "%s\n" "$ac_var='\''$ac_val'\''"
2903       done | sort
2904       echo
2905     fi
2906
2907     if test -s confdefs.h; then
2908       printf "%s\n" "## ----------- ##
2909 ## confdefs.h. ##
2910 ## ----------- ##"
2911       echo
2912       cat confdefs.h
2913       echo
2914     fi
2915     test "$ac_signal" != 0 &&
2916       printf "%s\n" "$as_me: caught signal $ac_signal"
2917     printf "%s\n" "$as_me: exit $exit_status"
2918   } >&5
2919   rm -f core *.core core.conftest.* &&
2920     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2921     exit $exit_status
2922 ' 0
2923 for ac_signal in 1 2 13 15; do
2924   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2925 done
2926 ac_signal=0
2927
2928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2929 rm -f -r conftest* confdefs.h
2930
2931 printf "%s\n" "/* confdefs.h */" > confdefs.h
2932
2933 # Predefined preprocessor variables.
2934
2935 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2936
2937 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2938
2939 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2940
2941 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2942
2943 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2944
2945 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2946
2947
2948 # Let the site file select an alternate cache file if it wants to.
2949 # Prefer an explicitly selected file to automatically selected ones.
2950 if test -n "$CONFIG_SITE"; then
2951   ac_site_files="$CONFIG_SITE"
2952 elif test "x$prefix" != xNONE; then
2953   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2954 else
2955   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2956 fi
2957
2958 for ac_site_file in $ac_site_files
2959 do
2960   case $ac_site_file in #(
2961   */*) :
2962      ;; #(
2963   *) :
2964     ac_site_file=./$ac_site_file ;;
2965 esac
2966   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2967     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2968 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2969     sed 's/^/| /' "$ac_site_file" >&5
2970     . "$ac_site_file" \
2971       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2973 as_fn_error $? "failed to load site script $ac_site_file
2974 See \`config.log' for more details" "$LINENO" 5; }
2975   fi
2976 done
2977
2978 if test -r "$cache_file"; then
2979   # Some versions of bash will fail to source /dev/null (special files
2980   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2981   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2982     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2983 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2984     case $cache_file in
2985       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2986       *)                      . "./$cache_file";;
2987     esac
2988   fi
2989 else
2990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2991 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2992   >$cache_file
2993 fi
2994
2995 # Test code for whether the C compiler supports C89 (global declarations)
2996 ac_c_conftest_c89_globals='
2997 /* Does the compiler advertise C89 conformance?
2998    Do not test the value of __STDC__, because some compilers set it to 0
2999    while being otherwise adequately conformant. */
3000 #if !defined __STDC__
3001 # error "Compiler does not advertise C89 conformance"
3002 #endif
3003
3004 #include <stddef.h>
3005 #include <stdarg.h>
3006 struct stat;
3007 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3008 struct buf { int x; };
3009 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3010 static char *e (p, i)
3011      char **p;
3012      int i;
3013 {
3014   return p[i];
3015 }
3016 static char *f (char * (*g) (char **, int), char **p, ...)
3017 {
3018   char *s;
3019   va_list v;
3020   va_start (v,p);
3021   s = g (p, va_arg (v,int));
3022   va_end (v);
3023   return s;
3024 }
3025
3026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3027    function prototypes and stuff, but not \xHH hex character constants.
3028    These do not provoke an error unfortunately, instead are silently treated
3029    as an "x".  The following induces an error, until -std is added to get
3030    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3031    array size at least.  It is necessary to write \x00 == 0 to get something
3032    that is true only with -std.  */
3033 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3034
3035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036    inside strings and character constants.  */
3037 #define FOO(x) '\''x'\''
3038 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3039
3040 int test (int i, double x);
3041 struct s1 {int (*f) (int a);};
3042 struct s2 {int (*f) (double a);};
3043 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3044                int, int);'
3045
3046 # Test code for whether the C compiler supports C89 (body of main).
3047 ac_c_conftest_c89_main='
3048 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3049 '
3050
3051 # Test code for whether the C compiler supports C99 (global declarations)
3052 ac_c_conftest_c99_globals='
3053 // Does the compiler advertise C99 conformance?
3054 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3055 # error "Compiler does not advertise C99 conformance"
3056 #endif
3057
3058 #include <stdbool.h>
3059 extern int puts (const char *);
3060 extern int printf (const char *, ...);
3061 extern int dprintf (int, const char *, ...);
3062 extern void *malloc (size_t);
3063
3064 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3065 // dprintf is used instead of fprintf to avoid needing to declare
3066 // FILE and stderr.
3067 #define debug(...) dprintf (2, __VA_ARGS__)
3068 #define showlist(...) puts (#__VA_ARGS__)
3069 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3070 static void
3071 test_varargs_macros (void)
3072 {
3073   int x = 1234;
3074   int y = 5678;
3075   debug ("Flag");
3076   debug ("X = %d\n", x);
3077   showlist (The first, second, and third items.);
3078   report (x>y, "x is %d but y is %d", x, y);
3079 }
3080
3081 // Check long long types.
3082 #define BIG64 18446744073709551615ull
3083 #define BIG32 4294967295ul
3084 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3085 #if !BIG_OK
3086   #error "your preprocessor is broken"
3087 #endif
3088 #if BIG_OK
3089 #else
3090   #error "your preprocessor is broken"
3091 #endif
3092 static long long int bignum = -9223372036854775807LL;
3093 static unsigned long long int ubignum = BIG64;
3094
3095 struct incomplete_array
3096 {
3097   int datasize;
3098   double data[];
3099 };
3100
3101 struct named_init {
3102   int number;
3103   const wchar_t *name;
3104   double average;
3105 };
3106
3107 typedef const char *ccp;
3108
3109 static inline int
3110 test_restrict (ccp restrict text)
3111 {
3112   // See if C++-style comments work.
3113   // Iterate through items via the restricted pointer.
3114   // Also check for declarations in for loops.
3115   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3116     continue;
3117   return 0;
3118 }
3119
3120 // Check varargs and va_copy.
3121 static bool
3122 test_varargs (const char *format, ...)
3123 {
3124   va_list args;
3125   va_start (args, format);
3126   va_list args_copy;
3127   va_copy (args_copy, args);
3128
3129   const char *str = "";
3130   int number = 0;
3131   float fnumber = 0;
3132
3133   while (*format)
3134     {
3135       switch (*format++)
3136         {
3137         case '\''s'\'': // string
3138           str = va_arg (args_copy, const char *);
3139           break;
3140         case '\''d'\'': // int
3141           number = va_arg (args_copy, int);
3142           break;
3143         case '\''f'\'': // float
3144           fnumber = va_arg (args_copy, double);
3145           break;
3146         default:
3147           break;
3148         }
3149     }
3150   va_end (args_copy);
3151   va_end (args);
3152
3153   return *str && number && fnumber;
3154 }
3155 '
3156
3157 # Test code for whether the C compiler supports C99 (body of main).
3158 ac_c_conftest_c99_main='
3159   // Check bool.
3160   _Bool success = false;
3161   success |= (argc != 0);
3162
3163   // Check restrict.
3164   if (test_restrict ("String literal") == 0)
3165     success = true;
3166   char *restrict newvar = "Another string";
3167
3168   // Check varargs.
3169   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3170   test_varargs_macros ();
3171
3172   // Check flexible array members.
3173   struct incomplete_array *ia =
3174     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3175   ia->datasize = 10;
3176   for (int i = 0; i < ia->datasize; ++i)
3177     ia->data[i] = i * 1.234;
3178
3179   // Check named initializers.
3180   struct named_init ni = {
3181     .number = 34,
3182     .name = L"Test wide string",
3183     .average = 543.34343,
3184   };
3185
3186   ni.number = 58;
3187
3188   int dynamic_array[ni.number];
3189   dynamic_array[0] = argv[0][0];
3190   dynamic_array[ni.number - 1] = 543;
3191
3192   // work around unused variable warnings
3193   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3194          || dynamic_array[ni.number - 1] != 543);
3195 '
3196
3197 # Test code for whether the C compiler supports C11 (global declarations)
3198 ac_c_conftest_c11_globals='
3199 // Does the compiler advertise C11 conformance?
3200 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3201 # error "Compiler does not advertise C11 conformance"
3202 #endif
3203
3204 // Check _Alignas.
3205 char _Alignas (double) aligned_as_double;
3206 char _Alignas (0) no_special_alignment;
3207 extern char aligned_as_int;
3208 char _Alignas (0) _Alignas (int) aligned_as_int;
3209
3210 // Check _Alignof.
3211 enum
3212 {
3213   int_alignment = _Alignof (int),
3214   int_array_alignment = _Alignof (int[100]),
3215   char_alignment = _Alignof (char)
3216 };
3217 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3218
3219 // Check _Noreturn.
3220 int _Noreturn does_not_return (void) { for (;;) continue; }
3221
3222 // Check _Static_assert.
3223 struct test_static_assert
3224 {
3225   int x;
3226   _Static_assert (sizeof (int) <= sizeof (long int),
3227                   "_Static_assert does not work in struct");
3228   long int y;
3229 };
3230
3231 // Check UTF-8 literals.
3232 #define u8 syntax error!
3233 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3234
3235 // Check duplicate typedefs.
3236 typedef long *long_ptr;
3237 typedef long int *long_ptr;
3238 typedef long_ptr long_ptr;
3239
3240 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3241 struct anonymous
3242 {
3243   union {
3244     struct { int i; int j; };
3245     struct { int k; long int l; } w;
3246   };
3247   int m;
3248 } v1;
3249 '
3250
3251 # Test code for whether the C compiler supports C11 (body of main).
3252 ac_c_conftest_c11_main='
3253   _Static_assert ((offsetof (struct anonymous, i)
3254                    == offsetof (struct anonymous, w.k)),
3255                   "Anonymous union alignment botch");
3256   v1.i = 2;
3257   v1.w.k = 5;
3258   ok |= v1.i != 5;
3259 '
3260
3261 # Test code for whether the C compiler supports C11 (complete).
3262 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3263 ${ac_c_conftest_c99_globals}
3264 ${ac_c_conftest_c11_globals}
3265
3266 int
3267 main (int argc, char **argv)
3268 {
3269   int ok = 0;
3270   ${ac_c_conftest_c89_main}
3271   ${ac_c_conftest_c99_main}
3272   ${ac_c_conftest_c11_main}
3273   return ok;
3274 }
3275 "
3276
3277 # Test code for whether the C compiler supports C99 (complete).
3278 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3279 ${ac_c_conftest_c99_globals}
3280
3281 int
3282 main (int argc, char **argv)
3283 {
3284   int ok = 0;
3285   ${ac_c_conftest_c89_main}
3286   ${ac_c_conftest_c99_main}
3287   return ok;
3288 }
3289 "
3290
3291 # Test code for whether the C compiler supports C89 (complete).
3292 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3293
3294 int
3295 main (int argc, char **argv)
3296 {
3297   int ok = 0;
3298   ${ac_c_conftest_c89_main}
3299   return ok;
3300 }
3301 "
3302
3303 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3304 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3305 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3306 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3307 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3308 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3309 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3310 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3311 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3312
3313 # Auxiliary files required by this configure script.
3314 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3315
3316 # Locations in which to look for auxiliary files.
3317 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3318
3319 # Search for a directory containing all of the required auxiliary files,
3320 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3321 # If we don't find one directory that contains all the files we need,
3322 # we report the set of missing files from the *first* directory in
3323 # $ac_aux_dir_candidates and give up.
3324 ac_missing_aux_files=""
3325 ac_first_candidate=:
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 as_found=false
3329 for as_dir in $ac_aux_dir_candidates
3330 do
3331   IFS=$as_save_IFS
3332   case $as_dir in #(((
3333     '') as_dir=./ ;;
3334     */) ;;
3335     *) as_dir=$as_dir/ ;;
3336   esac
3337   as_found=:
3338
3339   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3340   ac_aux_dir_found=yes
3341   ac_install_sh=
3342   for ac_aux in $ac_aux_files
3343   do
3344     # As a special case, if "install-sh" is required, that requirement
3345     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3346     # and $ac_install_sh is set appropriately for whichever one is found.
3347     if test x"$ac_aux" = x"install-sh"
3348     then
3349       if test -f "${as_dir}install-sh"; then
3350         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3351         ac_install_sh="${as_dir}install-sh -c"
3352       elif test -f "${as_dir}install.sh"; then
3353         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3354         ac_install_sh="${as_dir}install.sh -c"
3355       elif test -f "${as_dir}shtool"; then
3356         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3357         ac_install_sh="${as_dir}shtool install -c"
3358       else
3359         ac_aux_dir_found=no
3360         if $ac_first_candidate; then
3361           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3362         else
3363           break
3364         fi
3365       fi
3366     else
3367       if test -f "${as_dir}${ac_aux}"; then
3368         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3369       else
3370         ac_aux_dir_found=no
3371         if $ac_first_candidate; then
3372           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3373         else
3374           break
3375         fi
3376       fi
3377     fi
3378   done
3379   if test "$ac_aux_dir_found" = yes; then
3380     ac_aux_dir="$as_dir"
3381     break
3382   fi
3383   ac_first_candidate=false
3384
3385   as_found=false
3386 done
3387 IFS=$as_save_IFS
3388 if $as_found
3389 then :
3390
3391 else $as_nop
3392   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3393 fi
3394
3395
3396 # These three variables are undocumented and unsupported,
3397 # and are intended to be withdrawn in a future Autoconf release.
3398 # They can cause serious problems if a builder's source tree is in a directory
3399 # whose full name contains unusual characters.
3400 if test -f "${ac_aux_dir}config.guess"; then
3401   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3402 fi
3403 if test -f "${ac_aux_dir}config.sub"; then
3404   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3405 fi
3406 if test -f "$ac_aux_dir/configure"; then
3407   ac_configure="$SHELL ${ac_aux_dir}configure"
3408 fi
3409
3410 # Check that the precious variables saved in the cache have kept the same
3411 # value.
3412 ac_cache_corrupted=false
3413 for ac_var in $ac_precious_vars; do
3414   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415   eval ac_new_set=\$ac_env_${ac_var}_set
3416   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417   eval ac_new_val=\$ac_env_${ac_var}_value
3418   case $ac_old_set,$ac_new_set in
3419     set,)
3420       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3421 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422       ac_cache_corrupted=: ;;
3423     ,set)
3424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3425 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426       ac_cache_corrupted=: ;;
3427     ,);;
3428     *)
3429       if test "x$ac_old_val" != "x$ac_new_val"; then
3430         # differences in whitespace do not lead to failure.
3431         ac_old_val_w=`echo x $ac_old_val`
3432         ac_new_val_w=`echo x $ac_new_val`
3433         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3434           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3435 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436           ac_cache_corrupted=:
3437         else
3438           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3439 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440           eval $ac_var=\$ac_old_val
3441         fi
3442         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3443 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3444         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3445 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3446       fi;;
3447   esac
3448   # Pass precious variables to config.status.
3449   if test "$ac_new_set" = set; then
3450     case $ac_new_val in
3451     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452     *) ac_arg=$ac_var=$ac_new_val ;;
3453     esac
3454     case " $ac_configure_args " in
3455       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3456       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3457     esac
3458   fi
3459 done
3460 if $ac_cache_corrupted; then
3461   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3464 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3465   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3466             and start over" "$LINENO" 5
3467 fi
3468 ## -------------------- ##
3469 ## Main body of script. ##
3470 ## -------------------- ##
3471
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
3479
3480
3481
3482
3483
3484 # using curl-override.m4
3485
3486
3487
3488
3489
3490 ac_config_headers="$ac_config_headers lib/curl_config.h"
3491
3492
3493
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3495 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3496     # Check whether --enable-maintainer-mode was given.
3497 if test ${enable_maintainer_mode+y}
3498 then :
3499   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3500 else $as_nop
3501   USE_MAINTAINER_MODE=no
3502 fi
3503
3504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3505 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3506    if test $USE_MAINTAINER_MODE = yes; then
3507   MAINTAINER_MODE_TRUE=
3508   MAINTAINER_MODE_FALSE='#'
3509 else
3510   MAINTAINER_MODE_TRUE='#'
3511   MAINTAINER_MODE_FALSE=
3512 fi
3513
3514   MAINT=$MAINTAINER_MODE_TRUE
3515
3516
3517 # Check whether --enable-silent-rules was given.
3518 if test ${enable_silent_rules+y}
3519 then :
3520   enableval=$enable_silent_rules;
3521 fi
3522
3523 case $enable_silent_rules in # (((
3524   yes) AM_DEFAULT_VERBOSITY=0;;
3525    no) AM_DEFAULT_VERBOSITY=1;;
3526     *) AM_DEFAULT_VERBOSITY=0;;
3527 esac
3528 am_make=${MAKE-make}
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3530 printf %s "checking whether $am_make supports nested variables... " >&6; }
3531 if test ${am_cv_make_support_nested_variables+y}
3532 then :
3533   printf %s "(cached) " >&6
3534 else $as_nop
3535   if printf "%s\n" 'TRUE=$(BAR$(V))
3536 BAR0=false
3537 BAR1=true
3538 V=1
3539 am__doit:
3540         @$(TRUE)
3541 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3542   am_cv_make_support_nested_variables=yes
3543 else
3544   am_cv_make_support_nested_variables=no
3545 fi
3546 fi
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3548 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3549 if test $am_cv_make_support_nested_variables = yes; then
3550     AM_V='$(V)'
3551   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3552 else
3553   AM_V=$AM_DEFAULT_VERBOSITY
3554   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3555 fi
3556 AM_BACKSLASH='\'
3557
3558
3559
3560         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3561 printf %s "checking whether to enable debug build options... " >&6; }
3562   OPT_DEBUG_BUILD="default"
3563   # Check whether --enable-debug was given.
3564 if test ${enable_debug+y}
3565 then :
3566   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3567 fi
3568
3569   case "$OPT_DEBUG_BUILD" in
3570     no)
3571             want_debug="no"
3572       ;;
3573     default)
3574             want_debug="no"
3575       ;;
3576     *)
3577             want_debug="yes"
3578
3579 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3580
3581       ;;
3582   esac
3583   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3584 printf "%s\n" "$want_debug" >&6; }
3585
3586
3587       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3588 printf %s "checking whether to enable compiler optimizer... " >&6; }
3589   OPT_COMPILER_OPTIMIZE="default"
3590   # Check whether --enable-optimize was given.
3591 if test ${enable_optimize+y}
3592 then :
3593   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3594 fi
3595
3596   case "$OPT_COMPILER_OPTIMIZE" in
3597     no)
3598                               want_optimize="no"
3599       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 printf "%s\n" "no" >&6; }
3601       ;;
3602     default)
3603                                                                         if test "$want_debug" = "yes"; then
3604         want_optimize="assume_no"
3605         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3606 printf "%s\n" "(assumed) no" >&6; }
3607       else
3608         want_optimize="assume_yes"
3609         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3610 printf "%s\n" "(assumed) yes" >&6; }
3611       fi
3612       ;;
3613     *)
3614                               want_optimize="yes"
3615       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 printf "%s\n" "yes" >&6; }
3617       ;;
3618   esac
3619
3620
3621         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3622 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3623   OPT_COMPILER_WARNINGS="default"
3624   # Check whether --enable-warnings was given.
3625 if test ${enable_warnings+y}
3626 then :
3627   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3628 fi
3629
3630   case "$OPT_COMPILER_WARNINGS" in
3631     no)
3632             want_warnings="no"
3633       ;;
3634     default)
3635                   want_warnings="$want_debug"
3636       ;;
3637     *)
3638             want_warnings="yes"
3639       ;;
3640   esac
3641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3642 printf "%s\n" "$want_warnings" >&6; }
3643
3644
3645     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3646 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3647   OPT_COMPILER_WERROR="default"
3648   # Check whether --enable-werror was given.
3649 if test ${enable_werror+y}
3650 then :
3651   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3652 fi
3653
3654   case "$OPT_COMPILER_WERROR" in
3655     no)
3656             want_werror="no"
3657       ;;
3658     default)
3659             want_werror="no"
3660       ;;
3661     *)
3662             want_werror="yes"
3663       ;;
3664   esac
3665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3666 printf "%s\n" "$want_werror" >&6; }
3667
3668
3669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3670 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3671   OPT_CURLDEBUG_BUILD="default"
3672   # Check whether --enable-curldebug was given.
3673 if test ${enable_curldebug+y}
3674 then :
3675   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3676 fi
3677
3678   case "$OPT_CURLDEBUG_BUILD" in
3679     no)
3680             want_curldebug="no"
3681       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3683       ;;
3684     default)
3685                                           if test "$want_debug" = "yes"; then
3686         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3687 printf "%s\n" "(assumed) yes" >&6; }
3688
3689 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3690
3691       else
3692         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694       fi
3695       want_curldebug_assumed="yes"
3696       want_curldebug="$want_debug"
3697       ;;
3698     *)
3699                                                       want_curldebug="yes"
3700
3701 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3702
3703       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 printf "%s\n" "yes" >&6; }
3705       ;;
3706   esac
3707
3708
3709     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3710 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3711   OPT_SYMBOL_HIDING="default"
3712   # Check whether --enable-symbol-hiding was given.
3713 if test ${enable_symbol_hiding+y}
3714 then :
3715   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3716 fi
3717
3718   case "$OPT_SYMBOL_HIDING" in
3719     no)
3720                               want_symbol_hiding="no"
3721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 printf "%s\n" "no" >&6; }
3723       ;;
3724     default)
3725                   want_symbol_hiding="yes"
3726       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727 printf "%s\n" "yes" >&6; }
3728       ;;
3729     *)
3730                         want_symbol_hiding="yes"
3731       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 printf "%s\n" "yes" >&6; }
3733       ;;
3734   esac
3735
3736
3737     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3738 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3739   OPT_ARES="default"
3740   # Check whether --enable-ares was given.
3741 if test ${enable_ares+y}
3742 then :
3743   enableval=$enable_ares; OPT_ARES=$enableval
3744 fi
3745
3746   case "$OPT_ARES" in
3747     no)
3748             want_ares="no"
3749       ;;
3750     default)
3751             want_ares="no"
3752       ;;
3753     *)
3754             want_ares="yes"
3755       if test -n "$enableval" && test "$enableval" != "yes"; then
3756         want_ares_path="$enableval"
3757       fi
3758       ;;
3759   esac
3760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3761 printf "%s\n" "$want_ares" >&6; }
3762
3763
3764     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3765 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3766   OPT_RT="default"
3767   # Check whether --enable-rt was given.
3768 if test ${enable_rt+y}
3769 then :
3770   enableval=$enable_rt; OPT_RT=$enableval
3771 fi
3772
3773   case "$OPT_RT" in
3774     no)
3775             dontwant_rt="yes"
3776       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 printf "%s\n" "yes" >&6; }
3778       ;;
3779     default)
3780             dontwant_rt="no"
3781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3782 printf "%s\n" "(assumed no)" >&6; }
3783       ;;
3784     *)
3785             dontwant_rt="no"
3786       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 printf "%s\n" "no" >&6; }
3788       ;;
3789   esac
3790
3791
3792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3793 printf %s "checking whether to enable ECH support... " >&6; }
3794   OPT_ECH="default"
3795   # Check whether --enable-ech was given.
3796 if test ${enable_ech+y}
3797 then :
3798   enableval=$enable_ech; OPT_ECH=$enableval
3799 fi
3800
3801   case "$OPT_ECH" in
3802     no)
3803             want_ech="no"
3804       curl_ech_msg="no      (--enable-ech)"
3805       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3807       ;;
3808     default)
3809             want_ech="no"
3810       curl_ech_msg="no      (--enable-ech)"
3811       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 printf "%s\n" "no" >&6; }
3813       ;;
3814     *)
3815             want_ech="yes"
3816       curl_ech_msg="enabled (--disable-ech)"
3817       experimental="ech"
3818       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819 printf "%s\n" "yes" >&6; }
3820       ;;
3821   esac
3822
3823
3824 #
3825 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3826 #
3827
3828 if test -z "$xc_configure_preamble_result"; then
3829   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3830 fi
3831
3832 #
3833 # Check that 'PATH_SEPARATOR' has already been set.
3834 #
3835
3836 if test -z "$xc_PATH_SEPARATOR"; then
3837   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3838 fi
3839 if test -z "$PATH_SEPARATOR"; then
3840   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3841 fi
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3843 printf %s "checking for path separator... " >&6; }
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3845 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3846 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3848 printf %s "checking for initial path separator... " >&6; }
3849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3850 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3851   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3852 fi
3853
3854
3855 #
3856 # save the configure arguments
3857 #
3858 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3859
3860
3861 if test -z "$SED"; then
3862     # Extract the first word of "sed", so it can be a program name with args.
3863 set dummy sed; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_path_SED+y}
3867 then :
3868   printf %s "(cached) " >&6
3869 else $as_nop
3870   case $SED in
3871   [\\/]* | ?:[\\/]*)
3872   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3873   ;;
3874   *)
3875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3877 for as_dir in $as_dummy
3878 do
3879   IFS=$as_save_IFS
3880   case $as_dir in #(((
3881     '') as_dir=./ ;;
3882     */) ;;
3883     *) as_dir=$as_dir/ ;;
3884   esac
3885     for ac_exec_ext in '' $ac_executable_extensions; do
3886   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3887     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3888     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892   done
3893 IFS=$as_save_IFS
3894
3895   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3896   ;;
3897 esac
3898 fi
3899 SED=$ac_cv_path_SED
3900 if test -n "$SED"; then
3901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3902 printf "%s\n" "$SED" >&6; }
3903 else
3904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 printf "%s\n" "no" >&6; }
3906 fi
3907
3908
3909   if test -z "$SED" || test "$SED" = "not_found"; then
3910     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3911   fi
3912 fi
3913
3914
3915 if test -z "$GREP"; then
3916     # Extract the first word of "grep", so it can be a program name with args.
3917 set dummy grep; ac_word=$2
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 printf %s "checking for $ac_word... " >&6; }
3920 if test ${ac_cv_path_GREP+y}
3921 then :
3922   printf %s "(cached) " >&6
3923 else $as_nop
3924   case $GREP in
3925   [\\/]* | ?:[\\/]*)
3926   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3927   ;;
3928   *)
3929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3931 for as_dir in $as_dummy
3932 do
3933   IFS=$as_save_IFS
3934   case $as_dir in #(((
3935     '') as_dir=./ ;;
3936     */) ;;
3937     *) as_dir=$as_dir/ ;;
3938   esac
3939     for ac_exec_ext in '' $ac_executable_extensions; do
3940   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3941     ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3942     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3943     break 2
3944   fi
3945 done
3946   done
3947 IFS=$as_save_IFS
3948
3949   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3950   ;;
3951 esac
3952 fi
3953 GREP=$ac_cv_path_GREP
3954 if test -n "$GREP"; then
3955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3956 printf "%s\n" "$GREP" >&6; }
3957 else
3958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963   if test -z "$GREP" || test "$GREP" = "not_found"; then
3964     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3965   fi
3966 fi
3967
3968
3969 if test -z "$EGREP"; then
3970     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3971 printf %s "checking that grep -E works... " >&6; }
3972   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3973     EGREP="$GREP -E"
3974     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 printf "%s\n" "yes" >&6; }
3976   else
3977     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3979     # Extract the first word of "egrep", so it can be a program name with args.
3980 set dummy egrep; ac_word=$2
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 printf %s "checking for $ac_word... " >&6; }
3983 if test ${ac_cv_path_EGREP+y}
3984 then :
3985   printf %s "(cached) " >&6
3986 else $as_nop
3987   case $EGREP in
3988   [\\/]* | ?:[\\/]*)
3989   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3990   ;;
3991   *)
3992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3994 for as_dir in $as_dummy
3995 do
3996   IFS=$as_save_IFS
3997   case $as_dir in #(((
3998     '') as_dir=./ ;;
3999     */) ;;
4000     *) as_dir=$as_dir/ ;;
4001   esac
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004     ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
4005     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009   done
4010 IFS=$as_save_IFS
4011
4012   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4013   ;;
4014 esac
4015 fi
4016 EGREP=$ac_cv_path_EGREP
4017 if test -n "$EGREP"; then
4018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4019 printf "%s\n" "$EGREP" >&6; }
4020 else
4021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025
4026   fi
4027 fi
4028 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4029   as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4030 fi
4031
4032
4033 if test -z "$AR"; then
4034     if test -n "$ac_tool_prefix"; then
4035   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}ar; ac_word=$2
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 printf %s "checking for $ac_word... " >&6; }
4039 if test ${ac_cv_path_AR+y}
4040 then :
4041   printf %s "(cached) " >&6
4042 else $as_nop
4043   case $AR in
4044   [\\/]* | ?:[\\/]*)
4045   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4046   ;;
4047   *)
4048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4050 for as_dir in $as_dummy
4051 do
4052   IFS=$as_save_IFS
4053   case $as_dir in #(((
4054     '') as_dir=./ ;;
4055     */) ;;
4056     *) as_dir=$as_dir/ ;;
4057   esac
4058     for ac_exec_ext in '' $ac_executable_extensions; do
4059   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4061     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065   done
4066 IFS=$as_save_IFS
4067
4068   ;;
4069 esac
4070 fi
4071 AR=$ac_cv_path_AR
4072 if test -n "$AR"; then
4073   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4074 printf "%s\n" "$AR" >&6; }
4075 else
4076   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4078 fi
4079
4080
4081 fi
4082 if test -z "$ac_cv_path_AR"; then
4083   ac_pt_AR=$AR
4084   # Extract the first word of "ar", so it can be a program name with args.
4085 set dummy ar; ac_word=$2
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 printf %s "checking for $ac_word... " >&6; }
4088 if test ${ac_cv_path_ac_pt_AR+y}
4089 then :
4090   printf %s "(cached) " >&6
4091 else $as_nop
4092   case $ac_pt_AR in
4093   [\\/]* | ?:[\\/]*)
4094   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4095   ;;
4096   *)
4097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4099 for as_dir in $as_dummy
4100 do
4101   IFS=$as_save_IFS
4102   case $as_dir in #(((
4103     '') as_dir=./ ;;
4104     */) ;;
4105     *) as_dir=$as_dir/ ;;
4106   esac
4107     for ac_exec_ext in '' $ac_executable_extensions; do
4108   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4110     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114   done
4115 IFS=$as_save_IFS
4116
4117   ;;
4118 esac
4119 fi
4120 ac_pt_AR=$ac_cv_path_ac_pt_AR
4121 if test -n "$ac_pt_AR"; then
4122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4123 printf "%s\n" "$ac_pt_AR" >&6; }
4124 else
4125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4127 fi
4128
4129   if test "x$ac_pt_AR" = x; then
4130     AR="not_found"
4131   else
4132     case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138     AR=$ac_pt_AR
4139   fi
4140 else
4141   AR="$ac_cv_path_AR"
4142 fi
4143
4144   if test -z "$AR" || test "$AR" = "not_found"; then
4145     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4146   fi
4147 fi
4148
4149
4150
4151
4152 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4153
4154   xc_prog_cc_prev_IFS=$IFS
4155   xc_prog_cc_prev_LIBS=$LIBS
4156   xc_prog_cc_prev_CFLAGS=$CFLAGS
4157   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4158   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4159
4160
4161
4162   xc_bad_var_libs=no
4163   for xc_word in $LIBS; do
4164     case "$xc_word" in
4165       -l* | --library=*)
4166         :
4167         ;;
4168       *)
4169         xc_bad_var_libs=yes
4170         ;;
4171     esac
4172   done
4173   if test $xc_bad_var_libs = yes; then
4174     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4175 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4176     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4177 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4178   fi
4179
4180
4181   xc_bad_var_ldflags=no
4182   for xc_word in $LDFLAGS; do
4183     case "$xc_word" in
4184       -D*)
4185         xc_bad_var_ldflags=yes
4186         ;;
4187       -U*)
4188         xc_bad_var_ldflags=yes
4189         ;;
4190       -I*)
4191         xc_bad_var_ldflags=yes
4192         ;;
4193       -l* | --library=*)
4194         xc_bad_var_ldflags=yes
4195         ;;
4196     esac
4197   done
4198   if test $xc_bad_var_ldflags = yes; then
4199     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4200 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4201     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4202     for xc_word in $LDFLAGS; do
4203       case "$xc_word" in
4204         -D*)
4205           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4206 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4207           ;;
4208         -U*)
4209           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4210 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4211           ;;
4212         -I*)
4213           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4214 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4215           ;;
4216         -l* | --library=*)
4217           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4218 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4219           ;;
4220       esac
4221     done
4222   fi
4223
4224
4225   xc_bad_var_cppflags=no
4226   for xc_word in $CPPFLAGS; do
4227     case "$xc_word" in
4228       -rpath*)
4229         xc_bad_var_cppflags=yes
4230         ;;
4231       -L* | --library-path=*)
4232         xc_bad_var_cppflags=yes
4233         ;;
4234       -l* | --library=*)
4235         xc_bad_var_cppflags=yes
4236         ;;
4237     esac
4238   done
4239   if test $xc_bad_var_cppflags = yes; then
4240     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4241 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4242     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4243     for xc_word in $CPPFLAGS; do
4244       case "$xc_word" in
4245         -rpath*)
4246           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4247 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4248           ;;
4249         -L* | --library-path=*)
4250           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4251 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4252           ;;
4253         -l* | --library=*)
4254           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4255 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4256           ;;
4257       esac
4258     done
4259   fi
4260
4261
4262   xc_bad_var_cflags=no
4263   for xc_word in $CFLAGS; do
4264     case "$xc_word" in
4265       -D*)
4266         xc_bad_var_cflags=yes
4267         ;;
4268       -U*)
4269         xc_bad_var_cflags=yes
4270         ;;
4271       -I*)
4272         xc_bad_var_cflags=yes
4273         ;;
4274       -rpath*)
4275         xc_bad_var_cflags=yes
4276         ;;
4277       -L* | --library-path=*)
4278         xc_bad_var_cflags=yes
4279         ;;
4280       -l* | --library=*)
4281         xc_bad_var_cflags=yes
4282         ;;
4283     esac
4284   done
4285   if test $xc_bad_var_cflags = yes; then
4286     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4287 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4288     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4289     for xc_word in $CFLAGS; do
4290       case "$xc_word" in
4291         -D*)
4292           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4293 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4294           ;;
4295         -U*)
4296           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4297 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4298           ;;
4299         -I*)
4300           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4301 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4302           ;;
4303         -rpath*)
4304           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4305 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4306           ;;
4307         -L* | --library-path=*)
4308           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4309 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4310           ;;
4311         -l* | --library=*)
4312           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4313 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4314           ;;
4315       esac
4316     done
4317   fi
4318
4319   if test $xc_bad_var_libs = yes ||
4320      test $xc_bad_var_cflags = yes ||
4321      test $xc_bad_var_ldflags = yes ||
4322      test $xc_bad_var_cppflags = yes; then
4323      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4324 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4325   fi
4326
4327
4328
4329   # Find a good install program.  We prefer a C program (faster),
4330 # so one script is as good as another.  But avoid the broken or
4331 # incompatible versions:
4332 # SysV /etc/install, /usr/sbin/install
4333 # SunOS /usr/etc/install
4334 # IRIX /sbin/install
4335 # AIX /bin/install
4336 # AmigaOS /C/install, which installs bootblocks on floppy discs
4337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4340 # OS/2's system install, which has a completely different semantic
4341 # ./install, which can be erroneously created by make from ./install.sh.
4342 # Reject install programs that cannot install multiple files.
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4344 printf %s "checking for a BSD-compatible install... " >&6; }
4345 if test -z "$INSTALL"; then
4346 if test ${ac_cv_path_install+y}
4347 then :
4348   printf %s "(cached) " >&6
4349 else $as_nop
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   case $as_dir in #(((
4355     '') as_dir=./ ;;
4356     */) ;;
4357     *) as_dir=$as_dir/ ;;
4358   esac
4359     # Account for fact that we put trailing slashes in our PATH walk.
4360 case $as_dir in #((
4361   ./ | /[cC]/* | \
4362   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4363   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4364   /usr/ucb/* ) ;;
4365   *)
4366     # OSF1 and SCO ODT 3.0 have their own names for install.
4367     # Don't use installbsd from OSF since it installs stuff as root
4368     # by default.
4369     for ac_prog in ginstall scoinst install; do
4370       for ac_exec_ext in '' $ac_executable_extensions; do
4371         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4372           if test $ac_prog = install &&
4373             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374             # AIX install.  It has an incompatible calling convention.
4375             :
4376           elif test $ac_prog = install &&
4377             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4378             # program-specific install script used by HP pwplus--don't use.
4379             :
4380           else
4381             rm -rf conftest.one conftest.two conftest.dir
4382             echo one > conftest.one
4383             echo two > conftest.two
4384             mkdir conftest.dir
4385             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4386               test -s conftest.one && test -s conftest.two &&
4387               test -s conftest.dir/conftest.one &&
4388               test -s conftest.dir/conftest.two
4389             then
4390               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4391               break 3
4392             fi
4393           fi
4394         fi
4395       done
4396     done
4397     ;;
4398 esac
4399
4400   done
4401 IFS=$as_save_IFS
4402
4403 rm -rf conftest.one conftest.two conftest.dir
4404
4405 fi
4406   if test ${ac_cv_path_install+y}; then
4407     INSTALL=$ac_cv_path_install
4408   else
4409     # As a last resort, use the slow shell script.  Don't cache a
4410     # value for INSTALL within a source directory, because that will
4411     # break other packages using the cache if that directory is
4412     # removed, or if the value is a relative name.
4413     INSTALL=$ac_install_sh
4414   fi
4415 fi
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4417 printf "%s\n" "$INSTALL" >&6; }
4418
4419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4420 # It thinks the first close brace ends the variable substitution.
4421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4422
4423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4424
4425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 # Expand $ac_aux_dir to an absolute path.
4438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4439
4440 ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 if test -n "$ac_tool_prefix"; then
4446   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 printf %s "checking for $ac_word... " >&6; }
4450 if test ${ac_cv_prog_CC+y}
4451 then :
4452   printf %s "(cached) " >&6
4453 else $as_nop
4454   if test -n "$CC"; then
4455   ac_cv_prog_CC="$CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   case $as_dir in #(((
4462     '') as_dir=./ ;;
4463     */) ;;
4464     *) as_dir=$as_dir/ ;;
4465   esac
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 printf "%s\n" "$CC" >&6; }
4482 else
4483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 printf "%s\n" "no" >&6; }
4485 fi
4486
4487
4488 fi
4489 if test -z "$ac_cv_prog_CC"; then
4490   ac_ct_CC=$CC
4491   # Extract the first word of "gcc", so it can be a program name with args.
4492 set dummy gcc; ac_word=$2
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 printf %s "checking for $ac_word... " >&6; }
4495 if test ${ac_cv_prog_ac_ct_CC+y}
4496 then :
4497   printf %s "(cached) " >&6
4498 else $as_nop
4499   if test -n "$ac_ct_CC"; then
4500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   case $as_dir in #(((
4507     '') as_dir=./ ;;
4508     */) ;;
4509     *) as_dir=$as_dir/ ;;
4510   esac
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4513     ac_cv_prog_ac_ct_CC="gcc"
4514     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518   done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 printf "%s\n" "$ac_ct_CC" >&6; }
4527 else
4528   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 printf "%s\n" "no" >&6; }
4530 fi
4531
4532   if test "x$ac_ct_CC" = x; then
4533     CC=""
4534   else
4535     case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541     CC=$ac_ct_CC
4542   fi
4543 else
4544   CC="$ac_cv_prog_CC"
4545 fi
4546
4547 if test -z "$CC"; then
4548           if test -n "$ac_tool_prefix"; then
4549     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}cc; ac_word=$2
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 printf %s "checking for $ac_word... " >&6; }
4553 if test ${ac_cv_prog_CC+y}
4554 then :
4555   printf %s "(cached) " >&6
4556 else $as_nop
4557   if test -n "$CC"; then
4558   ac_cv_prog_CC="$CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   case $as_dir in #(((
4565     '') as_dir=./ ;;
4566     */) ;;
4567     *) as_dir=$as_dir/ ;;
4568   esac
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4571     ac_cv_prog_CC="${ac_tool_prefix}cc"
4572     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576   done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584 printf "%s\n" "$CC" >&6; }
4585 else
4586   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 printf "%s\n" "no" >&6; }
4588 fi
4589
4590
4591   fi
4592 fi
4593 if test -z "$CC"; then
4594   # Extract the first word of "cc", so it can be a program name with args.
4595 set dummy cc; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_prog_CC+y}
4599 then :
4600   printf %s "(cached) " >&6
4601 else $as_nop
4602   if test -n "$CC"; then
4603   ac_cv_prog_CC="$CC" # Let the user override the test.
4604 else
4605   ac_prog_rejected=no
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   case $as_dir in #(((
4611     '') as_dir=./ ;;
4612     */) ;;
4613     *) as_dir=$as_dir/ ;;
4614   esac
4615     for ac_exec_ext in '' $ac_executable_extensions; do
4616   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4617     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618        ac_prog_rejected=yes
4619        continue
4620      fi
4621     ac_cv_prog_CC="cc"
4622     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626   done
4627 IFS=$as_save_IFS
4628
4629 if test $ac_prog_rejected = yes; then
4630   # We found a bogon in the path, so make sure we never use it.
4631   set dummy $ac_cv_prog_CC
4632   shift
4633   if test $# != 0; then
4634     # We chose a different compiler from the bogus one.
4635     # However, it has the same basename, so the bogon will be chosen
4636     # first if we set CC to just the basename; use the full file name.
4637     shift
4638     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4639   fi
4640 fi
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646 printf "%s\n" "$CC" >&6; }
4647 else
4648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 printf "%s\n" "no" >&6; }
4650 fi
4651
4652
4653 fi
4654 if test -z "$CC"; then
4655   if test -n "$ac_tool_prefix"; then
4656   for ac_prog in cl.exe
4657   do
4658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 printf %s "checking for $ac_word... " >&6; }
4662 if test ${ac_cv_prog_CC+y}
4663 then :
4664   printf %s "(cached) " >&6
4665 else $as_nop
4666   if test -n "$CC"; then
4667   ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   case $as_dir in #(((
4674     '') as_dir=./ ;;
4675     */) ;;
4676     *) as_dir=$as_dir/ ;;
4677   esac
4678     for ac_exec_ext in '' $ac_executable_extensions; do
4679   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4680     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4681     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685   done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 CC=$ac_cv_prog_CC
4691 if test -n "$CC"; then
4692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4693 printf "%s\n" "$CC" >&6; }
4694 else
4695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 printf "%s\n" "no" >&6; }
4697 fi
4698
4699
4700     test -n "$CC" && break
4701   done
4702 fi
4703 if test -z "$CC"; then
4704   ac_ct_CC=$CC
4705   for ac_prog in cl.exe
4706 do
4707   # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 printf %s "checking for $ac_word... " >&6; }
4711 if test ${ac_cv_prog_ac_ct_CC+y}
4712 then :
4713   printf %s "(cached) " >&6
4714 else $as_nop
4715   if test -n "$ac_ct_CC"; then
4716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   case $as_dir in #(((
4723     '') as_dir=./ ;;
4724     */) ;;
4725     *) as_dir=$as_dir/ ;;
4726   esac
4727     for ac_exec_ext in '' $ac_executable_extensions; do
4728   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4729     ac_cv_prog_ac_ct_CC="$ac_prog"
4730     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734   done
4735 IFS=$as_save_IFS
4736
4737 fi
4738 fi
4739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740 if test -n "$ac_ct_CC"; then
4741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742 printf "%s\n" "$ac_ct_CC" >&6; }
4743 else
4744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 printf "%s\n" "no" >&6; }
4746 fi
4747
4748
4749   test -n "$ac_ct_CC" && break
4750 done
4751
4752   if test "x$ac_ct_CC" = x; then
4753     CC=""
4754   else
4755     case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761     CC=$ac_ct_CC
4762   fi
4763 fi
4764
4765 fi
4766 if test -z "$CC"; then
4767   if test -n "$ac_tool_prefix"; then
4768   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}clang; ac_word=$2
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 printf %s "checking for $ac_word... " >&6; }
4772 if test ${ac_cv_prog_CC+y}
4773 then :
4774   printf %s "(cached) " >&6
4775 else $as_nop
4776   if test -n "$CC"; then
4777   ac_cv_prog_CC="$CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   case $as_dir in #(((
4784     '') as_dir=./ ;;
4785     */) ;;
4786     *) as_dir=$as_dir/ ;;
4787   esac
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4790     ac_cv_prog_CC="${ac_tool_prefix}clang"
4791     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795   done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 CC=$ac_cv_prog_CC
4801 if test -n "$CC"; then
4802   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 printf "%s\n" "$CC" >&6; }
4804 else
4805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 printf "%s\n" "no" >&6; }
4807 fi
4808
4809
4810 fi
4811 if test -z "$ac_cv_prog_CC"; then
4812   ac_ct_CC=$CC
4813   # Extract the first word of "clang", so it can be a program name with args.
4814 set dummy clang; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_ac_ct_CC+y}
4818 then :
4819   printf %s "(cached) " >&6
4820 else $as_nop
4821   if test -n "$ac_ct_CC"; then
4822   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   case $as_dir in #(((
4829     '') as_dir=./ ;;
4830     */) ;;
4831     *) as_dir=$as_dir/ ;;
4832   esac
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835     ac_cv_prog_ac_ct_CC="clang"
4836     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4846 if test -n "$ac_ct_CC"; then
4847   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4848 printf "%s\n" "$ac_ct_CC" >&6; }
4849 else
4850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4852 fi
4853
4854   if test "x$ac_ct_CC" = x; then
4855     CC=""
4856   else
4857     case $cross_compiling:$ac_tool_warned in
4858 yes:)
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863     CC=$ac_ct_CC
4864   fi
4865 else
4866   CC="$ac_cv_prog_CC"
4867 fi
4868
4869 fi
4870
4871
4872 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4874 as_fn_error $? "no acceptable C compiler found in \$PATH
4875 See \`config.log' for more details" "$LINENO" 5; }
4876
4877 # Provide some information about the compiler.
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4879 set X $ac_compile
4880 ac_compiler=$2
4881 for ac_option in --version -v -V -qversion -version; do
4882   { { ac_try="$ac_compiler $ac_option >&5"
4883 case "(($ac_try" in
4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885   *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 printf "%s\n" "$ac_try_echo"; } >&5
4889   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4890   ac_status=$?
4891   if test -s conftest.err; then
4892     sed '10a\
4893 ... rest of stderr output deleted ...
4894          10q' conftest.err >conftest.er1
4895     cat conftest.er1 >&5
4896   fi
4897   rm -f conftest.er1 conftest.err
4898   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899   test $ac_status = 0; }
4900 done
4901
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h.  */
4904
4905 int main (void)
4906 {
4907
4908  ;
4909  return 0;
4910 }
4911 _ACEOF
4912 ac_clean_files_save=$ac_clean_files
4913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4914 # Try to create an executable without -o first, disregard a.out.
4915 # It will help us diagnose broken compilers, and finding out an intuition
4916 # of exeext.
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4918 printf %s "checking whether the C compiler works... " >&6; }
4919 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4920
4921 # The possible output files:
4922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4923
4924 ac_rmfiles=
4925 for ac_file in $ac_files
4926 do
4927   case $ac_file in
4928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4929     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4930   esac
4931 done
4932 rm -f $ac_rmfiles
4933
4934 if { { ac_try="$ac_link_default"
4935 case "(($ac_try" in
4936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937   *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 printf "%s\n" "$ac_try_echo"; } >&5
4941   (eval "$ac_link_default") 2>&5
4942   ac_status=$?
4943   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944   test $ac_status = 0; }
4945 then :
4946   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4947 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4948 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4949 # so that the user can short-circuit this test for compilers unknown to
4950 # Autoconf.
4951 for ac_file in $ac_files ''
4952 do
4953   test -f "$ac_file" || continue
4954   case $ac_file in
4955     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4956         ;;
4957     [ab].out )
4958         # We found the default executable, but exeext='' is most
4959         # certainly right.
4960         break;;
4961     *.* )
4962         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4963         then :; else
4964            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4965         fi
4966         # We set ac_cv_exeext here because the later test for it is not
4967         # safe: cross compilers may not add the suffix if given an `-o'
4968         # argument, so we may need to know it at that point already.
4969         # Even if this section looks crufty: it has the advantage of
4970         # actually working.
4971         break;;
4972     * )
4973         break;;
4974   esac
4975 done
4976 test "$ac_cv_exeext" = no && ac_cv_exeext=
4977
4978 else $as_nop
4979   ac_file=''
4980 fi
4981 if test -z "$ac_file"
4982 then :
4983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 printf "%s\n" "no" >&6; }
4985 printf "%s\n" "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4990 as_fn_error 77 "C compiler cannot create executables
4991 See \`config.log' for more details" "$LINENO" 5; }
4992 else $as_nop
4993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994 printf "%s\n" "yes" >&6; }
4995 fi
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4997 printf %s "checking for C compiler default output file name... " >&6; }
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4999 printf "%s\n" "$ac_file" >&6; }
5000 ac_exeext=$ac_cv_exeext
5001
5002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5003 ac_clean_files=$ac_clean_files_save
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5005 printf %s "checking for suffix of executables... " >&6; }
5006 if { { ac_try="$ac_link"
5007 case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5012 printf "%s\n" "$ac_try_echo"; } >&5
5013   (eval "$ac_link") 2>&5
5014   ac_status=$?
5015   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016   test $ac_status = 0; }
5017 then :
5018   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5019 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5020 # work properly (i.e., refer to `conftest.exe'), while it won't with
5021 # `rm'.
5022 for ac_file in conftest.exe conftest conftest.*; do
5023   test -f "$ac_file" || continue
5024   case $ac_file in
5025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5026     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5027           break;;
5028     * ) break;;
5029   esac
5030 done
5031 else $as_nop
5032   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5034 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5035 See \`config.log' for more details" "$LINENO" 5; }
5036 fi
5037 rm -f conftest conftest$ac_cv_exeext
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5039 printf "%s\n" "$ac_cv_exeext" >&6; }
5040
5041 rm -f conftest.$ac_ext
5042 EXEEXT=$ac_cv_exeext
5043 ac_exeext=$EXEEXT
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h.  */
5046 #include <stdio.h>
5047 int main (void)
5048 {
5049 FILE *f = fopen ("conftest.out", "w");
5050  return ferror (f) || fclose (f) != 0;
5051
5052  ;
5053  return 0;
5054 }
5055 _ACEOF
5056 ac_clean_files="$ac_clean_files conftest.out"
5057 # Check that the compiler produces executables we can run.  If not, either
5058 # the compiler is broken, or we cross compile.
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5060 printf %s "checking whether we are cross compiling... " >&6; }
5061 if test "$cross_compiling" != yes; then
5062   { { ac_try="$ac_link"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5068 printf "%s\n" "$ac_try_echo"; } >&5
5069   (eval "$ac_link") 2>&5
5070   ac_status=$?
5071   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072   test $ac_status = 0; }
5073   if { ac_try='./conftest$ac_cv_exeext'
5074   { { case "(($ac_try" in
5075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076   *) ac_try_echo=$ac_try;;
5077 esac
5078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5079 printf "%s\n" "$ac_try_echo"; } >&5
5080   (eval "$ac_try") 2>&5
5081   ac_status=$?
5082   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083   test $ac_status = 0; }; }; then
5084     cross_compiling=no
5085   else
5086     if test "$cross_compiling" = maybe; then
5087         cross_compiling=yes
5088     else
5089         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error 77 "cannot run C compiled programs.
5092 If you meant to cross compile, use \`--host'.
5093 See \`config.log' for more details" "$LINENO" 5; }
5094     fi
5095   fi
5096 fi
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5098 printf "%s\n" "$cross_compiling" >&6; }
5099
5100 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5101 ac_clean_files=$ac_clean_files_save
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5103 printf %s "checking for suffix of object files... " >&6; }
5104 if test ${ac_cv_objext+y}
5105 then :
5106   printf %s "(cached) " >&6
5107 else $as_nop
5108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110
5111 int main (void)
5112 {
5113
5114  ;
5115  return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.o conftest.obj
5119 if { { ac_try="$ac_compile"
5120 case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 printf "%s\n" "$ac_try_echo"; } >&5
5126   (eval "$ac_compile") 2>&5
5127   ac_status=$?
5128   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129   test $ac_status = 0; }
5130 then :
5131   for ac_file in conftest.o conftest.obj conftest.*; do
5132   test -f "$ac_file" || continue;
5133   case $ac_file in
5134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5135     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5136        break;;
5137   esac
5138 done
5139 else $as_nop
5140   printf "%s\n" "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5145 as_fn_error $? "cannot compute suffix of object files: cannot compile
5146 See \`config.log' for more details" "$LINENO" 5; }
5147 fi
5148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5151 printf "%s\n" "$ac_cv_objext" >&6; }
5152 OBJEXT=$ac_cv_objext
5153 ac_objext=$OBJEXT
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5155 printf %s "checking whether the compiler supports GNU C... " >&6; }
5156 if test ${ac_cv_c_compiler_gnu+y}
5157 then :
5158   printf %s "(cached) " >&6
5159 else $as_nop
5160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162
5163 int main (void)
5164 {
5165 #ifndef __GNUC__
5166        choke me
5167 #endif
5168
5169  ;
5170  return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"
5174 then :
5175   ac_compiler_gnu=yes
5176 else $as_nop
5177   ac_compiler_gnu=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5181
5182 fi
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5184 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186
5187 if test $ac_compiler_gnu = yes; then
5188   GCC=yes
5189 else
5190   GCC=
5191 fi
5192 ac_test_CFLAGS=${CFLAGS+y}
5193 ac_save_CFLAGS=$CFLAGS
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5195 printf %s "checking whether $CC accepts -g... " >&6; }
5196 if test ${ac_cv_prog_cc_g+y}
5197 then :
5198   printf %s "(cached) " >&6
5199 else $as_nop
5200   ac_save_c_werror_flag=$ac_c_werror_flag
5201    ac_c_werror_flag=yes
5202    ac_cv_prog_cc_g=no
5203    CFLAGS="-g"
5204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h.  */
5206
5207 int main (void)
5208 {
5209
5210  ;
5211  return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"
5215 then :
5216   ac_cv_prog_cc_g=yes
5217 else $as_nop
5218   CFLAGS=""
5219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221
5222 int main (void)
5223 {
5224
5225  ;
5226  return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"
5230 then :
5231
5232 else $as_nop
5233   ac_c_werror_flag=$ac_save_c_werror_flag
5234          CFLAGS="-g"
5235          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h.  */
5237
5238 int main (void)
5239 {
5240
5241  ;
5242  return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"
5246 then :
5247   ac_cv_prog_cc_g=yes
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5254    ac_c_werror_flag=$ac_save_c_werror_flag
5255 fi
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5257 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5258 if test $ac_test_CFLAGS; then
5259   CFLAGS=$ac_save_CFLAGS
5260 elif test $ac_cv_prog_cc_g = yes; then
5261   if test "$GCC" = yes; then
5262     CFLAGS="-g -O2"
5263   else
5264     CFLAGS="-g"
5265   fi
5266 else
5267   if test "$GCC" = yes; then
5268     CFLAGS="-O2"
5269   else
5270     CFLAGS=
5271   fi
5272 fi
5273 ac_prog_cc_stdc=no
5274 if test x$ac_prog_cc_stdc = xno
5275 then :
5276   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5277 printf %s "checking for $CC option to enable C11 features... " >&6; }
5278 if test ${ac_cv_prog_cc_c11+y}
5279 then :
5280   printf %s "(cached) " >&6
5281 else $as_nop
5282   ac_cv_prog_cc_c11=no
5283 ac_save_CC=$CC
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 $ac_c_conftest_c11_program
5287 _ACEOF
5288 for ac_arg in '' -std=gnu11
5289 do
5290   CC="$ac_save_CC $ac_arg"
5291   if ac_fn_c_try_compile "$LINENO"
5292 then :
5293   ac_cv_prog_cc_c11=$ac_arg
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam
5296   test "x$ac_cv_prog_cc_c11" != "xno" && break
5297 done
5298 rm -f conftest.$ac_ext
5299 CC=$ac_save_CC
5300 fi
5301
5302 if test "x$ac_cv_prog_cc_c11" = xno
5303 then :
5304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5305 printf "%s\n" "unsupported" >&6; }
5306 else $as_nop
5307   if test "x$ac_cv_prog_cc_c11" = x
5308 then :
5309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5310 printf "%s\n" "none needed" >&6; }
5311 else $as_nop
5312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5313 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5314      CC="$CC $ac_cv_prog_cc_c11"
5315 fi
5316   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5317   ac_prog_cc_stdc=c11
5318 fi
5319 fi
5320 if test x$ac_prog_cc_stdc = xno
5321 then :
5322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5323 printf %s "checking for $CC option to enable C99 features... " >&6; }
5324 if test ${ac_cv_prog_cc_c99+y}
5325 then :
5326   printf %s "(cached) " >&6
5327 else $as_nop
5328   ac_cv_prog_cc_c99=no
5329 ac_save_CC=$CC
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h.  */
5332 $ac_c_conftest_c99_program
5333 _ACEOF
5334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5335 do
5336   CC="$ac_save_CC $ac_arg"
5337   if ac_fn_c_try_compile "$LINENO"
5338 then :
5339   ac_cv_prog_cc_c99=$ac_arg
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.beam
5342   test "x$ac_cv_prog_cc_c99" != "xno" && break
5343 done
5344 rm -f conftest.$ac_ext
5345 CC=$ac_save_CC
5346 fi
5347
5348 if test "x$ac_cv_prog_cc_c99" = xno
5349 then :
5350   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5351 printf "%s\n" "unsupported" >&6; }
5352 else $as_nop
5353   if test "x$ac_cv_prog_cc_c99" = x
5354 then :
5355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356 printf "%s\n" "none needed" >&6; }
5357 else $as_nop
5358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5359 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5360      CC="$CC $ac_cv_prog_cc_c99"
5361 fi
5362   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5363   ac_prog_cc_stdc=c99
5364 fi
5365 fi
5366 if test x$ac_prog_cc_stdc = xno
5367 then :
5368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5369 printf %s "checking for $CC option to enable C89 features... " >&6; }
5370 if test ${ac_cv_prog_cc_c89+y}
5371 then :
5372   printf %s "(cached) " >&6
5373 else $as_nop
5374   ac_cv_prog_cc_c89=no
5375 ac_save_CC=$CC
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 $ac_c_conftest_c89_program
5379 _ACEOF
5380 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5381 do
5382   CC="$ac_save_CC $ac_arg"
5383   if ac_fn_c_try_compile "$LINENO"
5384 then :
5385   ac_cv_prog_cc_c89=$ac_arg
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.beam
5388   test "x$ac_cv_prog_cc_c89" != "xno" && break
5389 done
5390 rm -f conftest.$ac_ext
5391 CC=$ac_save_CC
5392 fi
5393
5394 if test "x$ac_cv_prog_cc_c89" = xno
5395 then :
5396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 printf "%s\n" "unsupported" >&6; }
5398 else $as_nop
5399   if test "x$ac_cv_prog_cc_c89" = x
5400 then :
5401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 printf "%s\n" "none needed" >&6; }
5403 else $as_nop
5404   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5405 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5406      CC="$CC $ac_cv_prog_cc_c89"
5407 fi
5408   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5409   ac_prog_cc_stdc=c89
5410 fi
5411 fi
5412
5413 ac_ext=c
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420   ac_ext=c
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5426 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5427 if test ${am_cv_prog_cc_c_o+y}
5428 then :
5429   printf %s "(cached) " >&6
5430 else $as_nop
5431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433
5434 int main (void)
5435 {
5436
5437  ;
5438  return 0;
5439 }
5440 _ACEOF
5441   # Make sure it works both with $CC and with simple cc.
5442   # Following AC_PROG_CC_C_O, we do the test twice because some
5443   # compilers refuse to overwrite an existing .o file with -o,
5444   # though they will create one.
5445   am_cv_prog_cc_c_o=yes
5446   for am_i in 1 2; do
5447     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5448    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5449    ac_status=$?
5450    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451    (exit $ac_status); } \
5452          && test -f conftest2.$ac_objext; then
5453       : OK
5454     else
5455       am_cv_prog_cc_c_o=no
5456       break
5457     fi
5458   done
5459   rm -f core conftest*
5460   unset am_i
5461 fi
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5463 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5464 if test "$am_cv_prog_cc_c_o" != yes; then
5465    # Losing compiler, so override with the script.
5466    # FIXME: It is wrong to rewrite CC.
5467    # But if we don't then we get into trouble of one sort or another.
5468    # A longer-term fix would be to have automake use am__CC in this case,
5469    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5470    CC="$am_aux_dir/compile $CC"
5471 fi
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478
5479
5480 ac_ext=c
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5486 printf %s "checking how to run the C preprocessor... " >&6; }
5487 # On Suns, sometimes $CPP names a directory.
5488 if test -n "$CPP" && test -d "$CPP"; then
5489   CPP=
5490 fi
5491 if test -z "$CPP"; then
5492   if test ${ac_cv_prog_CPP+y}
5493 then :
5494   printf %s "(cached) " >&6
5495 else $as_nop
5496       # Double quotes because $CC needs to be expanded
5497     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5498     do
5499       ac_preproc_ok=false
5500 for ac_c_preproc_warn_flag in '' yes
5501 do
5502   # Use a header file that comes with gcc, so configuring glibc
5503   # with a fresh cross-compiler works.
5504   # On the NeXT, cc -E runs the code through the compiler's parser,
5505   # not just through cpp. "Syntax error" is here to catch this case.
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #include <limits.h>
5509                      Syntax error
5510 _ACEOF
5511 if ac_fn_c_try_cpp "$LINENO"
5512 then :
5513
5514 else $as_nop
5515   # Broken: fails on valid input.
5516 continue
5517 fi
5518 rm -f conftest.err conftest.i conftest.$ac_ext
5519
5520   # OK, works on sane cases.  Now check whether nonexistent headers
5521   # can be detected and how.
5522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h.  */
5524 #include <ac_nonexistent.h>
5525 _ACEOF
5526 if ac_fn_c_try_cpp "$LINENO"
5527 then :
5528   # Broken: success on invalid input.
5529 continue
5530 else $as_nop
5531   # Passes both tests.
5532 ac_preproc_ok=:
5533 break
5534 fi
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5536
5537 done
5538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539 rm -f conftest.i conftest.err conftest.$ac_ext
5540 if $ac_preproc_ok
5541 then :
5542   break
5543 fi
5544
5545     done
5546     ac_cv_prog_CPP=$CPP
5547
5548 fi
5549   CPP=$ac_cv_prog_CPP
5550 else
5551   ac_cv_prog_CPP=$CPP
5552 fi
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5554 printf "%s\n" "$CPP" >&6; }
5555 ac_preproc_ok=false
5556 for ac_c_preproc_warn_flag in '' yes
5557 do
5558   # Use a header file that comes with gcc, so configuring glibc
5559   # with a fresh cross-compiler works.
5560   # On the NeXT, cc -E runs the code through the compiler's parser,
5561   # not just through cpp. "Syntax error" is here to catch this case.
5562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564 #include <limits.h>
5565                      Syntax error
5566 _ACEOF
5567 if ac_fn_c_try_cpp "$LINENO"
5568 then :
5569
5570 else $as_nop
5571   # Broken: fails on valid input.
5572 continue
5573 fi
5574 rm -f conftest.err conftest.i conftest.$ac_ext
5575
5576   # OK, works on sane cases.  Now check whether nonexistent headers
5577   # can be detected and how.
5578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580 #include <ac_nonexistent.h>
5581 _ACEOF
5582 if ac_fn_c_try_cpp "$LINENO"
5583 then :
5584   # Broken: success on invalid input.
5585 continue
5586 else $as_nop
5587   # Passes both tests.
5588 ac_preproc_ok=:
5589 break
5590 fi
5591 rm -f conftest.err conftest.i conftest.$ac_ext
5592
5593 done
5594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5595 rm -f conftest.i conftest.err conftest.$ac_ext
5596 if $ac_preproc_ok
5597 then :
5598
5599 else $as_nop
5600   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5602 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5603 See \`config.log' for more details" "$LINENO" 5; }
5604 fi
5605
5606 ac_ext=c
5607 ac_cpp='$CPP $CPPFLAGS'
5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611
5612
5613   IFS=$xc_prog_cc_prev_IFS
5614   LIBS=$xc_prog_cc_prev_LIBS
5615   CFLAGS=$xc_prog_cc_prev_CFLAGS
5616   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5617   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5618
5619
5620
5621
5622
5623
5624 ac_header= ac_cache=
5625 for ac_item in $ac_header_c_list
5626 do
5627   if test $ac_cache; then
5628     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5629     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5630       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5631     fi
5632     ac_header= ac_cache=
5633   elif test $ac_header; then
5634     ac_cache=$ac_item
5635   else
5636     ac_header=$ac_item
5637   fi
5638 done
5639
5640
5641
5642
5643
5644
5645
5646
5647 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5648 then :
5649
5650 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5651
5652 fi
5653
5654          for ac_header in stdatomic.h
5655 do :
5656   ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_stdatomic_h" = xyes
5658 then :
5659   printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5660
5661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5662 printf %s "checking if _Atomic is available... " >&6; }
5663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h.  */
5665
5666
5667         $curl_includes_unistd
5668
5669 int main (void)
5670 {
5671
5672         _Atomic int i = 0;
5673         i = 4;  // Force an atomic-write operation.
5674
5675  ;
5676  return 0;
5677 }
5678
5679 _ACEOF
5680 if ac_fn_c_try_link "$LINENO"
5681 then :
5682
5683       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 printf "%s\n" "yes" >&6; }
5685
5686 printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5687
5688       tst_atomic="yes"
5689
5690 else $as_nop
5691
5692       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 printf "%s\n" "no" >&6; }
5694       tst_atomic="no"
5695
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5698     conftest$ac_exeext conftest.$ac_ext
5699
5700 fi
5701
5702 done
5703
5704
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5706 printf %s "checking for a sed that does not truncate output... " >&6; }
5707 if test ${ac_cv_path_SED+y}
5708 then :
5709   printf %s "(cached) " >&6
5710 else $as_nop
5711             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5712      for ac_i in 1 2 3 4 5 6 7; do
5713        ac_script="$ac_script$as_nl$ac_script"
5714      done
5715      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5716      { ac_script=; unset ac_script;}
5717      if test -z "$SED"; then
5718   ac_path_SED_found=false
5719   # Loop through the user's path and test for each of PROGNAME-LIST
5720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   case $as_dir in #(((
5725     '') as_dir=./ ;;
5726     */) ;;
5727     *) as_dir=$as_dir/ ;;
5728   esac
5729     for ac_prog in sed gsed
5730    do
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5733       as_fn_executable_p "$ac_path_SED" || continue
5734 # Check for GNU ac_path_SED and select it if it is found.
5735   # Check for GNU $ac_path_SED
5736 case `"$ac_path_SED" --version 2>&1` in
5737 *GNU*)
5738   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5739 *)
5740   ac_count=0
5741   printf %s 0123456789 >"conftest.in"
5742   while :
5743   do
5744     cat "conftest.in" "conftest.in" >"conftest.tmp"
5745     mv "conftest.tmp" "conftest.in"
5746     cp "conftest.in" "conftest.nl"
5747     printf "%s\n" '' >> "conftest.nl"
5748     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750     as_fn_arith $ac_count + 1 && ac_count=$as_val
5751     if test $ac_count -gt ${ac_path_SED_max-0}; then
5752       # Best one so far, save it but keep looking for a better one
5753       ac_cv_path_SED="$ac_path_SED"
5754       ac_path_SED_max=$ac_count
5755     fi
5756     # 10*(2^10) chars as input seems more than enough
5757     test $ac_count -gt 10 && break
5758   done
5759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760 esac
5761
5762       $ac_path_SED_found && break 3
5763     done
5764   done
5765   done
5766 IFS=$as_save_IFS
5767   if test -z "$ac_cv_path_SED"; then
5768     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5769   fi
5770 else
5771   ac_cv_path_SED=$SED
5772 fi
5773
5774 fi
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5776 printf "%s\n" "$ac_cv_path_SED" >&6; }
5777  SED="$ac_cv_path_SED"
5778   rm -f conftest.sed
5779
5780
5781
5782
5783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5784 printf %s "checking for code coverage support... " >&6; }
5785   coverage="no"
5786   curl_coverage_msg="disabled"
5787
5788     # Check whether --enable-code-coverage was given.
5789 if test ${enable_code_coverage+y}
5790 then :
5791   enableval=$enable_code_coverage; coverage="$enableval"
5792 fi
5793
5794
5795     if  test "$GCC" != "yes"
5796 then :
5797   coverage="no"
5798 fi
5799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5800 printf "%s\n" "$coverage" >&6; }
5801
5802   if test "x$coverage" = "xyes"; then
5803     curl_coverage_msg="enabled"
5804
5805     if test -n "$ac_tool_prefix"; then
5806   # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 printf %s "checking for $ac_word... " >&6; }
5810 if test ${ac_cv_prog_GCOV+y}
5811 then :
5812   printf %s "(cached) " >&6
5813 else $as_nop
5814   if test -n "$GCOV"; then
5815   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   case $as_dir in #(((
5822     '') as_dir=./ ;;
5823     */) ;;
5824     *) as_dir=$as_dir/ ;;
5825   esac
5826     for ac_exec_ext in '' $ac_executable_extensions; do
5827   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5828     ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5829     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833   done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 GCOV=$ac_cv_prog_GCOV
5839 if test -n "$GCOV"; then
5840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5841 printf "%s\n" "$GCOV" >&6; }
5842 else
5843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 printf "%s\n" "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_GCOV"; then
5850   ac_ct_GCOV=$GCOV
5851   # Extract the first word of "gcov", so it can be a program name with args.
5852 set dummy gcov; ac_word=$2
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 printf %s "checking for $ac_word... " >&6; }
5855 if test ${ac_cv_prog_ac_ct_GCOV+y}
5856 then :
5857   printf %s "(cached) " >&6
5858 else $as_nop
5859   if test -n "$ac_ct_GCOV"; then
5860   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   case $as_dir in #(((
5867     '') as_dir=./ ;;
5868     */) ;;
5869     *) as_dir=$as_dir/ ;;
5870   esac
5871     for ac_exec_ext in '' $ac_executable_extensions; do
5872   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5873     ac_cv_prog_ac_ct_GCOV="gcov"
5874     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5875     break 2
5876   fi
5877 done
5878   done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5884 if test -n "$ac_ct_GCOV"; then
5885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5886 printf "%s\n" "$ac_ct_GCOV" >&6; }
5887 else
5888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 printf "%s\n" "no" >&6; }
5890 fi
5891
5892   if test "x$ac_ct_GCOV" = x; then
5893     GCOV="gcov"
5894   else
5895     case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901     GCOV=$ac_ct_GCOV
5902   fi
5903 else
5904   GCOV="$ac_cv_prog_GCOV"
5905 fi
5906
5907     if test -z "$GCOV"; then
5908       as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5909     fi
5910     # Extract the first word of "lcov", so it can be a program name with args.
5911 set dummy lcov; ac_word=$2
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 printf %s "checking for $ac_word... " >&6; }
5914 if test ${ac_cv_prog_LCOV+y}
5915 then :
5916   printf %s "(cached) " >&6
5917 else $as_nop
5918   if test -n "$LCOV"; then
5919   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   case $as_dir in #(((
5926     '') as_dir=./ ;;
5927     */) ;;
5928     *) as_dir=$as_dir/ ;;
5929   esac
5930     for ac_exec_ext in '' $ac_executable_extensions; do
5931   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5932     ac_cv_prog_LCOV="lcov"
5933     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937   done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 LCOV=$ac_cv_prog_LCOV
5943 if test -n "$LCOV"; then
5944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5945 printf "%s\n" "$LCOV" >&6; }
5946 else
5947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 printf "%s\n" "no" >&6; }
5949 fi
5950
5951
5952     if test -z "$LCOV"; then
5953       as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5954     fi
5955
5956     CPPFLAGS="$CPPFLAGS -DNDEBUG"
5957     CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5958     LIBS="$LIBS -lgcov"
5959   fi
5960
5961
5962 am__api_version='1.16'
5963
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5965 printf %s "checking whether build environment is sane... " >&6; }
5966 # Reject unsafe characters in $srcdir or the absolute working directory
5967 # name.  Accept space and tab only in the latter.
5968 am_lf='
5969 '
5970 case `pwd` in
5971   *[\\\"\#\$\&\'\`$am_lf]*)
5972     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5973 esac
5974 case $srcdir in
5975   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5976     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5977 esac
5978
5979 # Do 'set' in a subshell so we don't clobber the current shell's
5980 # arguments.  Must try -L first in case configure is actually a
5981 # symlink; some systems play weird games with the mod time of symlinks
5982 # (eg FreeBSD returns the mod time of the symlink's containing
5983 # directory).
5984 if (
5985    am_has_slept=no
5986    for am_try in 1 2; do
5987      echo "timestamp, slept: $am_has_slept" > conftest.file
5988      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5989      if test "$*" = "X"; then
5990         # -L didn't work.
5991         set X `ls -t "$srcdir/configure" conftest.file`
5992      fi
5993      if test "$*" != "X $srcdir/configure conftest.file" \
5994         && test "$*" != "X conftest.file $srcdir/configure"; then
5995
5996         # If neither matched, then we have a broken ls.  This can happen
5997         # if, for instance, CONFIG_SHELL is bash and it inherits a
5998         # broken ls alias from the environment.  This has actually
5999         # happened.  Such a system could not be considered "sane".
6000         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6001   alias in your environment" "$LINENO" 5
6002      fi
6003      if test "$2" = conftest.file || test $am_try -eq 2; then
6004        break
6005      fi
6006      # Just in case.
6007      sleep 1
6008      am_has_slept=yes
6009    done
6010    test "$2" = conftest.file
6011    )
6012 then
6013    # Ok.
6014    :
6015 else
6016    as_fn_error $? "newly created file is older than distributed files!
6017 Check your system clock" "$LINENO" 5
6018 fi
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020 printf "%s\n" "yes" >&6; }
6021 # If we didn't sleep, we still need to ensure time stamps of config.status and
6022 # generated files are strictly newer.
6023 am_sleep_pid=
6024 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6025   ( sleep 1 ) &
6026   am_sleep_pid=$!
6027 fi
6028
6029 rm -f conftest.file
6030
6031 test "$program_prefix" != NONE &&
6032   program_transform_name="s&^&$program_prefix&;$program_transform_name"
6033 # Use a double $ so make ignores it.
6034 test "$program_suffix" != NONE &&
6035   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6036 # Double any \ or $.
6037 # By default was `s,x,x', remove it if useless.
6038 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6039 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6040
6041
6042   if test x"${MISSING+set}" != xset; then
6043   MISSING="\${SHELL} '$am_aux_dir/missing'"
6044 fi
6045 # Use eval to expand $SHELL
6046 if eval "$MISSING --is-lightweight"; then
6047   am_missing_run="$MISSING "
6048 else
6049   am_missing_run=
6050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6051 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6052 fi
6053
6054 if test x"${install_sh+set}" != xset; then
6055   case $am_aux_dir in
6056   *\ * | *\     *)
6057     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6058   *)
6059     install_sh="\${SHELL} $am_aux_dir/install-sh"
6060   esac
6061 fi
6062
6063 # Installed binaries are usually stripped using 'strip' when the user
6064 # run "make install-strip".  However 'strip' might not be the right
6065 # tool to use in cross-compilation environments, therefore Automake
6066 # will honor the 'STRIP' environment variable to overrule this program.
6067 if test "$cross_compiling" != no; then
6068   if test -n "$ac_tool_prefix"; then
6069   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}strip; ac_word=$2
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 printf %s "checking for $ac_word... " >&6; }
6073 if test ${ac_cv_prog_STRIP+y}
6074 then :
6075   printf %s "(cached) " >&6
6076 else $as_nop
6077   if test -n "$STRIP"; then
6078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   case $as_dir in #(((
6085     '') as_dir=./ ;;
6086     */) ;;
6087     *) as_dir=$as_dir/ ;;
6088   esac
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 printf "%s\n" "$STRIP" >&6; }
6105 else
6106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 printf "%s\n" "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_STRIP"; then
6113   ac_ct_STRIP=$STRIP
6114   # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 printf %s "checking for $ac_word... " >&6; }
6118 if test ${ac_cv_prog_ac_ct_STRIP+y}
6119 then :
6120   printf %s "(cached) " >&6
6121 else $as_nop
6122   if test -n "$ac_ct_STRIP"; then
6123   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   case $as_dir in #(((
6130     '') as_dir=./ ;;
6131     */) ;;
6132     *) as_dir=$as_dir/ ;;
6133   esac
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136     ac_cv_prog_ac_ct_STRIP="strip"
6137     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141   done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6147 if test -n "$ac_ct_STRIP"; then
6148   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6149 printf "%s\n" "$ac_ct_STRIP" >&6; }
6150 else
6151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 printf "%s\n" "no" >&6; }
6153 fi
6154
6155   if test "x$ac_ct_STRIP" = x; then
6156     STRIP=":"
6157   else
6158     case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164     STRIP=$ac_ct_STRIP
6165   fi
6166 else
6167   STRIP="$ac_cv_prog_STRIP"
6168 fi
6169
6170 fi
6171 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6172
6173
6174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6175 printf %s "checking for a race-free mkdir -p... " >&6; }
6176 if test -z "$MKDIR_P"; then
6177   if test ${ac_cv_path_mkdir+y}
6178 then :
6179   printf %s "(cached) " >&6
6180 else $as_nop
6181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6183 do
6184   IFS=$as_save_IFS
6185   case $as_dir in #(((
6186     '') as_dir=./ ;;
6187     */) ;;
6188     *) as_dir=$as_dir/ ;;
6189   esac
6190     for ac_prog in mkdir gmkdir; do
6191          for ac_exec_ext in '' $ac_executable_extensions; do
6192            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6193            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6194              'mkdir ('*'coreutils) '* | \
6195              'BusyBox '* | \
6196              'mkdir (fileutils) '4.1*)
6197                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6198                break 3;;
6199            esac
6200          done
6201        done
6202   done
6203 IFS=$as_save_IFS
6204
6205 fi
6206
6207   test -d ./--version && rmdir ./--version
6208   if test ${ac_cv_path_mkdir+y}; then
6209     MKDIR_P="$ac_cv_path_mkdir -p"
6210   else
6211     # As a last resort, use the slow shell script.  Don't cache a
6212     # value for MKDIR_P within a source directory, because that will
6213     # break other packages using the cache if that directory is
6214     # removed, or if the value is a relative name.
6215     MKDIR_P="$ac_install_sh -d"
6216   fi
6217 fi
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6219 printf "%s\n" "$MKDIR_P" >&6; }
6220
6221 for ac_prog in gawk mawk nawk awk
6222 do
6223   # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 printf %s "checking for $ac_word... " >&6; }
6227 if test ${ac_cv_prog_AWK+y}
6228 then :
6229   printf %s "(cached) " >&6
6230 else $as_nop
6231   if test -n "$AWK"; then
6232   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   case $as_dir in #(((
6239     '') as_dir=./ ;;
6240     */) ;;
6241     *) as_dir=$as_dir/ ;;
6242   esac
6243     for ac_exec_ext in '' $ac_executable_extensions; do
6244   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6245     ac_cv_prog_AWK="$ac_prog"
6246     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250   done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 AWK=$ac_cv_prog_AWK
6256 if test -n "$AWK"; then
6257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6258 printf "%s\n" "$AWK" >&6; }
6259 else
6260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 printf "%s\n" "no" >&6; }
6262 fi
6263
6264
6265   test -n "$AWK" && break
6266 done
6267
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6269 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6270 set x ${MAKE-make}
6271 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6272 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6273 then :
6274   printf %s "(cached) " >&6
6275 else $as_nop
6276   cat >conftest.make <<\_ACEOF
6277 SHELL = /bin/sh
6278 all:
6279         @echo '@@@%%%=$(MAKE)=@@@%%%'
6280 _ACEOF
6281 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6282 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6283   *@@@%%%=?*=@@@%%%*)
6284     eval ac_cv_prog_make_${ac_make}_set=yes;;
6285   *)
6286     eval ac_cv_prog_make_${ac_make}_set=no;;
6287 esac
6288 rm -f conftest.make
6289 fi
6290 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6291   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6292 printf "%s\n" "yes" >&6; }
6293   SET_MAKE=
6294 else
6295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 printf "%s\n" "no" >&6; }
6297   SET_MAKE="MAKE=${MAKE-make}"
6298 fi
6299
6300 rm -rf .tst 2>/dev/null
6301 mkdir .tst 2>/dev/null
6302 if test -d .tst; then
6303   am__leading_dot=.
6304 else
6305   am__leading_dot=_
6306 fi
6307 rmdir .tst 2>/dev/null
6308
6309 DEPDIR="${am__leading_dot}deps"
6310
6311 ac_config_commands="$ac_config_commands depfiles"
6312
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6314 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6315 cat > confinc.mk << 'END'
6316 am__doit:
6317         @echo this is the am__doit target >confinc.out
6318 .PHONY: am__doit
6319 END
6320 am__include="#"
6321 am__quote=
6322 # BSD make does it like this.
6323 echo '.include "confinc.mk" # ignored' > confmf.BSD
6324 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6325 echo 'include confinc.mk # ignored' > confmf.GNU
6326 _am_result=no
6327 for s in GNU BSD; do
6328   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6329    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6330    ac_status=$?
6331    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332    (exit $ac_status); }
6333   case $?:`cat confinc.out 2>/dev/null` in #(
6334   '0:this is the am__doit target') :
6335     case $s in #(
6336   BSD) :
6337     am__include='.include' am__quote='"' ;; #(
6338   *) :
6339     am__include='include' am__quote='' ;;
6340 esac ;; #(
6341   *) :
6342      ;;
6343 esac
6344   if test "$am__include" != "#"; then
6345     _am_result="yes ($s style)"
6346     break
6347   fi
6348 done
6349 rm -f confinc.* confmf.*
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6351 printf "%s\n" "${_am_result}" >&6; }
6352
6353 # Check whether --enable-dependency-tracking was given.
6354 if test ${enable_dependency_tracking+y}
6355 then :
6356   enableval=$enable_dependency_tracking;
6357 fi
6358
6359 if test "x$enable_dependency_tracking" != xno; then
6360   am_depcomp="$ac_aux_dir/depcomp"
6361   AMDEPBACKSLASH='\'
6362   am__nodep='_no'
6363 fi
6364  if test "x$enable_dependency_tracking" != xno; then
6365   AMDEP_TRUE=
6366   AMDEP_FALSE='#'
6367 else
6368   AMDEP_TRUE='#'
6369   AMDEP_FALSE=
6370 fi
6371
6372
6373 ## --------------------------------------- ##
6374 ##  Start of automake initialization code  ##
6375 ## --------------------------------------- ##
6376
6377 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6378   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6379   # is not polluted with repeated "-I."
6380   am__isrc=' -I$(srcdir)'
6381   # test to see if srcdir already configured
6382   if test -f $srcdir/config.status; then
6383     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6384   fi
6385 fi
6386
6387 # test whether we have cygpath
6388 if test -z "$CYGPATH_W"; then
6389   if (cygpath --version) >/dev/null 2>/dev/null; then
6390     CYGPATH_W='cygpath -w'
6391   else
6392     CYGPATH_W=echo
6393   fi
6394 fi
6395
6396
6397 # Define the identity of the package.
6398  PACKAGE='curl'
6399  VERSION='-'
6400
6401
6402 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6403
6404
6405 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6406
6407 # Some tools Automake needs.
6408
6409 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6410
6411
6412 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6413
6414
6415 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6416
6417
6418 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6419
6420
6421 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6422
6423 # For better backward compatibility.  To be removed once Automake 1.9.x
6424 # dies out for good.  For more background, see:
6425 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6426 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6427 mkdir_p='$(MKDIR_P)'
6428
6429 # We need awk for the "check" target (and possibly the TAP driver).  The
6430 # system "awk" is bad on some platforms.
6431 # Always define AMTAR for backward compatibility.  Yes, it's still used
6432 # in the wild :-(  We should find a proper way to deprecate it ...
6433 AMTAR='$${TAR-tar}'
6434
6435
6436 # We'll loop over all known methods to create a tar archive until one works.
6437 _am_tools='gnutar  pax cpio none'
6438
6439 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6440
6441
6442
6443
6444
6445 depcc="$CC"   am_compiler_list=
6446
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6448 printf %s "checking dependency style of $depcc... " >&6; }
6449 if test ${am_cv_CC_dependencies_compiler_type+y}
6450 then :
6451   printf %s "(cached) " >&6
6452 else $as_nop
6453   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6454   # We make a subdir and do the tests there.  Otherwise we can end up
6455   # making bogus files that we don't know about and never remove.  For
6456   # instance it was reported that on HP-UX the gcc test will end up
6457   # making a dummy file named 'D' -- because '-MD' means "put the output
6458   # in D".
6459   rm -rf conftest.dir
6460   mkdir conftest.dir
6461   # Copy depcomp to subdir because otherwise we won't find it if we're
6462   # using a relative directory.
6463   cp "$am_depcomp" conftest.dir
6464   cd conftest.dir
6465   # We will build objects and dependencies in a subdirectory because
6466   # it helps to detect inapplicable dependency modes.  For instance
6467   # both Tru64's cc and ICC support -MD to output dependencies as a
6468   # side effect of compilation, but ICC will put the dependencies in
6469   # the current directory while Tru64 will put them in the object
6470   # directory.
6471   mkdir sub
6472
6473   am_cv_CC_dependencies_compiler_type=none
6474   if test "$am_compiler_list" = ""; then
6475      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6476   fi
6477   am__universal=false
6478   case " $depcc " in #(
6479      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6480      esac
6481
6482   for depmode in $am_compiler_list; do
6483     # Setup a source with many dependencies, because some compilers
6484     # like to wrap large dependency lists on column 80 (with \), and
6485     # we should not choose a depcomp mode which is confused by this.
6486     #
6487     # We need to recreate these files for each test, as the compiler may
6488     # overwrite some of them when testing with obscure command lines.
6489     # This happens at least with the AIX C compiler.
6490     : > sub/conftest.c
6491     for i in 1 2 3 4 5 6; do
6492       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6493       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6494       # Solaris 10 /bin/sh.
6495       echo '/* dummy */' > sub/conftst$i.h
6496     done
6497     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6498
6499     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6500     # mode.  It turns out that the SunPro C++ compiler does not properly
6501     # handle '-M -o', and we need to detect this.  Also, some Intel
6502     # versions had trouble with output in subdirs.
6503     am__obj=sub/conftest.${OBJEXT-o}
6504     am__minus_obj="-o $am__obj"
6505     case $depmode in
6506     gcc)
6507       # This depmode causes a compiler race in universal mode.
6508       test "$am__universal" = false || continue
6509       ;;
6510     nosideeffect)
6511       # After this tag, mechanisms are not by side-effect, so they'll
6512       # only be used when explicitly requested.
6513       if test "x$enable_dependency_tracking" = xyes; then
6514         continue
6515       else
6516         break
6517       fi
6518       ;;
6519     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6520       # This compiler won't grok '-c -o', but also, the minuso test has
6521       # not run yet.  These depmodes are late enough in the game, and
6522       # so weak that their functioning should not be impacted.
6523       am__obj=conftest.${OBJEXT-o}
6524       am__minus_obj=
6525       ;;
6526     none) break ;;
6527     esac
6528     if depmode=$depmode \
6529        source=sub/conftest.c object=$am__obj \
6530        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6531        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6532          >/dev/null 2>conftest.err &&
6533        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6534        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6535        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6536        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6537       # icc doesn't choke on unknown options, it will just issue warnings
6538       # or remarks (even with -Werror).  So we grep stderr for any message
6539       # that says an option was ignored or not supported.
6540       # When given -MP, icc 7.0 and 7.1 complain thusly:
6541       #   icc: Command line warning: ignoring option '-M'; no argument required
6542       # The diagnosis changed in icc 8.0:
6543       #   icc: Command line remark: option '-MP' not supported
6544       if (grep 'ignoring option' conftest.err ||
6545           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6546         am_cv_CC_dependencies_compiler_type=$depmode
6547         break
6548       fi
6549     fi
6550   done
6551
6552   cd ..
6553   rm -rf conftest.dir
6554 else
6555   am_cv_CC_dependencies_compiler_type=none
6556 fi
6557
6558 fi
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6560 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6562
6563  if
6564   test "x$enable_dependency_tracking" != xno \
6565   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6566   am__fastdepCC_TRUE=
6567   am__fastdepCC_FALSE='#'
6568 else
6569   am__fastdepCC_TRUE='#'
6570   am__fastdepCC_FALSE=
6571 fi
6572
6573
6574 # Variables for tags utilities; see am/tags.am
6575 if test -z "$CTAGS"; then
6576   CTAGS=ctags
6577 fi
6578
6579 if test -z "$ETAGS"; then
6580   ETAGS=etags
6581 fi
6582
6583 if test -z "$CSCOPE"; then
6584   CSCOPE=cscope
6585 fi
6586
6587
6588
6589 # POSIX will say in a future version that running "rm -f" with no argument
6590 # is OK; and we want to be able to make that assumption in our Makefile
6591 # recipes.  So use an aggressive probe to check that the usage we want is
6592 # actually supported "in the wild" to an acceptable degree.
6593 # See automake bug#10828.
6594 # To make any issue more visible, cause the running configure to be aborted
6595 # by default if the 'rm' program in use doesn't match our expectations; the
6596 # user can still override this though.
6597 if rm -f && rm -fr && rm -rf; then : OK; else
6598   cat >&2 <<'END'
6599 Oops!
6600
6601 Your 'rm' program seems unable to run without file operands specified
6602 on the command line, even when the '-f' option is present.  This is contrary
6603 to the behaviour of most rm programs out there, and not conforming with
6604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6605
6606 Please tell bug-automake@gnu.org about your system, including the value
6607 of your $PATH and any error possibly output before this message.  This
6608 can help us improve future automake versions.
6609
6610 END
6611   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6612     echo 'Configuration will proceed anyway, since you have set the' >&2
6613     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6614     echo >&2
6615   else
6616     cat >&2 <<'END'
6617 Aborting the configuration process, to ensure you take notice of the issue.
6618
6619 You can download and install GNU coreutils to get an 'rm' implementation
6620 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6621
6622 If you want to complete the configuration process using your problematic
6623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6624 to "yes", and re-run configure.
6625
6626 END
6627     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6628   fi
6629 fi
6630
6631 ## ------------------------------------- ##
6632 ##  End of automake initialization code  ##
6633 ## ------------------------------------- ##
6634
6635
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6637 printf %s "checking curl version... " >&6; }
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6639 printf "%s\n" "$CURLVERSION" >&6; }
6640
6641
6642
6643 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6644
6645
6646 PKGADD_PKG="HAXXcurl"
6647 PKGADD_NAME="curl - a client that groks URLs"
6648 PKGADD_VENDOR="curl.se"
6649
6650
6651
6652
6653     curl_ssl_msg="no      (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6654     curl_ssh_msg="no      (--with-{libssh,libssh2})"
6655    curl_zlib_msg="no      (--with-zlib)"
6656  curl_brotli_msg="no      (--with-brotli)"
6657    curl_zstd_msg="no      (--with-zstd)"
6658     curl_gss_msg="no      (--with-gssapi)"
6659   curl_gsasl_msg="no      (--with-gsasl)"
6660 curl_tls_srp_msg="no      (--enable-tls-srp)"
6661     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6662    curl_ipv6_msg="no      (--enable-ipv6)"
6663 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6664     curl_idn_msg="no      (--with-{libidn2,winidn})"
6665  curl_manual_msg="no      (--enable-manual)"
6666 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6667 curl_verbose_msg="enabled (--disable-verbose)"
6668    curl_sspi_msg="no      (--enable-sspi)"
6669    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6670   curl_ldaps_msg="no      (--enable-ldaps)"
6671    curl_rtsp_msg="no      (--enable-rtsp)"
6672    curl_rtmp_msg="no      (--with-librtmp)"
6673     curl_psl_msg="no      (--with-libpsl)"
6674  curl_altsvc_msg="enabled (--disable-alt-svc)"
6675 curl_headers_msg="enabled (--disable-headers-api)"
6676    curl_hsts_msg="enabled (--disable-hsts)"
6677      curl_ws_msg="no      (--enable-websockets)"
6678     ssl_backends=
6679      curl_h1_msg="enabled (internal)"
6680      curl_h2_msg="no      (--with-nghttp2)"
6681      curl_h3_msg="no      (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-msh3)"
6682
6683 enable_altsvc="yes"
6684 hsts="yes"
6685
6686 INITIAL_LDFLAGS=$LDFLAGS
6687 INITIAL_LIBS=$LIBS
6688
6689 compilersh="run-compiler"
6690 CURL_SAVED_CC="$CC"
6691 export CURL_SAVED_CC
6692 CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
6693 export CURL_SAVED_LD_LIBRARY_PATH
6694 cat <<\EOF > "$compilersh"
6695 CC="$CURL_SAVED_CC"
6696 export CC
6697 LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH"
6698 export LD_LIBRARY_PATH
6699 exec $CC "$@"
6700 EOF
6701
6702 OPT_SCHANNEL=no
6703
6704 # Check whether --with-schannel was given.
6705 if test ${with_schannel+y}
6706 then :
6707   withval=$with_schannel; OPT_SCHANNEL=$withval
6708   TLSCHOICE="schannel"
6709 fi
6710
6711
6712 OPT_SECURETRANSPORT=no
6713
6714 # Check whether --with-secure-transport was given.
6715 if test ${with_secure_transport+y}
6716 then :
6717   withval=$with_secure_transport;
6718   OPT_SECURETRANSPORT=$withval
6719   TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6720
6721 fi
6722
6723
6724 OPT_AMISSL=no
6725
6726 # Check whether --with-amissl was given.
6727 if test ${with_amissl+y}
6728 then :
6729   withval=$with_amissl;
6730   OPT_AMISSL=$withval
6731   TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6732
6733 fi
6734
6735
6736 OPT_OPENSSL=no
6737 ca="no"
6738
6739 # Check whether --with-ssl was given.
6740 if test ${with_ssl+y}
6741 then :
6742   withval=$with_ssl;
6743   OPT_SSL=$withval
6744   OPT_OPENSSL=$withval
6745   if test X"$withval" != Xno; then
6746     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6747   else
6748     SSL_DISABLED="D"
6749   fi
6750
6751 fi
6752
6753
6754
6755 # Check whether --with-openssl was given.
6756 if test ${with_openssl+y}
6757 then :
6758   withval=$with_openssl;
6759   OPT_OPENSSL=$withval
6760   if test X"$withval" != Xno; then
6761     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6762   fi
6763
6764 fi
6765
6766
6767 OPT_GNUTLS=no
6768
6769 # Check whether --with-gnutls was given.
6770 if test ${with_gnutls+y}
6771 then :
6772   withval=$with_gnutls;
6773   OPT_GNUTLS=$withval
6774   if test X"$withval" != Xno; then
6775     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6776   fi
6777
6778 fi
6779
6780
6781 OPT_MBEDTLS=no
6782
6783 # Check whether --with-mbedtls was given.
6784 if test ${with_mbedtls+y}
6785 then :
6786   withval=$with_mbedtls;
6787   OPT_MBEDTLS=$withval
6788   if test X"$withval" != Xno; then
6789     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6790   fi
6791
6792 fi
6793
6794
6795 OPT_WOLFSSL=no
6796
6797 # Check whether --with-wolfssl was given.
6798 if test ${with_wolfssl+y}
6799 then :
6800   withval=$with_wolfssl;
6801   OPT_WOLFSSL=$withval
6802   if test X"$withval" != Xno; then
6803     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6804   fi
6805
6806 fi
6807
6808
6809 OPT_BEARSSL=no
6810
6811 # Check whether --with-bearssl was given.
6812 if test ${with_bearssl+y}
6813 then :
6814   withval=$with_bearssl;
6815   OPT_BEARSSL=$withval
6816   if test X"$withval" != Xno; then
6817     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6818   fi
6819
6820 fi
6821
6822
6823 OPT_RUSTLS=no
6824
6825 # Check whether --with-rustls was given.
6826 if test ${with_rustls+y}
6827 then :
6828   withval=$with_rustls;
6829   OPT_RUSTLS=$withval
6830   if test X"$withval" != Xno; then
6831     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6832     experimental="$experimental rustls"
6833   fi
6834
6835 fi
6836
6837
6838 TEST_NGHTTPX=nghttpx
6839
6840 # Check whether --with-test-nghttpx was given.
6841 if test ${with_test_nghttpx+y}
6842 then :
6843   withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6844   if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6845       TEST_NGHTTPX=""
6846   fi
6847
6848 fi
6849
6850
6851
6852 CADDY=caddy
6853
6854 # Check whether --with-test-caddy was given.
6855 if test ${with_test_caddy+y}
6856 then :
6857   withval=$with_test_caddy; CADDY=$withval
6858   if test X"$OPT_CADDY" = "Xno" ; then
6859       CADDY=""
6860   fi
6861
6862 fi
6863
6864
6865
6866 HTTPD_ENABLED="maybe"
6867
6868 # Check whether --with-test-httpd was given.
6869 if test ${with_test_httpd+y}
6870 then :
6871   withval=$with_test_httpd; request_httpd=$withval
6872 else $as_nop
6873   request_httpd=check
6874 fi
6875
6876 if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
6877   if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6878     # common location on distros (debian/ubuntu)
6879     HTTPD="/usr/sbin/apache2"
6880     APACHECTL="/usr/sbin/apache2ctl"
6881     # Extract the first word of "apxs", so it can be a program name with args.
6882 set dummy apxs; ac_word=$2
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 printf %s "checking for $ac_word... " >&6; }
6885 if test ${ac_cv_path_APXS+y}
6886 then :
6887   printf %s "(cached) " >&6
6888 else $as_nop
6889   case $APXS in
6890   [\\/]* | ?:[\\/]*)
6891   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6892   ;;
6893   *)
6894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   case $as_dir in #(((
6899     '') as_dir=./ ;;
6900     */) ;;
6901     *) as_dir=$as_dir/ ;;
6902   esac
6903     for ac_exec_ext in '' $ac_executable_extensions; do
6904   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905     ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6906     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910   done
6911 IFS=$as_save_IFS
6912
6913   ;;
6914 esac
6915 fi
6916 APXS=$ac_cv_path_APXS
6917 if test -n "$APXS"; then
6918   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6919 printf "%s\n" "$APXS" >&6; }
6920 else
6921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 printf "%s\n" "no" >&6; }
6923 fi
6924
6925
6926     if test "x$APXS" = "x"; then
6927       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6928 printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6929       HTTPD_ENABLED="no"
6930     fi
6931   else
6932     # Extract the first word of "httpd", so it can be a program name with args.
6933 set dummy httpd; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_path_HTTPD+y}
6937 then :
6938   printf %s "(cached) " >&6
6939 else $as_nop
6940   case $HTTPD in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   case $as_dir in #(((
6950     '') as_dir=./ ;;
6951     */) ;;
6952     *) as_dir=$as_dir/ ;;
6953   esac
6954     for ac_exec_ext in '' $ac_executable_extensions; do
6955   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6956     ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
6957     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961   done
6962 IFS=$as_save_IFS
6963
6964   ;;
6965 esac
6966 fi
6967 HTTPD=$ac_cv_path_HTTPD
6968 if test -n "$HTTPD"; then
6969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
6970 printf "%s\n" "$HTTPD" >&6; }
6971 else
6972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 printf "%s\n" "no" >&6; }
6974 fi
6975
6976
6977     if test "x$HTTPD" = "x"; then
6978       # Extract the first word of "apache2", so it can be a program name with args.
6979 set dummy apache2; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_path_HTTPD+y}
6983 then :
6984   printf %s "(cached) " >&6
6985 else $as_nop
6986   case $HTTPD in
6987   [\\/]* | ?:[\\/]*)
6988   ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6989   ;;
6990   *)
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   case $as_dir in #(((
6996     '') as_dir=./ ;;
6997     */) ;;
6998     *) as_dir=$as_dir/ ;;
6999   esac
7000     for ac_exec_ext in '' $ac_executable_extensions; do
7001   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7002     ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7003     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007   done
7008 IFS=$as_save_IFS
7009
7010   ;;
7011 esac
7012 fi
7013 HTTPD=$ac_cv_path_HTTPD
7014 if test -n "$HTTPD"; then
7015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7016 printf "%s\n" "$HTTPD" >&6; }
7017 else
7018   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 printf "%s\n" "no" >&6; }
7020 fi
7021
7022
7023     fi
7024     # Extract the first word of "apachectl", so it can be a program name with args.
7025 set dummy apachectl; ac_word=$2
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 printf %s "checking for $ac_word... " >&6; }
7028 if test ${ac_cv_path_APACHECTL+y}
7029 then :
7030   printf %s "(cached) " >&6
7031 else $as_nop
7032   case $APACHECTL in
7033   [\\/]* | ?:[\\/]*)
7034   ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7035   ;;
7036   *)
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   case $as_dir in #(((
7042     '') as_dir=./ ;;
7043     */) ;;
7044     *) as_dir=$as_dir/ ;;
7045   esac
7046     for ac_exec_ext in '' $ac_executable_extensions; do
7047   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7048     ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7049     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053   done
7054 IFS=$as_save_IFS
7055
7056   ;;
7057 esac
7058 fi
7059 APACHECTL=$ac_cv_path_APACHECTL
7060 if test -n "$APACHECTL"; then
7061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7062 printf "%s\n" "$APACHECTL" >&6; }
7063 else
7064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 printf "%s\n" "no" >&6; }
7066 fi
7067
7068
7069     # Extract the first word of "apxs", so it can be a program name with args.
7070 set dummy apxs; ac_word=$2
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 printf %s "checking for $ac_word... " >&6; }
7073 if test ${ac_cv_path_APXS+y}
7074 then :
7075   printf %s "(cached) " >&6
7076 else $as_nop
7077   case $APXS in
7078   [\\/]* | ?:[\\/]*)
7079   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7080   ;;
7081   *)
7082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   case $as_dir in #(((
7087     '') as_dir=./ ;;
7088     */) ;;
7089     *) as_dir=$as_dir/ ;;
7090   esac
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7093     ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7094     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100
7101   ;;
7102 esac
7103 fi
7104 APXS=$ac_cv_path_APXS
7105 if test -n "$APXS"; then
7106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7107 printf "%s\n" "$APXS" >&6; }
7108 else
7109   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111 fi
7112
7113
7114     if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7115       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5
7116 printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;}
7117       HTTPD_ENABLED="no"
7118     fi
7119     if test "x$APXS" = "x"; then
7120       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5
7121 printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;}
7122       HTTPD_ENABLED="no"
7123     fi
7124   fi
7125 elif test x"$request_httpd" != "xno"; then
7126   HTTPD="${request_httpd}/bin/httpd"
7127   APACHECTL="${request_httpd}/bin/apachectl"
7128   APXS="${request_httpd}/bin/apxs"
7129   if test ! -x "${HTTPD}"; then
7130     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5
7131 printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;}
7132     HTTPD_ENABLED="no"
7133   elif test ! -x "${APACHECTL}"; then
7134     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5
7135 printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;}
7136     HTTPD_ENABLED="no"
7137   elif test ! -x "${APXS}"; then
7138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5
7139 printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;}
7140     HTTPD_ENABLED="no"
7141   else
7142     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7143 printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7144   fi
7145 fi
7146 if test x"$HTTPD_ENABLED" = "xno"; then
7147   HTTPD=""
7148   APACHECTL=""
7149   APXS=""
7150 fi
7151
7152
7153
7154
7155 if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7156   HTTPD_NGHTTPX="$TEST_NGHTTPX"
7157 else
7158   # Extract the first word of "nghttpx", so it can be a program name with args.
7159 set dummy nghttpx; ac_word=$2
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 printf %s "checking for $ac_word... " >&6; }
7162 if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7163 then :
7164   printf %s "(cached) " >&6
7165 else $as_nop
7166   case $HTTPD_NGHTTPX in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 as_dummy="$PATH:/usr/bin:/usr/local/bin"
7173 for as_dir in $as_dummy
7174 do
7175   IFS=$as_save_IFS
7176   case $as_dir in #(((
7177     '') as_dir=./ ;;
7178     */) ;;
7179     *) as_dir=$as_dir/ ;;
7180   esac
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7183     ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7184     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191   ;;
7192 esac
7193 fi
7194 HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7195 if test -n "$HTTPD_NGHTTPX"; then
7196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7197 printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7198 else
7199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 printf "%s\n" "no" >&6; }
7201 fi
7202
7203
7204 fi
7205
7206
7207 if test "x$TEST_CADDY" != "x"; then
7208   CADDY="$TEST_CADDY"
7209 else
7210   # Extract the first word of "caddy", so it can be a program name with args.
7211 set dummy caddy; ac_word=$2
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 printf %s "checking for $ac_word... " >&6; }
7214 if test ${ac_cv_path_CADDY+y}
7215 then :
7216   printf %s "(cached) " >&6
7217 else $as_nop
7218   case $CADDY in
7219   [\\/]* | ?:[\\/]*)
7220   ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7221   ;;
7222   *)
7223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   case $as_dir in #(((
7228     '') as_dir=./ ;;
7229     */) ;;
7230     *) as_dir=$as_dir/ ;;
7231   esac
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7234     ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7235     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242   ;;
7243 esac
7244 fi
7245 CADDY=$ac_cv_path_CADDY
7246 if test -n "$CADDY"; then
7247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7248 printf "%s\n" "$CADDY" >&6; }
7249 else
7250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 printf "%s\n" "no" >&6; }
7252 fi
7253
7254
7255 fi
7256
7257
7258 if test -z "$TLSCHOICE"; then
7259   if test "x$OPT_SSL" != "xno"; then
7260     as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7261
7262 Select from these:
7263
7264   --with-amissl
7265   --with-bearssl
7266   --with-gnutls
7267   --with-mbedtls
7268   --with-openssl (also works for BoringSSL and libressl)
7269   --with-rustls
7270   --with-schannel
7271   --with-secure-transport
7272   --with-wolfssl
7273 " "$LINENO" 5
7274   fi
7275 fi
7276
7277
7278 # Check whether --with-darwinssl was given.
7279 if test ${with_darwinssl+y}
7280 then :
7281   withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5
7282 fi
7283
7284
7285
7286
7287
7288   # Make sure we can run config.sub.
7289 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7290   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7291
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7293 printf %s "checking build system type... " >&6; }
7294 if test ${ac_cv_build+y}
7295 then :
7296   printf %s "(cached) " >&6
7297 else $as_nop
7298   ac_build_alias=$build_alias
7299 test "x$ac_build_alias" = x &&
7300   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7301 test "x$ac_build_alias" = x &&
7302   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7303 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7304   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7305
7306 fi
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7308 printf "%s\n" "$ac_cv_build" >&6; }
7309 case $ac_cv_build in
7310 *-*-*) ;;
7311 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7312 esac
7313 build=$ac_cv_build
7314 ac_save_IFS=$IFS; IFS='-'
7315 set x $ac_cv_build
7316 shift
7317 build_cpu=$1
7318 build_vendor=$2
7319 shift; shift
7320 # Remember, the first character of IFS is used to create $*,
7321 # except with old shells:
7322 build_os=$*
7323 IFS=$ac_save_IFS
7324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7325
7326
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7328 printf %s "checking host system type... " >&6; }
7329 if test ${ac_cv_host+y}
7330 then :
7331   printf %s "(cached) " >&6
7332 else $as_nop
7333   if test "x$host_alias" = x; then
7334   ac_cv_host=$ac_cv_build
7335 else
7336   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7337     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7338 fi
7339
7340 fi
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7342 printf "%s\n" "$ac_cv_host" >&6; }
7343 case $ac_cv_host in
7344 *-*-*) ;;
7345 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7346 esac
7347 host=$ac_cv_host
7348 ac_save_IFS=$IFS; IFS='-'
7349 set x $ac_cv_host
7350 shift
7351 host_cpu=$1
7352 host_vendor=$2
7353 shift; shift
7354 # Remember, the first character of IFS is used to create $*,
7355 # except with old shells:
7356 host_os=$*
7357 IFS=$ac_save_IFS
7358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7359
7360
7361
7362 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7363
7364
7365 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
7366 AR_FLAGS=cr
7367
7368
7369
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7371 printf %s "checking for grep that handles long lines and -e... " >&6; }
7372 if test ${ac_cv_path_GREP+y}
7373 then :
7374   printf %s "(cached) " >&6
7375 else $as_nop
7376   if test -z "$GREP"; then
7377   ac_path_GREP_found=false
7378   # Loop through the user's path and test for each of PROGNAME-LIST
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7381 do
7382   IFS=$as_save_IFS
7383   case $as_dir in #(((
7384     '') as_dir=./ ;;
7385     */) ;;
7386     *) as_dir=$as_dir/ ;;
7387   esac
7388     for ac_prog in grep ggrep
7389    do
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7392       as_fn_executable_p "$ac_path_GREP" || continue
7393 # Check for GNU ac_path_GREP and select it if it is found.
7394   # Check for GNU $ac_path_GREP
7395 case `"$ac_path_GREP" --version 2>&1` in
7396 *GNU*)
7397   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7398 *)
7399   ac_count=0
7400   printf %s 0123456789 >"conftest.in"
7401   while :
7402   do
7403     cat "conftest.in" "conftest.in" >"conftest.tmp"
7404     mv "conftest.tmp" "conftest.in"
7405     cp "conftest.in" "conftest.nl"
7406     printf "%s\n" 'GREP' >> "conftest.nl"
7407     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7408     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7409     as_fn_arith $ac_count + 1 && ac_count=$as_val
7410     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7411       # Best one so far, save it but keep looking for a better one
7412       ac_cv_path_GREP="$ac_path_GREP"
7413       ac_path_GREP_max=$ac_count
7414     fi
7415     # 10*(2^10) chars as input seems more than enough
7416     test $ac_count -gt 10 && break
7417   done
7418   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7419 esac
7420
7421       $ac_path_GREP_found && break 3
7422     done
7423   done
7424   done
7425 IFS=$as_save_IFS
7426   if test -z "$ac_cv_path_GREP"; then
7427     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7428   fi
7429 else
7430   ac_cv_path_GREP=$GREP
7431 fi
7432
7433 fi
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7435 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7436  GREP="$ac_cv_path_GREP"
7437
7438
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7440 printf %s "checking for egrep... " >&6; }
7441 if test ${ac_cv_path_EGREP+y}
7442 then :
7443   printf %s "(cached) " >&6
7444 else $as_nop
7445   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7446    then ac_cv_path_EGREP="$GREP -E"
7447    else
7448      if test -z "$EGREP"; then
7449   ac_path_EGREP_found=false
7450   # Loop through the user's path and test for each of PROGNAME-LIST
7451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7453 do
7454   IFS=$as_save_IFS
7455   case $as_dir in #(((
7456     '') as_dir=./ ;;
7457     */) ;;
7458     *) as_dir=$as_dir/ ;;
7459   esac
7460     for ac_prog in egrep
7461    do
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7464       as_fn_executable_p "$ac_path_EGREP" || continue
7465 # Check for GNU ac_path_EGREP and select it if it is found.
7466   # Check for GNU $ac_path_EGREP
7467 case `"$ac_path_EGREP" --version 2>&1` in
7468 *GNU*)
7469   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7470 *)
7471   ac_count=0
7472   printf %s 0123456789 >"conftest.in"
7473   while :
7474   do
7475     cat "conftest.in" "conftest.in" >"conftest.tmp"
7476     mv "conftest.tmp" "conftest.in"
7477     cp "conftest.in" "conftest.nl"
7478     printf "%s\n" 'EGREP' >> "conftest.nl"
7479     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7480     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7481     as_fn_arith $ac_count + 1 && ac_count=$as_val
7482     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7483       # Best one so far, save it but keep looking for a better one
7484       ac_cv_path_EGREP="$ac_path_EGREP"
7485       ac_path_EGREP_max=$ac_count
7486     fi
7487     # 10*(2^10) chars as input seems more than enough
7488     test $ac_count -gt 10 && break
7489   done
7490   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7491 esac
7492
7493       $ac_path_EGREP_found && break 3
7494     done
7495   done
7496   done
7497 IFS=$as_save_IFS
7498   if test -z "$ac_cv_path_EGREP"; then
7499     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7500   fi
7501 else
7502   ac_cv_path_EGREP=$EGREP
7503 fi
7504
7505    fi
7506 fi
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7508 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7509  EGREP="$ac_cv_path_EGREP"
7510
7511
7512
7513
7514         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7515 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518
7519 #ifdef _AIX
7520    yes_this_is_aix
7521 #endif
7522
7523 _ACEOF
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525   $EGREP "yes_this_is_aix" >/dev/null 2>&1
7526 then :
7527
7528     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 printf "%s\n" "yes" >&6; }
7530     printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7531
7532
7533 else $as_nop
7534
7535     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 printf "%s\n" "no" >&6; }
7537
7538 fi
7539 rm -rf conftest*
7540
7541
7542
7543
7544     #
7545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7546 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549
7550
7551
7552 int main (void)
7553 {
7554
7555 #ifdef _THREAD_SAFE
7556       int dummy=1;
7557 #else
7558       force compilation error
7559 #endif
7560
7561  ;
7562  return 0;
7563 }
7564
7565 _ACEOF
7566 if ac_fn_c_try_compile "$LINENO"
7567 then :
7568
7569     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570 printf "%s\n" "yes" >&6; }
7571     tmp_thread_safe_initially_defined="yes"
7572
7573 else $as_nop
7574
7575     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 printf "%s\n" "no" >&6; }
7577     tmp_thread_safe_initially_defined="no"
7578
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7581   #
7582   if test "$tmp_thread_safe_initially_defined" = "no"; then
7583     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7584 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7585
7586   case $host_os in
7587     aix[123].* | aix4.[012].*)
7588             tmp_need_thread_safe="no"
7589       ;;
7590     aix*)
7591             tmp_need_thread_safe="yes"
7592       ;;
7593     *)
7594       tmp_need_thread_safe="no"
7595       ;;
7596   esac
7597
7598     if test "$tmp_need_thread_safe" = "yes"; then
7599       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 printf "%s\n" "yes" >&6; }
7601     else
7602       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 printf "%s\n" "no" >&6; }
7604     fi
7605   fi
7606   #
7607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7608 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7609   if test "$tmp_thread_safe_initially_defined" = "yes" ||
7610     test "$tmp_need_thread_safe" = "yes"; then
7611
7612
7613 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7614
7615 cat >>confdefs.h <<_EOF
7616 #ifndef _THREAD_SAFE
7617 #  define _THREAD_SAFE
7618 #endif
7619 _EOF
7620
7621     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 printf "%s\n" "yes" >&6; }
7623   else
7624     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 printf "%s\n" "no" >&6; }
7626   fi
7627   #
7628
7629
7630     #
7631   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7632 printf %s "checking if _REENTRANT is already defined... " >&6; }
7633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635
7636
7637
7638 int main (void)
7639 {
7640
7641 #ifdef _REENTRANT
7642       int dummy=1;
7643 #else
7644       force compilation error
7645 #endif
7646
7647  ;
7648  return 0;
7649 }
7650
7651 _ACEOF
7652 if ac_fn_c_try_compile "$LINENO"
7653 then :
7654
7655     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7656 printf "%s\n" "yes" >&6; }
7657     tmp_reentrant_initially_defined="yes"
7658
7659 else $as_nop
7660
7661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7663     tmp_reentrant_initially_defined="no"
7664
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7667   #
7668   if test "$tmp_reentrant_initially_defined" = "no"; then
7669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7670 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7671
7672   case $host_os in
7673     solaris*)
7674       tmp_need_reentrant="yes"
7675       ;;
7676     *)
7677       tmp_need_reentrant="no"
7678       ;;
7679   esac
7680
7681     if test "$tmp_need_reentrant" = "no"; then
7682
7683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h.  */
7685
7686
7687 #include <errno.h>
7688
7689 int main (void)
7690 {
7691
7692       if(0 != errno)
7693         return 1;
7694
7695  ;
7696  return 0;
7697 }
7698
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"
7701 then :
7702
7703     tmp_errno="yes"
7704
7705 else $as_nop
7706
7707     tmp_errno="no"
7708
7709 fi
7710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7711   if test "$tmp_errno" = "yes"; then
7712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714
7715
7716 #include <errno.h>
7717
7718 int main (void)
7719 {
7720
7721 #ifdef errno
7722         int dummy=1;
7723 #else
7724         force compilation error
7725 #endif
7726
7727  ;
7728  return 0;
7729 }
7730
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"
7733 then :
7734
7735       tmp_errno="errno_macro_defined"
7736
7737 else $as_nop
7738
7739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h.  */
7741
7742
7743 #define _REENTRANT
7744 #include <errno.h>
7745
7746 int main (void)
7747 {
7748
7749 #ifdef errno
7750           int dummy=1;
7751 #else
7752           force compilation error
7753 #endif
7754
7755  ;
7756  return 0;
7757 }
7758
7759 _ACEOF
7760 if ac_fn_c_try_compile "$LINENO"
7761 then :
7762
7763         tmp_errno="errno_macro_needs_reentrant"
7764         tmp_need_reentrant="yes"
7765
7766 fi
7767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7768
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7771   fi
7772
7773     fi
7774     if test "$tmp_need_reentrant" = "no"; then
7775
7776   if test "$tmp_need_reentrant" = "no"; then
7777
7778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780
7781
7782 #define gmtime_r innocuous_gmtime_r
7783 #ifdef __STDC__
7784 # include <limits.h>
7785 #else
7786 # include <assert.h>
7787 #endif
7788 #undef gmtime_r
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char gmtime_r ();
7793 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7794 choke me
7795 #endif
7796
7797 int main (void)
7798 {
7799 return gmtime_r ();
7800  ;
7801  return 0;
7802 }
7803
7804 _ACEOF
7805 if ac_fn_c_try_link "$LINENO"
7806 then :
7807
7808     tmp_gmtime_r="yes"
7809
7810 else $as_nop
7811
7812     tmp_gmtime_r="no"
7813
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816     conftest$ac_exeext conftest.$ac_ext
7817   if test "$tmp_gmtime_r" = "yes"; then
7818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820
7821 #include <sys/types.h>
7822 #include <time.h>
7823
7824 _ACEOF
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826   $EGREP "gmtime_r" >/dev/null 2>&1
7827 then :
7828
7829       tmp_gmtime_r="proto_declared"
7830
7831 else $as_nop
7832
7833       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835
7836 #define _REENTRANT
7837 #include <sys/types.h>
7838 #include <time.h>
7839
7840 _ACEOF
7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842   $EGREP "gmtime_r" >/dev/null 2>&1
7843 then :
7844
7845         tmp_gmtime_r="proto_needs_reentrant"
7846         tmp_need_reentrant="yes"
7847
7848 fi
7849 rm -rf conftest*
7850
7851
7852 fi
7853 rm -rf conftest*
7854
7855   fi
7856
7857   fi
7858   if test "$tmp_need_reentrant" = "no"; then
7859
7860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862
7863
7864 #define localtime_r innocuous_localtime_r
7865 #ifdef __STDC__
7866 # include <limits.h>
7867 #else
7868 # include <assert.h>
7869 #endif
7870 #undef localtime_r
7871 #ifdef __cplusplus
7872 extern "C"
7873 #endif
7874 char localtime_r ();
7875 #if defined __stub_localtime_r || defined __stub___localtime_r
7876 choke me
7877 #endif
7878
7879 int main (void)
7880 {
7881 return localtime_r ();
7882  ;
7883  return 0;
7884 }
7885
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"
7888 then :
7889
7890     tmp_localtime_r="yes"
7891
7892 else $as_nop
7893
7894     tmp_localtime_r="no"
7895
7896 fi
7897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7898     conftest$ac_exeext conftest.$ac_ext
7899   if test "$tmp_localtime_r" = "yes"; then
7900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902
7903 #include <sys/types.h>
7904 #include <time.h>
7905
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908   $EGREP "localtime_r" >/dev/null 2>&1
7909 then :
7910
7911       tmp_localtime_r="proto_declared"
7912
7913 else $as_nop
7914
7915       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918 #define _REENTRANT
7919 #include <sys/types.h>
7920 #include <time.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   $EGREP "localtime_r" >/dev/null 2>&1
7925 then :
7926
7927         tmp_localtime_r="proto_needs_reentrant"
7928         tmp_need_reentrant="yes"
7929
7930 fi
7931 rm -rf conftest*
7932
7933
7934 fi
7935 rm -rf conftest*
7936
7937   fi
7938
7939   fi
7940   if test "$tmp_need_reentrant" = "no"; then
7941
7942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h.  */
7944
7945
7946 #define strerror_r innocuous_strerror_r
7947 #ifdef __STDC__
7948 # include <limits.h>
7949 #else
7950 # include <assert.h>
7951 #endif
7952 #undef strerror_r
7953 #ifdef __cplusplus
7954 extern "C"
7955 #endif
7956 char strerror_r ();
7957 #if defined __stub_strerror_r || defined __stub___strerror_r
7958 choke me
7959 #endif
7960
7961 int main (void)
7962 {
7963 return strerror_r ();
7964  ;
7965  return 0;
7966 }
7967
7968 _ACEOF
7969 if ac_fn_c_try_link "$LINENO"
7970 then :
7971
7972     tmp_strerror_r="yes"
7973
7974 else $as_nop
7975
7976     tmp_strerror_r="no"
7977
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980     conftest$ac_exeext conftest.$ac_ext
7981   if test "$tmp_strerror_r" = "yes"; then
7982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h.  */
7984
7985 #include <sys/types.h>
7986 #include <string.h>
7987
7988 _ACEOF
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990   $EGREP "strerror_r" >/dev/null 2>&1
7991 then :
7992
7993       tmp_strerror_r="proto_declared"
7994
7995 else $as_nop
7996
7997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h.  */
7999
8000 #define _REENTRANT
8001 #include <sys/types.h>
8002 #include <string.h>
8003
8004 _ACEOF
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006   $EGREP "strerror_r" >/dev/null 2>&1
8007 then :
8008
8009         tmp_strerror_r="proto_needs_reentrant"
8010         tmp_need_reentrant="yes"
8011
8012 fi
8013 rm -rf conftest*
8014
8015
8016 fi
8017 rm -rf conftest*
8018
8019   fi
8020
8021   fi
8022   if test "$tmp_need_reentrant" = "no"; then
8023
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026
8027
8028 #define strtok_r innocuous_strtok_r
8029 #ifdef __STDC__
8030 # include <limits.h>
8031 #else
8032 # include <assert.h>
8033 #endif
8034 #undef strtok_r
8035 #ifdef __cplusplus
8036 extern "C"
8037 #endif
8038 char strtok_r ();
8039 #if defined __stub_strtok_r || defined __stub___strtok_r
8040 choke me
8041 #endif
8042
8043 int main (void)
8044 {
8045 return strtok_r ();
8046  ;
8047  return 0;
8048 }
8049
8050 _ACEOF
8051 if ac_fn_c_try_link "$LINENO"
8052 then :
8053
8054     tmp_strtok_r="yes"
8055
8056 else $as_nop
8057
8058     tmp_strtok_r="no"
8059
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8062     conftest$ac_exeext conftest.$ac_ext
8063   if test "$tmp_strtok_r" = "yes"; then
8064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h.  */
8066
8067 #include <sys/types.h>
8068 #include <string.h>
8069
8070 _ACEOF
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072   $EGREP "strtok_r" >/dev/null 2>&1
8073 then :
8074
8075       tmp_strtok_r="proto_declared"
8076
8077 else $as_nop
8078
8079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h.  */
8081
8082 #define _REENTRANT
8083 #include <sys/types.h>
8084 #include <string.h>
8085
8086 _ACEOF
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088   $EGREP "strtok_r" >/dev/null 2>&1
8089 then :
8090
8091         tmp_strtok_r="proto_needs_reentrant"
8092         tmp_need_reentrant="yes"
8093
8094 fi
8095 rm -rf conftest*
8096
8097
8098 fi
8099 rm -rf conftest*
8100
8101   fi
8102
8103   fi
8104   if test "$tmp_need_reentrant" = "no"; then
8105
8106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h.  */
8108
8109
8110 #define gethostbyname_r innocuous_gethostbyname_r
8111 #ifdef __STDC__
8112 # include <limits.h>
8113 #else
8114 # include <assert.h>
8115 #endif
8116 #undef gethostbyname_r
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 char gethostbyname_r ();
8121 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8122 choke me
8123 #endif
8124
8125 int main (void)
8126 {
8127 return gethostbyname_r ();
8128  ;
8129  return 0;
8130 }
8131
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"
8134 then :
8135
8136     tmp_gethostbyname_r="yes"
8137
8138 else $as_nop
8139
8140     tmp_gethostbyname_r="no"
8141
8142 fi
8143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8144     conftest$ac_exeext conftest.$ac_ext
8145   if test "$tmp_gethostbyname_r" = "yes"; then
8146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h.  */
8148
8149 #include <sys/types.h>
8150 #include <netdb.h>
8151
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154   $EGREP "gethostbyname_r" >/dev/null 2>&1
8155 then :
8156
8157       tmp_gethostbyname_r="proto_declared"
8158
8159 else $as_nop
8160
8161       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163
8164 #define _REENTRANT
8165 #include <sys/types.h>
8166 #include <netdb.h>
8167
8168 _ACEOF
8169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8170   $EGREP "gethostbyname_r" >/dev/null 2>&1
8171 then :
8172
8173         tmp_gethostbyname_r="proto_needs_reentrant"
8174         tmp_need_reentrant="yes"
8175
8176 fi
8177 rm -rf conftest*
8178
8179
8180 fi
8181 rm -rf conftest*
8182
8183   fi
8184
8185   fi
8186   if test "$tmp_need_reentrant" = "no"; then
8187
8188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h.  */
8190
8191
8192 #define getprotobyname_r innocuous_getprotobyname_r
8193 #ifdef __STDC__
8194 # include <limits.h>
8195 #else
8196 # include <assert.h>
8197 #endif
8198 #undef getprotobyname_r
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 char getprotobyname_r ();
8203 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8204 choke me
8205 #endif
8206
8207 int main (void)
8208 {
8209 return getprotobyname_r ();
8210  ;
8211  return 0;
8212 }
8213
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"
8216 then :
8217
8218     tmp_getprotobyname_r="yes"
8219
8220 else $as_nop
8221
8222     tmp_getprotobyname_r="no"
8223
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8226     conftest$ac_exeext conftest.$ac_ext
8227   if test "$tmp_getprotobyname_r" = "yes"; then
8228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230
8231 #include <sys/types.h>
8232 #include <netdb.h>
8233
8234 _ACEOF
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236   $EGREP "getprotobyname_r" >/dev/null 2>&1
8237 then :
8238
8239       tmp_getprotobyname_r="proto_declared"
8240
8241 else $as_nop
8242
8243       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245
8246 #define _REENTRANT
8247 #include <sys/types.h>
8248 #include <netdb.h>
8249
8250 _ACEOF
8251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252   $EGREP "getprotobyname_r" >/dev/null 2>&1
8253 then :
8254
8255         tmp_getprotobyname_r="proto_needs_reentrant"
8256         tmp_need_reentrant="yes"
8257
8258 fi
8259 rm -rf conftest*
8260
8261
8262 fi
8263 rm -rf conftest*
8264
8265   fi
8266
8267   fi
8268
8269     fi
8270     if test "$tmp_need_reentrant" = "yes"; then
8271       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 printf "%s\n" "yes" >&6; }
8273     else
8274       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 printf "%s\n" "no" >&6; }
8276     fi
8277   fi
8278   #
8279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8280 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8281   if test "$tmp_reentrant_initially_defined" = "yes" ||
8282     test "$tmp_need_reentrant" = "yes"; then
8283
8284
8285 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8286
8287 cat >>confdefs.h <<_EOF
8288 #ifndef _REENTRANT
8289 #  define _REENTRANT
8290 #endif
8291 _EOF
8292
8293     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8294 printf "%s\n" "yes" >&6; }
8295   else
8296     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 printf "%s\n" "no" >&6; }
8298   fi
8299   #
8300
8301
8302 # Check whether --enable-largefile was given.
8303 if test ${enable_largefile+y}
8304 then :
8305   enableval=$enable_largefile;
8306 fi
8307
8308 if test "$enable_largefile" != no; then
8309
8310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8311 printf %s "checking for special C compiler options needed for large files... " >&6; }
8312 if test ${ac_cv_sys_largefile_CC+y}
8313 then :
8314   printf %s "(cached) " >&6
8315 else $as_nop
8316   ac_cv_sys_largefile_CC=no
8317      if test "$GCC" != yes; then
8318        ac_save_CC=$CC
8319        while :; do
8320          # IRIX 6.2 and later do not support large files by default,
8321          # so use the C compiler's -n32 option if that helps.
8322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h.  */
8324 #include <sys/types.h>
8325  /* Check that off_t can represent 2**63 - 1 correctly.
8326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8327     since some C++ compilers masquerading as C compilers
8328     incorrectly reject 9223372036854775807.  */
8329 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8331                        && LARGE_OFF_T % 2147483647 == 1)
8332                       ? 1 : -1];
8333 int main (void)
8334 {
8335
8336  ;
8337  return 0;
8338 }
8339 _ACEOF
8340          if ac_fn_c_try_compile "$LINENO"
8341 then :
8342   break
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext conftest.beam
8345          CC="$CC -n32"
8346          if ac_fn_c_try_compile "$LINENO"
8347 then :
8348   ac_cv_sys_largefile_CC=' -n32'; break
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.beam
8351          break
8352        done
8353        CC=$ac_save_CC
8354        rm -f conftest.$ac_ext
8355     fi
8356 fi
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8358 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8359   if test "$ac_cv_sys_largefile_CC" != no; then
8360     CC=$CC$ac_cv_sys_largefile_CC
8361   fi
8362
8363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8364 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8365 if test ${ac_cv_sys_file_offset_bits+y}
8366 then :
8367   printf %s "(cached) " >&6
8368 else $as_nop
8369   while :; do
8370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h.  */
8372 #include <sys/types.h>
8373  /* Check that off_t can represent 2**63 - 1 correctly.
8374     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8375     since some C++ compilers masquerading as C compilers
8376     incorrectly reject 9223372036854775807.  */
8377 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8378   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8379                        && LARGE_OFF_T % 2147483647 == 1)
8380                       ? 1 : -1];
8381 int main (void)
8382 {
8383
8384  ;
8385  return 0;
8386 }
8387 _ACEOF
8388 if ac_fn_c_try_compile "$LINENO"
8389 then :
8390   ac_cv_sys_file_offset_bits=no; break
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h.  */
8395 #define _FILE_OFFSET_BITS 64
8396 #include <sys/types.h>
8397  /* Check that off_t can represent 2**63 - 1 correctly.
8398     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8399     since some C++ compilers masquerading as C compilers
8400     incorrectly reject 9223372036854775807.  */
8401 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8402   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8403                        && LARGE_OFF_T % 2147483647 == 1)
8404                       ? 1 : -1];
8405 int main (void)
8406 {
8407
8408  ;
8409  return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"
8413 then :
8414   ac_cv_sys_file_offset_bits=64; break
8415 fi
8416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417   ac_cv_sys_file_offset_bits=unknown
8418   break
8419 done
8420 fi
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8422 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8423 case $ac_cv_sys_file_offset_bits in #(
8424   no | unknown) ;;
8425   *)
8426 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8427 ;;
8428 esac
8429 rm -rf conftest*
8430   if test $ac_cv_sys_file_offset_bits = unknown; then
8431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8432 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8433 if test ${ac_cv_sys_large_files+y}
8434 then :
8435   printf %s "(cached) " >&6
8436 else $as_nop
8437   while :; do
8438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h.  */
8440 #include <sys/types.h>
8441  /* Check that off_t can represent 2**63 - 1 correctly.
8442     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8443     since some C++ compilers masquerading as C compilers
8444     incorrectly reject 9223372036854775807.  */
8445 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8446   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8447                        && LARGE_OFF_T % 2147483647 == 1)
8448                       ? 1 : -1];
8449 int main (void)
8450 {
8451
8452  ;
8453  return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"
8457 then :
8458   ac_cv_sys_large_files=no; break
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463 #define _LARGE_FILES 1
8464 #include <sys/types.h>
8465  /* Check that off_t can represent 2**63 - 1 correctly.
8466     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8467     since some C++ compilers masquerading as C compilers
8468     incorrectly reject 9223372036854775807.  */
8469 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8470   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8471                        && LARGE_OFF_T % 2147483647 == 1)
8472                       ? 1 : -1];
8473 int main (void)
8474 {
8475
8476  ;
8477  return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"
8481 then :
8482   ac_cv_sys_large_files=1; break
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8485   ac_cv_sys_large_files=unknown
8486   break
8487 done
8488 fi
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8490 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8491 case $ac_cv_sys_large_files in #(
8492   no | unknown) ;;
8493   *)
8494 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8495 ;;
8496 esac
8497 rm -rf conftest*
8498   fi
8499 fi
8500
8501
8502 case `pwd` in
8503   *\ * | *\     *)
8504     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8505 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8506 esac
8507
8508
8509
8510 macro_version='2.4.7'
8511 macro_revision='2.4.7'
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526 ltmain=$ac_aux_dir/ltmain.sh
8527
8528 # Backslashify metacharacters that are still active within
8529 # double-quoted strings.
8530 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8531
8532 # Same as above, but do not quote variable references.
8533 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8534
8535 # Sed substitution to delay expansion of an escaped shell variable in a
8536 # double_quote_subst'ed string.
8537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8538
8539 # Sed substitution to delay expansion of an escaped single quote.
8540 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8541
8542 # Sed substitution to avoid accidental globbing in evaled expressions
8543 no_glob_subst='s/\*/\\\*/g'
8544
8545 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8548
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8550 printf %s "checking how to print strings... " >&6; }
8551 # Test print first, because it will be a builtin if present.
8552 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8553    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8554   ECHO='print -r --'
8555 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8556   ECHO='printf %s\n'
8557 else
8558   # Use this function as a fallback that always works.
8559   func_fallback_echo ()
8560   {
8561     eval 'cat <<_LTECHO_EOF
8562 $1
8563 _LTECHO_EOF'
8564   }
8565   ECHO='func_fallback_echo'
8566 fi
8567
8568 # func_echo_all arg...
8569 # Invoke $ECHO with all args, space-separated.
8570 func_echo_all ()
8571 {
8572     $ECHO ""
8573 }
8574
8575 case $ECHO in
8576   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8577 printf "%s\n" "printf" >&6; } ;;
8578   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8579 printf "%s\n" "print -r" >&6; } ;;
8580   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8581 printf "%s\n" "cat" >&6; } ;;
8582 esac
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8598 printf %s "checking for a sed that does not truncate output... " >&6; }
8599 if test ${ac_cv_path_SED+y}
8600 then :
8601   printf %s "(cached) " >&6
8602 else $as_nop
8603             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8604      for ac_i in 1 2 3 4 5 6 7; do
8605        ac_script="$ac_script$as_nl$ac_script"
8606      done
8607      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8608      { ac_script=; unset ac_script;}
8609      if test -z "$SED"; then
8610   ac_path_SED_found=false
8611   # Loop through the user's path and test for each of PROGNAME-LIST
8612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615   IFS=$as_save_IFS
8616   case $as_dir in #(((
8617     '') as_dir=./ ;;
8618     */) ;;
8619     *) as_dir=$as_dir/ ;;
8620   esac
8621     for ac_prog in sed gsed
8622    do
8623     for ac_exec_ext in '' $ac_executable_extensions; do
8624       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8625       as_fn_executable_p "$ac_path_SED" || continue
8626 # Check for GNU ac_path_SED and select it if it is found.
8627   # Check for GNU $ac_path_SED
8628 case `"$ac_path_SED" --version 2>&1` in
8629 *GNU*)
8630   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8631 *)
8632   ac_count=0
8633   printf %s 0123456789 >"conftest.in"
8634   while :
8635   do
8636     cat "conftest.in" "conftest.in" >"conftest.tmp"
8637     mv "conftest.tmp" "conftest.in"
8638     cp "conftest.in" "conftest.nl"
8639     printf "%s\n" '' >> "conftest.nl"
8640     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8642     as_fn_arith $ac_count + 1 && ac_count=$as_val
8643     if test $ac_count -gt ${ac_path_SED_max-0}; then
8644       # Best one so far, save it but keep looking for a better one
8645       ac_cv_path_SED="$ac_path_SED"
8646       ac_path_SED_max=$ac_count
8647     fi
8648     # 10*(2^10) chars as input seems more than enough
8649     test $ac_count -gt 10 && break
8650   done
8651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8652 esac
8653
8654       $ac_path_SED_found && break 3
8655     done
8656   done
8657   done
8658 IFS=$as_save_IFS
8659   if test -z "$ac_cv_path_SED"; then
8660     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8661   fi
8662 else
8663   ac_cv_path_SED=$SED
8664 fi
8665
8666 fi
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8668 printf "%s\n" "$ac_cv_path_SED" >&6; }
8669  SED="$ac_cv_path_SED"
8670   rm -f conftest.sed
8671
8672 test -z "$SED" && SED=sed
8673 Xsed="$SED -e 1s/^X//"
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8686 printf %s "checking for fgrep... " >&6; }
8687 if test ${ac_cv_path_FGREP+y}
8688 then :
8689   printf %s "(cached) " >&6
8690 else $as_nop
8691   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8692    then ac_cv_path_FGREP="$GREP -F"
8693    else
8694      if test -z "$FGREP"; then
8695   ac_path_FGREP_found=false
8696   # Loop through the user's path and test for each of PROGNAME-LIST
8697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8699 do
8700   IFS=$as_save_IFS
8701   case $as_dir in #(((
8702     '') as_dir=./ ;;
8703     */) ;;
8704     *) as_dir=$as_dir/ ;;
8705   esac
8706     for ac_prog in fgrep
8707    do
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8710       as_fn_executable_p "$ac_path_FGREP" || continue
8711 # Check for GNU ac_path_FGREP and select it if it is found.
8712   # Check for GNU $ac_path_FGREP
8713 case `"$ac_path_FGREP" --version 2>&1` in
8714 *GNU*)
8715   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8716 *)
8717   ac_count=0
8718   printf %s 0123456789 >"conftest.in"
8719   while :
8720   do
8721     cat "conftest.in" "conftest.in" >"conftest.tmp"
8722     mv "conftest.tmp" "conftest.in"
8723     cp "conftest.in" "conftest.nl"
8724     printf "%s\n" 'FGREP' >> "conftest.nl"
8725     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8727     as_fn_arith $ac_count + 1 && ac_count=$as_val
8728     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8729       # Best one so far, save it but keep looking for a better one
8730       ac_cv_path_FGREP="$ac_path_FGREP"
8731       ac_path_FGREP_max=$ac_count
8732     fi
8733     # 10*(2^10) chars as input seems more than enough
8734     test $ac_count -gt 10 && break
8735   done
8736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8737 esac
8738
8739       $ac_path_FGREP_found && break 3
8740     done
8741   done
8742   done
8743 IFS=$as_save_IFS
8744   if test -z "$ac_cv_path_FGREP"; then
8745     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8746   fi
8747 else
8748   ac_cv_path_FGREP=$FGREP
8749 fi
8750
8751    fi
8752 fi
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8754 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8755  FGREP="$ac_cv_path_FGREP"
8756
8757
8758 test -z "$GREP" && GREP=grep
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 # Check whether --with-gnu-ld was given.
8779 if test ${with_gnu_ld+y}
8780 then :
8781   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8782 else $as_nop
8783   with_gnu_ld=no
8784 fi
8785
8786 ac_prog=ld
8787 if test yes = "$GCC"; then
8788   # Check if gcc -print-prog-name=ld gives a path.
8789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8790 printf %s "checking for ld used by $CC... " >&6; }
8791   case $host in
8792   *-*-mingw*)
8793     # gcc leaves a trailing carriage return, which upsets mingw
8794     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8795   *)
8796     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8797   esac
8798   case $ac_prog in
8799     # Accept absolute paths.
8800     [\\/]* | ?:[\\/]*)
8801       re_direlt='/[^/][^/]*/\.\./'
8802       # Canonicalize the pathname of ld
8803       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8804       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8805         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8806       done
8807       test -z "$LD" && LD=$ac_prog
8808       ;;
8809   "")
8810     # If it fails, then pretend we aren't using GCC.
8811     ac_prog=ld
8812     ;;
8813   *)
8814     # If it is relative, then search for the first ld in PATH.
8815     with_gnu_ld=unknown
8816     ;;
8817   esac
8818 elif test yes = "$with_gnu_ld"; then
8819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8820 printf %s "checking for GNU ld... " >&6; }
8821 else
8822   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8823 printf %s "checking for non-GNU ld... " >&6; }
8824 fi
8825 if test ${lt_cv_path_LD+y}
8826 then :
8827   printf %s "(cached) " >&6
8828 else $as_nop
8829   if test -z "$LD"; then
8830   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8831   for ac_dir in $PATH; do
8832     IFS=$lt_save_ifs
8833     test -z "$ac_dir" && ac_dir=.
8834     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8835       lt_cv_path_LD=$ac_dir/$ac_prog
8836       # Check to see if the program is GNU ld.  I'd rather use --version,
8837       # but apparently some variants of GNU ld only accept -v.
8838       # Break only if it was the GNU/non-GNU ld that we prefer.
8839       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8840       *GNU* | *'with BFD'*)
8841         test no != "$with_gnu_ld" && break
8842         ;;
8843       *)
8844         test yes != "$with_gnu_ld" && break
8845         ;;
8846       esac
8847     fi
8848   done
8849   IFS=$lt_save_ifs
8850 else
8851   lt_cv_path_LD=$LD # Let the user override the test with a path.
8852 fi
8853 fi
8854
8855 LD=$lt_cv_path_LD
8856 if test -n "$LD"; then
8857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8858 printf "%s\n" "$LD" >&6; }
8859 else
8860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 printf "%s\n" "no" >&6; }
8862 fi
8863 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8865 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8866 if test ${lt_cv_prog_gnu_ld+y}
8867 then :
8868   printf %s "(cached) " >&6
8869 else $as_nop
8870   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8871 case `$LD -v 2>&1 </dev/null` in
8872 *GNU* | *'with BFD'*)
8873   lt_cv_prog_gnu_ld=yes
8874   ;;
8875 *)
8876   lt_cv_prog_gnu_ld=no
8877   ;;
8878 esac
8879 fi
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8881 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8882 with_gnu_ld=$lt_cv_prog_gnu_ld
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8893 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8894 if test ${lt_cv_path_NM+y}
8895 then :
8896   printf %s "(cached) " >&6
8897 else $as_nop
8898   if test -n "$NM"; then
8899   # Let the user override the test.
8900   lt_cv_path_NM=$NM
8901 else
8902   lt_nm_to_check=${ac_tool_prefix}nm
8903   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8904     lt_nm_to_check="$lt_nm_to_check nm"
8905   fi
8906   for lt_tmp_nm in $lt_nm_to_check; do
8907     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8908     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8909       IFS=$lt_save_ifs
8910       test -z "$ac_dir" && ac_dir=.
8911       tmp_nm=$ac_dir/$lt_tmp_nm
8912       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8913         # Check to see if the nm accepts a BSD-compat flag.
8914         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8915         #   nm: unknown option "B" ignored
8916         # Tru64's nm complains that /dev/null is an invalid object file
8917         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8918         case $build_os in
8919         mingw*) lt_bad_file=conftest.nm/nofile ;;
8920         *) lt_bad_file=/dev/null ;;
8921         esac
8922         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8923         *$lt_bad_file* | *'Invalid file or object type'*)
8924           lt_cv_path_NM="$tmp_nm -B"
8925           break 2
8926           ;;
8927         *)
8928           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8929           */dev/null*)
8930             lt_cv_path_NM="$tmp_nm -p"
8931             break 2
8932             ;;
8933           *)
8934             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8935             continue # so that we can try to find one that supports BSD flags
8936             ;;
8937           esac
8938           ;;
8939         esac
8940       fi
8941     done
8942     IFS=$lt_save_ifs
8943   done
8944   : ${lt_cv_path_NM=no}
8945 fi
8946 fi
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8948 printf "%s\n" "$lt_cv_path_NM" >&6; }
8949 if test no != "$lt_cv_path_NM"; then
8950   NM=$lt_cv_path_NM
8951 else
8952   # Didn't find any BSD compatible name lister, look for dumpbin.
8953   if test -n "$DUMPBIN"; then :
8954     # Let the user override the test.
8955   else
8956     if test -n "$ac_tool_prefix"; then
8957   for ac_prog in dumpbin "link -dump"
8958   do
8959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 printf %s "checking for $ac_word... " >&6; }
8963 if test ${ac_cv_prog_DUMPBIN+y}
8964 then :
8965   printf %s "(cached) " >&6
8966 else $as_nop
8967   if test -n "$DUMPBIN"; then
8968   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973   IFS=$as_save_IFS
8974   case $as_dir in #(((
8975     '') as_dir=./ ;;
8976     */) ;;
8977     *) as_dir=$as_dir/ ;;
8978   esac
8979     for ac_exec_ext in '' $ac_executable_extensions; do
8980   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8981     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8982     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986   done
8987 IFS=$as_save_IFS
8988
8989 fi
8990 fi
8991 DUMPBIN=$ac_cv_prog_DUMPBIN
8992 if test -n "$DUMPBIN"; then
8993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8994 printf "%s\n" "$DUMPBIN" >&6; }
8995 else
8996   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 printf "%s\n" "no" >&6; }
8998 fi
8999
9000
9001     test -n "$DUMPBIN" && break
9002   done
9003 fi
9004 if test -z "$DUMPBIN"; then
9005   ac_ct_DUMPBIN=$DUMPBIN
9006   for ac_prog in dumpbin "link -dump"
9007 do
9008   # Extract the first word of "$ac_prog", so it can be a program name with args.
9009 set dummy $ac_prog; ac_word=$2
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 printf %s "checking for $ac_word... " >&6; }
9012 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9013 then :
9014   printf %s "(cached) " >&6
9015 else $as_nop
9016   if test -n "$ac_ct_DUMPBIN"; then
9017   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   case $as_dir in #(((
9024     '') as_dir=./ ;;
9025     */) ;;
9026     *) as_dir=$as_dir/ ;;
9027   esac
9028     for ac_exec_ext in '' $ac_executable_extensions; do
9029   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9030     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9031     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9032     break 2
9033   fi
9034 done
9035   done
9036 IFS=$as_save_IFS
9037
9038 fi
9039 fi
9040 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9041 if test -n "$ac_ct_DUMPBIN"; then
9042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9043 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9044 else
9045   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 printf "%s\n" "no" >&6; }
9047 fi
9048
9049
9050   test -n "$ac_ct_DUMPBIN" && break
9051 done
9052
9053   if test "x$ac_ct_DUMPBIN" = x; then
9054     DUMPBIN=":"
9055   else
9056     case $cross_compiling:$ac_tool_warned in
9057 yes:)
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060 ac_tool_warned=yes ;;
9061 esac
9062     DUMPBIN=$ac_ct_DUMPBIN
9063   fi
9064 fi
9065
9066     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9067     *COFF*)
9068       DUMPBIN="$DUMPBIN -symbols -headers"
9069       ;;
9070     *)
9071       DUMPBIN=:
9072       ;;
9073     esac
9074   fi
9075
9076   if test : != "$DUMPBIN"; then
9077     NM=$DUMPBIN
9078   fi
9079 fi
9080 test -z "$NM" && NM=nm
9081
9082
9083
9084
9085
9086
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9088 printf %s "checking the name lister ($NM) interface... " >&6; }
9089 if test ${lt_cv_nm_interface+y}
9090 then :
9091   printf %s "(cached) " >&6
9092 else $as_nop
9093   lt_cv_nm_interface="BSD nm"
9094   echo "int some_variable = 0;" > conftest.$ac_ext
9095   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9096   (eval "$ac_compile" 2>conftest.err)
9097   cat conftest.err >&5
9098   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9099   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9100   cat conftest.err >&5
9101   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9102   cat conftest.out >&5
9103   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9104     lt_cv_nm_interface="MS dumpbin"
9105   fi
9106   rm -f conftest*
9107 fi
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9109 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9110
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9112 printf %s "checking whether ln -s works... " >&6; }
9113 LN_S=$as_ln_s
9114 if test "$LN_S" = "ln -s"; then
9115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9116 printf "%s\n" "yes" >&6; }
9117 else
9118   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9119 printf "%s\n" "no, using $LN_S" >&6; }
9120 fi
9121
9122 # find the maximum length of command line arguments
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9124 printf %s "checking the maximum length of command line arguments... " >&6; }
9125 if test ${lt_cv_sys_max_cmd_len+y}
9126 then :
9127   printf %s "(cached) " >&6
9128 else $as_nop
9129     i=0
9130   teststring=ABCD
9131
9132   case $build_os in
9133   msdosdjgpp*)
9134     # On DJGPP, this test can blow up pretty badly due to problems in libc
9135     # (any single argument exceeding 2000 bytes causes a buffer overrun
9136     # during glob expansion).  Even if it were fixed, the result of this
9137     # check would be larger than it should be.
9138     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9139     ;;
9140
9141   gnu*)
9142     # Under GNU Hurd, this test is not required because there is
9143     # no limit to the length of command line arguments.
9144     # Libtool will interpret -1 as no limit whatsoever
9145     lt_cv_sys_max_cmd_len=-1;
9146     ;;
9147
9148   cygwin* | mingw* | cegcc*)
9149     # On Win9x/ME, this test blows up -- it succeeds, but takes
9150     # about 5 minutes as the teststring grows exponentially.
9151     # Worse, since 9x/ME are not pre-emptively multitasking,
9152     # you end up with a "frozen" computer, even though with patience
9153     # the test eventually succeeds (with a max line length of 256k).
9154     # Instead, let's just punt: use the minimum linelength reported by
9155     # all of the supported platforms: 8192 (on NT/2K/XP).
9156     lt_cv_sys_max_cmd_len=8192;
9157     ;;
9158
9159   mint*)
9160     # On MiNT this can take a long time and run out of memory.
9161     lt_cv_sys_max_cmd_len=8192;
9162     ;;
9163
9164   amigaos*)
9165     # On AmigaOS with pdksh, this test takes hours, literally.
9166     # So we just punt and use a minimum line length of 8192.
9167     lt_cv_sys_max_cmd_len=8192;
9168     ;;
9169
9170   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9171     # This has been around since 386BSD, at least.  Likely further.
9172     if test -x /sbin/sysctl; then
9173       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9174     elif test -x /usr/sbin/sysctl; then
9175       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9176     else
9177       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9178     fi
9179     # And add a safety zone
9180     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9181     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9182     ;;
9183
9184   interix*)
9185     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9186     lt_cv_sys_max_cmd_len=196608
9187     ;;
9188
9189   os2*)
9190     # The test takes a long time on OS/2.
9191     lt_cv_sys_max_cmd_len=8192
9192     ;;
9193
9194   osf*)
9195     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9196     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9197     # nice to cause kernel panics so lets avoid the loop below.
9198     # First set a reasonable default.
9199     lt_cv_sys_max_cmd_len=16384
9200     #
9201     if test -x /sbin/sysconfig; then
9202       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9203         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9204       esac
9205     fi
9206     ;;
9207   sco3.2v5*)
9208     lt_cv_sys_max_cmd_len=102400
9209     ;;
9210   sysv5* | sco5v6* | sysv4.2uw2*)
9211     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9212     if test -n "$kargmax"; then
9213       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
9214     else
9215       lt_cv_sys_max_cmd_len=32768
9216     fi
9217     ;;
9218   *)
9219     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9220     if test -n "$lt_cv_sys_max_cmd_len" && \
9221        test undefined != "$lt_cv_sys_max_cmd_len"; then
9222       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9223       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9224     else
9225       # Make teststring a little bigger before we do anything with it.
9226       # a 1K string should be a reasonable start.
9227       for i in 1 2 3 4 5 6 7 8; do
9228         teststring=$teststring$teststring
9229       done
9230       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9231       # If test is not a shell built-in, we'll probably end up computing a
9232       # maximum length that is only half of the actual maximum length, but
9233       # we can't tell.
9234       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9235                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9236               test 17 != "$i" # 1/2 MB should be enough
9237       do
9238         i=`expr $i + 1`
9239         teststring=$teststring$teststring
9240       done
9241       # Only check the string length outside the loop.
9242       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9243       teststring=
9244       # Add a significant safety factor because C++ compilers can tack on
9245       # massive amounts of additional arguments before passing them to the
9246       # linker.  It appears as though 1/2 is a usable value.
9247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9248     fi
9249     ;;
9250   esac
9251
9252 fi
9253
9254 if test -n "$lt_cv_sys_max_cmd_len"; then
9255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9256 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9257 else
9258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9259 printf "%s\n" "none" >&6; }
9260 fi
9261 max_cmd_len=$lt_cv_sys_max_cmd_len
9262
9263
9264
9265
9266
9267
9268 : ${CP="cp -f"}
9269 : ${MV="mv -f"}
9270 : ${RM="rm -f"}
9271
9272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9273   lt_unset=unset
9274 else
9275   lt_unset=false
9276 fi
9277
9278
9279
9280
9281
9282 # test EBCDIC or ASCII
9283 case `echo X|tr X '\101'` in
9284  A) # ASCII based system
9285     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9286   lt_SP2NL='tr \040 \012'
9287   lt_NL2SP='tr \015\012 \040\040'
9288   ;;
9289  *) # EBCDIC based system
9290   lt_SP2NL='tr \100 \n'
9291   lt_NL2SP='tr \r\n \100\100'
9292   ;;
9293 esac
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9304 printf %s "checking how to convert $build file names to $host format... " >&6; }
9305 if test ${lt_cv_to_host_file_cmd+y}
9306 then :
9307   printf %s "(cached) " >&6
9308 else $as_nop
9309   case $host in
9310   *-*-mingw* )
9311     case $build in
9312       *-*-mingw* ) # actually msys
9313         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9314         ;;
9315       *-*-cygwin* )
9316         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9317         ;;
9318       * ) # otherwise, assume *nix
9319         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9320         ;;
9321     esac
9322     ;;
9323   *-*-cygwin* )
9324     case $build in
9325       *-*-mingw* ) # actually msys
9326         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9327         ;;
9328       *-*-cygwin* )
9329         lt_cv_to_host_file_cmd=func_convert_file_noop
9330         ;;
9331       * ) # otherwise, assume *nix
9332         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9333         ;;
9334     esac
9335     ;;
9336   * ) # unhandled hosts (and "normal" native builds)
9337     lt_cv_to_host_file_cmd=func_convert_file_noop
9338     ;;
9339 esac
9340
9341 fi
9342
9343 to_host_file_cmd=$lt_cv_to_host_file_cmd
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9345 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9346
9347
9348
9349
9350
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9352 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9353 if test ${lt_cv_to_tool_file_cmd+y}
9354 then :
9355   printf %s "(cached) " >&6
9356 else $as_nop
9357   #assume ordinary cross tools, or native build.
9358 lt_cv_to_tool_file_cmd=func_convert_file_noop
9359 case $host in
9360   *-*-mingw* )
9361     case $build in
9362       *-*-mingw* ) # actually msys
9363         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9364         ;;
9365     esac
9366     ;;
9367 esac
9368
9369 fi
9370
9371 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9373 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9374
9375
9376
9377
9378
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9380 printf %s "checking for $LD option to reload object files... " >&6; }
9381 if test ${lt_cv_ld_reload_flag+y}
9382 then :
9383   printf %s "(cached) " >&6
9384 else $as_nop
9385   lt_cv_ld_reload_flag='-r'
9386 fi
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9388 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9389 reload_flag=$lt_cv_ld_reload_flag
9390 case $reload_flag in
9391 "" | " "*) ;;
9392 *) reload_flag=" $reload_flag" ;;
9393 esac
9394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9395 case $host_os in
9396   cygwin* | mingw* | pw32* | cegcc*)
9397     if test yes != "$GCC"; then
9398       reload_cmds=false
9399     fi
9400     ;;
9401   darwin*)
9402     if test yes = "$GCC"; then
9403       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9404     else
9405       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9406     fi
9407     ;;
9408 esac
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418 if test -n "$ac_tool_prefix"; then
9419   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9420 set dummy ${ac_tool_prefix}file; ac_word=$2
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 printf %s "checking for $ac_word... " >&6; }
9423 if test ${ac_cv_prog_FILECMD+y}
9424 then :
9425   printf %s "(cached) " >&6
9426 else $as_nop
9427   if test -n "$FILECMD"; then
9428   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433   IFS=$as_save_IFS
9434   case $as_dir in #(((
9435     '') as_dir=./ ;;
9436     */) ;;
9437     *) as_dir=$as_dir/ ;;
9438   esac
9439     for ac_exec_ext in '' $ac_executable_extensions; do
9440   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9441     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9442     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9443     break 2
9444   fi
9445 done
9446   done
9447 IFS=$as_save_IFS
9448
9449 fi
9450 fi
9451 FILECMD=$ac_cv_prog_FILECMD
9452 if test -n "$FILECMD"; then
9453   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9454 printf "%s\n" "$FILECMD" >&6; }
9455 else
9456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 printf "%s\n" "no" >&6; }
9458 fi
9459
9460
9461 fi
9462 if test -z "$ac_cv_prog_FILECMD"; then
9463   ac_ct_FILECMD=$FILECMD
9464   # Extract the first word of "file", so it can be a program name with args.
9465 set dummy file; ac_word=$2
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 printf %s "checking for $ac_word... " >&6; }
9468 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9469 then :
9470   printf %s "(cached) " >&6
9471 else $as_nop
9472   if test -n "$ac_ct_FILECMD"; then
9473   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9474 else
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9477 do
9478   IFS=$as_save_IFS
9479   case $as_dir in #(((
9480     '') as_dir=./ ;;
9481     */) ;;
9482     *) as_dir=$as_dir/ ;;
9483   esac
9484     for ac_exec_ext in '' $ac_executable_extensions; do
9485   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9486     ac_cv_prog_ac_ct_FILECMD="file"
9487     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9488     break 2
9489   fi
9490 done
9491   done
9492 IFS=$as_save_IFS
9493
9494 fi
9495 fi
9496 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9497 if test -n "$ac_ct_FILECMD"; then
9498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9499 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9500 else
9501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 printf "%s\n" "no" >&6; }
9503 fi
9504
9505   if test "x$ac_ct_FILECMD" = x; then
9506     FILECMD=":"
9507   else
9508     case $cross_compiling:$ac_tool_warned in
9509 yes:)
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9512 ac_tool_warned=yes ;;
9513 esac
9514     FILECMD=$ac_ct_FILECMD
9515   fi
9516 else
9517   FILECMD="$ac_cv_prog_FILECMD"
9518 fi
9519
9520
9521
9522
9523
9524
9525
9526 if test -n "$ac_tool_prefix"; then
9527   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 printf %s "checking for $ac_word... " >&6; }
9531 if test ${ac_cv_prog_OBJDUMP+y}
9532 then :
9533   printf %s "(cached) " >&6
9534 else $as_nop
9535   if test -n "$OBJDUMP"; then
9536   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9540 do
9541   IFS=$as_save_IFS
9542   case $as_dir in #(((
9543     '') as_dir=./ ;;
9544     */) ;;
9545     *) as_dir=$as_dir/ ;;
9546   esac
9547     for ac_exec_ext in '' $ac_executable_extensions; do
9548   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9549     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9550     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9551     break 2
9552   fi
9553 done
9554   done
9555 IFS=$as_save_IFS
9556
9557 fi
9558 fi
9559 OBJDUMP=$ac_cv_prog_OBJDUMP
9560 if test -n "$OBJDUMP"; then
9561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562 printf "%s\n" "$OBJDUMP" >&6; }
9563 else
9564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 printf "%s\n" "no" >&6; }
9566 fi
9567
9568
9569 fi
9570 if test -z "$ac_cv_prog_OBJDUMP"; then
9571   ac_ct_OBJDUMP=$OBJDUMP
9572   # Extract the first word of "objdump", so it can be a program name with args.
9573 set dummy objdump; ac_word=$2
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 printf %s "checking for $ac_word... " >&6; }
9576 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9577 then :
9578   printf %s "(cached) " >&6
9579 else $as_nop
9580   if test -n "$ac_ct_OBJDUMP"; then
9581   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586   IFS=$as_save_IFS
9587   case $as_dir in #(((
9588     '') as_dir=./ ;;
9589     */) ;;
9590     *) as_dir=$as_dir/ ;;
9591   esac
9592     for ac_exec_ext in '' $ac_executable_extensions; do
9593   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9594     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9595     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9596     break 2
9597   fi
9598 done
9599   done
9600 IFS=$as_save_IFS
9601
9602 fi
9603 fi
9604 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9605 if test -n "$ac_ct_OBJDUMP"; then
9606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9607 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9608 else
9609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 printf "%s\n" "no" >&6; }
9611 fi
9612
9613   if test "x$ac_ct_OBJDUMP" = x; then
9614     OBJDUMP="false"
9615   else
9616     case $cross_compiling:$ac_tool_warned in
9617 yes:)
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9620 ac_tool_warned=yes ;;
9621 esac
9622     OBJDUMP=$ac_ct_OBJDUMP
9623   fi
9624 else
9625   OBJDUMP="$ac_cv_prog_OBJDUMP"
9626 fi
9627
9628 test -z "$OBJDUMP" && OBJDUMP=objdump
9629
9630
9631
9632
9633
9634
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9636 printf %s "checking how to recognize dependent libraries... " >&6; }
9637 if test ${lt_cv_deplibs_check_method+y}
9638 then :
9639   printf %s "(cached) " >&6
9640 else $as_nop
9641   lt_cv_file_magic_cmd='$MAGIC_CMD'
9642 lt_cv_file_magic_test_file=
9643 lt_cv_deplibs_check_method='unknown'
9644 # Need to set the preceding variable on all platforms that support
9645 # interlibrary dependencies.
9646 # 'none' -- dependencies not supported.
9647 # 'unknown' -- same as none, but documents that we really don't know.
9648 # 'pass_all' -- all dependencies passed with no checks.
9649 # 'test_compile' -- check by making test program.
9650 # 'file_magic [[regex]]' -- check by looking for files in library path
9651 # that responds to the $file_magic_cmd with a given extended regex.
9652 # If you have 'file' or equivalent on your system and you're not sure
9653 # whether 'pass_all' will *always* work, you probably want this one.
9654
9655 case $host_os in
9656 aix[4-9]*)
9657   lt_cv_deplibs_check_method=pass_all
9658   ;;
9659
9660 beos*)
9661   lt_cv_deplibs_check_method=pass_all
9662   ;;
9663
9664 bsdi[45]*)
9665   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9666   lt_cv_file_magic_cmd='$FILECMD -L'
9667   lt_cv_file_magic_test_file=/shlib/libc.so
9668   ;;
9669
9670 cygwin*)
9671   # func_win32_libid is a shell function defined in ltmain.sh
9672   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9673   lt_cv_file_magic_cmd='func_win32_libid'
9674   ;;
9675
9676 mingw* | pw32*)
9677   # Base MSYS/MinGW do not provide the 'file' command needed by
9678   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9679   # unless we find 'file', for example because we are cross-compiling.
9680   if ( file / ) >/dev/null 2>&1; then
9681     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9682     lt_cv_file_magic_cmd='func_win32_libid'
9683   else
9684     # Keep this pattern in sync with the one in func_win32_libid.
9685     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9686     lt_cv_file_magic_cmd='$OBJDUMP -f'
9687   fi
9688   ;;
9689
9690 cegcc*)
9691   # use the weaker test based on 'objdump'. See mingw*.
9692   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9693   lt_cv_file_magic_cmd='$OBJDUMP -f'
9694   ;;
9695
9696 darwin* | rhapsody*)
9697   lt_cv_deplibs_check_method=pass_all
9698   ;;
9699
9700 freebsd* | dragonfly* | midnightbsd*)
9701   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9702     case $host_cpu in
9703     i*86 )
9704       # Not sure whether the presence of OpenBSD here was a mistake.
9705       # Let's accept both of them until this is cleared up.
9706       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9707       lt_cv_file_magic_cmd=$FILECMD
9708       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9709       ;;
9710     esac
9711   else
9712     lt_cv_deplibs_check_method=pass_all
9713   fi
9714   ;;
9715
9716 haiku*)
9717   lt_cv_deplibs_check_method=pass_all
9718   ;;
9719
9720 hpux10.20* | hpux11*)
9721   lt_cv_file_magic_cmd=$FILECMD
9722   case $host_cpu in
9723   ia64*)
9724     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9725     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9726     ;;
9727   hppa*64*)
9728     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]'
9729     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9730     ;;
9731   *)
9732     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9733     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9734     ;;
9735   esac
9736   ;;
9737
9738 interix[3-9]*)
9739   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9740   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9741   ;;
9742
9743 irix5* | irix6* | nonstopux*)
9744   case $LD in
9745   *-32|*"-32 ") libmagic=32-bit;;
9746   *-n32|*"-n32 ") libmagic=N32;;
9747   *-64|*"-64 ") libmagic=64-bit;;
9748   *) libmagic=never-match;;
9749   esac
9750   lt_cv_deplibs_check_method=pass_all
9751   ;;
9752
9753 # This must be glibc/ELF.
9754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9755   lt_cv_deplibs_check_method=pass_all
9756   ;;
9757
9758 netbsd* | netbsdelf*-gnu)
9759   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9761   else
9762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9763   fi
9764   ;;
9765
9766 newos6*)
9767   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9768   lt_cv_file_magic_cmd=$FILECMD
9769   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9770   ;;
9771
9772 *nto* | *qnx*)
9773   lt_cv_deplibs_check_method=pass_all
9774   ;;
9775
9776 openbsd* | bitrig*)
9777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9779   else
9780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9781   fi
9782   ;;
9783
9784 osf3* | osf4* | osf5*)
9785   lt_cv_deplibs_check_method=pass_all
9786   ;;
9787
9788 rdos*)
9789   lt_cv_deplibs_check_method=pass_all
9790   ;;
9791
9792 solaris*)
9793   lt_cv_deplibs_check_method=pass_all
9794   ;;
9795
9796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9797   lt_cv_deplibs_check_method=pass_all
9798   ;;
9799
9800 sysv4 | sysv4.3*)
9801   case $host_vendor in
9802   motorola)
9803     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]'
9804     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9805     ;;
9806   ncr)
9807     lt_cv_deplibs_check_method=pass_all
9808     ;;
9809   sequent)
9810     lt_cv_file_magic_cmd='/bin/file'
9811     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9812     ;;
9813   sni)
9814     lt_cv_file_magic_cmd='/bin/file'
9815     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9816     lt_cv_file_magic_test_file=/lib/libc.so
9817     ;;
9818   siemens)
9819     lt_cv_deplibs_check_method=pass_all
9820     ;;
9821   pc)
9822     lt_cv_deplibs_check_method=pass_all
9823     ;;
9824   esac
9825   ;;
9826
9827 tpf*)
9828   lt_cv_deplibs_check_method=pass_all
9829   ;;
9830 os2*)
9831   lt_cv_deplibs_check_method=pass_all
9832   ;;
9833 esac
9834
9835 fi
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9837 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9838
9839 file_magic_glob=
9840 want_nocaseglob=no
9841 if test "$build" = "$host"; then
9842   case $host_os in
9843   mingw* | pw32*)
9844     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9845       want_nocaseglob=yes
9846     else
9847       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9848     fi
9849     ;;
9850   esac
9851 fi
9852
9853 file_magic_cmd=$lt_cv_file_magic_cmd
9854 deplibs_check_method=$lt_cv_deplibs_check_method
9855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878 if test -n "$ac_tool_prefix"; then
9879   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9880 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 printf %s "checking for $ac_word... " >&6; }
9883 if test ${ac_cv_prog_DLLTOOL+y}
9884 then :
9885   printf %s "(cached) " >&6
9886 else $as_nop
9887   if test -n "$DLLTOOL"; then
9888   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9889 else
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893   IFS=$as_save_IFS
9894   case $as_dir in #(((
9895     '') as_dir=./ ;;
9896     */) ;;
9897     *) as_dir=$as_dir/ ;;
9898   esac
9899     for ac_exec_ext in '' $ac_executable_extensions; do
9900   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9901     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9902     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9903     break 2
9904   fi
9905 done
9906   done
9907 IFS=$as_save_IFS
9908
9909 fi
9910 fi
9911 DLLTOOL=$ac_cv_prog_DLLTOOL
9912 if test -n "$DLLTOOL"; then
9913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9914 printf "%s\n" "$DLLTOOL" >&6; }
9915 else
9916   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 printf "%s\n" "no" >&6; }
9918 fi
9919
9920
9921 fi
9922 if test -z "$ac_cv_prog_DLLTOOL"; then
9923   ac_ct_DLLTOOL=$DLLTOOL
9924   # Extract the first word of "dlltool", so it can be a program name with args.
9925 set dummy dlltool; ac_word=$2
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 printf %s "checking for $ac_word... " >&6; }
9928 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9929 then :
9930   printf %s "(cached) " >&6
9931 else $as_nop
9932   if test -n "$ac_ct_DLLTOOL"; then
9933   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938   IFS=$as_save_IFS
9939   case $as_dir in #(((
9940     '') as_dir=./ ;;
9941     */) ;;
9942     *) as_dir=$as_dir/ ;;
9943   esac
9944     for ac_exec_ext in '' $ac_executable_extensions; do
9945   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9946     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9947     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951   done
9952 IFS=$as_save_IFS
9953
9954 fi
9955 fi
9956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9957 if test -n "$ac_ct_DLLTOOL"; then
9958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9959 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9960 else
9961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 printf "%s\n" "no" >&6; }
9963 fi
9964
9965   if test "x$ac_ct_DLLTOOL" = x; then
9966     DLLTOOL="false"
9967   else
9968     case $cross_compiling:$ac_tool_warned in
9969 yes:)
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9971 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9972 ac_tool_warned=yes ;;
9973 esac
9974     DLLTOOL=$ac_ct_DLLTOOL
9975   fi
9976 else
9977   DLLTOOL="$ac_cv_prog_DLLTOOL"
9978 fi
9979
9980 test -z "$DLLTOOL" && DLLTOOL=dlltool
9981
9982
9983
9984
9985
9986
9987
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9989 printf %s "checking how to associate runtime and link libraries... " >&6; }
9990 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9991 then :
9992   printf %s "(cached) " >&6
9993 else $as_nop
9994   lt_cv_sharedlib_from_linklib_cmd='unknown'
9995
9996 case $host_os in
9997 cygwin* | mingw* | pw32* | cegcc*)
9998   # two different shell functions defined in ltmain.sh;
9999   # decide which one to use based on capabilities of $DLLTOOL
10000   case `$DLLTOOL --help 2>&1` in
10001   *--identify-strict*)
10002     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10003     ;;
10004   *)
10005     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10006     ;;
10007   esac
10008   ;;
10009 *)
10010   # fallback: assume linklib IS sharedlib
10011   lt_cv_sharedlib_from_linklib_cmd=$ECHO
10012   ;;
10013 esac
10014
10015 fi
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10017 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10018 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10019 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10020
10021
10022
10023
10024
10025
10026
10027 if test -n "$ac_tool_prefix"; then
10028   for ac_prog in ar
10029   do
10030     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 printf %s "checking for $ac_word... " >&6; }
10034 if test ${ac_cv_prog_AR+y}
10035 then :
10036   printf %s "(cached) " >&6
10037 else $as_nop
10038   if test -n "$AR"; then
10039   ac_cv_prog_AR="$AR" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10043 do
10044   IFS=$as_save_IFS
10045   case $as_dir in #(((
10046     '') as_dir=./ ;;
10047     */) ;;
10048     *) as_dir=$as_dir/ ;;
10049   esac
10050     for ac_exec_ext in '' $ac_executable_extensions; do
10051   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10052     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10053     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057   done
10058 IFS=$as_save_IFS
10059
10060 fi
10061 fi
10062 AR=$ac_cv_prog_AR
10063 if test -n "$AR"; then
10064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10065 printf "%s\n" "$AR" >&6; }
10066 else
10067   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 printf "%s\n" "no" >&6; }
10069 fi
10070
10071
10072     test -n "$AR" && break
10073   done
10074 fi
10075 if test -z "$AR"; then
10076   ac_ct_AR=$AR
10077   for ac_prog in ar
10078 do
10079   # Extract the first word of "$ac_prog", so it can be a program name with args.
10080 set dummy $ac_prog; ac_word=$2
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 printf %s "checking for $ac_word... " >&6; }
10083 if test ${ac_cv_prog_ac_ct_AR+y}
10084 then :
10085   printf %s "(cached) " >&6
10086 else $as_nop
10087   if test -n "$ac_ct_AR"; then
10088   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093   IFS=$as_save_IFS
10094   case $as_dir in #(((
10095     '') as_dir=./ ;;
10096     */) ;;
10097     *) as_dir=$as_dir/ ;;
10098   esac
10099     for ac_exec_ext in '' $ac_executable_extensions; do
10100   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101     ac_cv_prog_ac_ct_AR="$ac_prog"
10102     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10103     break 2
10104   fi
10105 done
10106   done
10107 IFS=$as_save_IFS
10108
10109 fi
10110 fi
10111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10112 if test -n "$ac_ct_AR"; then
10113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10114 printf "%s\n" "$ac_ct_AR" >&6; }
10115 else
10116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 printf "%s\n" "no" >&6; }
10118 fi
10119
10120
10121   test -n "$ac_ct_AR" && break
10122 done
10123
10124   if test "x$ac_ct_AR" = x; then
10125     AR="false"
10126   else
10127     case $cross_compiling:$ac_tool_warned in
10128 yes:)
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131 ac_tool_warned=yes ;;
10132 esac
10133     AR=$ac_ct_AR
10134   fi
10135 fi
10136
10137 : ${AR=ar}
10138
10139
10140
10141
10142
10143
10144 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10145 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10146 # higher priority because thats what people were doing historically (setting
10147 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10148 # variable obsoleted/removed.
10149
10150 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10151 lt_ar_flags=$AR_FLAGS
10152
10153
10154
10155
10156
10157
10158 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10159 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10160
10161
10162
10163
10164
10165
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10167 printf %s "checking for archiver @FILE support... " >&6; }
10168 if test ${lt_cv_ar_at_file+y}
10169 then :
10170   printf %s "(cached) " >&6
10171 else $as_nop
10172   lt_cv_ar_at_file=no
10173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175
10176 int main (void)
10177 {
10178
10179  ;
10180  return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_compile "$LINENO"
10184 then :
10185   echo conftest.$ac_objext > conftest.lst
10186       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10187       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10188   (eval $lt_ar_try) 2>&5
10189   ac_status=$?
10190   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191   test $ac_status = 0; }
10192       if test 0 -eq "$ac_status"; then
10193         # Ensure the archiver fails upon bogus file names.
10194         rm -f conftest.$ac_objext libconftest.a
10195         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10196   (eval $lt_ar_try) 2>&5
10197   ac_status=$?
10198   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199   test $ac_status = 0; }
10200         if test 0 -ne "$ac_status"; then
10201           lt_cv_ar_at_file=@
10202         fi
10203       fi
10204       rm -f conftest.* libconftest.a
10205
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208
10209 fi
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10211 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10212
10213 if test no = "$lt_cv_ar_at_file"; then
10214   archiver_list_spec=
10215 else
10216   archiver_list_spec=$lt_cv_ar_at_file
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225 if test -n "$ac_tool_prefix"; then
10226   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10227 set dummy ${ac_tool_prefix}strip; ac_word=$2
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 printf %s "checking for $ac_word... " >&6; }
10230 if test ${ac_cv_prog_STRIP+y}
10231 then :
10232   printf %s "(cached) " >&6
10233 else $as_nop
10234   if test -n "$STRIP"; then
10235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10236 else
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10239 do
10240   IFS=$as_save_IFS
10241   case $as_dir in #(((
10242     '') as_dir=./ ;;
10243     */) ;;
10244     *) as_dir=$as_dir/ ;;
10245   esac
10246     for ac_exec_ext in '' $ac_executable_extensions; do
10247   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10248     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10249     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10250     break 2
10251   fi
10252 done
10253   done
10254 IFS=$as_save_IFS
10255
10256 fi
10257 fi
10258 STRIP=$ac_cv_prog_STRIP
10259 if test -n "$STRIP"; then
10260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10261 printf "%s\n" "$STRIP" >&6; }
10262 else
10263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 printf "%s\n" "no" >&6; }
10265 fi
10266
10267
10268 fi
10269 if test -z "$ac_cv_prog_STRIP"; then
10270   ac_ct_STRIP=$STRIP
10271   # Extract the first word of "strip", so it can be a program name with args.
10272 set dummy strip; ac_word=$2
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 printf %s "checking for $ac_word... " >&6; }
10275 if test ${ac_cv_prog_ac_ct_STRIP+y}
10276 then :
10277   printf %s "(cached) " >&6
10278 else $as_nop
10279   if test -n "$ac_ct_STRIP"; then
10280   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285   IFS=$as_save_IFS
10286   case $as_dir in #(((
10287     '') as_dir=./ ;;
10288     */) ;;
10289     *) as_dir=$as_dir/ ;;
10290   esac
10291     for ac_exec_ext in '' $ac_executable_extensions; do
10292   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10293     ac_cv_prog_ac_ct_STRIP="strip"
10294     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10295     break 2
10296   fi
10297 done
10298   done
10299 IFS=$as_save_IFS
10300
10301 fi
10302 fi
10303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10304 if test -n "$ac_ct_STRIP"; then
10305   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10306 printf "%s\n" "$ac_ct_STRIP" >&6; }
10307 else
10308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 printf "%s\n" "no" >&6; }
10310 fi
10311
10312   if test "x$ac_ct_STRIP" = x; then
10313     STRIP=":"
10314   else
10315     case $cross_compiling:$ac_tool_warned in
10316 yes:)
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319 ac_tool_warned=yes ;;
10320 esac
10321     STRIP=$ac_ct_STRIP
10322   fi
10323 else
10324   STRIP="$ac_cv_prog_STRIP"
10325 fi
10326
10327 test -z "$STRIP" && STRIP=:
10328
10329
10330
10331
10332
10333
10334 if test -n "$ac_tool_prefix"; then
10335   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 printf %s "checking for $ac_word... " >&6; }
10339 if test ${ac_cv_prog_RANLIB+y}
10340 then :
10341   printf %s "(cached) " >&6
10342 else $as_nop
10343   if test -n "$RANLIB"; then
10344   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10345 else
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10348 do
10349   IFS=$as_save_IFS
10350   case $as_dir in #(((
10351     '') as_dir=./ ;;
10352     */) ;;
10353     *) as_dir=$as_dir/ ;;
10354   esac
10355     for ac_exec_ext in '' $ac_executable_extensions; do
10356   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10358     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10359     break 2
10360   fi
10361 done
10362   done
10363 IFS=$as_save_IFS
10364
10365 fi
10366 fi
10367 RANLIB=$ac_cv_prog_RANLIB
10368 if test -n "$RANLIB"; then
10369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10370 printf "%s\n" "$RANLIB" >&6; }
10371 else
10372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 printf "%s\n" "no" >&6; }
10374 fi
10375
10376
10377 fi
10378 if test -z "$ac_cv_prog_RANLIB"; then
10379   ac_ct_RANLIB=$RANLIB
10380   # Extract the first word of "ranlib", so it can be a program name with args.
10381 set dummy ranlib; ac_word=$2
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 printf %s "checking for $ac_word... " >&6; }
10384 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10385 then :
10386   printf %s "(cached) " >&6
10387 else $as_nop
10388   if test -n "$ac_ct_RANLIB"; then
10389   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   case $as_dir in #(((
10396     '') as_dir=./ ;;
10397     */) ;;
10398     *) as_dir=$as_dir/ ;;
10399   esac
10400     for ac_exec_ext in '' $ac_executable_extensions; do
10401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10402     ac_cv_prog_ac_ct_RANLIB="ranlib"
10403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10404     break 2
10405   fi
10406 done
10407   done
10408 IFS=$as_save_IFS
10409
10410 fi
10411 fi
10412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10413 if test -n "$ac_ct_RANLIB"; then
10414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10415 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10416 else
10417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 printf "%s\n" "no" >&6; }
10419 fi
10420
10421   if test "x$ac_ct_RANLIB" = x; then
10422     RANLIB=":"
10423   else
10424     case $cross_compiling:$ac_tool_warned in
10425 yes:)
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428 ac_tool_warned=yes ;;
10429 esac
10430     RANLIB=$ac_ct_RANLIB
10431   fi
10432 else
10433   RANLIB="$ac_cv_prog_RANLIB"
10434 fi
10435
10436 test -z "$RANLIB" && RANLIB=:
10437
10438
10439
10440
10441
10442
10443 # Determine commands to create old-style static archives.
10444 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10445 old_postinstall_cmds='chmod 644 $oldlib'
10446 old_postuninstall_cmds=
10447
10448 if test -n "$RANLIB"; then
10449   case $host_os in
10450   bitrig* | openbsd*)
10451     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10452     ;;
10453   *)
10454     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10455     ;;
10456   esac
10457   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10458 fi
10459
10460 case $host_os in
10461   darwin*)
10462     lock_old_archive_extraction=yes ;;
10463   *)
10464     lock_old_archive_extraction=no ;;
10465 esac
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 # If no C compiler was specified, use CC.
10506 LTCC=${LTCC-"$CC"}
10507
10508 # If no C compiler flags were specified, use CFLAGS.
10509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10510
10511 # Allow CC to be a program name with arguments.
10512 compiler=$CC
10513
10514
10515 # Check for command to grab the raw symbol name followed by C symbol from nm.
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10517 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10518 if test ${lt_cv_sys_global_symbol_pipe+y}
10519 then :
10520   printf %s "(cached) " >&6
10521 else $as_nop
10522
10523 # These are sane defaults that work on at least a few old systems.
10524 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10525
10526 # Character class describing NM global symbol codes.
10527 symcode='[BCDEGRST]'
10528
10529 # Regexp to match symbols that can be accessed directly from C.
10530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10531
10532 # Define system-specific variables.
10533 case $host_os in
10534 aix*)
10535   symcode='[BCDT]'
10536   ;;
10537 cygwin* | mingw* | pw32* | cegcc*)
10538   symcode='[ABCDGISTW]'
10539   ;;
10540 hpux*)
10541   if test ia64 = "$host_cpu"; then
10542     symcode='[ABCDEGRST]'
10543   fi
10544   ;;
10545 irix* | nonstopux*)
10546   symcode='[BCDEGRST]'
10547   ;;
10548 osf*)
10549   symcode='[BCDEGQRST]'
10550   ;;
10551 solaris*)
10552   symcode='[BDRT]'
10553   ;;
10554 sco3.2v5*)
10555   symcode='[DT]'
10556   ;;
10557 sysv4.2uw2*)
10558   symcode='[DT]'
10559   ;;
10560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10561   symcode='[ABDT]'
10562   ;;
10563 sysv4)
10564   symcode='[DFNSTU]'
10565   ;;
10566 esac
10567
10568 # If we're using GNU nm, then use its standard symbol codes.
10569 case `$NM -V 2>&1` in
10570 *GNU* | *'with BFD'*)
10571   symcode='[ABCDGIRSTW]' ;;
10572 esac
10573
10574 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10575   # Gets list of data symbols to import.
10576   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10577   # Adjust the below global symbol transforms to fixup imported variables.
10578   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10579   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10580   lt_c_name_lib_hook="\
10581   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10582   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10583 else
10584   # Disable hooks by default.
10585   lt_cv_sys_global_symbol_to_import=
10586   lt_cdecl_hook=
10587   lt_c_name_hook=
10588   lt_c_name_lib_hook=
10589 fi
10590
10591 # Transform an extracted symbol line into a proper C declaration.
10592 # Some systems (esp. on ia64) link data and code symbols differently,
10593 # so use this general approach.
10594 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10595 $lt_cdecl_hook\
10596 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10597 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10598
10599 # Transform an extracted symbol line into symbol name and symbol address
10600 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10601 $lt_c_name_hook\
10602 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10603 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10604
10605 # Transform an extracted symbol line into symbol name with lib prefix and
10606 # symbol address.
10607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10608 $lt_c_name_lib_hook\
10609 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10610 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10611 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10612
10613 # Handle CRLF in mingw tool chain
10614 opt_cr=
10615 case $build_os in
10616 mingw*)
10617   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10618   ;;
10619 esac
10620
10621 # Try without a prefix underscore, then with it.
10622 for ac_symprfx in "" "_"; do
10623
10624   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10625   symxfrm="\\1 $ac_symprfx\\2 \\2"
10626
10627   # Write the raw and C identifiers.
10628   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10629     # Fake it for dumpbin and say T for any non-static function,
10630     # D for any global variable and I for any imported variable.
10631     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10632     # which start with @ or ?.
10633     lt_cv_sys_global_symbol_pipe="$AWK '"\
10634 "     {last_section=section; section=\$ 3};"\
10635 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10636 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10637 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10638 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10639 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10640 "     \$ 0!~/External *\|/{next};"\
10641 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10642 "     {if(hide[section]) next};"\
10643 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10644 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10645 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10646 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10647 "     ' prfx=^$ac_symprfx"
10648   else
10649     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10650   fi
10651   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10652
10653   # Check to see that the pipe works correctly.
10654   pipe_works=no
10655
10656   rm -f conftest*
10657   cat > conftest.$ac_ext <<_LT_EOF
10658 #ifdef __cplusplus
10659 extern "C" {
10660 #endif
10661 char nm_test_var;
10662 void nm_test_func(void);
10663 void nm_test_func(void){}
10664 #ifdef __cplusplus
10665 }
10666 #endif
10667 int main(){nm_test_var='a';nm_test_func();return(0);}
10668 _LT_EOF
10669
10670   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10671   (eval $ac_compile) 2>&5
10672   ac_status=$?
10673   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674   test $ac_status = 0; }; then
10675     # Now try to grab the symbols.
10676     nlist=conftest.nm
10677     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10678     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10679       # Try sorting and uniquifying the output.
10680       if sort "$nlist" | uniq > "$nlist"T; then
10681         mv -f "$nlist"T "$nlist"
10682       else
10683         rm -f "$nlist"T
10684       fi
10685
10686       # Make sure that we snagged all the symbols we need.
10687       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10688         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10689           cat <<_LT_EOF > conftest.$ac_ext
10690 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10691 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10692 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10693    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10694 # define LT_DLSYM_CONST
10695 #elif defined __osf__
10696 /* This system does not cope well with relocations in const data.  */
10697 # define LT_DLSYM_CONST
10698 #else
10699 # define LT_DLSYM_CONST const
10700 #endif
10701
10702 #ifdef __cplusplus
10703 extern "C" {
10704 #endif
10705
10706 _LT_EOF
10707           # Now generate the symbol file.
10708           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10709
10710           cat <<_LT_EOF >> conftest.$ac_ext
10711
10712 /* The mapping between symbol names and symbols.  */
10713 LT_DLSYM_CONST struct {
10714   const char *name;
10715   void       *address;
10716 }
10717 lt__PROGRAM__LTX_preloaded_symbols[] =
10718 {
10719   { "@PROGRAM@", (void *) 0 },
10720 _LT_EOF
10721           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10722           cat <<\_LT_EOF >> conftest.$ac_ext
10723   {0, (void *) 0}
10724 };
10725
10726 /* This works around a problem in FreeBSD linker */
10727 #ifdef FREEBSD_WORKAROUND
10728 static const void *lt_preloaded_setup() {
10729   return lt__PROGRAM__LTX_preloaded_symbols;
10730 }
10731 #endif
10732
10733 #ifdef __cplusplus
10734 }
10735 #endif
10736 _LT_EOF
10737           # Now try linking the two files.
10738           mv conftest.$ac_objext conftstm.$ac_objext
10739           lt_globsym_save_LIBS=$LIBS
10740           lt_globsym_save_CFLAGS=$CFLAGS
10741           LIBS=conftstm.$ac_objext
10742           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10743           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10744   (eval $ac_link) 2>&5
10745   ac_status=$?
10746   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10748             pipe_works=yes
10749           fi
10750           LIBS=$lt_globsym_save_LIBS
10751           CFLAGS=$lt_globsym_save_CFLAGS
10752         else
10753           echo "cannot find nm_test_func in $nlist" >&5
10754         fi
10755       else
10756         echo "cannot find nm_test_var in $nlist" >&5
10757       fi
10758     else
10759       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10760     fi
10761   else
10762     echo "$progname: failed program was:" >&5
10763     cat conftest.$ac_ext >&5
10764   fi
10765   rm -rf conftest* conftst*
10766
10767   # Do not use the global_symbol_pipe unless it works.
10768   if test yes = "$pipe_works"; then
10769     break
10770   else
10771     lt_cv_sys_global_symbol_pipe=
10772   fi
10773 done
10774
10775 fi
10776
10777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10778   lt_cv_sys_global_symbol_to_cdecl=
10779 fi
10780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10782 printf "%s\n" "failed" >&6; }
10783 else
10784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10785 printf "%s\n" "ok" >&6; }
10786 fi
10787
10788 # Response file support.
10789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10790   nm_file_list_spec='@'
10791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10792   nm_file_list_spec='@'
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10832 printf %s "checking for sysroot... " >&6; }
10833
10834 # Check whether --with-sysroot was given.
10835 if test ${with_sysroot+y}
10836 then :
10837   withval=$with_sysroot;
10838 else $as_nop
10839   with_sysroot=no
10840 fi
10841
10842
10843 lt_sysroot=
10844 case $with_sysroot in #(
10845  yes)
10846    if test yes = "$GCC"; then
10847      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10848    fi
10849    ;; #(
10850  /*)
10851    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10852    ;; #(
10853  no|'')
10854    ;; #(
10855  *)
10856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10857 printf "%s\n" "$with_sysroot" >&6; }
10858    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10859    ;;
10860 esac
10861
10862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10863 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10864
10865
10866
10867
10868
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10870 printf %s "checking for a working dd... " >&6; }
10871 if test ${ac_cv_path_lt_DD+y}
10872 then :
10873   printf %s "(cached) " >&6
10874 else $as_nop
10875   printf 0123456789abcdef0123456789abcdef >conftest.i
10876 cat conftest.i conftest.i >conftest2.i
10877 : ${lt_DD:=$DD}
10878 if test -z "$lt_DD"; then
10879   ac_path_lt_DD_found=false
10880   # Loop through the user's path and test for each of PROGNAME-LIST
10881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10883 do
10884   IFS=$as_save_IFS
10885   case $as_dir in #(((
10886     '') as_dir=./ ;;
10887     */) ;;
10888     *) as_dir=$as_dir/ ;;
10889   esac
10890     for ac_prog in dd
10891    do
10892     for ac_exec_ext in '' $ac_executable_extensions; do
10893       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10894       as_fn_executable_p "$ac_path_lt_DD" || continue
10895 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10896   cmp -s conftest.i conftest.out \
10897   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10898 fi
10899       $ac_path_lt_DD_found && break 3
10900     done
10901   done
10902   done
10903 IFS=$as_save_IFS
10904   if test -z "$ac_cv_path_lt_DD"; then
10905     :
10906   fi
10907 else
10908   ac_cv_path_lt_DD=$lt_DD
10909 fi
10910
10911 rm -f conftest.i conftest2.i conftest.out
10912 fi
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10914 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10915
10916
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10918 printf %s "checking how to truncate binary pipes... " >&6; }
10919 if test ${lt_cv_truncate_bin+y}
10920 then :
10921   printf %s "(cached) " >&6
10922 else $as_nop
10923   printf 0123456789abcdef0123456789abcdef >conftest.i
10924 cat conftest.i conftest.i >conftest2.i
10925 lt_cv_truncate_bin=
10926 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10927   cmp -s conftest.i conftest.out \
10928   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10929 fi
10930 rm -f conftest.i conftest2.i conftest.out
10931 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10932 fi
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10934 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10935
10936
10937
10938
10939
10940
10941
10942 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10943 func_cc_basename ()
10944 {
10945     for cc_temp in $*""; do
10946       case $cc_temp in
10947         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10949         \-*) ;;
10950         *) break;;
10951       esac
10952     done
10953     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10954 }
10955
10956 # Check whether --enable-libtool-lock was given.
10957 if test ${enable_libtool_lock+y}
10958 then :
10959   enableval=$enable_libtool_lock;
10960 fi
10961
10962 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10963
10964 # Some flags need to be propagated to the compiler or linker for good
10965 # libtool support.
10966 case $host in
10967 ia64-*-hpux*)
10968   # Find out what ABI is being produced by ac_compile, and set mode
10969   # options accordingly.
10970   echo 'int i;' > conftest.$ac_ext
10971   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10972   (eval $ac_compile) 2>&5
10973   ac_status=$?
10974   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975   test $ac_status = 0; }; then
10976     case `$FILECMD conftest.$ac_objext` in
10977       *ELF-32*)
10978         HPUX_IA64_MODE=32
10979         ;;
10980       *ELF-64*)
10981         HPUX_IA64_MODE=64
10982         ;;
10983     esac
10984   fi
10985   rm -rf conftest*
10986   ;;
10987 *-*-irix6*)
10988   # Find out what ABI is being produced by ac_compile, and set linker
10989   # options accordingly.
10990   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10992   (eval $ac_compile) 2>&5
10993   ac_status=$?
10994   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995   test $ac_status = 0; }; then
10996     if test yes = "$lt_cv_prog_gnu_ld"; then
10997       case `$FILECMD conftest.$ac_objext` in
10998         *32-bit*)
10999           LD="${LD-ld} -melf32bsmip"
11000           ;;
11001         *N32*)
11002           LD="${LD-ld} -melf32bmipn32"
11003           ;;
11004         *64-bit*)
11005           LD="${LD-ld} -melf64bmip"
11006         ;;
11007       esac
11008     else
11009       case `$FILECMD conftest.$ac_objext` in
11010         *32-bit*)
11011           LD="${LD-ld} -32"
11012           ;;
11013         *N32*)
11014           LD="${LD-ld} -n32"
11015           ;;
11016         *64-bit*)
11017           LD="${LD-ld} -64"
11018           ;;
11019       esac
11020     fi
11021   fi
11022   rm -rf conftest*
11023   ;;
11024
11025 mips64*-*linux*)
11026   # Find out what ABI is being produced by ac_compile, and set linker
11027   # options accordingly.
11028   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11029   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11030   (eval $ac_compile) 2>&5
11031   ac_status=$?
11032   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033   test $ac_status = 0; }; then
11034     emul=elf
11035     case `$FILECMD conftest.$ac_objext` in
11036       *32-bit*)
11037         emul="${emul}32"
11038         ;;
11039       *64-bit*)
11040         emul="${emul}64"
11041         ;;
11042     esac
11043     case `$FILECMD conftest.$ac_objext` in
11044       *MSB*)
11045         emul="${emul}btsmip"
11046         ;;
11047       *LSB*)
11048         emul="${emul}ltsmip"
11049         ;;
11050     esac
11051     case `$FILECMD conftest.$ac_objext` in
11052       *N32*)
11053         emul="${emul}n32"
11054         ;;
11055     esac
11056     LD="${LD-ld} -m $emul"
11057   fi
11058   rm -rf conftest*
11059   ;;
11060
11061 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11062 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11063   # Find out what ABI is being produced by ac_compile, and set linker
11064   # options accordingly.  Note that the listed cases only cover the
11065   # situations where additional linker options are needed (such as when
11066   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11067   # vice versa); the common cases where no linker options are needed do
11068   # not appear in the list.
11069   echo 'int i;' > conftest.$ac_ext
11070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11071   (eval $ac_compile) 2>&5
11072   ac_status=$?
11073   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074   test $ac_status = 0; }; then
11075     case `$FILECMD conftest.o` in
11076       *32-bit*)
11077         case $host in
11078           x86_64-*kfreebsd*-gnu)
11079             LD="${LD-ld} -m elf_i386_fbsd"
11080             ;;
11081           x86_64-*linux*)
11082             case `$FILECMD conftest.o` in
11083               *x86-64*)
11084                 LD="${LD-ld} -m elf32_x86_64"
11085                 ;;
11086               *)
11087                 LD="${LD-ld} -m elf_i386"
11088                 ;;
11089             esac
11090             ;;
11091           powerpc64le-*linux*)
11092             LD="${LD-ld} -m elf32lppclinux"
11093             ;;
11094           powerpc64-*linux*)
11095             LD="${LD-ld} -m elf32ppclinux"
11096             ;;
11097           s390x-*linux*)
11098             LD="${LD-ld} -m elf_s390"
11099             ;;
11100           sparc64-*linux*)
11101             LD="${LD-ld} -m elf32_sparc"
11102             ;;
11103         esac
11104         ;;
11105       *64-bit*)
11106         case $host in
11107           x86_64-*kfreebsd*-gnu)
11108             LD="${LD-ld} -m elf_x86_64_fbsd"
11109             ;;
11110           x86_64-*linux*)
11111             LD="${LD-ld} -m elf_x86_64"
11112             ;;
11113           powerpcle-*linux*)
11114             LD="${LD-ld} -m elf64lppc"
11115             ;;
11116           powerpc-*linux*)
11117             LD="${LD-ld} -m elf64ppc"
11118             ;;
11119           s390*-*linux*|s390*-*tpf*)
11120             LD="${LD-ld} -m elf64_s390"
11121             ;;
11122           sparc*-*linux*)
11123             LD="${LD-ld} -m elf64_sparc"
11124             ;;
11125         esac
11126         ;;
11127     esac
11128   fi
11129   rm -rf conftest*
11130   ;;
11131
11132 *-*-sco3.2v5*)
11133   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11134   SAVE_CFLAGS=$CFLAGS
11135   CFLAGS="$CFLAGS -belf"
11136   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11137 printf %s "checking whether the C compiler needs -belf... " >&6; }
11138 if test ${lt_cv_cc_needs_belf+y}
11139 then :
11140   printf %s "(cached) " >&6
11141 else $as_nop
11142   ac_ext=c
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11147
11148      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 int main (void)
11152 {
11153
11154  ;
11155  return 0;
11156 }
11157 _ACEOF
11158 if ac_fn_c_try_link "$LINENO"
11159 then :
11160   lt_cv_cc_needs_belf=yes
11161 else $as_nop
11162   lt_cv_cc_needs_belf=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165     conftest$ac_exeext conftest.$ac_ext
11166      ac_ext=c
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
11172 fi
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11174 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11175   if test yes != "$lt_cv_cc_needs_belf"; then
11176     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11177     CFLAGS=$SAVE_CFLAGS
11178   fi
11179   ;;
11180 *-*solaris*)
11181   # Find out what ABI is being produced by ac_compile, and set linker
11182   # options accordingly.
11183   echo 'int i;' > conftest.$ac_ext
11184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11185   (eval $ac_compile) 2>&5
11186   ac_status=$?
11187   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188   test $ac_status = 0; }; then
11189     case `$FILECMD conftest.o` in
11190     *64-bit*)
11191       case $lt_cv_prog_gnu_ld in
11192       yes*)
11193         case $host in
11194         i?86-*-solaris*|x86_64-*-solaris*)
11195           LD="${LD-ld} -m elf_x86_64"
11196           ;;
11197         sparc*-*-solaris*)
11198           LD="${LD-ld} -m elf64_sparc"
11199           ;;
11200         esac
11201         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11202         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11203           LD=${LD-ld}_sol2
11204         fi
11205         ;;
11206       *)
11207         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11208           LD="${LD-ld} -64"
11209         fi
11210         ;;
11211       esac
11212       ;;
11213     esac
11214   fi
11215   rm -rf conftest*
11216   ;;
11217 esac
11218
11219 need_locks=$enable_libtool_lock
11220
11221 if test -n "$ac_tool_prefix"; then
11222   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11223 set dummy ${ac_tool_prefix}mt; ac_word=$2
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 printf %s "checking for $ac_word... " >&6; }
11226 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11227 then :
11228   printf %s "(cached) " >&6
11229 else $as_nop
11230   if test -n "$MANIFEST_TOOL"; then
11231   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11235 do
11236   IFS=$as_save_IFS
11237   case $as_dir in #(((
11238     '') as_dir=./ ;;
11239     */) ;;
11240     *) as_dir=$as_dir/ ;;
11241   esac
11242     for ac_exec_ext in '' $ac_executable_extensions; do
11243   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11244     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11245     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11246     break 2
11247   fi
11248 done
11249   done
11250 IFS=$as_save_IFS
11251
11252 fi
11253 fi
11254 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11255 if test -n "$MANIFEST_TOOL"; then
11256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11257 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11258 else
11259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 printf "%s\n" "no" >&6; }
11261 fi
11262
11263
11264 fi
11265 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11266   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11267   # Extract the first word of "mt", so it can be a program name with args.
11268 set dummy mt; ac_word=$2
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 printf %s "checking for $ac_word... " >&6; }
11271 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11272 then :
11273   printf %s "(cached) " >&6
11274 else $as_nop
11275   if test -n "$ac_ct_MANIFEST_TOOL"; then
11276   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11277 else
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11280 do
11281   IFS=$as_save_IFS
11282   case $as_dir in #(((
11283     '') as_dir=./ ;;
11284     */) ;;
11285     *) as_dir=$as_dir/ ;;
11286   esac
11287     for ac_exec_ext in '' $ac_executable_extensions; do
11288   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11289     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11290     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294   done
11295 IFS=$as_save_IFS
11296
11297 fi
11298 fi
11299 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11300 if test -n "$ac_ct_MANIFEST_TOOL"; then
11301   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11302 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11303 else
11304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 printf "%s\n" "no" >&6; }
11306 fi
11307
11308   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11309     MANIFEST_TOOL=":"
11310   else
11311     case $cross_compiling:$ac_tool_warned in
11312 yes:)
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11315 ac_tool_warned=yes ;;
11316 esac
11317     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11318   fi
11319 else
11320   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11321 fi
11322
11323 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11325 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11326 if test ${lt_cv_path_mainfest_tool+y}
11327 then :
11328   printf %s "(cached) " >&6
11329 else $as_nop
11330   lt_cv_path_mainfest_tool=no
11331   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11332   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11333   cat conftest.err >&5
11334   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11335     lt_cv_path_mainfest_tool=yes
11336   fi
11337   rm -f conftest*
11338 fi
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11340 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11341 if test yes != "$lt_cv_path_mainfest_tool"; then
11342   MANIFEST_TOOL=:
11343 fi
11344
11345
11346
11347
11348
11349
11350   case $host_os in
11351     rhapsody* | darwin*)
11352     if test -n "$ac_tool_prefix"; then
11353   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11354 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 printf %s "checking for $ac_word... " >&6; }
11357 if test ${ac_cv_prog_DSYMUTIL+y}
11358 then :
11359   printf %s "(cached) " >&6
11360 else $as_nop
11361   if test -n "$DSYMUTIL"; then
11362   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11363 else
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11366 do
11367   IFS=$as_save_IFS
11368   case $as_dir in #(((
11369     '') as_dir=./ ;;
11370     */) ;;
11371     *) as_dir=$as_dir/ ;;
11372   esac
11373     for ac_exec_ext in '' $ac_executable_extensions; do
11374   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11375     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11376     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11377     break 2
11378   fi
11379 done
11380   done
11381 IFS=$as_save_IFS
11382
11383 fi
11384 fi
11385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11386 if test -n "$DSYMUTIL"; then
11387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11388 printf "%s\n" "$DSYMUTIL" >&6; }
11389 else
11390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 printf "%s\n" "no" >&6; }
11392 fi
11393
11394
11395 fi
11396 if test -z "$ac_cv_prog_DSYMUTIL"; then
11397   ac_ct_DSYMUTIL=$DSYMUTIL
11398   # Extract the first word of "dsymutil", so it can be a program name with args.
11399 set dummy dsymutil; ac_word=$2
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 printf %s "checking for $ac_word... " >&6; }
11402 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11403 then :
11404   printf %s "(cached) " >&6
11405 else $as_nop
11406   if test -n "$ac_ct_DSYMUTIL"; then
11407   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11408 else
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11411 do
11412   IFS=$as_save_IFS
11413   case $as_dir in #(((
11414     '') as_dir=./ ;;
11415     */) ;;
11416     *) as_dir=$as_dir/ ;;
11417   esac
11418     for ac_exec_ext in '' $ac_executable_extensions; do
11419   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11420     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11421     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11422     break 2
11423   fi
11424 done
11425   done
11426 IFS=$as_save_IFS
11427
11428 fi
11429 fi
11430 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11431 if test -n "$ac_ct_DSYMUTIL"; then
11432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11433 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11434 else
11435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 printf "%s\n" "no" >&6; }
11437 fi
11438
11439   if test "x$ac_ct_DSYMUTIL" = x; then
11440     DSYMUTIL=":"
11441   else
11442     case $cross_compiling:$ac_tool_warned in
11443 yes:)
11444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11446 ac_tool_warned=yes ;;
11447 esac
11448     DSYMUTIL=$ac_ct_DSYMUTIL
11449   fi
11450 else
11451   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11452 fi
11453
11454     if test -n "$ac_tool_prefix"; then
11455   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11456 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 printf %s "checking for $ac_word... " >&6; }
11459 if test ${ac_cv_prog_NMEDIT+y}
11460 then :
11461   printf %s "(cached) " >&6
11462 else $as_nop
11463   if test -n "$NMEDIT"; then
11464   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469   IFS=$as_save_IFS
11470   case $as_dir in #(((
11471     '') as_dir=./ ;;
11472     */) ;;
11473     *) as_dir=$as_dir/ ;;
11474   esac
11475     for ac_exec_ext in '' $ac_executable_extensions; do
11476   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11477     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11478     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482   done
11483 IFS=$as_save_IFS
11484
11485 fi
11486 fi
11487 NMEDIT=$ac_cv_prog_NMEDIT
11488 if test -n "$NMEDIT"; then
11489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11490 printf "%s\n" "$NMEDIT" >&6; }
11491 else
11492   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 printf "%s\n" "no" >&6; }
11494 fi
11495
11496
11497 fi
11498 if test -z "$ac_cv_prog_NMEDIT"; then
11499   ac_ct_NMEDIT=$NMEDIT
11500   # Extract the first word of "nmedit", so it can be a program name with args.
11501 set dummy nmedit; ac_word=$2
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 printf %s "checking for $ac_word... " >&6; }
11504 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11505 then :
11506   printf %s "(cached) " >&6
11507 else $as_nop
11508   if test -n "$ac_ct_NMEDIT"; then
11509   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514   IFS=$as_save_IFS
11515   case $as_dir in #(((
11516     '') as_dir=./ ;;
11517     */) ;;
11518     *) as_dir=$as_dir/ ;;
11519   esac
11520     for ac_exec_ext in '' $ac_executable_extensions; do
11521   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11522     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11523     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527   done
11528 IFS=$as_save_IFS
11529
11530 fi
11531 fi
11532 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11533 if test -n "$ac_ct_NMEDIT"; then
11534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11535 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11536 else
11537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 printf "%s\n" "no" >&6; }
11539 fi
11540
11541   if test "x$ac_ct_NMEDIT" = x; then
11542     NMEDIT=":"
11543   else
11544     case $cross_compiling:$ac_tool_warned in
11545 yes:)
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548 ac_tool_warned=yes ;;
11549 esac
11550     NMEDIT=$ac_ct_NMEDIT
11551   fi
11552 else
11553   NMEDIT="$ac_cv_prog_NMEDIT"
11554 fi
11555
11556     if test -n "$ac_tool_prefix"; then
11557   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11558 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 printf %s "checking for $ac_word... " >&6; }
11561 if test ${ac_cv_prog_LIPO+y}
11562 then :
11563   printf %s "(cached) " >&6
11564 else $as_nop
11565   if test -n "$LIPO"; then
11566   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11567 else
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571   IFS=$as_save_IFS
11572   case $as_dir in #(((
11573     '') as_dir=./ ;;
11574     */) ;;
11575     *) as_dir=$as_dir/ ;;
11576   esac
11577     for ac_exec_ext in '' $ac_executable_extensions; do
11578   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11579     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11580     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11581     break 2
11582   fi
11583 done
11584   done
11585 IFS=$as_save_IFS
11586
11587 fi
11588 fi
11589 LIPO=$ac_cv_prog_LIPO
11590 if test -n "$LIPO"; then
11591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11592 printf "%s\n" "$LIPO" >&6; }
11593 else
11594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 printf "%s\n" "no" >&6; }
11596 fi
11597
11598
11599 fi
11600 if test -z "$ac_cv_prog_LIPO"; then
11601   ac_ct_LIPO=$LIPO
11602   # Extract the first word of "lipo", so it can be a program name with args.
11603 set dummy lipo; ac_word=$2
11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 printf %s "checking for $ac_word... " >&6; }
11606 if test ${ac_cv_prog_ac_ct_LIPO+y}
11607 then :
11608   printf %s "(cached) " >&6
11609 else $as_nop
11610   if test -n "$ac_ct_LIPO"; then
11611   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11612 else
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11615 do
11616   IFS=$as_save_IFS
11617   case $as_dir in #(((
11618     '') as_dir=./ ;;
11619     */) ;;
11620     *) as_dir=$as_dir/ ;;
11621   esac
11622     for ac_exec_ext in '' $ac_executable_extensions; do
11623   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11624     ac_cv_prog_ac_ct_LIPO="lipo"
11625     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629   done
11630 IFS=$as_save_IFS
11631
11632 fi
11633 fi
11634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11635 if test -n "$ac_ct_LIPO"; then
11636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11637 printf "%s\n" "$ac_ct_LIPO" >&6; }
11638 else
11639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 printf "%s\n" "no" >&6; }
11641 fi
11642
11643   if test "x$ac_ct_LIPO" = x; then
11644     LIPO=":"
11645   else
11646     case $cross_compiling:$ac_tool_warned in
11647 yes:)
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11650 ac_tool_warned=yes ;;
11651 esac
11652     LIPO=$ac_ct_LIPO
11653   fi
11654 else
11655   LIPO="$ac_cv_prog_LIPO"
11656 fi
11657
11658     if test -n "$ac_tool_prefix"; then
11659   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11660 set dummy ${ac_tool_prefix}otool; ac_word=$2
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 printf %s "checking for $ac_word... " >&6; }
11663 if test ${ac_cv_prog_OTOOL+y}
11664 then :
11665   printf %s "(cached) " >&6
11666 else $as_nop
11667   if test -n "$OTOOL"; then
11668   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11669 else
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11672 do
11673   IFS=$as_save_IFS
11674   case $as_dir in #(((
11675     '') as_dir=./ ;;
11676     */) ;;
11677     *) as_dir=$as_dir/ ;;
11678   esac
11679     for ac_exec_ext in '' $ac_executable_extensions; do
11680   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11681     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11682     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11683     break 2
11684   fi
11685 done
11686   done
11687 IFS=$as_save_IFS
11688
11689 fi
11690 fi
11691 OTOOL=$ac_cv_prog_OTOOL
11692 if test -n "$OTOOL"; then
11693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11694 printf "%s\n" "$OTOOL" >&6; }
11695 else
11696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 printf "%s\n" "no" >&6; }
11698 fi
11699
11700
11701 fi
11702 if test -z "$ac_cv_prog_OTOOL"; then
11703   ac_ct_OTOOL=$OTOOL
11704   # Extract the first word of "otool", so it can be a program name with args.
11705 set dummy otool; ac_word=$2
11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 printf %s "checking for $ac_word... " >&6; }
11708 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11709 then :
11710   printf %s "(cached) " >&6
11711 else $as_nop
11712   if test -n "$ac_ct_OTOOL"; then
11713   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718   IFS=$as_save_IFS
11719   case $as_dir in #(((
11720     '') as_dir=./ ;;
11721     */) ;;
11722     *) as_dir=$as_dir/ ;;
11723   esac
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11726     ac_cv_prog_ac_ct_OTOOL="otool"
11727     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11737 if test -n "$ac_ct_OTOOL"; then
11738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11739 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11740 else
11741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 printf "%s\n" "no" >&6; }
11743 fi
11744
11745   if test "x$ac_ct_OTOOL" = x; then
11746     OTOOL=":"
11747   else
11748     case $cross_compiling:$ac_tool_warned in
11749 yes:)
11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11752 ac_tool_warned=yes ;;
11753 esac
11754     OTOOL=$ac_ct_OTOOL
11755   fi
11756 else
11757   OTOOL="$ac_cv_prog_OTOOL"
11758 fi
11759
11760     if test -n "$ac_tool_prefix"; then
11761   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 printf %s "checking for $ac_word... " >&6; }
11765 if test ${ac_cv_prog_OTOOL64+y}
11766 then :
11767   printf %s "(cached) " >&6
11768 else $as_nop
11769   if test -n "$OTOOL64"; then
11770   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   case $as_dir in #(((
11777     '') as_dir=./ ;;
11778     */) ;;
11779     *) as_dir=$as_dir/ ;;
11780   esac
11781     for ac_exec_ext in '' $ac_executable_extensions; do
11782   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11783     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11784     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11785     break 2
11786   fi
11787 done
11788   done
11789 IFS=$as_save_IFS
11790
11791 fi
11792 fi
11793 OTOOL64=$ac_cv_prog_OTOOL64
11794 if test -n "$OTOOL64"; then
11795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11796 printf "%s\n" "$OTOOL64" >&6; }
11797 else
11798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 printf "%s\n" "no" >&6; }
11800 fi
11801
11802
11803 fi
11804 if test -z "$ac_cv_prog_OTOOL64"; then
11805   ac_ct_OTOOL64=$OTOOL64
11806   # Extract the first word of "otool64", so it can be a program name with args.
11807 set dummy otool64; ac_word=$2
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 printf %s "checking for $ac_word... " >&6; }
11810 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11811 then :
11812   printf %s "(cached) " >&6
11813 else $as_nop
11814   if test -n "$ac_ct_OTOOL64"; then
11815   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820   IFS=$as_save_IFS
11821   case $as_dir in #(((
11822     '') as_dir=./ ;;
11823     */) ;;
11824     *) as_dir=$as_dir/ ;;
11825   esac
11826     for ac_exec_ext in '' $ac_executable_extensions; do
11827   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11828     ac_cv_prog_ac_ct_OTOOL64="otool64"
11829     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11830     break 2
11831   fi
11832 done
11833   done
11834 IFS=$as_save_IFS
11835
11836 fi
11837 fi
11838 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11839 if test -n "$ac_ct_OTOOL64"; then
11840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11841 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11842 else
11843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 printf "%s\n" "no" >&6; }
11845 fi
11846
11847   if test "x$ac_ct_OTOOL64" = x; then
11848     OTOOL64=":"
11849   else
11850     case $cross_compiling:$ac_tool_warned in
11851 yes:)
11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11854 ac_tool_warned=yes ;;
11855 esac
11856     OTOOL64=$ac_ct_OTOOL64
11857   fi
11858 else
11859   OTOOL64="$ac_cv_prog_OTOOL64"
11860 fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11889 printf %s "checking for -single_module linker flag... " >&6; }
11890 if test ${lt_cv_apple_cc_single_mod+y}
11891 then :
11892   printf %s "(cached) " >&6
11893 else $as_nop
11894   lt_cv_apple_cc_single_mod=no
11895       if test -z "$LT_MULTI_MODULE"; then
11896         # By default we will add the -single_module flag. You can override
11897         # by either setting the environment variable LT_MULTI_MODULE
11898         # non-empty at configure time, or by adding -multi_module to the
11899         # link flags.
11900         rm -rf libconftest.dylib*
11901         echo "int foo(void){return 1;}" > conftest.c
11902         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11903 -dynamiclib -Wl,-single_module conftest.c" >&5
11904         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11905           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11906         _lt_result=$?
11907         # If there is a non-empty error log, and "single_module"
11908         # appears in it, assume the flag caused a linker warning
11909         if test -s conftest.err && $GREP single_module conftest.err; then
11910           cat conftest.err >&5
11911         # Otherwise, if the output was created with a 0 exit code from
11912         # the compiler, it worked.
11913         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11914           lt_cv_apple_cc_single_mod=yes
11915         else
11916           cat conftest.err >&5
11917         fi
11918         rm -rf libconftest.dylib*
11919         rm -f conftest.*
11920       fi
11921 fi
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11923 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11924
11925     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11926 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11927 if test ${lt_cv_ld_exported_symbols_list+y}
11928 then :
11929   printf %s "(cached) " >&6
11930 else $as_nop
11931   lt_cv_ld_exported_symbols_list=no
11932       save_LDFLAGS=$LDFLAGS
11933       echo "_main" > conftest.sym
11934       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11935       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h.  */
11937
11938 int main (void)
11939 {
11940
11941  ;
11942  return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"
11946 then :
11947   lt_cv_ld_exported_symbols_list=yes
11948 else $as_nop
11949   lt_cv_ld_exported_symbols_list=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11952     conftest$ac_exeext conftest.$ac_ext
11953         LDFLAGS=$save_LDFLAGS
11954
11955 fi
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11957 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11958
11959     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11960 printf %s "checking for -force_load linker flag... " >&6; }
11961 if test ${lt_cv_ld_force_load+y}
11962 then :
11963   printf %s "(cached) " >&6
11964 else $as_nop
11965   lt_cv_ld_force_load=no
11966       cat > conftest.c << _LT_EOF
11967 int forced_loaded() { return 2;}
11968 _LT_EOF
11969       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11970       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11971       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11972       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11973       echo "$RANLIB libconftest.a" >&5
11974       $RANLIB libconftest.a 2>&5
11975       cat > conftest.c << _LT_EOF
11976 int main() { return 0;}
11977 _LT_EOF
11978       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11979       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11980       _lt_result=$?
11981       if test -s conftest.err && $GREP force_load conftest.err; then
11982         cat conftest.err >&5
11983       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11984         lt_cv_ld_force_load=yes
11985       else
11986         cat conftest.err >&5
11987       fi
11988         rm -f conftest.err libconftest.a conftest conftest.c
11989         rm -rf conftest.dSYM
11990
11991 fi
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11993 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11994     case $host_os in
11995     rhapsody* | darwin1.[012])
11996       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11997     darwin1.*)
11998       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11999     darwin*)
12000       case $MACOSX_DEPLOYMENT_TARGET,$host in
12001         10.[012],*|,*powerpc*-darwin[5-8]*)
12002           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12003         *)
12004           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12005       esac
12006     ;;
12007   esac
12008     if test yes = "$lt_cv_apple_cc_single_mod"; then
12009       _lt_dar_single_mod='$single_module'
12010     fi
12011     if test yes = "$lt_cv_ld_exported_symbols_list"; then
12012       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12013     else
12014       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12015     fi
12016     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12017       _lt_dsymutil='~$DSYMUTIL $lib || :'
12018     else
12019       _lt_dsymutil=
12020     fi
12021     ;;
12022   esac
12023
12024 # func_munge_path_list VARIABLE PATH
12025 # -----------------------------------
12026 # VARIABLE is name of variable containing _space_ separated list of
12027 # directories to be munged by the contents of PATH, which is string
12028 # having a format:
12029 # "DIR[:DIR]:"
12030 #       string "DIR[ DIR]" will be prepended to VARIABLE
12031 # ":DIR[:DIR]"
12032 #       string "DIR[ DIR]" will be appended to VARIABLE
12033 # "DIRP[:DIRP]::[DIRA:]DIRA"
12034 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12035 #       "DIRA[ DIRA]" will be appended to VARIABLE
12036 # "DIR[:DIR]"
12037 #       VARIABLE will be replaced by "DIR[ DIR]"
12038 func_munge_path_list ()
12039 {
12040     case x$2 in
12041     x)
12042         ;;
12043     *:)
12044         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12045         ;;
12046     x:*)
12047         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12048         ;;
12049     *::*)
12050         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12051         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12052         ;;
12053     *)
12054         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12055         ;;
12056     esac
12057 }
12058
12059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12060 "
12061 if test "x$ac_cv_header_dlfcn_h" = xyes
12062 then :
12063   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12064
12065 fi
12066
12067 # ------------------------------------ #
12068 #  Determine libtool default behavior  #
12069 # ------------------------------------ #
12070
12071 #
12072 # Default behavior is to enable shared and static libraries on systems
12073 # where libtool knows how to build both library versions, and does not
12074 # require separate configuration and build runs for each flavor.
12075 #
12076
12077 xc_lt_want_enable_shared='yes'
12078 xc_lt_want_enable_static='yes'
12079
12080 #
12081 # User may have disabled shared or static libraries.
12082 #
12083 case "x$enable_shared" in # (
12084   xno)
12085     xc_lt_want_enable_shared='no'
12086     ;;
12087 esac
12088 case "x$enable_static" in # (
12089   xno)
12090     xc_lt_want_enable_static='no'
12091     ;;
12092 esac
12093 if test "x$xc_lt_want_enable_shared" = 'xno' &&
12094   test "x$xc_lt_want_enable_static" = 'xno'; then
12095   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12096 fi
12097
12098 #
12099 # Default behavior on systems that require independent configuration
12100 # and build runs for shared and static is to enable shared libraries
12101 # and disable static ones. On these systems option '--disable-shared'
12102 # must be used in order to build a proper static library.
12103 #
12104
12105 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12106   test "x$xc_lt_want_enable_static" = 'xyes'; then
12107   case $host_os in # (
12108     pw32* | cegcc* | os2* | aix*)
12109       xc_lt_want_enable_static='no'
12110       ;;
12111   esac
12112 fi
12113
12114 #
12115 # Make libtool aware of current shared and static library preferences
12116 # taking in account that, depending on host characteristics, libtool
12117 # may modify these option preferences later in this configure script.
12118 #
12119
12120 enable_shared=$xc_lt_want_enable_shared
12121 enable_static=$xc_lt_want_enable_static
12122
12123 #
12124 # Default behavior is to build PIC objects for shared libraries and
12125 # non-PIC objects for static libraries.
12126 #
12127
12128 xc_lt_want_with_pic='default'
12129
12130 #
12131 # User may have specified PIC preference.
12132 #
12133
12134 case "x$with_pic" in # ((
12135   xno)
12136     xc_lt_want_with_pic='no'
12137     ;;
12138   xyes)
12139     xc_lt_want_with_pic='yes'
12140     ;;
12141 esac
12142
12143 #
12144 # Default behavior on some systems where building a shared library out
12145 # of non-PIC compiled objects will fail with following linker error
12146 # "relocation R_X86_64_32 can not be used when making a shared object"
12147 # is to build PIC objects even for static libraries. This behavior may
12148 # be overridden using 'configure --disable-shared --without-pic'.
12149 #
12150
12151 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12152   case $host_cpu in # (
12153     x86_64 | amd64 | ia64)
12154       case $host_os in # (
12155         linux* | freebsd* | midnightbsd*)
12156           xc_lt_want_with_pic='yes'
12157           ;;
12158       esac
12159       ;;
12160   esac
12161 fi
12162
12163 #
12164 # Make libtool aware of current PIC preference taking in account that,
12165 # depending on host characteristics, libtool may modify PIC default
12166 # behavior to fit host system idiosyncrasies later in this script.
12167 #
12168
12169 with_pic=$xc_lt_want_with_pic
12170
12171 ## ----------------------- ##
12172 ##  Start of libtool code  ##
12173 ## ----------------------- ##
12174
12175
12176
12177
12178 # Set options
12179 enable_win32_dll=yes
12180
12181 case $host in
12182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12183   if test -n "$ac_tool_prefix"; then
12184   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}as; ac_word=$2
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 printf %s "checking for $ac_word... " >&6; }
12188 if test ${ac_cv_prog_AS+y}
12189 then :
12190   printf %s "(cached) " >&6
12191 else $as_nop
12192   if test -n "$AS"; then
12193   ac_cv_prog_AS="$AS" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   case $as_dir in #(((
12200     '') as_dir=./ ;;
12201     */) ;;
12202     *) as_dir=$as_dir/ ;;
12203   esac
12204     for ac_exec_ext in '' $ac_executable_extensions; do
12205   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12206     ac_cv_prog_AS="${ac_tool_prefix}as"
12207     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12208     break 2
12209   fi
12210 done
12211   done
12212 IFS=$as_save_IFS
12213
12214 fi
12215 fi
12216 AS=$ac_cv_prog_AS
12217 if test -n "$AS"; then
12218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12219 printf "%s\n" "$AS" >&6; }
12220 else
12221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 printf "%s\n" "no" >&6; }
12223 fi
12224
12225
12226 fi
12227 if test -z "$ac_cv_prog_AS"; then
12228   ac_ct_AS=$AS
12229   # Extract the first word of "as", so it can be a program name with args.
12230 set dummy as; ac_word=$2
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 printf %s "checking for $ac_word... " >&6; }
12233 if test ${ac_cv_prog_ac_ct_AS+y}
12234 then :
12235   printf %s "(cached) " >&6
12236 else $as_nop
12237   if test -n "$ac_ct_AS"; then
12238   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12242 do
12243   IFS=$as_save_IFS
12244   case $as_dir in #(((
12245     '') as_dir=./ ;;
12246     */) ;;
12247     *) as_dir=$as_dir/ ;;
12248   esac
12249     for ac_exec_ext in '' $ac_executable_extensions; do
12250   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12251     ac_cv_prog_ac_ct_AS="as"
12252     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12253     break 2
12254   fi
12255 done
12256   done
12257 IFS=$as_save_IFS
12258
12259 fi
12260 fi
12261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12262 if test -n "$ac_ct_AS"; then
12263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12264 printf "%s\n" "$ac_ct_AS" >&6; }
12265 else
12266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 printf "%s\n" "no" >&6; }
12268 fi
12269
12270   if test "x$ac_ct_AS" = x; then
12271     AS="false"
12272   else
12273     case $cross_compiling:$ac_tool_warned in
12274 yes:)
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277 ac_tool_warned=yes ;;
12278 esac
12279     AS=$ac_ct_AS
12280   fi
12281 else
12282   AS="$ac_cv_prog_AS"
12283 fi
12284
12285   if test -n "$ac_tool_prefix"; then
12286   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12287 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 printf %s "checking for $ac_word... " >&6; }
12290 if test ${ac_cv_prog_DLLTOOL+y}
12291 then :
12292   printf %s "(cached) " >&6
12293 else $as_nop
12294   if test -n "$DLLTOOL"; then
12295   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12296 else
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12299 do
12300   IFS=$as_save_IFS
12301   case $as_dir in #(((
12302     '') as_dir=./ ;;
12303     */) ;;
12304     *) as_dir=$as_dir/ ;;
12305   esac
12306     for ac_exec_ext in '' $ac_executable_extensions; do
12307   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12308     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12309     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12310     break 2
12311   fi
12312 done
12313   done
12314 IFS=$as_save_IFS
12315
12316 fi
12317 fi
12318 DLLTOOL=$ac_cv_prog_DLLTOOL
12319 if test -n "$DLLTOOL"; then
12320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12321 printf "%s\n" "$DLLTOOL" >&6; }
12322 else
12323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 printf "%s\n" "no" >&6; }
12325 fi
12326
12327
12328 fi
12329 if test -z "$ac_cv_prog_DLLTOOL"; then
12330   ac_ct_DLLTOOL=$DLLTOOL
12331   # Extract the first word of "dlltool", so it can be a program name with args.
12332 set dummy dlltool; ac_word=$2
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 printf %s "checking for $ac_word... " >&6; }
12335 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12336 then :
12337   printf %s "(cached) " >&6
12338 else $as_nop
12339   if test -n "$ac_ct_DLLTOOL"; then
12340   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345   IFS=$as_save_IFS
12346   case $as_dir in #(((
12347     '') as_dir=./ ;;
12348     */) ;;
12349     *) as_dir=$as_dir/ ;;
12350   esac
12351     for ac_exec_ext in '' $ac_executable_extensions; do
12352   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12353     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12354     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12355     break 2
12356   fi
12357 done
12358   done
12359 IFS=$as_save_IFS
12360
12361 fi
12362 fi
12363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12364 if test -n "$ac_ct_DLLTOOL"; then
12365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12366 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12367 else
12368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 printf "%s\n" "no" >&6; }
12370 fi
12371
12372   if test "x$ac_ct_DLLTOOL" = x; then
12373     DLLTOOL="false"
12374   else
12375     case $cross_compiling:$ac_tool_warned in
12376 yes:)
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12379 ac_tool_warned=yes ;;
12380 esac
12381     DLLTOOL=$ac_ct_DLLTOOL
12382   fi
12383 else
12384   DLLTOOL="$ac_cv_prog_DLLTOOL"
12385 fi
12386
12387   if test -n "$ac_tool_prefix"; then
12388   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 printf %s "checking for $ac_word... " >&6; }
12392 if test ${ac_cv_prog_OBJDUMP+y}
12393 then :
12394   printf %s "(cached) " >&6
12395 else $as_nop
12396   if test -n "$OBJDUMP"; then
12397   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   case $as_dir in #(((
12404     '') as_dir=./ ;;
12405     */) ;;
12406     *) as_dir=$as_dir/ ;;
12407   esac
12408     for ac_exec_ext in '' $ac_executable_extensions; do
12409   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12410     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12411     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12412     break 2
12413   fi
12414 done
12415   done
12416 IFS=$as_save_IFS
12417
12418 fi
12419 fi
12420 OBJDUMP=$ac_cv_prog_OBJDUMP
12421 if test -n "$OBJDUMP"; then
12422   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12423 printf "%s\n" "$OBJDUMP" >&6; }
12424 else
12425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 printf "%s\n" "no" >&6; }
12427 fi
12428
12429
12430 fi
12431 if test -z "$ac_cv_prog_OBJDUMP"; then
12432   ac_ct_OBJDUMP=$OBJDUMP
12433   # Extract the first word of "objdump", so it can be a program name with args.
12434 set dummy objdump; ac_word=$2
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 printf %s "checking for $ac_word... " >&6; }
12437 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12438 then :
12439   printf %s "(cached) " >&6
12440 else $as_nop
12441   if test -n "$ac_ct_OBJDUMP"; then
12442   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447   IFS=$as_save_IFS
12448   case $as_dir in #(((
12449     '') as_dir=./ ;;
12450     */) ;;
12451     *) as_dir=$as_dir/ ;;
12452   esac
12453     for ac_exec_ext in '' $ac_executable_extensions; do
12454   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12455     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12457     break 2
12458   fi
12459 done
12460   done
12461 IFS=$as_save_IFS
12462
12463 fi
12464 fi
12465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12466 if test -n "$ac_ct_OBJDUMP"; then
12467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12468 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12469 else
12470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 printf "%s\n" "no" >&6; }
12472 fi
12473
12474   if test "x$ac_ct_OBJDUMP" = x; then
12475     OBJDUMP="false"
12476   else
12477     case $cross_compiling:$ac_tool_warned in
12478 yes:)
12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481 ac_tool_warned=yes ;;
12482 esac
12483     OBJDUMP=$ac_ct_OBJDUMP
12484   fi
12485 else
12486   OBJDUMP="$ac_cv_prog_OBJDUMP"
12487 fi
12488
12489   ;;
12490 esac
12491
12492 test -z "$AS" && AS=as
12493
12494
12495
12496
12497
12498 test -z "$DLLTOOL" && DLLTOOL=dlltool
12499
12500
12501
12502
12503
12504 test -z "$OBJDUMP" && OBJDUMP=objdump
12505
12506
12507
12508
12509
12510
12511
12512         enable_dlopen=no
12513
12514
12515
12516             # Check whether --enable-shared was given.
12517 if test ${enable_shared+y}
12518 then :
12519   enableval=$enable_shared; p=${PACKAGE-default}
12520     case $enableval in
12521     yes) enable_shared=yes ;;
12522     no) enable_shared=no ;;
12523     *)
12524       enable_shared=no
12525       # Look at the argument we got.  We use all the common list separators.
12526       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12527       for pkg in $enableval; do
12528         IFS=$lt_save_ifs
12529         if test "X$pkg" = "X$p"; then
12530           enable_shared=yes
12531         fi
12532       done
12533       IFS=$lt_save_ifs
12534       ;;
12535     esac
12536 else $as_nop
12537   enable_shared=yes
12538 fi
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548   # Check whether --enable-static was given.
12549 if test ${enable_static+y}
12550 then :
12551   enableval=$enable_static; p=${PACKAGE-default}
12552     case $enableval in
12553     yes) enable_static=yes ;;
12554     no) enable_static=no ;;
12555     *)
12556      enable_static=no
12557       # Look at the argument we got.  We use all the common list separators.
12558       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12559       for pkg in $enableval; do
12560         IFS=$lt_save_ifs
12561         if test "X$pkg" = "X$p"; then
12562           enable_static=yes
12563         fi
12564       done
12565       IFS=$lt_save_ifs
12566       ;;
12567     esac
12568 else $as_nop
12569   enable_static=yes
12570 fi
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 # Check whether --with-pic was given.
12582 if test ${with_pic+y}
12583 then :
12584   withval=$with_pic; lt_p=${PACKAGE-default}
12585     case $withval in
12586     yes|no) pic_mode=$withval ;;
12587     *)
12588       pic_mode=default
12589       # Look at the argument we got.  We use all the common list separators.
12590       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12591       for lt_pkg in $withval; do
12592         IFS=$lt_save_ifs
12593         if test "X$lt_pkg" = "X$lt_p"; then
12594           pic_mode=yes
12595         fi
12596       done
12597       IFS=$lt_save_ifs
12598       ;;
12599     esac
12600 else $as_nop
12601   pic_mode=default
12602 fi
12603
12604
12605
12606
12607
12608
12609
12610
12611   # Check whether --enable-fast-install was given.
12612 if test ${enable_fast_install+y}
12613 then :
12614   enableval=$enable_fast_install; p=${PACKAGE-default}
12615     case $enableval in
12616     yes) enable_fast_install=yes ;;
12617     no) enable_fast_install=no ;;
12618     *)
12619       enable_fast_install=no
12620       # Look at the argument we got.  We use all the common list separators.
12621       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12622       for pkg in $enableval; do
12623         IFS=$lt_save_ifs
12624         if test "X$pkg" = "X$p"; then
12625           enable_fast_install=yes
12626         fi
12627       done
12628       IFS=$lt_save_ifs
12629       ;;
12630     esac
12631 else $as_nop
12632   enable_fast_install=yes
12633 fi
12634
12635
12636
12637
12638
12639
12640
12641
12642   shared_archive_member_spec=
12643 case $host,$enable_shared in
12644 power*-*-aix[5-9]*,yes)
12645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12646 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12647
12648 # Check whether --with-aix-soname was given.
12649 if test ${with_aix_soname+y}
12650 then :
12651   withval=$with_aix_soname; case $withval in
12652     aix|svr4|both)
12653       ;;
12654     *)
12655       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12656       ;;
12657     esac
12658     lt_cv_with_aix_soname=$with_aix_soname
12659 else $as_nop
12660   if test ${lt_cv_with_aix_soname+y}
12661 then :
12662   printf %s "(cached) " >&6
12663 else $as_nop
12664   lt_cv_with_aix_soname=aix
12665 fi
12666
12667     with_aix_soname=$lt_cv_with_aix_soname
12668 fi
12669
12670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12671 printf "%s\n" "$with_aix_soname" >&6; }
12672   if test aix != "$with_aix_soname"; then
12673     # For the AIX way of multilib, we name the shared archive member
12674     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12675     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12676     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12677     # the AIX toolchain works better with OBJECT_MODE set (default 32).
12678     if test 64 = "${OBJECT_MODE-32}"; then
12679       shared_archive_member_spec=shr_64
12680     else
12681       shared_archive_member_spec=shr
12682     fi
12683   fi
12684   ;;
12685 *)
12686   with_aix_soname=aix
12687   ;;
12688 esac
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699 # This can be used to rebuild libtool when needed
12700 LIBTOOL_DEPS=$ltmain
12701
12702 # Always use our own libtool.
12703 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734 test -z "$LN_S" && LN_S="ln -s"
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749 if test -n "${ZSH_VERSION+set}"; then
12750    setopt NO_GLOB_SUBST
12751 fi
12752
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12754 printf %s "checking for objdir... " >&6; }
12755 if test ${lt_cv_objdir+y}
12756 then :
12757   printf %s "(cached) " >&6
12758 else $as_nop
12759   rm -f .libs 2>/dev/null
12760 mkdir .libs 2>/dev/null
12761 if test -d .libs; then
12762   lt_cv_objdir=.libs
12763 else
12764   # MS-DOS does not allow filenames that begin with a dot.
12765   lt_cv_objdir=_libs
12766 fi
12767 rmdir .libs 2>/dev/null
12768 fi
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12770 printf "%s\n" "$lt_cv_objdir" >&6; }
12771 objdir=$lt_cv_objdir
12772
12773
12774
12775
12776
12777 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12778
12779
12780
12781
12782 case $host_os in
12783 aix3*)
12784   # AIX sometimes has problems with the GCC collect2 program.  For some
12785   # reason, if we set the COLLECT_NAMES environment variable, the problems
12786   # vanish in a puff of smoke.
12787   if test set != "${COLLECT_NAMES+set}"; then
12788     COLLECT_NAMES=
12789     export COLLECT_NAMES
12790   fi
12791   ;;
12792 esac
12793
12794 # Global variables:
12795 ofile=libtool
12796 can_build_shared=yes
12797
12798 # All known linkers require a '.a' archive for static linking (except MSVC and
12799 # ICC, which need '.lib').
12800 libext=a
12801
12802 with_gnu_ld=$lt_cv_prog_gnu_ld
12803
12804 old_CC=$CC
12805 old_CFLAGS=$CFLAGS
12806
12807 # Set sane defaults for various variables
12808 test -z "$CC" && CC=cc
12809 test -z "$LTCC" && LTCC=$CC
12810 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12811 test -z "$LD" && LD=ld
12812 test -z "$ac_objext" && ac_objext=o
12813
12814 func_cc_basename $compiler
12815 cc_basename=$func_cc_basename_result
12816
12817
12818 # Only perform the check for file, if the check method requires it
12819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12820 case $deplibs_check_method in
12821 file_magic*)
12822   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12823     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12824 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12825 if test ${lt_cv_path_MAGIC_CMD+y}
12826 then :
12827   printf %s "(cached) " >&6
12828 else $as_nop
12829   case $MAGIC_CMD in
12830 [\\/*] |  ?:[\\/]*)
12831   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12832   ;;
12833 *)
12834   lt_save_MAGIC_CMD=$MAGIC_CMD
12835   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12836   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12837   for ac_dir in $ac_dummy; do
12838     IFS=$lt_save_ifs
12839     test -z "$ac_dir" && ac_dir=.
12840     if test -f "$ac_dir/${ac_tool_prefix}file"; then
12841       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12842       if test -n "$file_magic_test_file"; then
12843         case $deplibs_check_method in
12844         "file_magic "*)
12845           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12846           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12847           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12848             $EGREP "$file_magic_regex" > /dev/null; then
12849             :
12850           else
12851             cat <<_LT_EOF 1>&2
12852
12853 *** Warning: the command libtool uses to detect shared libraries,
12854 *** $file_magic_cmd, produces output that libtool cannot recognize.
12855 *** The result is that libtool may fail to recognize shared libraries
12856 *** as such.  This will affect the creation of libtool libraries that
12857 *** depend on shared libraries, but programs linked with such libtool
12858 *** libraries will work regardless of this problem.  Nevertheless, you
12859 *** may want to report the problem to your system manager and/or to
12860 *** bug-libtool@gnu.org
12861
12862 _LT_EOF
12863           fi ;;
12864         esac
12865       fi
12866       break
12867     fi
12868   done
12869   IFS=$lt_save_ifs
12870   MAGIC_CMD=$lt_save_MAGIC_CMD
12871   ;;
12872 esac
12873 fi
12874
12875 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12876 if test -n "$MAGIC_CMD"; then
12877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12878 printf "%s\n" "$MAGIC_CMD" >&6; }
12879 else
12880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 printf "%s\n" "no" >&6; }
12882 fi
12883
12884
12885
12886
12887
12888 if test -z "$lt_cv_path_MAGIC_CMD"; then
12889   if test -n "$ac_tool_prefix"; then
12890     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12891 printf %s "checking for file... " >&6; }
12892 if test ${lt_cv_path_MAGIC_CMD+y}
12893 then :
12894   printf %s "(cached) " >&6
12895 else $as_nop
12896   case $MAGIC_CMD in
12897 [\\/*] |  ?:[\\/]*)
12898   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12899   ;;
12900 *)
12901   lt_save_MAGIC_CMD=$MAGIC_CMD
12902   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12903   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12904   for ac_dir in $ac_dummy; do
12905     IFS=$lt_save_ifs
12906     test -z "$ac_dir" && ac_dir=.
12907     if test -f "$ac_dir/file"; then
12908       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12909       if test -n "$file_magic_test_file"; then
12910         case $deplibs_check_method in
12911         "file_magic "*)
12912           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12913           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12914           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12915             $EGREP "$file_magic_regex" > /dev/null; then
12916             :
12917           else
12918             cat <<_LT_EOF 1>&2
12919
12920 *** Warning: the command libtool uses to detect shared libraries,
12921 *** $file_magic_cmd, produces output that libtool cannot recognize.
12922 *** The result is that libtool may fail to recognize shared libraries
12923 *** as such.  This will affect the creation of libtool libraries that
12924 *** depend on shared libraries, but programs linked with such libtool
12925 *** libraries will work regardless of this problem.  Nevertheless, you
12926 *** may want to report the problem to your system manager and/or to
12927 *** bug-libtool@gnu.org
12928
12929 _LT_EOF
12930           fi ;;
12931         esac
12932       fi
12933       break
12934     fi
12935   done
12936   IFS=$lt_save_ifs
12937   MAGIC_CMD=$lt_save_MAGIC_CMD
12938   ;;
12939 esac
12940 fi
12941
12942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12943 if test -n "$MAGIC_CMD"; then
12944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12945 printf "%s\n" "$MAGIC_CMD" >&6; }
12946 else
12947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 printf "%s\n" "no" >&6; }
12949 fi
12950
12951
12952   else
12953     MAGIC_CMD=:
12954   fi
12955 fi
12956
12957   fi
12958   ;;
12959 esac
12960
12961 # Use C for the default configuration in the libtool script
12962
12963 lt_save_CC=$CC
12964 ac_ext=c
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969
12970
12971 # Source file extension for C test sources.
12972 ac_ext=c
12973
12974 # Object file extension for compiled C test sources.
12975 objext=o
12976 objext=$objext
12977
12978 # Code to be used in simple compile tests
12979 lt_simple_compile_test_code="int some_variable = 0;"
12980
12981 # Code to be used in simple link tests
12982 lt_simple_link_test_code='int main(){return(0);}'
12983
12984
12985
12986
12987
12988
12989
12990 # If no C compiler was specified, use CC.
12991 LTCC=${LTCC-"$CC"}
12992
12993 # If no C compiler flags were specified, use CFLAGS.
12994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995
12996 # Allow CC to be a program name with arguments.
12997 compiler=$CC
12998
12999 # Save the default compiler, since it gets overwritten when the other
13000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13001 compiler_DEFAULT=$CC
13002
13003 # save warnings/boilerplate of simple test code
13004 ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13008 $RM conftest*
13009
13010 ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13014 $RM -r conftest*
13015
13016
13017 ## CAVEAT EMPTOR:
13018 ## There is no encapsulation within the following macros, do not change
13019 ## the running order or otherwise move them around unless you know exactly
13020 ## what you are doing...
13021 if test -n "$compiler"; then
13022
13023 lt_prog_compiler_no_builtin_flag=
13024
13025 if test yes = "$GCC"; then
13026   case $cc_basename in
13027   nvcc*)
13028     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13029   *)
13030     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13031   esac
13032
13033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13034 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13035 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13036 then :
13037   printf %s "(cached) " >&6
13038 else $as_nop
13039   lt_cv_prog_compiler_rtti_exceptions=no
13040    ac_outfile=conftest.$ac_objext
13041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13042    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
13043    # Insert the option either (1) after the last *FLAGS variable, or
13044    # (2) before a word containing "conftest.", or (3) at the end.
13045    # Note that $ac_compile itself does not contain backslashes and begins
13046    # with a dollar sign (not a hyphen), so the echo should work correctly.
13047    # The option is referenced via a variable to avoid confusing sed.
13048    lt_compile=`echo "$ac_compile" | $SED \
13049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051    -e 's:$: $lt_compiler_flag:'`
13052    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13053    (eval "$lt_compile" 2>conftest.err)
13054    ac_status=$?
13055    cat conftest.err >&5
13056    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057    if (exit $ac_status) && test -s "$ac_outfile"; then
13058      # The compiler can only warn and ignore the option if not recognized
13059      # So say no if there are warnings other than the usual output.
13060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13063        lt_cv_prog_compiler_rtti_exceptions=yes
13064      fi
13065    fi
13066    $RM conftest*
13067
13068 fi
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13070 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13071
13072 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13073     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13074 else
13075     :
13076 fi
13077
13078 fi
13079
13080
13081
13082
13083
13084
13085   lt_prog_compiler_wl=
13086 lt_prog_compiler_pic=
13087 lt_prog_compiler_static=
13088
13089
13090   if test yes = "$GCC"; then
13091     lt_prog_compiler_wl='-Wl,'
13092     lt_prog_compiler_static='-static'
13093
13094     case $host_os in
13095       aix*)
13096       # All AIX code is PIC.
13097       if test ia64 = "$host_cpu"; then
13098         # AIX 5 now supports IA64 processor
13099         lt_prog_compiler_static='-Bstatic'
13100       fi
13101       lt_prog_compiler_pic='-fPIC'
13102       ;;
13103
13104     amigaos*)
13105       case $host_cpu in
13106       powerpc)
13107             # see comment about AmigaOS4 .so support
13108             lt_prog_compiler_pic='-fPIC'
13109         ;;
13110       m68k)
13111             # FIXME: we need at least 68020 code to build shared libraries, but
13112             # adding the '-m68020' flag to GCC prevents building anything better,
13113             # like '-m68040'.
13114             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13115         ;;
13116       esac
13117       ;;
13118
13119     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13120       # PIC is the default for these OSes.
13121       ;;
13122
13123     mingw* | cygwin* | pw32* | os2* | cegcc*)
13124       # This hack is so that the source file can tell whether it is being
13125       # built for inclusion in a dll (and should export symbols for example).
13126       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13127       # (--disable-auto-import) libraries
13128       lt_prog_compiler_pic='-DDLL_EXPORT'
13129       case $host_os in
13130       os2*)
13131         lt_prog_compiler_static='$wl-static'
13132         ;;
13133       esac
13134       ;;
13135
13136     darwin* | rhapsody*)
13137       # PIC is the default on this platform
13138       # Common symbols not allowed in MH_DYLIB files
13139       lt_prog_compiler_pic='-fno-common'
13140       ;;
13141
13142     haiku*)
13143       # PIC is the default for Haiku.
13144       # The "-static" flag exists, but is broken.
13145       lt_prog_compiler_static=
13146       ;;
13147
13148     hpux*)
13149       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13150       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13151       # sets the default TLS model and affects inlining.
13152       case $host_cpu in
13153       hppa*64*)
13154         # +Z the default
13155         ;;
13156       *)
13157         lt_prog_compiler_pic='-fPIC'
13158         ;;
13159       esac
13160       ;;
13161
13162     interix[3-9]*)
13163       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13164       # Instead, we relocate shared libraries at runtime.
13165       ;;
13166
13167     msdosdjgpp*)
13168       # Just because we use GCC doesn't mean we suddenly get shared libraries
13169       # on systems that don't support them.
13170       lt_prog_compiler_can_build_shared=no
13171       enable_shared=no
13172       ;;
13173
13174     *nto* | *qnx*)
13175       # QNX uses GNU C++, but need to define -shared option too, otherwise
13176       # it will coredump.
13177       lt_prog_compiler_pic='-fPIC -shared'
13178       ;;
13179
13180     sysv4*MP*)
13181       if test -d /usr/nec; then
13182         lt_prog_compiler_pic=-Kconform_pic
13183       fi
13184       ;;
13185
13186     *)
13187       lt_prog_compiler_pic='-fPIC'
13188       ;;
13189     esac
13190
13191     case $cc_basename in
13192     nvcc*) # Cuda Compiler Driver 2.2
13193       lt_prog_compiler_wl='-Xlinker '
13194       if test -n "$lt_prog_compiler_pic"; then
13195         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13196       fi
13197       ;;
13198     esac
13199   else
13200     # PORTME Check for flag to pass linker flags through the system compiler.
13201     case $host_os in
13202     aix*)
13203       lt_prog_compiler_wl='-Wl,'
13204       if test ia64 = "$host_cpu"; then
13205         # AIX 5 now supports IA64 processor
13206         lt_prog_compiler_static='-Bstatic'
13207       else
13208         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13209       fi
13210       ;;
13211
13212     darwin* | rhapsody*)
13213       # PIC is the default on this platform
13214       # Common symbols not allowed in MH_DYLIB files
13215       lt_prog_compiler_pic='-fno-common'
13216       case $cc_basename in
13217       nagfor*)
13218         # NAG Fortran compiler
13219         lt_prog_compiler_wl='-Wl,-Wl,,'
13220         lt_prog_compiler_pic='-PIC'
13221         lt_prog_compiler_static='-Bstatic'
13222         ;;
13223       esac
13224       ;;
13225
13226     mingw* | cygwin* | pw32* | os2* | cegcc*)
13227       # This hack is so that the source file can tell whether it is being
13228       # built for inclusion in a dll (and should export symbols for example).
13229       lt_prog_compiler_pic='-DDLL_EXPORT'
13230       case $host_os in
13231       os2*)
13232         lt_prog_compiler_static='$wl-static'
13233         ;;
13234       esac
13235       ;;
13236
13237     hpux9* | hpux10* | hpux11*)
13238       lt_prog_compiler_wl='-Wl,'
13239       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240       # not for PA HP-UX.
13241       case $host_cpu in
13242       hppa*64*|ia64*)
13243         # +Z the default
13244         ;;
13245       *)
13246         lt_prog_compiler_pic='+Z'
13247         ;;
13248       esac
13249       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13250       lt_prog_compiler_static='$wl-a ${wl}archive'
13251       ;;
13252
13253     irix5* | irix6* | nonstopux*)
13254       lt_prog_compiler_wl='-Wl,'
13255       # PIC (with -KPIC) is the default.
13256       lt_prog_compiler_static='-non_shared'
13257       ;;
13258
13259     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13260       case $cc_basename in
13261       # old Intel for x86_64, which still supported -KPIC.
13262       ecc*)
13263         lt_prog_compiler_wl='-Wl,'
13264         lt_prog_compiler_pic='-KPIC'
13265         lt_prog_compiler_static='-static'
13266         ;;
13267       # flang / f18. f95 an alias for gfortran or flang on Debian
13268       flang* | f18* | f95*)
13269         lt_prog_compiler_wl='-Wl,'
13270         lt_prog_compiler_pic='-fPIC'
13271         lt_prog_compiler_static='-static'
13272         ;;
13273       # icc used to be incompatible with GCC.
13274       # ICC 10 doesn't accept -KPIC any more.
13275       icc* | ifort*)
13276         lt_prog_compiler_wl='-Wl,'
13277         lt_prog_compiler_pic='-fPIC'
13278         lt_prog_compiler_static='-static'
13279         ;;
13280       # Lahey Fortran 8.1.
13281       lf95*)
13282         lt_prog_compiler_wl='-Wl,'
13283         lt_prog_compiler_pic='--shared'
13284         lt_prog_compiler_static='--static'
13285         ;;
13286       nagfor*)
13287         # NAG Fortran compiler
13288         lt_prog_compiler_wl='-Wl,-Wl,,'
13289         lt_prog_compiler_pic='-PIC'
13290         lt_prog_compiler_static='-Bstatic'
13291         ;;
13292       tcc*)
13293         # Fabrice Bellard et al's Tiny C Compiler
13294         lt_prog_compiler_wl='-Wl,'
13295         lt_prog_compiler_pic='-fPIC'
13296         lt_prog_compiler_static='-static'
13297         ;;
13298       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13299         # Portland Group compilers (*not* the Pentium gcc compiler,
13300         # which looks to be a dead project)
13301         lt_prog_compiler_wl='-Wl,'
13302         lt_prog_compiler_pic='-fpic'
13303         lt_prog_compiler_static='-Bstatic'
13304         ;;
13305       ccc*)
13306         lt_prog_compiler_wl='-Wl,'
13307         # All Alpha code is PIC.
13308         lt_prog_compiler_static='-non_shared'
13309         ;;
13310       xl* | bgxl* | bgf* | mpixl*)
13311         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13312         lt_prog_compiler_wl='-Wl,'
13313         lt_prog_compiler_pic='-qpic'
13314         lt_prog_compiler_static='-qstaticlink'
13315         ;;
13316       *)
13317         case `$CC -V 2>&1 | $SED 5q` in
13318         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13319           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13320           lt_prog_compiler_pic='-KPIC'
13321           lt_prog_compiler_static='-Bstatic'
13322           lt_prog_compiler_wl=''
13323           ;;
13324         *Sun\ F* | *Sun*Fortran*)
13325           lt_prog_compiler_pic='-KPIC'
13326           lt_prog_compiler_static='-Bstatic'
13327           lt_prog_compiler_wl='-Qoption ld '
13328           ;;
13329         *Sun\ C*)
13330           # Sun C 5.9
13331           lt_prog_compiler_pic='-KPIC'
13332           lt_prog_compiler_static='-Bstatic'
13333           lt_prog_compiler_wl='-Wl,'
13334           ;;
13335         *Intel*\ [CF]*Compiler*)
13336           lt_prog_compiler_wl='-Wl,'
13337           lt_prog_compiler_pic='-fPIC'
13338           lt_prog_compiler_static='-static'
13339           ;;
13340         *Portland\ Group*)
13341           lt_prog_compiler_wl='-Wl,'
13342           lt_prog_compiler_pic='-fpic'
13343           lt_prog_compiler_static='-Bstatic'
13344           ;;
13345         esac
13346         ;;
13347       esac
13348       ;;
13349
13350     newsos6)
13351       lt_prog_compiler_pic='-KPIC'
13352       lt_prog_compiler_static='-Bstatic'
13353       ;;
13354
13355     *nto* | *qnx*)
13356       # QNX uses GNU C++, but need to define -shared option too, otherwise
13357       # it will coredump.
13358       lt_prog_compiler_pic='-fPIC -shared'
13359       ;;
13360
13361     osf3* | osf4* | osf5*)
13362       lt_prog_compiler_wl='-Wl,'
13363       # All OSF/1 code is PIC.
13364       lt_prog_compiler_static='-non_shared'
13365       ;;
13366
13367     rdos*)
13368       lt_prog_compiler_static='-non_shared'
13369       ;;
13370
13371     solaris*)
13372       lt_prog_compiler_pic='-KPIC'
13373       lt_prog_compiler_static='-Bstatic'
13374       case $cc_basename in
13375       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13376         lt_prog_compiler_wl='-Qoption ld ';;
13377       *)
13378         lt_prog_compiler_wl='-Wl,';;
13379       esac
13380       ;;
13381
13382     sunos4*)
13383       lt_prog_compiler_wl='-Qoption ld '
13384       lt_prog_compiler_pic='-PIC'
13385       lt_prog_compiler_static='-Bstatic'
13386       ;;
13387
13388     sysv4 | sysv4.2uw2* | sysv4.3*)
13389       lt_prog_compiler_wl='-Wl,'
13390       lt_prog_compiler_pic='-KPIC'
13391       lt_prog_compiler_static='-Bstatic'
13392       ;;
13393
13394     sysv4*MP*)
13395       if test -d /usr/nec; then
13396         lt_prog_compiler_pic='-Kconform_pic'
13397         lt_prog_compiler_static='-Bstatic'
13398       fi
13399       ;;
13400
13401     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13402       lt_prog_compiler_wl='-Wl,'
13403       lt_prog_compiler_pic='-KPIC'
13404       lt_prog_compiler_static='-Bstatic'
13405       ;;
13406
13407     unicos*)
13408       lt_prog_compiler_wl='-Wl,'
13409       lt_prog_compiler_can_build_shared=no
13410       ;;
13411
13412     uts4*)
13413       lt_prog_compiler_pic='-pic'
13414       lt_prog_compiler_static='-Bstatic'
13415       ;;
13416
13417     *)
13418       lt_prog_compiler_can_build_shared=no
13419       ;;
13420     esac
13421   fi
13422
13423 case $host_os in
13424   # For platforms that do not support PIC, -DPIC is meaningless:
13425   *djgpp*)
13426     lt_prog_compiler_pic=
13427     ;;
13428   *)
13429     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13430     ;;
13431 esac
13432
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13434 printf %s "checking for $compiler option to produce PIC... " >&6; }
13435 if test ${lt_cv_prog_compiler_pic+y}
13436 then :
13437   printf %s "(cached) " >&6
13438 else $as_nop
13439   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13440 fi
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13442 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13443 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13444
13445 #
13446 # Check to make sure the PIC flag actually works.
13447 #
13448 if test -n "$lt_prog_compiler_pic"; then
13449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13450 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13451 if test ${lt_cv_prog_compiler_pic_works+y}
13452 then :
13453   printf %s "(cached) " >&6
13454 else $as_nop
13455   lt_cv_prog_compiler_pic_works=no
13456    ac_outfile=conftest.$ac_objext
13457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13459    # Insert the option either (1) after the last *FLAGS variable, or
13460    # (2) before a word containing "conftest.", or (3) at the end.
13461    # Note that $ac_compile itself does not contain backslashes and begins
13462    # with a dollar sign (not a hyphen), so the echo should work correctly.
13463    # The option is referenced via a variable to avoid confusing sed.
13464    lt_compile=`echo "$ac_compile" | $SED \
13465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13467    -e 's:$: $lt_compiler_flag:'`
13468    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13469    (eval "$lt_compile" 2>conftest.err)
13470    ac_status=$?
13471    cat conftest.err >&5
13472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473    if (exit $ac_status) && test -s "$ac_outfile"; then
13474      # The compiler can only warn and ignore the option if not recognized
13475      # So say no if there are warnings other than the usual output.
13476      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13477      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13478      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13479        lt_cv_prog_compiler_pic_works=yes
13480      fi
13481    fi
13482    $RM conftest*
13483
13484 fi
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13486 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13487
13488 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13489     case $lt_prog_compiler_pic in
13490      "" | " "*) ;;
13491      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13492      esac
13493 else
13494     lt_prog_compiler_pic=
13495      lt_prog_compiler_can_build_shared=no
13496 fi
13497
13498 fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510 #
13511 # Check to make sure the static flag actually works.
13512 #
13513 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13515 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13516 if test ${lt_cv_prog_compiler_static_works+y}
13517 then :
13518   printf %s "(cached) " >&6
13519 else $as_nop
13520   lt_cv_prog_compiler_static_works=no
13521    save_LDFLAGS=$LDFLAGS
13522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13523    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13525      # The linker can only warn and ignore the option if not recognized
13526      # So say no if there are warnings
13527      if test -s conftest.err; then
13528        # Append any errors to the config.log.
13529        cat conftest.err 1>&5
13530        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13532        if diff conftest.exp conftest.er2 >/dev/null; then
13533          lt_cv_prog_compiler_static_works=yes
13534        fi
13535      else
13536        lt_cv_prog_compiler_static_works=yes
13537      fi
13538    fi
13539    $RM -r conftest*
13540    LDFLAGS=$save_LDFLAGS
13541
13542 fi
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13544 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13545
13546 if test yes = "$lt_cv_prog_compiler_static_works"; then
13547     :
13548 else
13549     lt_prog_compiler_static=
13550 fi
13551
13552
13553
13554
13555
13556
13557
13558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13559 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13560 if test ${lt_cv_prog_compiler_c_o+y}
13561 then :
13562   printf %s "(cached) " >&6
13563 else $as_nop
13564   lt_cv_prog_compiler_c_o=no
13565    $RM -r conftest 2>/dev/null
13566    mkdir conftest
13567    cd conftest
13568    mkdir out
13569    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570
13571    lt_compiler_flag="-o out/conftest2.$ac_objext"
13572    # Insert the option either (1) after the last *FLAGS variable, or
13573    # (2) before a word containing "conftest.", or (3) at the end.
13574    # Note that $ac_compile itself does not contain backslashes and begins
13575    # with a dollar sign (not a hyphen), so the echo should work correctly.
13576    lt_compile=`echo "$ac_compile" | $SED \
13577    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13578    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13579    -e 's:$: $lt_compiler_flag:'`
13580    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13581    (eval "$lt_compile" 2>out/conftest.err)
13582    ac_status=$?
13583    cat out/conftest.err >&5
13584    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13586    then
13587      # The compiler can only warn and ignore the option if not recognized
13588      # So say no if there are warnings
13589      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13590      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13591      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13592        lt_cv_prog_compiler_c_o=yes
13593      fi
13594    fi
13595    chmod u+w . 2>&5
13596    $RM conftest*
13597    # SGI C++ compiler will create directory out/ii_files/ for
13598    # template instantiation
13599    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13600    $RM out/* && rmdir out
13601    cd ..
13602    $RM -r conftest
13603    $RM conftest*
13604
13605 fi
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13607 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13608
13609
13610
13611
13612
13613
13614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13616 if test ${lt_cv_prog_compiler_c_o+y}
13617 then :
13618   printf %s "(cached) " >&6
13619 else $as_nop
13620   lt_cv_prog_compiler_c_o=no
13621    $RM -r conftest 2>/dev/null
13622    mkdir conftest
13623    cd conftest
13624    mkdir out
13625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13626
13627    lt_compiler_flag="-o out/conftest2.$ac_objext"
13628    # Insert the option either (1) after the last *FLAGS variable, or
13629    # (2) before a word containing "conftest.", or (3) at the end.
13630    # Note that $ac_compile itself does not contain backslashes and begins
13631    # with a dollar sign (not a hyphen), so the echo should work correctly.
13632    lt_compile=`echo "$ac_compile" | $SED \
13633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635    -e 's:$: $lt_compiler_flag:'`
13636    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13637    (eval "$lt_compile" 2>out/conftest.err)
13638    ac_status=$?
13639    cat out/conftest.err >&5
13640    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13642    then
13643      # The compiler can only warn and ignore the option if not recognized
13644      # So say no if there are warnings
13645      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13646      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648        lt_cv_prog_compiler_c_o=yes
13649      fi
13650    fi
13651    chmod u+w . 2>&5
13652    $RM conftest*
13653    # SGI C++ compiler will create directory out/ii_files/ for
13654    # template instantiation
13655    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13656    $RM out/* && rmdir out
13657    cd ..
13658    $RM -r conftest
13659    $RM conftest*
13660
13661 fi
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13663 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13664
13665
13666
13667
13668 hard_links=nottested
13669 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13670   # do not overwrite the value of need_locks provided by the user
13671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13672 printf %s "checking if we can lock with hard links... " >&6; }
13673   hard_links=yes
13674   $RM conftest*
13675   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13676   touch conftest.a
13677   ln conftest.a conftest.b 2>&5 || hard_links=no
13678   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13680 printf "%s\n" "$hard_links" >&6; }
13681   if test no = "$hard_links"; then
13682     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13683 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13684     need_locks=warn
13685   fi
13686 else
13687   need_locks=no
13688 fi
13689
13690
13691
13692
13693
13694
13695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13696 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13697
13698   runpath_var=
13699   allow_undefined_flag=
13700   always_export_symbols=no
13701   archive_cmds=
13702   archive_expsym_cmds=
13703   compiler_needs_object=no
13704   enable_shared_with_static_runtimes=no
13705   export_dynamic_flag_spec=
13706   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13707   hardcode_automatic=no
13708   hardcode_direct=no
13709   hardcode_direct_absolute=no
13710   hardcode_libdir_flag_spec=
13711   hardcode_libdir_separator=
13712   hardcode_minus_L=no
13713   hardcode_shlibpath_var=unsupported
13714   inherit_rpath=no
13715   link_all_deplibs=unknown
13716   module_cmds=
13717   module_expsym_cmds=
13718   old_archive_from_new_cmds=
13719   old_archive_from_expsyms_cmds=
13720   thread_safe_flag_spec=
13721   whole_archive_flag_spec=
13722   # include_expsyms should be a list of space-separated symbols to be *always*
13723   # included in the symbol list
13724   include_expsyms=
13725   # exclude_expsyms can be an extended regexp of symbols to exclude
13726   # it will be wrapped by ' (' and ')$', so one must not match beginning or
13727   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13728   # as well as any symbol that contains 'd'.
13729   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13730   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13731   # platforms (ab)use it in PIC code, but their linkers get confused if
13732   # the symbol is explicitly referenced.  Since portable code cannot
13733   # rely on this symbol name, it's probably fine to never include it in
13734   # preloaded symbol tables.
13735   # Exclude shared library initialization/finalization symbols.
13736   extract_expsyms_cmds=
13737
13738   case $host_os in
13739   cygwin* | mingw* | pw32* | cegcc*)
13740     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13741     # When not using gcc, we currently assume that we are using
13742     # Microsoft Visual C++ or Intel C++ Compiler.
13743     if test yes != "$GCC"; then
13744       with_gnu_ld=no
13745     fi
13746     ;;
13747   interix*)
13748     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13749     with_gnu_ld=yes
13750     ;;
13751   openbsd* | bitrig*)
13752     with_gnu_ld=no
13753     ;;
13754   linux* | k*bsd*-gnu | gnu*)
13755     link_all_deplibs=no
13756     ;;
13757   esac
13758
13759   ld_shlibs=yes
13760
13761   # On some targets, GNU ld is compatible enough with the native linker
13762   # that we're better off using the native interface for both.
13763   lt_use_gnu_ld_interface=no
13764   if test yes = "$with_gnu_ld"; then
13765     case $host_os in
13766       aix*)
13767         # The AIX port of GNU ld has always aspired to compatibility
13768         # with the native linker.  However, as the warning in the GNU ld
13769         # block says, versions before 2.19.5* couldn't really create working
13770         # shared libraries, regardless of the interface used.
13771         case `$LD -v 2>&1` in
13772           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13773           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13774           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13775           *)
13776             lt_use_gnu_ld_interface=yes
13777             ;;
13778         esac
13779         ;;
13780       *)
13781         lt_use_gnu_ld_interface=yes
13782         ;;
13783     esac
13784   fi
13785
13786   if test yes = "$lt_use_gnu_ld_interface"; then
13787     # If archive_cmds runs LD, not CC, wlarc should be empty
13788     wlarc='$wl'
13789
13790     # Set some defaults for GNU ld with shared library support. These
13791     # are reset later if shared libraries are not supported. Putting them
13792     # here allows them to be overridden if necessary.
13793     runpath_var=LD_RUN_PATH
13794     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13795     export_dynamic_flag_spec='$wl--export-dynamic'
13796     # ancient GNU ld didn't support --whole-archive et. al.
13797     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13798       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13799     else
13800       whole_archive_flag_spec=
13801     fi
13802     supports_anon_versioning=no
13803     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13804       *GNU\ gold*) supports_anon_versioning=yes ;;
13805       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13806       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13807       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13808       *\ 2.11.*) ;; # other 2.11 versions
13809       *) supports_anon_versioning=yes ;;
13810     esac
13811
13812     # See if GNU ld supports shared libraries.
13813     case $host_os in
13814     aix[3-9]*)
13815       # On AIX/PPC, the GNU linker is very broken
13816       if test ia64 != "$host_cpu"; then
13817         ld_shlibs=no
13818         cat <<_LT_EOF 1>&2
13819
13820 *** Warning: the GNU linker, at least up to release 2.19, is reported
13821 *** to be unable to reliably create shared libraries on AIX.
13822 *** Therefore, libtool is disabling shared libraries support.  If you
13823 *** really care for shared libraries, you may want to install binutils
13824 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13825 *** You will then need to restart the configuration process.
13826
13827 _LT_EOF
13828       fi
13829       ;;
13830
13831     amigaos*)
13832       case $host_cpu in
13833       powerpc)
13834             # see comment about AmigaOS4 .so support
13835             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13836             archive_expsym_cmds=''
13837         ;;
13838       m68k)
13839             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)'
13840             hardcode_libdir_flag_spec='-L$libdir'
13841             hardcode_minus_L=yes
13842         ;;
13843       esac
13844       ;;
13845
13846     beos*)
13847       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13848         allow_undefined_flag=unsupported
13849         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13850         # support --undefined.  This deserves some investigation.  FIXME
13851         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13852       else
13853         ld_shlibs=no
13854       fi
13855       ;;
13856
13857     cygwin* | mingw* | pw32* | cegcc*)
13858       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13859       # as there is no search path for DLLs.
13860       hardcode_libdir_flag_spec='-L$libdir'
13861       export_dynamic_flag_spec='$wl--export-all-symbols'
13862       allow_undefined_flag=unsupported
13863       always_export_symbols=no
13864       enable_shared_with_static_runtimes=yes
13865       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'
13866       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13867
13868       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13869         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13870         # If the export-symbols file already is a .def file, use it as
13871         # is; otherwise, prepend EXPORTS...
13872         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13873           cp $export_symbols $output_objdir/$soname.def;
13874         else
13875           echo EXPORTS > $output_objdir/$soname.def;
13876           cat $export_symbols >> $output_objdir/$soname.def;
13877         fi~
13878         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13879       else
13880         ld_shlibs=no
13881       fi
13882       ;;
13883
13884     haiku*)
13885       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13886       link_all_deplibs=yes
13887       ;;
13888
13889     os2*)
13890       hardcode_libdir_flag_spec='-L$libdir'
13891       hardcode_minus_L=yes
13892       allow_undefined_flag=unsupported
13893       shrext_cmds=.dll
13894       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13895         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13896         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13897         $ECHO EXPORTS >> $output_objdir/$libname.def~
13898         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13899         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13900         emximp -o $lib $output_objdir/$libname.def'
13901       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13902         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13903         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13904         $ECHO EXPORTS >> $output_objdir/$libname.def~
13905         prefix_cmds="$SED"~
13906         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13907           prefix_cmds="$prefix_cmds -e 1d";
13908         fi~
13909         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13910         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13911         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13912         emximp -o $lib $output_objdir/$libname.def'
13913       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13914       enable_shared_with_static_runtimes=yes
13915       file_list_spec='@'
13916       ;;
13917
13918     interix[3-9]*)
13919       hardcode_direct=no
13920       hardcode_shlibpath_var=no
13921       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13922       export_dynamic_flag_spec='$wl-E'
13923       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13924       # Instead, shared libraries are loaded at an image base (0x10000000 by
13925       # default) and relocated if they conflict, which is a slow very memory
13926       # consuming and fragmenting process.  To avoid this, we pick a random,
13927       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13928       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13929       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13930       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'
13931       ;;
13932
13933     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13934       tmp_diet=no
13935       if test linux-dietlibc = "$host_os"; then
13936         case $cc_basename in
13937           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13938         esac
13939       fi
13940       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13941          && test no = "$tmp_diet"
13942       then
13943         tmp_addflag=' $pic_flag'
13944         tmp_sharedflag='-shared'
13945         case $cc_basename,$host_cpu in
13946         pgcc*)                          # Portland Group C compiler
13947           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'
13948           tmp_addflag=' $pic_flag'
13949           ;;
13950         pgf77* | pgf90* | pgf95* | pgfortran*)
13951                                         # Portland Group f77 and f90 compilers
13952           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'
13953           tmp_addflag=' $pic_flag -Mnomain' ;;
13954         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13955           tmp_addflag=' -i_dynamic' ;;
13956         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13957           tmp_addflag=' -i_dynamic -nofor_main' ;;
13958         ifc* | ifort*)                  # Intel Fortran compiler
13959           tmp_addflag=' -nofor_main' ;;
13960         lf95*)                          # Lahey Fortran 8.1
13961           whole_archive_flag_spec=
13962           tmp_sharedflag='--shared' ;;
13963         nagfor*)                        # NAGFOR 5.3
13964           tmp_sharedflag='-Wl,-shared' ;;
13965         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13966           tmp_sharedflag='-qmkshrobj'
13967           tmp_addflag= ;;
13968         nvcc*)  # Cuda Compiler Driver 2.2
13969           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'
13970           compiler_needs_object=yes
13971           ;;
13972         esac
13973         case `$CC -V 2>&1 | $SED 5q` in
13974         *Sun\ C*)                       # Sun C 5.9
13975           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'
13976           compiler_needs_object=yes
13977           tmp_sharedflag='-G' ;;
13978         *Sun\ F*)                       # Sun Fortran 8.3
13979           tmp_sharedflag='-G' ;;
13980         esac
13981         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13982
13983         if test yes = "$supports_anon_versioning"; then
13984           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13985             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13986             echo "local: *; };" >> $output_objdir/$libname.ver~
13987             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13988         fi
13989
13990         case $cc_basename in
13991         tcc*)
13992           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13993           export_dynamic_flag_spec='-rdynamic'
13994           ;;
13995         xlf* | bgf* | bgxlf* | mpixlf*)
13996           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13997           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13998           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13999           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14000           if test yes = "$supports_anon_versioning"; then
14001             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14002               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14003               echo "local: *; };" >> $output_objdir/$libname.ver~
14004               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14005           fi
14006           ;;
14007         esac
14008       else
14009         ld_shlibs=no
14010       fi
14011       ;;
14012
14013     netbsd* | netbsdelf*-gnu)
14014       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14015         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14016         wlarc=
14017       else
14018         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14019         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14020       fi
14021       ;;
14022
14023     solaris*)
14024       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14025         ld_shlibs=no
14026         cat <<_LT_EOF 1>&2
14027
14028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14029 *** create shared libraries on Solaris systems.  Therefore, libtool
14030 *** is disabling shared libraries support.  We urge you to upgrade GNU
14031 *** binutils to release 2.9.1 or newer.  Another option is to modify
14032 *** your PATH or compiler configuration so that the native linker is
14033 *** used, and then restart.
14034
14035 _LT_EOF
14036       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14037         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14038         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14039       else
14040         ld_shlibs=no
14041       fi
14042       ;;
14043
14044     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14045       case `$LD -v 2>&1` in
14046         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14047         ld_shlibs=no
14048         cat <<_LT_EOF 1>&2
14049
14050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14051 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14052 *** is disabling shared libraries support.  We urge you to upgrade GNU
14053 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14054 *** your PATH or compiler configuration so that the native linker is
14055 *** used, and then restart.
14056
14057 _LT_EOF
14058         ;;
14059         *)
14060           # For security reasons, it is highly recommended that you always
14061           # use absolute paths for naming shared libraries, and exclude the
14062           # DT_RUNPATH tag from executables and libraries.  But doing so
14063           # requires that you compile everything twice, which is a pain.
14064           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14066             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14067             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14068           else
14069             ld_shlibs=no
14070           fi
14071         ;;
14072       esac
14073       ;;
14074
14075     sunos4*)
14076       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14077       wlarc=
14078       hardcode_direct=yes
14079       hardcode_shlibpath_var=no
14080       ;;
14081
14082     *)
14083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14084         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14085         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14086       else
14087         ld_shlibs=no
14088       fi
14089       ;;
14090     esac
14091
14092     if test no = "$ld_shlibs"; then
14093       runpath_var=
14094       hardcode_libdir_flag_spec=
14095       export_dynamic_flag_spec=
14096       whole_archive_flag_spec=
14097     fi
14098   else
14099     # PORTME fill in a description of your system's linker (not GNU ld)
14100     case $host_os in
14101     aix3*)
14102       allow_undefined_flag=unsupported
14103       always_export_symbols=yes
14104       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'
14105       # Note: this linker hardcodes the directories in LIBPATH if there
14106       # are no directories specified by -L.
14107       hardcode_minus_L=yes
14108       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14109         # Neither direct hardcoding nor static linking is supported with a
14110         # broken collect2.
14111         hardcode_direct=unsupported
14112       fi
14113       ;;
14114
14115     aix[4-9]*)
14116       if test ia64 = "$host_cpu"; then
14117         # On IA64, the linker does run time linking by default, so we don't
14118         # have to do anything special.
14119         aix_use_runtimelinking=no
14120         exp_sym_flag='-Bexport'
14121         no_entry_flag=
14122       else
14123         # If we're using GNU nm, then we don't want the "-C" option.
14124         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14125         # Without the "-l" option, or with the "-B" option, AIX nm treats
14126         # weak defined symbols like other global defined symbols, whereas
14127         # GNU nm marks them as "W".
14128         # While the 'weak' keyword is ignored in the Export File, we need
14129         # it in the Import File for the 'aix-soname' feature, so we have
14130         # to replace the "-B" option with "-P" for AIX nm.
14131         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14132           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'
14133         else
14134           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 == "L") || (\$ 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'
14135         fi
14136         aix_use_runtimelinking=no
14137
14138         # Test if we are trying to use run time linking or normal
14139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140         # have runtime linking enabled, and use it for executables.
14141         # For shared libraries, we enable/disable runtime linking
14142         # depending on the kind of the shared library created -
14143         # when "with_aix_soname,aix_use_runtimelinking" is:
14144         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14145         # "aix,yes"  lib.so          shared, rtl:yes, for executables
14146         #            lib.a           static archive
14147         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14148         #            lib.a(lib.so.V) shared, rtl:no,  for executables
14149         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14150         #            lib.a(lib.so.V) shared, rtl:no
14151         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14152         #            lib.a           static archive
14153         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154           for ld_flag in $LDFLAGS; do
14155           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14156             aix_use_runtimelinking=yes
14157             break
14158           fi
14159           done
14160           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14161             # With aix-soname=svr4, we create the lib.so.V shared archives only,
14162             # so we don't have lib.a shared libs to link our executables.
14163             # We have to force runtime linking in this case.
14164             aix_use_runtimelinking=yes
14165             LDFLAGS="$LDFLAGS -Wl,-brtl"
14166           fi
14167           ;;
14168         esac
14169
14170         exp_sym_flag='-bexport'
14171         no_entry_flag='-bnoentry'
14172       fi
14173
14174       # When large executables or shared objects are built, AIX ld can
14175       # have problems creating the table of contents.  If linking a library
14176       # or program results in "error TOC overflow" add -mminimal-toc to
14177       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14178       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14179
14180       archive_cmds=''
14181       hardcode_direct=yes
14182       hardcode_direct_absolute=yes
14183       hardcode_libdir_separator=':'
14184       link_all_deplibs=yes
14185       file_list_spec='$wl-f,'
14186       case $with_aix_soname,$aix_use_runtimelinking in
14187       aix,*) ;; # traditional, no import file
14188       svr4,* | *,yes) # use import file
14189         # The Import File defines what to hardcode.
14190         hardcode_direct=no
14191         hardcode_direct_absolute=no
14192         ;;
14193       esac
14194
14195       if test yes = "$GCC"; then
14196         case $host_os in aix4.[012]|aix4.[012].*)
14197         # We only want to do this on AIX 4.2 and lower, the check
14198         # below for broken collect2 doesn't work under 4.3+
14199           collect2name=`$CC -print-prog-name=collect2`
14200           if test -f "$collect2name" &&
14201            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14202           then
14203           # We have reworked collect2
14204           :
14205           else
14206           # We have old collect2
14207           hardcode_direct=unsupported
14208           # It fails to find uninstalled libraries when the uninstalled
14209           # path is not listed in the libpath.  Setting hardcode_minus_L
14210           # to unsupported forces relinking
14211           hardcode_minus_L=yes
14212           hardcode_libdir_flag_spec='-L$libdir'
14213           hardcode_libdir_separator=
14214           fi
14215           ;;
14216         esac
14217         shared_flag='-shared'
14218         if test yes = "$aix_use_runtimelinking"; then
14219           shared_flag="$shared_flag "'$wl-G'
14220         fi
14221         # Need to ensure runtime linking is disabled for the traditional
14222         # shared library, or the linker may eventually find shared libraries
14223         # /with/ Import File - we do not want to mix them.
14224         shared_flag_aix='-shared'
14225         shared_flag_svr4='-shared $wl-G'
14226       else
14227         # not using gcc
14228         if test ia64 = "$host_cpu"; then
14229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14230         # chokes on -Wl,-G. The following line is correct:
14231           shared_flag='-G'
14232         else
14233           if test yes = "$aix_use_runtimelinking"; then
14234             shared_flag='$wl-G'
14235           else
14236             shared_flag='$wl-bM:SRE'
14237           fi
14238           shared_flag_aix='$wl-bM:SRE'
14239           shared_flag_svr4='$wl-G'
14240         fi
14241       fi
14242
14243       export_dynamic_flag_spec='$wl-bexpall'
14244       # It seems that -bexpall does not export symbols beginning with
14245       # underscore (_), so it is better to generate a list of symbols to export.
14246       always_export_symbols=yes
14247       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14248         # Warning - without using the other runtime loading flags (-brtl),
14249         # -berok will link without error, but may produce a broken library.
14250         allow_undefined_flag='-berok'
14251         # Determine the default libpath from the value encoded in an
14252         # empty executable.
14253         if test set = "${lt_cv_aix_libpath+set}"; then
14254   aix_libpath=$lt_cv_aix_libpath
14255 else
14256   if test ${lt_cv_aix_libpath_+y}
14257 then :
14258   printf %s "(cached) " >&6
14259 else $as_nop
14260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h.  */
14262
14263 int main (void)
14264 {
14265
14266  ;
14267  return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"
14271 then :
14272
14273   lt_aix_libpath_sed='
14274       /Import File Strings/,/^$/ {
14275           /^0/ {
14276               s/^0  *\([^ ]*\) *$/\1/
14277               p
14278           }
14279       }'
14280   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281   # Check for a 64-bit object if we didn't find anything.
14282   if test -z "$lt_cv_aix_libpath_"; then
14283     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14284   fi
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14287     conftest$ac_exeext conftest.$ac_ext
14288   if test -z "$lt_cv_aix_libpath_"; then
14289     lt_cv_aix_libpath_=/usr/lib:/lib
14290   fi
14291
14292 fi
14293
14294   aix_libpath=$lt_cv_aix_libpath_
14295 fi
14296
14297         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14298         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
14299       else
14300         if test ia64 = "$host_cpu"; then
14301           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14302           allow_undefined_flag="-z nodefs"
14303           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"
14304         else
14305          # Determine the default libpath from the value encoded in an
14306          # empty executable.
14307          if test set = "${lt_cv_aix_libpath+set}"; then
14308   aix_libpath=$lt_cv_aix_libpath
14309 else
14310   if test ${lt_cv_aix_libpath_+y}
14311 then :
14312   printf %s "(cached) " >&6
14313 else $as_nop
14314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h.  */
14316
14317 int main (void)
14318 {
14319
14320  ;
14321  return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"
14325 then :
14326
14327   lt_aix_libpath_sed='
14328       /Import File Strings/,/^$/ {
14329           /^0/ {
14330               s/^0  *\([^ ]*\) *$/\1/
14331               p
14332           }
14333       }'
14334   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14335   # Check for a 64-bit object if we didn't find anything.
14336   if test -z "$lt_cv_aix_libpath_"; then
14337     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14338   fi
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341     conftest$ac_exeext conftest.$ac_ext
14342   if test -z "$lt_cv_aix_libpath_"; then
14343     lt_cv_aix_libpath_=/usr/lib:/lib
14344   fi
14345
14346 fi
14347
14348   aix_libpath=$lt_cv_aix_libpath_
14349 fi
14350
14351          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14352           # Warning - without using the other run time loading flags,
14353           # -berok will link without error, but may produce a broken library.
14354           no_undefined_flag=' $wl-bernotok'
14355           allow_undefined_flag=' $wl-berok'
14356           if test yes = "$with_gnu_ld"; then
14357             # We only use this code for GNU lds that support --whole-archive.
14358             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14359           else
14360             # Exported symbols can be pulled into shared objects from archives
14361             whole_archive_flag_spec='$convenience'
14362           fi
14363           archive_cmds_need_lc=yes
14364           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14365           # -brtl affects multiple linker settings, -berok does not and is overridden later
14366           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14367           if test svr4 != "$with_aix_soname"; then
14368             # This is similar to how AIX traditionally builds its shared libraries.
14369             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'
14370           fi
14371           if test aix != "$with_aix_soname"; then
14372             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'
14373           else
14374             # used by -dlpreopen to get the symbols
14375             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14376           fi
14377           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14378         fi
14379       fi
14380       ;;
14381
14382     amigaos*)
14383       case $host_cpu in
14384       powerpc)
14385             # see comment about AmigaOS4 .so support
14386             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14387             archive_expsym_cmds=''
14388         ;;
14389       m68k)
14390             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)'
14391             hardcode_libdir_flag_spec='-L$libdir'
14392             hardcode_minus_L=yes
14393         ;;
14394       esac
14395       ;;
14396
14397     bsdi[45]*)
14398       export_dynamic_flag_spec=-rdynamic
14399       ;;
14400
14401     cygwin* | mingw* | pw32* | cegcc*)
14402       # When not using gcc, we currently assume that we are using
14403       # Microsoft Visual C++ or Intel C++ Compiler.
14404       # hardcode_libdir_flag_spec is actually meaningless, as there is
14405       # no search path for DLLs.
14406       case $cc_basename in
14407       cl* | icl*)
14408         # Native MSVC or ICC
14409         hardcode_libdir_flag_spec=' '
14410         allow_undefined_flag=unsupported
14411         always_export_symbols=yes
14412         file_list_spec='@'
14413         # Tell ltmain to make .lib files, not .a files.
14414         libext=lib
14415         # Tell ltmain to make .dll files, not .so files.
14416         shrext_cmds=.dll
14417         # FIXME: Setting linknames here is a bad hack.
14418         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14419         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14420             cp "$export_symbols" "$output_objdir/$soname.def";
14421             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14422           else
14423             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14424           fi~
14425           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14426           linknames='
14427         # The linker will not automatically build a static lib if we build a DLL.
14428         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14429         enable_shared_with_static_runtimes=yes
14430         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14431         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14432         # Don't use ranlib
14433         old_postinstall_cmds='chmod 644 $oldlib'
14434         postlink_cmds='lt_outputfile="@OUTPUT@"~
14435           lt_tool_outputfile="@TOOL_OUTPUT@"~
14436           case $lt_outputfile in
14437             *.exe|*.EXE) ;;
14438             *)
14439               lt_outputfile=$lt_outputfile.exe
14440               lt_tool_outputfile=$lt_tool_outputfile.exe
14441               ;;
14442           esac~
14443           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14444             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14445             $RM "$lt_outputfile.manifest";
14446           fi'
14447         ;;
14448       *)
14449         # Assume MSVC and ICC wrapper
14450         hardcode_libdir_flag_spec=' '
14451         allow_undefined_flag=unsupported
14452         # Tell ltmain to make .lib files, not .a files.
14453         libext=lib
14454         # Tell ltmain to make .dll files, not .so files.
14455         shrext_cmds=.dll
14456         # FIXME: Setting linknames here is a bad hack.
14457         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14458         # The linker will automatically build a .lib file if we build a DLL.
14459         old_archive_from_new_cmds='true'
14460         # FIXME: Should let the user specify the lib program.
14461         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14462         enable_shared_with_static_runtimes=yes
14463         ;;
14464       esac
14465       ;;
14466
14467     darwin* | rhapsody*)
14468
14469
14470   archive_cmds_need_lc=no
14471   hardcode_direct=no
14472   hardcode_automatic=yes
14473   hardcode_shlibpath_var=unsupported
14474   if test yes = "$lt_cv_ld_force_load"; then
14475     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\"`'
14476
14477   else
14478     whole_archive_flag_spec=''
14479   fi
14480   link_all_deplibs=yes
14481   allow_undefined_flag=$_lt_dar_allow_undefined
14482   case $cc_basename in
14483      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14484      *) _lt_dar_can_shared=$GCC ;;
14485   esac
14486   if test yes = "$_lt_dar_can_shared"; then
14487     output_verbose_link_cmd=func_echo_all
14488     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14489     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14490     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"
14491     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"
14492
14493   else
14494   ld_shlibs=no
14495   fi
14496
14497       ;;
14498
14499     dgux*)
14500       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501       hardcode_libdir_flag_spec='-L$libdir'
14502       hardcode_shlibpath_var=no
14503       ;;
14504
14505     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14506     # support.  Future versions do this automatically, but an explicit c++rt0.o
14507     # does not break anything, and helps significantly (at the cost of a little
14508     # extra space).
14509     freebsd2.2*)
14510       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14511       hardcode_libdir_flag_spec='-R$libdir'
14512       hardcode_direct=yes
14513       hardcode_shlibpath_var=no
14514       ;;
14515
14516     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14517     freebsd2.*)
14518       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14519       hardcode_direct=yes
14520       hardcode_minus_L=yes
14521       hardcode_shlibpath_var=no
14522       ;;
14523
14524     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14525     freebsd* | dragonfly* | midnightbsd*)
14526       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14527       hardcode_libdir_flag_spec='-R$libdir'
14528       hardcode_direct=yes
14529       hardcode_shlibpath_var=no
14530       ;;
14531
14532     hpux9*)
14533       if test yes = "$GCC"; then
14534         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'
14535       else
14536         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'
14537       fi
14538       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14539       hardcode_libdir_separator=:
14540       hardcode_direct=yes
14541
14542       # hardcode_minus_L: Not really in the search PATH,
14543       # but as the default location of the library.
14544       hardcode_minus_L=yes
14545       export_dynamic_flag_spec='$wl-E'
14546       ;;
14547
14548     hpux10*)
14549       if test yes,no = "$GCC,$with_gnu_ld"; then
14550         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14551       else
14552         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14553       fi
14554       if test no = "$with_gnu_ld"; then
14555         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14556         hardcode_libdir_separator=:
14557         hardcode_direct=yes
14558         hardcode_direct_absolute=yes
14559         export_dynamic_flag_spec='$wl-E'
14560         # hardcode_minus_L: Not really in the search PATH,
14561         # but as the default location of the library.
14562         hardcode_minus_L=yes
14563       fi
14564       ;;
14565
14566     hpux11*)
14567       if test yes,no = "$GCC,$with_gnu_ld"; then
14568         case $host_cpu in
14569         hppa*64*)
14570           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14571           ;;
14572         ia64*)
14573           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14574           ;;
14575         *)
14576           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577           ;;
14578         esac
14579       else
14580         case $host_cpu in
14581         hppa*64*)
14582           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14583           ;;
14584         ia64*)
14585           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14586           ;;
14587         *)
14588
14589           # Older versions of the 11.00 compiler do not understand -b yet
14590           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14591           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14592 printf %s "checking if $CC understands -b... " >&6; }
14593 if test ${lt_cv_prog_compiler__b+y}
14594 then :
14595   printf %s "(cached) " >&6
14596 else $as_nop
14597   lt_cv_prog_compiler__b=no
14598    save_LDFLAGS=$LDFLAGS
14599    LDFLAGS="$LDFLAGS -b"
14600    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14601    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14602      # The linker can only warn and ignore the option if not recognized
14603      # So say no if there are warnings
14604      if test -s conftest.err; then
14605        # Append any errors to the config.log.
14606        cat conftest.err 1>&5
14607        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14608        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14609        if diff conftest.exp conftest.er2 >/dev/null; then
14610          lt_cv_prog_compiler__b=yes
14611        fi
14612      else
14613        lt_cv_prog_compiler__b=yes
14614      fi
14615    fi
14616    $RM -r conftest*
14617    LDFLAGS=$save_LDFLAGS
14618
14619 fi
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14621 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14622
14623 if test yes = "$lt_cv_prog_compiler__b"; then
14624     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14625 else
14626     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14627 fi
14628
14629           ;;
14630         esac
14631       fi
14632       if test no = "$with_gnu_ld"; then
14633         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14634         hardcode_libdir_separator=:
14635
14636         case $host_cpu in
14637         hppa*64*|ia64*)
14638           hardcode_direct=no
14639           hardcode_shlibpath_var=no
14640           ;;
14641         *)
14642           hardcode_direct=yes
14643           hardcode_direct_absolute=yes
14644           export_dynamic_flag_spec='$wl-E'
14645
14646           # hardcode_minus_L: Not really in the search PATH,
14647           # but as the default location of the library.
14648           hardcode_minus_L=yes
14649           ;;
14650         esac
14651       fi
14652       ;;
14653
14654     irix5* | irix6* | nonstopux*)
14655       if test yes = "$GCC"; then
14656         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'
14657         # Try to use the -exported_symbol ld option, if it does not
14658         # work, assume that -exports_file does not work either and
14659         # implicitly export all symbols.
14660         # This should be the same for all languages, so no per-tag cache variable.
14661         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14662 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14663 if test ${lt_cv_irix_exported_symbol+y}
14664 then :
14665   printf %s "(cached) " >&6
14666 else $as_nop
14667   save_LDFLAGS=$LDFLAGS
14668            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14669            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h.  */
14671 int foo (void) { return 0; }
14672 _ACEOF
14673 if ac_fn_c_try_link "$LINENO"
14674 then :
14675   lt_cv_irix_exported_symbol=yes
14676 else $as_nop
14677   lt_cv_irix_exported_symbol=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680     conftest$ac_exeext conftest.$ac_ext
14681            LDFLAGS=$save_LDFLAGS
14682 fi
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14684 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14685         if test yes = "$lt_cv_irix_exported_symbol"; then
14686           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'
14687         fi
14688         link_all_deplibs=no
14689       else
14690         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'
14691         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'
14692       fi
14693       archive_cmds_need_lc='no'
14694       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14695       hardcode_libdir_separator=:
14696       inherit_rpath=yes
14697       link_all_deplibs=yes
14698       ;;
14699
14700     linux*)
14701       case $cc_basename in
14702       tcc*)
14703         # Fabrice Bellard et al's Tiny C Compiler
14704         ld_shlibs=yes
14705         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14706         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14707         ;;
14708       esac
14709       ;;
14710
14711     netbsd* | netbsdelf*-gnu)
14712       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14713         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14714       else
14715         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14716       fi
14717       hardcode_libdir_flag_spec='-R$libdir'
14718       hardcode_direct=yes
14719       hardcode_shlibpath_var=no
14720       ;;
14721
14722     newsos6)
14723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724       hardcode_direct=yes
14725       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14726       hardcode_libdir_separator=:
14727       hardcode_shlibpath_var=no
14728       ;;
14729
14730     *nto* | *qnx*)
14731       ;;
14732
14733     openbsd* | bitrig*)
14734       if test -f /usr/libexec/ld.so; then
14735         hardcode_direct=yes
14736         hardcode_shlibpath_var=no
14737         hardcode_direct_absolute=yes
14738         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14739           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14741           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14742           export_dynamic_flag_spec='$wl-E'
14743         else
14744           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14745           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14746         fi
14747       else
14748         ld_shlibs=no
14749       fi
14750       ;;
14751
14752     os2*)
14753       hardcode_libdir_flag_spec='-L$libdir'
14754       hardcode_minus_L=yes
14755       allow_undefined_flag=unsupported
14756       shrext_cmds=.dll
14757       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14758         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14759         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14760         $ECHO EXPORTS >> $output_objdir/$libname.def~
14761         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14762         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14763         emximp -o $lib $output_objdir/$libname.def'
14764       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14765         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14766         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14767         $ECHO EXPORTS >> $output_objdir/$libname.def~
14768         prefix_cmds="$SED"~
14769         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14770           prefix_cmds="$prefix_cmds -e 1d";
14771         fi~
14772         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14773         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14774         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14775         emximp -o $lib $output_objdir/$libname.def'
14776       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14777       enable_shared_with_static_runtimes=yes
14778       file_list_spec='@'
14779       ;;
14780
14781     osf3*)
14782       if test yes = "$GCC"; then
14783         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14784         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'
14785       else
14786         allow_undefined_flag=' -expect_unresolved \*'
14787         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'
14788       fi
14789       archive_cmds_need_lc='no'
14790       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14791       hardcode_libdir_separator=:
14792       ;;
14793
14794     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14795       if test yes = "$GCC"; then
14796         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14797         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'
14798         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14799       else
14800         allow_undefined_flag=' -expect_unresolved \*'
14801         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'
14802         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~
14803           $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'
14804
14805         # Both c and cxx compiler support -rpath directly
14806         hardcode_libdir_flag_spec='-rpath $libdir'
14807       fi
14808       archive_cmds_need_lc='no'
14809       hardcode_libdir_separator=:
14810       ;;
14811
14812     solaris*)
14813       no_undefined_flag=' -z defs'
14814       if test yes = "$GCC"; then
14815         wlarc='$wl'
14816         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14817         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14818           $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'
14819       else
14820         case `$CC -V 2>&1` in
14821         *"Compilers 5.0"*)
14822           wlarc=''
14823           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14825             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14826           ;;
14827         *)
14828           wlarc='$wl'
14829           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14830           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14831             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14832           ;;
14833         esac
14834       fi
14835       hardcode_libdir_flag_spec='-R$libdir'
14836       hardcode_shlibpath_var=no
14837       case $host_os in
14838       solaris2.[0-5] | solaris2.[0-5].*) ;;
14839       *)
14840         # The compiler driver will combine and reorder linker options,
14841         # but understands '-z linker_flag'.  GCC discards it without '$wl',
14842         # but is careful enough not to reorder.
14843         # Supported since Solaris 2.6 (maybe 2.5.1?)
14844         if test yes = "$GCC"; then
14845           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14846         else
14847           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14848         fi
14849         ;;
14850       esac
14851       link_all_deplibs=yes
14852       ;;
14853
14854     sunos4*)
14855       if test sequent = "$host_vendor"; then
14856         # Use $CC to link under sequent, because it throws in some extra .o
14857         # files that make .init and .fini sections work.
14858         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14859       else
14860         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14861       fi
14862       hardcode_libdir_flag_spec='-L$libdir'
14863       hardcode_direct=yes
14864       hardcode_minus_L=yes
14865       hardcode_shlibpath_var=no
14866       ;;
14867
14868     sysv4)
14869       case $host_vendor in
14870         sni)
14871           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872           hardcode_direct=yes # is this really true???
14873         ;;
14874         siemens)
14875           ## LD is ld it makes a PLAMLIB
14876           ## CC just makes a GrossModule.
14877           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14878           reload_cmds='$CC -r -o $output$reload_objs'
14879           hardcode_direct=no
14880         ;;
14881         motorola)
14882           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14884         ;;
14885       esac
14886       runpath_var='LD_RUN_PATH'
14887       hardcode_shlibpath_var=no
14888       ;;
14889
14890     sysv4.3*)
14891       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892       hardcode_shlibpath_var=no
14893       export_dynamic_flag_spec='-Bexport'
14894       ;;
14895
14896     sysv4*MP*)
14897       if test -d /usr/nec; then
14898         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899         hardcode_shlibpath_var=no
14900         runpath_var=LD_RUN_PATH
14901         hardcode_runpath_var=yes
14902         ld_shlibs=yes
14903       fi
14904       ;;
14905
14906     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14907       no_undefined_flag='$wl-z,text'
14908       archive_cmds_need_lc=no
14909       hardcode_shlibpath_var=no
14910       runpath_var='LD_RUN_PATH'
14911
14912       if test yes = "$GCC"; then
14913         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14915       else
14916         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14918       fi
14919       ;;
14920
14921     sysv5* | sco3.2v5* | sco5v6*)
14922       # Note: We CANNOT use -z defs as we might desire, because we do not
14923       # link with -lc, and that would cause any symbols used from libc to
14924       # always be unresolved, which means just about no library would
14925       # ever link correctly.  If we're not using GNU ld we use -z text
14926       # though, which does catch some bad symbols but isn't as heavy-handed
14927       # as -z defs.
14928       no_undefined_flag='$wl-z,text'
14929       allow_undefined_flag='$wl-z,nodefs'
14930       archive_cmds_need_lc=no
14931       hardcode_shlibpath_var=no
14932       hardcode_libdir_flag_spec='$wl-R,$libdir'
14933       hardcode_libdir_separator=':'
14934       link_all_deplibs=yes
14935       export_dynamic_flag_spec='$wl-Bexport'
14936       runpath_var='LD_RUN_PATH'
14937
14938       if test yes = "$GCC"; then
14939         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14940         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941       else
14942         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14944       fi
14945       ;;
14946
14947     uts4*)
14948       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949       hardcode_libdir_flag_spec='-L$libdir'
14950       hardcode_shlibpath_var=no
14951       ;;
14952
14953     *)
14954       ld_shlibs=no
14955       ;;
14956     esac
14957
14958     if test sni = "$host_vendor"; then
14959       case $host in
14960       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14961         export_dynamic_flag_spec='$wl-Blargedynsym'
14962         ;;
14963       esac
14964     fi
14965   fi
14966
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14968 printf "%s\n" "$ld_shlibs" >&6; }
14969 test no = "$ld_shlibs" && can_build_shared=no
14970
14971 with_gnu_ld=$with_gnu_ld
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987 #
14988 # Do we need to explicitly link libc?
14989 #
14990 case "x$archive_cmds_need_lc" in
14991 x|xyes)
14992   # Assume -lc should be added
14993   archive_cmds_need_lc=yes
14994
14995   if test yes,yes = "$GCC,$enable_shared"; then
14996     case $archive_cmds in
14997     *'~'*)
14998       # FIXME: we may have to deal with multi-command sequences.
14999       ;;
15000     '$CC '*)
15001       # Test whether the compiler implicitly links with -lc since on some
15002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003       # to ld, don't add -lc before -lgcc.
15004       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15005 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15006 if test ${lt_cv_archive_cmds_need_lc+y}
15007 then :
15008   printf %s "(cached) " >&6
15009 else $as_nop
15010   $RM conftest*
15011         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15012
15013         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15014   (eval $ac_compile) 2>&5
15015   ac_status=$?
15016   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017   test $ac_status = 0; } 2>conftest.err; then
15018           soname=conftest
15019           lib=conftest
15020           libobjs=conftest.$ac_objext
15021           deplibs=
15022           wl=$lt_prog_compiler_wl
15023           pic_flag=$lt_prog_compiler_pic
15024           compiler_flags=-v
15025           linker_flags=-v
15026           verstring=
15027           output_objdir=.
15028           libname=conftest
15029           lt_save_allow_undefined_flag=$allow_undefined_flag
15030           allow_undefined_flag=
15031           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15032   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15033   ac_status=$?
15034   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035   test $ac_status = 0; }
15036           then
15037             lt_cv_archive_cmds_need_lc=no
15038           else
15039             lt_cv_archive_cmds_need_lc=yes
15040           fi
15041           allow_undefined_flag=$lt_save_allow_undefined_flag
15042         else
15043           cat conftest.err 1>&5
15044         fi
15045         $RM conftest*
15046
15047 fi
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15049 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15050       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15051       ;;
15052     esac
15053   fi
15054   ;;
15055 esac
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15209 printf %s "checking dynamic linker characteristics... " >&6; }
15210
15211 if test yes = "$GCC"; then
15212   case $host_os in
15213     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15214     *) lt_awk_arg='/^libraries:/' ;;
15215   esac
15216   case $host_os in
15217     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15218     *) lt_sed_strip_eq='s|=/|/|g' ;;
15219   esac
15220   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15221   case $lt_search_path_spec in
15222   *\;*)
15223     # if the path contains ";" then we assume it to be the separator
15224     # otherwise default to the standard path separator (i.e. ":") - it is
15225     # assumed that no part of a normal pathname contains ";" but that should
15226     # okay in the real world where ";" in dirpaths is itself problematic.
15227     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15228     ;;
15229   *)
15230     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15231     ;;
15232   esac
15233   # Ok, now we have the path, separated by spaces, we can step through it
15234   # and add multilib dir if necessary...
15235   lt_tmp_lt_search_path_spec=
15236   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15237   # ...but if some path component already ends with the multilib dir we assume
15238   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15239   case "$lt_multi_os_dir; $lt_search_path_spec " in
15240   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15241     lt_multi_os_dir=
15242     ;;
15243   esac
15244   for lt_sys_path in $lt_search_path_spec; do
15245     if test -d "$lt_sys_path$lt_multi_os_dir"; then
15246       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15247     elif test -n "$lt_multi_os_dir"; then
15248       test -d "$lt_sys_path" && \
15249         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15250     fi
15251   done
15252   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15253 BEGIN {RS = " "; FS = "/|\n";} {
15254   lt_foo = "";
15255   lt_count = 0;
15256   for (lt_i = NF; lt_i > 0; lt_i--) {
15257     if ($lt_i != "" && $lt_i != ".") {
15258       if ($lt_i == "..") {
15259         lt_count++;
15260       } else {
15261         if (lt_count == 0) {
15262           lt_foo = "/" $lt_i lt_foo;
15263         } else {
15264           lt_count--;
15265         }
15266       }
15267     }
15268   }
15269   if (lt_foo != "") { lt_freq[lt_foo]++; }
15270   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15271 }'`
15272   # AWK program above erroneously prepends '/' to C:/dos/paths
15273   # for these hosts.
15274   case $host_os in
15275     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15276       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15277   esac
15278   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15279 else
15280   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15281 fi
15282 library_names_spec=
15283 libname_spec='lib$name'
15284 soname_spec=
15285 shrext_cmds=.so
15286 postinstall_cmds=
15287 postuninstall_cmds=
15288 finish_cmds=
15289 finish_eval=
15290 shlibpath_var=
15291 shlibpath_overrides_runpath=unknown
15292 version_type=none
15293 dynamic_linker="$host_os ld.so"
15294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15295 need_lib_prefix=unknown
15296 hardcode_into_libs=no
15297
15298 # when you set need_version to no, make sure it does not cause -set_version
15299 # flags to be left without arguments
15300 need_version=unknown
15301
15302
15303
15304 case $host_os in
15305 aix3*)
15306   version_type=linux # correct to gnu/linux during the next big refactor
15307   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15308   shlibpath_var=LIBPATH
15309
15310   # AIX 3 has no versioning support, so we append a major version to the name.
15311   soname_spec='$libname$release$shared_ext$major'
15312   ;;
15313
15314 aix[4-9]*)
15315   version_type=linux # correct to gnu/linux during the next big refactor
15316   need_lib_prefix=no
15317   need_version=no
15318   hardcode_into_libs=yes
15319   if test ia64 = "$host_cpu"; then
15320     # AIX 5 supports IA64
15321     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15322     shlibpath_var=LD_LIBRARY_PATH
15323   else
15324     # With GCC up to 2.95.x, collect2 would create an import file
15325     # for dependence libraries.  The import file would start with
15326     # the line '#! .'.  This would cause the generated library to
15327     # depend on '.', always an invalid library.  This was fixed in
15328     # development snapshots of GCC prior to 3.0.
15329     case $host_os in
15330       aix4 | aix4.[01] | aix4.[01].*)
15331       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15332            echo ' yes '
15333            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15334         :
15335       else
15336         can_build_shared=no
15337       fi
15338       ;;
15339     esac
15340     # Using Import Files as archive members, it is possible to support
15341     # filename-based versioning of shared library archives on AIX. While
15342     # this would work for both with and without runtime linking, it will
15343     # prevent static linking of such archives. So we do filename-based
15344     # shared library versioning with .so extension only, which is used
15345     # when both runtime linking and shared linking is enabled.
15346     # Unfortunately, runtime linking may impact performance, so we do
15347     # not want this to be the default eventually. Also, we use the
15348     # versioned .so libs for executables only if there is the -brtl
15349     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15350     # To allow for filename-based versioning support, we need to create
15351     # libNAME.so.V as an archive file, containing:
15352     # *) an Import File, referring to the versioned filename of the
15353     #    archive as well as the shared archive member, telling the
15354     #    bitwidth (32 or 64) of that shared object, and providing the
15355     #    list of exported symbols of that shared object, eventually
15356     #    decorated with the 'weak' keyword
15357     # *) the shared object with the F_LOADONLY flag set, to really avoid
15358     #    it being seen by the linker.
15359     # At run time we better use the real file rather than another symlink,
15360     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15361
15362     case $with_aix_soname,$aix_use_runtimelinking in
15363     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15364     # soname into executable. Probably we can add versioning support to
15365     # collect2, so additional links can be useful in future.
15366     aix,yes) # traditional libtool
15367       dynamic_linker='AIX unversionable lib.so'
15368       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15369       # instead of lib<name>.a to let people know that these are not
15370       # typical AIX shared libraries.
15371       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15372       ;;
15373     aix,no) # traditional AIX only
15374       dynamic_linker='AIX lib.a(lib.so.V)'
15375       # We preserve .a as extension for shared libraries through AIX4.2
15376       # and later when we are not doing run time linking.
15377       library_names_spec='$libname$release.a $libname.a'
15378       soname_spec='$libname$release$shared_ext$major'
15379       ;;
15380     svr4,*) # full svr4 only
15381       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15382       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15383       # We do not specify a path in Import Files, so LIBPATH fires.
15384       shlibpath_overrides_runpath=yes
15385       ;;
15386     *,yes) # both, prefer svr4
15387       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15388       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15389       # unpreferred sharedlib libNAME.a needs extra handling
15390       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"'
15391       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"'
15392       # We do not specify a path in Import Files, so LIBPATH fires.
15393       shlibpath_overrides_runpath=yes
15394       ;;
15395     *,no) # both, prefer aix
15396       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15397       library_names_spec='$libname$release.a $libname.a'
15398       soname_spec='$libname$release$shared_ext$major'
15399       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15400       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)'
15401       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"'
15402       ;;
15403     esac
15404     shlibpath_var=LIBPATH
15405   fi
15406   ;;
15407
15408 amigaos*)
15409   case $host_cpu in
15410   powerpc)
15411     # Since July 2007 AmigaOS4 officially supports .so libraries.
15412     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15413     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15414     ;;
15415   m68k)
15416     library_names_spec='$libname.ixlibrary $libname.a'
15417     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15418     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'
15419     ;;
15420   esac
15421   ;;
15422
15423 beos*)
15424   library_names_spec='$libname$shared_ext'
15425   dynamic_linker="$host_os ld.so"
15426   shlibpath_var=LIBRARY_PATH
15427   ;;
15428
15429 bsdi[45]*)
15430   version_type=linux # correct to gnu/linux during the next big refactor
15431   need_version=no
15432   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15433   soname_spec='$libname$release$shared_ext$major'
15434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435   shlibpath_var=LD_LIBRARY_PATH
15436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438   # the default ld.so.conf also contains /usr/contrib/lib and
15439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440   # libtool to hard-code these into programs
15441   ;;
15442
15443 cygwin* | mingw* | pw32* | cegcc*)
15444   version_type=windows
15445   shrext_cmds=.dll
15446   need_version=no
15447   need_lib_prefix=no
15448
15449   case $GCC,$cc_basename in
15450   yes,*)
15451     # gcc
15452     library_names_spec='$libname.dll.a'
15453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15454     postinstall_cmds='base_file=`basename \$file`~
15455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15456       dldir=$destdir/`dirname \$dlpath`~
15457       test -d \$dldir || mkdir -p \$dldir~
15458       $install_prog $dir/$dlname \$dldir/$dlname~
15459       chmod a+x \$dldir/$dlname~
15460       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15461         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15462       fi'
15463     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464       dlpath=$dir/\$dldll~
15465        $RM \$dlpath'
15466     shlibpath_overrides_runpath=yes
15467
15468     case $host_os in
15469     cygwin*)
15470       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15471       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15472
15473       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15474       ;;
15475     mingw* | cegcc*)
15476       # MinGW DLLs use traditional 'lib' prefix
15477       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15478       ;;
15479     pw32*)
15480       # pw32 DLLs use 'pw' prefix rather than 'lib'
15481       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15482       ;;
15483     esac
15484     dynamic_linker='Win32 ld.exe'
15485     ;;
15486
15487   *,cl* | *,icl*)
15488     # Native MSVC or ICC
15489     libname_spec='$name'
15490     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15491     library_names_spec='$libname.dll.lib'
15492
15493     case $build_os in
15494     mingw*)
15495       sys_lib_search_path_spec=
15496       lt_save_ifs=$IFS
15497       IFS=';'
15498       for lt_path in $LIB
15499       do
15500         IFS=$lt_save_ifs
15501         # Let DOS variable expansion print the short 8.3 style file name.
15502         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15503         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15504       done
15505       IFS=$lt_save_ifs
15506       # Convert to MSYS style.
15507       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15508       ;;
15509     cygwin*)
15510       # Convert to unix form, then to dos form, then back to unix form
15511       # but this time dos style (no spaces!) so that the unix form looks
15512       # like /cygdrive/c/PROGRA~1:/cygdr...
15513       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15514       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15515       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15516       ;;
15517     *)
15518       sys_lib_search_path_spec=$LIB
15519       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15520         # It is most probably a Windows format PATH.
15521         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15522       else
15523         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15524       fi
15525       # FIXME: find the short name or the path components, as spaces are
15526       # common. (e.g. "Program Files" -> "PROGRA~1")
15527       ;;
15528     esac
15529
15530     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15531     postinstall_cmds='base_file=`basename \$file`~
15532       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15533       dldir=$destdir/`dirname \$dlpath`~
15534       test -d \$dldir || mkdir -p \$dldir~
15535       $install_prog $dir/$dlname \$dldir/$dlname'
15536     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15537       dlpath=$dir/\$dldll~
15538        $RM \$dlpath'
15539     shlibpath_overrides_runpath=yes
15540     dynamic_linker='Win32 link.exe'
15541     ;;
15542
15543   *)
15544     # Assume MSVC and ICC wrapper
15545     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15546     dynamic_linker='Win32 ld.exe'
15547     ;;
15548   esac
15549   # FIXME: first we should search . and the directory the executable is in
15550   shlibpath_var=PATH
15551   ;;
15552
15553 darwin* | rhapsody*)
15554   dynamic_linker="$host_os dyld"
15555   version_type=darwin
15556   need_lib_prefix=no
15557   need_version=no
15558   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15559   soname_spec='$libname$release$major$shared_ext'
15560   shlibpath_overrides_runpath=yes
15561   shlibpath_var=DYLD_LIBRARY_PATH
15562   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15563
15564   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15565   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15566   ;;
15567
15568 dgux*)
15569   version_type=linux # correct to gnu/linux during the next big refactor
15570   need_lib_prefix=no
15571   need_version=no
15572   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15573   soname_spec='$libname$release$shared_ext$major'
15574   shlibpath_var=LD_LIBRARY_PATH
15575   ;;
15576
15577 freebsd* | dragonfly* | midnightbsd*)
15578   # DragonFly does not have aout.  When/if they implement a new
15579   # versioning mechanism, adjust this.
15580   if test -x /usr/bin/objformat; then
15581     objformat=`/usr/bin/objformat`
15582   else
15583     case $host_os in
15584     freebsd[23].*) objformat=aout ;;
15585     *) objformat=elf ;;
15586     esac
15587   fi
15588   version_type=freebsd-$objformat
15589   case $version_type in
15590     freebsd-elf*)
15591       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15592       soname_spec='$libname$release$shared_ext$major'
15593       need_version=no
15594       need_lib_prefix=no
15595       ;;
15596     freebsd-*)
15597       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15598       need_version=yes
15599       ;;
15600   esac
15601   shlibpath_var=LD_LIBRARY_PATH
15602   case $host_os in
15603   freebsd2.*)
15604     shlibpath_overrides_runpath=yes
15605     ;;
15606   freebsd3.[01]* | freebsdelf3.[01]*)
15607     shlibpath_overrides_runpath=yes
15608     hardcode_into_libs=yes
15609     ;;
15610   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612     shlibpath_overrides_runpath=no
15613     hardcode_into_libs=yes
15614     ;;
15615   *) # from 4.6 on, and DragonFly
15616     shlibpath_overrides_runpath=yes
15617     hardcode_into_libs=yes
15618     ;;
15619   esac
15620   ;;
15621
15622 haiku*)
15623   version_type=linux # correct to gnu/linux during the next big refactor
15624   need_lib_prefix=no
15625   need_version=no
15626   dynamic_linker="$host_os runtime_loader"
15627   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15628   soname_spec='$libname$release$shared_ext$major'
15629   shlibpath_var=LIBRARY_PATH
15630   shlibpath_overrides_runpath=no
15631   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15632   hardcode_into_libs=yes
15633   ;;
15634
15635 hpux9* | hpux10* | hpux11*)
15636   # Give a soname corresponding to the major version so that dld.sl refuses to
15637   # link against other versions.
15638   version_type=sunos
15639   need_lib_prefix=no
15640   need_version=no
15641   case $host_cpu in
15642   ia64*)
15643     shrext_cmds='.so'
15644     hardcode_into_libs=yes
15645     dynamic_linker="$host_os dld.so"
15646     shlibpath_var=LD_LIBRARY_PATH
15647     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15648     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15649     soname_spec='$libname$release$shared_ext$major'
15650     if test 32 = "$HPUX_IA64_MODE"; then
15651       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15652       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15653     else
15654       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15655       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15656     fi
15657     ;;
15658   hppa*64*)
15659     shrext_cmds='.sl'
15660     hardcode_into_libs=yes
15661     dynamic_linker="$host_os dld.sl"
15662     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15664     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665     soname_spec='$libname$release$shared_ext$major'
15666     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15667     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15668     ;;
15669   *)
15670     shrext_cmds='.sl'
15671     dynamic_linker="$host_os dld.sl"
15672     shlibpath_var=SHLIB_PATH
15673     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15674     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15675     soname_spec='$libname$release$shared_ext$major'
15676     ;;
15677   esac
15678   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15679   postinstall_cmds='chmod 555 $lib'
15680   # or fails outright, so override atomically:
15681   install_override_mode=555
15682   ;;
15683
15684 interix[3-9]*)
15685   version_type=linux # correct to gnu/linux during the next big refactor
15686   need_lib_prefix=no
15687   need_version=no
15688   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15689   soname_spec='$libname$release$shared_ext$major'
15690   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15691   shlibpath_var=LD_LIBRARY_PATH
15692   shlibpath_overrides_runpath=no
15693   hardcode_into_libs=yes
15694   ;;
15695
15696 irix5* | irix6* | nonstopux*)
15697   case $host_os in
15698     nonstopux*) version_type=nonstopux ;;
15699     *)
15700         if test yes = "$lt_cv_prog_gnu_ld"; then
15701                 version_type=linux # correct to gnu/linux during the next big refactor
15702         else
15703                 version_type=irix
15704         fi ;;
15705   esac
15706   need_lib_prefix=no
15707   need_version=no
15708   soname_spec='$libname$release$shared_ext$major'
15709   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15710   case $host_os in
15711   irix5* | nonstopux*)
15712     libsuff= shlibsuff=
15713     ;;
15714   *)
15715     case $LD in # libtool.m4 will add one of these switches to LD
15716     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15717       libsuff= shlibsuff= libmagic=32-bit;;
15718     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15719       libsuff=32 shlibsuff=N32 libmagic=N32;;
15720     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15721       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15722     *) libsuff= shlibsuff= libmagic=never-match;;
15723     esac
15724     ;;
15725   esac
15726   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15727   shlibpath_overrides_runpath=no
15728   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15729   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15730   hardcode_into_libs=yes
15731   ;;
15732
15733 # No shared lib support for Linux oldld, aout, or coff.
15734 linux*oldld* | linux*aout* | linux*coff*)
15735   dynamic_linker=no
15736   ;;
15737
15738 linux*android*)
15739   version_type=none # Android doesn't support versioned libraries.
15740   need_lib_prefix=no
15741   need_version=no
15742   library_names_spec='$libname$release$shared_ext'
15743   soname_spec='$libname$release$shared_ext'
15744   finish_cmds=
15745   shlibpath_var=LD_LIBRARY_PATH
15746   shlibpath_overrides_runpath=yes
15747
15748   # This implies no fast_install, which is unacceptable.
15749   # Some rework will be needed to allow for fast_install
15750   # before this can be enabled.
15751   hardcode_into_libs=yes
15752
15753   dynamic_linker='Android linker'
15754   # Don't embed -rpath directories since the linker doesn't support them.
15755   hardcode_libdir_flag_spec='-L$libdir'
15756   ;;
15757
15758 # This must be glibc/ELF.
15759 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15760   version_type=linux # correct to gnu/linux during the next big refactor
15761   need_lib_prefix=no
15762   need_version=no
15763   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15764   soname_spec='$libname$release$shared_ext$major'
15765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   shlibpath_overrides_runpath=no
15768
15769   # Some binutils ld are patched to set DT_RUNPATH
15770   if test ${lt_cv_shlibpath_overrides_runpath+y}
15771 then :
15772   printf %s "(cached) " >&6
15773 else $as_nop
15774   lt_cv_shlibpath_overrides_runpath=no
15775     save_LDFLAGS=$LDFLAGS
15776     save_libdir=$libdir
15777     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15778          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h.  */
15781
15782 int main (void)
15783 {
15784
15785  ;
15786  return 0;
15787 }
15788 _ACEOF
15789 if ac_fn_c_try_link "$LINENO"
15790 then :
15791   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15792 then :
15793   lt_cv_shlibpath_overrides_runpath=yes
15794 fi
15795 fi
15796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15797     conftest$ac_exeext conftest.$ac_ext
15798     LDFLAGS=$save_LDFLAGS
15799     libdir=$save_libdir
15800
15801 fi
15802
15803   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15804
15805   # This implies no fast_install, which is unacceptable.
15806   # Some rework will be needed to allow for fast_install
15807   # before this can be enabled.
15808   hardcode_into_libs=yes
15809
15810   # Ideally, we could use ldconfig to report *all* directores which are
15811   # searched for libraries, however this is still not possible.  Aside from not
15812   # being certain /sbin/ldconfig is available, command
15813   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15814   # even though it is searched at run-time.  Try to do the best guess by
15815   # appending ld.so.conf contents (and includes) to the search path.
15816   if test -f /etc/ld.so.conf; then
15817     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' ' '`
15818     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15819   fi
15820
15821   # We used to test for /lib/ld.so.1 and disable shared libraries on
15822   # powerpc, because MkLinux only supported shared libraries with the
15823   # GNU dynamic linker.  Since this was broken with cross compilers,
15824   # most powerpc-linux boxes support dynamic linking these days and
15825   # people can always --disable-shared, the test was removed, and we
15826   # assume the GNU/Linux dynamic linker is in use.
15827   dynamic_linker='GNU/Linux ld.so'
15828   ;;
15829
15830 netbsdelf*-gnu)
15831   version_type=linux
15832   need_lib_prefix=no
15833   need_version=no
15834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   shlibpath_overrides_runpath=no
15838   hardcode_into_libs=yes
15839   dynamic_linker='NetBSD ld.elf_so'
15840   ;;
15841
15842 netbsd*)
15843   version_type=sunos
15844   need_lib_prefix=no
15845   need_version=no
15846   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15847     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15848     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15849     dynamic_linker='NetBSD (a.out) ld.so'
15850   else
15851     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15852     soname_spec='$libname$release$shared_ext$major'
15853     dynamic_linker='NetBSD ld.elf_so'
15854   fi
15855   shlibpath_var=LD_LIBRARY_PATH
15856   shlibpath_overrides_runpath=yes
15857   hardcode_into_libs=yes
15858   ;;
15859
15860 newsos6)
15861   version_type=linux # correct to gnu/linux during the next big refactor
15862   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15863   shlibpath_var=LD_LIBRARY_PATH
15864   shlibpath_overrides_runpath=yes
15865   ;;
15866
15867 *nto* | *qnx*)
15868   version_type=qnx
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872   soname_spec='$libname$release$shared_ext$major'
15873   shlibpath_var=LD_LIBRARY_PATH
15874   shlibpath_overrides_runpath=no
15875   hardcode_into_libs=yes
15876   dynamic_linker='ldqnx.so'
15877   ;;
15878
15879 openbsd* | bitrig*)
15880   version_type=sunos
15881   sys_lib_dlsearch_path_spec=/usr/lib
15882   need_lib_prefix=no
15883   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15884     need_version=no
15885   else
15886     need_version=yes
15887   fi
15888   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15890   shlibpath_var=LD_LIBRARY_PATH
15891   shlibpath_overrides_runpath=yes
15892   ;;
15893
15894 os2*)
15895   libname_spec='$name'
15896   version_type=windows
15897   shrext_cmds=.dll
15898   need_version=no
15899   need_lib_prefix=no
15900   # OS/2 can only load a DLL with a base name of 8 characters or less.
15901   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15902     v=$($ECHO $release$versuffix | tr -d .-);
15903     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15904     $ECHO $n$v`$shared_ext'
15905   library_names_spec='${libname}_dll.$libext'
15906   dynamic_linker='OS/2 ld.exe'
15907   shlibpath_var=BEGINLIBPATH
15908   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15909   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15910   postinstall_cmds='base_file=`basename \$file`~
15911     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15912     dldir=$destdir/`dirname \$dlpath`~
15913     test -d \$dldir || mkdir -p \$dldir~
15914     $install_prog $dir/$dlname \$dldir/$dlname~
15915     chmod a+x \$dldir/$dlname~
15916     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15917       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15918     fi'
15919   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15920     dlpath=$dir/\$dldll~
15921     $RM \$dlpath'
15922   ;;
15923
15924 osf3* | osf4* | osf5*)
15925   version_type=osf
15926   need_lib_prefix=no
15927   need_version=no
15928   soname_spec='$libname$release$shared_ext$major'
15929   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15930   shlibpath_var=LD_LIBRARY_PATH
15931   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15932   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933   ;;
15934
15935 rdos*)
15936   dynamic_linker=no
15937   ;;
15938
15939 solaris*)
15940   version_type=linux # correct to gnu/linux during the next big refactor
15941   need_lib_prefix=no
15942   need_version=no
15943   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15944   soname_spec='$libname$release$shared_ext$major'
15945   shlibpath_var=LD_LIBRARY_PATH
15946   shlibpath_overrides_runpath=yes
15947   hardcode_into_libs=yes
15948   # ldd complains unless libraries are executable
15949   postinstall_cmds='chmod +x $lib'
15950   ;;
15951
15952 sunos4*)
15953   version_type=sunos
15954   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15955   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15956   shlibpath_var=LD_LIBRARY_PATH
15957   shlibpath_overrides_runpath=yes
15958   if test yes = "$with_gnu_ld"; then
15959     need_lib_prefix=no
15960   fi
15961   need_version=yes
15962   ;;
15963
15964 sysv4 | sysv4.3*)
15965   version_type=linux # correct to gnu/linux during the next big refactor
15966   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15967   soname_spec='$libname$release$shared_ext$major'
15968   shlibpath_var=LD_LIBRARY_PATH
15969   case $host_vendor in
15970     sni)
15971       shlibpath_overrides_runpath=no
15972       need_lib_prefix=no
15973       runpath_var=LD_RUN_PATH
15974       ;;
15975     siemens)
15976       need_lib_prefix=no
15977       ;;
15978     motorola)
15979       need_lib_prefix=no
15980       need_version=no
15981       shlibpath_overrides_runpath=no
15982       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15983       ;;
15984   esac
15985   ;;
15986
15987 sysv4*MP*)
15988   if test -d /usr/nec; then
15989     version_type=linux # correct to gnu/linux during the next big refactor
15990     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15991     soname_spec='$libname$shared_ext.$major'
15992     shlibpath_var=LD_LIBRARY_PATH
15993   fi
15994   ;;
15995
15996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15997   version_type=sco
15998   need_lib_prefix=no
15999   need_version=no
16000   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16001   soname_spec='$libname$release$shared_ext$major'
16002   shlibpath_var=LD_LIBRARY_PATH
16003   shlibpath_overrides_runpath=yes
16004   hardcode_into_libs=yes
16005   if test yes = "$with_gnu_ld"; then
16006     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16007   else
16008     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16009     case $host_os in
16010       sco3.2v5*)
16011         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16012         ;;
16013     esac
16014   fi
16015   sys_lib_dlsearch_path_spec='/usr/lib'
16016   ;;
16017
16018 tpf*)
16019   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16020   version_type=linux # correct to gnu/linux during the next big refactor
16021   need_lib_prefix=no
16022   need_version=no
16023   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16024   shlibpath_var=LD_LIBRARY_PATH
16025   shlibpath_overrides_runpath=no
16026   hardcode_into_libs=yes
16027   ;;
16028
16029 uts4*)
16030   version_type=linux # correct to gnu/linux during the next big refactor
16031   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032   soname_spec='$libname$release$shared_ext$major'
16033   shlibpath_var=LD_LIBRARY_PATH
16034   ;;
16035
16036 *)
16037   dynamic_linker=no
16038   ;;
16039 esac
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16041 printf "%s\n" "$dynamic_linker" >&6; }
16042 test no = "$dynamic_linker" && can_build_shared=no
16043
16044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16045 if test yes = "$GCC"; then
16046   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16047 fi
16048
16049 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16050   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16051 fi
16052
16053 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16054   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16055 fi
16056
16057 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16058 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16059
16060 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16061 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16062
16063 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16064 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16163 printf %s "checking how to hardcode library paths into programs... " >&6; }
16164 hardcode_action=
16165 if test -n "$hardcode_libdir_flag_spec" ||
16166    test -n "$runpath_var" ||
16167    test yes = "$hardcode_automatic"; then
16168
16169   # We can hardcode non-existent directories.
16170   if test no != "$hardcode_direct" &&
16171      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16172      # have to relink, otherwise we might link with an installed library
16173      # when we should be linking with a yet-to-be-installed one
16174      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16175      test no != "$hardcode_minus_L"; then
16176     # Linking always hardcodes the temporary library directory.
16177     hardcode_action=relink
16178   else
16179     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16180     hardcode_action=immediate
16181   fi
16182 else
16183   # We cannot hardcode anything, or else we can only hardcode existing
16184   # directories.
16185   hardcode_action=unsupported
16186 fi
16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16188 printf "%s\n" "$hardcode_action" >&6; }
16189
16190 if test relink = "$hardcode_action" ||
16191    test yes = "$inherit_rpath"; then
16192   # Fast installation is not supported
16193   enable_fast_install=no
16194 elif test yes = "$shlibpath_overrides_runpath" ||
16195      test no = "$enable_shared"; then
16196   # Fast installation is not necessary
16197   enable_fast_install=needless
16198 fi
16199
16200
16201
16202
16203
16204
16205   if test yes != "$enable_dlopen"; then
16206   enable_dlopen=unknown
16207   enable_dlopen_self=unknown
16208   enable_dlopen_self_static=unknown
16209 else
16210   lt_cv_dlopen=no
16211   lt_cv_dlopen_libs=
16212
16213   case $host_os in
16214   beos*)
16215     lt_cv_dlopen=load_add_on
16216     lt_cv_dlopen_libs=
16217     lt_cv_dlopen_self=yes
16218     ;;
16219
16220   mingw* | pw32* | cegcc*)
16221     lt_cv_dlopen=LoadLibrary
16222     lt_cv_dlopen_libs=
16223     ;;
16224
16225   cygwin*)
16226     lt_cv_dlopen=dlopen
16227     lt_cv_dlopen_libs=
16228     ;;
16229
16230   darwin*)
16231     # if libdl is installed we need to link against it
16232     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16233 printf %s "checking for dlopen in -ldl... " >&6; }
16234 if test ${ac_cv_lib_dl_dlopen+y}
16235 then :
16236   printf %s "(cached) " >&6
16237 else $as_nop
16238   ac_check_lib_save_LIBS=$LIBS
16239 LIBS="-ldl  $LIBS"
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h.  */
16242
16243
16244 #ifdef __cplusplus
16245 extern "C"
16246 #endif
16247 char dlopen ();
16248 int main (void)
16249 {
16250 return dlopen ();
16251  ;
16252  return 0;
16253 }
16254 _ACEOF
16255 if ac_fn_c_try_link "$LINENO"
16256 then :
16257   ac_cv_lib_dl_dlopen=yes
16258 else $as_nop
16259   ac_cv_lib_dl_dlopen=no
16260 fi
16261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16262     conftest$ac_exeext conftest.$ac_ext
16263 LIBS=$ac_check_lib_save_LIBS
16264 fi
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16266 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16267 if test "x$ac_cv_lib_dl_dlopen" = xyes
16268 then :
16269   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16270 else $as_nop
16271
16272     lt_cv_dlopen=dyld
16273     lt_cv_dlopen_libs=
16274     lt_cv_dlopen_self=yes
16275
16276 fi
16277
16278     ;;
16279
16280   tpf*)
16281     # Don't try to run any link tests for TPF.  We know it's impossible
16282     # because TPF is a cross-compiler, and we know how we open DSOs.
16283     lt_cv_dlopen=dlopen
16284     lt_cv_dlopen_libs=
16285     lt_cv_dlopen_self=no
16286     ;;
16287
16288   *)
16289     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16290 if test "x$ac_cv_func_shl_load" = xyes
16291 then :
16292   lt_cv_dlopen=shl_load
16293 else $as_nop
16294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16295 printf %s "checking for shl_load in -ldld... " >&6; }
16296 if test ${ac_cv_lib_dld_shl_load+y}
16297 then :
16298   printf %s "(cached) " >&6
16299 else $as_nop
16300   ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-ldld  $LIBS"
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304
16305
16306 #ifdef __cplusplus
16307 extern "C"
16308 #endif
16309 char shl_load ();
16310 int main (void)
16311 {
16312 return shl_load ();
16313  ;
16314  return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_c_try_link "$LINENO"
16318 then :
16319   ac_cv_lib_dld_shl_load=yes
16320 else $as_nop
16321   ac_cv_lib_dld_shl_load=no
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16324     conftest$ac_exeext conftest.$ac_ext
16325 LIBS=$ac_check_lib_save_LIBS
16326 fi
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16328 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16329 if test "x$ac_cv_lib_dld_shl_load" = xyes
16330 then :
16331   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16332 else $as_nop
16333   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16334 if test "x$ac_cv_func_dlopen" = xyes
16335 then :
16336   lt_cv_dlopen=dlopen
16337 else $as_nop
16338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16339 printf %s "checking for dlopen in -ldl... " >&6; }
16340 if test ${ac_cv_lib_dl_dlopen+y}
16341 then :
16342   printf %s "(cached) " >&6
16343 else $as_nop
16344   ac_check_lib_save_LIBS=$LIBS
16345 LIBS="-ldl  $LIBS"
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h.  */
16348
16349
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 char dlopen ();
16354 int main (void)
16355 {
16356 return dlopen ();
16357  ;
16358  return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_c_try_link "$LINENO"
16362 then :
16363   ac_cv_lib_dl_dlopen=yes
16364 else $as_nop
16365   ac_cv_lib_dl_dlopen=no
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16368     conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16370 fi
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16372 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16373 if test "x$ac_cv_lib_dl_dlopen" = xyes
16374 then :
16375   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16376 else $as_nop
16377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16378 printf %s "checking for dlopen in -lsvld... " >&6; }
16379 if test ${ac_cv_lib_svld_dlopen+y}
16380 then :
16381   printf %s "(cached) " >&6
16382 else $as_nop
16383   ac_check_lib_save_LIBS=$LIBS
16384 LIBS="-lsvld  $LIBS"
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h.  */
16387
16388
16389 #ifdef __cplusplus
16390 extern "C"
16391 #endif
16392 char dlopen ();
16393 int main (void)
16394 {
16395 return dlopen ();
16396  ;
16397  return 0;
16398 }
16399 _ACEOF
16400 if ac_fn_c_try_link "$LINENO"
16401 then :
16402   ac_cv_lib_svld_dlopen=yes
16403 else $as_nop
16404   ac_cv_lib_svld_dlopen=no
16405 fi
16406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16407     conftest$ac_exeext conftest.$ac_ext
16408 LIBS=$ac_check_lib_save_LIBS
16409 fi
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16411 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16412 if test "x$ac_cv_lib_svld_dlopen" = xyes
16413 then :
16414   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16415 else $as_nop
16416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16417 printf %s "checking for dld_link in -ldld... " >&6; }
16418 if test ${ac_cv_lib_dld_dld_link+y}
16419 then :
16420   printf %s "(cached) " >&6
16421 else $as_nop
16422   ac_check_lib_save_LIBS=$LIBS
16423 LIBS="-ldld  $LIBS"
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h.  */
16426
16427
16428 #ifdef __cplusplus
16429 extern "C"
16430 #endif
16431 char dld_link ();
16432 int main (void)
16433 {
16434 return dld_link ();
16435  ;
16436  return 0;
16437 }
16438 _ACEOF
16439 if ac_fn_c_try_link "$LINENO"
16440 then :
16441   ac_cv_lib_dld_dld_link=yes
16442 else $as_nop
16443   ac_cv_lib_dld_dld_link=no
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16446     conftest$ac_exeext conftest.$ac_ext
16447 LIBS=$ac_check_lib_save_LIBS
16448 fi
16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16450 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16451 if test "x$ac_cv_lib_dld_dld_link" = xyes
16452 then :
16453   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16454 fi
16455
16456
16457 fi
16458
16459
16460 fi
16461
16462
16463 fi
16464
16465
16466 fi
16467
16468
16469 fi
16470
16471     ;;
16472   esac
16473
16474   if test no = "$lt_cv_dlopen"; then
16475     enable_dlopen=no
16476   else
16477     enable_dlopen=yes
16478   fi
16479
16480   case $lt_cv_dlopen in
16481   dlopen)
16482     save_CPPFLAGS=$CPPFLAGS
16483     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16484
16485     save_LDFLAGS=$LDFLAGS
16486     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16487
16488     save_LIBS=$LIBS
16489     LIBS="$lt_cv_dlopen_libs $LIBS"
16490
16491     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16492 printf %s "checking whether a program can dlopen itself... " >&6; }
16493 if test ${lt_cv_dlopen_self+y}
16494 then :
16495   printf %s "(cached) " >&6
16496 else $as_nop
16497           if test yes = "$cross_compiling"; then :
16498   lt_cv_dlopen_self=cross
16499 else
16500   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16501   lt_status=$lt_dlunknown
16502   cat > conftest.$ac_ext <<_LT_EOF
16503 #line $LINENO "configure"
16504 #include "confdefs.h"
16505
16506 #if HAVE_DLFCN_H
16507 #include <dlfcn.h>
16508 #endif
16509
16510 #include <stdio.h>
16511
16512 #ifdef RTLD_GLOBAL
16513 #  define LT_DLGLOBAL           RTLD_GLOBAL
16514 #else
16515 #  ifdef DL_GLOBAL
16516 #    define LT_DLGLOBAL         DL_GLOBAL
16517 #  else
16518 #    define LT_DLGLOBAL         0
16519 #  endif
16520 #endif
16521
16522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16523    find out it does not work in some platform. */
16524 #ifndef LT_DLLAZY_OR_NOW
16525 #  ifdef RTLD_LAZY
16526 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16527 #  else
16528 #    ifdef DL_LAZY
16529 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16530 #    else
16531 #      ifdef RTLD_NOW
16532 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16533 #      else
16534 #        ifdef DL_NOW
16535 #          define LT_DLLAZY_OR_NOW      DL_NOW
16536 #        else
16537 #          define LT_DLLAZY_OR_NOW      0
16538 #        endif
16539 #      endif
16540 #    endif
16541 #  endif
16542 #endif
16543
16544 /* When -fvisibility=hidden is used, assume the code has been annotated
16545    correspondingly for the symbols needed.  */
16546 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16547 int fnord () __attribute__((visibility("default")));
16548 #endif
16549
16550 int fnord () { return 42; }
16551 int main ()
16552 {
16553   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16554   int status = $lt_dlunknown;
16555
16556   if (self)
16557     {
16558       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16559       else
16560         {
16561           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16562           else puts (dlerror ());
16563         }
16564       /* dlclose (self); */
16565     }
16566   else
16567     puts (dlerror ());
16568
16569   return status;
16570 }
16571 _LT_EOF
16572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16573   (eval $ac_link) 2>&5
16574   ac_status=$?
16575   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16577     (./conftest; exit; ) >&5 2>/dev/null
16578     lt_status=$?
16579     case x$lt_status in
16580       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16581       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16582       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16583     esac
16584   else :
16585     # compilation failed
16586     lt_cv_dlopen_self=no
16587   fi
16588 fi
16589 rm -fr conftest*
16590
16591
16592 fi
16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16594 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16595
16596     if test yes = "$lt_cv_dlopen_self"; then
16597       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16598       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16599 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16600 if test ${lt_cv_dlopen_self_static+y}
16601 then :
16602   printf %s "(cached) " >&6
16603 else $as_nop
16604           if test yes = "$cross_compiling"; then :
16605   lt_cv_dlopen_self_static=cross
16606 else
16607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16608   lt_status=$lt_dlunknown
16609   cat > conftest.$ac_ext <<_LT_EOF
16610 #line $LINENO "configure"
16611 #include "confdefs.h"
16612
16613 #if HAVE_DLFCN_H
16614 #include <dlfcn.h>
16615 #endif
16616
16617 #include <stdio.h>
16618
16619 #ifdef RTLD_GLOBAL
16620 #  define LT_DLGLOBAL           RTLD_GLOBAL
16621 #else
16622 #  ifdef DL_GLOBAL
16623 #    define LT_DLGLOBAL         DL_GLOBAL
16624 #  else
16625 #    define LT_DLGLOBAL         0
16626 #  endif
16627 #endif
16628
16629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16630    find out it does not work in some platform. */
16631 #ifndef LT_DLLAZY_OR_NOW
16632 #  ifdef RTLD_LAZY
16633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16634 #  else
16635 #    ifdef DL_LAZY
16636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16637 #    else
16638 #      ifdef RTLD_NOW
16639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16640 #      else
16641 #        ifdef DL_NOW
16642 #          define LT_DLLAZY_OR_NOW      DL_NOW
16643 #        else
16644 #          define LT_DLLAZY_OR_NOW      0
16645 #        endif
16646 #      endif
16647 #    endif
16648 #  endif
16649 #endif
16650
16651 /* When -fvisibility=hidden is used, assume the code has been annotated
16652    correspondingly for the symbols needed.  */
16653 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16654 int fnord () __attribute__((visibility("default")));
16655 #endif
16656
16657 int fnord () { return 42; }
16658 int main ()
16659 {
16660   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16661   int status = $lt_dlunknown;
16662
16663   if (self)
16664     {
16665       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16666       else
16667         {
16668           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16669           else puts (dlerror ());
16670         }
16671       /* dlclose (self); */
16672     }
16673   else
16674     puts (dlerror ());
16675
16676   return status;
16677 }
16678 _LT_EOF
16679   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16680   (eval $ac_link) 2>&5
16681   ac_status=$?
16682   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16684     (./conftest; exit; ) >&5 2>/dev/null
16685     lt_status=$?
16686     case x$lt_status in
16687       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16688       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16689       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16690     esac
16691   else :
16692     # compilation failed
16693     lt_cv_dlopen_self_static=no
16694   fi
16695 fi
16696 rm -fr conftest*
16697
16698
16699 fi
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16701 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16702     fi
16703
16704     CPPFLAGS=$save_CPPFLAGS
16705     LDFLAGS=$save_LDFLAGS
16706     LIBS=$save_LIBS
16707     ;;
16708   esac
16709
16710   case $lt_cv_dlopen_self in
16711   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16712   *) enable_dlopen_self=unknown ;;
16713   esac
16714
16715   case $lt_cv_dlopen_self_static in
16716   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16717   *) enable_dlopen_self_static=unknown ;;
16718   esac
16719 fi
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737 striplib=
16738 old_striplib=
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16740 printf %s "checking whether stripping libraries is possible... " >&6; }
16741 if test -z "$STRIP"; then
16742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 printf "%s\n" "no" >&6; }
16744 else
16745   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16746     old_striplib="$STRIP --strip-debug"
16747     striplib="$STRIP --strip-unneeded"
16748     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16749 printf "%s\n" "yes" >&6; }
16750   else
16751     case $host_os in
16752     darwin*)
16753       # FIXME - insert some real tests, host_os isn't really good enough
16754       striplib="$STRIP -x"
16755       old_striplib="$STRIP -S"
16756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 printf "%s\n" "yes" >&6; }
16758       ;;
16759     freebsd*)
16760       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16761         old_striplib="$STRIP --strip-debug"
16762         striplib="$STRIP --strip-unneeded"
16763         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16764 printf "%s\n" "yes" >&6; }
16765       else
16766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 printf "%s\n" "no" >&6; }
16768       fi
16769       ;;
16770     *)
16771       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 printf "%s\n" "no" >&6; }
16773       ;;
16774     esac
16775   fi
16776 fi
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789   # Report what library types will actually be built
16790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16791 printf %s "checking if libtool supports shared libraries... " >&6; }
16792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16793 printf "%s\n" "$can_build_shared" >&6; }
16794
16795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16796 printf %s "checking whether to build shared libraries... " >&6; }
16797   test no = "$can_build_shared" && enable_shared=no
16798
16799   # On AIX, shared libraries and static libraries use the same namespace, and
16800   # are all built from PIC.
16801   case $host_os in
16802   aix3*)
16803     test yes = "$enable_shared" && enable_static=no
16804     if test -n "$RANLIB"; then
16805       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16806       postinstall_cmds='$RANLIB $lib'
16807     fi
16808     ;;
16809
16810   aix[4-9]*)
16811     if test ia64 != "$host_cpu"; then
16812       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16813       yes,aix,yes) ;;                   # shared object as lib.so file only
16814       yes,svr4,*) ;;                    # shared object as lib.so archive member only
16815       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
16816       esac
16817     fi
16818     ;;
16819   esac
16820   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16821 printf "%s\n" "$enable_shared" >&6; }
16822
16823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16824 printf %s "checking whether to build static libraries... " >&6; }
16825   # Make sure either enable_shared or enable_static is yes.
16826   test yes = "$enable_shared" || enable_static=yes
16827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16828 printf "%s\n" "$enable_static" >&6; }
16829
16830
16831
16832
16833 fi
16834 ac_ext=c
16835 ac_cpp='$CPP $CPPFLAGS'
16836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16839
16840 CC=$lt_save_CC
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856         ac_config_commands="$ac_config_commands libtool"
16857
16858
16859
16860
16861 # Only expand once:
16862
16863
16864 ## --------------------- ##
16865 ##  End of libtool code  ##
16866 ## --------------------- ##
16867
16868 #
16869 # Verify if finally libtool shared libraries will be built
16870 #
16871
16872 case "x$enable_shared" in # ((
16873   xyes | xno)
16874     xc_lt_build_shared=$enable_shared
16875     ;;
16876   *)
16877     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16878     ;;
16879 esac
16880
16881 #
16882 # Verify if finally libtool static libraries will be built
16883 #
16884
16885 case "x$enable_static" in # ((
16886   xyes | xno)
16887     xc_lt_build_static=$enable_static
16888     ;;
16889   *)
16890     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16891     ;;
16892 esac
16893
16894 #
16895 # Verify if libtool shared libraries should be linked using flag -version-info
16896 #
16897
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16899 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16900 xc_lt_shlib_use_version_info='yes'
16901 if test "x$version_type" = 'xnone'; then
16902   xc_lt_shlib_use_version_info='no'
16903 fi
16904 case $host_os in # (
16905   amigaos*)
16906     xc_lt_shlib_use_version_info='yes'
16907     ;;
16908 esac
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16910 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16911
16912 #
16913 # Verify if libtool shared libraries should be linked using flag -no-undefined
16914 #
16915
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16917 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16918 xc_lt_shlib_use_no_undefined='no'
16919 if test "x$allow_undefined" = 'xno'; then
16920   xc_lt_shlib_use_no_undefined='yes'
16921 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16922   xc_lt_shlib_use_no_undefined='yes'
16923 fi
16924 case $host_os in # (
16925   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16926     xc_lt_shlib_use_no_undefined='yes'
16927     ;;
16928 esac
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16930 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16931
16932 #
16933 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16934 #
16935
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16937 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16938 xc_lt_shlib_use_mimpure_text='no'
16939 case $host_os in # (
16940   solaris2*)
16941     if test "x$GCC" = 'xyes'; then
16942       xc_lt_shlib_use_mimpure_text='yes'
16943     fi
16944     ;;
16945 esac
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16947 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16948
16949 #
16950 # Find out whether libtool libraries would be built with PIC
16951 #
16952
16953 case "x$pic_mode" in # ((((
16954   xdefault)
16955     xc_lt_build_shared_with_pic='yes'
16956     xc_lt_build_static_with_pic='no'
16957     ;;
16958   xyes)
16959     xc_lt_build_shared_with_pic='yes'
16960     xc_lt_build_static_with_pic='yes'
16961     ;;
16962   xno)
16963     xc_lt_build_shared_with_pic='no'
16964     xc_lt_build_static_with_pic='no'
16965     ;;
16966   *)
16967     xc_lt_build_shared_with_pic='unknown'
16968     xc_lt_build_static_with_pic='unknown'
16969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16970 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16971     ;;
16972 esac
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16974 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16976 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16978 printf %s "checking whether to build static libraries with PIC... " >&6; }
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16980 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16981
16982 #
16983 # Verify if libtool shared libraries will be built while static not built
16984 #
16985
16986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16987 printf %s "checking whether to build shared libraries only... " >&6; }
16988 if test "$xc_lt_build_shared" = 'yes' &&
16989   test "$xc_lt_build_static" = 'no'; then
16990   xc_lt_build_shared_only='yes'
16991 else
16992   xc_lt_build_shared_only='no'
16993 fi
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16995 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16996
16997 #
16998 # Verify if libtool static libraries will be built while shared not built
16999 #
17000
17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
17002 printf %s "checking whether to build static libraries only... " >&6; }
17003 if test "$xc_lt_build_static" = 'yes' &&
17004   test "$xc_lt_build_shared" = 'no'; then
17005   xc_lt_build_static_only='yes'
17006 else
17007   xc_lt_build_static_only='no'
17008 fi
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17010 printf "%s\n" "$xc_lt_build_static_only" >&6; }
17011
17012
17013
17014
17015 if test -n "$ac_tool_prefix"; then
17016   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17017 set dummy ${ac_tool_prefix}windres; ac_word=$2
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019 printf %s "checking for $ac_word... " >&6; }
17020 if test ${ac_cv_prog_RC+y}
17021 then :
17022   printf %s "(cached) " >&6
17023 else $as_nop
17024   if test -n "$RC"; then
17025   ac_cv_prog_RC="$RC" # Let the user override the test.
17026 else
17027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028 for as_dir in $PATH
17029 do
17030   IFS=$as_save_IFS
17031   case $as_dir in #(((
17032     '') as_dir=./ ;;
17033     */) ;;
17034     *) as_dir=$as_dir/ ;;
17035   esac
17036     for ac_exec_ext in '' $ac_executable_extensions; do
17037   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17038     ac_cv_prog_RC="${ac_tool_prefix}windres"
17039     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17040     break 2
17041   fi
17042 done
17043   done
17044 IFS=$as_save_IFS
17045
17046 fi
17047 fi
17048 RC=$ac_cv_prog_RC
17049 if test -n "$RC"; then
17050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17051 printf "%s\n" "$RC" >&6; }
17052 else
17053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054 printf "%s\n" "no" >&6; }
17055 fi
17056
17057
17058 fi
17059 if test -z "$ac_cv_prog_RC"; then
17060   ac_ct_RC=$RC
17061   # Extract the first word of "windres", so it can be a program name with args.
17062 set dummy windres; ac_word=$2
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17064 printf %s "checking for $ac_word... " >&6; }
17065 if test ${ac_cv_prog_ac_ct_RC+y}
17066 then :
17067   printf %s "(cached) " >&6
17068 else $as_nop
17069   if test -n "$ac_ct_RC"; then
17070   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17071 else
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17074 do
17075   IFS=$as_save_IFS
17076   case $as_dir in #(((
17077     '') as_dir=./ ;;
17078     */) ;;
17079     *) as_dir=$as_dir/ ;;
17080   esac
17081     for ac_exec_ext in '' $ac_executable_extensions; do
17082   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17083     ac_cv_prog_ac_ct_RC="windres"
17084     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17085     break 2
17086   fi
17087 done
17088   done
17089 IFS=$as_save_IFS
17090
17091 fi
17092 fi
17093 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17094 if test -n "$ac_ct_RC"; then
17095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17096 printf "%s\n" "$ac_ct_RC" >&6; }
17097 else
17098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 printf "%s\n" "no" >&6; }
17100 fi
17101
17102   if test "x$ac_ct_RC" = x; then
17103     RC=""
17104   else
17105     case $cross_compiling:$ac_tool_warned in
17106 yes:)
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17109 ac_tool_warned=yes ;;
17110 esac
17111     RC=$ac_ct_RC
17112   fi
17113 else
17114   RC="$ac_cv_prog_RC"
17115 fi
17116
17117
17118
17119
17120 # Source file extension for RC test sources.
17121 ac_ext=rc
17122
17123 # Object file extension for compiled RC test sources.
17124 objext=o
17125 objext_RC=$objext
17126
17127 # Code to be used in simple compile tests
17128 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17129
17130 # Code to be used in simple link tests
17131 lt_simple_link_test_code=$lt_simple_compile_test_code
17132
17133 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17134
17135
17136
17137
17138
17139
17140 # If no C compiler was specified, use CC.
17141 LTCC=${LTCC-"$CC"}
17142
17143 # If no C compiler flags were specified, use CFLAGS.
17144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17145
17146 # Allow CC to be a program name with arguments.
17147 compiler=$CC
17148
17149
17150 # save warnings/boilerplate of simple test code
17151 ac_outfile=conftest.$ac_objext
17152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17154 _lt_compiler_boilerplate=`cat conftest.err`
17155 $RM conftest*
17156
17157 ac_outfile=conftest.$ac_objext
17158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17160 _lt_linker_boilerplate=`cat conftest.err`
17161 $RM -r conftest*
17162
17163
17164 # Allow CC to be a program name with arguments.
17165 lt_save_CC=$CC
17166 lt_save_CFLAGS=$CFLAGS
17167 lt_save_GCC=$GCC
17168 GCC=
17169 CC=${RC-"windres"}
17170 CFLAGS=
17171 compiler=$CC
17172 compiler_RC=$CC
17173 func_cc_basename $compiler
17174 cc_basename=$func_cc_basename_result
17175
17176 lt_cv_prog_compiler_c_o_RC=yes
17177
17178 if test -n "$compiler"; then
17179   :
17180
17181
17182
17183 fi
17184
17185 GCC=$lt_save_GCC
17186 ac_ext=c
17187 ac_cpp='$CPP $CPPFLAGS'
17188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17191
17192 CC=$lt_save_CC
17193 CFLAGS=$lt_save_CFLAGS
17194
17195
17196 #
17197 # Automake conditionals based on libtool related checks
17198 #
17199
17200  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17201   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17202   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17203 else
17204   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17205   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17206 fi
17207
17208  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17209   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17210   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17211 else
17212   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17213   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17214 fi
17215
17216  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17217   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17218   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17219 else
17220   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17221   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17222 fi
17223
17224
17225 #
17226 # Due to libtool and automake machinery limitations of not allowing
17227 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
17228 # inclusion of these in shared or static libraries, we are forced to
17229 # build using separate configure runs for shared and static libraries
17230 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
17231 # to compile objects for each kind of library. Notice that relying on
17232 # the '-DPIC' CFLAG that libtool provides is not valid given that the
17233 # user might for example choose to build static libraries with PIC.
17234 #
17235
17236 #
17237 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17238 # targeting a static library and not building its shared counterpart.
17239 #
17240
17241  if test "x$xc_lt_build_static_only" = 'xyes'; then
17242   USE_CPPFLAG_CURL_STATICLIB_TRUE=
17243   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17244 else
17245   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17246   USE_CPPFLAG_CURL_STATICLIB_FALSE=
17247 fi
17248
17249
17250 #
17251 # Make staticlib CPPFLAG variable and its definition visible in output
17252 # files unconditionally, providing an empty definition unless strictly
17253 # targeting a static library and not building its shared counterpart.
17254 #
17255
17256 CPPFLAG_CURL_STATICLIB=
17257 if test "x$xc_lt_build_static_only" = 'xyes'; then
17258   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17259 fi
17260
17261
17262
17263 # Determine whether all dependent libraries must be specified when linking
17264 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17265 then
17266     REQUIRE_LIB_DEPS=no
17267 else
17268     REQUIRE_LIB_DEPS=yes
17269 fi
17270
17271  if test x$REQUIRE_LIB_DEPS = xyes; then
17272   USE_EXPLICIT_LIB_DEPS_TRUE=
17273   USE_EXPLICIT_LIB_DEPS_FALSE='#'
17274 else
17275   USE_EXPLICIT_LIB_DEPS_TRUE='#'
17276   USE_EXPLICIT_LIB_DEPS_FALSE=
17277 fi
17278
17279
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17281 printf %s "checking for inline... " >&6; }
17282 if test ${ac_cv_c_inline+y}
17283 then :
17284   printf %s "(cached) " >&6
17285 else $as_nop
17286   ac_cv_c_inline=no
17287 for ac_kw in inline __inline__ __inline; do
17288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h.  */
17290 #ifndef __cplusplus
17291 typedef int foo_t;
17292 static $ac_kw foo_t static_foo (void) {return 0; }
17293 $ac_kw foo_t foo (void) {return 0; }
17294 #endif
17295
17296 _ACEOF
17297 if ac_fn_c_try_compile "$LINENO"
17298 then :
17299   ac_cv_c_inline=$ac_kw
17300 fi
17301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17302   test "$ac_cv_c_inline" != no && break
17303 done
17304
17305 fi
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17307 printf "%s\n" "$ac_cv_c_inline" >&6; }
17308
17309 case $ac_cv_c_inline in
17310   inline | yes) ;;
17311   *)
17312     case $ac_cv_c_inline in
17313       no) ac_val=;;
17314       *) ac_val=$ac_cv_c_inline;;
17315     esac
17316     cat >>confdefs.h <<_ACEOF
17317 #ifndef __cplusplus
17318 #define inline $ac_val
17319 #endif
17320 _ACEOF
17321     ;;
17322 esac
17323
17324
17325
17326
17327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17328 printf %s "checking if cpp -P is needed... " >&6; }
17329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h.  */
17331
17332  #include <errno.h>
17333 TEST EINVAL TEST
17334
17335 _ACEOF
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337   $EGREP "TEST.*TEST" >/dev/null 2>&1
17338 then :
17339   cpp=no
17340 else $as_nop
17341   cpp=yes
17342 fi
17343 rm -rf conftest*
17344
17345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17346 printf "%s\n" "$cpp" >&6; }
17347
17348     if test "x$cpp" = "xyes"; then
17349     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17350 printf %s "checking if cpp -P works... " >&6; }
17351     OLDCPPFLAGS=$CPPFLAGS
17352     CPPFLAGS="$CPPFLAGS -P"
17353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354 /* end confdefs.h.  */
17355
17356  #include <errno.h>
17357 TEST EINVAL TEST
17358
17359 _ACEOF
17360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17361   $EGREP "TEST.*TEST" >/dev/null 2>&1
17362 then :
17363   cpp_p=yes
17364 else $as_nop
17365   cpp_p=no
17366 fi
17367 rm -rf conftest*
17368
17369     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17370 printf "%s\n" "$cpp_p" >&6; }
17371
17372     if test "x$cpp_p" = "xno"; then
17373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17374 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17375       # without -P
17376       CPPPFLAG=""
17377     else
17378       # with -P
17379       CPPPFLAG="-P"
17380     fi
17381         CPPFLAGS=$OLDCPPFLAGS
17382   else
17383     # without -P
17384     CPPPFLAG=""
17385   fi
17386
17387
17388   #
17389   compiler_id="unknown"
17390   compiler_num="0"
17391   #
17392   flags_dbg_yes="unknown"
17393   flags_opt_all="unknown"
17394   flags_opt_yes="unknown"
17395   flags_opt_off="unknown"
17396   #
17397   flags_prefer_cppflags="no"
17398   #
17399
17400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17401 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17402
17403     OLDCPPFLAGS=$CPPFLAGS
17404   # CPPPFLAG comes from CURL_CPP_P
17405   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17406       if test -z "$SED"; then
17407     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17408   fi
17409   if test -z "$GREP"; then
17410     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17411   fi
17412
17413   tmp_exp=""
17414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h.  */
17416
17417
17418 #ifdef __DECC
17419 CURL_DEF_TOKEN __DECC
17420 #endif
17421
17422
17423 _ACEOF
17424 if ac_fn_c_try_cpp "$LINENO"
17425 then :
17426
17427     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17428       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17429       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17430       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17431     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17432       tmp_exp=""
17433     fi
17434
17435 fi
17436 rm -f conftest.err conftest.i conftest.$ac_ext
17437   if test -z "$tmp_exp"; then
17438     curl_cv_have_def___DECC=no
17439
17440   else
17441     curl_cv_have_def___DECC=yes
17442     curl_cv_def___DECC=$tmp_exp
17443
17444   fi
17445       CPPFLAGS=$OLDCPPFLAGS
17446
17447
17448     OLDCPPFLAGS=$CPPFLAGS
17449   # CPPPFLAG comes from CURL_CPP_P
17450   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17451       if test -z "$SED"; then
17452     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17453   fi
17454   if test -z "$GREP"; then
17455     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17456   fi
17457
17458   tmp_exp=""
17459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h.  */
17461
17462
17463 #ifdef __DECC_VER
17464 CURL_DEF_TOKEN __DECC_VER
17465 #endif
17466
17467
17468 _ACEOF
17469 if ac_fn_c_try_cpp "$LINENO"
17470 then :
17471
17472     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17473       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17474       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17475       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17476     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17477       tmp_exp=""
17478     fi
17479
17480 fi
17481 rm -f conftest.err conftest.i conftest.$ac_ext
17482   if test -z "$tmp_exp"; then
17483     curl_cv_have_def___DECC_VER=no
17484
17485   else
17486     curl_cv_have_def___DECC_VER=yes
17487     curl_cv_def___DECC_VER=$tmp_exp
17488
17489   fi
17490       CPPFLAGS=$OLDCPPFLAGS
17491
17492   if test "$curl_cv_have_def___DECC" = "yes" &&
17493     test "$curl_cv_have_def___DECC_VER" = "yes"; then
17494     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17495 printf "%s\n" "yes" >&6; }
17496     compiler_id="DEC_C"
17497     flags_dbg_yes="-g2"
17498     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17499     flags_opt_yes="-O1"
17500     flags_opt_off="-O0"
17501   else
17502     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 printf "%s\n" "no" >&6; }
17504   fi
17505
17506
17507   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17508 printf %s "checking if compiler is HP-UX C... " >&6; }
17509
17510     OLDCPPFLAGS=$CPPFLAGS
17511   # CPPPFLAG comes from CURL_CPP_P
17512   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17513       if test -z "$SED"; then
17514     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17515   fi
17516   if test -z "$GREP"; then
17517     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17518   fi
17519
17520   tmp_exp=""
17521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h.  */
17523
17524
17525 #ifdef __HP_cc
17526 CURL_DEF_TOKEN __HP_cc
17527 #endif
17528
17529
17530 _ACEOF
17531 if ac_fn_c_try_cpp "$LINENO"
17532 then :
17533
17534     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17535       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17536       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17537       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17538     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17539       tmp_exp=""
17540     fi
17541
17542 fi
17543 rm -f conftest.err conftest.i conftest.$ac_ext
17544   if test -z "$tmp_exp"; then
17545     curl_cv_have_def___HP_cc=no
17546
17547   else
17548     curl_cv_have_def___HP_cc=yes
17549     curl_cv_def___HP_cc=$tmp_exp
17550
17551   fi
17552       CPPFLAGS=$OLDCPPFLAGS
17553
17554   if test "$curl_cv_have_def___HP_cc" = "yes"; then
17555     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17556 printf "%s\n" "yes" >&6; }
17557     compiler_id="HP_UX_C"
17558     flags_dbg_yes="-g"
17559     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17560     flags_opt_yes="+O2"
17561     flags_opt_off="+O0"
17562   else
17563     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 printf "%s\n" "no" >&6; }
17565   fi
17566
17567
17568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17569 printf %s "checking if compiler is IBM C... " >&6; }
17570
17571     OLDCPPFLAGS=$CPPFLAGS
17572   # CPPPFLAG comes from CURL_CPP_P
17573   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17574       if test -z "$SED"; then
17575     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17576   fi
17577   if test -z "$GREP"; then
17578     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17579   fi
17580
17581   tmp_exp=""
17582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h.  */
17584
17585
17586 #ifdef __IBMC__
17587 CURL_DEF_TOKEN __IBMC__
17588 #endif
17589
17590
17591 _ACEOF
17592 if ac_fn_c_try_cpp "$LINENO"
17593 then :
17594
17595     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17596       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17597       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17598       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17599     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17600       tmp_exp=""
17601     fi
17602
17603 fi
17604 rm -f conftest.err conftest.i conftest.$ac_ext
17605   if test -z "$tmp_exp"; then
17606     curl_cv_have_def___IBMC__=no
17607
17608   else
17609     curl_cv_have_def___IBMC__=yes
17610     curl_cv_def___IBMC__=$tmp_exp
17611
17612   fi
17613       CPPFLAGS=$OLDCPPFLAGS
17614
17615   if test "$curl_cv_have_def___IBMC__" = "yes"; then
17616     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17617 printf "%s\n" "yes" >&6; }
17618     compiler_id="IBM_C"
17619     flags_dbg_yes="-g"
17620     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17621     flags_opt_all="$flags_opt_all -qnooptimize"
17622     flags_opt_all="$flags_opt_all -qoptimize=0"
17623     flags_opt_all="$flags_opt_all -qoptimize=1"
17624     flags_opt_all="$flags_opt_all -qoptimize=2"
17625     flags_opt_all="$flags_opt_all -qoptimize=3"
17626     flags_opt_all="$flags_opt_all -qoptimize=4"
17627     flags_opt_all="$flags_opt_all -qoptimize=5"
17628     flags_opt_yes="-O2"
17629     flags_opt_off="-qnooptimize"
17630     flags_prefer_cppflags="yes"
17631   else
17632     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633 printf "%s\n" "no" >&6; }
17634   fi
17635
17636
17637     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17638 printf %s "checking if compiler is Intel C... " >&6; }
17639
17640     OLDCPPFLAGS=$CPPFLAGS
17641   # CPPPFLAG comes from CURL_CPP_P
17642   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17643       if test -z "$SED"; then
17644     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17645   fi
17646   if test -z "$GREP"; then
17647     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17648   fi
17649
17650   tmp_exp=""
17651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h.  */
17653
17654
17655 #ifdef __INTEL_COMPILER
17656 CURL_DEF_TOKEN __INTEL_COMPILER
17657 #endif
17658
17659
17660 _ACEOF
17661 if ac_fn_c_try_cpp "$LINENO"
17662 then :
17663
17664     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17665       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17666       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17667       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17668     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17669       tmp_exp=""
17670     fi
17671
17672 fi
17673 rm -f conftest.err conftest.i conftest.$ac_ext
17674   if test -z "$tmp_exp"; then
17675     curl_cv_have_def___INTEL_COMPILER=no
17676
17677   else
17678     curl_cv_have_def___INTEL_COMPILER=yes
17679     curl_cv_def___INTEL_COMPILER=$tmp_exp
17680
17681   fi
17682       CPPFLAGS=$OLDCPPFLAGS
17683
17684   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 printf "%s\n" "yes" >&6; }
17687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17688 printf %s "checking compiler version... " >&6; }
17689     compiler_num="$curl_cv_def___INTEL_COMPILER"
17690     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5
17691 printf "%s\n" "Intel C '$compiler_num'" >&6; }
17692
17693     OLDCPPFLAGS=$CPPFLAGS
17694   # CPPPFLAG comes from CURL_CPP_P
17695   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17696       if test -z "$SED"; then
17697     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17698   fi
17699   if test -z "$GREP"; then
17700     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17701   fi
17702
17703   tmp_exp=""
17704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h.  */
17706
17707
17708 #ifdef __unix__
17709 CURL_DEF_TOKEN __unix__
17710 #endif
17711
17712
17713 _ACEOF
17714 if ac_fn_c_try_cpp "$LINENO"
17715 then :
17716
17717     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17718       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17719       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17720       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17721     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17722       tmp_exp=""
17723     fi
17724
17725 fi
17726 rm -f conftest.err conftest.i conftest.$ac_ext
17727   if test -z "$tmp_exp"; then
17728     curl_cv_have_def___unix__=no
17729
17730   else
17731     curl_cv_have_def___unix__=yes
17732     curl_cv_def___unix__=$tmp_exp
17733
17734   fi
17735       CPPFLAGS=$OLDCPPFLAGS
17736
17737     if test "$curl_cv_have_def___unix__" = "yes"; then
17738       compiler_id="INTEL_UNIX_C"
17739       flags_dbg_yes="-g"
17740       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17741       flags_opt_yes="-O2"
17742       flags_opt_off="-O0"
17743     else
17744       compiler_id="INTEL_WINDOWS_C"
17745       flags_dbg_yes="/Zi /Oy-"
17746       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17747       flags_opt_yes="/O2"
17748       flags_opt_off="/Od"
17749     fi
17750   else
17751     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752 printf "%s\n" "no" >&6; }
17753   fi
17754
17755
17756     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17757 printf %s "checking if compiler is clang... " >&6; }
17758
17759     OLDCPPFLAGS=$CPPFLAGS
17760   # CPPPFLAG comes from CURL_CPP_P
17761   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17762       if test -z "$SED"; then
17763     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17764   fi
17765   if test -z "$GREP"; then
17766     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17767   fi
17768
17769   tmp_exp=""
17770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h.  */
17772
17773
17774 #ifdef __clang__
17775 CURL_DEF_TOKEN __clang__
17776 #endif
17777
17778
17779 _ACEOF
17780 if ac_fn_c_try_cpp "$LINENO"
17781 then :
17782
17783     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17784       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17785       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17786       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17787     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17788       tmp_exp=""
17789     fi
17790
17791 fi
17792 rm -f conftest.err conftest.i conftest.$ac_ext
17793   if test -z "$tmp_exp"; then
17794     curl_cv_have_def___clang__=no
17795
17796   else
17797     curl_cv_have_def___clang__=yes
17798     curl_cv_def___clang__=$tmp_exp
17799
17800   fi
17801       CPPFLAGS=$OLDCPPFLAGS
17802
17803   if test "$curl_cv_have_def___clang__" = "yes"; then
17804     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 printf "%s\n" "yes" >&6; }
17806     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17807 printf %s "checking if compiler is xlclang... " >&6; }
17808
17809     OLDCPPFLAGS=$CPPFLAGS
17810   # CPPPFLAG comes from CURL_CPP_P
17811   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17812       if test -z "$SED"; then
17813     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17814   fi
17815   if test -z "$GREP"; then
17816     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17817   fi
17818
17819   tmp_exp=""
17820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h.  */
17822
17823
17824 #ifdef __ibmxl__
17825 CURL_DEF_TOKEN __ibmxl__
17826 #endif
17827
17828
17829 _ACEOF
17830 if ac_fn_c_try_cpp "$LINENO"
17831 then :
17832
17833     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17834       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17835       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17836       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17837     if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17838       tmp_exp=""
17839     fi
17840
17841 fi
17842 rm -f conftest.err conftest.i conftest.$ac_ext
17843   if test -z "$tmp_exp"; then
17844     curl_cv_have_def___ibmxl__=no
17845
17846   else
17847     curl_cv_have_def___ibmxl__=yes
17848     curl_cv_def___ibmxl__=$tmp_exp
17849
17850   fi
17851       CPPFLAGS=$OLDCPPFLAGS
17852
17853     if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17854             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17855 printf "%s\n" "yes" >&6; }
17856       compiler_id="XLCLANG"
17857     else
17858       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859 printf "%s\n" "no" >&6; }
17860       compiler_id="CLANG"
17861     fi
17862     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17863 printf %s "checking compiler version... " >&6; }
17864     fullclangver=`$CC -v 2>&1 | grep version`
17865     if echo $fullclangver | grep 'Apple' >/dev/null; then
17866       appleclang=1
17867     else
17868       appleclang=0
17869     fi
17870     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17871     if test -z "$clangver"; then
17872       clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17873       oldapple=0
17874     else
17875       oldapple=1
17876     fi
17877     clangvhi=`echo $clangver | cut -d . -f1`
17878     clangvlo=`echo $clangver | cut -d . -f2`
17879     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17880     if test "$appleclang" = '1' && test "$oldapple" = '0'; then
17881             if   test "$compiler_num" -ge '1300'; then compiler_num='1200'
17882       elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
17883       elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
17884       elif test "$compiler_num" -ge '1107'; then compiler_num='900'
17885       elif test "$compiler_num" -ge '1103'; then compiler_num='800'
17886       elif test "$compiler_num" -ge '1003'; then compiler_num='700'
17887       elif test "$compiler_num" -ge '1001'; then compiler_num='600'
17888       elif test "$compiler_num" -ge  '904'; then compiler_num='500'
17889       elif test "$compiler_num" -ge  '902'; then compiler_num='400'
17890       elif test "$compiler_num" -ge  '803'; then compiler_num='309'
17891       elif test "$compiler_num" -ge  '703'; then compiler_num='308'
17892       else                                       compiler_num='307'
17893       fi
17894     fi
17895     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5
17896 printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; }
17897     flags_dbg_yes="-g"
17898     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17899     flags_opt_yes="-O2"
17900     flags_opt_off="-O0"
17901   else
17902     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903 printf "%s\n" "no" >&6; }
17904   fi
17905
17906
17907       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17908 printf %s "checking if compiler is GNU C... " >&6; }
17909
17910     OLDCPPFLAGS=$CPPFLAGS
17911   # CPPPFLAG comes from CURL_CPP_P
17912   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17913       if test -z "$SED"; then
17914     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17915   fi
17916   if test -z "$GREP"; then
17917     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17918   fi
17919
17920   tmp_exp=""
17921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h.  */
17923
17924
17925 #ifdef __GNUC__
17926 CURL_DEF_TOKEN __GNUC__
17927 #endif
17928
17929
17930 _ACEOF
17931 if ac_fn_c_try_cpp "$LINENO"
17932 then :
17933
17934     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17935       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17936       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17937       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17938     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17939       tmp_exp=""
17940     fi
17941
17942 fi
17943 rm -f conftest.err conftest.i conftest.$ac_ext
17944   if test -z "$tmp_exp"; then
17945     curl_cv_have_def___GNUC__=no
17946
17947   else
17948     curl_cv_have_def___GNUC__=yes
17949     curl_cv_def___GNUC__=$tmp_exp
17950
17951   fi
17952       CPPFLAGS=$OLDCPPFLAGS
17953
17954   if test "$curl_cv_have_def___GNUC__" = "yes" &&
17955     test "$compiler_id" = "unknown"; then
17956     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17957 printf "%s\n" "yes" >&6; }
17958     compiler_id="GNU_C"
17959     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17960 printf %s "checking compiler version... " >&6; }
17961     # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
17962     gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
17963     gccvhi=`echo $gccver | cut -d . -f1`
17964     if echo $gccver | grep -F '.' >/dev/null; then
17965       gccvlo=`echo $gccver | cut -d . -f2`
17966     else
17967       gccvlo="0"
17968     fi
17969     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17970     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5
17971 printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; }
17972     flags_dbg_yes="-g"
17973     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17974     flags_opt_yes="-O2"
17975     flags_opt_off="-O0"
17976
17977     OLDCPPFLAGS=$CPPFLAGS
17978   # CPPPFLAG comes from CURL_CPP_P
17979   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17980       if test -z "$SED"; then
17981     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17982   fi
17983   if test -z "$GREP"; then
17984     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17985   fi
17986
17987   tmp_exp=""
17988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h.  */
17990
17991
17992 #ifdef _WIN32
17993 CURL_DEF_TOKEN _WIN32
17994 #endif
17995
17996
17997 _ACEOF
17998 if ac_fn_c_try_cpp "$LINENO"
17999 then :
18000
18001     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18002       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18003       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18004       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18005     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
18006       tmp_exp=""
18007     fi
18008
18009 fi
18010 rm -f conftest.err conftest.i conftest.$ac_ext
18011   if test -z "$tmp_exp"; then
18012     curl_cv_have_def__WIN32=no
18013
18014   else
18015     curl_cv_have_def__WIN32=yes
18016     curl_cv_def__WIN32=$tmp_exp
18017
18018   fi
18019       CPPFLAGS=$OLDCPPFLAGS
18020
18021   else
18022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023 printf "%s\n" "no" >&6; }
18024   fi
18025
18026
18027     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
18028 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
18029
18030     OLDCPPFLAGS=$CPPFLAGS
18031   # CPPPFLAG comes from CURL_CPP_P
18032   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18033       if test -z "$SED"; then
18034     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18035   fi
18036   if test -z "$GREP"; then
18037     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18038   fi
18039
18040   tmp_exp=""
18041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h.  */
18043
18044
18045 #ifdef __GNUC__
18046 CURL_DEF_TOKEN __GNUC__
18047 #endif
18048
18049
18050 _ACEOF
18051 if ac_fn_c_try_cpp "$LINENO"
18052 then :
18053
18054     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18055       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18056       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18057       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18058     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18059       tmp_exp=""
18060     fi
18061
18062 fi
18063 rm -f conftest.err conftest.i conftest.$ac_ext
18064   if test -z "$tmp_exp"; then
18065     curl_cv_have_def___GNUC__=no
18066
18067   else
18068     curl_cv_have_def___GNUC__=yes
18069     curl_cv_def___GNUC__=$tmp_exp
18070
18071   fi
18072       CPPFLAGS=$OLDCPPFLAGS
18073
18074
18075     OLDCPPFLAGS=$CPPFLAGS
18076   # CPPPFLAG comes from CURL_CPP_P
18077   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18078       if test -z "$SED"; then
18079     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18080   fi
18081   if test -z "$GREP"; then
18082     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18083   fi
18084
18085   tmp_exp=""
18086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h.  */
18088
18089
18090 #ifdef _COMPILER_VERSION
18091 CURL_DEF_TOKEN _COMPILER_VERSION
18092 #endif
18093
18094
18095 _ACEOF
18096 if ac_fn_c_try_cpp "$LINENO"
18097 then :
18098
18099     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18100       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18101       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18102       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18103     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18104       tmp_exp=""
18105     fi
18106
18107 fi
18108 rm -f conftest.err conftest.i conftest.$ac_ext
18109   if test -z "$tmp_exp"; then
18110     curl_cv_have_def__COMPILER_VERSION=no
18111
18112   else
18113     curl_cv_have_def__COMPILER_VERSION=yes
18114     curl_cv_def__COMPILER_VERSION=$tmp_exp
18115
18116   fi
18117       CPPFLAGS=$OLDCPPFLAGS
18118
18119
18120     OLDCPPFLAGS=$CPPFLAGS
18121   # CPPPFLAG comes from CURL_CPP_P
18122   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18123       if test -z "$SED"; then
18124     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18125   fi
18126   if test -z "$GREP"; then
18127     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18128   fi
18129
18130   tmp_exp=""
18131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h.  */
18133
18134
18135 #ifdef _SGI_COMPILER_VERSION
18136 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18137 #endif
18138
18139
18140 _ACEOF
18141 if ac_fn_c_try_cpp "$LINENO"
18142 then :
18143
18144     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18145       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18146       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18147       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18148     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18149       tmp_exp=""
18150     fi
18151
18152 fi
18153 rm -f conftest.err conftest.i conftest.$ac_ext
18154   if test -z "$tmp_exp"; then
18155     curl_cv_have_def__SGI_COMPILER_VERSION=no
18156
18157   else
18158     curl_cv_have_def__SGI_COMPILER_VERSION=yes
18159     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18160
18161   fi
18162       CPPFLAGS=$OLDCPPFLAGS
18163
18164   if test "$curl_cv_have_def___GNUC__" = "no" &&
18165     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18166      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18167     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18168 printf "%s\n" "yes" >&6; }
18169     compiler_id="SGI_MIPSPRO_C"
18170     flags_dbg_yes="-g"
18171     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18172     flags_opt_yes="-O2"
18173     flags_opt_off="-O0"
18174   else
18175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 printf "%s\n" "no" >&6; }
18177   fi
18178
18179
18180     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18181 printf %s "checking if compiler is SGI MIPS C... " >&6; }
18182
18183     OLDCPPFLAGS=$CPPFLAGS
18184   # CPPPFLAG comes from CURL_CPP_P
18185   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18186       if test -z "$SED"; then
18187     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18188   fi
18189   if test -z "$GREP"; then
18190     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18191   fi
18192
18193   tmp_exp=""
18194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h.  */
18196
18197
18198 #ifdef __GNUC__
18199 CURL_DEF_TOKEN __GNUC__
18200 #endif
18201
18202
18203 _ACEOF
18204 if ac_fn_c_try_cpp "$LINENO"
18205 then :
18206
18207     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18208       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18209       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18210       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18211     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18212       tmp_exp=""
18213     fi
18214
18215 fi
18216 rm -f conftest.err conftest.i conftest.$ac_ext
18217   if test -z "$tmp_exp"; then
18218     curl_cv_have_def___GNUC__=no
18219
18220   else
18221     curl_cv_have_def___GNUC__=yes
18222     curl_cv_def___GNUC__=$tmp_exp
18223
18224   fi
18225       CPPFLAGS=$OLDCPPFLAGS
18226
18227
18228     OLDCPPFLAGS=$CPPFLAGS
18229   # CPPPFLAG comes from CURL_CPP_P
18230   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18231       if test -z "$SED"; then
18232     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18233   fi
18234   if test -z "$GREP"; then
18235     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18236   fi
18237
18238   tmp_exp=""
18239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h.  */
18241
18242
18243 #ifdef __sgi
18244 CURL_DEF_TOKEN __sgi
18245 #endif
18246
18247
18248 _ACEOF
18249 if ac_fn_c_try_cpp "$LINENO"
18250 then :
18251
18252     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18253       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18254       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18255       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18256     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18257       tmp_exp=""
18258     fi
18259
18260 fi
18261 rm -f conftest.err conftest.i conftest.$ac_ext
18262   if test -z "$tmp_exp"; then
18263     curl_cv_have_def___sgi=no
18264
18265   else
18266     curl_cv_have_def___sgi=yes
18267     curl_cv_def___sgi=$tmp_exp
18268
18269   fi
18270       CPPFLAGS=$OLDCPPFLAGS
18271
18272   if test "$curl_cv_have_def___GNUC__" = "no" &&
18273     test "$curl_cv_have_def___sgi" = "yes" &&
18274     test "$compiler_id" = "unknown"; then
18275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276 printf "%s\n" "yes" >&6; }
18277     compiler_id="SGI_MIPS_C"
18278     flags_dbg_yes="-g"
18279     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18280     flags_opt_yes="-O2"
18281     flags_opt_off="-O0"
18282   else
18283     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 printf "%s\n" "no" >&6; }
18285   fi
18286
18287
18288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18289 printf %s "checking if compiler is SunPro C... " >&6; }
18290
18291     OLDCPPFLAGS=$CPPFLAGS
18292   # CPPPFLAG comes from CURL_CPP_P
18293   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18294       if test -z "$SED"; then
18295     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18296   fi
18297   if test -z "$GREP"; then
18298     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18299   fi
18300
18301   tmp_exp=""
18302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h.  */
18304
18305
18306 #ifdef __SUNPRO_C
18307 CURL_DEF_TOKEN __SUNPRO_C
18308 #endif
18309
18310
18311 _ACEOF
18312 if ac_fn_c_try_cpp "$LINENO"
18313 then :
18314
18315     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18316       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18317       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18318       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18319     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18320       tmp_exp=""
18321     fi
18322
18323 fi
18324 rm -f conftest.err conftest.i conftest.$ac_ext
18325   if test -z "$tmp_exp"; then
18326     curl_cv_have_def___SUNPRO_C=no
18327
18328   else
18329     curl_cv_have_def___SUNPRO_C=yes
18330     curl_cv_def___SUNPRO_C=$tmp_exp
18331
18332   fi
18333       CPPFLAGS=$OLDCPPFLAGS
18334
18335   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18336     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18337 printf "%s\n" "yes" >&6; }
18338     compiler_id="SUNPRO_C"
18339     flags_dbg_yes="-g"
18340     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18341     flags_opt_yes="-xO2"
18342     flags_opt_off=""
18343   else
18344     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345 printf "%s\n" "no" >&6; }
18346   fi
18347
18348
18349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18350 printf %s "checking if compiler is Tiny C... " >&6; }
18351
18352     OLDCPPFLAGS=$CPPFLAGS
18353   # CPPPFLAG comes from CURL_CPP_P
18354   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18355       if test -z "$SED"; then
18356     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18357   fi
18358   if test -z "$GREP"; then
18359     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18360   fi
18361
18362   tmp_exp=""
18363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h.  */
18365
18366
18367 #ifdef __TINYC__
18368 CURL_DEF_TOKEN __TINYC__
18369 #endif
18370
18371
18372 _ACEOF
18373 if ac_fn_c_try_cpp "$LINENO"
18374 then :
18375
18376     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18377       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18378       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18379       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18380     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18381       tmp_exp=""
18382     fi
18383
18384 fi
18385 rm -f conftest.err conftest.i conftest.$ac_ext
18386   if test -z "$tmp_exp"; then
18387     curl_cv_have_def___TINYC__=no
18388
18389   else
18390     curl_cv_have_def___TINYC__=yes
18391     curl_cv_def___TINYC__=$tmp_exp
18392
18393   fi
18394       CPPFLAGS=$OLDCPPFLAGS
18395
18396   if test "$curl_cv_have_def___TINYC__" = "yes"; then
18397     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18398 printf "%s\n" "yes" >&6; }
18399     compiler_id="TINY_C"
18400     flags_dbg_yes="-g"
18401     flags_opt_all=""
18402     flags_opt_yes=""
18403     flags_opt_off=""
18404   else
18405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 printf "%s\n" "no" >&6; }
18407   fi
18408
18409   #
18410   if test "$compiler_id" = "unknown"; then
18411   cat <<_EOF 1>&2
18412 ***
18413 *** Warning: This configure script does not have information about the
18414 *** compiler you are using, relative to the flags required to enable or
18415 *** disable generation of debug info, optimization options or warnings.
18416 ***
18417 *** Whatever settings are present in CFLAGS will be used for this run.
18418 ***
18419 *** If you wish to help the curl project to better support your compiler
18420 *** you can report this and the required info on the libcurl development
18421 *** mailing list: https://lists.haxx.selistinfo/curl-library/
18422 ***
18423 _EOF
18424   fi
18425
18426
18427 squeeze() {
18428   _sqz_result=""
18429   eval _sqz_input=\$$1
18430   for _sqz_token in $_sqz_input; do
18431     if test -z "$_sqz_result"; then
18432       _sqz_result="$_sqz_token"
18433     else
18434       _sqz_result="$_sqz_result $_sqz_token"
18435     fi
18436   done
18437   eval $1=\$_sqz_result
18438   return 0
18439 }
18440
18441
18442       #
18443   if test "$compiler_id" != "unknown"; then
18444     #
18445     tmp_save_CPPFLAGS="$CPPFLAGS"
18446     tmp_save_CFLAGS="$CFLAGS"
18447     tmp_CPPFLAGS=""
18448     tmp_CFLAGS=""
18449     #
18450     case "$compiler_id" in
18451         #
18452       CLANG)
18453         #
18454                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18455         ;;
18456         #
18457       DEC_C)
18458         #
18459                 tmp_CFLAGS="$tmp_CFLAGS -std1"
18460                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18461                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18462                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18463         ;;
18464         #
18465       GNU_C)
18466         #
18467                         if test "$compiler_num" -ge "295"; then
18468           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18469         fi
18470         ;;
18471         #
18472       HP_UX_C)
18473         #
18474                 tmp_CFLAGS="$tmp_CFLAGS -z"
18475                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18476         ;;
18477         #
18478       IBM_C)
18479         #
18480                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18481                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18482                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18483         ;;
18484         #
18485       INTEL_UNIX_C)
18486         #
18487                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18488                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18489                                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18490         ;;
18491         #
18492       INTEL_WINDOWS_C)
18493         #
18494                 tmp_CFLAGS="$tmp_CFLAGS"
18495         ;;
18496         #
18497       SGI_MIPS_C)
18498         #
18499                 tmp_CFLAGS="$tmp_CFLAGS"
18500         ;;
18501         #
18502       SGI_MIPSPRO_C)
18503         #
18504                 tmp_CFLAGS="$tmp_CFLAGS"
18505         ;;
18506         #
18507       SUNPRO_C)
18508         #
18509                 tmp_CFLAGS="$tmp_CFLAGS"
18510         ;;
18511         #
18512       TINY_C)
18513         #
18514                 tmp_CFLAGS="$tmp_CFLAGS"
18515         ;;
18516         #
18517     esac
18518     #
18519     squeeze tmp_CPPFLAGS
18520     squeeze tmp_CFLAGS
18521     #
18522     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18523       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18524 printf %s "checking if compiler accepts some basic options... " >&6; }
18525       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18526       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18527       squeeze CPPFLAGS
18528       squeeze CFLAGS
18529
18530     tmp_compiler_works="unknown"
18531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h.  */
18533
18534
18535
18536 int main (void)
18537 {
18538
18539       int i = 1;
18540       return i;
18541
18542  ;
18543  return 0;
18544 }
18545
18546 _ACEOF
18547 if ac_fn_c_try_compile "$LINENO"
18548 then :
18549
18550     tmp_compiler_works="yes"
18551
18552 else $as_nop
18553
18554     tmp_compiler_works="no"
18555     echo " " >&6
18556     sed 's/^/cc-fail: /' conftest.err >&6
18557     echo " " >&6
18558
18559 fi
18560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18561     if test "$tmp_compiler_works" = "yes"; then
18562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h.  */
18564
18565
18566
18567 int main (void)
18568 {
18569
18570         int i = 1;
18571         return i;
18572
18573  ;
18574  return 0;
18575 }
18576
18577 _ACEOF
18578 if ac_fn_c_try_link "$LINENO"
18579 then :
18580
18581       tmp_compiler_works="yes"
18582
18583 else $as_nop
18584
18585       tmp_compiler_works="no"
18586       echo " " >&6
18587       sed 's/^/link-fail: /' conftest.err >&6
18588       echo " " >&6
18589
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18592     conftest$ac_exeext conftest.$ac_ext
18593   fi
18594     if test "x$cross_compiling" != "xyes" &&
18595     test "$tmp_compiler_works" = "yes"; then
18596
18597    case $host_os in
18598      darwin*)
18599       if test "$cross_compiling" = yes
18600 then :
18601   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18603 as_fn_error $? "cannot run test program while cross compiling
18604 See \`config.log' for more details" "$LINENO" 5; }
18605 else $as_nop
18606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h.  */
18608
18609
18610 #       ifdef __STDC__
18611 #         include <stdlib.h>
18612 #       endif
18613
18614 int main (void)
18615 {
18616
18617         int i = 0;
18618         exit(i);
18619
18620  ;
18621  return 0;
18622 }
18623
18624 _ACEOF
18625 if ac_fn_c_try_run "$LINENO"
18626 then :
18627   tmp_compiler_works="yes"
18628
18629 else $as_nop
18630   tmp_compiler_works="no"
18631       echo " " >&6
18632       echo "run-fail: test program exited with status $ac_status" >&6
18633       echo " " >&6
18634
18635 fi
18636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18637   conftest.$ac_objext conftest.beam conftest.$ac_ext
18638 fi
18639
18640      ;;
18641      *)
18642       oldcc=$CC
18643       old=$LD_LIBRARY_PATH
18644       CC="sh ./run-compiler"
18645       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18646       export LD_LIBRARY_PATH
18647       if test "$cross_compiling" = yes
18648 then :
18649   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18651 as_fn_error $? "cannot run test program while cross compiling
18652 See \`config.log' for more details" "$LINENO" 5; }
18653 else $as_nop
18654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h.  */
18656
18657
18658 #       ifdef __STDC__
18659 #         include <stdlib.h>
18660 #       endif
18661
18662 int main (void)
18663 {
18664
18665         int i = 0;
18666         exit(i);
18667
18668  ;
18669  return 0;
18670 }
18671
18672 _ACEOF
18673 if ac_fn_c_try_run "$LINENO"
18674 then :
18675   tmp_compiler_works="yes"
18676
18677 else $as_nop
18678   tmp_compiler_works="no"
18679       echo " " >&6
18680       echo "run-fail: test program exited with status $ac_status" >&6
18681       echo " " >&6
18682
18683 fi
18684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18685   conftest.$ac_objext conftest.beam conftest.$ac_ext
18686 fi
18687
18688       LD_LIBRARY_PATH=$old # restore
18689       CC=$oldcc
18690      ;;
18691    esac
18692
18693   fi
18694     if test "$tmp_compiler_works" = "yes"; then
18695
18696         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18697 printf "%s\n" "yes" >&6; }
18698         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18699 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18700
18701   else
18702
18703         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 printf "%s\n" "no" >&6; }
18705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18706 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18707                 CPPFLAGS="$tmp_save_CPPFLAGS"
18708         CFLAGS="$tmp_save_CFLAGS"
18709
18710   fi
18711
18712     fi
18713     #
18714   fi
18715
18716
18717         #
18718   if test "$compiler_id" != "unknown"; then
18719     #
18720     tmp_save_CFLAGS="$CFLAGS"
18721     tmp_save_CPPFLAGS="$CPPFLAGS"
18722     #
18723     tmp_options=""
18724     tmp_CFLAGS="$CFLAGS"
18725     tmp_CPPFLAGS="$CPPFLAGS"
18726     #
18727     if test "$want_debug" = "yes"; then
18728       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18729 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18730       tmp_options="$flags_dbg_yes"
18731     fi
18732     #
18733     if test "$flags_prefer_cppflags" = "yes"; then
18734       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18735       CFLAGS="$tmp_CFLAGS"
18736     else
18737       CPPFLAGS="$tmp_CPPFLAGS"
18738       CFLAGS="$tmp_CFLAGS $tmp_options"
18739     fi
18740     squeeze CPPFLAGS
18741     squeeze CFLAGS
18742   fi
18743
18744
18745         #
18746   if test "$compiler_id" != "unknown"; then
18747     #
18748     tmp_save_CFLAGS="$CFLAGS"
18749     tmp_save_CPPFLAGS="$CPPFLAGS"
18750     #
18751     tmp_options=""
18752     tmp_CFLAGS="$CFLAGS"
18753     tmp_CPPFLAGS="$CPPFLAGS"
18754     honor_optimize_option="yes"
18755     #
18756                         #
18757     if test "$want_optimize" = "assume_no" ||
18758        test "$want_optimize" = "assume_yes"; then
18759       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18760 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18761
18762
18763   ac_var_match_word="no"
18764   for word1 in $tmp_CFLAGS; do
18765     for word2 in $flags_opt_all; do
18766       if test "$word1" = "$word2"; then
18767         ac_var_match_word="yes"
18768       fi
18769     done
18770   done
18771
18772   if test "$ac_var_match_word" = "yes"; then
18773
18774         honor_optimize_option="no"
18775
18776
18777   fi
18778
18779
18780
18781   ac_var_match_word="no"
18782   for word1 in $tmp_CPPFLAGS; do
18783     for word2 in $flags_opt_all; do
18784       if test "$word1" = "$word2"; then
18785         ac_var_match_word="yes"
18786       fi
18787     done
18788   done
18789
18790   if test "$ac_var_match_word" = "yes"; then
18791
18792         honor_optimize_option="no"
18793
18794
18795   fi
18796
18797       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18798 printf "%s\n" "$honor_optimize_option" >&6; }
18799       if test "$honor_optimize_option" = "yes"; then
18800         if test "$want_optimize" = "assume_yes"; then
18801           want_optimize="yes"
18802         fi
18803         if test "$want_optimize" = "assume_no"; then
18804           want_optimize="no"
18805         fi
18806       fi
18807     fi
18808     #
18809     if test "$honor_optimize_option" = "yes"; then
18810
18811     ac_var_stripped=""
18812   for word1 in $tmp_CFLAGS; do
18813     ac_var_strip_word="no"
18814     for word2 in $flags_opt_all; do
18815       if test "$word1" = "$word2"; then
18816         ac_var_strip_word="yes"
18817       fi
18818     done
18819     if test "$ac_var_strip_word" = "no"; then
18820       ac_var_stripped="$ac_var_stripped $word1"
18821     fi
18822   done
18823     tmp_CFLAGS="$ac_var_stripped"
18824   squeeze tmp_CFLAGS
18825
18826
18827     ac_var_stripped=""
18828   for word1 in $tmp_CPPFLAGS; do
18829     ac_var_strip_word="no"
18830     for word2 in $flags_opt_all; do
18831       if test "$word1" = "$word2"; then
18832         ac_var_strip_word="yes"
18833       fi
18834     done
18835     if test "$ac_var_strip_word" = "no"; then
18836       ac_var_stripped="$ac_var_stripped $word1"
18837     fi
18838   done
18839     tmp_CPPFLAGS="$ac_var_stripped"
18840   squeeze tmp_CPPFLAGS
18841
18842       if test "$want_optimize" = "yes"; then
18843         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18844 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18845         tmp_options="$flags_opt_yes"
18846       fi
18847       if test "$want_optimize" = "no"; then
18848         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18849 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18850         tmp_options="$flags_opt_off"
18851       fi
18852       if test "$flags_prefer_cppflags" = "yes"; then
18853         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18854         CFLAGS="$tmp_CFLAGS"
18855       else
18856         CPPFLAGS="$tmp_CPPFLAGS"
18857         CFLAGS="$tmp_CFLAGS $tmp_options"
18858       fi
18859       squeeze CPPFLAGS
18860       squeeze CFLAGS
18861
18862     tmp_compiler_works="unknown"
18863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h.  */
18865
18866
18867
18868 int main (void)
18869 {
18870
18871       int i = 1;
18872       return i;
18873
18874  ;
18875  return 0;
18876 }
18877
18878 _ACEOF
18879 if ac_fn_c_try_compile "$LINENO"
18880 then :
18881
18882     tmp_compiler_works="yes"
18883
18884 else $as_nop
18885
18886     tmp_compiler_works="no"
18887     echo " " >&6
18888     sed 's/^/cc-fail: /' conftest.err >&6
18889     echo " " >&6
18890
18891 fi
18892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18893     if test "$tmp_compiler_works" = "yes"; then
18894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h.  */
18896
18897
18898
18899 int main (void)
18900 {
18901
18902         int i = 1;
18903         return i;
18904
18905  ;
18906  return 0;
18907 }
18908
18909 _ACEOF
18910 if ac_fn_c_try_link "$LINENO"
18911 then :
18912
18913       tmp_compiler_works="yes"
18914
18915 else $as_nop
18916
18917       tmp_compiler_works="no"
18918       echo " " >&6
18919       sed 's/^/link-fail: /' conftest.err >&6
18920       echo " " >&6
18921
18922 fi
18923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18924     conftest$ac_exeext conftest.$ac_ext
18925   fi
18926     if test "x$cross_compiling" != "xyes" &&
18927     test "$tmp_compiler_works" = "yes"; then
18928
18929    case $host_os in
18930      darwin*)
18931       if test "$cross_compiling" = yes
18932 then :
18933   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18934 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18935 as_fn_error $? "cannot run test program while cross compiling
18936 See \`config.log' for more details" "$LINENO" 5; }
18937 else $as_nop
18938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h.  */
18940
18941
18942 #       ifdef __STDC__
18943 #         include <stdlib.h>
18944 #       endif
18945
18946 int main (void)
18947 {
18948
18949         int i = 0;
18950         exit(i);
18951
18952  ;
18953  return 0;
18954 }
18955
18956 _ACEOF
18957 if ac_fn_c_try_run "$LINENO"
18958 then :
18959   tmp_compiler_works="yes"
18960
18961 else $as_nop
18962   tmp_compiler_works="no"
18963       echo " " >&6
18964       echo "run-fail: test program exited with status $ac_status" >&6
18965       echo " " >&6
18966
18967 fi
18968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18969   conftest.$ac_objext conftest.beam conftest.$ac_ext
18970 fi
18971
18972      ;;
18973      *)
18974       oldcc=$CC
18975       old=$LD_LIBRARY_PATH
18976       CC="sh ./run-compiler"
18977       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18978       export LD_LIBRARY_PATH
18979       if test "$cross_compiling" = yes
18980 then :
18981   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18983 as_fn_error $? "cannot run test program while cross compiling
18984 See \`config.log' for more details" "$LINENO" 5; }
18985 else $as_nop
18986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h.  */
18988
18989
18990 #       ifdef __STDC__
18991 #         include <stdlib.h>
18992 #       endif
18993
18994 int main (void)
18995 {
18996
18997         int i = 0;
18998         exit(i);
18999
19000  ;
19001  return 0;
19002 }
19003
19004 _ACEOF
19005 if ac_fn_c_try_run "$LINENO"
19006 then :
19007   tmp_compiler_works="yes"
19008
19009 else $as_nop
19010   tmp_compiler_works="no"
19011       echo " " >&6
19012       echo "run-fail: test program exited with status $ac_status" >&6
19013       echo " " >&6
19014
19015 fi
19016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19017   conftest.$ac_objext conftest.beam conftest.$ac_ext
19018 fi
19019
19020       LD_LIBRARY_PATH=$old # restore
19021       CC=$oldcc
19022      ;;
19023    esac
19024
19025   fi
19026     if test "$tmp_compiler_works" = "yes"; then
19027
19028         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19029 printf "%s\n" "yes" >&6; }
19030         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19031 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19032
19033   else
19034
19035         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19036 printf "%s\n" "no" >&6; }
19037         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19038 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19039                 CPPFLAGS="$tmp_save_CPPFLAGS"
19040         CFLAGS="$tmp_save_CFLAGS"
19041
19042   fi
19043
19044     fi
19045     #
19046   fi
19047
19048
19049         #
19050   if test "$compiler_id" != "unknown"; then
19051     #
19052     tmp_save_CPPFLAGS="$CPPFLAGS"
19053     tmp_save_CFLAGS="$CFLAGS"
19054     tmp_CPPFLAGS=""
19055     tmp_CFLAGS=""
19056     #
19057     case "$compiler_id" in
19058         #
19059       CLANG)
19060         #
19061         if test "$want_warnings" = "yes"; then
19062           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19063
19064     ac_var_added_warnings=""
19065   for warning in all extra; do
19066
19067   ac_var_match_word="no"
19068   for word1 in $CFLAGS; do
19069     for word2 in -Wno-$warning -W$warning; do
19070       if test "$word1" = "$word2"; then
19071         ac_var_match_word="yes"
19072       fi
19073     done
19074   done
19075
19076     if test "$ac_var_match_word" = "no"; then
19077       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19078     fi
19079   done
19080     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19081   squeeze tmp_CFLAGS
19082
19083
19084     ac_var_added_warnings=""
19085   for warning in pointer-arith write-strings; do
19086
19087   ac_var_match_word="no"
19088   for word1 in $CFLAGS; do
19089     for word2 in -Wno-$warning -W$warning; do
19090       if test "$word1" = "$word2"; then
19091         ac_var_match_word="yes"
19092       fi
19093     done
19094   done
19095
19096     if test "$ac_var_match_word" = "no"; then
19097       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19098     fi
19099   done
19100     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19101   squeeze tmp_CFLAGS
19102
19103
19104     ac_var_added_warnings=""
19105   for warning in shadow; do
19106
19107   ac_var_match_word="no"
19108   for word1 in $CFLAGS; do
19109     for word2 in -Wno-$warning -W$warning; do
19110       if test "$word1" = "$word2"; then
19111         ac_var_match_word="yes"
19112       fi
19113     done
19114   done
19115
19116     if test "$ac_var_match_word" = "no"; then
19117       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19118     fi
19119   done
19120     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19121   squeeze tmp_CFLAGS
19122
19123
19124     ac_var_added_warnings=""
19125   for warning in inline nested-externs; do
19126
19127   ac_var_match_word="no"
19128   for word1 in $CFLAGS; do
19129     for word2 in -Wno-$warning -W$warning; do
19130       if test "$word1" = "$word2"; then
19131         ac_var_match_word="yes"
19132       fi
19133     done
19134   done
19135
19136     if test "$ac_var_match_word" = "no"; then
19137       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19138     fi
19139   done
19140     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19141   squeeze tmp_CFLAGS
19142
19143
19144     ac_var_added_warnings=""
19145   for warning in missing-declarations; do
19146
19147   ac_var_match_word="no"
19148   for word1 in $CFLAGS; do
19149     for word2 in -Wno-$warning -W$warning; do
19150       if test "$word1" = "$word2"; then
19151         ac_var_match_word="yes"
19152       fi
19153     done
19154   done
19155
19156     if test "$ac_var_match_word" = "no"; then
19157       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19158     fi
19159   done
19160     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19161   squeeze tmp_CFLAGS
19162
19163
19164     ac_var_added_warnings=""
19165   for warning in missing-prototypes; do
19166
19167   ac_var_match_word="no"
19168   for word1 in $CFLAGS; do
19169     for word2 in -Wno-$warning -W$warning; do
19170       if test "$word1" = "$word2"; then
19171         ac_var_match_word="yes"
19172       fi
19173     done
19174   done
19175
19176     if test "$ac_var_match_word" = "no"; then
19177       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19178     fi
19179   done
19180     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19181   squeeze tmp_CFLAGS
19182
19183           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19184
19185     ac_var_added_warnings=""
19186   for warning in float-equal; do
19187
19188   ac_var_match_word="no"
19189   for word1 in $CFLAGS; do
19190     for word2 in -Wno-$warning -W$warning; do
19191       if test "$word1" = "$word2"; then
19192         ac_var_match_word="yes"
19193       fi
19194     done
19195   done
19196
19197     if test "$ac_var_match_word" = "no"; then
19198       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19199     fi
19200   done
19201     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19202   squeeze tmp_CFLAGS
19203
19204
19205     ac_var_added_warnings=""
19206   for warning in sign-compare; do
19207
19208   ac_var_match_word="no"
19209   for word1 in $CFLAGS; do
19210     for word2 in -Wno-$warning -W$warning; do
19211       if test "$word1" = "$word2"; then
19212         ac_var_match_word="yes"
19213       fi
19214     done
19215   done
19216
19217     if test "$ac_var_match_word" = "no"; then
19218       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19219     fi
19220   done
19221     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19222   squeeze tmp_CFLAGS
19223
19224           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19225
19226     ac_var_added_warnings=""
19227   for warning in undef; do
19228
19229   ac_var_match_word="no"
19230   for word1 in $CFLAGS; do
19231     for word2 in -Wno-$warning -W$warning; do
19232       if test "$word1" = "$word2"; then
19233         ac_var_match_word="yes"
19234       fi
19235     done
19236   done
19237
19238     if test "$ac_var_match_word" = "no"; then
19239       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19240     fi
19241   done
19242     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19243   squeeze tmp_CFLAGS
19244
19245           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19246
19247     ac_var_added_warnings=""
19248   for warning in endif-labels strict-prototypes; do
19249
19250   ac_var_match_word="no"
19251   for word1 in $CFLAGS; do
19252     for word2 in -Wno-$warning -W$warning; do
19253       if test "$word1" = "$word2"; then
19254         ac_var_match_word="yes"
19255       fi
19256     done
19257   done
19258
19259     if test "$ac_var_match_word" = "no"; then
19260       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19261     fi
19262   done
19263     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19264   squeeze tmp_CFLAGS
19265
19266
19267     ac_var_added_warnings=""
19268   for warning in declaration-after-statement; do
19269
19270   ac_var_match_word="no"
19271   for word1 in $CFLAGS; do
19272     for word2 in -Wno-$warning -W$warning; do
19273       if test "$word1" = "$word2"; then
19274         ac_var_match_word="yes"
19275       fi
19276     done
19277   done
19278
19279     if test "$ac_var_match_word" = "no"; then
19280       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19281     fi
19282   done
19283     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19284   squeeze tmp_CFLAGS
19285
19286
19287     ac_var_added_warnings=""
19288   for warning in cast-align; do
19289
19290   ac_var_match_word="no"
19291   for word1 in $CFLAGS; do
19292     for word2 in -Wno-$warning -W$warning; do
19293       if test "$word1" = "$word2"; then
19294         ac_var_match_word="yes"
19295       fi
19296     done
19297   done
19298
19299     if test "$ac_var_match_word" = "no"; then
19300       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19301     fi
19302   done
19303     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19304   squeeze tmp_CFLAGS
19305
19306           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19307
19308     ac_var_added_warnings=""
19309   for warning in shorten-64-to-32; do
19310
19311   ac_var_match_word="no"
19312   for word1 in $CFLAGS; do
19313     for word2 in -Wno-$warning -W$warning; do
19314       if test "$word1" = "$word2"; then
19315         ac_var_match_word="yes"
19316       fi
19317     done
19318   done
19319
19320     if test "$ac_var_match_word" = "no"; then
19321       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19322     fi
19323   done
19324     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19325   squeeze tmp_CFLAGS
19326
19327           #
19328                     if test "$compiler_num" -ge "101"; then
19329
19330     ac_var_added_warnings=""
19331   for warning in unused; do
19332
19333   ac_var_match_word="no"
19334   for word1 in $CFLAGS; do
19335     for word2 in -Wno-$warning -W$warning; do
19336       if test "$word1" = "$word2"; then
19337         ac_var_match_word="yes"
19338       fi
19339     done
19340   done
19341
19342     if test "$ac_var_match_word" = "no"; then
19343       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19344     fi
19345   done
19346     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19347   squeeze tmp_CFLAGS
19348
19349           fi
19350           #
19351                     if test "$compiler_num" -ge "207"; then
19352
19353     ac_var_added_warnings=""
19354   for warning in address; do
19355
19356   ac_var_match_word="no"
19357   for word1 in $CFLAGS; do
19358     for word2 in -Wno-$warning -W$warning; do
19359       if test "$word1" = "$word2"; then
19360         ac_var_match_word="yes"
19361       fi
19362     done
19363   done
19364
19365     if test "$ac_var_match_word" = "no"; then
19366       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19367     fi
19368   done
19369     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19370   squeeze tmp_CFLAGS
19371
19372
19373     ac_var_added_warnings=""
19374   for warning in attributes; do
19375
19376   ac_var_match_word="no"
19377   for word1 in $CFLAGS; do
19378     for word2 in -Wno-$warning -W$warning; do
19379       if test "$word1" = "$word2"; then
19380         ac_var_match_word="yes"
19381       fi
19382     done
19383   done
19384
19385     if test "$ac_var_match_word" = "no"; then
19386       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19387     fi
19388   done
19389     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19390   squeeze tmp_CFLAGS
19391
19392
19393     ac_var_added_warnings=""
19394   for warning in bad-function-cast; do
19395
19396   ac_var_match_word="no"
19397   for word1 in $CFLAGS; do
19398     for word2 in -Wno-$warning -W$warning; do
19399       if test "$word1" = "$word2"; then
19400         ac_var_match_word="yes"
19401       fi
19402     done
19403   done
19404
19405     if test "$ac_var_match_word" = "no"; then
19406       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19407     fi
19408   done
19409     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19410   squeeze tmp_CFLAGS
19411
19412
19413     ac_var_added_warnings=""
19414   for warning in conversion; do
19415
19416   ac_var_match_word="no"
19417   for word1 in $CFLAGS; do
19418     for word2 in -Wno-$warning -W$warning; do
19419       if test "$word1" = "$word2"; then
19420         ac_var_match_word="yes"
19421       fi
19422     done
19423   done
19424
19425     if test "$ac_var_match_word" = "no"; then
19426       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19427     fi
19428   done
19429     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19430   squeeze tmp_CFLAGS
19431
19432
19433     ac_var_added_warnings=""
19434   for warning in div-by-zero format-security; do
19435
19436   ac_var_match_word="no"
19437   for word1 in $CFLAGS; do
19438     for word2 in -Wno-$warning -W$warning; do
19439       if test "$word1" = "$word2"; then
19440         ac_var_match_word="yes"
19441       fi
19442     done
19443   done
19444
19445     if test "$ac_var_match_word" = "no"; then
19446       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19447     fi
19448   done
19449     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19450   squeeze tmp_CFLAGS
19451
19452
19453     ac_var_added_warnings=""
19454   for warning in empty-body; do
19455
19456   ac_var_match_word="no"
19457   for word1 in $CFLAGS; do
19458     for word2 in -Wno-$warning -W$warning; do
19459       if test "$word1" = "$word2"; then
19460         ac_var_match_word="yes"
19461       fi
19462     done
19463   done
19464
19465     if test "$ac_var_match_word" = "no"; then
19466       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19467     fi
19468   done
19469     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19470   squeeze tmp_CFLAGS
19471
19472
19473     ac_var_added_warnings=""
19474   for warning in missing-field-initializers; do
19475
19476   ac_var_match_word="no"
19477   for word1 in $CFLAGS; do
19478     for word2 in -Wno-$warning -W$warning; do
19479       if test "$word1" = "$word2"; then
19480         ac_var_match_word="yes"
19481       fi
19482     done
19483   done
19484
19485     if test "$ac_var_match_word" = "no"; then
19486       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19487     fi
19488   done
19489     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19490   squeeze tmp_CFLAGS
19491
19492
19493     ac_var_added_warnings=""
19494   for warning in missing-noreturn; do
19495
19496   ac_var_match_word="no"
19497   for word1 in $CFLAGS; do
19498     for word2 in -Wno-$warning -W$warning; do
19499       if test "$word1" = "$word2"; then
19500         ac_var_match_word="yes"
19501       fi
19502     done
19503   done
19504
19505     if test "$ac_var_match_word" = "no"; then
19506       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19507     fi
19508   done
19509     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19510   squeeze tmp_CFLAGS
19511
19512
19513     ac_var_added_warnings=""
19514   for warning in old-style-definition; do
19515
19516   ac_var_match_word="no"
19517   for word1 in $CFLAGS; do
19518     for word2 in -Wno-$warning -W$warning; do
19519       if test "$word1" = "$word2"; then
19520         ac_var_match_word="yes"
19521       fi
19522     done
19523   done
19524
19525     if test "$ac_var_match_word" = "no"; then
19526       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19527     fi
19528   done
19529     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19530   squeeze tmp_CFLAGS
19531
19532
19533     ac_var_added_warnings=""
19534   for warning in redundant-decls; do
19535
19536   ac_var_match_word="no"
19537   for word1 in $CFLAGS; do
19538     for word2 in -Wno-$warning -W$warning; do
19539       if test "$word1" = "$word2"; then
19540         ac_var_match_word="yes"
19541       fi
19542     done
19543   done
19544
19545     if test "$ac_var_match_word" = "no"; then
19546       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19547     fi
19548   done
19549     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19550   squeeze tmp_CFLAGS
19551
19552           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
19553
19554     ac_var_added_warnings=""
19555   for warning in type-limits; do
19556
19557   ac_var_match_word="no"
19558   for word1 in $CFLAGS; do
19559     for word2 in -Wno-$warning -W$warning; do
19560       if test "$word1" = "$word2"; then
19561         ac_var_match_word="yes"
19562       fi
19563     done
19564   done
19565
19566     if test "$ac_var_match_word" = "no"; then
19567       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19568     fi
19569   done
19570     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19571   squeeze tmp_CFLAGS
19572
19573           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
19574
19575     ac_var_added_warnings=""
19576   for warning in unreachable-code unused-parameter; do
19577
19578   ac_var_match_word="no"
19579   for word1 in $CFLAGS; do
19580     for word2 in -Wno-$warning -W$warning; do
19581       if test "$word1" = "$word2"; then
19582         ac_var_match_word="yes"
19583       fi
19584     done
19585   done
19586
19587     if test "$ac_var_match_word" = "no"; then
19588       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19589     fi
19590   done
19591     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19592   squeeze tmp_CFLAGS
19593
19594           fi
19595           #
19596                     if test "$compiler_num" -ge "208"; then
19597
19598     ac_var_added_warnings=""
19599   for warning in ignored-qualifiers; do
19600
19601   ac_var_match_word="no"
19602   for word1 in $CFLAGS; do
19603     for word2 in -Wno-$warning -W$warning; do
19604       if test "$word1" = "$word2"; then
19605         ac_var_match_word="yes"
19606       fi
19607     done
19608   done
19609
19610     if test "$ac_var_match_word" = "no"; then
19611       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19612     fi
19613   done
19614     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19615   squeeze tmp_CFLAGS
19616
19617
19618     ac_var_added_warnings=""
19619   for warning in vla; do
19620
19621   ac_var_match_word="no"
19622   for word1 in $CFLAGS; do
19623     for word2 in -Wno-$warning -W$warning; do
19624       if test "$word1" = "$word2"; then
19625         ac_var_match_word="yes"
19626       fi
19627     done
19628   done
19629
19630     if test "$ac_var_match_word" = "no"; then
19631       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19632     fi
19633   done
19634     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19635   squeeze tmp_CFLAGS
19636
19637           fi
19638           #
19639                     if test "$compiler_num" -ge "209"; then
19640             tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19641
19642     ac_var_added_warnings=""
19643   for warning in shift-sign-overflow; do
19644
19645   ac_var_match_word="no"
19646   for word1 in $CFLAGS; do
19647     for word2 in -Wno-$warning -W$warning; do
19648       if test "$word1" = "$word2"; then
19649         ac_var_match_word="yes"
19650       fi
19651     done
19652   done
19653
19654     if test "$ac_var_match_word" = "no"; then
19655       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19656     fi
19657   done
19658     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19659   squeeze tmp_CFLAGS
19660
19661           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])  # Not used because we cannot change public structs
19662           fi
19663           #
19664                     if test "$compiler_num" -ge "300"; then
19665
19666     ac_var_added_warnings=""
19667   for warning in language-extension-token; do
19668
19669   ac_var_match_word="no"
19670   for word1 in $CFLAGS; do
19671     for word2 in -Wno-$warning -W$warning; do
19672       if test "$word1" = "$word2"; then
19673         ac_var_match_word="yes"
19674       fi
19675     done
19676   done
19677
19678     if test "$ac_var_match_word" = "no"; then
19679       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19680     fi
19681   done
19682     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19683   squeeze tmp_CFLAGS
19684
19685           fi
19686           #
19687                     if test "$compiler_num" -ge "302"; then
19688
19689     ac_var_added_warnings=""
19690   for warning in enum-conversion; do
19691
19692   ac_var_match_word="no"
19693   for word1 in $CFLAGS; do
19694     for word2 in -Wno-$warning -W$warning; do
19695       if test "$word1" = "$word2"; then
19696         ac_var_match_word="yes"
19697       fi
19698     done
19699   done
19700
19701     if test "$ac_var_match_word" = "no"; then
19702       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19703     fi
19704   done
19705     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19706   squeeze tmp_CFLAGS
19707
19708
19709     ac_var_added_warnings=""
19710   for warning in sometimes-uninitialized; do
19711
19712   ac_var_match_word="no"
19713   for word1 in $CFLAGS; do
19714     for word2 in -Wno-$warning -W$warning; do
19715       if test "$word1" = "$word2"; then
19716         ac_var_match_word="yes"
19717       fi
19718     done
19719   done
19720
19721     if test "$ac_var_match_word" = "no"; then
19722       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19723     fi
19724   done
19725     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19726   squeeze tmp_CFLAGS
19727
19728             case $host_os in
19729             cygwin* | mingw*)
19730                                           ;;
19731             *)
19732
19733     ac_var_added_warnings=""
19734   for warning in missing-variable-declarations; do
19735
19736   ac_var_match_word="no"
19737   for word1 in $CFLAGS; do
19738     for word2 in -Wno-$warning -W$warning; do
19739       if test "$word1" = "$word2"; then
19740         ac_var_match_word="yes"
19741       fi
19742     done
19743   done
19744
19745     if test "$ac_var_match_word" = "no"; then
19746       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19747     fi
19748   done
19749     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19750   squeeze tmp_CFLAGS
19751
19752               ;;
19753             esac
19754           fi
19755           #
19756                     if test "$compiler_num" -ge "304"; then
19757
19758     ac_var_added_warnings=""
19759   for warning in header-guard; do
19760
19761   ac_var_match_word="no"
19762   for word1 in $CFLAGS; do
19763     for word2 in -Wno-$warning -W$warning; do
19764       if test "$word1" = "$word2"; then
19765         ac_var_match_word="yes"
19766       fi
19767     done
19768   done
19769
19770     if test "$ac_var_match_word" = "no"; then
19771       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19772     fi
19773   done
19774     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19775   squeeze tmp_CFLAGS
19776
19777
19778     ac_var_added_warnings=""
19779   for warning in unused-const-variable; do
19780
19781   ac_var_match_word="no"
19782   for word1 in $CFLAGS; do
19783     for word2 in -Wno-$warning -W$warning; do
19784       if test "$word1" = "$word2"; then
19785         ac_var_match_word="yes"
19786       fi
19787     done
19788   done
19789
19790     if test "$ac_var_match_word" = "no"; then
19791       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19792     fi
19793   done
19794     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19795   squeeze tmp_CFLAGS
19796
19797           fi
19798           #
19799                     if test "$compiler_num" -ge "305"; then
19800
19801     ac_var_added_warnings=""
19802   for warning in pragmas; do
19803
19804   ac_var_match_word="no"
19805   for word1 in $CFLAGS; do
19806     for word2 in -Wno-$warning -W$warning; do
19807       if test "$word1" = "$word2"; then
19808         ac_var_match_word="yes"
19809       fi
19810     done
19811   done
19812
19813     if test "$ac_var_match_word" = "no"; then
19814       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19815     fi
19816   done
19817     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19818   squeeze tmp_CFLAGS
19819
19820
19821     ac_var_added_warnings=""
19822   for warning in unreachable-code-break; do
19823
19824   ac_var_match_word="no"
19825   for word1 in $CFLAGS; do
19826     for word2 in -Wno-$warning -W$warning; do
19827       if test "$word1" = "$word2"; then
19828         ac_var_match_word="yes"
19829       fi
19830     done
19831   done
19832
19833     if test "$ac_var_match_word" = "no"; then
19834       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19835     fi
19836   done
19837     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19838   squeeze tmp_CFLAGS
19839
19840           fi
19841           #
19842                     if test "$compiler_num" -ge "306"; then
19843
19844     ac_var_added_warnings=""
19845   for warning in double-promotion; do
19846
19847   ac_var_match_word="no"
19848   for word1 in $CFLAGS; do
19849     for word2 in -Wno-$warning -W$warning; do
19850       if test "$word1" = "$word2"; then
19851         ac_var_match_word="yes"
19852       fi
19853     done
19854   done
19855
19856     if test "$ac_var_match_word" = "no"; then
19857       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19858     fi
19859   done
19860     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19861   squeeze tmp_CFLAGS
19862
19863           fi
19864           #
19865                     if test "$compiler_num" -ge "309"; then
19866
19867     ac_var_added_warnings=""
19868   for warning in comma; do
19869
19870   ac_var_match_word="no"
19871   for word1 in $CFLAGS; do
19872     for word2 in -Wno-$warning -W$warning; do
19873       if test "$word1" = "$word2"; then
19874         ac_var_match_word="yes"
19875       fi
19876     done
19877   done
19878
19879     if test "$ac_var_match_word" = "no"; then
19880       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19881     fi
19882   done
19883     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19884   squeeze tmp_CFLAGS
19885
19886             # avoid the varargs warning, fixed in 4.0
19887             # https://bugs.llvm.org/show_bug.cgi?id=29140
19888             if test "$compiler_num" -lt "400"; then
19889               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19890             fi
19891           fi
19892                     if test "$compiler_num" -ge "700"; then
19893
19894     ac_var_added_warnings=""
19895   for warning in assign-enum; do
19896
19897   ac_var_match_word="no"
19898   for word1 in $CFLAGS; do
19899     for word2 in -Wno-$warning -W$warning; do
19900       if test "$word1" = "$word2"; then
19901         ac_var_match_word="yes"
19902       fi
19903     done
19904   done
19905
19906     if test "$ac_var_match_word" = "no"; then
19907       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19908     fi
19909   done
19910     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19911   squeeze tmp_CFLAGS
19912
19913
19914     ac_var_added_warnings=""
19915   for warning in extra-semi-stmt; do
19916
19917   ac_var_match_word="no"
19918   for word1 in $CFLAGS; do
19919     for word2 in -Wno-$warning -W$warning; do
19920       if test "$word1" = "$word2"; then
19921         ac_var_match_word="yes"
19922       fi
19923     done
19924   done
19925
19926     if test "$ac_var_match_word" = "no"; then
19927       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19928     fi
19929   done
19930     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19931   squeeze tmp_CFLAGS
19932
19933           fi
19934         fi
19935                                 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
19936         ;;
19937         #
19938       DEC_C)
19939         #
19940         if test "$want_warnings" = "yes"; then
19941                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19942         fi
19943         ;;
19944         #
19945       GNU_C)
19946         #
19947         if test "$want_warnings" = "yes"; then
19948           #
19949                               if test "x$cross_compiling" != "xyes" ||
19950             test "$compiler_num" -ge "300"; then
19951             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19952           fi
19953           #
19954
19955     ac_var_added_warnings=""
19956   for warning in all; do
19957
19958   ac_var_match_word="no"
19959   for word1 in $CFLAGS; do
19960     for word2 in -Wno-$warning -W$warning; do
19961       if test "$word1" = "$word2"; then
19962         ac_var_match_word="yes"
19963       fi
19964     done
19965   done
19966
19967     if test "$ac_var_match_word" = "no"; then
19968       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19969     fi
19970   done
19971     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19972   squeeze tmp_CFLAGS
19973
19974           tmp_CFLAGS="$tmp_CFLAGS -W"
19975           #
19976                     if test "$compiler_num" -ge "104"; then
19977
19978     ac_var_added_warnings=""
19979   for warning in pointer-arith write-strings; do
19980
19981   ac_var_match_word="no"
19982   for word1 in $CFLAGS; do
19983     for word2 in -Wno-$warning -W$warning; do
19984       if test "$word1" = "$word2"; then
19985         ac_var_match_word="yes"
19986       fi
19987     done
19988   done
19989
19990     if test "$ac_var_match_word" = "no"; then
19991       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19992     fi
19993   done
19994     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19995   squeeze tmp_CFLAGS
19996
19997                         if test "x$cross_compiling" != "xyes" ||
19998               test "$compiler_num" -ge "300"; then
19999
20000     ac_var_added_warnings=""
20001   for warning in unused shadow; do
20002
20003   ac_var_match_word="no"
20004   for word1 in $CFLAGS; do
20005     for word2 in -Wno-$warning -W$warning; do
20006       if test "$word1" = "$word2"; then
20007         ac_var_match_word="yes"
20008       fi
20009     done
20010   done
20011
20012     if test "$ac_var_match_word" = "no"; then
20013       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20014     fi
20015   done
20016     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20017   squeeze tmp_CFLAGS
20018
20019             fi
20020           fi
20021           #
20022                     if test "$compiler_num" -ge "207"; then
20023
20024     ac_var_added_warnings=""
20025   for warning in inline nested-externs; do
20026
20027   ac_var_match_word="no"
20028   for word1 in $CFLAGS; do
20029     for word2 in -Wno-$warning -W$warning; do
20030       if test "$word1" = "$word2"; then
20031         ac_var_match_word="yes"
20032       fi
20033     done
20034   done
20035
20036     if test "$ac_var_match_word" = "no"; then
20037       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20038     fi
20039   done
20040     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20041   squeeze tmp_CFLAGS
20042
20043                         if test "x$cross_compiling" != "xyes" ||
20044               test "$compiler_num" -ge "300"; then
20045
20046     ac_var_added_warnings=""
20047   for warning in missing-declarations; do
20048
20049   ac_var_match_word="no"
20050   for word1 in $CFLAGS; do
20051     for word2 in -Wno-$warning -W$warning; do
20052       if test "$word1" = "$word2"; then
20053         ac_var_match_word="yes"
20054       fi
20055     done
20056   done
20057
20058     if test "$ac_var_match_word" = "no"; then
20059       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20060     fi
20061   done
20062     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20063   squeeze tmp_CFLAGS
20064
20065
20066     ac_var_added_warnings=""
20067   for warning in missing-prototypes; do
20068
20069   ac_var_match_word="no"
20070   for word1 in $CFLAGS; do
20071     for word2 in -Wno-$warning -W$warning; do
20072       if test "$word1" = "$word2"; then
20073         ac_var_match_word="yes"
20074       fi
20075     done
20076   done
20077
20078     if test "$ac_var_match_word" = "no"; then
20079       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20080     fi
20081   done
20082     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20083   squeeze tmp_CFLAGS
20084
20085             fi
20086           fi
20087           #
20088                     if test "$compiler_num" -ge "295"; then
20089             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
20090
20091     ac_var_added_warnings=""
20092   for warning in bad-function-cast; do
20093
20094   ac_var_match_word="no"
20095   for word1 in $CFLAGS; do
20096     for word2 in -Wno-$warning -W$warning; do
20097       if test "$word1" = "$word2"; then
20098         ac_var_match_word="yes"
20099       fi
20100     done
20101   done
20102
20103     if test "$ac_var_match_word" = "no"; then
20104       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20105     fi
20106   done
20107     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20108   squeeze tmp_CFLAGS
20109
20110           fi
20111           #
20112                     if test "$compiler_num" -ge "296"; then
20113
20114     ac_var_added_warnings=""
20115   for warning in float-equal; do
20116
20117   ac_var_match_word="no"
20118   for word1 in $CFLAGS; do
20119     for word2 in -Wno-$warning -W$warning; do
20120       if test "$word1" = "$word2"; then
20121         ac_var_match_word="yes"
20122       fi
20123     done
20124   done
20125
20126     if test "$ac_var_match_word" = "no"; then
20127       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20128     fi
20129   done
20130     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20131   squeeze tmp_CFLAGS
20132
20133             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
20134
20135     ac_var_added_warnings=""
20136   for warning in sign-compare; do
20137
20138   ac_var_match_word="no"
20139   for word1 in $CFLAGS; do
20140     for word2 in -Wno-$warning -W$warning; do
20141       if test "$word1" = "$word2"; then
20142         ac_var_match_word="yes"
20143       fi
20144     done
20145   done
20146
20147     if test "$ac_var_match_word" = "no"; then
20148       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20149     fi
20150   done
20151     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20152   squeeze tmp_CFLAGS
20153
20154
20155     ac_var_added_warnings=""
20156   for warning in undef; do
20157
20158   ac_var_match_word="no"
20159   for word1 in $CFLAGS; do
20160     for word2 in -Wno-$warning -W$warning; do
20161       if test "$word1" = "$word2"; then
20162         ac_var_match_word="yes"
20163       fi
20164     done
20165   done
20166
20167     if test "$ac_var_match_word" = "no"; then
20168       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20169     fi
20170   done
20171     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20172   squeeze tmp_CFLAGS
20173
20174           fi
20175           #
20176                     if test "$compiler_num" -ge "297"; then
20177             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
20178           fi
20179           #
20180                     if test "$compiler_num" -ge "300"; then
20181                                                             tmp_CFLAGS="$tmp_CFLAGS"
20182           fi
20183           #
20184                     if test "$compiler_num" -ge "303"; then
20185
20186     ac_var_added_warnings=""
20187   for warning in endif-labels strict-prototypes; do
20188
20189   ac_var_match_word="no"
20190   for word1 in $CFLAGS; do
20191     for word2 in -Wno-$warning -W$warning; do
20192       if test "$word1" = "$word2"; then
20193         ac_var_match_word="yes"
20194       fi
20195     done
20196   done
20197
20198     if test "$ac_var_match_word" = "no"; then
20199       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20200     fi
20201   done
20202     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20203   squeeze tmp_CFLAGS
20204
20205           fi
20206           #
20207                     if test "$compiler_num" -ge "304"; then
20208
20209     ac_var_added_warnings=""
20210   for warning in declaration-after-statement; do
20211
20212   ac_var_match_word="no"
20213   for word1 in $CFLAGS; do
20214     for word2 in -Wno-$warning -W$warning; do
20215       if test "$word1" = "$word2"; then
20216         ac_var_match_word="yes"
20217       fi
20218     done
20219   done
20220
20221     if test "$ac_var_match_word" = "no"; then
20222       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20223     fi
20224   done
20225     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20226   squeeze tmp_CFLAGS
20227
20228
20229     ac_var_added_warnings=""
20230   for warning in old-style-definition; do
20231
20232   ac_var_match_word="no"
20233   for word1 in $CFLAGS; do
20234     for word2 in -Wno-$warning -W$warning; do
20235       if test "$word1" = "$word2"; then
20236         ac_var_match_word="yes"
20237       fi
20238     done
20239   done
20240
20241     if test "$ac_var_match_word" = "no"; then
20242       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20243     fi
20244   done
20245     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20246   squeeze tmp_CFLAGS
20247
20248           fi
20249           #
20250                     if test "$compiler_num" -ge "400"; then
20251             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
20252           fi
20253           #
20254                     if test "$compiler_num" -ge "401"; then
20255
20256     ac_var_added_warnings=""
20257   for warning in attributes; do
20258
20259   ac_var_match_word="no"
20260   for word1 in $CFLAGS; do
20261     for word2 in -Wno-$warning -W$warning; do
20262       if test "$word1" = "$word2"; then
20263         ac_var_match_word="yes"
20264       fi
20265     done
20266   done
20267
20268     if test "$ac_var_match_word" = "no"; then
20269       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20270     fi
20271   done
20272     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20273   squeeze tmp_CFLAGS
20274
20275
20276     ac_var_added_warnings=""
20277   for warning in div-by-zero format-security; do
20278
20279   ac_var_match_word="no"
20280   for word1 in $CFLAGS; do
20281     for word2 in -Wno-$warning -W$warning; do
20282       if test "$word1" = "$word2"; then
20283         ac_var_match_word="yes"
20284       fi
20285     done
20286   done
20287
20288     if test "$ac_var_match_word" = "no"; then
20289       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20290     fi
20291   done
20292     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20293   squeeze tmp_CFLAGS
20294
20295
20296     ac_var_added_warnings=""
20297   for warning in missing-field-initializers; do
20298
20299   ac_var_match_word="no"
20300   for word1 in $CFLAGS; do
20301     for word2 in -Wno-$warning -W$warning; do
20302       if test "$word1" = "$word2"; then
20303         ac_var_match_word="yes"
20304       fi
20305     done
20306   done
20307
20308     if test "$ac_var_match_word" = "no"; then
20309       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20310     fi
20311   done
20312     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20313   squeeze tmp_CFLAGS
20314
20315             case $host in
20316               *-*-msys*)
20317                 ;;
20318               *)
20319
20320     ac_var_added_warnings=""
20321   for warning in missing-noreturn; do
20322
20323   ac_var_match_word="no"
20324   for word1 in $CFLAGS; do
20325     for word2 in -Wno-$warning -W$warning; do
20326       if test "$word1" = "$word2"; then
20327         ac_var_match_word="yes"
20328       fi
20329     done
20330   done
20331
20332     if test "$ac_var_match_word" = "no"; then
20333       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20334     fi
20335   done
20336     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20337   squeeze tmp_CFLAGS
20338   # Seen to clash with libtool-generated stub code
20339                 ;;
20340             esac
20341
20342     ac_var_added_warnings=""
20343   for warning in unreachable-code unused-parameter; do
20344
20345   ac_var_match_word="no"
20346   for word1 in $CFLAGS; do
20347     for word2 in -Wno-$warning -W$warning; do
20348       if test "$word1" = "$word2"; then
20349         ac_var_match_word="yes"
20350       fi
20351     done
20352   done
20353
20354     if test "$ac_var_match_word" = "no"; then
20355       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20356     fi
20357   done
20358     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20359   squeeze tmp_CFLAGS
20360
20361           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded])           # Not used because we cannot change public structs
20362
20363     ac_var_added_warnings=""
20364   for warning in pragmas; do
20365
20366   ac_var_match_word="no"
20367   for word1 in $CFLAGS; do
20368     for word2 in -Wno-$warning -W$warning; do
20369       if test "$word1" = "$word2"; then
20370         ac_var_match_word="yes"
20371       fi
20372     done
20373   done
20374
20375     if test "$ac_var_match_word" = "no"; then
20376       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20377     fi
20378   done
20379     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20380   squeeze tmp_CFLAGS
20381
20382
20383     ac_var_added_warnings=""
20384   for warning in redundant-decls; do
20385
20386   ac_var_match_word="no"
20387   for word1 in $CFLAGS; do
20388     for word2 in -Wno-$warning -W$warning; do
20389       if test "$word1" = "$word2"; then
20390         ac_var_match_word="yes"
20391       fi
20392     done
20393   done
20394
20395     if test "$ac_var_match_word" = "no"; then
20396       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20397     fi
20398   done
20399     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20400   squeeze tmp_CFLAGS
20401
20402           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum])      # Not used because this basically disallows default case
20403           # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros])    # Not practical
20404           fi
20405           #
20406                     if test "$compiler_num" -ge "402"; then
20407
20408     ac_var_added_warnings=""
20409   for warning in cast-align; do
20410
20411   ac_var_match_word="no"
20412   for word1 in $CFLAGS; do
20413     for word2 in -Wno-$warning -W$warning; do
20414       if test "$word1" = "$word2"; then
20415         ac_var_match_word="yes"
20416       fi
20417     done
20418   done
20419
20420     if test "$ac_var_match_word" = "no"; then
20421       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20422     fi
20423   done
20424     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20425   squeeze tmp_CFLAGS
20426
20427           fi
20428           #
20429                     if test "$compiler_num" -ge "403"; then
20430
20431     ac_var_added_warnings=""
20432   for warning in address; do
20433
20434   ac_var_match_word="no"
20435   for word1 in $CFLAGS; do
20436     for word2 in -Wno-$warning -W$warning; do
20437       if test "$word1" = "$word2"; then
20438         ac_var_match_word="yes"
20439       fi
20440     done
20441   done
20442
20443     if test "$ac_var_match_word" = "no"; then
20444       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20445     fi
20446   done
20447     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20448   squeeze tmp_CFLAGS
20449
20450
20451     ac_var_added_warnings=""
20452   for warning in type-limits old-style-declaration; do
20453
20454   ac_var_match_word="no"
20455   for word1 in $CFLAGS; do
20456     for word2 in -Wno-$warning -W$warning; do
20457       if test "$word1" = "$word2"; then
20458         ac_var_match_word="yes"
20459       fi
20460     done
20461   done
20462
20463     if test "$ac_var_match_word" = "no"; then
20464       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20465     fi
20466   done
20467     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20468   squeeze tmp_CFLAGS
20469
20470
20471     ac_var_added_warnings=""
20472   for warning in missing-parameter-type empty-body; do
20473
20474   ac_var_match_word="no"
20475   for word1 in $CFLAGS; do
20476     for word2 in -Wno-$warning -W$warning; do
20477       if test "$word1" = "$word2"; then
20478         ac_var_match_word="yes"
20479       fi
20480     done
20481   done
20482
20483     if test "$ac_var_match_word" = "no"; then
20484       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20485     fi
20486   done
20487     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20488   squeeze tmp_CFLAGS
20489
20490
20491     ac_var_added_warnings=""
20492   for warning in clobbered ignored-qualifiers; do
20493
20494   ac_var_match_word="no"
20495   for word1 in $CFLAGS; do
20496     for word2 in -Wno-$warning -W$warning; do
20497       if test "$word1" = "$word2"; then
20498         ac_var_match_word="yes"
20499       fi
20500     done
20501   done
20502
20503     if test "$ac_var_match_word" = "no"; then
20504       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20505     fi
20506   done
20507     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20508   squeeze tmp_CFLAGS
20509
20510
20511     ac_var_added_warnings=""
20512   for warning in conversion; do
20513
20514   ac_var_match_word="no"
20515   for word1 in $CFLAGS; do
20516     for word2 in -Wno-$warning -W$warning; do
20517       if test "$word1" = "$word2"; then
20518         ac_var_match_word="yes"
20519       fi
20520     done
20521   done
20522
20523     if test "$ac_var_match_word" = "no"; then
20524       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20525     fi
20526   done
20527     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20528   squeeze tmp_CFLAGS
20529
20530             tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
20531
20532     ac_var_added_warnings=""
20533   for warning in vla; do
20534
20535   ac_var_match_word="no"
20536   for word1 in $CFLAGS; do
20537     for word2 in -Wno-$warning -W$warning; do
20538       if test "$word1" = "$word2"; then
20539         ac_var_match_word="yes"
20540       fi
20541     done
20542   done
20543
20544     if test "$ac_var_match_word" = "no"; then
20545       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20546     fi
20547   done
20548     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20549   squeeze tmp_CFLAGS
20550
20551                         tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
20552           fi
20553           #
20554                     if test "$compiler_num" -ge "405"; then
20555                         if test "$curl_cv_have_def__WIN32" = "yes"; then
20556               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
20557             fi
20558           fi
20559           #
20560                     if test "$compiler_num" -ge "406"; then
20561
20562     ac_var_added_warnings=""
20563   for warning in double-promotion; do
20564
20565   ac_var_match_word="no"
20566   for word1 in $CFLAGS; do
20567     for word2 in -Wno-$warning -W$warning; do
20568       if test "$word1" = "$word2"; then
20569         ac_var_match_word="yes"
20570       fi
20571     done
20572   done
20573
20574     if test "$ac_var_match_word" = "no"; then
20575       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20576     fi
20577   done
20578     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20579   squeeze tmp_CFLAGS
20580
20581           fi
20582           #
20583                     if test "$compiler_num" -ge "408"; then
20584             tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20585           fi
20586           #
20587                     if test "$compiler_num" -ge "500"; then
20588             tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20589           fi
20590           #
20591                     if test "$compiler_num" -ge "600"; then
20592
20593     ac_var_added_warnings=""
20594   for warning in shift-negative-value; do
20595
20596   ac_var_match_word="no"
20597   for word1 in $CFLAGS; do
20598     for word2 in -Wno-$warning -W$warning; do
20599       if test "$word1" = "$word2"; then
20600         ac_var_match_word="yes"
20601       fi
20602     done
20603   done
20604
20605     if test "$ac_var_match_word" = "no"; then
20606       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20607     fi
20608   done
20609     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20610   squeeze tmp_CFLAGS
20611
20612             tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20613
20614     ac_var_added_warnings=""
20615   for warning in null-dereference; do
20616
20617   ac_var_match_word="no"
20618   for word1 in $CFLAGS; do
20619     for word2 in -Wno-$warning -W$warning; do
20620       if test "$word1" = "$word2"; then
20621         ac_var_match_word="yes"
20622       fi
20623     done
20624   done
20625
20626     if test "$ac_var_match_word" = "no"; then
20627       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20628     fi
20629   done
20630     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20631   squeeze tmp_CFLAGS
20632
20633             tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20634
20635     ac_var_added_warnings=""
20636   for warning in duplicated-cond; do
20637
20638   ac_var_match_word="no"
20639   for word1 in $CFLAGS; do
20640     for word2 in -Wno-$warning -W$warning; do
20641       if test "$word1" = "$word2"; then
20642         ac_var_match_word="yes"
20643       fi
20644     done
20645   done
20646
20647     if test "$ac_var_match_word" = "no"; then
20648       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20649     fi
20650   done
20651     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20652   squeeze tmp_CFLAGS
20653
20654
20655     ac_var_added_warnings=""
20656   for warning in unused-const-variable; do
20657
20658   ac_var_match_word="no"
20659   for word1 in $CFLAGS; do
20660     for word2 in -Wno-$warning -W$warning; do
20661       if test "$word1" = "$word2"; then
20662         ac_var_match_word="yes"
20663       fi
20664     done
20665   done
20666
20667     if test "$ac_var_match_word" = "no"; then
20668       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20669     fi
20670   done
20671     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20672   squeeze tmp_CFLAGS
20673
20674           fi
20675           #
20676                     if test "$compiler_num" -ge "700"; then
20677
20678     ac_var_added_warnings=""
20679   for warning in duplicated-branches; do
20680
20681   ac_var_match_word="no"
20682   for word1 in $CFLAGS; do
20683     for word2 in -Wno-$warning -W$warning; do
20684       if test "$word1" = "$word2"; then
20685         ac_var_match_word="yes"
20686       fi
20687     done
20688   done
20689
20690     if test "$ac_var_match_word" = "no"; then
20691       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20692     fi
20693   done
20694     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20695   squeeze tmp_CFLAGS
20696
20697
20698     ac_var_added_warnings=""
20699   for warning in restrict; do
20700
20701   ac_var_match_word="no"
20702   for word1 in $CFLAGS; do
20703     for word2 in -Wno-$warning -W$warning; do
20704       if test "$word1" = "$word2"; then
20705         ac_var_match_word="yes"
20706       fi
20707     done
20708   done
20709
20710     if test "$ac_var_match_word" = "no"; then
20711       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20712     fi
20713   done
20714     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20715   squeeze tmp_CFLAGS
20716
20717
20718     ac_var_added_warnings=""
20719   for warning in alloc-zero; do
20720
20721   ac_var_match_word="no"
20722   for word1 in $CFLAGS; do
20723     for word2 in -Wno-$warning -W$warning; do
20724       if test "$word1" = "$word2"; then
20725         ac_var_match_word="yes"
20726       fi
20727     done
20728   done
20729
20730     if test "$ac_var_match_word" = "no"; then
20731       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20732     fi
20733   done
20734     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20735   squeeze tmp_CFLAGS
20736
20737             tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20738             tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20739             if test "$compiler_num" -lt "1200"; then
20740                             tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
20741             fi
20742           fi
20743           #
20744                     if test "$compiler_num" -ge "1000"; then
20745
20746     ac_var_added_warnings=""
20747   for warning in arith-conversion; do
20748
20749   ac_var_match_word="no"
20750   for word1 in $CFLAGS; do
20751     for word2 in -Wno-$warning -W$warning; do
20752       if test "$word1" = "$word2"; then
20753         ac_var_match_word="yes"
20754       fi
20755     done
20756   done
20757
20758     if test "$ac_var_match_word" = "no"; then
20759       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20760     fi
20761   done
20762     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20763   squeeze tmp_CFLAGS
20764
20765
20766     ac_var_added_warnings=""
20767   for warning in enum-conversion; do
20768
20769   ac_var_match_word="no"
20770   for word1 in $CFLAGS; do
20771     for word2 in -Wno-$warning -W$warning; do
20772       if test "$word1" = "$word2"; then
20773         ac_var_match_word="yes"
20774       fi
20775     done
20776   done
20777
20778     if test "$ac_var_match_word" = "no"; then
20779       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20780     fi
20781   done
20782     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20783   squeeze tmp_CFLAGS
20784
20785           fi
20786           #
20787         fi
20788         #
20789                 if test "$compiler_num" -ge "300"; then
20790           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20791         else
20792                               if test "x$cross_compiling" = "xyes"; then
20793             if test "$compiler_num" -ge "104"; then
20794                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20795             fi
20796             if test "$compiler_num" -ge "207"; then
20797                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20798               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20799             fi
20800           fi
20801         fi
20802         ;;
20803         #
20804       HP_UX_C)
20805         #
20806         if test "$want_warnings" = "yes"; then
20807                     tmp_CFLAGS="$tmp_CFLAGS +w1"
20808         fi
20809         ;;
20810         #
20811       IBM_C)
20812         #
20813                 tmp_CFLAGS="$tmp_CFLAGS"
20814         ;;
20815         #
20816       INTEL_UNIX_C)
20817         #
20818         if test "$want_warnings" = "yes"; then
20819           if test "$compiler_num" -gt "600"; then
20820                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20821                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20822                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20823                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20824                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20825                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20826                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20827                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20828                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20829                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20830                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20831           fi
20832         fi
20833                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20834                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20835                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20836         ;;
20837         #
20838       INTEL_WINDOWS_C)
20839         #
20840                 tmp_CFLAGS="$tmp_CFLAGS"
20841         ;;
20842         #
20843       SGI_MIPS_C)
20844         #
20845         if test "$want_warnings" = "yes"; then
20846                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20847         fi
20848         ;;
20849         #
20850       SGI_MIPSPRO_C)
20851         #
20852         if test "$want_warnings" = "yes"; then
20853                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20854                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20855         fi
20856         ;;
20857         #
20858       SUNPRO_C)
20859         #
20860         if test "$want_warnings" = "yes"; then
20861                     tmp_CFLAGS="$tmp_CFLAGS -v"
20862         fi
20863         ;;
20864         #
20865       TINY_C)
20866         #
20867         if test "$want_warnings" = "yes"; then
20868
20869     ac_var_added_warnings=""
20870   for warning in all; do
20871
20872   ac_var_match_word="no"
20873   for word1 in $CFLAGS; do
20874     for word2 in -Wno-$warning -W$warning; do
20875       if test "$word1" = "$word2"; then
20876         ac_var_match_word="yes"
20877       fi
20878     done
20879   done
20880
20881     if test "$ac_var_match_word" = "no"; then
20882       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20883     fi
20884   done
20885     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20886   squeeze tmp_CFLAGS
20887
20888
20889     ac_var_added_warnings=""
20890   for warning in write-strings; do
20891
20892   ac_var_match_word="no"
20893   for word1 in $CFLAGS; do
20894     for word2 in -Wno-$warning -W$warning; do
20895       if test "$word1" = "$word2"; then
20896         ac_var_match_word="yes"
20897       fi
20898     done
20899   done
20900
20901     if test "$ac_var_match_word" = "no"; then
20902       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20903     fi
20904   done
20905     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20906   squeeze tmp_CFLAGS
20907
20908
20909     ac_var_added_warnings=""
20910   for warning in unsupported; do
20911
20912   ac_var_match_word="no"
20913   for word1 in $CFLAGS; do
20914     for word2 in -Wno-$warning -W$warning; do
20915       if test "$word1" = "$word2"; then
20916         ac_var_match_word="yes"
20917       fi
20918     done
20919   done
20920
20921     if test "$ac_var_match_word" = "no"; then
20922       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20923     fi
20924   done
20925     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20926   squeeze tmp_CFLAGS
20927
20928         fi
20929         ;;
20930         #
20931     esac
20932     #
20933     squeeze tmp_CPPFLAGS
20934     squeeze tmp_CFLAGS
20935     #
20936     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20937       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
20938 printf %s "checking if compiler accepts strict warning options... " >&6; }
20939       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20940       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20941       squeeze CPPFLAGS
20942       squeeze CFLAGS
20943
20944     tmp_compiler_works="unknown"
20945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946 /* end confdefs.h.  */
20947
20948
20949
20950 int main (void)
20951 {
20952
20953       int i = 1;
20954       return i;
20955
20956  ;
20957  return 0;
20958 }
20959
20960 _ACEOF
20961 if ac_fn_c_try_compile "$LINENO"
20962 then :
20963
20964     tmp_compiler_works="yes"
20965
20966 else $as_nop
20967
20968     tmp_compiler_works="no"
20969     echo " " >&6
20970     sed 's/^/cc-fail: /' conftest.err >&6
20971     echo " " >&6
20972
20973 fi
20974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20975     if test "$tmp_compiler_works" = "yes"; then
20976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h.  */
20978
20979
20980
20981 int main (void)
20982 {
20983
20984         int i = 1;
20985         return i;
20986
20987  ;
20988  return 0;
20989 }
20990
20991 _ACEOF
20992 if ac_fn_c_try_link "$LINENO"
20993 then :
20994
20995       tmp_compiler_works="yes"
20996
20997 else $as_nop
20998
20999       tmp_compiler_works="no"
21000       echo " " >&6
21001       sed 's/^/link-fail: /' conftest.err >&6
21002       echo " " >&6
21003
21004 fi
21005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21006     conftest$ac_exeext conftest.$ac_ext
21007   fi
21008     if test "x$cross_compiling" != "xyes" &&
21009     test "$tmp_compiler_works" = "yes"; then
21010
21011    case $host_os in
21012      darwin*)
21013       if test "$cross_compiling" = yes
21014 then :
21015   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21017 as_fn_error $? "cannot run test program while cross compiling
21018 See \`config.log' for more details" "$LINENO" 5; }
21019 else $as_nop
21020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h.  */
21022
21023
21024 #       ifdef __STDC__
21025 #         include <stdlib.h>
21026 #       endif
21027
21028 int main (void)
21029 {
21030
21031         int i = 0;
21032         exit(i);
21033
21034  ;
21035  return 0;
21036 }
21037
21038 _ACEOF
21039 if ac_fn_c_try_run "$LINENO"
21040 then :
21041   tmp_compiler_works="yes"
21042
21043 else $as_nop
21044   tmp_compiler_works="no"
21045       echo " " >&6
21046       echo "run-fail: test program exited with status $ac_status" >&6
21047       echo " " >&6
21048
21049 fi
21050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051   conftest.$ac_objext conftest.beam conftest.$ac_ext
21052 fi
21053
21054      ;;
21055      *)
21056       oldcc=$CC
21057       old=$LD_LIBRARY_PATH
21058       CC="sh ./run-compiler"
21059       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21060       export LD_LIBRARY_PATH
21061       if test "$cross_compiling" = yes
21062 then :
21063   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21064 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21065 as_fn_error $? "cannot run test program while cross compiling
21066 See \`config.log' for more details" "$LINENO" 5; }
21067 else $as_nop
21068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h.  */
21070
21071
21072 #       ifdef __STDC__
21073 #         include <stdlib.h>
21074 #       endif
21075
21076 int main (void)
21077 {
21078
21079         int i = 0;
21080         exit(i);
21081
21082  ;
21083  return 0;
21084 }
21085
21086 _ACEOF
21087 if ac_fn_c_try_run "$LINENO"
21088 then :
21089   tmp_compiler_works="yes"
21090
21091 else $as_nop
21092   tmp_compiler_works="no"
21093       echo " " >&6
21094       echo "run-fail: test program exited with status $ac_status" >&6
21095       echo " " >&6
21096
21097 fi
21098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21099   conftest.$ac_objext conftest.beam conftest.$ac_ext
21100 fi
21101
21102       LD_LIBRARY_PATH=$old # restore
21103       CC=$oldcc
21104      ;;
21105    esac
21106
21107   fi
21108     if test "$tmp_compiler_works" = "yes"; then
21109
21110         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21111 printf "%s\n" "yes" >&6; }
21112         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21113 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21114
21115   else
21116
21117         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 printf "%s\n" "no" >&6; }
21119         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21120 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21121                 CPPFLAGS="$tmp_save_CPPFLAGS"
21122         CFLAGS="$tmp_save_CFLAGS"
21123
21124   fi
21125
21126     fi
21127     #
21128   fi
21129
21130
21131 if test "$compiler_id" = "INTEL_UNIX_C"; then
21132   #
21133   if test "$compiler_num" -ge "1000"; then
21134         CFLAGS="$CFLAGS -shared-intel"
21135   elif test "$compiler_num" -ge "900"; then
21136         CFLAGS="$CFLAGS -i-dynamic"
21137   fi
21138   #
21139 fi
21140
21141 CURL_CFLAG_EXTRAS=""
21142 if test X"$want_werror" = Xyes; then
21143   CURL_CFLAG_EXTRAS="-Werror"
21144   if test "$compiler_id" = "GNU_C"; then
21145             if test "$compiler_num" -ge "500"; then
21146       CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
21147     fi
21148   fi
21149 fi
21150
21151
21152
21153   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21154 printf %s "checking if compiler halts on compilation errors... " >&6; }
21155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h.  */
21157
21158
21159
21160 int main (void)
21161 {
21162
21163       force compilation error
21164
21165  ;
21166  return 0;
21167 }
21168
21169 _ACEOF
21170 if ac_fn_c_try_compile "$LINENO"
21171 then :
21172
21173     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21174 printf "%s\n" "no" >&6; }
21175     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21176
21177 else $as_nop
21178
21179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 printf "%s\n" "yes" >&6; }
21181
21182 fi
21183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21184
21185
21186     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21187 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
21188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h.  */
21190
21191
21192       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21193
21194 int main (void)
21195 {
21196
21197       bad_t dummy;
21198
21199  ;
21200  return 0;
21201 }
21202
21203 _ACEOF
21204 if ac_fn_c_try_compile "$LINENO"
21205 then :
21206
21207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21208 printf "%s\n" "no" >&6; }
21209     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21210
21211 else $as_nop
21212
21213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21214 printf "%s\n" "yes" >&6; }
21215
21216 fi
21217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21218
21219
21220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21221 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
21222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h.  */
21224
21225
21226 #     include <stdlib.h>
21227       int rand(int n);
21228       int rand(int n)
21229       {
21230         if(n)
21231           return ++n;
21232         else
21233           return n;
21234       }
21235
21236 int main (void)
21237 {
21238
21239       int i[2]={0,0};
21240       int j = rand(i[0]);
21241       if(j)
21242         return j;
21243
21244  ;
21245  return 0;
21246 }
21247
21248 _ACEOF
21249 if ac_fn_c_try_compile "$LINENO"
21250 then :
21251
21252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 printf "%s\n" "no" >&6; }
21254     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21255
21256 else $as_nop
21257
21258     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21259 printf "%s\n" "yes" >&6; }
21260
21261 fi
21262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21263
21264
21265       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21266 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
21267   supports_symbol_hiding="no"
21268   symbol_hiding_CFLAGS=""
21269   symbol_hiding_EXTERN=""
21270   tmp_CFLAGS=""
21271   tmp_EXTERN=""
21272   case "$compiler_id" in
21273     CLANG)
21274             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21275       tmp_CFLAGS="-fvisibility=hidden"
21276       supports_symbol_hiding="yes"
21277       ;;
21278     GNU_C)
21279             if test "$compiler_num" -ge "304"; then
21280         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
21281           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21282           tmp_CFLAGS="-fvisibility=hidden"
21283           supports_symbol_hiding="yes"
21284         fi
21285       fi
21286       ;;
21287     INTEL_UNIX_C)
21288             if test "$compiler_num" -ge "900"; then
21289         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21290           tmp_save_CFLAGS="$CFLAGS"
21291           CFLAGS="$CFLAGS -fvisibility=hidden"
21292           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h.  */
21294
21295
21296 #             include <stdio.h>
21297
21298 int main (void)
21299 {
21300
21301               printf("icc fvisibility bug test");
21302
21303  ;
21304  return 0;
21305 }
21306
21307 _ACEOF
21308 if ac_fn_c_try_link "$LINENO"
21309 then :
21310
21311             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21312             tmp_CFLAGS="-fvisibility=hidden"
21313             supports_symbol_hiding="yes"
21314
21315 fi
21316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21317     conftest$ac_exeext conftest.$ac_ext
21318           CFLAGS="$tmp_save_CFLAGS"
21319         fi
21320       fi
21321       ;;
21322     SUNPRO_C)
21323       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21324         tmp_EXTERN="__global"
21325         tmp_CFLAGS="-xldscope=hidden"
21326         supports_symbol_hiding="yes"
21327       fi
21328       ;;
21329   esac
21330   if test "$supports_symbol_hiding" = "yes"; then
21331     tmp_save_CFLAGS="$CFLAGS"
21332     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21333     squeeze CFLAGS
21334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h.  */
21336
21337
21338         $tmp_EXTERN char *dummy(char *buff);
21339         char *dummy(char *buff)
21340         {
21341          if(buff)
21342            return ++buff;
21343          else
21344            return buff;
21345         }
21346
21347 int main (void)
21348 {
21349
21350         char b[16];
21351         char *r = dummy(&b[0]);
21352         if(r)
21353           return (int)*r;
21354
21355  ;
21356  return 0;
21357 }
21358
21359 _ACEOF
21360 if ac_fn_c_try_compile "$LINENO"
21361 then :
21362
21363       supports_symbol_hiding="yes"
21364       if test -f conftest.err; then
21365         grep 'visibility' conftest.err >/dev/null
21366         if test "$?" -eq "0"; then
21367           supports_symbol_hiding="no"
21368         fi
21369       fi
21370
21371 else $as_nop
21372
21373       supports_symbol_hiding="no"
21374       echo " " >&6
21375       sed 's/^/cc-src: /' conftest.$ac_ext >&6
21376       sed 's/^/cc-err: /' conftest.err >&6
21377       echo " " >&6
21378
21379 fi
21380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21381     CFLAGS="$tmp_save_CFLAGS"
21382   fi
21383   if test "$supports_symbol_hiding" = "yes"; then
21384     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21385 printf "%s\n" "yes" >&6; }
21386     symbol_hiding_CFLAGS="$tmp_CFLAGS"
21387     symbol_hiding_EXTERN="$tmp_EXTERN"
21388   else
21389     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 printf "%s\n" "no" >&6; }
21391   fi
21392
21393
21394
21395       supports_curldebug="unknown"
21396   if test "$want_curldebug" = "yes"; then
21397     if test "x$enable_shared" != "xno" &&
21398       test "x$enable_shared" != "xyes"; then
21399       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21400 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
21401       supports_curldebug="no"
21402     fi
21403     if test "x$enable_static" != "xno" &&
21404       test "x$enable_static" != "xyes"; then
21405       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21406 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
21407       supports_curldebug="no"
21408     fi
21409     if test "$supports_curldebug" != "no"; then
21410       if test "$enable_shared" = "yes" &&
21411         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21412         supports_curldebug="no"
21413         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21414 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21415       fi
21416     fi
21417   fi
21418   #
21419   if test "$want_curldebug" = "yes"; then
21420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21421 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
21422     test "$supports_curldebug" = "no" || supports_curldebug="yes"
21423     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21424 printf "%s\n" "$supports_curldebug" >&6; }
21425     if test "$supports_curldebug" = "no"; then
21426       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21427 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21428       want_curldebug="no"
21429     fi
21430   fi
21431
21432  if test x$want_curldebug = xyes; then
21433   CURLDEBUG_TRUE=
21434   CURLDEBUG_FALSE='#'
21435 else
21436   CURLDEBUG_TRUE='#'
21437   CURLDEBUG_FALSE=
21438 fi
21439
21440
21441 supports_unittests=yes
21442 # cross-compilation of unit tests static library/programs fails when
21443 # libcurl shared library is built. This might be due to a libtool or
21444 # automake issue. In this case we disable unit tests.
21445 if test "x$cross_compiling" != "xno" &&
21446    test "x$enable_shared" != "xno"; then
21447   supports_unittests=no
21448 fi
21449
21450 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
21451 # a problem related with OpenSSL headers and library versions not matching.
21452 # Disable unit tests while time to further investigate this is found.
21453 case $host in
21454   mips-sgi-irix6.5)
21455     if test "$compiler_id" = "GNU_C"; then
21456       supports_unittests=no
21457     fi
21458     ;;
21459 esac
21460
21461 # All AIX autobuilds fails unit tests linking against unittests library
21462 # due to unittests library being built with no symbols or members. Libtool ?
21463 # Disable unit tests while time to further investigate this is found.
21464 case $host_os in
21465   aix*)
21466     supports_unittests=no
21467     ;;
21468 esac
21469
21470 if test "x$want_debug" = "xyes" &&
21471    test "x$supports_unittests" = "xyes"; then
21472   want_unittests=yes
21473 else
21474   want_unittests=no
21475 fi
21476  if test x$want_unittests = xyes; then
21477   BUILD_UNITTESTS_TRUE=
21478   BUILD_UNITTESTS_FALSE='#'
21479 else
21480   BUILD_UNITTESTS_TRUE='#'
21481   BUILD_UNITTESTS_FALSE=
21482 fi
21483
21484
21485
21486
21487
21488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21489 printf %s "checking for windows.h... " >&6; }
21490 if test ${curl_cv_header_windows_h+y}
21491 then :
21492   printf %s "(cached) " >&6
21493 else $as_nop
21494
21495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496 /* end confdefs.h.  */
21497
21498
21499 #undef inline
21500 #ifndef WIN32_LEAN_AND_MEAN
21501 #define WIN32_LEAN_AND_MEAN
21502 #endif
21503 #include <windows.h>
21504
21505 int main (void)
21506 {
21507
21508 #if defined(__CYGWIN__) || defined(__CEGCC__)
21509         HAVE_WINDOWS_H shall not be defined.
21510 #else
21511         int dummy=2*WINVER;
21512 #endif
21513
21514  ;
21515  return 0;
21516 }
21517
21518 _ACEOF
21519 if ac_fn_c_try_compile "$LINENO"
21520 then :
21521
21522       curl_cv_header_windows_h="yes"
21523
21524 else $as_nop
21525
21526       curl_cv_header_windows_h="no"
21527
21528 fi
21529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21530
21531 fi
21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21533 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
21534   case "$curl_cv_header_windows_h" in
21535     yes)
21536
21537 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21538
21539       ;;
21540   esac
21541
21542
21543     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21544 printf %s "checking whether build target is a native Windows one... " >&6; }
21545 if test ${curl_cv_native_windows+y}
21546 then :
21547   printf %s "(cached) " >&6
21548 else $as_nop
21549
21550     if test "$curl_cv_header_windows_h" = "no"; then
21551       curl_cv_native_windows="no"
21552     else
21553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h.  */
21555
21556
21557
21558 int main (void)
21559 {
21560
21561 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21562    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21563           int dummy=1;
21564 #else
21565           Not a native Windows build target.
21566 #endif
21567
21568  ;
21569  return 0;
21570 }
21571
21572 _ACEOF
21573 if ac_fn_c_try_compile "$LINENO"
21574 then :
21575
21576         curl_cv_native_windows="yes"
21577
21578 else $as_nop
21579
21580         curl_cv_native_windows="no"
21581
21582 fi
21583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21584     fi
21585
21586 fi
21587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
21588 printf "%s\n" "$curl_cv_native_windows" >&6; }
21589    if test "x$curl_cv_native_windows" = xyes; then
21590   DOING_NATIVE_WINDOWS_TRUE=
21591   DOING_NATIVE_WINDOWS_FALSE='#'
21592 else
21593   DOING_NATIVE_WINDOWS_TRUE='#'
21594   DOING_NATIVE_WINDOWS_FALSE=
21595 fi
21596
21597
21598 case X-"$curl_cv_native_windows" in
21599   X-yes)
21600
21601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21602 printf %s "checking for winsock2.h... " >&6; }
21603 if test ${curl_cv_header_winsock2_h+y}
21604 then :
21605   printf %s "(cached) " >&6
21606 else $as_nop
21607
21608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h.  */
21610
21611
21612 #undef inline
21613 #ifndef WIN32_LEAN_AND_MEAN
21614 #define WIN32_LEAN_AND_MEAN
21615 #endif
21616 #include <windows.h>
21617 #include <winsock2.h>
21618
21619 int main (void)
21620 {
21621
21622 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21623         HAVE_WINSOCK2_H shall not be defined.
21624 #else
21625         int dummy=2*IPPROTO_ESP;
21626 #endif
21627
21628  ;
21629  return 0;
21630 }
21631
21632 _ACEOF
21633 if ac_fn_c_try_compile "$LINENO"
21634 then :
21635
21636       curl_cv_header_winsock2_h="yes"
21637
21638 else $as_nop
21639
21640       curl_cv_header_winsock2_h="no"
21641
21642 fi
21643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21644
21645 fi
21646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21647 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
21648   case "$curl_cv_header_winsock2_h" in
21649     yes)
21650
21651 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21652
21653       ;;
21654   esac
21655
21656
21657     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21658 printf %s "checking for ws2tcpip.h... " >&6; }
21659 if test ${curl_cv_header_ws2tcpip_h+y}
21660 then :
21661   printf %s "(cached) " >&6
21662 else $as_nop
21663
21664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21665 /* end confdefs.h.  */
21666
21667
21668 #undef inline
21669 #ifndef WIN32_LEAN_AND_MEAN
21670 #define WIN32_LEAN_AND_MEAN
21671 #endif
21672 #include <windows.h>
21673 #include <winsock2.h>
21674 #include <ws2tcpip.h>
21675
21676 int main (void)
21677 {
21678
21679 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21680         HAVE_WS2TCPIP_H shall not be defined.
21681 #else
21682         int dummy=2*IP_PKTINFO;
21683 #endif
21684
21685  ;
21686  return 0;
21687 }
21688
21689 _ACEOF
21690 if ac_fn_c_try_compile "$LINENO"
21691 then :
21692
21693       curl_cv_header_ws2tcpip_h="yes"
21694
21695 else $as_nop
21696
21697       curl_cv_header_ws2tcpip_h="no"
21698
21699 fi
21700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21701
21702 fi
21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
21704 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
21705   case "$curl_cv_header_ws2tcpip_h" in
21706     yes)
21707
21708 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
21709
21710       ;;
21711   esac
21712
21713     ;;
21714   *)
21715     curl_cv_header_winsock2_h="no"
21716     curl_cv_header_ws2tcpip_h="no"
21717     ;;
21718 esac
21719
21720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21721 printf %s "checking whether build target supports WIN32 file API... " >&6; }
21722   curl_win32_file_api="no"
21723   if test "$curl_cv_header_windows_h" = "yes"; then
21724     if test x"$enable_largefile" != "xno"; then
21725       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h.  */
21727
21728
21729
21730 int main (void)
21731 {
21732
21733 #if !defined(_WIN32_WCE) && \
21734     (defined(__MINGW32__) || \
21735     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
21736           int dummy=1;
21737 #else
21738           WIN32 large file API not supported.
21739 #endif
21740
21741  ;
21742  return 0;
21743 }
21744
21745 _ACEOF
21746 if ac_fn_c_try_compile "$LINENO"
21747 then :
21748
21749         curl_win32_file_api="win32_large_files"
21750
21751 fi
21752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21753     fi
21754     if test "$curl_win32_file_api" = "no"; then
21755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h.  */
21757
21758
21759
21760 int main (void)
21761 {
21762
21763 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21764           int dummy=1;
21765 #else
21766           WIN32 small file API not supported.
21767 #endif
21768
21769  ;
21770  return 0;
21771 }
21772
21773 _ACEOF
21774 if ac_fn_c_try_compile "$LINENO"
21775 then :
21776
21777         curl_win32_file_api="win32_small_files"
21778
21779 fi
21780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21781     fi
21782   fi
21783   case "$curl_win32_file_api" in
21784     win32_large_files)
21785       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21786 printf "%s\n" "yes (large file enabled)" >&6; }
21787
21788 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21789
21790       USE_WIN32_LARGE_FILES=1
21791
21792       ;;
21793     win32_small_files)
21794       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21795 printf "%s\n" "yes (large file disabled)" >&6; }
21796
21797 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21798
21799       USE_WIN32_SMALL_FILES=1
21800
21801       ;;
21802     *)
21803       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 printf "%s\n" "no" >&6; }
21805       ;;
21806   esac
21807
21808
21809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21810 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21811   curl_win32_crypto_api="no"
21812   if test "$curl_cv_header_windows_h" = "yes"; then
21813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h.  */
21815
21816
21817 #undef inline
21818 #ifndef WIN32_LEAN_AND_MEAN
21819 #define WIN32_LEAN_AND_MEAN
21820 #endif
21821 #include <windows.h>
21822 #include <wincrypt.h>
21823
21824 int main (void)
21825 {
21826
21827         HCRYPTPROV hCryptProv;
21828         if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21829                                CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21830           CryptReleaseContext(hCryptProv, 0);
21831         }
21832
21833  ;
21834  return 0;
21835 }
21836
21837 _ACEOF
21838 if ac_fn_c_try_compile "$LINENO"
21839 then :
21840
21841       curl_win32_crypto_api="yes"
21842
21843 fi
21844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21845   fi
21846   case "$curl_win32_crypto_api" in
21847     yes)
21848       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21849 printf "%s\n" "yes" >&6; }
21850
21851 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21852
21853       USE_WIN32_CRYPTO=1
21854
21855       ;;
21856     *)
21857       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21858 printf "%s\n" "no" >&6; }
21859       ;;
21860   esac
21861
21862
21863
21864
21865   tst_cflags="no"
21866   case $host_os in
21867     darwin*)
21868       tst_cflags="yes"
21869       ;;
21870   esac
21871
21872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21873 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21874   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21875 printf "%s\n" "$tst_cflags" >&6; };
21876
21877   if test "$tst_cflags" = "yes"; then
21878     old_CFLAGS=$CFLAGS
21879     CFLAGS="$CFLAGS -Werror=partial-availability"
21880     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21881 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h.  */
21884
21885 int main (void)
21886 {
21887
21888  ;
21889  return 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_compile "$LINENO"
21893 then :
21894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895 printf "%s\n" "yes" >&6; }
21896 else $as_nop
21897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 printf "%s\n" "no" >&6; }
21899       CFLAGS=$old_CFLAGS
21900 fi
21901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21902   fi
21903
21904
21905
21906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5
21907 printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; }
21908 case $host_os in
21909   darwin*)
21910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h.  */
21912
21913
21914 #include <TargetConditionals.h>
21915
21916 int main (void)
21917 {
21918
21919 #if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
21920       return 0;
21921 #else
21922 #error Not macOS
21923 #endif
21924
21925  ;
21926  return 0;
21927 }
21928
21929 _ACEOF
21930 if ac_fn_c_try_compile "$LINENO"
21931 then :
21932
21933       build_for_macos="yes"
21934
21935 else $as_nop
21936
21937       build_for_macos="no"
21938
21939 fi
21940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21941     if test "x$build_for_macos" != xno; then
21942       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943 printf "%s\n" "yes" >&6; }
21944       LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
21945     else
21946       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21947 printf "%s\n" "no" >&6; }
21948     fi
21949     ;;
21950   *)
21951     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21952 printf "%s\n" "no" >&6; }
21953 esac
21954
21955
21956   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21957 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959 /* end confdefs.h.  */
21960
21961
21962 #include <stdlib.h>
21963
21964 int main (void)
21965 {
21966
21967       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21968
21969  ;
21970  return 0;
21971 }
21972
21973 _ACEOF
21974 if ac_fn_c_try_compile "$LINENO"
21975 then :
21976
21977     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21978 printf "%s\n" "yes" >&6; }
21979
21980 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21981
21982
21983 else $as_nop
21984
21985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21986 printf "%s\n" "no" >&6; }
21987
21988 fi
21989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21990
21991
21992  if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21993   HAVE_WINDRES_TRUE=
21994   HAVE_WINDRES_FALSE='#'
21995 else
21996   HAVE_WINDRES_TRUE='#'
21997   HAVE_WINDRES_FALSE=
21998 fi
21999
22000
22001 if test "$curl_cv_native_windows" = "yes"; then
22002   if test -z "$HAVE_WINDRES_TRUE"; then :
22003   else
22004   as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
22005 fi
22006 fi
22007
22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
22009 printf %s "checking whether to support http... " >&6; }
22010 # Check whether --enable-http was given.
22011 if test ${enable_http+y}
22012 then :
22013   enableval=$enable_http;  case "$enableval" in
22014   no)
22015        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016 printf "%s\n" "no" >&6; }
22017
22018 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
22019
22020        disable_http="yes"
22021        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
22022 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
22023        CURL_DISABLE_HTTP=1
22024
22025
22026 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22027
22028        CURL_DISABLE_RTSP=1
22029
22030
22031 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
22032
22033
22034 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
22035
22036        curl_h1_msg="no      (--enable-http, --with-hyper)"
22037        curl_altsvc_msg="no";
22038        curl_hsts_msg="no      (--enable-hsts)";
22039        enable_altsvc="no"
22040        hsts="no"
22041        ;;
22042   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22043 printf "%s\n" "yes" >&6; }
22044        ;;
22045   esac
22046 else $as_nop
22047   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22048 printf "%s\n" "yes" >&6; }
22049
22050 fi
22051
22052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
22053 printf %s "checking whether to support ftp... " >&6; }
22054 # Check whether --enable-ftp was given.
22055 if test ${enable_ftp+y}
22056 then :
22057   enableval=$enable_ftp;  case "$enableval" in
22058   no)
22059        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060 printf "%s\n" "no" >&6; }
22061
22062 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
22063
22064        CURL_DISABLE_FTP=1
22065
22066        ;;
22067   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22068 printf "%s\n" "yes" >&6; }
22069        ;;
22070   esac
22071 else $as_nop
22072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22073 printf "%s\n" "yes" >&6; }
22074
22075 fi
22076
22077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
22078 printf %s "checking whether to support file... " >&6; }
22079 # Check whether --enable-file was given.
22080 if test ${enable_file+y}
22081 then :
22082   enableval=$enable_file;  case "$enableval" in
22083   no)
22084        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22085 printf "%s\n" "no" >&6; }
22086
22087 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
22088
22089        CURL_DISABLE_FILE=1
22090
22091        ;;
22092   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22093 printf "%s\n" "yes" >&6; }
22094        ;;
22095   esac
22096 else $as_nop
22097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22098 printf "%s\n" "yes" >&6; }
22099
22100 fi
22101
22102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
22103 printf %s "checking whether to support ldap... " >&6; }
22104 # Check whether --enable-ldap was given.
22105 if test ${enable_ldap+y}
22106 then :
22107   enableval=$enable_ldap;  case "$enableval" in
22108   no)
22109        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 printf "%s\n" "no" >&6; }
22111
22112 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22113
22114        CURL_DISABLE_LDAP=1
22115
22116        ;;
22117   yes)
22118        ldap_askedfor="yes"
22119        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22120 printf "%s\n" "yes" >&6; }
22121        ;;
22122   *)
22123        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22124 printf "%s\n" "yes" >&6; }
22125        ;;
22126   esac
22127 else $as_nop
22128
22129        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 printf "%s\n" "yes" >&6; }
22131
22132 fi
22133
22134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
22135 printf %s "checking whether to support ldaps... " >&6; }
22136 # Check whether --enable-ldaps was given.
22137 if test ${enable_ldaps+y}
22138 then :
22139   enableval=$enable_ldaps;  case "$enableval" in
22140   no)
22141        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 printf "%s\n" "no" >&6; }
22143
22144 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22145
22146        CURL_DISABLE_LDAPS=1
22147
22148        ;;
22149   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
22150          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
22151 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
22152
22153 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22154
22155          CURL_DISABLE_LDAPS=1
22156
22157        else
22158          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22159 printf "%s\n" "yes" >&6; }
22160
22161 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22162
22163          HAVE_LDAP_SSL=1
22164
22165        fi
22166        ;;
22167   esac
22168 else $as_nop
22169
22170        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
22171          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22172 printf "%s\n" "no" >&6; }
22173
22174 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22175
22176          CURL_DISABLE_LDAPS=1
22177
22178        else
22179          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22180 printf "%s\n" "yes" >&6; }
22181
22182 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22183
22184          HAVE_LDAP_SSL=1
22185
22186        fi
22187
22188 fi
22189
22190
22191
22192 OPT_HYPER="no"
22193
22194
22195 # Check whether --with-hyper was given.
22196 if test ${with_hyper+y}
22197 then :
22198   withval=$with_hyper; OPT_HYPER=$withval
22199 fi
22200
22201 case "$OPT_HYPER" in
22202   no)
22203         want_hyper="no"
22204     ;;
22205   yes)
22206         want_hyper="default"
22207     want_hyper_path=""
22208     ;;
22209   *)
22210         want_hyper="yes"
22211     want_hyper_path="$withval"
22212     ;;
22213 esac
22214
22215 if test X"$want_hyper" != Xno; then
22216   if test "x$disable_http" = "xyes"; then
22217     as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
22218   fi
22219
22220     CLEANLDFLAGS="$LDFLAGS"
22221   CLEANCPPFLAGS="$CPPFLAGS"
22222   CLEANLIBS="$LIBS"
22223
22224
22225     if test -n "$PKG_CONFIG"; then
22226       PKGCONFIG="$PKG_CONFIG"
22227     else
22228       if test -n "$ac_tool_prefix"; then
22229   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22230 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22232 printf %s "checking for $ac_word... " >&6; }
22233 if test ${ac_cv_path_PKGCONFIG+y}
22234 then :
22235   printf %s "(cached) " >&6
22236 else $as_nop
22237   case $PKGCONFIG in
22238   [\\/]* | ?:[\\/]*)
22239   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22240   ;;
22241   *)
22242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22243 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22244 for as_dir in $as_dummy
22245 do
22246   IFS=$as_save_IFS
22247   case $as_dir in #(((
22248     '') as_dir=./ ;;
22249     */) ;;
22250     *) as_dir=$as_dir/ ;;
22251   esac
22252     for ac_exec_ext in '' $ac_executable_extensions; do
22253   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22254     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22255     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22256     break 2
22257   fi
22258 done
22259   done
22260 IFS=$as_save_IFS
22261
22262   ;;
22263 esac
22264 fi
22265 PKGCONFIG=$ac_cv_path_PKGCONFIG
22266 if test -n "$PKGCONFIG"; then
22267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22268 printf "%s\n" "$PKGCONFIG" >&6; }
22269 else
22270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 printf "%s\n" "no" >&6; }
22272 fi
22273
22274
22275 fi
22276 if test -z "$ac_cv_path_PKGCONFIG"; then
22277   ac_pt_PKGCONFIG=$PKGCONFIG
22278   # Extract the first word of "pkg-config", so it can be a program name with args.
22279 set dummy pkg-config; ac_word=$2
22280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22281 printf %s "checking for $ac_word... " >&6; }
22282 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22283 then :
22284   printf %s "(cached) " >&6
22285 else $as_nop
22286   case $ac_pt_PKGCONFIG in
22287   [\\/]* | ?:[\\/]*)
22288   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22289   ;;
22290   *)
22291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22293 for as_dir in $as_dummy
22294 do
22295   IFS=$as_save_IFS
22296   case $as_dir in #(((
22297     '') as_dir=./ ;;
22298     */) ;;
22299     *) as_dir=$as_dir/ ;;
22300   esac
22301     for ac_exec_ext in '' $ac_executable_extensions; do
22302   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22303     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22304     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22305     break 2
22306   fi
22307 done
22308   done
22309 IFS=$as_save_IFS
22310
22311   ;;
22312 esac
22313 fi
22314 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22315 if test -n "$ac_pt_PKGCONFIG"; then
22316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22317 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22318 else
22319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320 printf "%s\n" "no" >&6; }
22321 fi
22322
22323   if test "x$ac_pt_PKGCONFIG" = x; then
22324     PKGCONFIG="no"
22325   else
22326     case $cross_compiling:$ac_tool_warned in
22327 yes:)
22328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22330 ac_tool_warned=yes ;;
22331 esac
22332     PKGCONFIG=$ac_pt_PKGCONFIG
22333   fi
22334 else
22335   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22336 fi
22337
22338     fi
22339
22340     if test "x$PKGCONFIG" != "xno"; then
22341       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
22342 printf %s "checking for hyper options with pkg-config... " >&6; }
22343             itexists=`
22344     if test -n "$want_hyper_path"; then
22345       PKG_CONFIG_LIBDIR="$want_hyper_path"
22346       export PKG_CONFIG_LIBDIR
22347     fi
22348          $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
22349
22350       if test -z "$itexists"; then
22351                         PKGCONFIG="no"
22352         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 printf "%s\n" "no" >&6; }
22354       else
22355         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22356 printf "%s\n" "found" >&6; }
22357       fi
22358     fi
22359
22360
22361   if test "$PKGCONFIG" != "no" ; then
22362     LIB_HYPER=`
22363     if test -n "$want_hyper_path"; then
22364       PKG_CONFIG_LIBDIR="$want_hyper_path"
22365       export PKG_CONFIG_LIBDIR
22366     fi
22367
22368       $PKGCONFIG --libs-only-l hyper`
22369     CPP_HYPER=`
22370     if test -n "$want_hyper_path"; then
22371       PKG_CONFIG_LIBDIR="$want_hyper_path"
22372       export PKG_CONFIG_LIBDIR
22373     fi
22374        $PKGCONFIG --cflags-only-I hyper`
22375     LD_HYPER=`
22376     if test -n "$want_hyper_path"; then
22377       PKG_CONFIG_LIBDIR="$want_hyper_path"
22378       export PKG_CONFIG_LIBDIR
22379     fi
22380
22381       $PKGCONFIG --libs-only-L hyper`
22382   else
22383         LIB_HYPER="-lhyper -ldl -lpthread -lm"
22384     if test X"$want_hyper" != Xdefault; then
22385       CPP_HYPER=-I"$want_hyper_path/capi/include"
22386       LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22387     fi
22388   fi
22389   if test -n "$LIB_HYPER"; then
22390     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22391 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22393 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22394     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22395 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22396
22397     LDFLAGS="$LDFLAGS $LD_HYPER"
22398     CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22399     LIBS="$LIB_HYPER $LIBS"
22400
22401     if test "x$cross_compiling" != "xyes"; then
22402             DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22403     fi
22404
22405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22406 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22407 if test ${ac_cv_lib_hyper_hyper_io_new+y}
22408 then :
22409   printf %s "(cached) " >&6
22410 else $as_nop
22411   ac_check_lib_save_LIBS=$LIBS
22412 LIBS="-lhyper  $LIBS"
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h.  */
22415
22416
22417 #ifdef __cplusplus
22418 extern "C"
22419 #endif
22420 char hyper_io_new ();
22421 int main (void)
22422 {
22423 return hyper_io_new ();
22424  ;
22425  return 0;
22426 }
22427 _ACEOF
22428 if ac_fn_c_try_link "$LINENO"
22429 then :
22430   ac_cv_lib_hyper_hyper_io_new=yes
22431 else $as_nop
22432   ac_cv_lib_hyper_hyper_io_new=no
22433 fi
22434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22435     conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22437 fi
22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22439 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22440 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22441 then :
22442
22443               for ac_header in hyper.h
22444 do :
22445   ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22446 if test "x$ac_cv_header_hyper_h" = xyes
22447 then :
22448   printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22449  experimental="$experimental Hyper"
22450           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22451 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22452           curl_h1_msg="enabled (Hyper)"
22453           HYPER_ENABLED=1
22454
22455 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22456
22457           USE_HYPER=1
22458
22459           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22460           export CURL_LIBRARY_PATH
22461           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22462 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22463 fi
22464
22465 done
22466
22467 else $as_nop
22468   for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22469         if test -f "$d/libhyper.a"; then
22470           as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22471         fi
22472       done
22473       as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22474
22475 fi
22476
22477   fi
22478 fi
22479
22480 if test X"$want_hyper" != Xno; then
22481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22482 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22483
22484 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22485
22486   CURL_DISABLE_RTSP=1
22487
22488 else
22489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22490 printf %s "checking whether to support rtsp... " >&6; }
22491   # Check whether --enable-rtsp was given.
22492 if test ${enable_rtsp+y}
22493 then :
22494   enableval=$enable_rtsp;  case "$enableval" in
22495     no)
22496        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22497 printf "%s\n" "no" >&6; }
22498
22499 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22500
22501        CURL_DISABLE_RTSP=1
22502
22503        ;;
22504     *)
22505        if test x$CURL_DISABLE_HTTP = x1 ; then
22506          as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22507        else
22508          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22509 printf "%s\n" "yes" >&6; }
22510          curl_rtsp_msg="enabled"
22511        fi
22512        ;;
22513     esac
22514 else $as_nop
22515   if test "x$CURL_DISABLE_HTTP" != "x1"; then
22516           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22517 printf "%s\n" "yes" >&6; }
22518           curl_rtsp_msg="enabled"
22519        else
22520           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22521 printf "%s\n" "no" >&6; }
22522        fi
22523
22524 fi
22525
22526 fi
22527
22528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22529 printf %s "checking whether to support proxies... " >&6; }
22530 # Check whether --enable-proxy was given.
22531 if test ${enable_proxy+y}
22532 then :
22533   enableval=$enable_proxy;  case "$enableval" in
22534   no)
22535        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22536 printf "%s\n" "no" >&6; }
22537
22538 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22539
22540        CURL_DISABLE_PROXY=1
22541
22542        https_proxy="no"
22543        ;;
22544   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22545 printf "%s\n" "yes" >&6; }
22546        ;;
22547   esac
22548 else $as_nop
22549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22550 printf "%s\n" "yes" >&6; }
22551
22552 fi
22553
22554
22555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22556 printf %s "checking whether to support dict... " >&6; }
22557 # Check whether --enable-dict was given.
22558 if test ${enable_dict+y}
22559 then :
22560   enableval=$enable_dict;  case "$enableval" in
22561   no)
22562        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 printf "%s\n" "no" >&6; }
22564
22565 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22566
22567        CURL_DISABLE_DICT=1
22568
22569        ;;
22570   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571 printf "%s\n" "yes" >&6; }
22572        ;;
22573   esac
22574 else $as_nop
22575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22576 printf "%s\n" "yes" >&6; }
22577
22578 fi
22579
22580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22581 printf %s "checking whether to support telnet... " >&6; }
22582 # Check whether --enable-telnet was given.
22583 if test ${enable_telnet+y}
22584 then :
22585   enableval=$enable_telnet;  case "$enableval" in
22586   no)
22587        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22588 printf "%s\n" "no" >&6; }
22589
22590 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22591
22592        CURL_DISABLE_TELNET=1
22593
22594        ;;
22595   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22596 printf "%s\n" "yes" >&6; }
22597        ;;
22598   esac
22599 else $as_nop
22600   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22601 printf "%s\n" "yes" >&6; }
22602
22603 fi
22604
22605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22606 printf %s "checking whether to support tftp... " >&6; }
22607 # Check whether --enable-tftp was given.
22608 if test ${enable_tftp+y}
22609 then :
22610   enableval=$enable_tftp;  case "$enableval" in
22611   no)
22612        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613 printf "%s\n" "no" >&6; }
22614
22615 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22616
22617        CURL_DISABLE_TFTP=1
22618
22619        ;;
22620   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22621 printf "%s\n" "yes" >&6; }
22622        ;;
22623   esac
22624 else $as_nop
22625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626 printf "%s\n" "yes" >&6; }
22627
22628 fi
22629
22630
22631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22632 printf %s "checking whether to support pop3... " >&6; }
22633 # Check whether --enable-pop3 was given.
22634 if test ${enable_pop3+y}
22635 then :
22636   enableval=$enable_pop3;  case "$enableval" in
22637   no)
22638        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 printf "%s\n" "no" >&6; }
22640
22641 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22642
22643        CURL_DISABLE_POP3=1
22644
22645        ;;
22646   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22647 printf "%s\n" "yes" >&6; }
22648        ;;
22649   esac
22650 else $as_nop
22651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22652 printf "%s\n" "yes" >&6; }
22653
22654 fi
22655
22656
22657
22658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22659 printf %s "checking whether to support imap... " >&6; }
22660 # Check whether --enable-imap was given.
22661 if test ${enable_imap+y}
22662 then :
22663   enableval=$enable_imap;  case "$enableval" in
22664   no)
22665        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22666 printf "%s\n" "no" >&6; }
22667
22668 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22669
22670        CURL_DISABLE_IMAP=1
22671
22672        ;;
22673   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22674 printf "%s\n" "yes" >&6; }
22675        ;;
22676   esac
22677 else $as_nop
22678   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22679 printf "%s\n" "yes" >&6; }
22680
22681 fi
22682
22683
22684
22685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22686 printf %s "checking whether to support smb... " >&6; }
22687 # Check whether --enable-smb was given.
22688 if test ${enable_smb+y}
22689 then :
22690   enableval=$enable_smb;  case "$enableval" in
22691   no)
22692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22693 printf "%s\n" "no" >&6; }
22694
22695 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22696
22697        CURL_DISABLE_SMB=1
22698
22699        ;;
22700   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22701 printf "%s\n" "yes" >&6; }
22702        ;;
22703   esac
22704 else $as_nop
22705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22706 printf "%s\n" "yes" >&6; }
22707
22708 fi
22709
22710
22711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22712 printf %s "checking whether to support smtp... " >&6; }
22713 # Check whether --enable-smtp was given.
22714 if test ${enable_smtp+y}
22715 then :
22716   enableval=$enable_smtp;  case "$enableval" in
22717   no)
22718        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22719 printf "%s\n" "no" >&6; }
22720
22721 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22722
22723        CURL_DISABLE_SMTP=1
22724
22725        ;;
22726   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22727 printf "%s\n" "yes" >&6; }
22728        ;;
22729   esac
22730 else $as_nop
22731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22732 printf "%s\n" "yes" >&6; }
22733
22734 fi
22735
22736
22737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22738 printf %s "checking whether to support gopher... " >&6; }
22739 # Check whether --enable-gopher was given.
22740 if test ${enable_gopher+y}
22741 then :
22742   enableval=$enable_gopher;  case "$enableval" in
22743   no)
22744        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22745 printf "%s\n" "no" >&6; }
22746
22747 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22748
22749        CURL_DISABLE_GOPHER=1
22750
22751        ;;
22752   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753 printf "%s\n" "yes" >&6; }
22754        ;;
22755   esac
22756 else $as_nop
22757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22758 printf "%s\n" "yes" >&6; }
22759
22760 fi
22761
22762
22763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22764 printf %s "checking whether to support mqtt... " >&6; }
22765 # Check whether --enable-mqtt was given.
22766 if test ${enable_mqtt+y}
22767 then :
22768   enableval=$enable_mqtt;  case "$enableval" in
22769   no)
22770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 printf "%s\n" "no" >&6; }
22772
22773 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22774
22775        CURL_DISABLE_MQTT=1
22776
22777        ;;
22778   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22779 printf "%s\n" "yes" >&6; }
22780        ;;
22781   esac
22782 else $as_nop
22783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22784 printf "%s\n" "no" >&6; }
22785
22786 fi
22787
22788
22789
22790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22791 printf %s "checking whether to provide built-in manual... " >&6; }
22792 # Check whether --enable-manual was given.
22793 if test ${enable_manual+y}
22794 then :
22795   enableval=$enable_manual;  case "$enableval" in
22796   no)
22797        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22798 printf "%s\n" "no" >&6; }
22799        ;;
22800   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22801 printf "%s\n" "yes" >&6; }
22802        USE_MANUAL="1"
22803        ;;
22804   esac
22805 else $as_nop
22806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22807 printf "%s\n" "yes" >&6; }
22808        USE_MANUAL="1"
22809
22810 fi
22811
22812
22813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22814 printf %s "checking whether to enable generation of C code... " >&6; }
22815 # Check whether --enable-libcurl_option was given.
22816 if test ${enable_libcurl_option+y}
22817 then :
22818   enableval=$enable_libcurl_option;  case "$enableval" in
22819   no)
22820        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22821 printf "%s\n" "no" >&6; }
22822
22823 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22824
22825        curl_libcurl_msg="no"
22826        ;;
22827   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 printf "%s\n" "yes" >&6; }
22829        ;;
22830   esac
22831 else $as_nop
22832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22833 printf "%s\n" "yes" >&6; }
22834
22835 fi
22836
22837
22838
22839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22840 printf %s "checking whether to use libgcc... " >&6; }
22841 # Check whether --enable-libgcc was given.
22842 if test ${enable_libgcc+y}
22843 then :
22844   enableval=$enable_libgcc;  case "$enableval" in
22845   yes)
22846        LIBS="-lgcc $LIBS"
22847        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22848 printf "%s\n" "yes" >&6; }
22849        ;;
22850   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22851 printf "%s\n" "no" >&6; }
22852        ;;
22853   esac
22854 else $as_nop
22855   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22856 printf "%s\n" "no" >&6; }
22857
22858 fi
22859
22860
22861
22862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22863 printf %s "checking if X/Open network library is required... " >&6; }
22864   tst_lib_xnet_required="no"
22865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h.  */
22867
22868
22869 int main (void)
22870 {
22871 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22872   return 0;
22873 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22874   return 0;
22875 #else
22876   force compilation error
22877 #endif
22878 }
22879
22880
22881 _ACEOF
22882 if ac_fn_c_try_compile "$LINENO"
22883 then :
22884
22885     tst_lib_xnet_required="yes"
22886     LIBS="-lxnet $LIBS"
22887
22888 fi
22889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22891 printf "%s\n" "$tst_lib_xnet_required" >&6; }
22892
22893
22894 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22895 if test "x$ac_cv_func_gethostbyname" = xyes
22896 then :
22897   HAVE_GETHOSTBYNAME="1"
22898
22899 else $as_nop
22900    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22901 printf %s "checking for gethostbyname in -lnsl... " >&6; }
22902 if test ${ac_cv_lib_nsl_gethostbyname+y}
22903 then :
22904   printf %s "(cached) " >&6
22905 else $as_nop
22906   ac_check_lib_save_LIBS=$LIBS
22907 LIBS="-lnsl  $LIBS"
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h.  */
22910
22911
22912 #ifdef __cplusplus
22913 extern "C"
22914 #endif
22915 char gethostbyname ();
22916 int main (void)
22917 {
22918 return gethostbyname ();
22919  ;
22920  return 0;
22921 }
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"
22924 then :
22925   ac_cv_lib_nsl_gethostbyname=yes
22926 else $as_nop
22927   ac_cv_lib_nsl_gethostbyname=no
22928 fi
22929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22930     conftest$ac_exeext conftest.$ac_ext
22931 LIBS=$ac_check_lib_save_LIBS
22932 fi
22933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22934 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22935 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22936 then :
22937   HAVE_GETHOSTBYNAME="1"
22938                              LIBS="-lnsl $LIBS"
22939
22940 fi
22941
22942
22943 fi
22944
22945
22946 if test "$HAVE_GETHOSTBYNAME" != "1"
22947 then
22948     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22949 printf %s "checking for gethostbyname in -lsocket... " >&6; }
22950 if test ${ac_cv_lib_socket_gethostbyname+y}
22951 then :
22952   printf %s "(cached) " >&6
22953 else $as_nop
22954   ac_check_lib_save_LIBS=$LIBS
22955 LIBS="-lsocket  $LIBS"
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h.  */
22958
22959
22960 #ifdef __cplusplus
22961 extern "C"
22962 #endif
22963 char gethostbyname ();
22964 int main (void)
22965 {
22966 return gethostbyname ();
22967  ;
22968  return 0;
22969 }
22970 _ACEOF
22971 if ac_fn_c_try_link "$LINENO"
22972 then :
22973   ac_cv_lib_socket_gethostbyname=yes
22974 else $as_nop
22975   ac_cv_lib_socket_gethostbyname=no
22976 fi
22977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22978     conftest$ac_exeext conftest.$ac_ext
22979 LIBS=$ac_check_lib_save_LIBS
22980 fi
22981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22982 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22983 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22984 then :
22985   HAVE_GETHOSTBYNAME="1"
22986                LIBS="-lsocket $LIBS"
22987
22988 fi
22989
22990 fi
22991
22992 if test "$HAVE_GETHOSTBYNAME" != "1"
22993 then
22994     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22995 printf %s "checking for gethostbyname in -lwatt... " >&6; }
22996 if test ${ac_cv_lib_watt_gethostbyname+y}
22997 then :
22998   printf %s "(cached) " >&6
22999 else $as_nop
23000   ac_check_lib_save_LIBS=$LIBS
23001 LIBS="-lwatt  $LIBS"
23002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23003 /* end confdefs.h.  */
23004
23005
23006 #ifdef __cplusplus
23007 extern "C"
23008 #endif
23009 char gethostbyname ();
23010 int main (void)
23011 {
23012 return gethostbyname ();
23013  ;
23014  return 0;
23015 }
23016 _ACEOF
23017 if ac_fn_c_try_link "$LINENO"
23018 then :
23019   ac_cv_lib_watt_gethostbyname=yes
23020 else $as_nop
23021   ac_cv_lib_watt_gethostbyname=no
23022 fi
23023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23024     conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23026 fi
23027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
23028 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
23029 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
23030 then :
23031   HAVE_GETHOSTBYNAME="1"
23032                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
23033                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
23034                LIBS="-lwatt $LIBS"
23035
23036 fi
23037
23038 fi
23039
23040 if test "$HAVE_GETHOSTBYNAME" != "1"
23041 then
23042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
23043 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
23044   my_ac_save_LIBS=$LIBS
23045   LIBS="-lnsl -lsocket $LIBS"
23046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h.  */
23048
23049
23050
23051 int main (void)
23052 {
23053
23054       gethostbyname();
23055
23056  ;
23057  return 0;
23058 }
23059
23060 _ACEOF
23061 if ac_fn_c_try_link "$LINENO"
23062 then :
23063
23064     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23065 printf "%s\n" "yes" >&6; }
23066     HAVE_GETHOSTBYNAME="1"
23067
23068 else $as_nop
23069
23070     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 printf "%s\n" "no" >&6; }
23072     LIBS=$my_ac_save_LIBS
23073
23074 fi
23075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23076     conftest$ac_exeext conftest.$ac_ext
23077 fi
23078
23079 if test "$HAVE_GETHOSTBYNAME" != "1"
23080 then
23081     if test "$curl_cv_header_windows_h" = "yes"; then
23082     if test "$curl_cv_header_winsock2_h" = "yes"; then
23083       winsock_LIB="-lws2_32"
23084     fi
23085     if test ! -z "$winsock_LIB"; then
23086       my_ac_save_LIBS=$LIBS
23087       LIBS="$winsock_LIB $LIBS"
23088       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
23089 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
23090       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h.  */
23092
23093
23094 #ifdef HAVE_WINDOWS_H
23095 #ifndef WIN32_LEAN_AND_MEAN
23096 #define WIN32_LEAN_AND_MEAN
23097 #endif
23098 #ifdef HAVE_WINSOCK2_H
23099 #include <winsock2.h>
23100 #endif
23101 #include <windows.h>
23102 #endif
23103
23104 int main (void)
23105 {
23106
23107           gethostbyname("localhost");
23108
23109  ;
23110  return 0;
23111 }
23112
23113 _ACEOF
23114 if ac_fn_c_try_link "$LINENO"
23115 then :
23116
23117         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23118 printf "%s\n" "yes" >&6; }
23119         HAVE_GETHOSTBYNAME="1"
23120
23121 else $as_nop
23122
23123         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124 printf "%s\n" "no" >&6; }
23125         winsock_LIB=""
23126         LIBS=$my_ac_save_LIBS
23127
23128 fi
23129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23130     conftest$ac_exeext conftest.$ac_ext
23131     fi
23132   fi
23133 fi
23134
23135 if test "$HAVE_GETHOSTBYNAME" != "1"
23136 then
23137     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
23138 printf %s "checking for gethostbyname for Minix 3... " >&6; }
23139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h.  */
23141
23142
23143 /* Older Minix versions may need <net/gen/netdb.h> here instead */
23144 #include <netdb.h>
23145
23146 int main (void)
23147 {
23148
23149       gethostbyname("localhost");
23150
23151  ;
23152  return 0;
23153 }
23154
23155 _ACEOF
23156 if ac_fn_c_try_link "$LINENO"
23157 then :
23158
23159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160 printf "%s\n" "yes" >&6; }
23161     HAVE_GETHOSTBYNAME="1"
23162
23163 else $as_nop
23164
23165     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23166 printf "%s\n" "no" >&6; }
23167
23168 fi
23169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23170     conftest$ac_exeext conftest.$ac_ext
23171 fi
23172
23173 if test "$HAVE_GETHOSTBYNAME" != "1"
23174 then
23175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
23176 printf %s "checking for gethostbyname for eCos... " >&6; }
23177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h.  */
23179
23180
23181 #include <stdio.h>
23182 #include <netdb.h>
23183
23184 int main (void)
23185 {
23186
23187       gethostbyname("localhost");
23188
23189  ;
23190  return 0;
23191 }
23192
23193 _ACEOF
23194 if ac_fn_c_try_link "$LINENO"
23195 then :
23196
23197     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23198 printf "%s\n" "yes" >&6; }
23199     HAVE_GETHOSTBYNAME="1"
23200
23201 else $as_nop
23202
23203     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 printf "%s\n" "no" >&6; }
23205
23206 fi
23207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23208     conftest$ac_exeext conftest.$ac_ext
23209 fi
23210
23211 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
23212 then
23213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
23214 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
23215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h.  */
23217
23218
23219   #define __USE_INLINE__
23220   #include <proto/bsdsocket.h>
23221   #ifdef __amigaos4__
23222   struct SocketIFace *ISocket = NULL;
23223   #else
23224   struct Library *SocketBase = NULL;
23225   #endif
23226
23227 int main (void)
23228 {
23229
23230       gethostbyname("localhost");
23231
23232  ;
23233  return 0;
23234 }
23235
23236 _ACEOF
23237 if ac_fn_c_try_link "$LINENO"
23238 then :
23239
23240     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23241 printf "%s\n" "yes" >&6; }
23242     HAVE_GETHOSTBYNAME="1"
23243     HAVE_PROTO_BSDSOCKET_H="1"
23244
23245 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23246
23247     HAVE_PROTO_BSDSOCKET_H=1
23248
23249
23250 else $as_nop
23251
23252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23253 printf "%s\n" "no" >&6; }
23254
23255 fi
23256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23257     conftest$ac_exeext conftest.$ac_ext
23258 fi
23259
23260 if test "$HAVE_GETHOSTBYNAME" != "1"
23261 then
23262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
23263 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
23264 if test ${ac_cv_lib_network_gethostbyname+y}
23265 then :
23266   printf %s "(cached) " >&6
23267 else $as_nop
23268   ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lnetwork  $LIBS"
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h.  */
23272
23273
23274 #ifdef __cplusplus
23275 extern "C"
23276 #endif
23277 char gethostbyname ();
23278 int main (void)
23279 {
23280 return gethostbyname ();
23281  ;
23282  return 0;
23283 }
23284 _ACEOF
23285 if ac_fn_c_try_link "$LINENO"
23286 then :
23287   ac_cv_lib_network_gethostbyname=yes
23288 else $as_nop
23289   ac_cv_lib_network_gethostbyname=no
23290 fi
23291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23292     conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23294 fi
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
23296 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
23297 if test "x$ac_cv_lib_network_gethostbyname" = xyes
23298 then :
23299   HAVE_GETHOSTBYNAME="1"
23300                LIBS="-lnetwork $LIBS"
23301
23302 fi
23303
23304 fi
23305
23306 if test "$HAVE_GETHOSTBYNAME" != "1"; then
23307   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23308 fi
23309
23310
23311 curl_includes_winsock2="\
23312 /* includes start */
23313 #ifdef HAVE_WINDOWS_H
23314 #  ifndef WIN32_LEAN_AND_MEAN
23315 #    define WIN32_LEAN_AND_MEAN
23316 #  endif
23317 #  ifdef HAVE_WINSOCK2_H
23318 #    include <winsock2.h>
23319 #  endif
23320 #  include <windows.h>
23321 #endif
23322 /* includes end */"
23323
23324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23325 printf %s "checking for windows.h... " >&6; }
23326 if test ${curl_cv_header_windows_h+y}
23327 then :
23328   printf %s "(cached) " >&6
23329 else $as_nop
23330
23331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h.  */
23333
23334
23335 #undef inline
23336 #ifndef WIN32_LEAN_AND_MEAN
23337 #define WIN32_LEAN_AND_MEAN
23338 #endif
23339 #include <windows.h>
23340
23341 int main (void)
23342 {
23343
23344 #if defined(__CYGWIN__) || defined(__CEGCC__)
23345         HAVE_WINDOWS_H shall not be defined.
23346 #else
23347         int dummy=2*WINVER;
23348 #endif
23349
23350  ;
23351  return 0;
23352 }
23353
23354 _ACEOF
23355 if ac_fn_c_try_compile "$LINENO"
23356 then :
23357
23358       curl_cv_header_windows_h="yes"
23359
23360 else $as_nop
23361
23362       curl_cv_header_windows_h="no"
23363
23364 fi
23365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23366
23367 fi
23368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
23369 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
23370   case "$curl_cv_header_windows_h" in
23371     yes)
23372
23373 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23374
23375       ;;
23376   esac
23377
23378
23379     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23380 printf %s "checking for winsock2.h... " >&6; }
23381 if test ${curl_cv_header_winsock2_h+y}
23382 then :
23383   printf %s "(cached) " >&6
23384 else $as_nop
23385
23386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23387 /* end confdefs.h.  */
23388
23389
23390 #undef inline
23391 #ifndef WIN32_LEAN_AND_MEAN
23392 #define WIN32_LEAN_AND_MEAN
23393 #endif
23394 #include <windows.h>
23395 #include <winsock2.h>
23396
23397 int main (void)
23398 {
23399
23400 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23401         HAVE_WINSOCK2_H shall not be defined.
23402 #else
23403         int dummy=2*IPPROTO_ESP;
23404 #endif
23405
23406  ;
23407  return 0;
23408 }
23409
23410 _ACEOF
23411 if ac_fn_c_try_compile "$LINENO"
23412 then :
23413
23414       curl_cv_header_winsock2_h="yes"
23415
23416 else $as_nop
23417
23418       curl_cv_header_winsock2_h="no"
23419
23420 fi
23421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23422
23423 fi
23424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
23425 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
23426   case "$curl_cv_header_winsock2_h" in
23427     yes)
23428
23429 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23430
23431       ;;
23432   esac
23433
23434
23435
23436 curl_includes_bsdsocket="\
23437 /* includes start */
23438 #if defined(HAVE_PROTO_BSDSOCKET_H)
23439 #  define __NO_NET_API
23440 #  define __USE_INLINE__
23441 #  include <proto/bsdsocket.h>
23442 #  ifdef HAVE_SYS_IOCTL_H
23443 #    include <sys/ioctl.h>
23444 #  endif
23445 #  ifdef __amigaos4__
23446 struct SocketIFace *ISocket = NULL;
23447 #  else
23448 struct Library *SocketBase = NULL;
23449 #  endif
23450 #  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23451 #endif
23452 /* includes end */"
23453   ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23454 "
23455 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23456 then :
23457   printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23458
23459 fi
23460
23461
23462
23463       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23464 printf %s "checking for connect in libraries... " >&6; }
23465   tst_connect_save_LIBS="$LIBS"
23466   tst_connect_need_LIBS="unknown"
23467   for tst_lib in '' '-lsocket' ; do
23468     if test "$tst_connect_need_LIBS" = "unknown"; then
23469       LIBS="$tst_lib $tst_connect_save_LIBS"
23470       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h.  */
23472
23473
23474           $curl_includes_winsock2
23475           $curl_includes_bsdsocket
23476           #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
23477             int connect(int, void*, int);
23478           #endif
23479
23480 int main (void)
23481 {
23482
23483           if(0 != connect(0, 0, 0))
23484             return 1;
23485
23486  ;
23487  return 0;
23488 }
23489
23490 _ACEOF
23491 if ac_fn_c_try_link "$LINENO"
23492 then :
23493
23494         tst_connect_need_LIBS="$tst_lib"
23495
23496 fi
23497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23498     conftest$ac_exeext conftest.$ac_ext
23499     fi
23500   done
23501   LIBS="$tst_connect_save_LIBS"
23502   #
23503   case X-"$tst_connect_need_LIBS" in
23504     X-unknown)
23505       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23506 printf "%s\n" "cannot find connect" >&6; }
23507       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23508       ;;
23509     X-)
23510       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23511 printf "%s\n" "yes" >&6; }
23512       ;;
23513     *)
23514       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23515 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23516       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23517       ;;
23518   esac
23519
23520
23521 CURL_NETWORK_LIBS=$LIBS
23522
23523
23524   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23525 if test "x$ac_cv_header_sys_types_h" = xyes
23526 then :
23527   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23528
23529 fi
23530 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23531 if test "x$ac_cv_header_sys_time_h" = xyes
23532 then :
23533   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23534
23535 fi
23536
23537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23538 printf %s "checking for monotonic clock_gettime... " >&6; }
23539   #
23540   if test "x$dontwant_rt" = "xno" ; then
23541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h.  */
23543
23544
23545 #ifdef HAVE_SYS_TYPES_H
23546 #include <sys/types.h>
23547 #endif
23548 #ifdef HAVE_SYS_TIME_H
23549 #include <sys/time.h>
23550 #endif
23551 #include <time.h>
23552
23553 int main (void)
23554 {
23555
23556         struct timespec ts;
23557         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23558
23559  ;
23560  return 0;
23561 }
23562
23563 _ACEOF
23564 if ac_fn_c_try_compile "$LINENO"
23565 then :
23566
23567       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23568 printf "%s\n" "yes" >&6; }
23569       curl_func_clock_gettime="yes"
23570
23571 else $as_nop
23572
23573       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23574 printf "%s\n" "no" >&6; }
23575       curl_func_clock_gettime="no"
23576
23577 fi
23578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23579   fi
23580
23581
23582     #
23583   if test "$curl_func_clock_gettime" = "yes"; then
23584     #
23585     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23586 printf %s "checking for clock_gettime in libraries... " >&6; }
23587     #
23588     curl_cv_save_LIBS="$LIBS"
23589     curl_cv_gclk_LIBS="unknown"
23590     #
23591     for x_xlibs in '' '-lrt' '-lposix4' ; do
23592       if test "$curl_cv_gclk_LIBS" = "unknown"; then
23593         if test -z "$x_xlibs"; then
23594           LIBS="$curl_cv_save_LIBS"
23595         else
23596           LIBS="$x_xlibs $curl_cv_save_LIBS"
23597         fi
23598         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23599 /* end confdefs.h.  */
23600
23601
23602 #ifdef HAVE_SYS_TYPES_H
23603 #include <sys/types.h>
23604 #endif
23605 #ifdef HAVE_SYS_TIME_H
23606 #include <sys/time.h>
23607 #endif
23608 #include <time.h>
23609
23610 int main (void)
23611 {
23612
23613             struct timespec ts;
23614             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23615
23616  ;
23617  return 0;
23618 }
23619
23620 _ACEOF
23621 if ac_fn_c_try_link "$LINENO"
23622 then :
23623
23624           curl_cv_gclk_LIBS="$x_xlibs"
23625
23626 fi
23627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23628     conftest$ac_exeext conftest.$ac_ext
23629       fi
23630     done
23631     #
23632     LIBS="$curl_cv_save_LIBS"
23633     #
23634     case X-"$curl_cv_gclk_LIBS" in
23635       X-unknown)
23636         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23637 printf "%s\n" "cannot find clock_gettime" >&6; }
23638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23639 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23640         curl_func_clock_gettime="no"
23641         ;;
23642       X-)
23643         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23644 printf "%s\n" "no additional lib required" >&6; }
23645         curl_func_clock_gettime="yes"
23646         ;;
23647       *)
23648         if test -z "$curl_cv_save_LIBS"; then
23649           LIBS="$curl_cv_gclk_LIBS"
23650         else
23651           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23652         fi
23653         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23654 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23655         curl_func_clock_gettime="yes"
23656         ;;
23657     esac
23658     #
23659         if test "x$cross_compiling" != "xyes" &&
23660       test "$curl_func_clock_gettime" = "yes"; then
23661       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23662 printf %s "checking if monotonic clock_gettime works... " >&6; }
23663
23664    case $host_os in
23665      darwin*)
23666       if test "$cross_compiling" = yes
23667 then :
23668   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23670 as_fn_error $? "cannot run test program while cross compiling
23671 See \`config.log' for more details" "$LINENO" 5; }
23672 else $as_nop
23673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h.  */
23675
23676
23677 #include <stdlib.h>
23678 #ifdef HAVE_SYS_TYPES_H
23679 #include <sys/types.h>
23680 #endif
23681 #ifdef HAVE_SYS_TIME_H
23682 #include <sys/time.h>
23683 #endif
23684 #include <time.h>
23685
23686 int main (void)
23687 {
23688
23689           struct timespec ts;
23690           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23691             exit(0);
23692           else
23693             exit(1);
23694
23695  ;
23696  return 0;
23697 }
23698
23699 _ACEOF
23700 if ac_fn_c_try_run "$LINENO"
23701 then :
23702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23703 printf "%s\n" "yes" >&6; }
23704
23705 else $as_nop
23706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23707 printf "%s\n" "no" >&6; }
23708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23709 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23710         curl_func_clock_gettime="no"
23711         LIBS="$curl_cv_save_LIBS"
23712
23713 fi
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23715   conftest.$ac_objext conftest.beam conftest.$ac_ext
23716 fi
23717
23718      ;;
23719      *)
23720       oldcc=$CC
23721       old=$LD_LIBRARY_PATH
23722       CC="sh ./run-compiler"
23723       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23724       export LD_LIBRARY_PATH
23725       if test "$cross_compiling" = yes
23726 then :
23727   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23729 as_fn_error $? "cannot run test program while cross compiling
23730 See \`config.log' for more details" "$LINENO" 5; }
23731 else $as_nop
23732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h.  */
23734
23735
23736 #include <stdlib.h>
23737 #ifdef HAVE_SYS_TYPES_H
23738 #include <sys/types.h>
23739 #endif
23740 #ifdef HAVE_SYS_TIME_H
23741 #include <sys/time.h>
23742 #endif
23743 #include <time.h>
23744
23745 int main (void)
23746 {
23747
23748           struct timespec ts;
23749           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23750             exit(0);
23751           else
23752             exit(1);
23753
23754  ;
23755  return 0;
23756 }
23757
23758 _ACEOF
23759 if ac_fn_c_try_run "$LINENO"
23760 then :
23761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23762 printf "%s\n" "yes" >&6; }
23763
23764 else $as_nop
23765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766 printf "%s\n" "no" >&6; }
23767         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23768 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23769         curl_func_clock_gettime="no"
23770         LIBS="$curl_cv_save_LIBS"
23771
23772 fi
23773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23774   conftest.$ac_objext conftest.beam conftest.$ac_ext
23775 fi
23776
23777       LD_LIBRARY_PATH=$old # restore
23778       CC=$oldcc
23779      ;;
23780    esac
23781
23782     fi
23783     #
23784     case "$curl_func_clock_gettime" in
23785       yes)
23786
23787 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23788
23789         ;;
23790     esac
23791     #
23792   fi
23793   #
23794
23795
23796
23797   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23798 if test "x$ac_cv_header_sys_types_h" = xyes
23799 then :
23800   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23801
23802 fi
23803 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23804 if test "x$ac_cv_header_sys_time_h" = xyes
23805 then :
23806   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23807
23808 fi
23809
23810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5
23811 printf %s "checking for raw monotonic clock_gettime... " >&6; }
23812   #
23813   if test "x$dontwant_rt" = "xno" ; then
23814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h.  */
23816
23817
23818 #ifdef HAVE_SYS_TYPES_H
23819 #include <sys/types.h>
23820 #endif
23821 #ifdef HAVE_SYS_TIME_H
23822 #include <sys/time.h>
23823 #endif
23824 #include <time.h>
23825
23826 int main (void)
23827 {
23828
23829         struct timespec ts;
23830         (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
23831
23832  ;
23833  return 0;
23834 }
23835
23836 _ACEOF
23837 if ac_fn_c_try_compile "$LINENO"
23838 then :
23839
23840       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23841 printf "%s\n" "yes" >&6; }
23842
23843 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h
23844
23845
23846 else $as_nop
23847
23848       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23849 printf "%s\n" "no" >&6; }
23850
23851 fi
23852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23853   fi
23854
23855
23856 CURL_NETWORK_AND_TIME_LIBS=$LIBS
23857
23858
23859
23860 clean_CPPFLAGS=$CPPFLAGS
23861 clean_LDFLAGS=$LDFLAGS
23862 clean_LIBS=$LIBS
23863 ZLIB_LIBS=""
23864
23865 # Check whether --with-zlib was given.
23866 if test ${with_zlib+y}
23867 then :
23868   withval=$with_zlib; OPT_ZLIB="$withval"
23869 fi
23870
23871
23872 if test "$OPT_ZLIB" = "no" ; then
23873     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23874 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23875 else
23876   if test "$OPT_ZLIB" = "yes" ; then
23877     OPT_ZLIB=""
23878   fi
23879
23880   if test -z "$OPT_ZLIB" ; then
23881
23882     if test -n "$PKG_CONFIG"; then
23883       PKGCONFIG="$PKG_CONFIG"
23884     else
23885       if test -n "$ac_tool_prefix"; then
23886   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23887 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23889 printf %s "checking for $ac_word... " >&6; }
23890 if test ${ac_cv_path_PKGCONFIG+y}
23891 then :
23892   printf %s "(cached) " >&6
23893 else $as_nop
23894   case $PKGCONFIG in
23895   [\\/]* | ?:[\\/]*)
23896   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23897   ;;
23898   *)
23899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23900 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23901 for as_dir in $as_dummy
23902 do
23903   IFS=$as_save_IFS
23904   case $as_dir in #(((
23905     '') as_dir=./ ;;
23906     */) ;;
23907     *) as_dir=$as_dir/ ;;
23908   esac
23909     for ac_exec_ext in '' $ac_executable_extensions; do
23910   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23911     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23912     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23913     break 2
23914   fi
23915 done
23916   done
23917 IFS=$as_save_IFS
23918
23919   ;;
23920 esac
23921 fi
23922 PKGCONFIG=$ac_cv_path_PKGCONFIG
23923 if test -n "$PKGCONFIG"; then
23924   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23925 printf "%s\n" "$PKGCONFIG" >&6; }
23926 else
23927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23928 printf "%s\n" "no" >&6; }
23929 fi
23930
23931
23932 fi
23933 if test -z "$ac_cv_path_PKGCONFIG"; then
23934   ac_pt_PKGCONFIG=$PKGCONFIG
23935   # Extract the first word of "pkg-config", so it can be a program name with args.
23936 set dummy pkg-config; ac_word=$2
23937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23938 printf %s "checking for $ac_word... " >&6; }
23939 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23940 then :
23941   printf %s "(cached) " >&6
23942 else $as_nop
23943   case $ac_pt_PKGCONFIG in
23944   [\\/]* | ?:[\\/]*)
23945   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23946   ;;
23947   *)
23948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23949 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23950 for as_dir in $as_dummy
23951 do
23952   IFS=$as_save_IFS
23953   case $as_dir in #(((
23954     '') as_dir=./ ;;
23955     */) ;;
23956     *) as_dir=$as_dir/ ;;
23957   esac
23958     for ac_exec_ext in '' $ac_executable_extensions; do
23959   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23960     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23961     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23962     break 2
23963   fi
23964 done
23965   done
23966 IFS=$as_save_IFS
23967
23968   ;;
23969 esac
23970 fi
23971 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23972 if test -n "$ac_pt_PKGCONFIG"; then
23973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23974 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23975 else
23976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 printf "%s\n" "no" >&6; }
23978 fi
23979
23980   if test "x$ac_pt_PKGCONFIG" = x; then
23981     PKGCONFIG="no"
23982   else
23983     case $cross_compiling:$ac_tool_warned in
23984 yes:)
23985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23987 ac_tool_warned=yes ;;
23988 esac
23989     PKGCONFIG=$ac_pt_PKGCONFIG
23990   fi
23991 else
23992   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23993 fi
23994
23995     fi
23996
23997     if test "x$PKGCONFIG" != "xno"; then
23998       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23999 printf %s "checking for zlib options with pkg-config... " >&6; }
24000             itexists=`
24001     if test -n ""; then
24002       PKG_CONFIG_LIBDIR=""
24003       export PKG_CONFIG_LIBDIR
24004     fi
24005          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
24006
24007       if test -z "$itexists"; then
24008                         PKGCONFIG="no"
24009         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24010 printf "%s\n" "no" >&6; }
24011       else
24012         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24013 printf "%s\n" "found" >&6; }
24014       fi
24015     fi
24016
24017
24018     if test "$PKGCONFIG" != "no" ; then
24019       ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
24020       if test -n "$ZLIB_LIBS"; then
24021         LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
24022       else
24023         ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
24024       fi
24025       LIBS="$ZLIB_LIBS $LIBS"
24026       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
24027       OPT_ZLIB=""
24028       HAVE_LIBZ="1"
24029     fi
24030
24031     if test -z "$HAVE_LIBZ"; then
24032
24033
24034       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
24035 printf %s "checking for inflateEnd in -lz... " >&6; }
24036 if test ${ac_cv_lib_z_inflateEnd+y}
24037 then :
24038   printf %s "(cached) " >&6
24039 else $as_nop
24040   ac_check_lib_save_LIBS=$LIBS
24041 LIBS="-lz  $LIBS"
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h.  */
24044
24045
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 char inflateEnd ();
24050 int main (void)
24051 {
24052 return inflateEnd ();
24053  ;
24054  return 0;
24055 }
24056 _ACEOF
24057 if ac_fn_c_try_link "$LINENO"
24058 then :
24059   ac_cv_lib_z_inflateEnd=yes
24060 else $as_nop
24061   ac_cv_lib_z_inflateEnd=no
24062 fi
24063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24064     conftest$ac_exeext conftest.$ac_ext
24065 LIBS=$ac_check_lib_save_LIBS
24066 fi
24067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
24068 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
24069 if test "x$ac_cv_lib_z_inflateEnd" = xyes
24070 then :
24071                      HAVE_LIBZ="1"
24072                     ZLIB_LIBS="-lz"
24073                     LIBS="$ZLIB_LIBS $LIBS"
24074 else $as_nop
24075                      OPT_ZLIB="/usr/local"
24076 fi
24077
24078     fi
24079   fi
24080
24081     if test -n "$OPT_ZLIB"; then
24082      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
24083      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
24084   fi
24085
24086   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24087 if test "x$ac_cv_header_zlib_h" = xyes
24088 then :
24089
24090         HAVE_ZLIB_H="1"
24091         if test "$HAVE_LIBZ" != "1"; then
24092       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
24093 printf %s "checking for gzread in -lz... " >&6; }
24094 if test ${ac_cv_lib_z_gzread+y}
24095 then :
24096   printf %s "(cached) " >&6
24097 else $as_nop
24098   ac_check_lib_save_LIBS=$LIBS
24099 LIBS="-lz  $LIBS"
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h.  */
24102
24103
24104 #ifdef __cplusplus
24105 extern "C"
24106 #endif
24107 char gzread ();
24108 int main (void)
24109 {
24110 return gzread ();
24111  ;
24112  return 0;
24113 }
24114 _ACEOF
24115 if ac_fn_c_try_link "$LINENO"
24116 then :
24117   ac_cv_lib_z_gzread=yes
24118 else $as_nop
24119   ac_cv_lib_z_gzread=no
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24122     conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24124 fi
24125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
24126 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
24127 if test "x$ac_cv_lib_z_gzread" = xyes
24128 then :
24129
24130                                       HAVE_LIBZ="1"
24131                    ZLIB_LIBS="-lz"
24132                    LIBS="$ZLIB_LIBS $LIBS"
24133
24134 else $as_nop
24135    CPPFLAGS=$clean_CPPFLAGS
24136                    LDFLAGS=$clean_LDFLAGS
24137 fi
24138
24139     fi
24140
24141 else $as_nop
24142
24143             CPPFLAGS=$clean_CPPFLAGS
24144       LDFLAGS=$clean_LDFLAGS
24145
24146 fi
24147
24148
24149   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
24150   then
24151     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
24152 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
24153     HAVE_LIBZ=""
24154     CPPFLAGS=$clean_CPPFLAGS
24155     LDFLAGS=$clean_LDFLAGS
24156     LIBS=$clean_LIBS
24157     ZLIB_LIBS=""
24158   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
24159   then
24160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
24161 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
24162     CPPFLAGS=$clean_CPPFLAGS
24163     LDFLAGS=$clean_LDFLAGS
24164     LIBS=$clean_LIBS
24165     ZLIB_LIBS=""
24166   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
24167   then
24168
24169
24170 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
24171
24172     LIBS="$ZLIB_LIBS $clean_LIBS"
24173
24174         AMFIXLIB="1"
24175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
24176 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
24177     curl_zlib_msg="enabled"
24178   fi
24179 fi
24180
24181  if test x"$AMFIXLIB" = x1; then
24182   HAVE_LIBZ_TRUE=
24183   HAVE_LIBZ_FALSE='#'
24184 else
24185   HAVE_LIBZ_TRUE='#'
24186   HAVE_LIBZ_FALSE=
24187 fi
24188
24189
24190
24191
24192
24193 OPT_BROTLI=off
24194
24195 # Check whether --with-brotli was given.
24196 if test ${with_brotli+y}
24197 then :
24198   withval=$with_brotli; OPT_BROTLI=$withval
24199 fi
24200
24201
24202 if test X"$OPT_BROTLI" != Xno; then
24203     CLEANLDFLAGS="$LDFLAGS"
24204   CLEANCPPFLAGS="$CPPFLAGS"
24205   CLEANLIBS="$LIBS"
24206
24207   case "$OPT_BROTLI" in
24208   yes)
24209
24210     if test -n "$PKG_CONFIG"; then
24211       PKGCONFIG="$PKG_CONFIG"
24212     else
24213       if test -n "$ac_tool_prefix"; then
24214   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24215 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24217 printf %s "checking for $ac_word... " >&6; }
24218 if test ${ac_cv_path_PKGCONFIG+y}
24219 then :
24220   printf %s "(cached) " >&6
24221 else $as_nop
24222   case $PKGCONFIG in
24223   [\\/]* | ?:[\\/]*)
24224   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24225   ;;
24226   *)
24227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24228 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24229 for as_dir in $as_dummy
24230 do
24231   IFS=$as_save_IFS
24232   case $as_dir in #(((
24233     '') as_dir=./ ;;
24234     */) ;;
24235     *) as_dir=$as_dir/ ;;
24236   esac
24237     for ac_exec_ext in '' $ac_executable_extensions; do
24238   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24239     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24240     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24241     break 2
24242   fi
24243 done
24244   done
24245 IFS=$as_save_IFS
24246
24247   ;;
24248 esac
24249 fi
24250 PKGCONFIG=$ac_cv_path_PKGCONFIG
24251 if test -n "$PKGCONFIG"; then
24252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24253 printf "%s\n" "$PKGCONFIG" >&6; }
24254 else
24255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24256 printf "%s\n" "no" >&6; }
24257 fi
24258
24259
24260 fi
24261 if test -z "$ac_cv_path_PKGCONFIG"; then
24262   ac_pt_PKGCONFIG=$PKGCONFIG
24263   # Extract the first word of "pkg-config", so it can be a program name with args.
24264 set dummy pkg-config; ac_word=$2
24265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24266 printf %s "checking for $ac_word... " >&6; }
24267 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24268 then :
24269   printf %s "(cached) " >&6
24270 else $as_nop
24271   case $ac_pt_PKGCONFIG in
24272   [\\/]* | ?:[\\/]*)
24273   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24274   ;;
24275   *)
24276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24277 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24278 for as_dir in $as_dummy
24279 do
24280   IFS=$as_save_IFS
24281   case $as_dir in #(((
24282     '') as_dir=./ ;;
24283     */) ;;
24284     *) as_dir=$as_dir/ ;;
24285   esac
24286     for ac_exec_ext in '' $ac_executable_extensions; do
24287   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24288     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24289     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24290     break 2
24291   fi
24292 done
24293   done
24294 IFS=$as_save_IFS
24295
24296   ;;
24297 esac
24298 fi
24299 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24300 if test -n "$ac_pt_PKGCONFIG"; then
24301   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24302 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24303 else
24304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24305 printf "%s\n" "no" >&6; }
24306 fi
24307
24308   if test "x$ac_pt_PKGCONFIG" = x; then
24309     PKGCONFIG="no"
24310   else
24311     case $cross_compiling:$ac_tool_warned in
24312 yes:)
24313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24315 ac_tool_warned=yes ;;
24316 esac
24317     PKGCONFIG=$ac_pt_PKGCONFIG
24318   fi
24319 else
24320   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24321 fi
24322
24323     fi
24324
24325     if test "x$PKGCONFIG" != "xno"; then
24326       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
24327 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
24328             itexists=`
24329     if test -n ""; then
24330       PKG_CONFIG_LIBDIR=""
24331       export PKG_CONFIG_LIBDIR
24332     fi
24333          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
24334
24335       if test -z "$itexists"; then
24336                         PKGCONFIG="no"
24337         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24338 printf "%s\n" "no" >&6; }
24339       else
24340         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24341 printf "%s\n" "found" >&6; }
24342       fi
24343     fi
24344
24345
24346     if test "$PKGCONFIG" != "no" ; then
24347       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
24348       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
24349       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
24350       version=`$PKGCONFIG --modversion libbrotlidec`
24351       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
24352     fi
24353
24354     ;;
24355   off)
24356         ;;
24357   *)
24358         PREFIX_BROTLI=$OPT_BROTLI
24359     ;;
24360   esac
24361
24362     if test -n "$PREFIX_BROTLI"; then
24363     LIB_BROTLI="-lbrotlidec"
24364     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
24365     CPP_BROTLI=-I${PREFIX_BROTLI}/include
24366     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
24367   fi
24368
24369   LDFLAGS="$LDFLAGS $LD_BROTLI"
24370   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
24371   LIBS="$LIB_BROTLI $LIBS"
24372
24373   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
24374 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
24375 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
24376 then :
24377   printf %s "(cached) " >&6
24378 else $as_nop
24379   ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lbrotlidec  $LIBS"
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h.  */
24383
24384
24385 #ifdef __cplusplus
24386 extern "C"
24387 #endif
24388 char BrotliDecoderDecompress ();
24389 int main (void)
24390 {
24391 return BrotliDecoderDecompress ();
24392  ;
24393  return 0;
24394 }
24395 _ACEOF
24396 if ac_fn_c_try_link "$LINENO"
24397 then :
24398   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
24399 else $as_nop
24400   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
24401 fi
24402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24403     conftest$ac_exeext conftest.$ac_ext
24404 LIBS=$ac_check_lib_save_LIBS
24405 fi
24406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
24407 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
24408 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
24409 then :
24410   printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
24411
24412   LIBS="-lbrotlidec $LIBS"
24413
24414 fi
24415
24416
24417          for ac_header in brotli/decode.h
24418 do :
24419   ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24420 if test "x$ac_cv_header_brotli_decode_h" = xyes
24421 then :
24422   printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24423  curl_brotli_msg="enabled (libbrotlidec)"
24424     HAVE_BROTLI=1
24425
24426 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24427
24428     HAVE_BROTLI=1
24429
24430
24431 fi
24432
24433 done
24434
24435   if test X"$OPT_BROTLI" != Xoff &&
24436      test "$HAVE_BROTLI" != "1"; then
24437     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24438   fi
24439
24440   if test "$HAVE_BROTLI" = "1"; then
24441     if test -n "$DIR_BROTLI"; then
24442
24443        if test "x$cross_compiling" != "xyes"; then
24444          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24445          export CURL_LIBRARY_PATH
24446          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24447 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24448        fi
24449     fi
24450   else
24451         LDFLAGS=$CLEANLDFLAGS
24452     CPPFLAGS=$CLEANCPPFLAGS
24453     LIBS=$CLEANLIBS
24454   fi
24455 fi
24456
24457
24458 OPT_ZSTD=off
24459
24460 # Check whether --with-zstd was given.
24461 if test ${with_zstd+y}
24462 then :
24463   withval=$with_zstd; OPT_ZSTD=$withval
24464 fi
24465
24466
24467 if test X"$OPT_ZSTD" != Xno; then
24468     CLEANLDFLAGS="$LDFLAGS"
24469   CLEANCPPFLAGS="$CPPFLAGS"
24470   CLEANLIBS="$LIBS"
24471
24472   case "$OPT_ZSTD" in
24473   yes)
24474
24475     if test -n "$PKG_CONFIG"; then
24476       PKGCONFIG="$PKG_CONFIG"
24477     else
24478       if test -n "$ac_tool_prefix"; then
24479   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24480 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24482 printf %s "checking for $ac_word... " >&6; }
24483 if test ${ac_cv_path_PKGCONFIG+y}
24484 then :
24485   printf %s "(cached) " >&6
24486 else $as_nop
24487   case $PKGCONFIG in
24488   [\\/]* | ?:[\\/]*)
24489   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24490   ;;
24491   *)
24492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24493 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24494 for as_dir in $as_dummy
24495 do
24496   IFS=$as_save_IFS
24497   case $as_dir in #(((
24498     '') as_dir=./ ;;
24499     */) ;;
24500     *) as_dir=$as_dir/ ;;
24501   esac
24502     for ac_exec_ext in '' $ac_executable_extensions; do
24503   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24504     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24505     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24506     break 2
24507   fi
24508 done
24509   done
24510 IFS=$as_save_IFS
24511
24512   ;;
24513 esac
24514 fi
24515 PKGCONFIG=$ac_cv_path_PKGCONFIG
24516 if test -n "$PKGCONFIG"; then
24517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24518 printf "%s\n" "$PKGCONFIG" >&6; }
24519 else
24520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24521 printf "%s\n" "no" >&6; }
24522 fi
24523
24524
24525 fi
24526 if test -z "$ac_cv_path_PKGCONFIG"; then
24527   ac_pt_PKGCONFIG=$PKGCONFIG
24528   # Extract the first word of "pkg-config", so it can be a program name with args.
24529 set dummy pkg-config; ac_word=$2
24530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24531 printf %s "checking for $ac_word... " >&6; }
24532 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24533 then :
24534   printf %s "(cached) " >&6
24535 else $as_nop
24536   case $ac_pt_PKGCONFIG in
24537   [\\/]* | ?:[\\/]*)
24538   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24539   ;;
24540   *)
24541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24542 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24543 for as_dir in $as_dummy
24544 do
24545   IFS=$as_save_IFS
24546   case $as_dir in #(((
24547     '') as_dir=./ ;;
24548     */) ;;
24549     *) as_dir=$as_dir/ ;;
24550   esac
24551     for ac_exec_ext in '' $ac_executable_extensions; do
24552   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24553     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24554     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24555     break 2
24556   fi
24557 done
24558   done
24559 IFS=$as_save_IFS
24560
24561   ;;
24562 esac
24563 fi
24564 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24565 if test -n "$ac_pt_PKGCONFIG"; then
24566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24567 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24568 else
24569   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 printf "%s\n" "no" >&6; }
24571 fi
24572
24573   if test "x$ac_pt_PKGCONFIG" = x; then
24574     PKGCONFIG="no"
24575   else
24576     case $cross_compiling:$ac_tool_warned in
24577 yes:)
24578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24579 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24580 ac_tool_warned=yes ;;
24581 esac
24582     PKGCONFIG=$ac_pt_PKGCONFIG
24583   fi
24584 else
24585   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24586 fi
24587
24588     fi
24589
24590     if test "x$PKGCONFIG" != "xno"; then
24591       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24592 printf %s "checking for libzstd options with pkg-config... " >&6; }
24593             itexists=`
24594     if test -n ""; then
24595       PKG_CONFIG_LIBDIR=""
24596       export PKG_CONFIG_LIBDIR
24597     fi
24598          $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24599
24600       if test -z "$itexists"; then
24601                         PKGCONFIG="no"
24602         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24603 printf "%s\n" "no" >&6; }
24604       else
24605         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24606 printf "%s\n" "found" >&6; }
24607       fi
24608     fi
24609
24610
24611     if test "$PKGCONFIG" != "no" ; then
24612       LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24613       LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24614       CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24615       version=`$PKGCONFIG --modversion libzstd`
24616       DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24617     fi
24618
24619     ;;
24620   off)
24621         ;;
24622   *)
24623         PREFIX_ZSTD=$OPT_ZSTD
24624     ;;
24625   esac
24626
24627     if test -n "$PREFIX_ZSTD"; then
24628     LIB_ZSTD="-lzstd"
24629     LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24630     CPP_ZSTD=-I${PREFIX_ZSTD}/include
24631     DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24632   fi
24633
24634   LDFLAGS="$LDFLAGS $LD_ZSTD"
24635   CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24636   LIBS="$LIB_ZSTD $LIBS"
24637
24638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24639 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24640 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24641 then :
24642   printf %s "(cached) " >&6
24643 else $as_nop
24644   ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lzstd  $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h.  */
24648
24649
24650 #ifdef __cplusplus
24651 extern "C"
24652 #endif
24653 char ZSTD_createDStream ();
24654 int main (void)
24655 {
24656 return ZSTD_createDStream ();
24657  ;
24658  return 0;
24659 }
24660 _ACEOF
24661 if ac_fn_c_try_link "$LINENO"
24662 then :
24663   ac_cv_lib_zstd_ZSTD_createDStream=yes
24664 else $as_nop
24665   ac_cv_lib_zstd_ZSTD_createDStream=no
24666 fi
24667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24668     conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24670 fi
24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24672 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24673 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24674 then :
24675   printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24676
24677   LIBS="-lzstd $LIBS"
24678
24679 fi
24680
24681
24682          for ac_header in zstd.h
24683 do :
24684   ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24685 if test "x$ac_cv_header_zstd_h" = xyes
24686 then :
24687   printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24688  curl_zstd_msg="enabled (libzstd)"
24689     HAVE_ZSTD=1
24690
24691 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24692
24693     HAVE_ZSTD=1
24694
24695
24696 fi
24697
24698 done
24699
24700   if test X"$OPT_ZSTD" != Xoff &&
24701      test "$HAVE_ZSTD" != "1"; then
24702     as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24703   fi
24704
24705   if test "$HAVE_ZSTD" = "1"; then
24706     if test -n "$DIR_ZSTD"; then
24707
24708        if test "x$cross_compiling" != "xyes"; then
24709          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24710          export CURL_LIBRARY_PATH
24711          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24712 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24713        fi
24714     fi
24715   else
24716         LDFLAGS=$CLEANLDFLAGS
24717     CPPFLAGS=$CLEANCPPFLAGS
24718     LIBS=$CLEANLIBS
24719   fi
24720 fi
24721
24722
24723 LDAPLIBNAME=""
24724
24725 # Check whether --with-ldap-lib was given.
24726 if test ${with_ldap_lib+y}
24727 then :
24728   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24729 fi
24730
24731
24732 LBERLIBNAME=""
24733
24734 # Check whether --with-lber-lib was given.
24735 if test ${with_lber_lib+y}
24736 then :
24737   withval=$with_lber_lib; LBERLIBNAME="$withval"
24738 fi
24739
24740
24741 if test x$CURL_DISABLE_LDAP != x1 ; then
24742
24743
24744     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24745 printf %s "checking for lber.h... " >&6; }
24746 if test ${curl_cv_header_lber_h+y}
24747 then :
24748   printf %s "(cached) " >&6
24749 else $as_nop
24750
24751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24752 /* end confdefs.h.  */
24753
24754
24755 #undef inline
24756 #ifdef HAVE_WINDOWS_H
24757 #ifndef WIN32_LEAN_AND_MEAN
24758 #define WIN32_LEAN_AND_MEAN
24759 #endif
24760 #include <windows.h>
24761 #else
24762 #ifdef HAVE_SYS_TYPES_H
24763 #include <sys/types.h>
24764 #endif
24765 #endif
24766 #ifndef NULL
24767 #define NULL (void *)0
24768 #endif
24769 #include <lber.h>
24770
24771 int main (void)
24772 {
24773
24774         BerValue *bvp = NULL;
24775         BerElement *bep = ber_init(bvp);
24776         ber_free(bep, 1);
24777
24778  ;
24779  return 0;
24780 }
24781
24782 _ACEOF
24783 if ac_fn_c_try_compile "$LINENO"
24784 then :
24785
24786       curl_cv_header_lber_h="yes"
24787
24788 else $as_nop
24789
24790       curl_cv_header_lber_h="no"
24791
24792 fi
24793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24794
24795 fi
24796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24797 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24798   if test "$curl_cv_header_lber_h" = "yes"; then
24799
24800 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24801
24802     #
24803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h.  */
24805
24806
24807 #undef inline
24808 #ifdef HAVE_WINDOWS_H
24809 #ifndef WIN32_LEAN_AND_MEAN
24810 #define WIN32_LEAN_AND_MEAN
24811 #endif
24812 #include <windows.h>
24813 #else
24814 #ifdef HAVE_SYS_TYPES_H
24815 #include <sys/types.h>
24816 #endif
24817 #endif
24818 #ifndef NULL
24819 #define NULL (void *)0
24820 #endif
24821 #ifndef LDAP_DEPRECATED
24822 #define LDAP_DEPRECATED 1
24823 #endif
24824 #include <ldap.h>
24825
24826 int main (void)
24827 {
24828
24829         BerValue *bvp = NULL;
24830         BerElement *bep = ber_init(bvp);
24831         ber_free(bep, 1);
24832
24833  ;
24834  return 0;
24835 }
24836
24837 _ACEOF
24838 if ac_fn_c_try_compile "$LINENO"
24839 then :
24840
24841       curl_cv_need_header_lber_h="no"
24842
24843 else $as_nop
24844
24845       curl_cv_need_header_lber_h="yes"
24846
24847 fi
24848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24849     #
24850     case "$curl_cv_need_header_lber_h" in
24851       yes)
24852
24853 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24854
24855         ;;
24856     esac
24857   fi
24858
24859
24860     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24861 printf %s "checking for ldap.h... " >&6; }
24862 if test ${curl_cv_header_ldap_h+y}
24863 then :
24864   printf %s "(cached) " >&6
24865 else $as_nop
24866
24867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868 /* end confdefs.h.  */
24869
24870
24871 #undef inline
24872 #ifdef HAVE_WINDOWS_H
24873 #ifndef WIN32_LEAN_AND_MEAN
24874 #define WIN32_LEAN_AND_MEAN
24875 #endif
24876 #include <windows.h>
24877 #else
24878 #ifdef HAVE_SYS_TYPES_H
24879 #include <sys/types.h>
24880 #endif
24881 #endif
24882 #ifndef LDAP_DEPRECATED
24883 #define LDAP_DEPRECATED 1
24884 #endif
24885 #ifdef NEED_LBER_H
24886 #include <lber.h>
24887 #endif
24888 #include <ldap.h>
24889
24890 int main (void)
24891 {
24892
24893         LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24894         int res = ldap_unbind(ldp);
24895
24896  ;
24897  return 0;
24898 }
24899
24900 _ACEOF
24901 if ac_fn_c_try_compile "$LINENO"
24902 then :
24903
24904       curl_cv_header_ldap_h="yes"
24905
24906 else $as_nop
24907
24908       curl_cv_header_ldap_h="no"
24909
24910 fi
24911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24912
24913 fi
24914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24915 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24916   case "$curl_cv_header_ldap_h" in
24917     yes)
24918
24919 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24920
24921       ;;
24922   esac
24923
24924
24925     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24926 printf %s "checking for ldap_ssl.h... " >&6; }
24927 if test ${curl_cv_header_ldap_ssl_h+y}
24928 then :
24929   printf %s "(cached) " >&6
24930 else $as_nop
24931
24932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933 /* end confdefs.h.  */
24934
24935
24936 #undef inline
24937 #ifdef HAVE_WINDOWS_H
24938 #ifndef WIN32_LEAN_AND_MEAN
24939 #define WIN32_LEAN_AND_MEAN
24940 #endif
24941 #include <windows.h>
24942 #else
24943 #ifdef HAVE_SYS_TYPES_H
24944 #include <sys/types.h>
24945 #endif
24946 #endif
24947 #ifndef LDAP_DEPRECATED
24948 #define LDAP_DEPRECATED 1
24949 #endif
24950 #ifdef NEED_LBER_H
24951 #include <lber.h>
24952 #endif
24953 #ifdef HAVE_LDAP_H
24954 #include <ldap.h>
24955 #endif
24956 #include <ldap_ssl.h>
24957
24958 int main (void)
24959 {
24960
24961         LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
24962
24963  ;
24964  return 0;
24965 }
24966
24967 _ACEOF
24968 if ac_fn_c_try_compile "$LINENO"
24969 then :
24970
24971       curl_cv_header_ldap_ssl_h="yes"
24972
24973 else $as_nop
24974
24975       curl_cv_header_ldap_ssl_h="no"
24976
24977 fi
24978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24979
24980 fi
24981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24982 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24983   case "$curl_cv_header_ldap_ssl_h" in
24984     yes)
24985
24986 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24987
24988       ;;
24989   esac
24990
24991
24992   if test -z "$LDAPLIBNAME" ; then
24993     if test "$curl_cv_native_windows" = "yes"; then
24994             LDAPLIBNAME="wldap32"
24995       LBERLIBNAME="no"
24996     fi
24997   fi
24998
24999   if test "$LDAPLIBNAME" ; then
25000     as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
25001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
25002 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
25003 if eval test \${$as_ac_Lib+y}
25004 then :
25005   printf %s "(cached) " >&6
25006 else $as_nop
25007   ac_check_lib_save_LIBS=$LIBS
25008 LIBS="-l"$LDAPLIBNAME"  $LIBS"
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h.  */
25011
25012
25013 #ifdef __cplusplus
25014 extern "C"
25015 #endif
25016 char ldap_init ();
25017 int main (void)
25018 {
25019 return ldap_init ();
25020  ;
25021  return 0;
25022 }
25023 _ACEOF
25024 if ac_fn_c_try_link "$LINENO"
25025 then :
25026   eval "$as_ac_Lib=yes"
25027 else $as_nop
25028   eval "$as_ac_Lib=no"
25029 fi
25030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25031     conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25033 fi
25034 eval ac_res=\$$as_ac_Lib
25035                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25036 printf "%s\n" "$ac_res" >&6; }
25037 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25038 then :
25039   cat >>confdefs.h <<_ACEOF
25040 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
25041 _ACEOF
25042
25043   LIBS="-l"$LDAPLIBNAME" $LIBS"
25044
25045 else $as_nop
25046
25047       if test -n "$ldap_askedfor"; then
25048         as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
25049       fi
25050       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
25051 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
25052
25053 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25054
25055       CURL_DISABLE_LDAP=1
25056
25057
25058 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25059
25060       CURL_DISABLE_LDAPS=1
25061
25062 fi
25063
25064   else
25065
25066     #
25067   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
25068 printf %s "checking for LDAP libraries... " >&6; }
25069   #
25070   u_libs=""
25071   #
25072
25073   #
25074   curl_cv_save_LIBS="$LIBS"
25075   curl_cv_ldap_LIBS="unknown"
25076   #
25077   for x_nlibs in '' "$u_libs" \
25078     '-lldap' \
25079     '-lldap -llber' \
25080     '-llber -lldap' \
25081     '-lldapssl -lldapx -lldapsdk' \
25082     '-lldapsdk -lldapx -lldapssl' \
25083     '-lldap -llber -lssl -lcrypto' ; do
25084
25085     if test "$curl_cv_ldap_LIBS" = "unknown"; then
25086       if test -z "$x_nlibs"; then
25087         LIBS="$curl_cv_save_LIBS"
25088       else
25089         LIBS="$x_nlibs $curl_cv_save_LIBS"
25090       fi
25091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h.  */
25093
25094
25095 #undef inline
25096 #ifdef HAVE_WINDOWS_H
25097 #ifndef WIN32_LEAN_AND_MEAN
25098 #define WIN32_LEAN_AND_MEAN
25099 #endif
25100 #include <windows.h>
25101 #else
25102 #ifdef HAVE_SYS_TYPES_H
25103 #include <sys/types.h>
25104 #endif
25105 #endif
25106 #ifndef NULL
25107 #define NULL (void *)0
25108 #endif
25109 #ifndef LDAP_DEPRECATED
25110 #define LDAP_DEPRECATED 1
25111 #endif
25112 #ifdef NEED_LBER_H
25113 #include <lber.h>
25114 #endif
25115 #ifdef HAVE_LDAP_H
25116 #include <ldap.h>
25117 #endif
25118
25119 int main (void)
25120 {
25121
25122           BerValue *bvp = NULL;
25123           BerElement *bep = ber_init(bvp);
25124           LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
25125           int res = ldap_unbind(ldp);
25126           ber_free(bep, 1);
25127
25128  ;
25129  return 0;
25130 }
25131
25132 _ACEOF
25133 if ac_fn_c_try_link "$LINENO"
25134 then :
25135
25136         curl_cv_ldap_LIBS="$x_nlibs"
25137
25138 fi
25139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25140     conftest$ac_exeext conftest.$ac_ext
25141     fi
25142   done
25143   #
25144   LIBS="$curl_cv_save_LIBS"
25145   #
25146   case X-"$curl_cv_ldap_LIBS" in
25147     X-unknown)
25148       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
25149 printf "%s\n" "cannot find LDAP libraries" >&6; }
25150       ;;
25151     X-)
25152       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
25153 printf "%s\n" "no additional lib required" >&6; }
25154       ;;
25155     *)
25156       if test -z "$curl_cv_save_LIBS"; then
25157         LIBS="$curl_cv_ldap_LIBS"
25158       else
25159         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
25160       fi
25161       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
25162 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
25163       ;;
25164   esac
25165   #
25166
25167     case X-"$curl_cv_ldap_LIBS" in
25168       X-unknown)
25169         if test -n "$ldap_askedfor"; then
25170           as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
25171         fi
25172         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
25173 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
25174
25175 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25176
25177         CURL_DISABLE_LDAP=1
25178
25179
25180 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25181
25182         CURL_DISABLE_LDAPS=1
25183
25184         ;;
25185     esac
25186   fi
25187 fi
25188
25189 if test x$CURL_DISABLE_LDAP != x1 ; then
25190
25191   if test "$LBERLIBNAME" ; then
25192             if test "$LBERLIBNAME" != "no" ; then
25193       as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
25194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
25195 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
25196 if eval test \${$as_ac_Lib+y}
25197 then :
25198   printf %s "(cached) " >&6
25199 else $as_nop
25200   ac_check_lib_save_LIBS=$LIBS
25201 LIBS="-l"$LBERLIBNAME"  $LIBS"
25202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h.  */
25204
25205
25206 #ifdef __cplusplus
25207 extern "C"
25208 #endif
25209 char ber_free ();
25210 int main (void)
25211 {
25212 return ber_free ();
25213  ;
25214  return 0;
25215 }
25216 _ACEOF
25217 if ac_fn_c_try_link "$LINENO"
25218 then :
25219   eval "$as_ac_Lib=yes"
25220 else $as_nop
25221   eval "$as_ac_Lib=no"
25222 fi
25223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25224     conftest$ac_exeext conftest.$ac_ext
25225 LIBS=$ac_check_lib_save_LIBS
25226 fi
25227 eval ac_res=\$$as_ac_Lib
25228                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25229 printf "%s\n" "$ac_res" >&6; }
25230 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25231 then :
25232   cat >>confdefs.h <<_ACEOF
25233 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
25234 _ACEOF
25235
25236   LIBS="-l"$LBERLIBNAME" $LIBS"
25237
25238 else $as_nop
25239
25240         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
25241 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
25242
25243 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25244
25245         CURL_DISABLE_LDAP=1
25246
25247
25248 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25249
25250         CURL_DISABLE_LDAPS=1
25251
25252 fi
25253
25254     fi
25255   fi
25256 fi
25257
25258 if test x$CURL_DISABLE_LDAP != x1 ; then
25259   ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
25260 if test "x$ac_cv_func_ldap_url_parse" = xyes
25261 then :
25262   printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
25263
25264 fi
25265 ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
25266 if test "x$ac_cv_func_ldap_init_fd" = xyes
25267 then :
25268   printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
25269
25270 fi
25271
25272
25273   if test "$LDAPLIBNAME" = "wldap32"; then
25274     curl_ldap_msg="enabled (winldap)"
25275
25276 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
25277
25278   else
25279     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
25280       curl_ldap_msg="enabled (OpenLDAP)"
25281
25282 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
25283
25284       USE_OPENLDAP=1
25285
25286     else
25287       curl_ldap_msg="enabled (ancient OpenLDAP)"
25288     fi
25289   fi
25290 fi
25291
25292 if test x$CURL_DISABLE_LDAPS != x1 ; then
25293     curl_ldaps_msg="enabled"
25294 fi
25295
25296
25297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
25298 printf %s "checking whether to enable IPv6... " >&6; }
25299 # Check whether --enable-ipv6 was given.
25300 if test ${enable_ipv6+y}
25301 then :
25302   enableval=$enable_ipv6;  case "$enableval" in
25303   no)
25304        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25305 printf "%s\n" "no" >&6; }
25306        ipv6=no
25307        ;;
25308   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25309 printf "%s\n" "yes" >&6; }
25310        ipv6=yes
25311        ;;
25312   esac
25313 else $as_nop
25314   if test "$cross_compiling" = yes
25315 then :
25316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25317 printf "%s\n" "yes" >&6; }
25318   ipv6=yes
25319
25320 else $as_nop
25321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322 /* end confdefs.h.  */
25323
25324 /* are AF_INET6 and sockaddr_in6 available? */
25325 #include <sys/types.h>
25326 #ifdef HAVE_WINSOCK2_H
25327 #include <winsock2.h>
25328 #include <ws2tcpip.h>
25329 #else
25330 #include <sys/socket.h>
25331 #include <netinet/in.h>
25332 #if defined (__TANDEM)
25333 # include <netinet/in6.h>
25334 #endif
25335 #endif
25336 #include <stdlib.h> /* for exit() */
25337 main()
25338 {
25339  struct sockaddr_in6 s;
25340  (void)s;
25341  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
25342    exit(1);
25343  else
25344    exit(0);
25345 }
25346
25347
25348 _ACEOF
25349 if ac_fn_c_try_run "$LINENO"
25350 then :
25351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25352 printf "%s\n" "yes" >&6; }
25353   ipv6=yes
25354 else $as_nop
25355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25356 printf "%s\n" "no" >&6; }
25357   ipv6=no
25358 fi
25359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360   conftest.$ac_objext conftest.beam conftest.$ac_ext
25361 fi
25362
25363 fi
25364
25365
25366 if test "$ipv6" = yes; then
25367   curl_ipv6_msg="enabled"
25368
25369 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
25370
25371   IPV6_ENABLED=1
25372
25373
25374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
25375 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
25376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377 /* end confdefs.h.  */
25378
25379 #include <sys/types.h>
25380 #ifdef HAVE_WINSOCK2_H
25381 #include <winsock2.h>
25382 #include <ws2tcpip.h>
25383 #else
25384 #include <netinet/in.h>
25385 #if defined (__TANDEM)
25386 # include <netinet/in6.h>
25387 #endif
25388 #endif
25389
25390 int main (void)
25391 {
25392
25393   struct sockaddr_in6 s;
25394   s.sin6_scope_id = 0;
25395
25396  ;
25397  return 0;
25398 }
25399 _ACEOF
25400 if ac_fn_c_try_compile "$LINENO"
25401 then :
25402
25403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25404 printf "%s\n" "yes" >&6; }
25405
25406 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
25407
25408
25409 else $as_nop
25410
25411     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25412 printf "%s\n" "no" >&6; }
25413
25414 fi
25415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25416 fi
25417
25418
25419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25420 printf %s "checking if argv can be written to... " >&6; }
25421
25422    case $host_os in
25423      darwin*)
25424       if test "$cross_compiling" = yes
25425 then :
25426   curl_cv_writable_argv=cross
25427
25428 else $as_nop
25429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h.  */
25431
25432 int main(int argc, char **argv)
25433 {
25434 #ifdef _WIN32
25435   /* on Windows, writing to the argv does not hide the argument in
25436      process lists so it can just be skipped */
25437   (void)argc;
25438   (void)argv;
25439   return 1;
25440 #else
25441   (void)argc;
25442   argv[0][0] = ' ';
25443   return (argv[0][0] == ' ')?0:1;
25444 #endif
25445 }
25446
25447 _ACEOF
25448 if ac_fn_c_try_run "$LINENO"
25449 then :
25450   curl_cv_writable_argv=yes
25451
25452 else $as_nop
25453   curl_cv_writable_argv=no
25454
25455 fi
25456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25457   conftest.$ac_objext conftest.beam conftest.$ac_ext
25458 fi
25459
25460      ;;
25461      *)
25462       oldcc=$CC
25463       old=$LD_LIBRARY_PATH
25464       CC="sh ./run-compiler"
25465       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25466       export LD_LIBRARY_PATH
25467       if test "$cross_compiling" = yes
25468 then :
25469   curl_cv_writable_argv=cross
25470
25471 else $as_nop
25472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h.  */
25474
25475 int main(int argc, char **argv)
25476 {
25477 #ifdef _WIN32
25478   /* on Windows, writing to the argv does not hide the argument in
25479      process lists so it can just be skipped */
25480   (void)argc;
25481   (void)argv;
25482   return 1;
25483 #else
25484   (void)argc;
25485   argv[0][0] = ' ';
25486   return (argv[0][0] == ' ')?0:1;
25487 #endif
25488 }
25489
25490 _ACEOF
25491 if ac_fn_c_try_run "$LINENO"
25492 then :
25493   curl_cv_writable_argv=yes
25494
25495 else $as_nop
25496   curl_cv_writable_argv=no
25497
25498 fi
25499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25500   conftest.$ac_objext conftest.beam conftest.$ac_ext
25501 fi
25502
25503       LD_LIBRARY_PATH=$old # restore
25504       CC=$oldcc
25505      ;;
25506    esac
25507
25508 case $curl_cv_writable_argv in
25509 yes)
25510
25511 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25512
25513         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25514 printf "%s\n" "yes" >&6; }
25515         ;;
25516 no)
25517         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25518 printf "%s\n" "no" >&6; }
25519         ;;
25520 *)
25521         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25522 printf "%s\n" "no" >&6; }
25523         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25524 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25525         ;;
25526 esac
25527
25528
25529
25530 GSSAPI_ROOT="/usr"
25531
25532 # Check whether --with-gssapi-includes was given.
25533 if test ${with_gssapi_includes+y}
25534 then :
25535   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
25536     want_gss="yes"
25537
25538 fi
25539
25540
25541
25542 # Check whether --with-gssapi-libs was given.
25543 if test ${with_gssapi_libs+y}
25544 then :
25545   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
25546     want_gss="yes"
25547
25548 fi
25549
25550
25551
25552 # Check whether --with-gssapi was given.
25553 if test ${with_gssapi+y}
25554 then :
25555   withval=$with_gssapi;
25556   GSSAPI_ROOT="$withval"
25557   if test x"$GSSAPI_ROOT" != xno; then
25558     want_gss="yes"
25559     if test x"$GSSAPI_ROOT" = xyes; then
25560             GSSAPI_ROOT="/usr"
25561     fi
25562   fi
25563
25564 fi
25565
25566
25567 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25568
25569 save_CPPFLAGS="$CPPFLAGS"
25570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25571 printf %s "checking if GSS-API support is requested... " >&6; }
25572 if test x"$want_gss" = xyes; then
25573   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 printf "%s\n" "yes" >&6; }
25575
25576   if test $GSSAPI_ROOT != "/usr"; then
25577
25578     if test -n "$PKG_CONFIG"; then
25579       PKGCONFIG="$PKG_CONFIG"
25580     else
25581       if test -n "$ac_tool_prefix"; then
25582   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25585 printf %s "checking for $ac_word... " >&6; }
25586 if test ${ac_cv_path_PKGCONFIG+y}
25587 then :
25588   printf %s "(cached) " >&6
25589 else $as_nop
25590   case $PKGCONFIG in
25591   [\\/]* | ?:[\\/]*)
25592   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25593   ;;
25594   *)
25595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25596 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25597 for as_dir in $as_dummy
25598 do
25599   IFS=$as_save_IFS
25600   case $as_dir in #(((
25601     '') as_dir=./ ;;
25602     */) ;;
25603     *) as_dir=$as_dir/ ;;
25604   esac
25605     for ac_exec_ext in '' $ac_executable_extensions; do
25606   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25607     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25608     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25609     break 2
25610   fi
25611 done
25612   done
25613 IFS=$as_save_IFS
25614
25615   ;;
25616 esac
25617 fi
25618 PKGCONFIG=$ac_cv_path_PKGCONFIG
25619 if test -n "$PKGCONFIG"; then
25620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25621 printf "%s\n" "$PKGCONFIG" >&6; }
25622 else
25623   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25624 printf "%s\n" "no" >&6; }
25625 fi
25626
25627
25628 fi
25629 if test -z "$ac_cv_path_PKGCONFIG"; then
25630   ac_pt_PKGCONFIG=$PKGCONFIG
25631   # Extract the first word of "pkg-config", so it can be a program name with args.
25632 set dummy pkg-config; ac_word=$2
25633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25634 printf %s "checking for $ac_word... " >&6; }
25635 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25636 then :
25637   printf %s "(cached) " >&6
25638 else $as_nop
25639   case $ac_pt_PKGCONFIG in
25640   [\\/]* | ?:[\\/]*)
25641   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25642   ;;
25643   *)
25644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25646 for as_dir in $as_dummy
25647 do
25648   IFS=$as_save_IFS
25649   case $as_dir in #(((
25650     '') as_dir=./ ;;
25651     */) ;;
25652     *) as_dir=$as_dir/ ;;
25653   esac
25654     for ac_exec_ext in '' $ac_executable_extensions; do
25655   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25656     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25657     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25658     break 2
25659   fi
25660 done
25661   done
25662 IFS=$as_save_IFS
25663
25664   ;;
25665 esac
25666 fi
25667 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25668 if test -n "$ac_pt_PKGCONFIG"; then
25669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25670 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25671 else
25672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 printf "%s\n" "no" >&6; }
25674 fi
25675
25676   if test "x$ac_pt_PKGCONFIG" = x; then
25677     PKGCONFIG="no"
25678   else
25679     case $cross_compiling:$ac_tool_warned in
25680 yes:)
25681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25683 ac_tool_warned=yes ;;
25684 esac
25685     PKGCONFIG=$ac_pt_PKGCONFIG
25686   fi
25687 else
25688   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25689 fi
25690
25691     fi
25692
25693     if test "x$PKGCONFIG" != "xno"; then
25694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25695 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25696             itexists=`
25697     if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25698       PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25699       export PKG_CONFIG_LIBDIR
25700     fi
25701          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25702
25703       if test -z "$itexists"; then
25704                         PKGCONFIG="no"
25705         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25706 printf "%s\n" "no" >&6; }
25707       else
25708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25709 printf "%s\n" "found" >&6; }
25710       fi
25711     fi
25712
25713   else
25714
25715     if test -n "$PKG_CONFIG"; then
25716       PKGCONFIG="$PKG_CONFIG"
25717     else
25718       if test -n "$ac_tool_prefix"; then
25719   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25720 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25722 printf %s "checking for $ac_word... " >&6; }
25723 if test ${ac_cv_path_PKGCONFIG+y}
25724 then :
25725   printf %s "(cached) " >&6
25726 else $as_nop
25727   case $PKGCONFIG in
25728   [\\/]* | ?:[\\/]*)
25729   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25730   ;;
25731   *)
25732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25733 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25734 for as_dir in $as_dummy
25735 do
25736   IFS=$as_save_IFS
25737   case $as_dir in #(((
25738     '') as_dir=./ ;;
25739     */) ;;
25740     *) as_dir=$as_dir/ ;;
25741   esac
25742     for ac_exec_ext in '' $ac_executable_extensions; do
25743   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25744     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25745     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25746     break 2
25747   fi
25748 done
25749   done
25750 IFS=$as_save_IFS
25751
25752   ;;
25753 esac
25754 fi
25755 PKGCONFIG=$ac_cv_path_PKGCONFIG
25756 if test -n "$PKGCONFIG"; then
25757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25758 printf "%s\n" "$PKGCONFIG" >&6; }
25759 else
25760   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25761 printf "%s\n" "no" >&6; }
25762 fi
25763
25764
25765 fi
25766 if test -z "$ac_cv_path_PKGCONFIG"; then
25767   ac_pt_PKGCONFIG=$PKGCONFIG
25768   # Extract the first word of "pkg-config", so it can be a program name with args.
25769 set dummy pkg-config; ac_word=$2
25770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25771 printf %s "checking for $ac_word... " >&6; }
25772 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25773 then :
25774   printf %s "(cached) " >&6
25775 else $as_nop
25776   case $ac_pt_PKGCONFIG in
25777   [\\/]* | ?:[\\/]*)
25778   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25779   ;;
25780   *)
25781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25782 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25783 for as_dir in $as_dummy
25784 do
25785   IFS=$as_save_IFS
25786   case $as_dir in #(((
25787     '') as_dir=./ ;;
25788     */) ;;
25789     *) as_dir=$as_dir/ ;;
25790   esac
25791     for ac_exec_ext in '' $ac_executable_extensions; do
25792   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25793     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25794     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25795     break 2
25796   fi
25797 done
25798   done
25799 IFS=$as_save_IFS
25800
25801   ;;
25802 esac
25803 fi
25804 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25805 if test -n "$ac_pt_PKGCONFIG"; then
25806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25807 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25808 else
25809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25810 printf "%s\n" "no" >&6; }
25811 fi
25812
25813   if test "x$ac_pt_PKGCONFIG" = x; then
25814     PKGCONFIG="no"
25815   else
25816     case $cross_compiling:$ac_tool_warned in
25817 yes:)
25818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25820 ac_tool_warned=yes ;;
25821 esac
25822     PKGCONFIG=$ac_pt_PKGCONFIG
25823   fi
25824 else
25825   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25826 fi
25827
25828     fi
25829
25830     if test "x$PKGCONFIG" != "xno"; then
25831       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25832 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25833             itexists=`
25834     if test -n ""; then
25835       PKG_CONFIG_LIBDIR=""
25836       export PKG_CONFIG_LIBDIR
25837     fi
25838          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25839
25840       if test -z "$itexists"; then
25841                         PKGCONFIG="no"
25842         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25843 printf "%s\n" "no" >&6; }
25844       else
25845         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25846 printf "%s\n" "found" >&6; }
25847       fi
25848     fi
25849
25850   fi
25851   if test -z "$GSSAPI_INCS"; then
25852      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25853         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25854      elif test "$PKGCONFIG" != "no" ; then
25855         GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25856      elif test -f "$KRB5CONFIG"; then
25857         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25858      elif test "$GSSAPI_ROOT" != "yes"; then
25859         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25860      fi
25861   fi
25862
25863   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25864
25865   ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25866 if test "x$ac_cv_header_gss_h" = xyes
25867 then :
25868
25869
25870 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25871
25872       gnu_gss=yes
25873
25874 else $as_nop
25875
25876                    for ac_header in gssapi/gssapi.h
25877 do :
25878   ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25879 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25880 then :
25881   printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25882
25883 else $as_nop
25884   not_mit=1
25885 fi
25886
25887 done
25888              for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25889 do :
25890   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25892 $ac_includes_default
25893 #ifdef HAVE_GSSAPI_GSSAPI_H
25894 #include <gssapi/gssapi.h>
25895 #endif
25896
25897 "
25898 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25899 then :
25900   cat >>confdefs.h <<_ACEOF
25901 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25902 _ACEOF
25903
25904 else $as_nop
25905   not_mit=1
25906 fi
25907
25908 done
25909       if test "x$not_mit" = "x1"; then
25910                 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25911 if test "x$ac_cv_header_gssapi_h" = xyes
25912 then :
25913
25914
25915 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25916
25917
25918 else $as_nop
25919
25920                             want_gss=no
25921               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25922 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25923
25924
25925 fi
25926
25927       else
25928
25929 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25930
25931                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25932 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25933         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25934 /* end confdefs.h.  */
25935
25936
25937 #include <gssapi/gssapi.h>
25938 #include <gssapi/gssapi_generic.h>
25939 #include <gssapi/gssapi_krb5.h>
25940
25941 int main (void)
25942 {
25943
25944             gss_import_name(
25945                             (OM_uint32 *)0,
25946                             (gss_buffer_t)0,
25947                             GSS_C_NT_HOSTBASED_SERVICE,
25948                             (gss_name_t *)0);
25949
25950  ;
25951  return 0;
25952 }
25953
25954 _ACEOF
25955 if ac_fn_c_try_compile "$LINENO"
25956 then :
25957
25958           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25959 printf "%s\n" "yes" >&6; }
25960
25961 else $as_nop
25962
25963           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25964 printf "%s\n" "no" >&6; }
25965
25966 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25967
25968
25969 fi
25970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25971       fi
25972
25973
25974 fi
25975
25976 else
25977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25978 printf "%s\n" "no" >&6; }
25979 fi
25980 if test x"$want_gss" = xyes; then
25981
25982 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25983
25984   HAVE_GSSAPI=1
25985   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25986
25987   if test -n "$gnu_gss"; then
25988     curl_gss_msg="enabled (GNU GSS)"
25989     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25990     LIBS="-lgss $LIBS"
25991   elif test -z "$GSSAPI_LIB_DIR"; then
25992      case $host in
25993      *-*-darwin*)
25994         LIBS="-lgssapi_krb5 -lresolv $LIBS"
25995         ;;
25996      *)
25997         if test $GSSAPI_ROOT != "/usr"; then
25998
25999     if test -n "$PKG_CONFIG"; then
26000       PKGCONFIG="$PKG_CONFIG"
26001     else
26002       if test -n "$ac_tool_prefix"; then
26003   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26004 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26006 printf %s "checking for $ac_word... " >&6; }
26007 if test ${ac_cv_path_PKGCONFIG+y}
26008 then :
26009   printf %s "(cached) " >&6
26010 else $as_nop
26011   case $PKGCONFIG in
26012   [\\/]* | ?:[\\/]*)
26013   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26014   ;;
26015   *)
26016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26018 for as_dir in $as_dummy
26019 do
26020   IFS=$as_save_IFS
26021   case $as_dir in #(((
26022     '') as_dir=./ ;;
26023     */) ;;
26024     *) as_dir=$as_dir/ ;;
26025   esac
26026     for ac_exec_ext in '' $ac_executable_extensions; do
26027   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26028     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26029     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26030     break 2
26031   fi
26032 done
26033   done
26034 IFS=$as_save_IFS
26035
26036   ;;
26037 esac
26038 fi
26039 PKGCONFIG=$ac_cv_path_PKGCONFIG
26040 if test -n "$PKGCONFIG"; then
26041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26042 printf "%s\n" "$PKGCONFIG" >&6; }
26043 else
26044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045 printf "%s\n" "no" >&6; }
26046 fi
26047
26048
26049 fi
26050 if test -z "$ac_cv_path_PKGCONFIG"; then
26051   ac_pt_PKGCONFIG=$PKGCONFIG
26052   # Extract the first word of "pkg-config", so it can be a program name with args.
26053 set dummy pkg-config; ac_word=$2
26054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26055 printf %s "checking for $ac_word... " >&6; }
26056 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26057 then :
26058   printf %s "(cached) " >&6
26059 else $as_nop
26060   case $ac_pt_PKGCONFIG in
26061   [\\/]* | ?:[\\/]*)
26062   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26063   ;;
26064   *)
26065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26066 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26067 for as_dir in $as_dummy
26068 do
26069   IFS=$as_save_IFS
26070   case $as_dir in #(((
26071     '') as_dir=./ ;;
26072     */) ;;
26073     *) as_dir=$as_dir/ ;;
26074   esac
26075     for ac_exec_ext in '' $ac_executable_extensions; do
26076   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26077     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26078     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26079     break 2
26080   fi
26081 done
26082   done
26083 IFS=$as_save_IFS
26084
26085   ;;
26086 esac
26087 fi
26088 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26089 if test -n "$ac_pt_PKGCONFIG"; then
26090   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26091 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26092 else
26093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094 printf "%s\n" "no" >&6; }
26095 fi
26096
26097   if test "x$ac_pt_PKGCONFIG" = x; then
26098     PKGCONFIG="no"
26099   else
26100     case $cross_compiling:$ac_tool_warned in
26101 yes:)
26102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26104 ac_tool_warned=yes ;;
26105 esac
26106     PKGCONFIG=$ac_pt_PKGCONFIG
26107   fi
26108 else
26109   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26110 fi
26111
26112     fi
26113
26114     if test "x$PKGCONFIG" != "xno"; then
26115       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
26116 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
26117             itexists=`
26118     if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
26119       PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
26120       export PKG_CONFIG_LIBDIR
26121     fi
26122          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26123
26124       if test -z "$itexists"; then
26125                         PKGCONFIG="no"
26126         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26127 printf "%s\n" "no" >&6; }
26128       else
26129         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26130 printf "%s\n" "found" >&6; }
26131       fi
26132     fi
26133
26134         else
26135
26136     if test -n "$PKG_CONFIG"; then
26137       PKGCONFIG="$PKG_CONFIG"
26138     else
26139       if test -n "$ac_tool_prefix"; then
26140   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26143 printf %s "checking for $ac_word... " >&6; }
26144 if test ${ac_cv_path_PKGCONFIG+y}
26145 then :
26146   printf %s "(cached) " >&6
26147 else $as_nop
26148   case $PKGCONFIG in
26149   [\\/]* | ?:[\\/]*)
26150   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26151   ;;
26152   *)
26153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26154 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26155 for as_dir in $as_dummy
26156 do
26157   IFS=$as_save_IFS
26158   case $as_dir in #(((
26159     '') as_dir=./ ;;
26160     */) ;;
26161     *) as_dir=$as_dir/ ;;
26162   esac
26163     for ac_exec_ext in '' $ac_executable_extensions; do
26164   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26165     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26166     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26167     break 2
26168   fi
26169 done
26170   done
26171 IFS=$as_save_IFS
26172
26173   ;;
26174 esac
26175 fi
26176 PKGCONFIG=$ac_cv_path_PKGCONFIG
26177 if test -n "$PKGCONFIG"; then
26178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26179 printf "%s\n" "$PKGCONFIG" >&6; }
26180 else
26181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26182 printf "%s\n" "no" >&6; }
26183 fi
26184
26185
26186 fi
26187 if test -z "$ac_cv_path_PKGCONFIG"; then
26188   ac_pt_PKGCONFIG=$PKGCONFIG
26189   # Extract the first word of "pkg-config", so it can be a program name with args.
26190 set dummy pkg-config; ac_word=$2
26191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26192 printf %s "checking for $ac_word... " >&6; }
26193 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26194 then :
26195   printf %s "(cached) " >&6
26196 else $as_nop
26197   case $ac_pt_PKGCONFIG in
26198   [\\/]* | ?:[\\/]*)
26199   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26200   ;;
26201   *)
26202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26203 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26204 for as_dir in $as_dummy
26205 do
26206   IFS=$as_save_IFS
26207   case $as_dir in #(((
26208     '') as_dir=./ ;;
26209     */) ;;
26210     *) as_dir=$as_dir/ ;;
26211   esac
26212     for ac_exec_ext in '' $ac_executable_extensions; do
26213   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26214     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26215     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26216     break 2
26217   fi
26218 done
26219   done
26220 IFS=$as_save_IFS
26221
26222   ;;
26223 esac
26224 fi
26225 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26226 if test -n "$ac_pt_PKGCONFIG"; then
26227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26228 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26229 else
26230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26231 printf "%s\n" "no" >&6; }
26232 fi
26233
26234   if test "x$ac_pt_PKGCONFIG" = x; then
26235     PKGCONFIG="no"
26236   else
26237     case $cross_compiling:$ac_tool_warned in
26238 yes:)
26239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26241 ac_tool_warned=yes ;;
26242 esac
26243     PKGCONFIG=$ac_pt_PKGCONFIG
26244   fi
26245 else
26246   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26247 fi
26248
26249     fi
26250
26251     if test "x$PKGCONFIG" != "xno"; then
26252       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
26253 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
26254             itexists=`
26255     if test -n ""; then
26256       PKG_CONFIG_LIBDIR=""
26257       export PKG_CONFIG_LIBDIR
26258     fi
26259          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26260
26261       if test -z "$itexists"; then
26262                         PKGCONFIG="no"
26263         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26264 printf "%s\n" "no" >&6; }
26265       else
26266         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26267 printf "%s\n" "found" >&6; }
26268       fi
26269     fi
26270
26271         fi
26272         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
26273                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
26274            LIBS="$gss_libs $LIBS"
26275         elif test "$PKGCONFIG" != "no" ; then
26276            gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
26277            LIBS="$gss_libs $LIBS"
26278         elif test -f "$KRB5CONFIG"; then
26279                                  gss_libs=`$KRB5CONFIG --libs gssapi`
26280            LIBS="$gss_libs $LIBS"
26281         else
26282            case $host in
26283            *-hp-hpux*)
26284               gss_libname="gss"
26285               ;;
26286            *)
26287               gss_libname="gssapi"
26288               ;;
26289            esac
26290
26291            if test "$GSSAPI_ROOT" != "yes"; then
26292               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
26293               LIBS="-l$gss_libname $LIBS"
26294            else
26295               LIBS="-l$gss_libname $LIBS"
26296            fi
26297         fi
26298         ;;
26299      esac
26300   else
26301      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
26302      case $host in
26303      *-hp-hpux*)
26304         LIBS="-lgss $LIBS"
26305         ;;
26306      *)
26307         LIBS="-lgssapi $LIBS"
26308         ;;
26309      esac
26310   fi
26311 else
26312   CPPFLAGS="$save_CPPFLAGS"
26313 fi
26314
26315 if test x"$want_gss" = xyes; then
26316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
26317 printf %s "checking if we can link against GSS-API library... " >&6; }
26318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h.  */
26320
26321
26322 #define gss_init_sec_context innocuous_gss_init_sec_context
26323 #ifdef __STDC__
26324 # include <limits.h>
26325 #else
26326 # include <assert.h>
26327 #endif
26328 #undef gss_init_sec_context
26329 #ifdef __cplusplus
26330 extern "C"
26331 #endif
26332 char gss_init_sec_context ();
26333 #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
26334 choke me
26335 #endif
26336
26337 int main (void)
26338 {
26339 return gss_init_sec_context ();
26340  ;
26341  return 0;
26342 }
26343
26344 _ACEOF
26345 if ac_fn_c_try_link "$LINENO"
26346 then :
26347
26348     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26349 printf "%s\n" "yes" >&6; }
26350
26351 else $as_nop
26352
26353     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26354 printf "%s\n" "no" >&6; }
26355     as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
26356
26357 fi
26358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26359     conftest$ac_exeext conftest.$ac_ext
26360 fi
26361
26362 build_libstubgss=no
26363 if test x"$want_gss" = "xyes"; then
26364   build_libstubgss=yes
26365 fi
26366
26367  if test "x$build_libstubgss" = "xyes"; then
26368   BUILD_STUB_GSS_TRUE=
26369   BUILD_STUB_GSS_FALSE='#'
26370 else
26371   BUILD_STUB_GSS_TRUE='#'
26372   BUILD_STUB_GSS_FALSE=
26373 fi
26374
26375
26376
26377 DEFAULT_SSL_BACKEND=no
26378 VALID_DEFAULT_SSL_BACKEND=
26379
26380 # Check whether --with-default-ssl-backend was given.
26381 if test ${with_default_ssl_backend+y}
26382 then :
26383   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
26384 fi
26385
26386 case "$DEFAULT_SSL_BACKEND" in
26387   no)
26388         ;;
26389   default|yes)
26390         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
26391     ;;
26392   *)
26393
26394         VALID_DEFAULT_SSL_BACKEND=no
26395     ;;
26396 esac
26397
26398
26399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
26400 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
26401 if test "x$OPT_SCHANNEL" != xno; then
26402   ssl_msg=
26403   if test "x$OPT_SCHANNEL" != "xno"  &&
26404      test "x$curl_cv_native_windows" = "xyes"; then
26405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26406 printf "%s\n" "yes" >&6; }
26407
26408 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
26409
26410     USE_SCHANNEL=1
26411
26412     ssl_msg="Schannel"
26413     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26414     SCHANNEL_ENABLED=1
26415     # --with-schannel implies --enable-sspi
26416
26417 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
26418
26419     USE_WINDOWS_SSPI=1
26420
26421     curl_sspi_msg="enabled"
26422   else
26423     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26424 printf "%s\n" "no" >&6; }
26425   fi
26426   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26427 else
26428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26429 printf "%s\n" "no" >&6; }
26430 fi
26431
26432
26433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
26434 printf %s "checking whether to enable Secure Transport... " >&6; }
26435 if test "x$OPT_SECURETRANSPORT" != xno; then
26436   if test "x$OPT_SECURETRANSPORT" != "xno" &&
26437      (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
26438     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26439 printf "%s\n" "yes" >&6; }
26440
26441 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26442
26443     USE_SECTRANSP=1
26444
26445     ssl_msg="Secure Transport"
26446     test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26447     SECURETRANSPORT_ENABLED=1
26448     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security"
26449   else
26450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26451 printf "%s\n" "no" >&6; }
26452   fi
26453   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26454 else
26455   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26456 printf "%s\n" "no" >&6; }
26457 fi
26458
26459
26460
26461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26462 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26463 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26464   if test "x$OPT_AMISSL" != xno; then
26465     ssl_msg=
26466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26467 /* end confdefs.h.  */
26468
26469
26470         #include <libraries/amisslmaster.h>
26471         #include <openssl/opensslv.h>
26472
26473 int main (void)
26474 {
26475
26476         #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \
26477             (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
26478             defined(PROTO_AMISSL_H)
26479         return 0;
26480         #else
26481         #error not AmiSSL v5 / OpenSSL 3
26482         #endif
26483
26484  ;
26485  return 0;
26486 }
26487
26488 _ACEOF
26489 if ac_fn_c_try_compile "$LINENO"
26490 then :
26491
26492       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26493 printf "%s\n" "yes" >&6; }
26494       ssl_msg="AmiSSL"
26495       test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26496       AMISSL_ENABLED=1
26497       OPENSSL_ENABLED=1
26498       # Use AmiSSL's built-in ca bundle
26499       check_for_ca_bundle=1
26500       with_ca_fallback=yes
26501       LIBS="-lamisslstubs -lamisslauto $LIBS"
26502
26503 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26504
26505
26506 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26507
26508
26509 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26510
26511       ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26512 if test "x$ac_cv_header_openssl_x509_h" = xyes
26513 then :
26514   printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26515
26516 fi
26517 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26518 if test "x$ac_cv_header_openssl_rsa_h" = xyes
26519 then :
26520   printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26521
26522 fi
26523 ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26524 if test "x$ac_cv_header_openssl_crypto_h" = xyes
26525 then :
26526   printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26527
26528 fi
26529 ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26530 if test "x$ac_cv_header_openssl_pem_h" = xyes
26531 then :
26532   printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26533
26534 fi
26535 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26536 if test "x$ac_cv_header_openssl_ssl_h" = xyes
26537 then :
26538   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26539
26540 fi
26541 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26542 if test "x$ac_cv_header_openssl_err_h" = xyes
26543 then :
26544   printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26545
26546 fi
26547
26548
26549 else $as_nop
26550
26551       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26552 printf "%s\n" "no" >&6; }
26553
26554 fi
26555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26556     test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26557   else
26558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26559 printf "%s\n" "no" >&6; }
26560   fi
26561 else
26562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26563 printf "%s\n" "no" >&6; }
26564 fi
26565
26566
26567
26568 if test "x$OPT_OPENSSL" != xno; then
26569   ssl_msg=
26570
26571     CLEANLDFLAGS="$LDFLAGS"
26572   CLEANCPPFLAGS="$CPPFLAGS"
26573   CLEANLIBS="$LIBS"
26574
26575     case $host in
26576     *-*-msys* | *-*-mingw*)
26577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26578 printf %s "checking for gdi32... " >&6; }
26579       my_ac_save_LIBS=$LIBS
26580       LIBS="-lgdi32 $LIBS"
26581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582 /* end confdefs.h.  */
26583
26584         #include <windef.h>
26585         #include <wingdi.h>
26586
26587 int main (void)
26588 {
26589
26590           GdiFlush();
26591
26592  ;
26593  return 0;
26594 }
26595 _ACEOF
26596 if ac_fn_c_try_link "$LINENO"
26597 then :
26598            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26599 printf "%s\n" "yes" >&6; }
26600 else $as_nop
26601            LIBS=$my_ac_save_LIBS
26602         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26603 printf "%s\n" "no" >&6; }
26604
26605 fi
26606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26607     conftest$ac_exeext conftest.$ac_ext
26608       ;;
26609   esac
26610
26611   case "$OPT_OPENSSL" in
26612   yes)
26613         PKGTEST="yes"
26614     PREFIX_OPENSSL=
26615     ;;
26616   *)
26617         PKGTEST="no"
26618     PREFIX_OPENSSL=$OPT_OPENSSL
26619
26620                 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26621     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26622       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26623 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26624       PKGTEST="yes"
26625     fi
26626
26627     if test "$PKGTEST" != "yes"; then
26628       # try lib64 instead
26629       OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26630       if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26631         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26632 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26633         PKGTEST="yes"
26634       fi
26635     fi
26636
26637     if test "$PKGTEST" != "yes"; then
26638       if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26639         as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26640       fi
26641     fi
26642
26643             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26644     if test "$PREFIX_OPENSSL" != "/usr" ; then
26645       SSL_LDFLAGS="-L$LIB_OPENSSL"
26646       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26647     fi
26648     ;;
26649   esac
26650
26651   if test "$PKGTEST" = "yes"; then
26652
26653
26654     if test -n "$PKG_CONFIG"; then
26655       PKGCONFIG="$PKG_CONFIG"
26656     else
26657       if test -n "$ac_tool_prefix"; then
26658   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26659 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26661 printf %s "checking for $ac_word... " >&6; }
26662 if test ${ac_cv_path_PKGCONFIG+y}
26663 then :
26664   printf %s "(cached) " >&6
26665 else $as_nop
26666   case $PKGCONFIG in
26667   [\\/]* | ?:[\\/]*)
26668   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26669   ;;
26670   *)
26671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26672 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26673 for as_dir in $as_dummy
26674 do
26675   IFS=$as_save_IFS
26676   case $as_dir in #(((
26677     '') as_dir=./ ;;
26678     */) ;;
26679     *) as_dir=$as_dir/ ;;
26680   esac
26681     for ac_exec_ext in '' $ac_executable_extensions; do
26682   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26683     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26684     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26685     break 2
26686   fi
26687 done
26688   done
26689 IFS=$as_save_IFS
26690
26691   ;;
26692 esac
26693 fi
26694 PKGCONFIG=$ac_cv_path_PKGCONFIG
26695 if test -n "$PKGCONFIG"; then
26696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26697 printf "%s\n" "$PKGCONFIG" >&6; }
26698 else
26699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26700 printf "%s\n" "no" >&6; }
26701 fi
26702
26703
26704 fi
26705 if test -z "$ac_cv_path_PKGCONFIG"; then
26706   ac_pt_PKGCONFIG=$PKGCONFIG
26707   # Extract the first word of "pkg-config", so it can be a program name with args.
26708 set dummy pkg-config; ac_word=$2
26709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26710 printf %s "checking for $ac_word... " >&6; }
26711 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26712 then :
26713   printf %s "(cached) " >&6
26714 else $as_nop
26715   case $ac_pt_PKGCONFIG in
26716   [\\/]* | ?:[\\/]*)
26717   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26718   ;;
26719   *)
26720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26721 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26722 for as_dir in $as_dummy
26723 do
26724   IFS=$as_save_IFS
26725   case $as_dir in #(((
26726     '') as_dir=./ ;;
26727     */) ;;
26728     *) as_dir=$as_dir/ ;;
26729   esac
26730     for ac_exec_ext in '' $ac_executable_extensions; do
26731   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26732     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26733     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26734     break 2
26735   fi
26736 done
26737   done
26738 IFS=$as_save_IFS
26739
26740   ;;
26741 esac
26742 fi
26743 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26744 if test -n "$ac_pt_PKGCONFIG"; then
26745   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26746 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26747 else
26748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26749 printf "%s\n" "no" >&6; }
26750 fi
26751
26752   if test "x$ac_pt_PKGCONFIG" = x; then
26753     PKGCONFIG="no"
26754   else
26755     case $cross_compiling:$ac_tool_warned in
26756 yes:)
26757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26759 ac_tool_warned=yes ;;
26760 esac
26761     PKGCONFIG=$ac_pt_PKGCONFIG
26762   fi
26763 else
26764   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26765 fi
26766
26767     fi
26768
26769     if test "x$PKGCONFIG" != "xno"; then
26770       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26771 printf %s "checking for openssl options with pkg-config... " >&6; }
26772             itexists=`
26773     if test -n "$OPENSSL_PCDIR"; then
26774       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26775       export PKG_CONFIG_LIBDIR
26776     fi
26777          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26778
26779       if test -z "$itexists"; then
26780                         PKGCONFIG="no"
26781         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26782 printf "%s\n" "no" >&6; }
26783       else
26784         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26785 printf "%s\n" "found" >&6; }
26786       fi
26787     fi
26788
26789
26790     if test "$PKGCONFIG" != "no" ; then
26791       SSL_LIBS=`
26792     if test -n "$OPENSSL_PCDIR"; then
26793       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26794       export PKG_CONFIG_LIBDIR
26795     fi
26796          $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26797
26798       SSL_LDFLAGS=`
26799     if test -n "$OPENSSL_PCDIR"; then
26800       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26801       export PKG_CONFIG_LIBDIR
26802     fi
26803          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26804
26805       SSL_CPPFLAGS=`
26806     if test -n "$OPENSSL_PCDIR"; then
26807       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26808       export PKG_CONFIG_LIBDIR
26809     fi
26810          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26811
26812
26813       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26814 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26815       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26816 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26817       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26818 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26819
26820       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26821
26822                                           LIBS="$SSL_LIBS $LIBS"
26823     fi
26824   fi
26825
26826     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26827   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26828
26829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26830 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26831 if test ${ac_cv_lib_crypto_HMAC_Update+y}
26832 then :
26833   printf %s "(cached) " >&6
26834 else $as_nop
26835   ac_check_lib_save_LIBS=$LIBS
26836 LIBS="-lcrypto  $LIBS"
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h.  */
26839
26840
26841 #ifdef __cplusplus
26842 extern "C"
26843 #endif
26844 char HMAC_Update ();
26845 int main (void)
26846 {
26847 return HMAC_Update ();
26848  ;
26849  return 0;
26850 }
26851 _ACEOF
26852 if ac_fn_c_try_link "$LINENO"
26853 then :
26854   ac_cv_lib_crypto_HMAC_Update=yes
26855 else $as_nop
26856   ac_cv_lib_crypto_HMAC_Update=no
26857 fi
26858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26859     conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26861 fi
26862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26863 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26864 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26865 then :
26866
26867      HAVECRYPTO="yes"
26868      LIBS="-lcrypto $LIBS"
26869
26870 else $as_nop
26871
26872      if test -n "$LIB_OPENSSL" ; then
26873        LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26874      fi
26875      if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26876        # only set this if pkg-config wasn't used
26877        CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26878      fi
26879      # Linking previously failed, try extra paths from --with-openssl or
26880      # pkg-config.  Use a different function name to avoid reusing the earlier
26881      # cached result.
26882      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26883 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26884 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26885 then :
26886   printf %s "(cached) " >&6
26887 else $as_nop
26888   ac_check_lib_save_LIBS=$LIBS
26889 LIBS="-lcrypto  $LIBS"
26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h.  */
26892
26893
26894 #ifdef __cplusplus
26895 extern "C"
26896 #endif
26897 char HMAC_Init_ex ();
26898 int main (void)
26899 {
26900 return HMAC_Init_ex ();
26901  ;
26902  return 0;
26903 }
26904 _ACEOF
26905 if ac_fn_c_try_link "$LINENO"
26906 then :
26907   ac_cv_lib_crypto_HMAC_Init_ex=yes
26908 else $as_nop
26909   ac_cv_lib_crypto_HMAC_Init_ex=no
26910 fi
26911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26912     conftest$ac_exeext conftest.$ac_ext
26913 LIBS=$ac_check_lib_save_LIBS
26914 fi
26915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26916 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26917 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26918 then :
26919
26920        HAVECRYPTO="yes"
26921        LIBS="-lcrypto $LIBS"
26922 else $as_nop
26923
26924
26925               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26926 printf %s "checking OpenSSL linking with -ldl... " >&6; }
26927        LIBS="-lcrypto $CLEANLIBS -ldl"
26928        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h.  */
26930
26931          #include <openssl/err.h>
26932
26933 int main (void)
26934 {
26935
26936          ERR_clear_error();
26937
26938  ;
26939  return 0;
26940 }
26941 _ACEOF
26942 if ac_fn_c_try_link "$LINENO"
26943 then :
26944
26945          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26946 printf "%s\n" "yes" >&6; }
26947          HAVECRYPTO="yes"
26948
26949 else $as_nop
26950
26951          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952 printf "%s\n" "no" >&6; }
26953
26954          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26955 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26956          LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26957          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h.  */
26959
26960
26961            #include <openssl/err.h>
26962
26963 int main (void)
26964 {
26965
26966            ERR_clear_error();
26967
26968  ;
26969  return 0;
26970 }
26971 _ACEOF
26972 if ac_fn_c_try_link "$LINENO"
26973 then :
26974
26975            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26976 printf "%s\n" "yes" >&6; }
26977            HAVECRYPTO="yes"
26978
26979 else $as_nop
26980
26981            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26982 printf "%s\n" "no" >&6; }
26983            LDFLAGS="$CLEANLDFLAGS"
26984            CPPFLAGS="$CLEANCPPFLAGS"
26985            LIBS="$CLEANLIBS"
26986
26987
26988 fi
26989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26990     conftest$ac_exeext conftest.$ac_ext
26991
26992
26993 fi
26994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26995     conftest$ac_exeext conftest.$ac_ext
26996
26997
26998 fi
26999
27000
27001 fi
27002
27003
27004   if test X"$HAVECRYPTO" = X"yes"; then
27005
27006     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
27007 printf %s "checking for SSL_connect in -lssl... " >&6; }
27008 if test ${ac_cv_lib_ssl_SSL_connect+y}
27009 then :
27010   printf %s "(cached) " >&6
27011 else $as_nop
27012   ac_check_lib_save_LIBS=$LIBS
27013 LIBS="-lssl  $LIBS"
27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27015 /* end confdefs.h.  */
27016
27017
27018 #ifdef __cplusplus
27019 extern "C"
27020 #endif
27021 char SSL_connect ();
27022 int main (void)
27023 {
27024 return SSL_connect ();
27025  ;
27026  return 0;
27027 }
27028 _ACEOF
27029 if ac_fn_c_try_link "$LINENO"
27030 then :
27031   ac_cv_lib_ssl_SSL_connect=yes
27032 else $as_nop
27033   ac_cv_lib_ssl_SSL_connect=no
27034 fi
27035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27036     conftest$ac_exeext conftest.$ac_ext
27037 LIBS=$ac_check_lib_save_LIBS
27038 fi
27039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
27040 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
27041 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
27042 then :
27043   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
27044
27045   LIBS="-lssl $LIBS"
27046
27047 fi
27048
27049
27050     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
27051                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
27052 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
27053         OLIBS=$LIBS
27054         LIBS="-lRSAglue -lrsaref $LIBS"
27055         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
27056 printf %s "checking for SSL_connect in -lssl... " >&6; }
27057 if test ${ac_cv_lib_ssl_SSL_connect+y}
27058 then :
27059   printf %s "(cached) " >&6
27060 else $as_nop
27061   ac_check_lib_save_LIBS=$LIBS
27062 LIBS="-lssl  $LIBS"
27063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27064 /* end confdefs.h.  */
27065
27066
27067 #ifdef __cplusplus
27068 extern "C"
27069 #endif
27070 char SSL_connect ();
27071 int main (void)
27072 {
27073 return SSL_connect ();
27074  ;
27075  return 0;
27076 }
27077 _ACEOF
27078 if ac_fn_c_try_link "$LINENO"
27079 then :
27080   ac_cv_lib_ssl_SSL_connect=yes
27081 else $as_nop
27082   ac_cv_lib_ssl_SSL_connect=no
27083 fi
27084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27085     conftest$ac_exeext conftest.$ac_ext
27086 LIBS=$ac_check_lib_save_LIBS
27087 fi
27088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
27089 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
27090 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
27091 then :
27092   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
27093
27094   LIBS="-lssl $LIBS"
27095
27096 fi
27097
27098         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
27099                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27100 printf "%s\n" "no" >&6; }
27101             LIBS=$OLIBS
27102         else
27103             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27104 printf "%s\n" "yes" >&6; }
27105         fi
27106
27107     else
27108
27109                    for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
27110 do :
27111   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27113 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27114 then :
27115   cat >>confdefs.h <<_ACEOF
27116 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27117 _ACEOF
27118  ssl_msg="OpenSSL"
27119         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27120         OPENSSL_ENABLED=1
27121
27122 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
27123
27124 fi
27125
27126 done
27127
27128       if test $ac_cv_header_openssl_x509_h = no; then
27129                                 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
27130 if test "x$ac_cv_header_x509_h" = xyes
27131 then :
27132   printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
27133
27134 fi
27135 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
27136 if test "x$ac_cv_header_rsa_h" = xyes
27137 then :
27138   printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
27139
27140 fi
27141 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
27142 if test "x$ac_cv_header_crypto_h" = xyes
27143 then :
27144   printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
27145
27146 fi
27147 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
27148 if test "x$ac_cv_header_pem_h" = xyes
27149 then :
27150   printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
27151
27152 fi
27153 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
27154 if test "x$ac_cv_header_ssl_h" = xyes
27155 then :
27156   printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
27157
27158 fi
27159 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
27160 if test "x$ac_cv_header_err_h" = xyes
27161 then :
27162   printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
27163
27164 fi
27165
27166
27167         if test $ac_cv_header_x509_h = yes &&
27168            test $ac_cv_header_crypto_h = yes &&
27169            test $ac_cv_header_ssl_h = yes; then
27170                     ssl_msg="OpenSSL"
27171           OPENSSL_ENABLED=1
27172         fi
27173       fi
27174     fi
27175
27176     if test X"$OPENSSL_ENABLED" != X"1"; then
27177        LIBS="$CLEANLIBS"
27178     fi
27179
27180     if test X"$OPT_OPENSSL" != Xoff &&
27181        test "$OPENSSL_ENABLED" != "1"; then
27182       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
27183     fi
27184   fi
27185
27186   if test X"$OPENSSL_ENABLED" = X"1"; then
27187
27188     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
27189 printf %s "checking for BoringSSL... " >&6; }
27190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27191 /* end confdefs.h.  */
27192
27193
27194                 #include <openssl/base.h>
27195
27196 int main (void)
27197 {
27198
27199                 #ifndef OPENSSL_IS_BORINGSSL
27200                 #error not boringssl
27201                 #endif
27202
27203  ;
27204  return 0;
27205 }
27206
27207 _ACEOF
27208 if ac_fn_c_try_compile "$LINENO"
27209 then :
27210
27211         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27212 printf "%s\n" "yes" >&6; }
27213         ssl_msg="BoringSSL"
27214
27215 else $as_nop
27216
27217         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27218 printf "%s\n" "no" >&6; }
27219
27220 fi
27221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27222
27223     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5
27224 printf %s "checking for AWS-LC... " >&6; }
27225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h.  */
27227
27228
27229                 #include <openssl/base.h>
27230
27231 int main (void)
27232 {
27233
27234                 #ifndef OPENSSL_IS_AWSLC
27235                 #error not AWS-LC
27236                 #endif
27237
27238  ;
27239  return 0;
27240 }
27241
27242 _ACEOF
27243 if ac_fn_c_try_compile "$LINENO"
27244 then :
27245
27246         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27247 printf "%s\n" "yes" >&6; }
27248         ssl_msg="AWS-LC"
27249
27250 else $as_nop
27251
27252         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27253 printf "%s\n" "no" >&6; }
27254
27255 fi
27256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27257
27258     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
27259 printf %s "checking for libressl... " >&6; }
27260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h.  */
27262
27263
27264 #include <openssl/opensslv.h>
27265
27266 int main (void)
27267 {
27268
27269         int dummy = LIBRESSL_VERSION_NUMBER;
27270
27271  ;
27272  return 0;
27273 }
27274
27275 _ACEOF
27276 if ac_fn_c_try_compile "$LINENO"
27277 then :
27278
27279       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27280 printf "%s\n" "yes" >&6; }
27281
27282 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
27283
27284       ssl_msg="libressl"
27285
27286 else $as_nop
27287
27288       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27289 printf "%s\n" "no" >&6; }
27290
27291 fi
27292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27293
27294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
27295 printf %s "checking for OpenSSL >= v3... " >&6; }
27296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h.  */
27298
27299
27300 #include <openssl/opensslv.h>
27301
27302 int main (void)
27303 {
27304
27305         #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
27306         return 0;
27307         #else
27308         #error older than 3
27309         #endif
27310
27311  ;
27312  return 0;
27313 }
27314
27315 _ACEOF
27316 if ac_fn_c_try_compile "$LINENO"
27317 then :
27318
27319       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27320 printf "%s\n" "yes" >&6; }
27321
27322 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
27323
27324       ssl_msg="OpenSSL v3+"
27325
27326 else $as_nop
27327
27328       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329 printf "%s\n" "no" >&6; }
27330
27331 fi
27332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27333   fi
27334
27335   if test "$OPENSSL_ENABLED" = "1"; then
27336     if test -n "$LIB_OPENSSL"; then
27337                             if test "x$cross_compiling" != "xyes"; then
27338          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
27339          export CURL_LIBRARY_PATH
27340          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
27341 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
27342        fi
27343     fi
27344     check_for_ca_bundle=1
27345   fi
27346
27347   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27348 fi
27349
27350 if test X"$OPT_OPENSSL" != Xno &&
27351   test "$OPENSSL_ENABLED" != "1"; then
27352   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
27353 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
27354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
27355 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
27356   as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
27357 fi
27358
27359
27360 if test X"$OPENSSL_ENABLED" = X"1"; then
27361
27362 # Check whether --with-random was given.
27363 if test ${with_random+y}
27364 then :
27365   withval=$with_random;  RANDOM_FILE="$withval"
27366 else $as_nop
27367
27368           if test x$cross_compiling != xyes; then
27369                         as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27371 printf %s "checking for \"/dev/urandom\"... " >&6; }
27372 if eval test \${$as_ac_File+y}
27373 then :
27374   printf %s "(cached) " >&6
27375 else $as_nop
27376   test "$cross_compiling" = yes &&
27377   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27378 if test -r ""/dev/urandom""; then
27379   eval "$as_ac_File=yes"
27380 else
27381   eval "$as_ac_File=no"
27382 fi
27383 fi
27384 eval ac_res=\$$as_ac_File
27385                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27386 printf "%s\n" "$ac_res" >&6; }
27387 if eval test \"x\$"$as_ac_File"\" = x"yes"
27388 then :
27389    RANDOM_FILE="/dev/urandom"
27390 fi
27391
27392           else
27393             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
27394 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
27395           fi
27396
27397
27398 fi
27399
27400   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
27401
27402
27403 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
27404
27405   fi
27406 fi
27407
27408 if test "$OPENSSL_ENABLED" = "1"; then
27409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
27410 printf %s "checking for SRP support in OpenSSL... " >&6; }
27411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27412 /* end confdefs.h.  */
27413
27414
27415 #include <openssl/ssl.h>
27416
27417 int main (void)
27418 {
27419
27420       SSL_CTX_set_srp_username(NULL, "");
27421       SSL_CTX_set_srp_password(NULL, "");
27422
27423  ;
27424  return 0;
27425 }
27426
27427 _ACEOF
27428 if ac_fn_c_try_link "$LINENO"
27429 then :
27430
27431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27432 printf "%s\n" "yes" >&6; }
27433
27434 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
27435
27436     HAVE_OPENSSL_SRP=1
27437
27438
27439 else $as_nop
27440
27441     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27442 printf "%s\n" "no" >&6; }
27443
27444 fi
27445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27446     conftest$ac_exeext conftest.$ac_ext
27447 fi
27448
27449 if test X"$OPENSSL_ENABLED" = X"1"; then
27450 # Check whether --enable-openssl-auto-load-config was given.
27451 if test ${enable_openssl_auto_load_config+y}
27452 then :
27453   enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
27454     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27455 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27456
27457 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27458
27459   fi
27460
27461 fi
27462
27463 fi
27464
27465
27466
27467 if test "x$OPT_GNUTLS" != xno; then
27468   ssl_msg=
27469
27470   if test X"$OPT_GNUTLS" != Xno; then
27471
27472     addld=""
27473     addlib=""
27474     gtlslib=""
27475     version=""
27476     addcflags=""
27477
27478     if test "x$OPT_GNUTLS" = "xyes"; then
27479
27480     if test -n "$PKG_CONFIG"; then
27481       PKGCONFIG="$PKG_CONFIG"
27482     else
27483       if test -n "$ac_tool_prefix"; then
27484   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27487 printf %s "checking for $ac_word... " >&6; }
27488 if test ${ac_cv_path_PKGCONFIG+y}
27489 then :
27490   printf %s "(cached) " >&6
27491 else $as_nop
27492   case $PKGCONFIG in
27493   [\\/]* | ?:[\\/]*)
27494   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27495   ;;
27496   *)
27497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27499 for as_dir in $as_dummy
27500 do
27501   IFS=$as_save_IFS
27502   case $as_dir in #(((
27503     '') as_dir=./ ;;
27504     */) ;;
27505     *) as_dir=$as_dir/ ;;
27506   esac
27507     for ac_exec_ext in '' $ac_executable_extensions; do
27508   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27509     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27510     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27511     break 2
27512   fi
27513 done
27514   done
27515 IFS=$as_save_IFS
27516
27517   ;;
27518 esac
27519 fi
27520 PKGCONFIG=$ac_cv_path_PKGCONFIG
27521 if test -n "$PKGCONFIG"; then
27522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27523 printf "%s\n" "$PKGCONFIG" >&6; }
27524 else
27525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27526 printf "%s\n" "no" >&6; }
27527 fi
27528
27529
27530 fi
27531 if test -z "$ac_cv_path_PKGCONFIG"; then
27532   ac_pt_PKGCONFIG=$PKGCONFIG
27533   # Extract the first word of "pkg-config", so it can be a program name with args.
27534 set dummy pkg-config; ac_word=$2
27535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27536 printf %s "checking for $ac_word... " >&6; }
27537 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27538 then :
27539   printf %s "(cached) " >&6
27540 else $as_nop
27541   case $ac_pt_PKGCONFIG in
27542   [\\/]* | ?:[\\/]*)
27543   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27544   ;;
27545   *)
27546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27547 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27548 for as_dir in $as_dummy
27549 do
27550   IFS=$as_save_IFS
27551   case $as_dir in #(((
27552     '') as_dir=./ ;;
27553     */) ;;
27554     *) as_dir=$as_dir/ ;;
27555   esac
27556     for ac_exec_ext in '' $ac_executable_extensions; do
27557   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27558     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27559     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27560     break 2
27561   fi
27562 done
27563   done
27564 IFS=$as_save_IFS
27565
27566   ;;
27567 esac
27568 fi
27569 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27570 if test -n "$ac_pt_PKGCONFIG"; then
27571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27572 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27573 else
27574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27575 printf "%s\n" "no" >&6; }
27576 fi
27577
27578   if test "x$ac_pt_PKGCONFIG" = x; then
27579     PKGCONFIG="no"
27580   else
27581     case $cross_compiling:$ac_tool_warned in
27582 yes:)
27583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27585 ac_tool_warned=yes ;;
27586 esac
27587     PKGCONFIG=$ac_pt_PKGCONFIG
27588   fi
27589 else
27590   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27591 fi
27592
27593     fi
27594
27595     if test "x$PKGCONFIG" != "xno"; then
27596       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27597 printf %s "checking for gnutls options with pkg-config... " >&6; }
27598             itexists=`
27599     if test -n ""; then
27600       PKG_CONFIG_LIBDIR=""
27601       export PKG_CONFIG_LIBDIR
27602     fi
27603          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27604
27605       if test -z "$itexists"; then
27606                         PKGCONFIG="no"
27607         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27608 printf "%s\n" "no" >&6; }
27609       else
27610         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27611 printf "%s\n" "found" >&6; }
27612       fi
27613     fi
27614
27615
27616       if test "$PKGCONFIG" != "no" ; then
27617         addlib=`$PKGCONFIG --libs-only-l gnutls`
27618         addld=`$PKGCONFIG --libs-only-L gnutls`
27619         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27620         version=`$PKGCONFIG --modversion gnutls`
27621         gtlslib=`echo $addld | $SED -e 's/^-L//'`
27622       else
27623                         check=`libgnutls-config --version 2>/dev/null`
27624         if test -n "$check"; then
27625           addlib=`libgnutls-config --libs`
27626           addcflags=`libgnutls-config --cflags`
27627           version=`libgnutls-config --version`
27628           gtlslib=`libgnutls-config --prefix`/lib$libsuff
27629         fi
27630       fi
27631     else
27632                   cfg=$OPT_GNUTLS/bin/libgnutls-config
27633       check=`$cfg --version 2>/dev/null`
27634       if test -n "$check"; then
27635         addlib=`$cfg --libs`
27636         addcflags=`$cfg --cflags`
27637         version=`$cfg --version`
27638         gtlslib=`$cfg --prefix`/lib$libsuff
27639       else
27640                 addlib=-lgnutls
27641         addld=-L$OPT_GNUTLS/lib$libsuff
27642         addcflags=-I$OPT_GNUTLS/include
27643         version="" # we just don't know
27644         gtlslib=$OPT_GNUTLS/lib$libsuff
27645       fi
27646     fi
27647
27648     if test -z "$version"; then
27649             version="unknown"
27650     fi
27651
27652     if test -n "$addlib"; then
27653
27654       CLEANLIBS="$LIBS"
27655       CLEANCPPFLAGS="$CPPFLAGS"
27656       CLEANLDFLAGS="$LDFLAGS"
27657
27658       LIBS="$addlib $LIBS"
27659       LDFLAGS="$LDFLAGS $addld"
27660       if test "$addcflags" != "-I/usr/include"; then
27661          CPPFLAGS="$CPPFLAGS $addcflags"
27662       fi
27663
27664             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27665 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27666 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27667 then :
27668   printf %s "(cached) " >&6
27669 else $as_nop
27670   ac_check_lib_save_LIBS=$LIBS
27671 LIBS="-lgnutls  $LIBS"
27672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27673 /* end confdefs.h.  */
27674
27675
27676 #ifdef __cplusplus
27677 extern "C"
27678 #endif
27679 char gnutls_x509_crt_get_dn2 ();
27680 int main (void)
27681 {
27682 return gnutls_x509_crt_get_dn2 ();
27683  ;
27684  return 0;
27685 }
27686 _ACEOF
27687 if ac_fn_c_try_link "$LINENO"
27688 then :
27689   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27690 else $as_nop
27691   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27692 fi
27693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27694     conftest$ac_exeext conftest.$ac_ext
27695 LIBS=$ac_check_lib_save_LIBS
27696 fi
27697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27698 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27699 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27700 then :
27701
27702
27703 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27704
27705        USE_GNUTLS=1
27706
27707        GNUTLS_ENABLED=1
27708        USE_GNUTLS="yes"
27709        ssl_msg="GnuTLS"
27710        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27711
27712 else $as_nop
27713
27714          LIBS="$CLEANLIBS"
27715          CPPFLAGS="$CLEANCPPFLAGS"
27716
27717 fi
27718
27719
27720       if test "x$USE_GNUTLS" = "xyes"; then
27721         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27722 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27723         check_for_ca_bundle=1
27724         if test -n "$gtlslib"; then
27725                                                   if test "x$cross_compiling" != "xyes"; then
27726             CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27727             export CURL_LIBRARY_PATH
27728             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27729 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27730           fi
27731         fi
27732       fi
27733
27734     fi
27735
27736   fi
27737   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27738 fi
27739
27740
27741 if test "$GNUTLS_ENABLED" = "1"; then
27742   USE_GNUTLS_NETTLE=
27743   # First check if we can detect either crypto library via transitive linking
27744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27745 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27746 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27747 then :
27748   printf %s "(cached) " >&6
27749 else $as_nop
27750   ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lgnutls  $LIBS"
27752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h.  */
27754
27755
27756 #ifdef __cplusplus
27757 extern "C"
27758 #endif
27759 char nettle_MD5Init ();
27760 int main (void)
27761 {
27762 return nettle_MD5Init ();
27763  ;
27764  return 0;
27765 }
27766 _ACEOF
27767 if ac_fn_c_try_link "$LINENO"
27768 then :
27769   ac_cv_lib_gnutls_nettle_MD5Init=yes
27770 else $as_nop
27771   ac_cv_lib_gnutls_nettle_MD5Init=no
27772 fi
27773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27774     conftest$ac_exeext conftest.$ac_ext
27775 LIBS=$ac_check_lib_save_LIBS
27776 fi
27777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27778 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27779 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27780 then :
27781    USE_GNUTLS_NETTLE=1
27782 fi
27783
27784
27785   # If not, try linking directly to both of them to see if they are available
27786   if test "$USE_GNUTLS_NETTLE" = ""; then
27787     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27788 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27789 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27790 then :
27791   printf %s "(cached) " >&6
27792 else $as_nop
27793   ac_check_lib_save_LIBS=$LIBS
27794 LIBS="-lnettle  $LIBS"
27795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27796 /* end confdefs.h.  */
27797
27798
27799 #ifdef __cplusplus
27800 extern "C"
27801 #endif
27802 char nettle_MD5Init ();
27803 int main (void)
27804 {
27805 return nettle_MD5Init ();
27806  ;
27807  return 0;
27808 }
27809 _ACEOF
27810 if ac_fn_c_try_link "$LINENO"
27811 then :
27812   ac_cv_lib_nettle_nettle_MD5Init=yes
27813 else $as_nop
27814   ac_cv_lib_nettle_nettle_MD5Init=no
27815 fi
27816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27817     conftest$ac_exeext conftest.$ac_ext
27818 LIBS=$ac_check_lib_save_LIBS
27819 fi
27820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27821 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27822 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27823 then :
27824    USE_GNUTLS_NETTLE=1
27825 fi
27826
27827   fi
27828   if test "$USE_GNUTLS_NETTLE" = ""; then
27829     as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27830   fi
27831   LIBS="-lnettle $LIBS"
27832 fi
27833
27834 if test "$GNUTLS_ENABLED" = "1"; then
27835   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27836 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27837 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27838 then :
27839   printf %s "(cached) " >&6
27840 else $as_nop
27841   ac_check_lib_save_LIBS=$LIBS
27842 LIBS="-lgnutls  $LIBS"
27843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844 /* end confdefs.h.  */
27845
27846
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char gnutls_srp_verifier ();
27851 int main (void)
27852 {
27853 return gnutls_srp_verifier ();
27854  ;
27855  return 0;
27856 }
27857 _ACEOF
27858 if ac_fn_c_try_link "$LINENO"
27859 then :
27860   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27861 else $as_nop
27862   ac_cv_lib_gnutls_gnutls_srp_verifier=no
27863 fi
27864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27865     conftest$ac_exeext conftest.$ac_ext
27866 LIBS=$ac_check_lib_save_LIBS
27867 fi
27868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27869 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27870 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27871 then :
27872
27873
27874 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27875
27876      HAVE_GNUTLS_SRP=1
27877
27878
27879 fi
27880
27881 fi
27882
27883
27884
27885
27886 if test "x$OPT_MBEDTLS" != xno; then
27887   _cppflags=$CPPFLAGS
27888   _ldflags=$LDFLAGS
27889   ssl_msg=
27890
27891   if test X"$OPT_MBEDTLS" != Xno; then
27892
27893     if test "$OPT_MBEDTLS" = "yes"; then
27894       OPT_MBEDTLS=""
27895     fi
27896
27897     if test -z "$OPT_MBEDTLS" ; then
27898
27899       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27900 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27901 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27902 then :
27903   printf %s "(cached) " >&6
27904 else $as_nop
27905   ac_check_lib_save_LIBS=$LIBS
27906 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908 /* end confdefs.h.  */
27909
27910
27911 #ifdef __cplusplus
27912 extern "C"
27913 #endif
27914 char mbedtls_havege_init ();
27915 int main (void)
27916 {
27917 return mbedtls_havege_init ();
27918  ;
27919  return 0;
27920 }
27921 _ACEOF
27922 if ac_fn_c_try_link "$LINENO"
27923 then :
27924   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27925 else $as_nop
27926   ac_cv_lib_mbedtls_mbedtls_havege_init=no
27927 fi
27928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27929     conftest$ac_exeext conftest.$ac_ext
27930 LIBS=$ac_check_lib_save_LIBS
27931 fi
27932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27933 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27934 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27935 then :
27936
27937
27938 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27939
27940          USE_MBEDTLS=1
27941
27942          MBEDTLS_ENABLED=1
27943          USE_MBEDTLS="yes"
27944          ssl_msg="mbedTLS"
27945          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27946
27947 fi
27948
27949     fi
27950
27951     addld=""
27952     addlib=""
27953     addcflags=""
27954     mbedtlslib=""
27955
27956     if test "x$USE_MBEDTLS" != "xyes"; then
27957             addld=-L$OPT_MBEDTLS/lib$libsuff
27958       addcflags=-I$OPT_MBEDTLS/include
27959       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27960
27961       LDFLAGS="$LDFLAGS $addld"
27962       if test "$addcflags" != "-I/usr/include"; then
27963          CPPFLAGS="$CPPFLAGS $addcflags"
27964       fi
27965
27966       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27967 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27968 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27969 then :
27970   printf %s "(cached) " >&6
27971 else $as_nop
27972   ac_check_lib_save_LIBS=$LIBS
27973 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h.  */
27976
27977
27978 #ifdef __cplusplus
27979 extern "C"
27980 #endif
27981 char mbedtls_ssl_init ();
27982 int main (void)
27983 {
27984 return mbedtls_ssl_init ();
27985  ;
27986  return 0;
27987 }
27988 _ACEOF
27989 if ac_fn_c_try_link "$LINENO"
27990 then :
27991   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27992 else $as_nop
27993   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27994 fi
27995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27996     conftest$ac_exeext conftest.$ac_ext
27997 LIBS=$ac_check_lib_save_LIBS
27998 fi
27999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
28000 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
28001 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
28002 then :
28003
28004
28005 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
28006
28007        USE_MBEDTLS=1
28008
28009        MBEDTLS_ENABLED=1
28010        USE_MBEDTLS="yes"
28011        ssl_msg="mbedTLS"
28012        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28013
28014 else $as_nop
28015
28016          CPPFLAGS=$_cppflags
28017          LDFLAGS=$_ldflags
28018
28019 fi
28020
28021     fi
28022
28023     if test "x$USE_MBEDTLS" = "xyes"; then
28024       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
28025 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
28026       check_for_ca_bundle=1
28027
28028       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
28029
28030       if test -n "$mbedtlslib"; then
28031                                         if test "x$cross_compiling" != "xyes"; then
28032           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
28033           export CURL_LIBRARY_PATH
28034           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
28035 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
28036         fi
28037       fi
28038     fi
28039
28040   fi
28041   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28042 fi
28043
28044
28045
28046
28047 case "$OPT_WOLFSSL" in
28048   yes|no)
28049     wolfpkg=""
28050     ;;
28051   *)
28052     wolfpkg="$withval/lib/pkgconfig"
28053     ;;
28054 esac
28055
28056 if test "x$OPT_WOLFSSL" != xno; then
28057   _cppflags=$CPPFLAGS
28058   _ldflags=$LDFLAGS
28059
28060   ssl_msg=
28061
28062   if test X"$OPT_WOLFSSL" != Xno; then
28063
28064     if test "$OPT_WOLFSSL" = "yes"; then
28065       OPT_WOLFSSL=""
28066     fi
28067
28068
28069     if test -n "$PKG_CONFIG"; then
28070       PKGCONFIG="$PKG_CONFIG"
28071     else
28072       if test -n "$ac_tool_prefix"; then
28073   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28076 printf %s "checking for $ac_word... " >&6; }
28077 if test ${ac_cv_path_PKGCONFIG+y}
28078 then :
28079   printf %s "(cached) " >&6
28080 else $as_nop
28081   case $PKGCONFIG in
28082   [\\/]* | ?:[\\/]*)
28083   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28084   ;;
28085   *)
28086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28088 for as_dir in $as_dummy
28089 do
28090   IFS=$as_save_IFS
28091   case $as_dir in #(((
28092     '') as_dir=./ ;;
28093     */) ;;
28094     *) as_dir=$as_dir/ ;;
28095   esac
28096     for ac_exec_ext in '' $ac_executable_extensions; do
28097   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28098     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28099     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28100     break 2
28101   fi
28102 done
28103   done
28104 IFS=$as_save_IFS
28105
28106   ;;
28107 esac
28108 fi
28109 PKGCONFIG=$ac_cv_path_PKGCONFIG
28110 if test -n "$PKGCONFIG"; then
28111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28112 printf "%s\n" "$PKGCONFIG" >&6; }
28113 else
28114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115 printf "%s\n" "no" >&6; }
28116 fi
28117
28118
28119 fi
28120 if test -z "$ac_cv_path_PKGCONFIG"; then
28121   ac_pt_PKGCONFIG=$PKGCONFIG
28122   # Extract the first word of "pkg-config", so it can be a program name with args.
28123 set dummy pkg-config; ac_word=$2
28124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28125 printf %s "checking for $ac_word... " >&6; }
28126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28127 then :
28128   printf %s "(cached) " >&6
28129 else $as_nop
28130   case $ac_pt_PKGCONFIG in
28131   [\\/]* | ?:[\\/]*)
28132   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28133   ;;
28134   *)
28135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28137 for as_dir in $as_dummy
28138 do
28139   IFS=$as_save_IFS
28140   case $as_dir in #(((
28141     '') as_dir=./ ;;
28142     */) ;;
28143     *) as_dir=$as_dir/ ;;
28144   esac
28145     for ac_exec_ext in '' $ac_executable_extensions; do
28146   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28147     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28148     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28149     break 2
28150   fi
28151 done
28152   done
28153 IFS=$as_save_IFS
28154
28155   ;;
28156 esac
28157 fi
28158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28159 if test -n "$ac_pt_PKGCONFIG"; then
28160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28162 else
28163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28164 printf "%s\n" "no" >&6; }
28165 fi
28166
28167   if test "x$ac_pt_PKGCONFIG" = x; then
28168     PKGCONFIG="no"
28169   else
28170     case $cross_compiling:$ac_tool_warned in
28171 yes:)
28172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28174 ac_tool_warned=yes ;;
28175 esac
28176     PKGCONFIG=$ac_pt_PKGCONFIG
28177   fi
28178 else
28179   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28180 fi
28181
28182     fi
28183
28184     if test "x$PKGCONFIG" != "xno"; then
28185       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
28186 printf %s "checking for wolfssl options with pkg-config... " >&6; }
28187             itexists=`
28188     if test -n "$wolfpkg"; then
28189       PKG_CONFIG_LIBDIR="$wolfpkg"
28190       export PKG_CONFIG_LIBDIR
28191     fi
28192          $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
28193
28194       if test -z "$itexists"; then
28195                         PKGCONFIG="no"
28196         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28197 printf "%s\n" "no" >&6; }
28198       else
28199         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28200 printf "%s\n" "found" >&6; }
28201       fi
28202     fi
28203
28204     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
28205 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
28206
28207     addld=""
28208     addlib=""
28209     addcflags=""
28210     if test "$PKGCONFIG" != "no" ; then
28211       addlib=`
28212     if test -n "$wolfpkg"; then
28213       PKG_CONFIG_LIBDIR="$wolfpkg"
28214       export PKG_CONFIG_LIBDIR
28215     fi
28216
28217         $PKGCONFIG --libs-only-l wolfssl`
28218       addld=`
28219     if test -n "$wolfpkg"; then
28220       PKG_CONFIG_LIBDIR="$wolfpkg"
28221       export PKG_CONFIG_LIBDIR
28222     fi
28223
28224         $PKGCONFIG --libs-only-L wolfssl`
28225       addcflags=`
28226     if test -n "$wolfpkg"; then
28227       PKG_CONFIG_LIBDIR="$wolfpkg"
28228       export PKG_CONFIG_LIBDIR
28229     fi
28230
28231         $PKGCONFIG --cflags-only-I wolfssl`
28232       version=`
28233     if test -n "$wolfpkg"; then
28234       PKG_CONFIG_LIBDIR="$wolfpkg"
28235       export PKG_CONFIG_LIBDIR
28236     fi
28237
28238         $PKGCONFIG --modversion wolfssl`
28239       wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
28240     else
28241       addlib=-lwolfssl
28242             if test -n "$OPT_WOLFSSL"; then
28243         addld=-L$OPT_WOLFSSL/lib$libsuff
28244         addcflags=-I$OPT_WOLFSSL/include
28245         wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
28246       fi
28247     fi
28248
28249     if test "x$USE_WOLFSSL" != "xyes"; then
28250
28251       LDFLAGS="$LDFLAGS $addld"
28252       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
28253 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
28254       if test "$addcflags" != "-I/usr/include"; then
28255          CPPFLAGS="$CPPFLAGS $addcflags"
28256          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
28257 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
28258       fi
28259
28260       my_ac_save_LIBS="$LIBS"
28261       LIBS="$addlib $LIBS"
28262       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
28263 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
28264
28265       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
28266 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
28267       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28268 /* end confdefs.h.  */
28269
28270
28271 /* These aren't needed for detection and confuse WolfSSL.
28272    They are set up properly later if it is detected.  */
28273 #undef SIZEOF_LONG
28274 #undef SIZEOF_LONG_LONG
28275 #include <wolfssl/options.h>
28276 #include <wolfssl/ssl.h>
28277
28278 int main (void)
28279 {
28280
28281           return wolfSSL_Init();
28282
28283  ;
28284  return 0;
28285 }
28286
28287 _ACEOF
28288 if ac_fn_c_try_link "$LINENO"
28289 then :
28290
28291          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28292 printf "%s\n" "yes" >&6; }
28293
28294 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
28295
28296          USE_WOLFSSL=1
28297
28298          WOLFSSL_ENABLED=1
28299          USE_WOLFSSL="yes"
28300          ssl_msg="WolfSSL"
28301          test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28302
28303 else $as_nop
28304
28305          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28306 printf "%s\n" "no" >&6; }
28307          CPPFLAGS=$_cppflags
28308          LDFLAGS=$_ldflags
28309          wolfssllibpath=""
28310
28311 fi
28312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28313     conftest$ac_exeext conftest.$ac_ext
28314       LIBS="$my_ac_save_LIBS"
28315     fi
28316
28317     if test "x$USE_WOLFSSL" = "xyes"; then
28318       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
28319 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
28320       check_for_ca_bundle=1
28321
28322
28323
28324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
28325 printf %s "checking size of long long... " >&6; }
28326   r=0
28327     for typesize in 8 4 2 16 1; do
28328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28329 /* end confdefs.h.  */
28330
28331 #include <sys/types.h>
28332
28333
28334 int main (void)
28335 {
28336 switch(0) {
28337        case 0:
28338        case (sizeof(long long) == $typesize):;
28339      }
28340
28341  ;
28342  return 0;
28343 }
28344 _ACEOF
28345 if ac_fn_c_try_compile "$LINENO"
28346 then :
28347
28348        r=$typesize
28349 else $as_nop
28350
28351        r=0
28352 fi
28353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28354         if test $r -gt 0; then
28355       break;
28356     fi
28357   done
28358   if test $r -eq 0; then
28359     as_fn_error $? "Failed to find size of long long" "$LINENO" 5
28360   fi
28361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
28362 printf "%s\n" "$r" >&6; }
28363     tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
28364   eval "$tname=$r"
28365
28366
28367 printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
28368
28369
28370
28371
28372       LIBS="$addlib -lm $LIBS"
28373
28374                         ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
28375 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
28376 then :
28377   printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
28378
28379 fi
28380 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
28381 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
28382 then :
28383   printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
28384
28385 fi
28386
28387
28388                   ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
28389 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
28390 then :
28391
28392
28393 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
28394
28395             WOLFSSL_NTLM=1
28396
28397
28398 fi
28399
28400
28401             ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
28402 if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
28403 then :
28404
28405
28406 printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
28407
28408             WOLFSSL_FULL_BIO=1
28409
28410
28411 fi
28412
28413
28414       if test -n "$wolfssllibpath"; then
28415                                         if test "x$cross_compiling" != "xyes"; then
28416           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
28417           export CURL_LIBRARY_PATH
28418           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
28419 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
28420         fi
28421       fi
28422     else
28423         as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
28424     fi
28425
28426   fi
28427   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28428 fi
28429
28430
28431
28432
28433 if test "x$OPT_BEARSSL" != xno; then
28434   _cppflags=$CPPFLAGS
28435   _ldflags=$LDFLAGS
28436   ssl_msg=
28437
28438   if test X"$OPT_BEARSSL" != Xno; then
28439
28440     if test "$OPT_BEARSSL" = "yes"; then
28441       OPT_BEARSSL=""
28442     fi
28443
28444     if test -z "$OPT_BEARSSL" ; then
28445
28446       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28447 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28448 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28449 then :
28450   printf %s "(cached) " >&6
28451 else $as_nop
28452   ac_check_lib_save_LIBS=$LIBS
28453 LIBS="-lbearssl -lbearssl $LIBS"
28454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28455 /* end confdefs.h.  */
28456
28457
28458 #ifdef __cplusplus
28459 extern "C"
28460 #endif
28461 char br_ssl_client_init_full ();
28462 int main (void)
28463 {
28464 return br_ssl_client_init_full ();
28465  ;
28466  return 0;
28467 }
28468 _ACEOF
28469 if ac_fn_c_try_link "$LINENO"
28470 then :
28471   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28472 else $as_nop
28473   ac_cv_lib_bearssl_br_ssl_client_init_full=no
28474 fi
28475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28476     conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28478 fi
28479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28480 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28481 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28482 then :
28483
28484
28485 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28486
28487          USE_BEARSSL=1
28488
28489          BEARSSL_ENABLED=1
28490          USE_BEARSSL="yes"
28491          ssl_msg="BearSSL"
28492          test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28493
28494 fi
28495
28496     fi
28497
28498     addld=""
28499     addlib=""
28500     addcflags=""
28501     bearssllib=""
28502
28503     if test "x$USE_BEARSSL" != "xyes"; then
28504             addld=-L$OPT_BEARSSL/lib$libsuff
28505       addcflags=-I$OPT_BEARSSL/include
28506       bearssllib=$OPT_BEARSSL/lib$libsuff
28507
28508       LDFLAGS="$LDFLAGS $addld"
28509       if test "$addcflags" != "-I/usr/include"; then
28510          CPPFLAGS="$CPPFLAGS $addcflags"
28511       fi
28512
28513       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28514 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28515 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28516 then :
28517   printf %s "(cached) " >&6
28518 else $as_nop
28519   ac_check_lib_save_LIBS=$LIBS
28520 LIBS="-lbearssl -lbearssl $LIBS"
28521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h.  */
28523
28524
28525 #ifdef __cplusplus
28526 extern "C"
28527 #endif
28528 char br_ssl_client_init_full ();
28529 int main (void)
28530 {
28531 return br_ssl_client_init_full ();
28532  ;
28533  return 0;
28534 }
28535 _ACEOF
28536 if ac_fn_c_try_link "$LINENO"
28537 then :
28538   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28539 else $as_nop
28540   ac_cv_lib_bearssl_br_ssl_client_init_full=no
28541 fi
28542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28543     conftest$ac_exeext conftest.$ac_ext
28544 LIBS=$ac_check_lib_save_LIBS
28545 fi
28546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28547 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28548 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28549 then :
28550
28551
28552 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28553
28554        USE_BEARSSL=1
28555
28556        BEARSSL_ENABLED=1
28557        USE_BEARSSL="yes"
28558        ssl_msg="BearSSL"
28559        test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28560
28561 else $as_nop
28562
28563          CPPFLAGS=$_cppflags
28564          LDFLAGS=$_ldflags
28565
28566 fi
28567
28568     fi
28569
28570     if test "x$USE_BEARSSL" = "xyes"; then
28571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28572 printf "%s\n" "$as_me: detected BearSSL" >&6;}
28573       check_for_ca_bundle=1
28574
28575       LIBS="-lbearssl $LIBS"
28576
28577       if test -n "$bearssllib"; then
28578                                         if test "x$cross_compiling" != "xyes"; then
28579           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28580           export CURL_LIBRARY_PATH
28581           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28582 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28583         fi
28584       fi
28585     fi
28586
28587   fi
28588   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28589 fi
28590
28591
28592
28593 if test "x$OPT_RUSTLS" != xno; then
28594   _cppflags=$CPPFLAGS
28595   _ldflags=$LDFLAGS
28596   ssl_msg=
28597
28598   if test X"$OPT_RUSTLS" != Xno; then
28599
28600     if test "$OPT_RUSTLS" = "yes"; then
28601       OPT_RUSTLS=""
28602     fi
28603
28604     case $host_os in
28605       darwin*)
28606         LDFLAGS="$LDFLAGS -framework Security"
28607         ;;
28608       *)
28609         ;;
28610     esac
28611
28612     if test -z "$OPT_RUSTLS" ; then
28613
28614       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
28615 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
28616 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
28617 then :
28618   printf %s "(cached) " >&6
28619 else $as_nop
28620   ac_check_lib_save_LIBS=$LIBS
28621 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623 /* end confdefs.h.  */
28624
28625
28626 #ifdef __cplusplus
28627 extern "C"
28628 #endif
28629 char rustls_client_session_read ();
28630 int main (void)
28631 {
28632 return rustls_client_session_read ();
28633  ;
28634  return 0;
28635 }
28636 _ACEOF
28637 if ac_fn_c_try_link "$LINENO"
28638 then :
28639   ac_cv_lib_rustls_rustls_client_session_read=yes
28640 else $as_nop
28641   ac_cv_lib_rustls_rustls_client_session_read=no
28642 fi
28643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28644     conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28646 fi
28647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
28648 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
28649 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
28650 then :
28651
28652
28653 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28654
28655          USE_RUSTLS=1
28656
28657          RUSTLS_ENABLED=1
28658          USE_RUSTLS="yes"
28659          ssl_msg="rustls"
28660          test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28661
28662 fi
28663
28664     fi
28665
28666     if test "x$USE_RUSTLS" != "xyes"; then
28667             addld=-L$OPT_RUSTLS/lib$libsuff
28668       addcflags=-I$OPT_RUSTLS/include
28669       rustlslib=$OPT_RUSTLS/lib$libsuff
28670
28671       LDFLAGS="$LDFLAGS $addld"
28672       if test "$addcflags" != "-I/usr/include"; then
28673          CPPFLAGS="$CPPFLAGS $addcflags"
28674       fi
28675
28676       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28677 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28678 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28679 then :
28680   printf %s "(cached) " >&6
28681 else $as_nop
28682   ac_check_lib_save_LIBS=$LIBS
28683 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28685 /* end confdefs.h.  */
28686
28687
28688 #ifdef __cplusplus
28689 extern "C"
28690 #endif
28691 char rustls_connection_read ();
28692 int main (void)
28693 {
28694 return rustls_connection_read ();
28695  ;
28696  return 0;
28697 }
28698 _ACEOF
28699 if ac_fn_c_try_link "$LINENO"
28700 then :
28701   ac_cv_lib_rustls_rustls_connection_read=yes
28702 else $as_nop
28703   ac_cv_lib_rustls_rustls_connection_read=no
28704 fi
28705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28706     conftest$ac_exeext conftest.$ac_ext
28707 LIBS=$ac_check_lib_save_LIBS
28708 fi
28709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28710 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28711 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28712 then :
28713
28714
28715 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28716
28717        USE_RUSTLS=1
28718
28719        RUSTLS_ENABLED=1
28720        USE_RUSTLS="yes"
28721        ssl_msg="rustls"
28722        test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28723
28724 else $as_nop
28725   as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28726 fi
28727
28728     fi
28729
28730     if test "x$USE_RUSTLS" = "xyes"; then
28731       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28732 printf "%s\n" "$as_me: detected rustls" >&6;}
28733       check_for_ca_bundle=1
28734
28735       LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28736
28737       if test -n "$rustlslib"; then
28738                                         if test "x$cross_compiling" != "xyes"; then
28739           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28740           export CURL_LIBRARY_PATH
28741           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28742 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28743         fi
28744       fi
28745     fi
28746
28747   fi
28748   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28749 fi
28750
28751
28752 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28753   LIBS="-ladvapi32 -lcrypt32 $LIBS"
28754 fi
28755
28756 if test "x$curl_cv_native_windows" = "xyes"; then
28757   LIBS="-lbcrypt $LIBS"
28758 fi
28759
28760 case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28761 in
28762 x)
28763   as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28764 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28765   ;;
28766 x1)
28767   # one SSL backend is enabled
28768
28769   SSL_ENABLED="1"
28770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28771 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28772   ;;
28773 xD)
28774   # explicitly built without TLS
28775   ;;
28776 xD*)
28777   as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28778 (e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28779 Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28780   ;;
28781 *)
28782   # more than one SSL backend is enabled
28783
28784   SSL_ENABLED="1"
28785
28786   CURL_WITH_MULTI_SSL="1"
28787
28788 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28789
28790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28791 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28792   ;;
28793 esac
28794
28795 if test -n "$ssl_backends"; then
28796   curl_ssl_msg="enabled ($ssl_backends)"
28797 fi
28798
28799 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28800 then
28801   if test -n "$SSL_ENABLED"
28802   then
28803     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28804   else
28805     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28806   fi
28807 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28808 then
28809
28810 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28811
28812 fi
28813
28814
28815 if test -n "$check_for_ca_bundle"; then
28816
28817
28818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28819 printf %s "checking default CA cert bundle/path... " >&6; }
28820
28821
28822 # Check whether --with-ca-bundle was given.
28823 if test ${with_ca_bundle+y}
28824 then :
28825   withval=$with_ca_bundle;
28826     want_ca="$withval"
28827     if test "x$want_ca" = "xyes"; then
28828       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28829     fi
28830
28831 else $as_nop
28832    want_ca="unset"
28833 fi
28834
28835
28836 # Check whether --with-ca-path was given.
28837 if test ${with_ca_path+y}
28838 then :
28839   withval=$with_ca_path;
28840     want_capath="$withval"
28841     if test "x$want_capath" = "xyes"; then
28842       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28843     fi
28844
28845 else $as_nop
28846    want_capath="unset"
28847 fi
28848
28849
28850   ca_warning="   (warning: certs not found)"
28851   capath_warning="   (warning: certs not found)"
28852   check_capath=""
28853
28854   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28855           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28856         ca="$want_ca"
28857     capath="$want_capath"
28858   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28859         ca="$want_ca"
28860     capath="no"
28861   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28862         if test "x$OPENSSL_ENABLED" != "x1" -a \
28863             "x$GNUTLS_ENABLED" != "x1" -a \
28864             "x$MBEDTLS_ENABLED" != "x1" -a \
28865             "x$WOLFSSL_ENABLED" != "x1"; then
28866       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS, mbedTLS or wolfSSL" "$LINENO" 5
28867     fi
28868     capath="$want_capath"
28869     ca="no"
28870   else
28871             ca="no"
28872     capath="no"
28873     if test "x$cross_compiling" != "xyes"; then
28874                   if test "x$want_ca" = "xunset"; then
28875                                 if test "x$prefix" != xNONE; then
28876           cac="${prefix}/share/curl/curl-ca-bundle.crt"
28877         else
28878           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28879         fi
28880
28881         for a in /etc/ssl/certs/ca-certificates.crt \
28882                  /etc/pki/tls/certs/ca-bundle.crt \
28883                  /usr/share/ssl/certs/ca-bundle.crt \
28884                  /usr/local/share/certs/ca-root-nss.crt \
28885                  /etc/ssl/cert.pem \
28886                  "$cac"; do
28887           if test -f "$a"; then
28888             ca="$a"
28889             break
28890           fi
28891         done
28892       fi
28893       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5
28894 printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;}
28895       if test "x$want_capath" = "xunset"; then
28896         if test "x$OPENSSL_ENABLED" = "x1" -o \
28897                 "x$GNUTLS_ENABLED" = "x1" -o \
28898                 "x$MBEDTLS_ENABLED" = "x1" -o \
28899                 "x$WOLFSSL_ENABLED" = "x1"; then
28900           check_capath="/etc/ssl/certs"
28901         fi
28902       fi
28903     else
28904             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28905 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28906     fi
28907   fi
28908
28909   if test "x$ca" = "xno" || test -f "$ca"; then
28910     ca_warning=""
28911   fi
28912
28913   if test "x$capath" != "xno"; then
28914     check_capath="$capath"
28915   fi
28916
28917   if test ! -z "$check_capath"; then
28918     for a in "$check_capath"; do
28919       if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
28920         if test "x$capath" = "xno"; then
28921           capath="$a"
28922         fi
28923         capath_warning=""
28924         break
28925       fi
28926     done
28927   fi
28928
28929   if test "x$capath" = "xno"; then
28930     capath_warning=""
28931   fi
28932
28933   if test "x$ca" != "xno"; then
28934     CURL_CA_BUNDLE='"'$ca'"'
28935
28936 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28937
28938
28939     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28940 printf "%s\n" "$ca" >&6; }
28941   fi
28942   if test "x$capath" != "xno"; then
28943     CURL_CA_PATH="\"$capath\""
28944
28945 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28946
28947     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28948 printf "%s\n" "$capath (capath)" >&6; }
28949   fi
28950   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28951     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952 printf "%s\n" "no" >&6; }
28953   fi
28954
28955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28956 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28957
28958 # Check whether --with-ca-fallback was given.
28959 if test ${with_ca_fallback+y}
28960 then :
28961   withval=$with_ca_fallback;
28962     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28963       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28964     fi
28965
28966 else $as_nop
28967    with_ca_fallback="no"
28968 fi
28969
28970   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28971 printf "%s\n" "$with_ca_fallback" >&6; }
28972   if test "x$with_ca_fallback" = "xyes"; then
28973     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28974       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28975     fi
28976
28977 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28978
28979   fi
28980
28981 fi
28982
28983
28984
28985 # Check whether --with-libpsl was given.
28986 if test ${with_libpsl+y}
28987 then :
28988   withval=$with_libpsl; with_libpsl=$withval
28989 else $as_nop
28990   with_libpsl=yes
28991 fi
28992
28993 if test $with_libpsl != "no"; then
28994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28995 printf %s "checking for library containing psl_builtin... " >&6; }
28996 if test ${ac_cv_search_psl_builtin+y}
28997 then :
28998   printf %s "(cached) " >&6
28999 else $as_nop
29000   ac_func_search_save_LIBS=$LIBS
29001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29002 /* end confdefs.h.  */
29003
29004
29005 #ifdef __cplusplus
29006 extern "C"
29007 #endif
29008 char psl_builtin ();
29009 int main (void)
29010 {
29011 return psl_builtin ();
29012  ;
29013  return 0;
29014 }
29015 _ACEOF
29016 for ac_lib in '' psl
29017 do
29018   if test -z "$ac_lib"; then
29019     ac_res="none required"
29020   else
29021     ac_res=-l$ac_lib
29022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29023   fi
29024   if ac_fn_c_try_link "$LINENO"
29025 then :
29026   ac_cv_search_psl_builtin=$ac_res
29027 fi
29028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29029     conftest$ac_exeext
29030   if test ${ac_cv_search_psl_builtin+y}
29031 then :
29032   break
29033 fi
29034 done
29035 if test ${ac_cv_search_psl_builtin+y}
29036 then :
29037
29038 else $as_nop
29039   ac_cv_search_psl_builtin=no
29040 fi
29041 rm conftest.$ac_ext
29042 LIBS=$ac_func_search_save_LIBS
29043 fi
29044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
29045 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
29046 ac_res=$ac_cv_search_psl_builtin
29047 if test "$ac_res" != no
29048 then :
29049   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29050   curl_psl_msg="enabled";
29051
29052 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
29053
29054
29055 else $as_nop
29056   curl_psl_msg="no      (libpsl not found)";
29057      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
29058 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
29059
29060
29061 fi
29062
29063 fi
29064  if test "$curl_psl_msg" = "enabled"; then
29065   USE_LIBPSL_TRUE=
29066   USE_LIBPSL_FALSE='#'
29067 else
29068   USE_LIBPSL_TRUE='#'
29069   USE_LIBPSL_FALSE=
29070 fi
29071
29072
29073
29074
29075
29076 # Check whether --with-libgsasl was given.
29077 if test ${with_libgsasl+y}
29078 then :
29079   withval=$with_libgsasl; with_libgsasl=$withval
29080 else $as_nop
29081   with_libgsasl=yes
29082 fi
29083
29084 if test $with_libgsasl != "no"; then
29085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
29086 printf %s "checking for library containing gsasl_init... " >&6; }
29087 if test ${ac_cv_search_gsasl_init+y}
29088 then :
29089   printf %s "(cached) " >&6
29090 else $as_nop
29091   ac_func_search_save_LIBS=$LIBS
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h.  */
29094
29095
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 char gsasl_init ();
29100 int main (void)
29101 {
29102 return gsasl_init ();
29103  ;
29104  return 0;
29105 }
29106 _ACEOF
29107 for ac_lib in '' gsasl
29108 do
29109   if test -z "$ac_lib"; then
29110     ac_res="none required"
29111   else
29112     ac_res=-l$ac_lib
29113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29114   fi
29115   if ac_fn_c_try_link "$LINENO"
29116 then :
29117   ac_cv_search_gsasl_init=$ac_res
29118 fi
29119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29120     conftest$ac_exeext
29121   if test ${ac_cv_search_gsasl_init+y}
29122 then :
29123   break
29124 fi
29125 done
29126 if test ${ac_cv_search_gsasl_init+y}
29127 then :
29128
29129 else $as_nop
29130   ac_cv_search_gsasl_init=no
29131 fi
29132 rm conftest.$ac_ext
29133 LIBS=$ac_func_search_save_LIBS
29134 fi
29135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
29136 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
29137 ac_res=$ac_cv_search_gsasl_init
29138 if test "$ac_res" != no
29139 then :
29140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29141   curl_gsasl_msg="enabled";
29142
29143 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
29144
29145
29146 else $as_nop
29147   curl_gsasl_msg="no      (libgsasl not found)";
29148      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
29149 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
29150
29151
29152 fi
29153
29154 fi
29155  if test "$curl_gsasl_msg" = "enabled"; then
29156   USE_GSASL_TRUE=
29157   USE_GSASL_FALSE='#'
29158 else
29159   USE_GSASL_TRUE='#'
29160   USE_GSASL_FALSE=
29161 fi
29162
29163
29164
29165 # Check whether --with-libmetalink was given.
29166 if test ${with_libmetalink+y}
29167 then :
29168   withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5
29169 fi
29170
29171
29172
29173 OPT_LIBSSH2=off
29174
29175 # Check whether --with-libssh2 was given.
29176 if test ${with_libssh2+y}
29177 then :
29178   withval=$with_libssh2; OPT_LIBSSH2=$withval
29179 else $as_nop
29180   OPT_LIBSSH2=no
29181 fi
29182
29183
29184
29185 OPT_LIBSSH=off
29186
29187 # Check whether --with-libssh was given.
29188 if test ${with_libssh+y}
29189 then :
29190   withval=$with_libssh; OPT_LIBSSH=$withval
29191 else $as_nop
29192   OPT_LIBSSH=no
29193 fi
29194
29195
29196 OPT_WOLFSSH=off
29197
29198 # Check whether --with-wolfssh was given.
29199 if test ${with_wolfssh+y}
29200 then :
29201   withval=$with_wolfssh; OPT_WOLFSSH=$withval
29202 else $as_nop
29203   OPT_WOLFSSH=no
29204 fi
29205
29206
29207 if test X"$OPT_LIBSSH2" != Xno; then
29208     CLEANLDFLAGS="$LDFLAGS"
29209   CLEANCPPFLAGS="$CPPFLAGS"
29210   CLEANLIBS="$LIBS"
29211
29212   case "$OPT_LIBSSH2" in
29213   yes)
29214
29215     if test -n "$PKG_CONFIG"; then
29216       PKGCONFIG="$PKG_CONFIG"
29217     else
29218       if test -n "$ac_tool_prefix"; then
29219   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29222 printf %s "checking for $ac_word... " >&6; }
29223 if test ${ac_cv_path_PKGCONFIG+y}
29224 then :
29225   printf %s "(cached) " >&6
29226 else $as_nop
29227   case $PKGCONFIG in
29228   [\\/]* | ?:[\\/]*)
29229   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29230   ;;
29231   *)
29232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29233 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29234 for as_dir in $as_dummy
29235 do
29236   IFS=$as_save_IFS
29237   case $as_dir in #(((
29238     '') as_dir=./ ;;
29239     */) ;;
29240     *) as_dir=$as_dir/ ;;
29241   esac
29242     for ac_exec_ext in '' $ac_executable_extensions; do
29243   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29244     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29245     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29246     break 2
29247   fi
29248 done
29249   done
29250 IFS=$as_save_IFS
29251
29252   ;;
29253 esac
29254 fi
29255 PKGCONFIG=$ac_cv_path_PKGCONFIG
29256 if test -n "$PKGCONFIG"; then
29257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29258 printf "%s\n" "$PKGCONFIG" >&6; }
29259 else
29260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29261 printf "%s\n" "no" >&6; }
29262 fi
29263
29264
29265 fi
29266 if test -z "$ac_cv_path_PKGCONFIG"; then
29267   ac_pt_PKGCONFIG=$PKGCONFIG
29268   # Extract the first word of "pkg-config", so it can be a program name with args.
29269 set dummy pkg-config; ac_word=$2
29270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29271 printf %s "checking for $ac_word... " >&6; }
29272 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29273 then :
29274   printf %s "(cached) " >&6
29275 else $as_nop
29276   case $ac_pt_PKGCONFIG in
29277   [\\/]* | ?:[\\/]*)
29278   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29279   ;;
29280   *)
29281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29282 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29283 for as_dir in $as_dummy
29284 do
29285   IFS=$as_save_IFS
29286   case $as_dir in #(((
29287     '') as_dir=./ ;;
29288     */) ;;
29289     *) as_dir=$as_dir/ ;;
29290   esac
29291     for ac_exec_ext in '' $ac_executable_extensions; do
29292   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29293     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29294     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29295     break 2
29296   fi
29297 done
29298   done
29299 IFS=$as_save_IFS
29300
29301   ;;
29302 esac
29303 fi
29304 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29305 if test -n "$ac_pt_PKGCONFIG"; then
29306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29307 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29308 else
29309   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29310 printf "%s\n" "no" >&6; }
29311 fi
29312
29313   if test "x$ac_pt_PKGCONFIG" = x; then
29314     PKGCONFIG="no"
29315   else
29316     case $cross_compiling:$ac_tool_warned in
29317 yes:)
29318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29320 ac_tool_warned=yes ;;
29321 esac
29322     PKGCONFIG=$ac_pt_PKGCONFIG
29323   fi
29324 else
29325   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29326 fi
29327
29328     fi
29329
29330     if test "x$PKGCONFIG" != "xno"; then
29331       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29332 printf %s "checking for libssh2 options with pkg-config... " >&6; }
29333             itexists=`
29334     if test -n ""; then
29335       PKG_CONFIG_LIBDIR=""
29336       export PKG_CONFIG_LIBDIR
29337     fi
29338          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29339
29340       if test -z "$itexists"; then
29341                         PKGCONFIG="no"
29342         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29343 printf "%s\n" "no" >&6; }
29344       else
29345         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29346 printf "%s\n" "found" >&6; }
29347       fi
29348     fi
29349
29350
29351     if test "$PKGCONFIG" != "no" ; then
29352       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
29353       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29354       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29355       version=`$PKGCONFIG --modversion libssh2`
29356       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29357     fi
29358
29359     ;;
29360   off)
29361         ;;
29362   *)
29363         PREFIX_SSH2=$OPT_LIBSSH2
29364     ;;
29365   esac
29366
29367     if test -n "$PREFIX_SSH2"; then
29368     LIB_SSH2="-lssh2"
29369     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29370     CPP_SSH2=-I${PREFIX_SSH2}/include
29371     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29372   fi
29373
29374   LDFLAGS="$LDFLAGS $LD_SSH2"
29375   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29376   LIBS="$LIB_SSH2 $LIBS"
29377
29378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29379 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29380 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29381 then :
29382   printf %s "(cached) " >&6
29383 else $as_nop
29384   ac_check_lib_save_LIBS=$LIBS
29385 LIBS="-lssh2  $LIBS"
29386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29387 /* end confdefs.h.  */
29388
29389
29390 #ifdef __cplusplus
29391 extern "C"
29392 #endif
29393 char libssh2_session_block_directions ();
29394 int main (void)
29395 {
29396 return libssh2_session_block_directions ();
29397  ;
29398  return 0;
29399 }
29400 _ACEOF
29401 if ac_fn_c_try_link "$LINENO"
29402 then :
29403   ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29404 else $as_nop
29405   ac_cv_lib_ssh2_libssh2_session_block_directions=no
29406 fi
29407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29408     conftest$ac_exeext conftest.$ac_ext
29409 LIBS=$ac_check_lib_save_LIBS
29410 fi
29411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29412 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29413 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29414 then :
29415   printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29416
29417   LIBS="-lssh2 $LIBS"
29418
29419 fi
29420
29421
29422   ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29423 if test "x$ac_cv_header_libssh2_h" = xyes
29424 then :
29425   curl_ssh_msg="enabled (libSSH2)"
29426     LIBSSH2_ENABLED=1
29427
29428 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29429
29430     USE_LIBSSH2=1
29431
29432
29433 fi
29434
29435
29436   if test X"$OPT_LIBSSH2" != Xoff &&
29437      test "$LIBSSH2_ENABLED" != "1"; then
29438     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29439   fi
29440
29441   if test "$LIBSSH2_ENABLED" = "1"; then
29442     if test -n "$DIR_SSH2"; then
29443
29444        if test "x$cross_compiling" != "xyes"; then
29445          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29446          export CURL_LIBRARY_PATH
29447          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29448 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29449        fi
29450     fi
29451   else
29452         LDFLAGS=$CLEANLDFLAGS
29453     CPPFLAGS=$CLEANCPPFLAGS
29454     LIBS=$CLEANLIBS
29455   fi
29456 elif test X"$OPT_LIBSSH" != Xno; then
29457     CLEANLDFLAGS="$LDFLAGS"
29458   CLEANCPPFLAGS="$CPPFLAGS"
29459   CLEANLIBS="$LIBS"
29460
29461   case "$OPT_LIBSSH" in
29462   yes)
29463
29464     if test -n "$PKG_CONFIG"; then
29465       PKGCONFIG="$PKG_CONFIG"
29466     else
29467       if test -n "$ac_tool_prefix"; then
29468   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29469 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29471 printf %s "checking for $ac_word... " >&6; }
29472 if test ${ac_cv_path_PKGCONFIG+y}
29473 then :
29474   printf %s "(cached) " >&6
29475 else $as_nop
29476   case $PKGCONFIG in
29477   [\\/]* | ?:[\\/]*)
29478   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29479   ;;
29480   *)
29481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29483 for as_dir in $as_dummy
29484 do
29485   IFS=$as_save_IFS
29486   case $as_dir in #(((
29487     '') as_dir=./ ;;
29488     */) ;;
29489     *) as_dir=$as_dir/ ;;
29490   esac
29491     for ac_exec_ext in '' $ac_executable_extensions; do
29492   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29493     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29494     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29495     break 2
29496   fi
29497 done
29498   done
29499 IFS=$as_save_IFS
29500
29501   ;;
29502 esac
29503 fi
29504 PKGCONFIG=$ac_cv_path_PKGCONFIG
29505 if test -n "$PKGCONFIG"; then
29506   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29507 printf "%s\n" "$PKGCONFIG" >&6; }
29508 else
29509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510 printf "%s\n" "no" >&6; }
29511 fi
29512
29513
29514 fi
29515 if test -z "$ac_cv_path_PKGCONFIG"; then
29516   ac_pt_PKGCONFIG=$PKGCONFIG
29517   # Extract the first word of "pkg-config", so it can be a program name with args.
29518 set dummy pkg-config; ac_word=$2
29519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29520 printf %s "checking for $ac_word... " >&6; }
29521 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29522 then :
29523   printf %s "(cached) " >&6
29524 else $as_nop
29525   case $ac_pt_PKGCONFIG in
29526   [\\/]* | ?:[\\/]*)
29527   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29528   ;;
29529   *)
29530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29531 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29532 for as_dir in $as_dummy
29533 do
29534   IFS=$as_save_IFS
29535   case $as_dir in #(((
29536     '') as_dir=./ ;;
29537     */) ;;
29538     *) as_dir=$as_dir/ ;;
29539   esac
29540     for ac_exec_ext in '' $ac_executable_extensions; do
29541   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29542     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29543     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29544     break 2
29545   fi
29546 done
29547   done
29548 IFS=$as_save_IFS
29549
29550   ;;
29551 esac
29552 fi
29553 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29554 if test -n "$ac_pt_PKGCONFIG"; then
29555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29556 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29557 else
29558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29559 printf "%s\n" "no" >&6; }
29560 fi
29561
29562   if test "x$ac_pt_PKGCONFIG" = x; then
29563     PKGCONFIG="no"
29564   else
29565     case $cross_compiling:$ac_tool_warned in
29566 yes:)
29567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29569 ac_tool_warned=yes ;;
29570 esac
29571     PKGCONFIG=$ac_pt_PKGCONFIG
29572   fi
29573 else
29574   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29575 fi
29576
29577     fi
29578
29579     if test "x$PKGCONFIG" != "xno"; then
29580       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29581 printf %s "checking for libssh options with pkg-config... " >&6; }
29582             itexists=`
29583     if test -n ""; then
29584       PKG_CONFIG_LIBDIR=""
29585       export PKG_CONFIG_LIBDIR
29586     fi
29587          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29588
29589       if test -z "$itexists"; then
29590                         PKGCONFIG="no"
29591         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29592 printf "%s\n" "no" >&6; }
29593       else
29594         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29595 printf "%s\n" "found" >&6; }
29596       fi
29597     fi
29598
29599
29600     if test "$PKGCONFIG" != "no" ; then
29601       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29602       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29603       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29604       version=`$PKGCONFIG --modversion libssh`
29605       DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29606     fi
29607
29608     ;;
29609   off)
29610         ;;
29611   *)
29612         PREFIX_SSH=$OPT_LIBSSH
29613     ;;
29614   esac
29615
29616     if test -n "$PREFIX_SSH"; then
29617     LIB_SSH="-lssh"
29618     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29619     CPP_SSH=-I${PREFIX_SSH}/include
29620     DIR_SSH=${PREFIX_SSH}/lib$libsuff
29621   fi
29622
29623   LDFLAGS="$LDFLAGS $LD_SSH"
29624   CPPFLAGS="$CPPFLAGS $CPP_SSH"
29625   LIBS="$LIB_SSH $LIBS"
29626
29627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29628 printf %s "checking for ssh_new in -lssh... " >&6; }
29629 if test ${ac_cv_lib_ssh_ssh_new+y}
29630 then :
29631   printf %s "(cached) " >&6
29632 else $as_nop
29633   ac_check_lib_save_LIBS=$LIBS
29634 LIBS="-lssh  $LIBS"
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h.  */
29637
29638
29639 #ifdef __cplusplus
29640 extern "C"
29641 #endif
29642 char ssh_new ();
29643 int main (void)
29644 {
29645 return ssh_new ();
29646  ;
29647  return 0;
29648 }
29649 _ACEOF
29650 if ac_fn_c_try_link "$LINENO"
29651 then :
29652   ac_cv_lib_ssh_ssh_new=yes
29653 else $as_nop
29654   ac_cv_lib_ssh_ssh_new=no
29655 fi
29656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29657     conftest$ac_exeext conftest.$ac_ext
29658 LIBS=$ac_check_lib_save_LIBS
29659 fi
29660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29661 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29662 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29663 then :
29664   printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29665
29666   LIBS="-lssh $LIBS"
29667
29668 fi
29669
29670
29671   ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29672 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29673 then :
29674   curl_ssh_msg="enabled (libSSH)"
29675     LIBSSH_ENABLED=1
29676
29677 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29678
29679     USE_LIBSSH=1
29680
29681
29682 fi
29683
29684
29685   if test X"$OPT_LIBSSH" != Xoff &&
29686      test "$LIBSSH_ENABLED" != "1"; then
29687     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29688   fi
29689
29690   if test "$LIBSSH_ENABLED" = "1"; then
29691     if test -n "$DIR_SSH"; then
29692
29693        if test "x$cross_compiling" != "xyes"; then
29694          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29695          export CURL_LIBRARY_PATH
29696          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29697 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29698        fi
29699     fi
29700   else
29701         LDFLAGS=$CLEANLDFLAGS
29702     CPPFLAGS=$CLEANCPPFLAGS
29703     LIBS=$CLEANLIBS
29704   fi
29705 elif test X"$OPT_WOLFSSH" != Xno; then
29706     CLEANLDFLAGS="$LDFLAGS"
29707   CLEANCPPFLAGS="$CPPFLAGS"
29708   CLEANLIBS="$LIBS"
29709
29710
29711   if test "$OPT_WOLFSSH" != yes; then
29712      WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29713      LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29714      CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29715   fi
29716
29717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29718 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29719 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29720 then :
29721   printf %s "(cached) " >&6
29722 else $as_nop
29723   ac_check_lib_save_LIBS=$LIBS
29724 LIBS="-lwolfssh  $LIBS"
29725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29726 /* end confdefs.h.  */
29727
29728
29729 #ifdef __cplusplus
29730 extern "C"
29731 #endif
29732 char wolfSSH_Init ();
29733 int main (void)
29734 {
29735 return wolfSSH_Init ();
29736  ;
29737  return 0;
29738 }
29739 _ACEOF
29740 if ac_fn_c_try_link "$LINENO"
29741 then :
29742   ac_cv_lib_wolfssh_wolfSSH_Init=yes
29743 else $as_nop
29744   ac_cv_lib_wolfssh_wolfSSH_Init=no
29745 fi
29746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29747     conftest$ac_exeext conftest.$ac_ext
29748 LIBS=$ac_check_lib_save_LIBS
29749 fi
29750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29751 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29752 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29753 then :
29754   printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29755
29756   LIBS="-lwolfssh $LIBS"
29757
29758 fi
29759
29760
29761          for ac_header in wolfssh/ssh.h
29762 do :
29763   ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29764 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29765 then :
29766   printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29767  curl_ssh_msg="enabled (wolfSSH)"
29768     WOLFSSH_ENABLED=1
29769
29770 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29771
29772     USE_WOLFSSH=1
29773
29774
29775 fi
29776
29777 done
29778
29779 fi
29780
29781
29782 OPT_LIBRTMP=off
29783
29784 # Check whether --with-librtmp was given.
29785 if test ${with_librtmp+y}
29786 then :
29787   withval=$with_librtmp; OPT_LIBRTMP=$withval
29788 fi
29789
29790
29791 if test X"$OPT_LIBRTMP" != Xno; then
29792     CLEANLDFLAGS="$LDFLAGS"
29793   CLEANCPPFLAGS="$CPPFLAGS"
29794   CLEANLIBS="$LIBS"
29795
29796   case "$OPT_LIBRTMP" in
29797   yes)
29798
29799     if test -n "$PKG_CONFIG"; then
29800       PKGCONFIG="$PKG_CONFIG"
29801     else
29802       if test -n "$ac_tool_prefix"; then
29803   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29804 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29806 printf %s "checking for $ac_word... " >&6; }
29807 if test ${ac_cv_path_PKGCONFIG+y}
29808 then :
29809   printf %s "(cached) " >&6
29810 else $as_nop
29811   case $PKGCONFIG in
29812   [\\/]* | ?:[\\/]*)
29813   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29814   ;;
29815   *)
29816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29817 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29818 for as_dir in $as_dummy
29819 do
29820   IFS=$as_save_IFS
29821   case $as_dir in #(((
29822     '') as_dir=./ ;;
29823     */) ;;
29824     *) as_dir=$as_dir/ ;;
29825   esac
29826     for ac_exec_ext in '' $ac_executable_extensions; do
29827   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29828     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29829     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29830     break 2
29831   fi
29832 done
29833   done
29834 IFS=$as_save_IFS
29835
29836   ;;
29837 esac
29838 fi
29839 PKGCONFIG=$ac_cv_path_PKGCONFIG
29840 if test -n "$PKGCONFIG"; then
29841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29842 printf "%s\n" "$PKGCONFIG" >&6; }
29843 else
29844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29845 printf "%s\n" "no" >&6; }
29846 fi
29847
29848
29849 fi
29850 if test -z "$ac_cv_path_PKGCONFIG"; then
29851   ac_pt_PKGCONFIG=$PKGCONFIG
29852   # Extract the first word of "pkg-config", so it can be a program name with args.
29853 set dummy pkg-config; ac_word=$2
29854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29855 printf %s "checking for $ac_word... " >&6; }
29856 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29857 then :
29858   printf %s "(cached) " >&6
29859 else $as_nop
29860   case $ac_pt_PKGCONFIG in
29861   [\\/]* | ?:[\\/]*)
29862   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29863   ;;
29864   *)
29865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29866 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29867 for as_dir in $as_dummy
29868 do
29869   IFS=$as_save_IFS
29870   case $as_dir in #(((
29871     '') as_dir=./ ;;
29872     */) ;;
29873     *) as_dir=$as_dir/ ;;
29874   esac
29875     for ac_exec_ext in '' $ac_executable_extensions; do
29876   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29877     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29878     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29879     break 2
29880   fi
29881 done
29882   done
29883 IFS=$as_save_IFS
29884
29885   ;;
29886 esac
29887 fi
29888 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29889 if test -n "$ac_pt_PKGCONFIG"; then
29890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29891 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29892 else
29893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 printf "%s\n" "no" >&6; }
29895 fi
29896
29897   if test "x$ac_pt_PKGCONFIG" = x; then
29898     PKGCONFIG="no"
29899   else
29900     case $cross_compiling:$ac_tool_warned in
29901 yes:)
29902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29904 ac_tool_warned=yes ;;
29905 esac
29906     PKGCONFIG=$ac_pt_PKGCONFIG
29907   fi
29908 else
29909   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29910 fi
29911
29912     fi
29913
29914     if test "x$PKGCONFIG" != "xno"; then
29915       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29916 printf %s "checking for librtmp options with pkg-config... " >&6; }
29917             itexists=`
29918     if test -n ""; then
29919       PKG_CONFIG_LIBDIR=""
29920       export PKG_CONFIG_LIBDIR
29921     fi
29922          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29923
29924       if test -z "$itexists"; then
29925                         PKGCONFIG="no"
29926         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29927 printf "%s\n" "no" >&6; }
29928       else
29929         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29930 printf "%s\n" "found" >&6; }
29931       fi
29932     fi
29933
29934
29935     if test "$PKGCONFIG" != "no" ; then
29936       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29937       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29938       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29939       version=`$PKGCONFIG --modversion librtmp`
29940       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29941     else
29942                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29943     fi
29944
29945     ;;
29946   off)
29947         LIB_RTMP="-lrtmp"
29948     ;;
29949   *)
29950         LIB_RTMP="-lrtmp"
29951     PREFIX_RTMP=$OPT_LIBRTMP
29952     ;;
29953   esac
29954
29955     if test -n "$PREFIX_RTMP"; then
29956     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29957     CPP_RTMP=-I${PREFIX_RTMP}/include
29958     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29959   fi
29960
29961   LDFLAGS="$LDFLAGS $LD_RTMP"
29962   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29963   LIBS="$LIB_RTMP $LIBS"
29964
29965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29966 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29967 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29968 then :
29969   printf %s "(cached) " >&6
29970 else $as_nop
29971   ac_check_lib_save_LIBS=$LIBS
29972 LIBS="-lrtmp  $LIBS"
29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h.  */
29975
29976
29977 #ifdef __cplusplus
29978 extern "C"
29979 #endif
29980 char RTMP_Init ();
29981 int main (void)
29982 {
29983 return RTMP_Init ();
29984  ;
29985  return 0;
29986 }
29987 _ACEOF
29988 if ac_fn_c_try_link "$LINENO"
29989 then :
29990   ac_cv_lib_rtmp_RTMP_Init=yes
29991 else $as_nop
29992   ac_cv_lib_rtmp_RTMP_Init=no
29993 fi
29994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29995     conftest$ac_exeext conftest.$ac_ext
29996 LIBS=$ac_check_lib_save_LIBS
29997 fi
29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29999 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
30000 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
30001 then :
30002
30003             for ac_header in librtmp/rtmp.h
30004 do :
30005   ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
30006 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
30007 then :
30008   printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
30009  curl_rtmp_msg="enabled (librtmp)"
30010         LIBRTMP_ENABLED=1
30011
30012 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
30013
30014         USE_LIBRTMP=1
30015
30016
30017 fi
30018
30019 done
30020
30021 else $as_nop
30022         LDFLAGS=$CLEANLDFLAGS
30023       CPPFLAGS=$CLEANCPPFLAGS
30024       LIBS=$CLEANLIBS
30025
30026 fi
30027
30028
30029   if test X"$OPT_LIBRTMP" != Xoff &&
30030      test "$LIBRTMP_ENABLED" != "1"; then
30031     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
30032   fi
30033
30034 fi
30035
30036
30037 versioned_symbols_flavour=
30038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
30039 printf %s "checking whether versioned symbols are wanted... " >&6; }
30040 # Check whether --enable-versioned-symbols was given.
30041 if test ${enable_versioned_symbols+y}
30042 then :
30043   enableval=$enable_versioned_symbols;  case "$enableval" in
30044   yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30045 printf "%s\n" "yes" >&6; }
30046     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
30047 printf %s "checking if libraries can be versioned... " >&6; }
30048     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
30049     if test -z "$GLD"; then
30050         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051 printf "%s\n" "no" >&6; }
30052         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
30053 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
30054     else
30055         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 printf "%s\n" "yes" >&6; }
30057         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
30058           versioned_symbols_flavour="MULTISSL_"
30059         elif test "x$OPENSSL_ENABLED" = "x1"; then
30060           versioned_symbols_flavour="OPENSSL_"
30061         elif test "x$GNUTLS_ENABLED" = "x1"; then
30062           versioned_symbols_flavour="GNUTLS_"
30063         elif test "x$WOLFSSL_ENABLED" = "x1"; then
30064           versioned_symbols_flavour="WOLFSSL_"
30065         elif test "x$SCHANNEL_ENABLED" = "x1"; then
30066           versioned_symbols_flavour="SCHANNEL_"
30067         elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
30068           versioned_symbols_flavour="SECURE_TRANSPORT_"
30069         else
30070           versioned_symbols_flavour=""
30071         fi
30072         versioned_symbols="yes"
30073     fi
30074     ;;
30075
30076   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30077 printf "%s\n" "no" >&6; }
30078     ;;
30079   esac
30080
30081 else $as_nop
30082
30083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084 printf "%s\n" "no" >&6; }
30085
30086
30087 fi
30088
30089
30090 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
30091
30092  if test "x$versioned_symbols" = 'xyes'; then
30093   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
30094   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
30095 else
30096   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
30097   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
30098 fi
30099
30100
30101 CURL_PLIST_VERSION="$CURLVERSION"
30102
30103
30104
30105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
30106 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
30107 OPT_WINIDN="default"
30108
30109 # Check whether --with-winidn was given.
30110 if test ${with_winidn+y}
30111 then :
30112   withval=$with_winidn; OPT_WINIDN=$withval
30113 fi
30114
30115 case "$OPT_WINIDN" in
30116   no|default)
30117         want_winidn="no"
30118     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119 printf "%s\n" "no" >&6; }
30120     ;;
30121   yes)
30122         want_winidn="yes"
30123     want_winidn_path="default"
30124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125 printf "%s\n" "yes" >&6; }
30126     ;;
30127   *)
30128         want_winidn="yes"
30129     want_winidn_path="$withval"
30130     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30131 printf "%s\n" "yes ($withval)" >&6; }
30132     ;;
30133 esac
30134
30135 if test "$want_winidn" = "yes"; then
30136     clean_CFLAGS="$CFLAGS"
30137   clean_CPPFLAGS="$CPPFLAGS"
30138   clean_LDFLAGS="$LDFLAGS"
30139   clean_LIBS="$LIBS"
30140   WINIDN_LIBS="-lnormaliz"
30141   WINIDN_CPPFLAGS=""
30142   #
30143   if test "$want_winidn_path" != "default"; then
30144             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
30145     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
30146     WINIDN_DIR="$want_winidn_path/lib$libsuff"
30147   fi
30148   #
30149     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30150 /* end confdefs.h.  */
30151
30152
30153       #include <windows.h>
30154
30155 int main (void)
30156 {
30157
30158       #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
30159       #error
30160       #endif
30161
30162  ;
30163  return 0;
30164 }
30165
30166 _ACEOF
30167 if ac_fn_c_try_compile "$LINENO"
30168 then :
30169
30170
30171 else $as_nop
30172
30173      CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30174      CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30175      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30176      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30177      WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
30178
30179 fi
30180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30181   #
30182   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
30183   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
30184   LIBS="$WINIDN_LIBS $LIBS"
30185   #
30186   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
30187 printf %s "checking if IdnToUnicode can be linked... " >&6; }
30188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30189 /* end confdefs.h.  */
30190
30191
30192       #include <windows.h>
30193
30194 int main (void)
30195 {
30196
30197       IdnToUnicode(0, NULL, 0, NULL, 0);
30198
30199  ;
30200  return 0;
30201 }
30202
30203 _ACEOF
30204 if ac_fn_c_try_link "$LINENO"
30205 then :
30206
30207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30208 printf "%s\n" "yes" >&6; }
30209     tst_links_winidn="yes"
30210
30211 else $as_nop
30212
30213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30214 printf "%s\n" "no" >&6; }
30215     tst_links_winidn="no"
30216
30217 fi
30218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30219     conftest$ac_exeext conftest.$ac_ext
30220   #
30221   if test "$tst_links_winidn" = "yes"; then
30222
30223 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
30224
30225     IDN_ENABLED=1
30226
30227     curl_idn_msg="enabled (Windows-native)"
30228   else
30229     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30230 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30231     CFLAGS="$clean_CFLAGS"
30232     CPPFLAGS="$clean_CPPFLAGS"
30233     LDFLAGS="$clean_LDFLAGS"
30234     LIBS="$clean_LIBS"
30235   fi
30236 fi
30237
30238
30239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
30240 printf %s "checking whether to build with libidn2... " >&6; }
30241 OPT_IDN="default"
30242
30243 # Check whether --with-libidn2 was given.
30244 if test ${with_libidn2+y}
30245 then :
30246   withval=$with_libidn2; OPT_IDN=$withval
30247 fi
30248
30249 if test "x$tst_links_winidn" = "xyes"; then
30250   want_idn="no"
30251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
30252 printf "%s\n" "no (using winidn instead)" >&6; }
30253 else
30254   case "$OPT_IDN" in
30255     no)
30256             want_idn="no"
30257       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30258 printf "%s\n" "no" >&6; }
30259       ;;
30260     default)
30261             want_idn="yes"
30262       want_idn_path="default"
30263       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
30264 printf "%s\n" "(assumed) yes" >&6; }
30265       ;;
30266     yes)
30267             want_idn="yes"
30268       want_idn_path="default"
30269       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30270 printf "%s\n" "yes" >&6; }
30271       ;;
30272     *)
30273             want_idn="yes"
30274       want_idn_path="$withval"
30275       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30276 printf "%s\n" "yes ($withval)" >&6; }
30277       ;;
30278   esac
30279 fi
30280
30281 if test "$want_idn" = "yes"; then
30282     clean_CPPFLAGS="$CPPFLAGS"
30283   clean_LDFLAGS="$LDFLAGS"
30284   clean_LIBS="$LIBS"
30285   PKGCONFIG="no"
30286   #
30287   if test "$want_idn_path" != "default"; then
30288         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
30289
30290     if test -n "$PKG_CONFIG"; then
30291       PKGCONFIG="$PKG_CONFIG"
30292     else
30293       if test -n "$ac_tool_prefix"; then
30294   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30297 printf %s "checking for $ac_word... " >&6; }
30298 if test ${ac_cv_path_PKGCONFIG+y}
30299 then :
30300   printf %s "(cached) " >&6
30301 else $as_nop
30302   case $PKGCONFIG in
30303   [\\/]* | ?:[\\/]*)
30304   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30305   ;;
30306   *)
30307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30309 for as_dir in $as_dummy
30310 do
30311   IFS=$as_save_IFS
30312   case $as_dir in #(((
30313     '') as_dir=./ ;;
30314     */) ;;
30315     *) as_dir=$as_dir/ ;;
30316   esac
30317     for ac_exec_ext in '' $ac_executable_extensions; do
30318   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30319     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30320     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30321     break 2
30322   fi
30323 done
30324   done
30325 IFS=$as_save_IFS
30326
30327   ;;
30328 esac
30329 fi
30330 PKGCONFIG=$ac_cv_path_PKGCONFIG
30331 if test -n "$PKGCONFIG"; then
30332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30333 printf "%s\n" "$PKGCONFIG" >&6; }
30334 else
30335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30336 printf "%s\n" "no" >&6; }
30337 fi
30338
30339
30340 fi
30341 if test -z "$ac_cv_path_PKGCONFIG"; then
30342   ac_pt_PKGCONFIG=$PKGCONFIG
30343   # Extract the first word of "pkg-config", so it can be a program name with args.
30344 set dummy pkg-config; ac_word=$2
30345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30346 printf %s "checking for $ac_word... " >&6; }
30347 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30348 then :
30349   printf %s "(cached) " >&6
30350 else $as_nop
30351   case $ac_pt_PKGCONFIG in
30352   [\\/]* | ?:[\\/]*)
30353   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30354   ;;
30355   *)
30356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30357 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30358 for as_dir in $as_dummy
30359 do
30360   IFS=$as_save_IFS
30361   case $as_dir in #(((
30362     '') as_dir=./ ;;
30363     */) ;;
30364     *) as_dir=$as_dir/ ;;
30365   esac
30366     for ac_exec_ext in '' $ac_executable_extensions; do
30367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30368     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30370     break 2
30371   fi
30372 done
30373   done
30374 IFS=$as_save_IFS
30375
30376   ;;
30377 esac
30378 fi
30379 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30380 if test -n "$ac_pt_PKGCONFIG"; then
30381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30382 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30383 else
30384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30385 printf "%s\n" "no" >&6; }
30386 fi
30387
30388   if test "x$ac_pt_PKGCONFIG" = x; then
30389     PKGCONFIG="no"
30390   else
30391     case $cross_compiling:$ac_tool_warned in
30392 yes:)
30393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30395 ac_tool_warned=yes ;;
30396 esac
30397     PKGCONFIG=$ac_pt_PKGCONFIG
30398   fi
30399 else
30400   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30401 fi
30402
30403     fi
30404
30405     if test "x$PKGCONFIG" != "xno"; then
30406       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30407 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30408             itexists=`
30409     if test -n "$IDN_PCDIR"; then
30410       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30411       export PKG_CONFIG_LIBDIR
30412     fi
30413          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30414
30415       if test -z "$itexists"; then
30416                         PKGCONFIG="no"
30417         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30418 printf "%s\n" "no" >&6; }
30419       else
30420         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30421 printf "%s\n" "found" >&6; }
30422       fi
30423     fi
30424
30425     if test "$PKGCONFIG" != "no"; then
30426       IDN_LIBS=`
30427     if test -n "$IDN_PCDIR"; then
30428       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30429       export PKG_CONFIG_LIBDIR
30430     fi
30431          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30432       IDN_LDFLAGS=`
30433     if test -n "$IDN_PCDIR"; then
30434       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30435       export PKG_CONFIG_LIBDIR
30436     fi
30437          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30438       IDN_CPPFLAGS=`
30439     if test -n "$IDN_PCDIR"; then
30440       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30441       export PKG_CONFIG_LIBDIR
30442     fi
30443          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30444       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30445     else
30446             IDN_LIBS="-lidn2"
30447       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30448       IDN_CPPFLAGS="-I$want_idn_path/include"
30449       IDN_DIR="$want_idn_path/lib$libsuff"
30450     fi
30451   else
30452
30453     if test -n "$PKG_CONFIG"; then
30454       PKGCONFIG="$PKG_CONFIG"
30455     else
30456       if test -n "$ac_tool_prefix"; then
30457   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30460 printf %s "checking for $ac_word... " >&6; }
30461 if test ${ac_cv_path_PKGCONFIG+y}
30462 then :
30463   printf %s "(cached) " >&6
30464 else $as_nop
30465   case $PKGCONFIG in
30466   [\\/]* | ?:[\\/]*)
30467   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30468   ;;
30469   *)
30470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30471 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30472 for as_dir in $as_dummy
30473 do
30474   IFS=$as_save_IFS
30475   case $as_dir in #(((
30476     '') as_dir=./ ;;
30477     */) ;;
30478     *) as_dir=$as_dir/ ;;
30479   esac
30480     for ac_exec_ext in '' $ac_executable_extensions; do
30481   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30482     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30483     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30484     break 2
30485   fi
30486 done
30487   done
30488 IFS=$as_save_IFS
30489
30490   ;;
30491 esac
30492 fi
30493 PKGCONFIG=$ac_cv_path_PKGCONFIG
30494 if test -n "$PKGCONFIG"; then
30495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30496 printf "%s\n" "$PKGCONFIG" >&6; }
30497 else
30498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499 printf "%s\n" "no" >&6; }
30500 fi
30501
30502
30503 fi
30504 if test -z "$ac_cv_path_PKGCONFIG"; then
30505   ac_pt_PKGCONFIG=$PKGCONFIG
30506   # Extract the first word of "pkg-config", so it can be a program name with args.
30507 set dummy pkg-config; ac_word=$2
30508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30509 printf %s "checking for $ac_word... " >&6; }
30510 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30511 then :
30512   printf %s "(cached) " >&6
30513 else $as_nop
30514   case $ac_pt_PKGCONFIG in
30515   [\\/]* | ?:[\\/]*)
30516   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30517   ;;
30518   *)
30519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30520 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30521 for as_dir in $as_dummy
30522 do
30523   IFS=$as_save_IFS
30524   case $as_dir in #(((
30525     '') as_dir=./ ;;
30526     */) ;;
30527     *) as_dir=$as_dir/ ;;
30528   esac
30529     for ac_exec_ext in '' $ac_executable_extensions; do
30530   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30531     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30532     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30533     break 2
30534   fi
30535 done
30536   done
30537 IFS=$as_save_IFS
30538
30539   ;;
30540 esac
30541 fi
30542 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30543 if test -n "$ac_pt_PKGCONFIG"; then
30544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30545 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30546 else
30547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30548 printf "%s\n" "no" >&6; }
30549 fi
30550
30551   if test "x$ac_pt_PKGCONFIG" = x; then
30552     PKGCONFIG="no"
30553   else
30554     case $cross_compiling:$ac_tool_warned in
30555 yes:)
30556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30557 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30558 ac_tool_warned=yes ;;
30559 esac
30560     PKGCONFIG=$ac_pt_PKGCONFIG
30561   fi
30562 else
30563   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30564 fi
30565
30566     fi
30567
30568     if test "x$PKGCONFIG" != "xno"; then
30569       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30570 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30571             itexists=`
30572     if test -n ""; then
30573       PKG_CONFIG_LIBDIR=""
30574       export PKG_CONFIG_LIBDIR
30575     fi
30576          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30577
30578       if test -z "$itexists"; then
30579                         PKGCONFIG="no"
30580         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 printf "%s\n" "no" >&6; }
30582       else
30583         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30584 printf "%s\n" "found" >&6; }
30585       fi
30586     fi
30587
30588     if test "$PKGCONFIG" != "no"; then
30589       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30590       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30591       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30592       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30593     else
30594             IDN_LIBS="-lidn2"
30595     fi
30596   fi
30597   #
30598   if test "$PKGCONFIG" != "no"; then
30599     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30600 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30602 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30603     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30604 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30605     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30606 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30607   else
30608     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30609 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30610     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30611 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30613 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30614     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30615 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30616   fi
30617   #
30618   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30619   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30620   LIBS="$IDN_LIBS $LIBS"
30621   #
30622   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30623 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30625 /* end confdefs.h.  */
30626
30627
30628 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30629 #ifdef __STDC__
30630 # include <limits.h>
30631 #else
30632 # include <assert.h>
30633 #endif
30634 #undef idn2_lookup_ul
30635 #ifdef __cplusplus
30636 extern "C"
30637 #endif
30638 char idn2_lookup_ul ();
30639 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30640 choke me
30641 #endif
30642
30643 int main (void)
30644 {
30645 return idn2_lookup_ul ();
30646  ;
30647  return 0;
30648 }
30649
30650 _ACEOF
30651 if ac_fn_c_try_link "$LINENO"
30652 then :
30653
30654     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30655 printf "%s\n" "yes" >&6; }
30656     tst_links_libidn="yes"
30657
30658 else $as_nop
30659
30660     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30661 printf "%s\n" "no" >&6; }
30662     tst_links_libidn="no"
30663
30664 fi
30665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30666     conftest$ac_exeext conftest.$ac_ext
30667   #
30668   ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30669 if test "x$ac_cv_header_idn2_h" = xyes
30670 then :
30671   printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30672
30673 fi
30674
30675
30676   if test "$tst_links_libidn" = "yes"; then
30677
30678 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30679
30680
30681     IDN_ENABLED=1
30682
30683     curl_idn_msg="enabled (libidn2)"
30684     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30685       CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30686       export CURL_LIBRARY_PATH
30687       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30688 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30689     fi
30690   else
30691     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30692 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30693     CPPFLAGS="$clean_CPPFLAGS"
30694     LDFLAGS="$clean_LDFLAGS"
30695     LIBS="$clean_LIBS"
30696   fi
30697 fi
30698
30699
30700 OPT_H2="yes"
30701
30702 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30703   # without HTTP or with Hyper, nghttp2 is no use
30704   OPT_H2="no"
30705 fi
30706
30707
30708 # Check whether --with-nghttp2 was given.
30709 if test ${with_nghttp2+y}
30710 then :
30711   withval=$with_nghttp2; OPT_H2=$withval
30712 fi
30713
30714 case "$OPT_H2" in
30715   no)
30716         want_nghttp2="no"
30717     ;;
30718   yes)
30719         want_nghttp2="default"
30720     want_nghttp2_path=""
30721     want_nghttp2_pkg_config_path=""
30722     ;;
30723   *)
30724         want_nghttp2="yes"
30725     want_nghttp2_path="$withval"
30726     want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30727     ;;
30728 esac
30729
30730 if test X"$want_nghttp2" != Xno; then
30731     CLEANLDFLAGS="$LDFLAGS"
30732   CLEANCPPFLAGS="$CPPFLAGS"
30733   CLEANLIBS="$LIBS"
30734
30735
30736     if test -n "$PKG_CONFIG"; then
30737       PKGCONFIG="$PKG_CONFIG"
30738     else
30739       if test -n "$ac_tool_prefix"; then
30740   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30741 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30743 printf %s "checking for $ac_word... " >&6; }
30744 if test ${ac_cv_path_PKGCONFIG+y}
30745 then :
30746   printf %s "(cached) " >&6
30747 else $as_nop
30748   case $PKGCONFIG in
30749   [\\/]* | ?:[\\/]*)
30750   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30751   ;;
30752   *)
30753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30754 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30755 for as_dir in $as_dummy
30756 do
30757   IFS=$as_save_IFS
30758   case $as_dir in #(((
30759     '') as_dir=./ ;;
30760     */) ;;
30761     *) as_dir=$as_dir/ ;;
30762   esac
30763     for ac_exec_ext in '' $ac_executable_extensions; do
30764   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30765     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30766     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30767     break 2
30768   fi
30769 done
30770   done
30771 IFS=$as_save_IFS
30772
30773   ;;
30774 esac
30775 fi
30776 PKGCONFIG=$ac_cv_path_PKGCONFIG
30777 if test -n "$PKGCONFIG"; then
30778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30779 printf "%s\n" "$PKGCONFIG" >&6; }
30780 else
30781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782 printf "%s\n" "no" >&6; }
30783 fi
30784
30785
30786 fi
30787 if test -z "$ac_cv_path_PKGCONFIG"; then
30788   ac_pt_PKGCONFIG=$PKGCONFIG
30789   # Extract the first word of "pkg-config", so it can be a program name with args.
30790 set dummy pkg-config; ac_word=$2
30791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30792 printf %s "checking for $ac_word... " >&6; }
30793 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30794 then :
30795   printf %s "(cached) " >&6
30796 else $as_nop
30797   case $ac_pt_PKGCONFIG in
30798   [\\/]* | ?:[\\/]*)
30799   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30800   ;;
30801   *)
30802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30803 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30804 for as_dir in $as_dummy
30805 do
30806   IFS=$as_save_IFS
30807   case $as_dir in #(((
30808     '') as_dir=./ ;;
30809     */) ;;
30810     *) as_dir=$as_dir/ ;;
30811   esac
30812     for ac_exec_ext in '' $ac_executable_extensions; do
30813   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30814     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30815     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30816     break 2
30817   fi
30818 done
30819   done
30820 IFS=$as_save_IFS
30821
30822   ;;
30823 esac
30824 fi
30825 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30826 if test -n "$ac_pt_PKGCONFIG"; then
30827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30828 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30829 else
30830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831 printf "%s\n" "no" >&6; }
30832 fi
30833
30834   if test "x$ac_pt_PKGCONFIG" = x; then
30835     PKGCONFIG="no"
30836   else
30837     case $cross_compiling:$ac_tool_warned in
30838 yes:)
30839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30841 ac_tool_warned=yes ;;
30842 esac
30843     PKGCONFIG=$ac_pt_PKGCONFIG
30844   fi
30845 else
30846   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30847 fi
30848
30849     fi
30850
30851     if test "x$PKGCONFIG" != "xno"; then
30852       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30853 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30854             itexists=`
30855     if test -n "$want_nghttp2_pkg_config_path"; then
30856       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30857       export PKG_CONFIG_LIBDIR
30858     fi
30859          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30860
30861       if test -z "$itexists"; then
30862                         PKGCONFIG="no"
30863         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30864 printf "%s\n" "no" >&6; }
30865       else
30866         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30867 printf "%s\n" "found" >&6; }
30868       fi
30869     fi
30870
30871
30872   if test "$PKGCONFIG" != "no" ; then
30873     LIB_H2=`
30874     if test -n "$want_nghttp2_pkg_config_path"; then
30875       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30876       export PKG_CONFIG_LIBDIR
30877     fi
30878
30879       $PKGCONFIG --libs-only-l libnghttp2`
30880     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30881 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30882
30883     CPP_H2=`
30884     if test -n "$want_nghttp2_pkg_config_path"; then
30885       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30886       export PKG_CONFIG_LIBDIR
30887     fi
30888        $PKGCONFIG --cflags-only-I libnghttp2`
30889     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30890 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30891
30892     LD_H2=`
30893     if test -n "$want_nghttp2_pkg_config_path"; then
30894       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30895       export PKG_CONFIG_LIBDIR
30896     fi
30897
30898       $PKGCONFIG --libs-only-L libnghttp2`
30899     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30900 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30901
30902     DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30903   elif test x"$want_nghttp2_path" != x; then
30904     LIB_H2="-lnghttp2"
30905     LD_H2=-L${want_nghttp2_path}/lib$libsuff
30906     CPP_H2=-I${want_nghttp2_path}/include
30907     DIR_H2=${want_nghttp2_path}/lib$libsuff
30908   elif test X"$want_nghttp2" != Xdefault; then
30909             as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30910   else
30911     LIB_H2="-lnghttp2"
30912   fi
30913
30914   LDFLAGS="$LDFLAGS $LD_H2"
30915   CPPFLAGS="$CPPFLAGS $CPP_H2"
30916   LIBS="$LIB_H2 $LIBS"
30917
30918   # use nghttp2_session_get_stream_local_window_size to require nghttp2
30919   # >= 1.15.0
30920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5
30921 printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; }
30922 if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y}
30923 then :
30924   printf %s "(cached) " >&6
30925 else $as_nop
30926   ac_check_lib_save_LIBS=$LIBS
30927 LIBS="-lnghttp2  $LIBS"
30928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929 /* end confdefs.h.  */
30930
30931
30932 #ifdef __cplusplus
30933 extern "C"
30934 #endif
30935 char nghttp2_session_get_stream_local_window_size ();
30936 int main (void)
30937 {
30938 return nghttp2_session_get_stream_local_window_size ();
30939  ;
30940  return 0;
30941 }
30942 _ACEOF
30943 if ac_fn_c_try_link "$LINENO"
30944 then :
30945   ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes
30946 else $as_nop
30947   ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no
30948 fi
30949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30950     conftest$ac_exeext conftest.$ac_ext
30951 LIBS=$ac_check_lib_save_LIBS
30952 fi
30953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5
30954 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; }
30955 if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes
30956 then :
30957
30958             for ac_header in nghttp2/nghttp2.h
30959 do :
30960   ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30961 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30962 then :
30963   printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30964  curl_h2_msg="enabled (nghttp2)"
30965         NGHTTP2_ENABLED=1
30966
30967 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30968
30969         USE_NGHTTP2=1
30970
30971
30972 fi
30973
30974 done
30975
30976      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30977      export CURL_LIBRARY_PATH
30978      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30979 printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30980
30981 else $as_nop
30982         LDFLAGS=$CLEANLDFLAGS
30983       CPPFLAGS=$CLEANCPPFLAGS
30984       LIBS=$CLEANLIBS
30985
30986 fi
30987
30988 fi
30989
30990
30991 OPT_TCP2="no"
30992
30993 if test "x$disable_http" = "xyes"; then
30994   # without HTTP, ngtcp2 is no use
30995   OPT_TCP2="no"
30996 fi
30997
30998
30999 # Check whether --with-ngtcp2 was given.
31000 if test ${with_ngtcp2+y}
31001 then :
31002   withval=$with_ngtcp2; OPT_TCP2=$withval
31003 fi
31004
31005 case "$OPT_TCP2" in
31006   no)
31007         want_tcp2="no"
31008     ;;
31009   yes)
31010         want_tcp2="default"
31011     want_tcp2_path=""
31012     ;;
31013   *)
31014         want_tcp2="yes"
31015     want_tcp2_path="$withval/lib/pkgconfig"
31016     ;;
31017 esac
31018
31019 curl_tcp2_msg="no      (--with-ngtcp2)"
31020 if test X"$want_tcp2" != Xno; then
31021     CLEANLDFLAGS="$LDFLAGS"
31022   CLEANCPPFLAGS="$CPPFLAGS"
31023   CLEANLIBS="$LIBS"
31024
31025
31026     if test -n "$PKG_CONFIG"; then
31027       PKGCONFIG="$PKG_CONFIG"
31028     else
31029       if test -n "$ac_tool_prefix"; then
31030   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31033 printf %s "checking for $ac_word... " >&6; }
31034 if test ${ac_cv_path_PKGCONFIG+y}
31035 then :
31036   printf %s "(cached) " >&6
31037 else $as_nop
31038   case $PKGCONFIG in
31039   [\\/]* | ?:[\\/]*)
31040   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31041   ;;
31042   *)
31043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31044 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31045 for as_dir in $as_dummy
31046 do
31047   IFS=$as_save_IFS
31048   case $as_dir in #(((
31049     '') as_dir=./ ;;
31050     */) ;;
31051     *) as_dir=$as_dir/ ;;
31052   esac
31053     for ac_exec_ext in '' $ac_executable_extensions; do
31054   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31055     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31056     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31057     break 2
31058   fi
31059 done
31060   done
31061 IFS=$as_save_IFS
31062
31063   ;;
31064 esac
31065 fi
31066 PKGCONFIG=$ac_cv_path_PKGCONFIG
31067 if test -n "$PKGCONFIG"; then
31068   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31069 printf "%s\n" "$PKGCONFIG" >&6; }
31070 else
31071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072 printf "%s\n" "no" >&6; }
31073 fi
31074
31075
31076 fi
31077 if test -z "$ac_cv_path_PKGCONFIG"; then
31078   ac_pt_PKGCONFIG=$PKGCONFIG
31079   # Extract the first word of "pkg-config", so it can be a program name with args.
31080 set dummy pkg-config; ac_word=$2
31081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31082 printf %s "checking for $ac_word... " >&6; }
31083 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31084 then :
31085   printf %s "(cached) " >&6
31086 else $as_nop
31087   case $ac_pt_PKGCONFIG in
31088   [\\/]* | ?:[\\/]*)
31089   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31090   ;;
31091   *)
31092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31093 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31094 for as_dir in $as_dummy
31095 do
31096   IFS=$as_save_IFS
31097   case $as_dir in #(((
31098     '') as_dir=./ ;;
31099     */) ;;
31100     *) as_dir=$as_dir/ ;;
31101   esac
31102     for ac_exec_ext in '' $ac_executable_extensions; do
31103   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31104     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31105     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31106     break 2
31107   fi
31108 done
31109   done
31110 IFS=$as_save_IFS
31111
31112   ;;
31113 esac
31114 fi
31115 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31116 if test -n "$ac_pt_PKGCONFIG"; then
31117   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31118 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31119 else
31120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31121 printf "%s\n" "no" >&6; }
31122 fi
31123
31124   if test "x$ac_pt_PKGCONFIG" = x; then
31125     PKGCONFIG="no"
31126   else
31127     case $cross_compiling:$ac_tool_warned in
31128 yes:)
31129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31131 ac_tool_warned=yes ;;
31132 esac
31133     PKGCONFIG=$ac_pt_PKGCONFIG
31134   fi
31135 else
31136   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31137 fi
31138
31139     fi
31140
31141     if test "x$PKGCONFIG" != "xno"; then
31142       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
31143 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
31144             itexists=`
31145     if test -n "$want_tcp2_path"; then
31146       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31147       export PKG_CONFIG_LIBDIR
31148     fi
31149          $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
31150
31151       if test -z "$itexists"; then
31152                         PKGCONFIG="no"
31153         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 printf "%s\n" "no" >&6; }
31155       else
31156         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31157 printf "%s\n" "found" >&6; }
31158       fi
31159     fi
31160
31161
31162   if test "$PKGCONFIG" != "no" ; then
31163     LIB_TCP2=`
31164     if test -n "$want_tcp2_path"; then
31165       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31166       export PKG_CONFIG_LIBDIR
31167     fi
31168
31169       $PKGCONFIG --libs-only-l libngtcp2`
31170     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
31171 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
31172
31173     CPP_TCP2=`
31174     if test -n "$want_tcp2_path"; then
31175       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31176       export PKG_CONFIG_LIBDIR
31177     fi
31178        $PKGCONFIG --cflags-only-I libngtcp2`
31179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
31180 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
31181
31182     LD_TCP2=`
31183     if test -n "$want_tcp2_path"; then
31184       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31185       export PKG_CONFIG_LIBDIR
31186     fi
31187
31188       $PKGCONFIG --libs-only-L libngtcp2`
31189     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
31190 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
31191
31192     LDFLAGS="$LDFLAGS $LD_TCP2"
31193     CPPFLAGS="$CPPFLAGS $CPP_TCP2"
31194     LIBS="$LIB_TCP2 $LIBS"
31195
31196     if test "x$cross_compiling" != "xyes"; then
31197       DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
31198     fi
31199     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
31200 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
31201 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
31202 then :
31203   printf %s "(cached) " >&6
31204 else $as_nop
31205   ac_check_lib_save_LIBS=$LIBS
31206 LIBS="-lngtcp2  $LIBS"
31207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h.  */
31209
31210
31211 #ifdef __cplusplus
31212 extern "C"
31213 #endif
31214 char ngtcp2_conn_client_new_versioned ();
31215 int main (void)
31216 {
31217 return ngtcp2_conn_client_new_versioned ();
31218  ;
31219  return 0;
31220 }
31221 _ACEOF
31222 if ac_fn_c_try_link "$LINENO"
31223 then :
31224   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
31225 else $as_nop
31226   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
31227 fi
31228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31229     conftest$ac_exeext conftest.$ac_ext
31230 LIBS=$ac_check_lib_save_LIBS
31231 fi
31232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
31233 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
31234 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
31235 then :
31236
31237               for ac_header in ngtcp2/ngtcp2.h
31238 do :
31239   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
31240 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
31241 then :
31242   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
31243  NGTCP2_ENABLED=1
31244
31245 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
31246
31247           USE_NGTCP2=1
31248
31249           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
31250           export CURL_LIBRARY_PATH
31251           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
31252 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
31253
31254 fi
31255
31256 done
31257
31258 else $as_nop
31259           LDFLAGS=$CLEANLDFLAGS
31260         CPPFLAGS=$CLEANCPPFLAGS
31261         LIBS=$CLEANLIBS
31262
31263 fi
31264
31265
31266   else
31267         if test X"$want_tcp2" != Xdefault; then
31268                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
31269     fi
31270   fi
31271
31272 fi
31273
31274 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
31275     CLEANLDFLAGS="$LDFLAGS"
31276   CLEANCPPFLAGS="$CPPFLAGS"
31277   CLEANLIBS="$LIBS"
31278
31279
31280     if test -n "$PKG_CONFIG"; then
31281       PKGCONFIG="$PKG_CONFIG"
31282     else
31283       if test -n "$ac_tool_prefix"; then
31284   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31287 printf %s "checking for $ac_word... " >&6; }
31288 if test ${ac_cv_path_PKGCONFIG+y}
31289 then :
31290   printf %s "(cached) " >&6
31291 else $as_nop
31292   case $PKGCONFIG in
31293   [\\/]* | ?:[\\/]*)
31294   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31295   ;;
31296   *)
31297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31298 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31299 for as_dir in $as_dummy
31300 do
31301   IFS=$as_save_IFS
31302   case $as_dir in #(((
31303     '') as_dir=./ ;;
31304     */) ;;
31305     *) as_dir=$as_dir/ ;;
31306   esac
31307     for ac_exec_ext in '' $ac_executable_extensions; do
31308   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31309     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31310     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31311     break 2
31312   fi
31313 done
31314   done
31315 IFS=$as_save_IFS
31316
31317   ;;
31318 esac
31319 fi
31320 PKGCONFIG=$ac_cv_path_PKGCONFIG
31321 if test -n "$PKGCONFIG"; then
31322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31323 printf "%s\n" "$PKGCONFIG" >&6; }
31324 else
31325   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326 printf "%s\n" "no" >&6; }
31327 fi
31328
31329
31330 fi
31331 if test -z "$ac_cv_path_PKGCONFIG"; then
31332   ac_pt_PKGCONFIG=$PKGCONFIG
31333   # Extract the first word of "pkg-config", so it can be a program name with args.
31334 set dummy pkg-config; ac_word=$2
31335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31336 printf %s "checking for $ac_word... " >&6; }
31337 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31338 then :
31339   printf %s "(cached) " >&6
31340 else $as_nop
31341   case $ac_pt_PKGCONFIG in
31342   [\\/]* | ?:[\\/]*)
31343   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31344   ;;
31345   *)
31346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31347 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31348 for as_dir in $as_dummy
31349 do
31350   IFS=$as_save_IFS
31351   case $as_dir in #(((
31352     '') as_dir=./ ;;
31353     */) ;;
31354     *) as_dir=$as_dir/ ;;
31355   esac
31356     for ac_exec_ext in '' $ac_executable_extensions; do
31357   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31358     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31359     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31360     break 2
31361   fi
31362 done
31363   done
31364 IFS=$as_save_IFS
31365
31366   ;;
31367 esac
31368 fi
31369 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31370 if test -n "$ac_pt_PKGCONFIG"; then
31371   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31372 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31373 else
31374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 printf "%s\n" "no" >&6; }
31376 fi
31377
31378   if test "x$ac_pt_PKGCONFIG" = x; then
31379     PKGCONFIG="no"
31380   else
31381     case $cross_compiling:$ac_tool_warned in
31382 yes:)
31383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31385 ac_tool_warned=yes ;;
31386 esac
31387     PKGCONFIG=$ac_pt_PKGCONFIG
31388   fi
31389 else
31390   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31391 fi
31392
31393     fi
31394
31395     if test "x$PKGCONFIG" != "xno"; then
31396       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5
31397 printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; }
31398             itexists=`
31399     if test -n "$want_tcp2_path"; then
31400       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31401       export PKG_CONFIG_LIBDIR
31402     fi
31403          $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1`
31404
31405       if test -z "$itexists"; then
31406                         PKGCONFIG="no"
31407         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31408 printf "%s\n" "no" >&6; }
31409       else
31410         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31411 printf "%s\n" "found" >&6; }
31412       fi
31413     fi
31414
31415
31416   if test "$PKGCONFIG" != "no" ; then
31417     LIB_NGTCP2_CRYPTO_QUICTLS=`
31418     if test -n "$want_tcp2_path"; then
31419       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31420       export PKG_CONFIG_LIBDIR
31421     fi
31422
31423       $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
31424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5
31425 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;}
31426
31427     CPP_NGTCP2_CRYPTO_QUICTLS=`
31428     if test -n "$want_tcp2_path"; then
31429       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31430       export PKG_CONFIG_LIBDIR
31431     fi
31432        $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
31433     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5
31434 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;}
31435
31436     LD_NGTCP2_CRYPTO_QUICTLS=`
31437     if test -n "$want_tcp2_path"; then
31438       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31439       export PKG_CONFIG_LIBDIR
31440     fi
31441
31442       $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
31443     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5
31444 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;}
31445
31446     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS"
31447     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
31448     LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
31449
31450     if test "x$cross_compiling" != "xyes"; then
31451       DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
31452     fi
31453     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5
31454 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; }
31455 if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y}
31456 then :
31457   printf %s "(cached) " >&6
31458 else $as_nop
31459   ac_check_lib_save_LIBS=$LIBS
31460 LIBS="-lngtcp2_crypto_quictls  $LIBS"
31461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31462 /* end confdefs.h.  */
31463
31464
31465 #ifdef __cplusplus
31466 extern "C"
31467 #endif
31468 char ngtcp2_crypto_recv_client_initial_cb ();
31469 int main (void)
31470 {
31471 return ngtcp2_crypto_recv_client_initial_cb ();
31472  ;
31473  return 0;
31474 }
31475 _ACEOF
31476 if ac_fn_c_try_link "$LINENO"
31477 then :
31478   ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes
31479 else $as_nop
31480   ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no
31481 fi
31482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31483     conftest$ac_exeext conftest.$ac_ext
31484 LIBS=$ac_check_lib_save_LIBS
31485 fi
31486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5
31487 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31488 if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31489 then :
31490
31491               for ac_header in ngtcp2/ngtcp2_crypto.h
31492 do :
31493   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31494 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31495 then :
31496   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31497  NGTCP2_ENABLED=1
31498
31499 printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h
31500
31501           USE_NGTCP2_CRYPTO_QUICTLS=1
31502
31503           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
31504           export CURL_LIBRARY_PATH
31505           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5
31506 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;}
31507
31508 fi
31509
31510 done
31511
31512 else $as_nop
31513           LDFLAGS=$CLEANLDFLAGS
31514         CPPFLAGS=$CLEANCPPFLAGS
31515         LIBS=$CLEANLIBS
31516
31517 fi
31518
31519
31520   else
31521         if test X"$want_tcp2" != Xdefault; then
31522                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5
31523     fi
31524   fi
31525 fi
31526
31527 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31528     CLEANLDFLAGS="$LDFLAGS"
31529   CLEANCPPFLAGS="$CPPFLAGS"
31530   CLEANLIBS="$LIBS"
31531
31532
31533     if test -n "$PKG_CONFIG"; then
31534       PKGCONFIG="$PKG_CONFIG"
31535     else
31536       if test -n "$ac_tool_prefix"; then
31537   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31538 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31540 printf %s "checking for $ac_word... " >&6; }
31541 if test ${ac_cv_path_PKGCONFIG+y}
31542 then :
31543   printf %s "(cached) " >&6
31544 else $as_nop
31545   case $PKGCONFIG in
31546   [\\/]* | ?:[\\/]*)
31547   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31548   ;;
31549   *)
31550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31551 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31552 for as_dir in $as_dummy
31553 do
31554   IFS=$as_save_IFS
31555   case $as_dir in #(((
31556     '') as_dir=./ ;;
31557     */) ;;
31558     *) as_dir=$as_dir/ ;;
31559   esac
31560     for ac_exec_ext in '' $ac_executable_extensions; do
31561   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31562     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31563     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31564     break 2
31565   fi
31566 done
31567   done
31568 IFS=$as_save_IFS
31569
31570   ;;
31571 esac
31572 fi
31573 PKGCONFIG=$ac_cv_path_PKGCONFIG
31574 if test -n "$PKGCONFIG"; then
31575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31576 printf "%s\n" "$PKGCONFIG" >&6; }
31577 else
31578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31579 printf "%s\n" "no" >&6; }
31580 fi
31581
31582
31583 fi
31584 if test -z "$ac_cv_path_PKGCONFIG"; then
31585   ac_pt_PKGCONFIG=$PKGCONFIG
31586   # Extract the first word of "pkg-config", so it can be a program name with args.
31587 set dummy pkg-config; ac_word=$2
31588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31589 printf %s "checking for $ac_word... " >&6; }
31590 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31591 then :
31592   printf %s "(cached) " >&6
31593 else $as_nop
31594   case $ac_pt_PKGCONFIG in
31595   [\\/]* | ?:[\\/]*)
31596   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31597   ;;
31598   *)
31599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31600 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31601 for as_dir in $as_dummy
31602 do
31603   IFS=$as_save_IFS
31604   case $as_dir in #(((
31605     '') as_dir=./ ;;
31606     */) ;;
31607     *) as_dir=$as_dir/ ;;
31608   esac
31609     for ac_exec_ext in '' $ac_executable_extensions; do
31610   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31611     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31612     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31613     break 2
31614   fi
31615 done
31616   done
31617 IFS=$as_save_IFS
31618
31619   ;;
31620 esac
31621 fi
31622 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31623 if test -n "$ac_pt_PKGCONFIG"; then
31624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31625 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31626 else
31627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31628 printf "%s\n" "no" >&6; }
31629 fi
31630
31631   if test "x$ac_pt_PKGCONFIG" = x; then
31632     PKGCONFIG="no"
31633   else
31634     case $cross_compiling:$ac_tool_warned in
31635 yes:)
31636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31638 ac_tool_warned=yes ;;
31639 esac
31640     PKGCONFIG=$ac_pt_PKGCONFIG
31641   fi
31642 else
31643   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31644 fi
31645
31646     fi
31647
31648     if test "x$PKGCONFIG" != "xno"; then
31649       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31650 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31651             itexists=`
31652     if test -n "$want_tcp2_path"; then
31653       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31654       export PKG_CONFIG_LIBDIR
31655     fi
31656          $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31657
31658       if test -z "$itexists"; then
31659                         PKGCONFIG="no"
31660         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661 printf "%s\n" "no" >&6; }
31662       else
31663         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31664 printf "%s\n" "found" >&6; }
31665       fi
31666     fi
31667
31668
31669   if test "$PKGCONFIG" != "no" ; then
31670     LIB_NGTCP2_CRYPTO_GNUTLS=`
31671     if test -n "$want_tcp2_path"; then
31672       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31673       export PKG_CONFIG_LIBDIR
31674     fi
31675
31676       $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31677     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31678 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31679
31680     CPP_NGTCP2_CRYPTO_GNUTLS=`
31681     if test -n "$want_tcp2_path"; then
31682       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31683       export PKG_CONFIG_LIBDIR
31684     fi
31685        $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31686     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31687 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31688
31689     LD_NGTCP2_CRYPTO_GNUTLS=`
31690     if test -n "$want_tcp2_path"; then
31691       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31692       export PKG_CONFIG_LIBDIR
31693     fi
31694
31695       $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31696     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31697 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31698
31699     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31700     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31701     LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31702
31703     if test "x$cross_compiling" != "xyes"; then
31704       DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31705     fi
31706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31707 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31708 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31709 then :
31710   printf %s "(cached) " >&6
31711 else $as_nop
31712   ac_check_lib_save_LIBS=$LIBS
31713 LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31715 /* end confdefs.h.  */
31716
31717
31718 #ifdef __cplusplus
31719 extern "C"
31720 #endif
31721 char ngtcp2_crypto_recv_client_initial_cb ();
31722 int main (void)
31723 {
31724 return ngtcp2_crypto_recv_client_initial_cb ();
31725  ;
31726  return 0;
31727 }
31728 _ACEOF
31729 if ac_fn_c_try_link "$LINENO"
31730 then :
31731   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31732 else $as_nop
31733   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31734 fi
31735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31736     conftest$ac_exeext conftest.$ac_ext
31737 LIBS=$ac_check_lib_save_LIBS
31738 fi
31739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31740 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31741 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31742 then :
31743
31744               for ac_header in ngtcp2/ngtcp2_crypto.h
31745 do :
31746   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31747 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31748 then :
31749   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31750  NGTCP2_ENABLED=1
31751
31752 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31753
31754           USE_NGTCP2_CRYPTO_GNUTLS=1
31755
31756           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31757           export CURL_LIBRARY_PATH
31758           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31759 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31760
31761 fi
31762
31763 done
31764
31765 else $as_nop
31766           LDFLAGS=$CLEANLDFLAGS
31767         CPPFLAGS=$CLEANCPPFLAGS
31768         LIBS=$CLEANLIBS
31769
31770 fi
31771
31772
31773   else
31774         if test X"$want_tcp2" != Xdefault; then
31775                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31776     fi
31777   fi
31778 fi
31779
31780 if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31781     CLEANLDFLAGS="$LDFLAGS"
31782   CLEANCPPFLAGS="$CPPFLAGS"
31783   CLEANLIBS="$LIBS"
31784
31785
31786     if test -n "$PKG_CONFIG"; then
31787       PKGCONFIG="$PKG_CONFIG"
31788     else
31789       if test -n "$ac_tool_prefix"; then
31790   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31793 printf %s "checking for $ac_word... " >&6; }
31794 if test ${ac_cv_path_PKGCONFIG+y}
31795 then :
31796   printf %s "(cached) " >&6
31797 else $as_nop
31798   case $PKGCONFIG in
31799   [\\/]* | ?:[\\/]*)
31800   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31801   ;;
31802   *)
31803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31804 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31805 for as_dir in $as_dummy
31806 do
31807   IFS=$as_save_IFS
31808   case $as_dir in #(((
31809     '') as_dir=./ ;;
31810     */) ;;
31811     *) as_dir=$as_dir/ ;;
31812   esac
31813     for ac_exec_ext in '' $ac_executable_extensions; do
31814   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31815     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31816     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31817     break 2
31818   fi
31819 done
31820   done
31821 IFS=$as_save_IFS
31822
31823   ;;
31824 esac
31825 fi
31826 PKGCONFIG=$ac_cv_path_PKGCONFIG
31827 if test -n "$PKGCONFIG"; then
31828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31829 printf "%s\n" "$PKGCONFIG" >&6; }
31830 else
31831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832 printf "%s\n" "no" >&6; }
31833 fi
31834
31835
31836 fi
31837 if test -z "$ac_cv_path_PKGCONFIG"; then
31838   ac_pt_PKGCONFIG=$PKGCONFIG
31839   # Extract the first word of "pkg-config", so it can be a program name with args.
31840 set dummy pkg-config; ac_word=$2
31841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31842 printf %s "checking for $ac_word... " >&6; }
31843 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31844 then :
31845   printf %s "(cached) " >&6
31846 else $as_nop
31847   case $ac_pt_PKGCONFIG in
31848   [\\/]* | ?:[\\/]*)
31849   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31850   ;;
31851   *)
31852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31854 for as_dir in $as_dummy
31855 do
31856   IFS=$as_save_IFS
31857   case $as_dir in #(((
31858     '') as_dir=./ ;;
31859     */) ;;
31860     *) as_dir=$as_dir/ ;;
31861   esac
31862     for ac_exec_ext in '' $ac_executable_extensions; do
31863   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31864     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31865     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31866     break 2
31867   fi
31868 done
31869   done
31870 IFS=$as_save_IFS
31871
31872   ;;
31873 esac
31874 fi
31875 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31876 if test -n "$ac_pt_PKGCONFIG"; then
31877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31878 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31879 else
31880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 printf "%s\n" "no" >&6; }
31882 fi
31883
31884   if test "x$ac_pt_PKGCONFIG" = x; then
31885     PKGCONFIG="no"
31886   else
31887     case $cross_compiling:$ac_tool_warned in
31888 yes:)
31889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31891 ac_tool_warned=yes ;;
31892 esac
31893     PKGCONFIG=$ac_pt_PKGCONFIG
31894   fi
31895 else
31896   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31897 fi
31898
31899     fi
31900
31901     if test "x$PKGCONFIG" != "xno"; then
31902       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31903 printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31904             itexists=`
31905     if test -n "$want_tcp2_path"; then
31906       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31907       export PKG_CONFIG_LIBDIR
31908     fi
31909          $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31910
31911       if test -z "$itexists"; then
31912                         PKGCONFIG="no"
31913         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31914 printf "%s\n" "no" >&6; }
31915       else
31916         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31917 printf "%s\n" "found" >&6; }
31918       fi
31919     fi
31920
31921
31922   if test "$PKGCONFIG" != "no" ; then
31923     LIB_NGTCP2_CRYPTO_WOLFSSL=`
31924     if test -n "$want_tcp2_path"; then
31925       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31926       export PKG_CONFIG_LIBDIR
31927     fi
31928
31929       $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31930     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31931 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31932
31933     CPP_NGTCP2_CRYPTO_WOLFSSL=`
31934     if test -n "$want_tcp2_path"; then
31935       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31936       export PKG_CONFIG_LIBDIR
31937     fi
31938        $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31939     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31940 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31941
31942     LD_NGTCP2_CRYPTO_WOLFSSL=`
31943     if test -n "$want_tcp2_path"; then
31944       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31945       export PKG_CONFIG_LIBDIR
31946     fi
31947
31948       $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31949     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31950 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31951
31952     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31953     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31954     LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31955
31956     if test "x$cross_compiling" != "xyes"; then
31957       DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31958     fi
31959     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31960 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31961 if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31962 then :
31963   printf %s "(cached) " >&6
31964 else $as_nop
31965   ac_check_lib_save_LIBS=$LIBS
31966 LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
31967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31968 /* end confdefs.h.  */
31969
31970
31971 #ifdef __cplusplus
31972 extern "C"
31973 #endif
31974 char ngtcp2_crypto_recv_client_initial_cb ();
31975 int main (void)
31976 {
31977 return ngtcp2_crypto_recv_client_initial_cb ();
31978  ;
31979  return 0;
31980 }
31981 _ACEOF
31982 if ac_fn_c_try_link "$LINENO"
31983 then :
31984   ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31985 else $as_nop
31986   ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31987 fi
31988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31989     conftest$ac_exeext conftest.$ac_ext
31990 LIBS=$ac_check_lib_save_LIBS
31991 fi
31992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31993 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31994 if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31995 then :
31996
31997               for ac_header in ngtcp2/ngtcp2_crypto.h
31998 do :
31999   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
32000 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
32001 then :
32002   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
32003  NGTCP2_ENABLED=1
32004
32005 printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
32006
32007           USE_NGTCP2_CRYPTO_WOLFSSL=1
32008
32009           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
32010           export CURL_LIBRARY_PATH
32011           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
32012 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
32013
32014 fi
32015
32016 done
32017
32018 else $as_nop
32019           LDFLAGS=$CLEANLDFLAGS
32020         CPPFLAGS=$CLEANCPPFLAGS
32021         LIBS=$CLEANLIBS
32022
32023 fi
32024
32025
32026   else
32027         if test X"$want_tcp2" != Xdefault; then
32028                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
32029     fi
32030   fi
32031 fi
32032
32033
32034 OPT_NGHTTP3="yes"
32035
32036 if test "x$NGTCP2_ENABLED" = "x"; then
32037   # without ngtcp2, nghttp3 is of no use for us
32038   OPT_NGHTTP3="no"
32039 fi
32040
32041
32042 # Check whether --with-nghttp3 was given.
32043 if test ${with_nghttp3+y}
32044 then :
32045   withval=$with_nghttp3; OPT_NGHTTP3=$withval
32046 fi
32047
32048 case "$OPT_NGHTTP3" in
32049   no)
32050         want_nghttp3="no"
32051     ;;
32052   yes)
32053         want_nghttp3="default"
32054     want_nghttp3_path=""
32055     ;;
32056   *)
32057         want_nghttp3="yes"
32058     want_nghttp3_path="$withval/lib/pkgconfig"
32059     ;;
32060 esac
32061
32062 curl_http3_msg="no      (--with-nghttp3)"
32063 if test X"$want_nghttp3" != Xno; then
32064     CLEANLDFLAGS="$LDFLAGS"
32065   CLEANCPPFLAGS="$CPPFLAGS"
32066   CLEANLIBS="$LIBS"
32067
32068
32069     if test -n "$PKG_CONFIG"; then
32070       PKGCONFIG="$PKG_CONFIG"
32071     else
32072       if test -n "$ac_tool_prefix"; then
32073   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32076 printf %s "checking for $ac_word... " >&6; }
32077 if test ${ac_cv_path_PKGCONFIG+y}
32078 then :
32079   printf %s "(cached) " >&6
32080 else $as_nop
32081   case $PKGCONFIG in
32082   [\\/]* | ?:[\\/]*)
32083   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32084   ;;
32085   *)
32086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32088 for as_dir in $as_dummy
32089 do
32090   IFS=$as_save_IFS
32091   case $as_dir in #(((
32092     '') as_dir=./ ;;
32093     */) ;;
32094     *) as_dir=$as_dir/ ;;
32095   esac
32096     for ac_exec_ext in '' $ac_executable_extensions; do
32097   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32098     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32099     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32100     break 2
32101   fi
32102 done
32103   done
32104 IFS=$as_save_IFS
32105
32106   ;;
32107 esac
32108 fi
32109 PKGCONFIG=$ac_cv_path_PKGCONFIG
32110 if test -n "$PKGCONFIG"; then
32111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32112 printf "%s\n" "$PKGCONFIG" >&6; }
32113 else
32114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32115 printf "%s\n" "no" >&6; }
32116 fi
32117
32118
32119 fi
32120 if test -z "$ac_cv_path_PKGCONFIG"; then
32121   ac_pt_PKGCONFIG=$PKGCONFIG
32122   # Extract the first word of "pkg-config", so it can be a program name with args.
32123 set dummy pkg-config; ac_word=$2
32124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32125 printf %s "checking for $ac_word... " >&6; }
32126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32127 then :
32128   printf %s "(cached) " >&6
32129 else $as_nop
32130   case $ac_pt_PKGCONFIG in
32131   [\\/]* | ?:[\\/]*)
32132   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32133   ;;
32134   *)
32135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32137 for as_dir in $as_dummy
32138 do
32139   IFS=$as_save_IFS
32140   case $as_dir in #(((
32141     '') as_dir=./ ;;
32142     */) ;;
32143     *) as_dir=$as_dir/ ;;
32144   esac
32145     for ac_exec_ext in '' $ac_executable_extensions; do
32146   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32147     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32148     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32149     break 2
32150   fi
32151 done
32152   done
32153 IFS=$as_save_IFS
32154
32155   ;;
32156 esac
32157 fi
32158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32159 if test -n "$ac_pt_PKGCONFIG"; then
32160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32162 else
32163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32164 printf "%s\n" "no" >&6; }
32165 fi
32166
32167   if test "x$ac_pt_PKGCONFIG" = x; then
32168     PKGCONFIG="no"
32169   else
32170     case $cross_compiling:$ac_tool_warned in
32171 yes:)
32172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32174 ac_tool_warned=yes ;;
32175 esac
32176     PKGCONFIG=$ac_pt_PKGCONFIG
32177   fi
32178 else
32179   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32180 fi
32181
32182     fi
32183
32184     if test "x$PKGCONFIG" != "xno"; then
32185       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
32186 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
32187             itexists=`
32188     if test -n "$want_nghttp3_path"; then
32189       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32190       export PKG_CONFIG_LIBDIR
32191     fi
32192          $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
32193
32194       if test -z "$itexists"; then
32195                         PKGCONFIG="no"
32196         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32197 printf "%s\n" "no" >&6; }
32198       else
32199         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32200 printf "%s\n" "found" >&6; }
32201       fi
32202     fi
32203
32204
32205   if test "$PKGCONFIG" != "no" ; then
32206     LIB_NGHTTP3=`
32207     if test -n "$want_nghttp3_path"; then
32208       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32209       export PKG_CONFIG_LIBDIR
32210     fi
32211
32212       $PKGCONFIG --libs-only-l libnghttp3`
32213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
32214 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
32215
32216     CPP_NGHTTP3=`
32217     if test -n "$want_nghttp3_path"; then
32218       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32219       export PKG_CONFIG_LIBDIR
32220     fi
32221        $PKGCONFIG --cflags-only-I libnghttp3`
32222     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
32223 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
32224
32225     LD_NGHTTP3=`
32226     if test -n "$want_nghttp3_path"; then
32227       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32228       export PKG_CONFIG_LIBDIR
32229     fi
32230
32231       $PKGCONFIG --libs-only-L libnghttp3`
32232     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
32233 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
32234
32235     LDFLAGS="$LDFLAGS $LD_NGHTTP3"
32236     CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
32237     LIBS="$LIB_NGHTTP3 $LIBS"
32238
32239     if test "x$cross_compiling" != "xyes"; then
32240       DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
32241     fi
32242     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
32243 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
32244 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
32245 then :
32246   printf %s "(cached) " >&6
32247 else $as_nop
32248   ac_check_lib_save_LIBS=$LIBS
32249 LIBS="-lnghttp3  $LIBS"
32250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32251 /* end confdefs.h.  */
32252
32253
32254 #ifdef __cplusplus
32255 extern "C"
32256 #endif
32257 char nghttp3_conn_client_new_versioned ();
32258 int main (void)
32259 {
32260 return nghttp3_conn_client_new_versioned ();
32261  ;
32262  return 0;
32263 }
32264 _ACEOF
32265 if ac_fn_c_try_link "$LINENO"
32266 then :
32267   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
32268 else $as_nop
32269   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
32270 fi
32271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32272     conftest$ac_exeext conftest.$ac_ext
32273 LIBS=$ac_check_lib_save_LIBS
32274 fi
32275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
32276 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
32277 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
32278 then :
32279
32280               for ac_header in nghttp3/nghttp3.h
32281 do :
32282   ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
32283 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
32284 then :
32285   printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
32286  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
32287           NGHTTP3_ENABLED=1
32288
32289 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
32290
32291           USE_NGHTTP3=1
32292
32293           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
32294           export CURL_LIBRARY_PATH
32295           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
32296 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
32297
32298 fi
32299
32300 done
32301
32302 else $as_nop
32303           LDFLAGS=$CLEANLDFLAGS
32304         CPPFLAGS=$CLEANCPPFLAGS
32305         LIBS=$CLEANLIBS
32306
32307 fi
32308
32309
32310   else
32311         if test X"$want_nghttp3" != Xdefault; then
32312                   as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
32313     fi
32314   fi
32315
32316 fi
32317
32318
32319 OPT_QUICHE="no"
32320
32321 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32322   # without HTTP or with ngtcp2, quiche is no use
32323   OPT_QUICHE="no"
32324 fi
32325
32326
32327 # Check whether --with-quiche was given.
32328 if test ${with_quiche+y}
32329 then :
32330   withval=$with_quiche; OPT_QUICHE=$withval
32331 fi
32332
32333 case "$OPT_QUICHE" in
32334   no)
32335         want_quiche="no"
32336     ;;
32337   yes)
32338         want_quiche="default"
32339     want_quiche_path=""
32340     ;;
32341   *)
32342         want_quiche="yes"
32343     want_quiche_path="$withval"
32344     ;;
32345 esac
32346
32347 if test X"$want_quiche" != Xno; then
32348
32349   if test "$NGHTTP3_ENABLED" = 1; then
32350     as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32351   fi
32352
32353     CLEANLDFLAGS="$LDFLAGS"
32354   CLEANCPPFLAGS="$CPPFLAGS"
32355   CLEANLIBS="$LIBS"
32356
32357
32358     if test -n "$PKG_CONFIG"; then
32359       PKGCONFIG="$PKG_CONFIG"
32360     else
32361       if test -n "$ac_tool_prefix"; then
32362   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32363 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32365 printf %s "checking for $ac_word... " >&6; }
32366 if test ${ac_cv_path_PKGCONFIG+y}
32367 then :
32368   printf %s "(cached) " >&6
32369 else $as_nop
32370   case $PKGCONFIG in
32371   [\\/]* | ?:[\\/]*)
32372   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32373   ;;
32374   *)
32375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32377 for as_dir in $as_dummy
32378 do
32379   IFS=$as_save_IFS
32380   case $as_dir in #(((
32381     '') as_dir=./ ;;
32382     */) ;;
32383     *) as_dir=$as_dir/ ;;
32384   esac
32385     for ac_exec_ext in '' $ac_executable_extensions; do
32386   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32387     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32388     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32389     break 2
32390   fi
32391 done
32392   done
32393 IFS=$as_save_IFS
32394
32395   ;;
32396 esac
32397 fi
32398 PKGCONFIG=$ac_cv_path_PKGCONFIG
32399 if test -n "$PKGCONFIG"; then
32400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32401 printf "%s\n" "$PKGCONFIG" >&6; }
32402 else
32403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404 printf "%s\n" "no" >&6; }
32405 fi
32406
32407
32408 fi
32409 if test -z "$ac_cv_path_PKGCONFIG"; then
32410   ac_pt_PKGCONFIG=$PKGCONFIG
32411   # Extract the first word of "pkg-config", so it can be a program name with args.
32412 set dummy pkg-config; ac_word=$2
32413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32414 printf %s "checking for $ac_word... " >&6; }
32415 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32416 then :
32417   printf %s "(cached) " >&6
32418 else $as_nop
32419   case $ac_pt_PKGCONFIG in
32420   [\\/]* | ?:[\\/]*)
32421   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32422   ;;
32423   *)
32424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32425 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32426 for as_dir in $as_dummy
32427 do
32428   IFS=$as_save_IFS
32429   case $as_dir in #(((
32430     '') as_dir=./ ;;
32431     */) ;;
32432     *) as_dir=$as_dir/ ;;
32433   esac
32434     for ac_exec_ext in '' $ac_executable_extensions; do
32435   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32436     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32437     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32438     break 2
32439   fi
32440 done
32441   done
32442 IFS=$as_save_IFS
32443
32444   ;;
32445 esac
32446 fi
32447 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32448 if test -n "$ac_pt_PKGCONFIG"; then
32449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32450 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32451 else
32452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32453 printf "%s\n" "no" >&6; }
32454 fi
32455
32456   if test "x$ac_pt_PKGCONFIG" = x; then
32457     PKGCONFIG="no"
32458   else
32459     case $cross_compiling:$ac_tool_warned in
32460 yes:)
32461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32463 ac_tool_warned=yes ;;
32464 esac
32465     PKGCONFIG=$ac_pt_PKGCONFIG
32466   fi
32467 else
32468   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32469 fi
32470
32471     fi
32472
32473     if test "x$PKGCONFIG" != "xno"; then
32474       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32475 printf %s "checking for quiche options with pkg-config... " >&6; }
32476             itexists=`
32477     if test -n "$want_quiche_path"; then
32478       PKG_CONFIG_LIBDIR="$want_quiche_path"
32479       export PKG_CONFIG_LIBDIR
32480     fi
32481          $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32482
32483       if test -z "$itexists"; then
32484                         PKGCONFIG="no"
32485         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32486 printf "%s\n" "no" >&6; }
32487       else
32488         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32489 printf "%s\n" "found" >&6; }
32490       fi
32491     fi
32492
32493
32494   if test "$PKGCONFIG" != "no" ; then
32495     LIB_QUICHE=`
32496     if test -n "$want_quiche_path"; then
32497       PKG_CONFIG_LIBDIR="$want_quiche_path"
32498       export PKG_CONFIG_LIBDIR
32499     fi
32500
32501       $PKGCONFIG --libs-only-l quiche`
32502     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32503 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32504
32505     CPP_QUICHE=`
32506     if test -n "$want_quiche_path"; then
32507       PKG_CONFIG_LIBDIR="$want_quiche_path"
32508       export PKG_CONFIG_LIBDIR
32509     fi
32510        $PKGCONFIG --cflags-only-I quiche`
32511     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32512 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32513
32514     LD_QUICHE=`
32515     if test -n "$want_quiche_path"; then
32516       PKG_CONFIG_LIBDIR="$want_quiche_path"
32517       export PKG_CONFIG_LIBDIR
32518     fi
32519
32520       $PKGCONFIG --libs-only-L quiche`
32521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32522 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32523
32524     LDFLAGS="$LDFLAGS $LD_QUICHE"
32525     CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32526     LIBS="$LIB_QUICHE $LIBS"
32527
32528     if test "x$cross_compiling" != "xyes"; then
32529       DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32530     fi
32531     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5
32532 printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; }
32533 if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y}
32534 then :
32535   printf %s "(cached) " >&6
32536 else $as_nop
32537   ac_check_lib_save_LIBS=$LIBS
32538 LIBS="-lquiche  $LIBS"
32539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32540 /* end confdefs.h.  */
32541
32542
32543 #ifdef __cplusplus
32544 extern "C"
32545 #endif
32546 char quiche_conn_send_ack_eliciting ();
32547 int main (void)
32548 {
32549 return quiche_conn_send_ack_eliciting ();
32550  ;
32551  return 0;
32552 }
32553 _ACEOF
32554 if ac_fn_c_try_link "$LINENO"
32555 then :
32556   ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes
32557 else $as_nop
32558   ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no
32559 fi
32560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32561     conftest$ac_exeext conftest.$ac_ext
32562 LIBS=$ac_check_lib_save_LIBS
32563 fi
32564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5
32565 printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; }
32566 if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes
32567 then :
32568
32569               for ac_header in quiche.h
32570 do :
32571   ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32572 $ac_includes_default
32573 #include <sys/socket.h>
32574
32575
32576 "
32577 if test "x$ac_cv_header_quiche_h" = xyes
32578 then :
32579   printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32580  experimental="$experimental HTTP3"
32581           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32582 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32583           curl_h3_msg="enabled (quiche)"
32584           QUICHE_ENABLED=1
32585
32586 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32587
32588           USE_QUICHE=1
32589
32590           ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32591 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32592 then :
32593   printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32594
32595 fi
32596
32597           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32598           export CURL_LIBRARY_PATH
32599           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32600 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32601 fi
32602
32603 done
32604
32605 else $as_nop
32606           as_fn_error $? "couldn't use quiche" "$LINENO" 5
32607
32608 fi
32609
32610   else
32611         if test X"$want_quiche" != Xdefault; then
32612                   as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32613     fi
32614   fi
32615 fi
32616
32617
32618 OPT_MSH3="no"
32619
32620 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32621   # without HTTP or with ngtcp2, msh3 is no use
32622   OPT_MSH3="no"
32623 fi
32624
32625
32626 # Check whether --with-msh3 was given.
32627 if test ${with_msh3+y}
32628 then :
32629   withval=$with_msh3; OPT_MSH3=$withval
32630 fi
32631
32632 case "$OPT_MSH3" in
32633   no)
32634         want_msh3="no"
32635     ;;
32636   yes)
32637         want_msh3="default"
32638     want_msh3_path=""
32639     ;;
32640   *)
32641         want_msh3="yes"
32642     want_msh3_path="$withval"
32643     ;;
32644 esac
32645
32646 if test X"$want_msh3" != Xno; then
32647
32648   if test "$NGHTTP3_ENABLED" = 1; then
32649     as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32650   fi
32651
32652     CLEANLDFLAGS="$LDFLAGS"
32653   CLEANCPPFLAGS="$CPPFLAGS"
32654   CLEANLIBS="$LIBS"
32655
32656   if test -n "$want_msh3_path"; then
32657     LD_MSH3="-L$want_msh3_path/lib"
32658     CPP_MSH3="-I$want_msh3_path/include"
32659     DIR_MSH3="$want_msh3_path/lib"
32660     LDFLAGS="$LDFLAGS $LD_MSH3"
32661     CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32662   fi
32663   LIBS="-lmsh3 $LIBS"
32664
32665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32666 printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32667 if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32668 then :
32669   printf %s "(cached) " >&6
32670 else $as_nop
32671   ac_check_lib_save_LIBS=$LIBS
32672 LIBS="-lmsh3  $LIBS"
32673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32674 /* end confdefs.h.  */
32675
32676
32677 #ifdef __cplusplus
32678 extern "C"
32679 #endif
32680 char MsH3ApiOpen ();
32681 int main (void)
32682 {
32683 return MsH3ApiOpen ();
32684  ;
32685  return 0;
32686 }
32687 _ACEOF
32688 if ac_fn_c_try_link "$LINENO"
32689 then :
32690   ac_cv_lib_msh3_MsH3ApiOpen=yes
32691 else $as_nop
32692   ac_cv_lib_msh3_MsH3ApiOpen=no
32693 fi
32694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32695     conftest$ac_exeext conftest.$ac_ext
32696 LIBS=$ac_check_lib_save_LIBS
32697 fi
32698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32699 printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32700 if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32701 then :
32702
32703            for ac_header in msh3.h
32704 do :
32705   ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32706 if test "x$ac_cv_header_msh3_h" = xyes
32707 then :
32708   printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32709  curl_h3_msg="enabled (msh3)"
32710         MSH3_ENABLED=1
32711
32712 printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32713
32714         USE_MSH3=1
32715
32716         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32717         export CURL_LIBRARY_PATH
32718         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32719 printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32720 else $as_nop
32721   experimental="$experimental HTTP3"
32722
32723 fi
32724
32725 done
32726
32727 else $as_nop
32728         LDFLAGS=$CLEANLDFLAGS
32729       CPPFLAGS=$CLEANCPPFLAGS
32730       LIBS=$CLEANLIBS
32731
32732 fi
32733
32734 fi
32735
32736
32737 OPT_ZSH_FPATH=default
32738
32739 # Check whether --with-zsh-functions-dir was given.
32740 if test ${with_zsh_functions_dir+y}
32741 then :
32742   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32743 fi
32744
32745 case "$OPT_ZSH_FPATH" in
32746   no)
32747         ;;
32748   default|yes)
32749         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32750
32751     ;;
32752   *)
32753         ZSH_FUNCTIONS_DIR="$withval"
32754
32755     ;;
32756 esac
32757
32758
32759 OPT_FISH_FPATH=default
32760
32761 # Check whether --with-fish-functions-dir was given.
32762 if test ${with_fish_functions_dir+y}
32763 then :
32764   withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32765 fi
32766
32767 case "$OPT_FISH_FPATH" in
32768   no)
32769         ;;
32770   default|yes)
32771
32772     if test -n "$PKG_CONFIG"; then
32773       PKGCONFIG="$PKG_CONFIG"
32774     else
32775       if test -n "$ac_tool_prefix"; then
32776   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32779 printf %s "checking for $ac_word... " >&6; }
32780 if test ${ac_cv_path_PKGCONFIG+y}
32781 then :
32782   printf %s "(cached) " >&6
32783 else $as_nop
32784   case $PKGCONFIG in
32785   [\\/]* | ?:[\\/]*)
32786   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32787   ;;
32788   *)
32789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32791 for as_dir in $as_dummy
32792 do
32793   IFS=$as_save_IFS
32794   case $as_dir in #(((
32795     '') as_dir=./ ;;
32796     */) ;;
32797     *) as_dir=$as_dir/ ;;
32798   esac
32799     for ac_exec_ext in '' $ac_executable_extensions; do
32800   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32801     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32802     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32803     break 2
32804   fi
32805 done
32806   done
32807 IFS=$as_save_IFS
32808
32809   ;;
32810 esac
32811 fi
32812 PKGCONFIG=$ac_cv_path_PKGCONFIG
32813 if test -n "$PKGCONFIG"; then
32814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32815 printf "%s\n" "$PKGCONFIG" >&6; }
32816 else
32817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32818 printf "%s\n" "no" >&6; }
32819 fi
32820
32821
32822 fi
32823 if test -z "$ac_cv_path_PKGCONFIG"; then
32824   ac_pt_PKGCONFIG=$PKGCONFIG
32825   # Extract the first word of "pkg-config", so it can be a program name with args.
32826 set dummy pkg-config; ac_word=$2
32827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32828 printf %s "checking for $ac_word... " >&6; }
32829 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32830 then :
32831   printf %s "(cached) " >&6
32832 else $as_nop
32833   case $ac_pt_PKGCONFIG in
32834   [\\/]* | ?:[\\/]*)
32835   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32836   ;;
32837   *)
32838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32840 for as_dir in $as_dummy
32841 do
32842   IFS=$as_save_IFS
32843   case $as_dir in #(((
32844     '') as_dir=./ ;;
32845     */) ;;
32846     *) as_dir=$as_dir/ ;;
32847   esac
32848     for ac_exec_ext in '' $ac_executable_extensions; do
32849   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32850     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32851     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32852     break 2
32853   fi
32854 done
32855   done
32856 IFS=$as_save_IFS
32857
32858   ;;
32859 esac
32860 fi
32861 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32862 if test -n "$ac_pt_PKGCONFIG"; then
32863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32864 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32865 else
32866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 printf "%s\n" "no" >&6; }
32868 fi
32869
32870   if test "x$ac_pt_PKGCONFIG" = x; then
32871     PKGCONFIG="no"
32872   else
32873     case $cross_compiling:$ac_tool_warned in
32874 yes:)
32875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32877 ac_tool_warned=yes ;;
32878 esac
32879     PKGCONFIG=$ac_pt_PKGCONFIG
32880   fi
32881 else
32882   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32883 fi
32884
32885     fi
32886
32887     if test "x$PKGCONFIG" != "xno"; then
32888       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32889 printf %s "checking for fish options with pkg-config... " >&6; }
32890             itexists=`
32891     if test -n ""; then
32892       PKG_CONFIG_LIBDIR=""
32893       export PKG_CONFIG_LIBDIR
32894     fi
32895          $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32896
32897       if test -z "$itexists"; then
32898                         PKGCONFIG="no"
32899         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32900 printf "%s\n" "no" >&6; }
32901       else
32902         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32903 printf "%s\n" "found" >&6; }
32904       fi
32905     fi
32906
32907     if test "$PKGCONFIG" != "no" ; then
32908       FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32909     else
32910       FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32911     fi
32912
32913     ;;
32914   *)
32915         FISH_FUNCTIONS_DIR="$withval"
32916
32917     ;;
32918 esac
32919
32920 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32921 #ifdef HAVE_SYS_TYPES_H
32922 #include <sys/types.h>
32923 #endif
32924 #ifdef HAVE_SYS_TIME_H
32925 #include <sys/time.h>
32926 #endif
32927 #ifdef HAVE_SYS_SELECT_H
32928 #include <sys/select.h>
32929 #elif defined(HAVE_UNISTD_H)
32930 #include <unistd.h>
32931 #endif
32932 #ifdef HAVE_SYS_SOCKET_H
32933 #include <sys/socket.h>
32934 #endif
32935 #ifdef HAVE_NETINET_IN_H
32936 #include <netinet/in.h>
32937 #endif
32938 #ifdef HAVE_NETINET_IN6_H
32939 #include <netinet/in6.h>
32940 #endif
32941 #ifdef HAVE_SYS_UN_H
32942 #include <sys/un.h>
32943 #endif
32944
32945
32946 "
32947 if test "x$ac_cv_header_sys_types_h" = xyes
32948 then :
32949   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32950
32951 fi
32952 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32953 #ifdef HAVE_SYS_TYPES_H
32954 #include <sys/types.h>
32955 #endif
32956 #ifdef HAVE_SYS_TIME_H
32957 #include <sys/time.h>
32958 #endif
32959 #ifdef HAVE_SYS_SELECT_H
32960 #include <sys/select.h>
32961 #elif defined(HAVE_UNISTD_H)
32962 #include <unistd.h>
32963 #endif
32964 #ifdef HAVE_SYS_SOCKET_H
32965 #include <sys/socket.h>
32966 #endif
32967 #ifdef HAVE_NETINET_IN_H
32968 #include <netinet/in.h>
32969 #endif
32970 #ifdef HAVE_NETINET_IN6_H
32971 #include <netinet/in6.h>
32972 #endif
32973 #ifdef HAVE_SYS_UN_H
32974 #include <sys/un.h>
32975 #endif
32976
32977
32978 "
32979 if test "x$ac_cv_header_sys_time_h" = xyes
32980 then :
32981   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32982
32983 fi
32984 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32985 #ifdef HAVE_SYS_TYPES_H
32986 #include <sys/types.h>
32987 #endif
32988 #ifdef HAVE_SYS_TIME_H
32989 #include <sys/time.h>
32990 #endif
32991 #ifdef HAVE_SYS_SELECT_H
32992 #include <sys/select.h>
32993 #elif defined(HAVE_UNISTD_H)
32994 #include <unistd.h>
32995 #endif
32996 #ifdef HAVE_SYS_SOCKET_H
32997 #include <sys/socket.h>
32998 #endif
32999 #ifdef HAVE_NETINET_IN_H
33000 #include <netinet/in.h>
33001 #endif
33002 #ifdef HAVE_NETINET_IN6_H
33003 #include <netinet/in6.h>
33004 #endif
33005 #ifdef HAVE_SYS_UN_H
33006 #include <sys/un.h>
33007 #endif
33008
33009
33010 "
33011 if test "x$ac_cv_header_sys_select_h" = xyes
33012 then :
33013   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
33014
33015 fi
33016 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
33017 #ifdef HAVE_SYS_TYPES_H
33018 #include <sys/types.h>
33019 #endif
33020 #ifdef HAVE_SYS_TIME_H
33021 #include <sys/time.h>
33022 #endif
33023 #ifdef HAVE_SYS_SELECT_H
33024 #include <sys/select.h>
33025 #elif defined(HAVE_UNISTD_H)
33026 #include <unistd.h>
33027 #endif
33028 #ifdef HAVE_SYS_SOCKET_H
33029 #include <sys/socket.h>
33030 #endif
33031 #ifdef HAVE_NETINET_IN_H
33032 #include <netinet/in.h>
33033 #endif
33034 #ifdef HAVE_NETINET_IN6_H
33035 #include <netinet/in6.h>
33036 #endif
33037 #ifdef HAVE_SYS_UN_H
33038 #include <sys/un.h>
33039 #endif
33040
33041
33042 "
33043 if test "x$ac_cv_header_sys_socket_h" = xyes
33044 then :
33045   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33046
33047 fi
33048 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
33049 #ifdef HAVE_SYS_TYPES_H
33050 #include <sys/types.h>
33051 #endif
33052 #ifdef HAVE_SYS_TIME_H
33053 #include <sys/time.h>
33054 #endif
33055 #ifdef HAVE_SYS_SELECT_H
33056 #include <sys/select.h>
33057 #elif defined(HAVE_UNISTD_H)
33058 #include <unistd.h>
33059 #endif
33060 #ifdef HAVE_SYS_SOCKET_H
33061 #include <sys/socket.h>
33062 #endif
33063 #ifdef HAVE_NETINET_IN_H
33064 #include <netinet/in.h>
33065 #endif
33066 #ifdef HAVE_NETINET_IN6_H
33067 #include <netinet/in6.h>
33068 #endif
33069 #ifdef HAVE_SYS_UN_H
33070 #include <sys/un.h>
33071 #endif
33072
33073
33074 "
33075 if test "x$ac_cv_header_sys_ioctl_h" = xyes
33076 then :
33077   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
33078
33079 fi
33080 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
33081 #ifdef HAVE_SYS_TYPES_H
33082 #include <sys/types.h>
33083 #endif
33084 #ifdef HAVE_SYS_TIME_H
33085 #include <sys/time.h>
33086 #endif
33087 #ifdef HAVE_SYS_SELECT_H
33088 #include <sys/select.h>
33089 #elif defined(HAVE_UNISTD_H)
33090 #include <unistd.h>
33091 #endif
33092 #ifdef HAVE_SYS_SOCKET_H
33093 #include <sys/socket.h>
33094 #endif
33095 #ifdef HAVE_NETINET_IN_H
33096 #include <netinet/in.h>
33097 #endif
33098 #ifdef HAVE_NETINET_IN6_H
33099 #include <netinet/in6.h>
33100 #endif
33101 #ifdef HAVE_SYS_UN_H
33102 #include <sys/un.h>
33103 #endif
33104
33105
33106 "
33107 if test "x$ac_cv_header_unistd_h" = xyes
33108 then :
33109   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
33110
33111 fi
33112 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
33113 #ifdef HAVE_SYS_TYPES_H
33114 #include <sys/types.h>
33115 #endif
33116 #ifdef HAVE_SYS_TIME_H
33117 #include <sys/time.h>
33118 #endif
33119 #ifdef HAVE_SYS_SELECT_H
33120 #include <sys/select.h>
33121 #elif defined(HAVE_UNISTD_H)
33122 #include <unistd.h>
33123 #endif
33124 #ifdef HAVE_SYS_SOCKET_H
33125 #include <sys/socket.h>
33126 #endif
33127 #ifdef HAVE_NETINET_IN_H
33128 #include <netinet/in.h>
33129 #endif
33130 #ifdef HAVE_NETINET_IN6_H
33131 #include <netinet/in6.h>
33132 #endif
33133 #ifdef HAVE_SYS_UN_H
33134 #include <sys/un.h>
33135 #endif
33136
33137
33138 "
33139 if test "x$ac_cv_header_stdlib_h" = xyes
33140 then :
33141   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
33142
33143 fi
33144 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
33145 #ifdef HAVE_SYS_TYPES_H
33146 #include <sys/types.h>
33147 #endif
33148 #ifdef HAVE_SYS_TIME_H
33149 #include <sys/time.h>
33150 #endif
33151 #ifdef HAVE_SYS_SELECT_H
33152 #include <sys/select.h>
33153 #elif defined(HAVE_UNISTD_H)
33154 #include <unistd.h>
33155 #endif
33156 #ifdef HAVE_SYS_SOCKET_H
33157 #include <sys/socket.h>
33158 #endif
33159 #ifdef HAVE_NETINET_IN_H
33160 #include <netinet/in.h>
33161 #endif
33162 #ifdef HAVE_NETINET_IN6_H
33163 #include <netinet/in6.h>
33164 #endif
33165 #ifdef HAVE_SYS_UN_H
33166 #include <sys/un.h>
33167 #endif
33168
33169
33170 "
33171 if test "x$ac_cv_header_arpa_inet_h" = xyes
33172 then :
33173   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
33174
33175 fi
33176 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
33177 #ifdef HAVE_SYS_TYPES_H
33178 #include <sys/types.h>
33179 #endif
33180 #ifdef HAVE_SYS_TIME_H
33181 #include <sys/time.h>
33182 #endif
33183 #ifdef HAVE_SYS_SELECT_H
33184 #include <sys/select.h>
33185 #elif defined(HAVE_UNISTD_H)
33186 #include <unistd.h>
33187 #endif
33188 #ifdef HAVE_SYS_SOCKET_H
33189 #include <sys/socket.h>
33190 #endif
33191 #ifdef HAVE_NETINET_IN_H
33192 #include <netinet/in.h>
33193 #endif
33194 #ifdef HAVE_NETINET_IN6_H
33195 #include <netinet/in6.h>
33196 #endif
33197 #ifdef HAVE_SYS_UN_H
33198 #include <sys/un.h>
33199 #endif
33200
33201
33202 "
33203 if test "x$ac_cv_header_net_if_h" = xyes
33204 then :
33205   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
33206
33207 fi
33208 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
33209 #ifdef HAVE_SYS_TYPES_H
33210 #include <sys/types.h>
33211 #endif
33212 #ifdef HAVE_SYS_TIME_H
33213 #include <sys/time.h>
33214 #endif
33215 #ifdef HAVE_SYS_SELECT_H
33216 #include <sys/select.h>
33217 #elif defined(HAVE_UNISTD_H)
33218 #include <unistd.h>
33219 #endif
33220 #ifdef HAVE_SYS_SOCKET_H
33221 #include <sys/socket.h>
33222 #endif
33223 #ifdef HAVE_NETINET_IN_H
33224 #include <netinet/in.h>
33225 #endif
33226 #ifdef HAVE_NETINET_IN6_H
33227 #include <netinet/in6.h>
33228 #endif
33229 #ifdef HAVE_SYS_UN_H
33230 #include <sys/un.h>
33231 #endif
33232
33233
33234 "
33235 if test "x$ac_cv_header_netinet_in_h" = xyes
33236 then :
33237   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
33238
33239 fi
33240 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
33241 #ifdef HAVE_SYS_TYPES_H
33242 #include <sys/types.h>
33243 #endif
33244 #ifdef HAVE_SYS_TIME_H
33245 #include <sys/time.h>
33246 #endif
33247 #ifdef HAVE_SYS_SELECT_H
33248 #include <sys/select.h>
33249 #elif defined(HAVE_UNISTD_H)
33250 #include <unistd.h>
33251 #endif
33252 #ifdef HAVE_SYS_SOCKET_H
33253 #include <sys/socket.h>
33254 #endif
33255 #ifdef HAVE_NETINET_IN_H
33256 #include <netinet/in.h>
33257 #endif
33258 #ifdef HAVE_NETINET_IN6_H
33259 #include <netinet/in6.h>
33260 #endif
33261 #ifdef HAVE_SYS_UN_H
33262 #include <sys/un.h>
33263 #endif
33264
33265
33266 "
33267 if test "x$ac_cv_header_netinet_in6_h" = xyes
33268 then :
33269   printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
33270
33271 fi
33272 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
33273 #ifdef HAVE_SYS_TYPES_H
33274 #include <sys/types.h>
33275 #endif
33276 #ifdef HAVE_SYS_TIME_H
33277 #include <sys/time.h>
33278 #endif
33279 #ifdef HAVE_SYS_SELECT_H
33280 #include <sys/select.h>
33281 #elif defined(HAVE_UNISTD_H)
33282 #include <unistd.h>
33283 #endif
33284 #ifdef HAVE_SYS_SOCKET_H
33285 #include <sys/socket.h>
33286 #endif
33287 #ifdef HAVE_NETINET_IN_H
33288 #include <netinet/in.h>
33289 #endif
33290 #ifdef HAVE_NETINET_IN6_H
33291 #include <netinet/in6.h>
33292 #endif
33293 #ifdef HAVE_SYS_UN_H
33294 #include <sys/un.h>
33295 #endif
33296
33297
33298 "
33299 if test "x$ac_cv_header_sys_un_h" = xyes
33300 then :
33301   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
33302
33303 fi
33304 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
33305 #ifdef HAVE_SYS_TYPES_H
33306 #include <sys/types.h>
33307 #endif
33308 #ifdef HAVE_SYS_TIME_H
33309 #include <sys/time.h>
33310 #endif
33311 #ifdef HAVE_SYS_SELECT_H
33312 #include <sys/select.h>
33313 #elif defined(HAVE_UNISTD_H)
33314 #include <unistd.h>
33315 #endif
33316 #ifdef HAVE_SYS_SOCKET_H
33317 #include <sys/socket.h>
33318 #endif
33319 #ifdef HAVE_NETINET_IN_H
33320 #include <netinet/in.h>
33321 #endif
33322 #ifdef HAVE_NETINET_IN6_H
33323 #include <netinet/in6.h>
33324 #endif
33325 #ifdef HAVE_SYS_UN_H
33326 #include <sys/un.h>
33327 #endif
33328
33329
33330 "
33331 if test "x$ac_cv_header_linux_tcp_h" = xyes
33332 then :
33333   printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
33334
33335 fi
33336 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
33337 #ifdef HAVE_SYS_TYPES_H
33338 #include <sys/types.h>
33339 #endif
33340 #ifdef HAVE_SYS_TIME_H
33341 #include <sys/time.h>
33342 #endif
33343 #ifdef HAVE_SYS_SELECT_H
33344 #include <sys/select.h>
33345 #elif defined(HAVE_UNISTD_H)
33346 #include <unistd.h>
33347 #endif
33348 #ifdef HAVE_SYS_SOCKET_H
33349 #include <sys/socket.h>
33350 #endif
33351 #ifdef HAVE_NETINET_IN_H
33352 #include <netinet/in.h>
33353 #endif
33354 #ifdef HAVE_NETINET_IN6_H
33355 #include <netinet/in6.h>
33356 #endif
33357 #ifdef HAVE_SYS_UN_H
33358 #include <sys/un.h>
33359 #endif
33360
33361
33362 "
33363 if test "x$ac_cv_header_netinet_tcp_h" = xyes
33364 then :
33365   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
33366
33367 fi
33368 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
33369 #ifdef HAVE_SYS_TYPES_H
33370 #include <sys/types.h>
33371 #endif
33372 #ifdef HAVE_SYS_TIME_H
33373 #include <sys/time.h>
33374 #endif
33375 #ifdef HAVE_SYS_SELECT_H
33376 #include <sys/select.h>
33377 #elif defined(HAVE_UNISTD_H)
33378 #include <unistd.h>
33379 #endif
33380 #ifdef HAVE_SYS_SOCKET_H
33381 #include <sys/socket.h>
33382 #endif
33383 #ifdef HAVE_NETINET_IN_H
33384 #include <netinet/in.h>
33385 #endif
33386 #ifdef HAVE_NETINET_IN6_H
33387 #include <netinet/in6.h>
33388 #endif
33389 #ifdef HAVE_SYS_UN_H
33390 #include <sys/un.h>
33391 #endif
33392
33393
33394 "
33395 if test "x$ac_cv_header_netinet_udp_h" = xyes
33396 then :
33397   printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33398
33399 fi
33400 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33401 #ifdef HAVE_SYS_TYPES_H
33402 #include <sys/types.h>
33403 #endif
33404 #ifdef HAVE_SYS_TIME_H
33405 #include <sys/time.h>
33406 #endif
33407 #ifdef HAVE_SYS_SELECT_H
33408 #include <sys/select.h>
33409 #elif defined(HAVE_UNISTD_H)
33410 #include <unistd.h>
33411 #endif
33412 #ifdef HAVE_SYS_SOCKET_H
33413 #include <sys/socket.h>
33414 #endif
33415 #ifdef HAVE_NETINET_IN_H
33416 #include <netinet/in.h>
33417 #endif
33418 #ifdef HAVE_NETINET_IN6_H
33419 #include <netinet/in6.h>
33420 #endif
33421 #ifdef HAVE_SYS_UN_H
33422 #include <sys/un.h>
33423 #endif
33424
33425
33426 "
33427 if test "x$ac_cv_header_netdb_h" = xyes
33428 then :
33429   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33430
33431 fi
33432 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33433 #ifdef HAVE_SYS_TYPES_H
33434 #include <sys/types.h>
33435 #endif
33436 #ifdef HAVE_SYS_TIME_H
33437 #include <sys/time.h>
33438 #endif
33439 #ifdef HAVE_SYS_SELECT_H
33440 #include <sys/select.h>
33441 #elif defined(HAVE_UNISTD_H)
33442 #include <unistd.h>
33443 #endif
33444 #ifdef HAVE_SYS_SOCKET_H
33445 #include <sys/socket.h>
33446 #endif
33447 #ifdef HAVE_NETINET_IN_H
33448 #include <netinet/in.h>
33449 #endif
33450 #ifdef HAVE_NETINET_IN6_H
33451 #include <netinet/in6.h>
33452 #endif
33453 #ifdef HAVE_SYS_UN_H
33454 #include <sys/un.h>
33455 #endif
33456
33457
33458 "
33459 if test "x$ac_cv_header_sys_sockio_h" = xyes
33460 then :
33461   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33462
33463 fi
33464 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33465 #ifdef HAVE_SYS_TYPES_H
33466 #include <sys/types.h>
33467 #endif
33468 #ifdef HAVE_SYS_TIME_H
33469 #include <sys/time.h>
33470 #endif
33471 #ifdef HAVE_SYS_SELECT_H
33472 #include <sys/select.h>
33473 #elif defined(HAVE_UNISTD_H)
33474 #include <unistd.h>
33475 #endif
33476 #ifdef HAVE_SYS_SOCKET_H
33477 #include <sys/socket.h>
33478 #endif
33479 #ifdef HAVE_NETINET_IN_H
33480 #include <netinet/in.h>
33481 #endif
33482 #ifdef HAVE_NETINET_IN6_H
33483 #include <netinet/in6.h>
33484 #endif
33485 #ifdef HAVE_SYS_UN_H
33486 #include <sys/un.h>
33487 #endif
33488
33489
33490 "
33491 if test "x$ac_cv_header_sys_stat_h" = xyes
33492 then :
33493   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33494
33495 fi
33496 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33497 #ifdef HAVE_SYS_TYPES_H
33498 #include <sys/types.h>
33499 #endif
33500 #ifdef HAVE_SYS_TIME_H
33501 #include <sys/time.h>
33502 #endif
33503 #ifdef HAVE_SYS_SELECT_H
33504 #include <sys/select.h>
33505 #elif defined(HAVE_UNISTD_H)
33506 #include <unistd.h>
33507 #endif
33508 #ifdef HAVE_SYS_SOCKET_H
33509 #include <sys/socket.h>
33510 #endif
33511 #ifdef HAVE_NETINET_IN_H
33512 #include <netinet/in.h>
33513 #endif
33514 #ifdef HAVE_NETINET_IN6_H
33515 #include <netinet/in6.h>
33516 #endif
33517 #ifdef HAVE_SYS_UN_H
33518 #include <sys/un.h>
33519 #endif
33520
33521
33522 "
33523 if test "x$ac_cv_header_sys_param_h" = xyes
33524 then :
33525   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33526
33527 fi
33528 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33529 #ifdef HAVE_SYS_TYPES_H
33530 #include <sys/types.h>
33531 #endif
33532 #ifdef HAVE_SYS_TIME_H
33533 #include <sys/time.h>
33534 #endif
33535 #ifdef HAVE_SYS_SELECT_H
33536 #include <sys/select.h>
33537 #elif defined(HAVE_UNISTD_H)
33538 #include <unistd.h>
33539 #endif
33540 #ifdef HAVE_SYS_SOCKET_H
33541 #include <sys/socket.h>
33542 #endif
33543 #ifdef HAVE_NETINET_IN_H
33544 #include <netinet/in.h>
33545 #endif
33546 #ifdef HAVE_NETINET_IN6_H
33547 #include <netinet/in6.h>
33548 #endif
33549 #ifdef HAVE_SYS_UN_H
33550 #include <sys/un.h>
33551 #endif
33552
33553
33554 "
33555 if test "x$ac_cv_header_termios_h" = xyes
33556 then :
33557   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33558
33559 fi
33560 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33561 #ifdef HAVE_SYS_TYPES_H
33562 #include <sys/types.h>
33563 #endif
33564 #ifdef HAVE_SYS_TIME_H
33565 #include <sys/time.h>
33566 #endif
33567 #ifdef HAVE_SYS_SELECT_H
33568 #include <sys/select.h>
33569 #elif defined(HAVE_UNISTD_H)
33570 #include <unistd.h>
33571 #endif
33572 #ifdef HAVE_SYS_SOCKET_H
33573 #include <sys/socket.h>
33574 #endif
33575 #ifdef HAVE_NETINET_IN_H
33576 #include <netinet/in.h>
33577 #endif
33578 #ifdef HAVE_NETINET_IN6_H
33579 #include <netinet/in6.h>
33580 #endif
33581 #ifdef HAVE_SYS_UN_H
33582 #include <sys/un.h>
33583 #endif
33584
33585
33586 "
33587 if test "x$ac_cv_header_termio_h" = xyes
33588 then :
33589   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33590
33591 fi
33592 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33593 #ifdef HAVE_SYS_TYPES_H
33594 #include <sys/types.h>
33595 #endif
33596 #ifdef HAVE_SYS_TIME_H
33597 #include <sys/time.h>
33598 #endif
33599 #ifdef HAVE_SYS_SELECT_H
33600 #include <sys/select.h>
33601 #elif defined(HAVE_UNISTD_H)
33602 #include <unistd.h>
33603 #endif
33604 #ifdef HAVE_SYS_SOCKET_H
33605 #include <sys/socket.h>
33606 #endif
33607 #ifdef HAVE_NETINET_IN_H
33608 #include <netinet/in.h>
33609 #endif
33610 #ifdef HAVE_NETINET_IN6_H
33611 #include <netinet/in6.h>
33612 #endif
33613 #ifdef HAVE_SYS_UN_H
33614 #include <sys/un.h>
33615 #endif
33616
33617
33618 "
33619 if test "x$ac_cv_header_fcntl_h" = xyes
33620 then :
33621   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33622
33623 fi
33624 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33625 #ifdef HAVE_SYS_TYPES_H
33626 #include <sys/types.h>
33627 #endif
33628 #ifdef HAVE_SYS_TIME_H
33629 #include <sys/time.h>
33630 #endif
33631 #ifdef HAVE_SYS_SELECT_H
33632 #include <sys/select.h>
33633 #elif defined(HAVE_UNISTD_H)
33634 #include <unistd.h>
33635 #endif
33636 #ifdef HAVE_SYS_SOCKET_H
33637 #include <sys/socket.h>
33638 #endif
33639 #ifdef HAVE_NETINET_IN_H
33640 #include <netinet/in.h>
33641 #endif
33642 #ifdef HAVE_NETINET_IN6_H
33643 #include <netinet/in6.h>
33644 #endif
33645 #ifdef HAVE_SYS_UN_H
33646 #include <sys/un.h>
33647 #endif
33648
33649
33650 "
33651 if test "x$ac_cv_header_io_h" = xyes
33652 then :
33653   printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33654
33655 fi
33656 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33657 #ifdef HAVE_SYS_TYPES_H
33658 #include <sys/types.h>
33659 #endif
33660 #ifdef HAVE_SYS_TIME_H
33661 #include <sys/time.h>
33662 #endif
33663 #ifdef HAVE_SYS_SELECT_H
33664 #include <sys/select.h>
33665 #elif defined(HAVE_UNISTD_H)
33666 #include <unistd.h>
33667 #endif
33668 #ifdef HAVE_SYS_SOCKET_H
33669 #include <sys/socket.h>
33670 #endif
33671 #ifdef HAVE_NETINET_IN_H
33672 #include <netinet/in.h>
33673 #endif
33674 #ifdef HAVE_NETINET_IN6_H
33675 #include <netinet/in6.h>
33676 #endif
33677 #ifdef HAVE_SYS_UN_H
33678 #include <sys/un.h>
33679 #endif
33680
33681
33682 "
33683 if test "x$ac_cv_header_pwd_h" = xyes
33684 then :
33685   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33686
33687 fi
33688 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33689 #ifdef HAVE_SYS_TYPES_H
33690 #include <sys/types.h>
33691 #endif
33692 #ifdef HAVE_SYS_TIME_H
33693 #include <sys/time.h>
33694 #endif
33695 #ifdef HAVE_SYS_SELECT_H
33696 #include <sys/select.h>
33697 #elif defined(HAVE_UNISTD_H)
33698 #include <unistd.h>
33699 #endif
33700 #ifdef HAVE_SYS_SOCKET_H
33701 #include <sys/socket.h>
33702 #endif
33703 #ifdef HAVE_NETINET_IN_H
33704 #include <netinet/in.h>
33705 #endif
33706 #ifdef HAVE_NETINET_IN6_H
33707 #include <netinet/in6.h>
33708 #endif
33709 #ifdef HAVE_SYS_UN_H
33710 #include <sys/un.h>
33711 #endif
33712
33713
33714 "
33715 if test "x$ac_cv_header_utime_h" = xyes
33716 then :
33717   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33718
33719 fi
33720 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33721 #ifdef HAVE_SYS_TYPES_H
33722 #include <sys/types.h>
33723 #endif
33724 #ifdef HAVE_SYS_TIME_H
33725 #include <sys/time.h>
33726 #endif
33727 #ifdef HAVE_SYS_SELECT_H
33728 #include <sys/select.h>
33729 #elif defined(HAVE_UNISTD_H)
33730 #include <unistd.h>
33731 #endif
33732 #ifdef HAVE_SYS_SOCKET_H
33733 #include <sys/socket.h>
33734 #endif
33735 #ifdef HAVE_NETINET_IN_H
33736 #include <netinet/in.h>
33737 #endif
33738 #ifdef HAVE_NETINET_IN6_H
33739 #include <netinet/in6.h>
33740 #endif
33741 #ifdef HAVE_SYS_UN_H
33742 #include <sys/un.h>
33743 #endif
33744
33745
33746 "
33747 if test "x$ac_cv_header_sys_utime_h" = xyes
33748 then :
33749   printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33750
33751 fi
33752 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33753 #ifdef HAVE_SYS_TYPES_H
33754 #include <sys/types.h>
33755 #endif
33756 #ifdef HAVE_SYS_TIME_H
33757 #include <sys/time.h>
33758 #endif
33759 #ifdef HAVE_SYS_SELECT_H
33760 #include <sys/select.h>
33761 #elif defined(HAVE_UNISTD_H)
33762 #include <unistd.h>
33763 #endif
33764 #ifdef HAVE_SYS_SOCKET_H
33765 #include <sys/socket.h>
33766 #endif
33767 #ifdef HAVE_NETINET_IN_H
33768 #include <netinet/in.h>
33769 #endif
33770 #ifdef HAVE_NETINET_IN6_H
33771 #include <netinet/in6.h>
33772 #endif
33773 #ifdef HAVE_SYS_UN_H
33774 #include <sys/un.h>
33775 #endif
33776
33777
33778 "
33779 if test "x$ac_cv_header_sys_poll_h" = xyes
33780 then :
33781   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33782
33783 fi
33784 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33785 #ifdef HAVE_SYS_TYPES_H
33786 #include <sys/types.h>
33787 #endif
33788 #ifdef HAVE_SYS_TIME_H
33789 #include <sys/time.h>
33790 #endif
33791 #ifdef HAVE_SYS_SELECT_H
33792 #include <sys/select.h>
33793 #elif defined(HAVE_UNISTD_H)
33794 #include <unistd.h>
33795 #endif
33796 #ifdef HAVE_SYS_SOCKET_H
33797 #include <sys/socket.h>
33798 #endif
33799 #ifdef HAVE_NETINET_IN_H
33800 #include <netinet/in.h>
33801 #endif
33802 #ifdef HAVE_NETINET_IN6_H
33803 #include <netinet/in6.h>
33804 #endif
33805 #ifdef HAVE_SYS_UN_H
33806 #include <sys/un.h>
33807 #endif
33808
33809
33810 "
33811 if test "x$ac_cv_header_poll_h" = xyes
33812 then :
33813   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33814
33815 fi
33816 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33817 #ifdef HAVE_SYS_TYPES_H
33818 #include <sys/types.h>
33819 #endif
33820 #ifdef HAVE_SYS_TIME_H
33821 #include <sys/time.h>
33822 #endif
33823 #ifdef HAVE_SYS_SELECT_H
33824 #include <sys/select.h>
33825 #elif defined(HAVE_UNISTD_H)
33826 #include <unistd.h>
33827 #endif
33828 #ifdef HAVE_SYS_SOCKET_H
33829 #include <sys/socket.h>
33830 #endif
33831 #ifdef HAVE_NETINET_IN_H
33832 #include <netinet/in.h>
33833 #endif
33834 #ifdef HAVE_NETINET_IN6_H
33835 #include <netinet/in6.h>
33836 #endif
33837 #ifdef HAVE_SYS_UN_H
33838 #include <sys/un.h>
33839 #endif
33840
33841
33842 "
33843 if test "x$ac_cv_header_socket_h" = xyes
33844 then :
33845   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33846
33847 fi
33848 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33849 #ifdef HAVE_SYS_TYPES_H
33850 #include <sys/types.h>
33851 #endif
33852 #ifdef HAVE_SYS_TIME_H
33853 #include <sys/time.h>
33854 #endif
33855 #ifdef HAVE_SYS_SELECT_H
33856 #include <sys/select.h>
33857 #elif defined(HAVE_UNISTD_H)
33858 #include <unistd.h>
33859 #endif
33860 #ifdef HAVE_SYS_SOCKET_H
33861 #include <sys/socket.h>
33862 #endif
33863 #ifdef HAVE_NETINET_IN_H
33864 #include <netinet/in.h>
33865 #endif
33866 #ifdef HAVE_NETINET_IN6_H
33867 #include <netinet/in6.h>
33868 #endif
33869 #ifdef HAVE_SYS_UN_H
33870 #include <sys/un.h>
33871 #endif
33872
33873
33874 "
33875 if test "x$ac_cv_header_sys_resource_h" = xyes
33876 then :
33877   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33878
33879 fi
33880 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33881 #ifdef HAVE_SYS_TYPES_H
33882 #include <sys/types.h>
33883 #endif
33884 #ifdef HAVE_SYS_TIME_H
33885 #include <sys/time.h>
33886 #endif
33887 #ifdef HAVE_SYS_SELECT_H
33888 #include <sys/select.h>
33889 #elif defined(HAVE_UNISTD_H)
33890 #include <unistd.h>
33891 #endif
33892 #ifdef HAVE_SYS_SOCKET_H
33893 #include <sys/socket.h>
33894 #endif
33895 #ifdef HAVE_NETINET_IN_H
33896 #include <netinet/in.h>
33897 #endif
33898 #ifdef HAVE_NETINET_IN6_H
33899 #include <netinet/in6.h>
33900 #endif
33901 #ifdef HAVE_SYS_UN_H
33902 #include <sys/un.h>
33903 #endif
33904
33905
33906 "
33907 if test "x$ac_cv_header_libgen_h" = xyes
33908 then :
33909   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33910
33911 fi
33912 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33913 #ifdef HAVE_SYS_TYPES_H
33914 #include <sys/types.h>
33915 #endif
33916 #ifdef HAVE_SYS_TIME_H
33917 #include <sys/time.h>
33918 #endif
33919 #ifdef HAVE_SYS_SELECT_H
33920 #include <sys/select.h>
33921 #elif defined(HAVE_UNISTD_H)
33922 #include <unistd.h>
33923 #endif
33924 #ifdef HAVE_SYS_SOCKET_H
33925 #include <sys/socket.h>
33926 #endif
33927 #ifdef HAVE_NETINET_IN_H
33928 #include <netinet/in.h>
33929 #endif
33930 #ifdef HAVE_NETINET_IN6_H
33931 #include <netinet/in6.h>
33932 #endif
33933 #ifdef HAVE_SYS_UN_H
33934 #include <sys/un.h>
33935 #endif
33936
33937
33938 "
33939 if test "x$ac_cv_header_locale_h" = xyes
33940 then :
33941   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33942
33943 fi
33944 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33945 #ifdef HAVE_SYS_TYPES_H
33946 #include <sys/types.h>
33947 #endif
33948 #ifdef HAVE_SYS_TIME_H
33949 #include <sys/time.h>
33950 #endif
33951 #ifdef HAVE_SYS_SELECT_H
33952 #include <sys/select.h>
33953 #elif defined(HAVE_UNISTD_H)
33954 #include <unistd.h>
33955 #endif
33956 #ifdef HAVE_SYS_SOCKET_H
33957 #include <sys/socket.h>
33958 #endif
33959 #ifdef HAVE_NETINET_IN_H
33960 #include <netinet/in.h>
33961 #endif
33962 #ifdef HAVE_NETINET_IN6_H
33963 #include <netinet/in6.h>
33964 #endif
33965 #ifdef HAVE_SYS_UN_H
33966 #include <sys/un.h>
33967 #endif
33968
33969
33970 "
33971 if test "x$ac_cv_header_stdbool_h" = xyes
33972 then :
33973   printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33974
33975 fi
33976 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33977 #ifdef HAVE_SYS_TYPES_H
33978 #include <sys/types.h>
33979 #endif
33980 #ifdef HAVE_SYS_TIME_H
33981 #include <sys/time.h>
33982 #endif
33983 #ifdef HAVE_SYS_SELECT_H
33984 #include <sys/select.h>
33985 #elif defined(HAVE_UNISTD_H)
33986 #include <unistd.h>
33987 #endif
33988 #ifdef HAVE_SYS_SOCKET_H
33989 #include <sys/socket.h>
33990 #endif
33991 #ifdef HAVE_NETINET_IN_H
33992 #include <netinet/in.h>
33993 #endif
33994 #ifdef HAVE_NETINET_IN6_H
33995 #include <netinet/in6.h>
33996 #endif
33997 #ifdef HAVE_SYS_UN_H
33998 #include <sys/un.h>
33999 #endif
34000
34001
34002 "
34003 if test "x$ac_cv_header_sys_filio_h" = xyes
34004 then :
34005   printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
34006
34007 fi
34008 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
34009 #ifdef HAVE_SYS_TYPES_H
34010 #include <sys/types.h>
34011 #endif
34012 #ifdef HAVE_SYS_TIME_H
34013 #include <sys/time.h>
34014 #endif
34015 #ifdef HAVE_SYS_SELECT_H
34016 #include <sys/select.h>
34017 #elif defined(HAVE_UNISTD_H)
34018 #include <unistd.h>
34019 #endif
34020 #ifdef HAVE_SYS_SOCKET_H
34021 #include <sys/socket.h>
34022 #endif
34023 #ifdef HAVE_NETINET_IN_H
34024 #include <netinet/in.h>
34025 #endif
34026 #ifdef HAVE_NETINET_IN6_H
34027 #include <netinet/in6.h>
34028 #endif
34029 #ifdef HAVE_SYS_UN_H
34030 #include <sys/un.h>
34031 #endif
34032
34033
34034 "
34035 if test "x$ac_cv_header_sys_wait_h" = xyes
34036 then :
34037   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
34038
34039 fi
34040 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
34041 #ifdef HAVE_SYS_TYPES_H
34042 #include <sys/types.h>
34043 #endif
34044 #ifdef HAVE_SYS_TIME_H
34045 #include <sys/time.h>
34046 #endif
34047 #ifdef HAVE_SYS_SELECT_H
34048 #include <sys/select.h>
34049 #elif defined(HAVE_UNISTD_H)
34050 #include <unistd.h>
34051 #endif
34052 #ifdef HAVE_SYS_SOCKET_H
34053 #include <sys/socket.h>
34054 #endif
34055 #ifdef HAVE_NETINET_IN_H
34056 #include <netinet/in.h>
34057 #endif
34058 #ifdef HAVE_NETINET_IN6_H
34059 #include <netinet/in6.h>
34060 #endif
34061 #ifdef HAVE_SYS_UN_H
34062 #include <sys/un.h>
34063 #endif
34064
34065
34066 "
34067 if test "x$ac_cv_header_setjmp_h" = xyes
34068 then :
34069   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
34070
34071 fi
34072
34073
34074
34075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34076 printf %s "checking for an ANSI C-conforming const... " >&6; }
34077 if test ${ac_cv_c_const+y}
34078 then :
34079   printf %s "(cached) " >&6
34080 else $as_nop
34081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34082 /* end confdefs.h.  */
34083
34084 int main (void)
34085 {
34086
34087 #ifndef __cplusplus
34088   /* Ultrix mips cc rejects this sort of thing.  */
34089   typedef int charset[2];
34090   const charset cs = { 0, 0 };
34091   /* SunOS 4.1.1 cc rejects this.  */
34092   char const *const *pcpcc;
34093   char **ppc;
34094   /* NEC SVR4.0.2 mips cc rejects this.  */
34095   struct point {int x, y;};
34096   static struct point const zero = {0,0};
34097   /* IBM XL C 1.02.0.0 rejects this.
34098      It does not let you subtract one const X* pointer from another in
34099      an arm of an if-expression whose if-part is not a constant
34100      expression */
34101   const char *g = "string";
34102   pcpcc = &g + (g ? g-g : 0);
34103   /* HPUX 7.0 cc rejects these. */
34104   ++pcpcc;
34105   ppc = (char**) pcpcc;
34106   pcpcc = (char const *const *) ppc;
34107   { /* SCO 3.2v4 cc rejects this sort of thing.  */
34108     char tx;
34109     char *t = &tx;
34110     char const *s = 0 ? (char *) 0 : (char const *) 0;
34111
34112     *t++ = 0;
34113     if (s) return 0;
34114   }
34115   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34116     int x[] = {25, 17};
34117     const int *foo = &x[0];
34118     ++foo;
34119   }
34120   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34121     typedef const int *iptr;
34122     iptr p = 0;
34123     ++p;
34124   }
34125   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
34126        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34127     struct s { int j; const int *ap[3]; } bx;
34128     struct s *b = &bx; b->j = 5;
34129   }
34130   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34131     const int foo = 10;
34132     if (!foo) return 0;
34133   }
34134   return !cs[0] && !zero.x;
34135 #endif
34136
34137  ;
34138  return 0;
34139 }
34140 _ACEOF
34141 if ac_fn_c_try_compile "$LINENO"
34142 then :
34143   ac_cv_c_const=yes
34144 else $as_nop
34145   ac_cv_c_const=no
34146 fi
34147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34148 fi
34149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34150 printf "%s\n" "$ac_cv_c_const" >&6; }
34151 if test $ac_cv_c_const = no; then
34152
34153 printf "%s\n" "#define const /**/" >>confdefs.h
34154
34155 fi
34156
34157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
34158 if test "x$ac_cv_type_size_t" = xyes
34159 then :
34160
34161 else $as_nop
34162
34163 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
34164
34165 fi
34166
34167
34168
34169     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34170 if test "x$ac_cv_header_sys_types_h" = xyes
34171 then :
34172   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34173
34174 fi
34175 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
34176 if test "x$ac_cv_header_sys_time_h" = xyes
34177 then :
34178   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
34179
34180 fi
34181 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34182 if test "x$ac_cv_header_sys_socket_h" = xyes
34183 then :
34184   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34185
34186 fi
34187
34188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
34189 printf %s "checking for struct timeval... " >&6; }
34190 if test ${curl_cv_struct_timeval+y}
34191 then :
34192   printf %s "(cached) " >&6
34193 else $as_nop
34194
34195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34196 /* end confdefs.h.  */
34197
34198
34199 #undef inline
34200 #ifdef HAVE_WINDOWS_H
34201 #ifndef WIN32_LEAN_AND_MEAN
34202 #define WIN32_LEAN_AND_MEAN
34203 #endif
34204 #ifdef HAVE_WINSOCK2_H
34205 #include <winsock2.h>
34206 #endif
34207 #include <windows.h>
34208 #endif
34209 #ifdef HAVE_SYS_TYPES_H
34210 #include <sys/types.h>
34211 #endif
34212 #ifdef HAVE_SYS_TIME_H
34213 #include <sys/time.h>
34214 #endif
34215 #include <time.h>
34216 #ifdef HAVE_SYS_SOCKET_H
34217 #include <sys/socket.h>
34218 #endif
34219
34220 int main (void)
34221 {
34222
34223         struct timeval ts;
34224         ts.tv_sec  = 0;
34225         ts.tv_usec = 0;
34226
34227  ;
34228  return 0;
34229 }
34230
34231 _ACEOF
34232 if ac_fn_c_try_compile "$LINENO"
34233 then :
34234
34235       curl_cv_struct_timeval="yes"
34236
34237 else $as_nop
34238
34239       curl_cv_struct_timeval="no"
34240
34241 fi
34242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34243
34244 fi
34245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34246 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34247   case "$curl_cv_struct_timeval" in
34248     yes)
34249
34250 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34251
34252       ;;
34253   esac
34254
34255
34256
34257     if test "x$cross_compiling" != xyes; then
34258
34259             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34260 printf %s "checking run-time libs availability... " >&6; }
34261
34262    case $host_os in
34263      darwin*)
34264       if test "$cross_compiling" = yes
34265 then :
34266   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34268 as_fn_error $? "cannot run test program while cross compiling
34269 See \`config.log' for more details" "$LINENO" 5; }
34270 else $as_nop
34271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272 /* end confdefs.h.  */
34273
34274 int main()
34275 {
34276   return 0;
34277 }
34278
34279 _ACEOF
34280 if ac_fn_c_try_run "$LINENO"
34281 then :
34282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34283 printf "%s\n" "fine" >&6; }
34284 else $as_nop
34285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34286 printf "%s\n" "failed" >&6; }
34287     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34288
34289 fi
34290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34291   conftest.$ac_objext conftest.beam conftest.$ac_ext
34292 fi
34293
34294      ;;
34295      *)
34296       oldcc=$CC
34297       old=$LD_LIBRARY_PATH
34298       CC="sh ./run-compiler"
34299       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34300       export LD_LIBRARY_PATH
34301       if test "$cross_compiling" = yes
34302 then :
34303   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34304 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34305 as_fn_error $? "cannot run test program while cross compiling
34306 See \`config.log' for more details" "$LINENO" 5; }
34307 else $as_nop
34308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34309 /* end confdefs.h.  */
34310
34311 int main()
34312 {
34313   return 0;
34314 }
34315
34316 _ACEOF
34317 if ac_fn_c_try_run "$LINENO"
34318 then :
34319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34320 printf "%s\n" "fine" >&6; }
34321 else $as_nop
34322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34323 printf "%s\n" "failed" >&6; }
34324     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34325
34326 fi
34327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34328   conftest.$ac_objext conftest.beam conftest.$ac_ext
34329 fi
34330
34331       LD_LIBRARY_PATH=$old # restore
34332       CC=$oldcc
34333      ;;
34334    esac
34335
34336
34337       fi
34338
34339
34340
34341
34342   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34343 printf %s "checking size of size_t... " >&6; }
34344   r=0
34345     for typesize in 8 4 2 16 1; do
34346      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34347 /* end confdefs.h.  */
34348
34349 #include <sys/types.h>
34350
34351
34352 int main (void)
34353 {
34354 switch(0) {
34355        case 0:
34356        case (sizeof(size_t) == $typesize):;
34357      }
34358
34359  ;
34360  return 0;
34361 }
34362 _ACEOF
34363 if ac_fn_c_try_compile "$LINENO"
34364 then :
34365
34366        r=$typesize
34367 else $as_nop
34368
34369        r=0
34370 fi
34371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34372         if test $r -gt 0; then
34373       break;
34374     fi
34375   done
34376   if test $r -eq 0; then
34377     as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34378   fi
34379   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34380 printf "%s\n" "$r" >&6; }
34381     tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34382   eval "$tname=$r"
34383
34384
34385 printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34386
34387
34388
34389
34390
34391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34392 printf %s "checking size of long... " >&6; }
34393   r=0
34394     for typesize in 8 4 2 16 1; do
34395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34396 /* end confdefs.h.  */
34397
34398 #include <sys/types.h>
34399
34400
34401 int main (void)
34402 {
34403 switch(0) {
34404        case 0:
34405        case (sizeof(long) == $typesize):;
34406      }
34407
34408  ;
34409  return 0;
34410 }
34411 _ACEOF
34412 if ac_fn_c_try_compile "$LINENO"
34413 then :
34414
34415        r=$typesize
34416 else $as_nop
34417
34418        r=0
34419 fi
34420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34421         if test $r -gt 0; then
34422       break;
34423     fi
34424   done
34425   if test $r -eq 0; then
34426     as_fn_error $? "Failed to find size of long" "$LINENO" 5
34427   fi
34428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34429 printf "%s\n" "$r" >&6; }
34430     tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34431   eval "$tname=$r"
34432
34433
34434 printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34435
34436
34437
34438
34439
34440   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34441 printf %s "checking size of int... " >&6; }
34442   r=0
34443     for typesize in 8 4 2 16 1; do
34444      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34445 /* end confdefs.h.  */
34446
34447 #include <sys/types.h>
34448
34449
34450 int main (void)
34451 {
34452 switch(0) {
34453        case 0:
34454        case (sizeof(int) == $typesize):;
34455      }
34456
34457  ;
34458  return 0;
34459 }
34460 _ACEOF
34461 if ac_fn_c_try_compile "$LINENO"
34462 then :
34463
34464        r=$typesize
34465 else $as_nop
34466
34467        r=0
34468 fi
34469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34470         if test $r -gt 0; then
34471       break;
34472     fi
34473   done
34474   if test $r -eq 0; then
34475     as_fn_error $? "Failed to find size of int" "$LINENO" 5
34476   fi
34477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34478 printf "%s\n" "$r" >&6; }
34479     tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34480   eval "$tname=$r"
34481
34482
34483 printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34484
34485
34486
34487
34488
34489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34490 printf %s "checking size of time_t... " >&6; }
34491   r=0
34492     for typesize in 8 4 2 16 1; do
34493      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34494 /* end confdefs.h.  */
34495
34496 #include <sys/types.h>
34497
34498
34499 int main (void)
34500 {
34501 switch(0) {
34502        case 0:
34503        case (sizeof(time_t) == $typesize):;
34504      }
34505
34506  ;
34507  return 0;
34508 }
34509 _ACEOF
34510 if ac_fn_c_try_compile "$LINENO"
34511 then :
34512
34513        r=$typesize
34514 else $as_nop
34515
34516        r=0
34517 fi
34518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34519         if test $r -gt 0; then
34520       break;
34521     fi
34522   done
34523   if test $r -eq 0; then
34524     as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34525   fi
34526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34527 printf "%s\n" "$r" >&6; }
34528     tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34529   eval "$tname=$r"
34530
34531
34532 printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34533
34534
34535
34536
34537
34538   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34539 printf %s "checking size of off_t... " >&6; }
34540   r=0
34541     for typesize in 8 4 2 16 1; do
34542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34543 /* end confdefs.h.  */
34544
34545 #include <sys/types.h>
34546
34547
34548 int main (void)
34549 {
34550 switch(0) {
34551        case 0:
34552        case (sizeof(off_t) == $typesize):;
34553      }
34554
34555  ;
34556  return 0;
34557 }
34558 _ACEOF
34559 if ac_fn_c_try_compile "$LINENO"
34560 then :
34561
34562        r=$typesize
34563 else $as_nop
34564
34565        r=0
34566 fi
34567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34568         if test $r -gt 0; then
34569       break;
34570     fi
34571   done
34572   if test $r -eq 0; then
34573     as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34574   fi
34575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34576 printf "%s\n" "$r" >&6; }
34577     tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34578   eval "$tname=$r"
34579
34580
34581 printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34582
34583
34584
34585
34586 o=$CPPFLAGS
34587 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34588
34589
34590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34591 printf %s "checking size of curl_off_t... " >&6; }
34592   r=0
34593     for typesize in 8 4 2 16 1; do
34594      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34595 /* end confdefs.h.  */
34596
34597 #include <sys/types.h>
34598
34599 #include <curl/system.h>
34600
34601
34602 int main (void)
34603 {
34604 switch(0) {
34605        case 0:
34606        case (sizeof(curl_off_t) == $typesize):;
34607      }
34608
34609  ;
34610  return 0;
34611 }
34612 _ACEOF
34613 if ac_fn_c_try_compile "$LINENO"
34614 then :
34615
34616        r=$typesize
34617 else $as_nop
34618
34619        r=0
34620 fi
34621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34622         if test $r -gt 0; then
34623       break;
34624     fi
34625   done
34626   if test $r -eq 0; then
34627     as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34628   fi
34629   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34630 printf "%s\n" "$r" >&6; }
34631     tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34632   eval "$tname=$r"
34633
34634
34635 printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34636
34637
34638
34639
34640
34641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5
34642 printf %s "checking size of curl_socket_t... " >&6; }
34643   r=0
34644     for typesize in 8 4 2 16 1; do
34645      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34646 /* end confdefs.h.  */
34647
34648 #include <sys/types.h>
34649
34650 #include <curl/curl.h>
34651
34652
34653 int main (void)
34654 {
34655 switch(0) {
34656        case 0:
34657        case (sizeof(curl_socket_t) == $typesize):;
34658      }
34659
34660  ;
34661  return 0;
34662 }
34663 _ACEOF
34664 if ac_fn_c_try_compile "$LINENO"
34665 then :
34666
34667        r=$typesize
34668 else $as_nop
34669
34670        r=0
34671 fi
34672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34673         if test $r -gt 0; then
34674       break;
34675     fi
34676   done
34677   if test $r -eq 0; then
34678     as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5
34679   fi
34680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34681 printf "%s\n" "$r" >&6; }
34682     tname=$(echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_")
34683   eval "$tname=$r"
34684
34685
34686 printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h
34687
34688
34689
34690 CPPFLAGS=$o
34691
34692 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34693 if test "x$ac_cv_type_long_long" = xyes
34694 then :
34695
34696 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34697
34698    longlong="yes"
34699
34700 fi
34701
34702
34703 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34704   as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
34705 fi
34706
34707 # check for ssize_t
34708 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34709 if test "x$ac_cv_type_ssize_t" = xyes
34710 then :
34711
34712 else $as_nop
34713
34714 printf "%s\n" "#define ssize_t int" >>confdefs.h
34715
34716 fi
34717
34718
34719 # check for bool type
34720 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34721 #ifdef HAVE_SYS_TYPES_H
34722 #include <sys/types.h>
34723 #endif
34724 #ifdef HAVE_STDBOOL_H
34725 #include <stdbool.h>
34726 #endif
34727
34728 "
34729 if test "x$ac_cv_type_bool" = xyes
34730 then :
34731
34732
34733 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34734
34735
34736 fi
34737
34738
34739 # check for sa_family_t
34740 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34741 #ifdef HAVE_SYS_SOCKET_H
34742 #include <sys/socket.h>
34743 #endif
34744
34745 "
34746 if test "x$ac_cv_type_sa_family_t" = xyes
34747 then :
34748
34749 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34750
34751 else $as_nop
34752
34753    # The windows name?
34754    ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34755 #ifdef HAVE_SYS_SOCKET_H
34756 #include <sys/socket.h>
34757 #endif
34758
34759 "
34760 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34761 then :
34762
34763 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34764
34765 else $as_nop
34766
34767 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34768
34769 fi
34770
34771
34772 fi
34773
34774
34775 # check for suseconds_t
34776 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34777 #ifdef HAVE_SYS_TYPES_H
34778 #include <sys/types.h>
34779 #endif
34780 #ifdef HAVE_SYS_TIME_H
34781 #include <sys/time.h>
34782 #endif
34783
34784 "
34785 if test "x$ac_cv_type_suseconds_t" = xyes
34786 then :
34787
34788
34789 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34790
34791
34792 fi
34793
34794
34795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34796 printf %s "checking if time_t is unsigned... " >&6; }
34797
34798    case $host_os in
34799      darwin*)
34800       if test "$cross_compiling" = yes
34801 then :
34802     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34803 printf "%s\n" "no" >&6; }
34804
34805 else $as_nop
34806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34807 /* end confdefs.h.  */
34808
34809   #include <time.h>
34810   #include <limits.h>
34811   int main(void) {
34812     time_t t = -1;
34813     return (t < 0);
34814   }
34815
34816 _ACEOF
34817 if ac_fn_c_try_run "$LINENO"
34818 then :
34819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34820 printf "%s\n" "yes" >&6; }
34821
34822 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34823
34824
34825 else $as_nop
34826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34827 printf "%s\n" "no" >&6; }
34828
34829 fi
34830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34831   conftest.$ac_objext conftest.beam conftest.$ac_ext
34832 fi
34833
34834      ;;
34835      *)
34836       oldcc=$CC
34837       old=$LD_LIBRARY_PATH
34838       CC="sh ./run-compiler"
34839       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34840       export LD_LIBRARY_PATH
34841       if test "$cross_compiling" = yes
34842 then :
34843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34844 printf "%s\n" "no" >&6; }
34845
34846 else $as_nop
34847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34848 /* end confdefs.h.  */
34849
34850   #include <time.h>
34851   #include <limits.h>
34852   int main(void) {
34853     time_t t = -1;
34854     return (t < 0);
34855   }
34856
34857 _ACEOF
34858 if ac_fn_c_try_run "$LINENO"
34859 then :
34860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34861 printf "%s\n" "yes" >&6; }
34862
34863 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34864
34865
34866 else $as_nop
34867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34868 printf "%s\n" "no" >&6; }
34869
34870 fi
34871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34872   conftest.$ac_objext conftest.beam conftest.$ac_ext
34873 fi
34874
34875       LD_LIBRARY_PATH=$old # restore
34876       CC=$oldcc
34877      ;;
34878    esac
34879
34880
34881
34882 curl_includes_poll="\
34883 /* includes start */
34884 #ifdef HAVE_SYS_TYPES_H
34885 #  include <sys/types.h>
34886 #endif
34887 #ifdef HAVE_POLL_H
34888 #  include <poll.h>
34889 #endif
34890 #ifdef HAVE_SYS_POLL_H
34891 #  include <sys/poll.h>
34892 #endif
34893 /* includes end */"
34894   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34895 "
34896 if test "x$ac_cv_header_sys_types_h" = xyes
34897 then :
34898   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34899
34900 fi
34901 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34902 "
34903 if test "x$ac_cv_header_poll_h" = xyes
34904 then :
34905   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34906
34907 fi
34908 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34909 "
34910 if test "x$ac_cv_header_sys_poll_h" = xyes
34911 then :
34912   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34913
34914 fi
34915
34916
34917
34918     #
34919   tst_poll_events_macro_defined="unknown"
34920   #
34921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34922 /* end confdefs.h.  */
34923
34924
34925       $curl_includes_poll
34926
34927 int main (void)
34928 {
34929
34930 #if defined(events) || defined(revents)
34931       return 0;
34932 #else
34933       force compilation error
34934 #endif
34935
34936  ;
34937  return 0;
34938 }
34939
34940 _ACEOF
34941 if ac_fn_c_try_compile "$LINENO"
34942 then :
34943
34944     tst_poll_events_macro_defined="yes"
34945
34946 else $as_nop
34947
34948     tst_poll_events_macro_defined="no"
34949
34950 fi
34951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34952   #
34953   if test "$tst_poll_events_macro_defined" = "yes"; then
34954     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34955
34956 cat >>confdefs.h <<_EOF
34957 #define CURL_PULL_SYS_POLL_H 1
34958 _EOF
34959
34960     fi
34961   fi
34962   #
34963
34964
34965
34966   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34967 #undef inline
34968 #ifdef HAVE_WINDOWS_H
34969 #ifndef WIN32_LEAN_AND_MEAN
34970 #define WIN32_LEAN_AND_MEAN
34971 #endif
34972 #ifdef HAVE_WINSOCK2_H
34973 #include <winsock2.h>
34974 #endif
34975 #include <windows.h>
34976 #else
34977 #ifdef HAVE_SYS_TYPES_H
34978 #include <sys/types.h>
34979 #endif
34980 #ifdef HAVE_SYS_SOCKET_H
34981 #include <sys/socket.h>
34982 #endif
34983 #ifdef HAVE_NETINET_IN_H
34984 #include <netinet/in.h>
34985 #endif
34986 #ifdef HAVE_ARPA_INET_H
34987 #include <arpa/inet.h>
34988 #endif
34989 #endif
34990
34991 "
34992 if test "x$ac_cv_type_in_addr_t" = xyes
34993 then :
34994
34995 else $as_nop
34996
34997         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34998 printf %s "checking for in_addr_t equivalent... " >&6; }
34999 if test ${curl_cv_in_addr_t_equiv+y}
35000 then :
35001   printf %s "(cached) " >&6
35002 else $as_nop
35003
35004       curl_cv_in_addr_t_equiv="unknown"
35005       for t in "unsigned long" int size_t unsigned long; do
35006         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
35007           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35008 /* end confdefs.h.  */
35009
35010
35011 #undef inline
35012 #ifdef HAVE_WINDOWS_H
35013 #ifndef WIN32_LEAN_AND_MEAN
35014 #define WIN32_LEAN_AND_MEAN
35015 #endif
35016 #ifdef HAVE_WINSOCK2_H
35017 #include <winsock2.h>
35018 #endif
35019 #include <windows.h>
35020 #else
35021 #ifdef HAVE_SYS_TYPES_H
35022 #include <sys/types.h>
35023 #endif
35024 #ifdef HAVE_SYS_SOCKET_H
35025 #include <sys/socket.h>
35026 #endif
35027 #ifdef HAVE_NETINET_IN_H
35028 #include <netinet/in.h>
35029 #endif
35030 #ifdef HAVE_ARPA_INET_H
35031 #include <arpa/inet.h>
35032 #endif
35033 #endif
35034
35035 int main (void)
35036 {
35037
35038               $t data = inet_addr ("1.2.3.4");
35039
35040  ;
35041  return 0;
35042 }
35043
35044 _ACEOF
35045 if ac_fn_c_try_link "$LINENO"
35046 then :
35047
35048             curl_cv_in_addr_t_equiv="$t"
35049
35050 fi
35051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35052     conftest$ac_exeext conftest.$ac_ext
35053         fi
35054       done
35055
35056 fi
35057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
35058 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
35059     case "$curl_cv_in_addr_t_equiv" in
35060       unknown)
35061         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
35062         ;;
35063       *)
35064
35065 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
35066
35067         ;;
35068     esac
35069
35070 fi
35071
35072
35073
35074
35075    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35076 #undef inline
35077 #ifdef HAVE_WINDOWS_H
35078 #ifndef WIN32_LEAN_AND_MEAN
35079 #define WIN32_LEAN_AND_MEAN
35080 #endif
35081 #ifdef HAVE_WINSOCK2_H
35082 #include <winsock2.h>
35083 #endif
35084 #include <windows.h>
35085 #else
35086 #ifdef HAVE_SYS_TYPES_H
35087 #include <sys/types.h>
35088 #endif
35089 #ifdef HAVE_SYS_SOCKET_H
35090 #include <sys/socket.h>
35091 #endif
35092 #ifdef HAVE_NETINET_IN_H
35093 #include <netinet/in.h>
35094 #endif
35095 #ifdef HAVE_ARPA_INET_H
35096 #include <arpa/inet.h>
35097 #endif
35098 #endif
35099
35100 "
35101 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
35102 then :
35103
35104 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35105
35106 fi
35107
35108
35109
35110
35111       ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
35112 if test "x$ac_cv_header_sys_select_h" = xyes
35113 then :
35114   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
35115
35116 fi
35117 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35118 if test "x$ac_cv_header_sys_socket_h" = xyes
35119 then :
35120   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35121
35122 fi
35123
35124   #
35125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
35126 printf %s "checking for select... " >&6; }
35127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35128 /* end confdefs.h.  */
35129
35130
35131 #undef inline
35132 #ifdef HAVE_WINDOWS_H
35133 #ifndef WIN32_LEAN_AND_MEAN
35134 #define WIN32_LEAN_AND_MEAN
35135 #endif
35136 #ifdef HAVE_WINSOCK2_H
35137 #include <winsock2.h>
35138 #endif
35139 #include <windows.h>
35140 #endif
35141 #ifdef HAVE_SYS_TYPES_H
35142 #include <sys/types.h>
35143 #endif
35144 #ifdef HAVE_SYS_TIME_H
35145 #include <sys/time.h>
35146 #endif
35147 #include <time.h>
35148 #ifndef HAVE_WINDOWS_H
35149 #ifdef HAVE_SYS_SELECT_H
35150 #include <sys/select.h>
35151 #elif defined(HAVE_UNISTD_H)
35152 #include <unistd.h>
35153 #endif
35154 #ifdef HAVE_SYS_SOCKET_H
35155 #include <sys/socket.h>
35156 #endif
35157 $curl_includes_bsdsocket
35158 #endif
35159
35160 int main (void)
35161 {
35162
35163       select(0, 0, 0, 0, 0);
35164
35165  ;
35166  return 0;
35167 }
35168
35169 _ACEOF
35170 if ac_fn_c_try_link "$LINENO"
35171 then :
35172
35173     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35174 printf "%s\n" "yes" >&6; }
35175     curl_cv_select="yes"
35176
35177 else $as_nop
35178
35179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35180 printf "%s\n" "no" >&6; }
35181     curl_cv_select="no"
35182
35183 fi
35184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35185     conftest$ac_exeext conftest.$ac_ext
35186   #
35187   if test "$curl_cv_select" = "yes"; then
35188
35189 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
35190
35191     curl_cv_func_select="yes"
35192   fi
35193
35194
35195
35196       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35197 if test "x$ac_cv_header_sys_types_h" = xyes
35198 then :
35199   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35200
35201 fi
35202 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35203 if test "x$ac_cv_header_sys_socket_h" = xyes
35204 then :
35205   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35206
35207 fi
35208
35209   #
35210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
35211 printf %s "checking for recv... " >&6; }
35212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35213 /* end confdefs.h.  */
35214
35215
35216 #undef inline
35217 #ifdef HAVE_WINDOWS_H
35218 #ifndef WIN32_LEAN_AND_MEAN
35219 #define WIN32_LEAN_AND_MEAN
35220 #endif
35221 #ifdef HAVE_WINSOCK2_H
35222 #include <winsock2.h>
35223 #endif
35224 #include <windows.h>
35225 #else
35226 $curl_includes_bsdsocket
35227 #ifdef HAVE_SYS_TYPES_H
35228 #include <sys/types.h>
35229 #endif
35230 #ifdef HAVE_SYS_SOCKET_H
35231 #include <sys/socket.h>
35232 #endif
35233 #endif
35234
35235 int main (void)
35236 {
35237
35238       recv(0, 0, 0, 0);
35239
35240  ;
35241  return 0;
35242 }
35243
35244 _ACEOF
35245 if ac_fn_c_try_link "$LINENO"
35246 then :
35247
35248     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35249 printf "%s\n" "yes" >&6; }
35250     curl_cv_recv="yes"
35251
35252 else $as_nop
35253
35254     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35255 printf "%s\n" "no" >&6; }
35256     curl_cv_recv="no"
35257
35258 fi
35259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35260     conftest$ac_exeext conftest.$ac_ext
35261   #
35262   if test "$curl_cv_recv" = "yes"; then
35263
35264 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35265
35266       curl_cv_func_recv="yes"
35267   else
35268     as_fn_error $? "Unable to link function recv" "$LINENO" 5
35269   fi
35270
35271
35272       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35273 if test "x$ac_cv_header_sys_types_h" = xyes
35274 then :
35275   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35276
35277 fi
35278 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35279 if test "x$ac_cv_header_sys_socket_h" = xyes
35280 then :
35281   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35282
35283 fi
35284
35285   #
35286   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35287 printf %s "checking for send... " >&6; }
35288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35289 /* end confdefs.h.  */
35290
35291
35292 #undef inline
35293 #ifdef HAVE_WINDOWS_H
35294 #ifndef WIN32_LEAN_AND_MEAN
35295 #define WIN32_LEAN_AND_MEAN
35296 #endif
35297 #ifdef HAVE_WINSOCK2_H
35298 #include <winsock2.h>
35299 #endif
35300 #include <windows.h>
35301 #else
35302 $curl_includes_bsdsocket
35303 #ifdef HAVE_SYS_TYPES_H
35304 #include <sys/types.h>
35305 #endif
35306 #ifdef HAVE_SYS_SOCKET_H
35307 #include <sys/socket.h>
35308 #endif
35309 #endif
35310
35311 int main (void)
35312 {
35313
35314       send(0, 0, 0, 0);
35315
35316  ;
35317  return 0;
35318 }
35319
35320 _ACEOF
35321 if ac_fn_c_try_link "$LINENO"
35322 then :
35323
35324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35325 printf "%s\n" "yes" >&6; }
35326     curl_cv_send="yes"
35327
35328 else $as_nop
35329
35330     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35331 printf "%s\n" "no" >&6; }
35332     curl_cv_send="no"
35333
35334 fi
35335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35336     conftest$ac_exeext conftest.$ac_ext
35337   #
35338   if test "$curl_cv_send" = "yes"; then
35339
35340 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35341
35342     curl_cv_func_send="yes"
35343   else
35344     as_fn_error $? "Unable to link function send" "$LINENO" 5
35345   fi
35346
35347
35348   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35349 if test "x$ac_cv_header_sys_types_h" = xyes
35350 then :
35351   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35352
35353 fi
35354 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35355 if test "x$ac_cv_header_sys_socket_h" = xyes
35356 then :
35357   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35358
35359 fi
35360
35361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35362 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35363 if test ${curl_cv_msg_nosignal+y}
35364 then :
35365   printf %s "(cached) " >&6
35366 else $as_nop
35367
35368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35369 /* end confdefs.h.  */
35370
35371
35372 #undef inline
35373 #ifdef HAVE_WINDOWS_H
35374 #ifndef WIN32_LEAN_AND_MEAN
35375 #define WIN32_LEAN_AND_MEAN
35376 #endif
35377 #ifdef HAVE_WINSOCK2_H
35378 #include <winsock2.h>
35379 #endif
35380 #include <windows.h>
35381 #else
35382 #ifdef HAVE_SYS_TYPES_H
35383 #include <sys/types.h>
35384 #endif
35385 #ifdef HAVE_SYS_SOCKET_H
35386 #include <sys/socket.h>
35387 #endif
35388 #endif
35389
35390 int main (void)
35391 {
35392
35393         int flag=MSG_NOSIGNAL;
35394
35395  ;
35396  return 0;
35397 }
35398
35399 _ACEOF
35400 if ac_fn_c_try_compile "$LINENO"
35401 then :
35402
35403       curl_cv_msg_nosignal="yes"
35404
35405 else $as_nop
35406
35407       curl_cv_msg_nosignal="no"
35408
35409 fi
35410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35411
35412 fi
35413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35414 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35415   case "$curl_cv_msg_nosignal" in
35416     yes)
35417
35418 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35419
35420       ;;
35421   esac
35422
35423
35424
35425 curl_includes_unistd="\
35426 /* includes start */
35427 #ifdef HAVE_SYS_TYPES_H
35428 #  include <sys/types.h>
35429 #endif
35430 #ifdef HAVE_UNISTD_H
35431 #  include <unistd.h>
35432 #endif
35433 /* includes end */"
35434   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35435 "
35436 if test "x$ac_cv_header_sys_types_h" = xyes
35437 then :
35438   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35439
35440 fi
35441 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35442 "
35443 if test "x$ac_cv_header_unistd_h" = xyes
35444 then :
35445   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35446
35447 fi
35448
35449
35450
35451     #
35452   tst_links_alarm="unknown"
35453   tst_proto_alarm="unknown"
35454   tst_compi_alarm="unknown"
35455   tst_allow_alarm="unknown"
35456   #
35457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35458 printf %s "checking if alarm can be linked... " >&6; }
35459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35460 /* end confdefs.h.  */
35461
35462
35463 #define alarm innocuous_alarm
35464 #ifdef __STDC__
35465 # include <limits.h>
35466 #else
35467 # include <assert.h>
35468 #endif
35469 #undef alarm
35470 #ifdef __cplusplus
35471 extern "C"
35472 #endif
35473 char alarm ();
35474 #if defined __stub_alarm || defined __stub___alarm
35475 choke me
35476 #endif
35477
35478 int main (void)
35479 {
35480 return alarm ();
35481  ;
35482  return 0;
35483 }
35484
35485 _ACEOF
35486 if ac_fn_c_try_link "$LINENO"
35487 then :
35488
35489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35490 printf "%s\n" "yes" >&6; }
35491     tst_links_alarm="yes"
35492
35493 else $as_nop
35494
35495     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35496 printf "%s\n" "no" >&6; }
35497     tst_links_alarm="no"
35498
35499 fi
35500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35501     conftest$ac_exeext conftest.$ac_ext
35502   #
35503   if test "$tst_links_alarm" = "yes"; then
35504     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35505 printf %s "checking if alarm is prototyped... " >&6; }
35506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35507 /* end confdefs.h.  */
35508
35509       $curl_includes_unistd
35510
35511 _ACEOF
35512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35513   $EGREP "alarm" >/dev/null 2>&1
35514 then :
35515
35516       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35517 printf "%s\n" "yes" >&6; }
35518       tst_proto_alarm="yes"
35519
35520 else $as_nop
35521
35522       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35523 printf "%s\n" "no" >&6; }
35524       tst_proto_alarm="no"
35525
35526 fi
35527 rm -rf conftest*
35528
35529   fi
35530   #
35531   if test "$tst_proto_alarm" = "yes"; then
35532     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35533 printf %s "checking if alarm is compilable... " >&6; }
35534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35535 /* end confdefs.h.  */
35536
35537
35538         $curl_includes_unistd
35539
35540 int main (void)
35541 {
35542
35543         if(0 != alarm(0))
35544           return 1;
35545
35546  ;
35547  return 0;
35548 }
35549
35550 _ACEOF
35551 if ac_fn_c_try_compile "$LINENO"
35552 then :
35553
35554       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35555 printf "%s\n" "yes" >&6; }
35556       tst_compi_alarm="yes"
35557
35558 else $as_nop
35559
35560       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35561 printf "%s\n" "no" >&6; }
35562       tst_compi_alarm="no"
35563
35564 fi
35565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35566   fi
35567   #
35568   if test "$tst_compi_alarm" = "yes"; then
35569     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35570 printf %s "checking if alarm usage allowed... " >&6; }
35571     if test "x$curl_disallow_alarm" != "xyes"; then
35572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35573 printf "%s\n" "yes" >&6; }
35574       tst_allow_alarm="yes"
35575     else
35576       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35577 printf "%s\n" "no" >&6; }
35578       tst_allow_alarm="no"
35579     fi
35580   fi
35581   #
35582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35583 printf %s "checking if alarm might be used... " >&6; }
35584   if test "$tst_links_alarm" = "yes" &&
35585      test "$tst_proto_alarm" = "yes" &&
35586      test "$tst_compi_alarm" = "yes" &&
35587      test "$tst_allow_alarm" = "yes"; then
35588     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35589 printf "%s\n" "yes" >&6; }
35590
35591 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35592
35593     curl_cv_func_alarm="yes"
35594   else
35595     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35596 printf "%s\n" "no" >&6; }
35597     curl_cv_func_alarm="no"
35598   fi
35599
35600
35601 curl_includes_string="\
35602 /* includes start */
35603 #ifdef HAVE_SYS_TYPES_H
35604 #  include <sys/types.h>
35605 #endif
35606 #include <string.h>
35607 #ifdef HAVE_STRINGS_H
35608 #  include <strings.h>
35609 #endif
35610 /* includes end */"
35611   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35612 "
35613 if test "x$ac_cv_header_sys_types_h" = xyes
35614 then :
35615   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35616
35617 fi
35618 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35619 "
35620 if test "x$ac_cv_header_strings_h" = xyes
35621 then :
35622   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35623
35624 fi
35625
35626
35627
35628 curl_includes_libgen="\
35629 /* includes start */
35630 #ifdef HAVE_SYS_TYPES_H
35631 #  include <sys/types.h>
35632 #endif
35633 #ifdef HAVE_LIBGEN_H
35634 #  include <libgen.h>
35635 #endif
35636 /* includes end */"
35637   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35638 "
35639 if test "x$ac_cv_header_sys_types_h" = xyes
35640 then :
35641   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35642
35643 fi
35644 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35645 "
35646 if test "x$ac_cv_header_libgen_h" = xyes
35647 then :
35648   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35649
35650 fi
35651
35652
35653
35654         #
35655   tst_links_basename="unknown"
35656   tst_proto_basename="unknown"
35657   tst_compi_basename="unknown"
35658   tst_allow_basename="unknown"
35659   #
35660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35661 printf %s "checking if basename can be linked... " >&6; }
35662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35663 /* end confdefs.h.  */
35664
35665
35666 #define basename innocuous_basename
35667 #ifdef __STDC__
35668 # include <limits.h>
35669 #else
35670 # include <assert.h>
35671 #endif
35672 #undef basename
35673 #ifdef __cplusplus
35674 extern "C"
35675 #endif
35676 char basename ();
35677 #if defined __stub_basename || defined __stub___basename
35678 choke me
35679 #endif
35680
35681 int main (void)
35682 {
35683 return basename ();
35684  ;
35685  return 0;
35686 }
35687
35688 _ACEOF
35689 if ac_fn_c_try_link "$LINENO"
35690 then :
35691
35692     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35693 printf "%s\n" "yes" >&6; }
35694     tst_links_basename="yes"
35695
35696 else $as_nop
35697
35698     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699 printf "%s\n" "no" >&6; }
35700     tst_links_basename="no"
35701
35702 fi
35703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35704     conftest$ac_exeext conftest.$ac_ext
35705   #
35706   if test "$tst_links_basename" = "yes"; then
35707     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35708 printf %s "checking if basename is prototyped... " >&6; }
35709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35710 /* end confdefs.h.  */
35711
35712       $curl_includes_string
35713       $curl_includes_libgen
35714       $curl_includes_unistd
35715
35716 _ACEOF
35717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35718   $EGREP "basename" >/dev/null 2>&1
35719 then :
35720
35721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35722 printf "%s\n" "yes" >&6; }
35723       tst_proto_basename="yes"
35724
35725 else $as_nop
35726
35727       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35728 printf "%s\n" "no" >&6; }
35729       tst_proto_basename="no"
35730
35731 fi
35732 rm -rf conftest*
35733
35734   fi
35735   #
35736   if test "$tst_proto_basename" = "yes"; then
35737     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35738 printf %s "checking if basename is compilable... " >&6; }
35739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35740 /* end confdefs.h.  */
35741
35742
35743         $curl_includes_string
35744         $curl_includes_libgen
35745         $curl_includes_unistd
35746
35747 int main (void)
35748 {
35749
35750         if(0 != basename(0))
35751           return 1;
35752
35753  ;
35754  return 0;
35755 }
35756
35757 _ACEOF
35758 if ac_fn_c_try_compile "$LINENO"
35759 then :
35760
35761       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35762 printf "%s\n" "yes" >&6; }
35763       tst_compi_basename="yes"
35764
35765 else $as_nop
35766
35767       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35768 printf "%s\n" "no" >&6; }
35769       tst_compi_basename="no"
35770
35771 fi
35772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35773   fi
35774   #
35775   if test "$tst_compi_basename" = "yes"; then
35776     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35777 printf %s "checking if basename usage allowed... " >&6; }
35778     if test "x$curl_disallow_basename" != "xyes"; then
35779       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35780 printf "%s\n" "yes" >&6; }
35781       tst_allow_basename="yes"
35782     else
35783       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35784 printf "%s\n" "no" >&6; }
35785       tst_allow_basename="no"
35786     fi
35787   fi
35788   #
35789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35790 printf %s "checking if basename might be used... " >&6; }
35791   if test "$tst_links_basename" = "yes" &&
35792      test "$tst_proto_basename" = "yes" &&
35793      test "$tst_compi_basename" = "yes" &&
35794      test "$tst_allow_basename" = "yes"; then
35795     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 printf "%s\n" "yes" >&6; }
35797
35798 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35799
35800     curl_cv_func_basename="yes"
35801   else
35802     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35803 printf "%s\n" "no" >&6; }
35804     curl_cv_func_basename="no"
35805   fi
35806
35807
35808 curl_includes_socket="\
35809 /* includes start */
35810 #ifdef HAVE_SYS_TYPES_H
35811 #  include <sys/types.h>
35812 #endif
35813 #ifdef HAVE_SOCKET_H
35814 #  include <socket.h>
35815 #endif
35816 /* includes end */"
35817   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35818 "
35819 if test "x$ac_cv_header_sys_types_h" = xyes
35820 then :
35821   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35822
35823 fi
35824 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35825 "
35826 if test "x$ac_cv_header_socket_h" = xyes
35827 then :
35828   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35829
35830 fi
35831
35832
35833
35834       #
35835   tst_links_closesocket="unknown"
35836   tst_proto_closesocket="unknown"
35837   tst_compi_closesocket="unknown"
35838   tst_allow_closesocket="unknown"
35839   #
35840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35841 printf %s "checking if closesocket can be linked... " >&6; }
35842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35843 /* end confdefs.h.  */
35844
35845
35846       $curl_includes_winsock2
35847       $curl_includes_socket
35848
35849 int main (void)
35850 {
35851
35852       if(0 != closesocket(0))
35853         return 1;
35854
35855  ;
35856  return 0;
35857 }
35858
35859 _ACEOF
35860 if ac_fn_c_try_link "$LINENO"
35861 then :
35862
35863     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35864 printf "%s\n" "yes" >&6; }
35865     tst_links_closesocket="yes"
35866
35867 else $as_nop
35868
35869     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35870 printf "%s\n" "no" >&6; }
35871     tst_links_closesocket="no"
35872
35873 fi
35874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35875     conftest$ac_exeext conftest.$ac_ext
35876   #
35877   if test "$tst_links_closesocket" = "yes"; then
35878     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35879 printf %s "checking if closesocket is prototyped... " >&6; }
35880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35881 /* end confdefs.h.  */
35882
35883       $curl_includes_winsock2
35884       $curl_includes_socket
35885
35886 _ACEOF
35887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35888   $EGREP "closesocket" >/dev/null 2>&1
35889 then :
35890
35891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35892 printf "%s\n" "yes" >&6; }
35893       tst_proto_closesocket="yes"
35894
35895 else $as_nop
35896
35897       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 printf "%s\n" "no" >&6; }
35899       tst_proto_closesocket="no"
35900
35901 fi
35902 rm -rf conftest*
35903
35904   fi
35905   #
35906   if test "$tst_proto_closesocket" = "yes"; then
35907     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35908 printf %s "checking if closesocket is compilable... " >&6; }
35909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35910 /* end confdefs.h.  */
35911
35912
35913         $curl_includes_winsock2
35914         $curl_includes_socket
35915
35916 int main (void)
35917 {
35918
35919         if(0 != closesocket(0))
35920           return 1;
35921
35922  ;
35923  return 0;
35924 }
35925
35926 _ACEOF
35927 if ac_fn_c_try_compile "$LINENO"
35928 then :
35929
35930       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35931 printf "%s\n" "yes" >&6; }
35932       tst_compi_closesocket="yes"
35933
35934 else $as_nop
35935
35936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35937 printf "%s\n" "no" >&6; }
35938       tst_compi_closesocket="no"
35939
35940 fi
35941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35942   fi
35943   #
35944   if test "$tst_compi_closesocket" = "yes"; then
35945     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35946 printf %s "checking if closesocket usage allowed... " >&6; }
35947     if test "x$curl_disallow_closesocket" != "xyes"; then
35948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35949 printf "%s\n" "yes" >&6; }
35950       tst_allow_closesocket="yes"
35951     else
35952       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35953 printf "%s\n" "no" >&6; }
35954       tst_allow_closesocket="no"
35955     fi
35956   fi
35957   #
35958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35959 printf %s "checking if closesocket might be used... " >&6; }
35960   if test "$tst_links_closesocket" = "yes" &&
35961      test "$tst_proto_closesocket" = "yes" &&
35962      test "$tst_compi_closesocket" = "yes" &&
35963      test "$tst_allow_closesocket" = "yes"; then
35964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35965 printf "%s\n" "yes" >&6; }
35966
35967 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35968
35969     curl_cv_func_closesocket="yes"
35970   else
35971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972 printf "%s\n" "no" >&6; }
35973     curl_cv_func_closesocket="no"
35974   fi
35975
35976
35977 curl_includes_sys_socket="\
35978 /* includes start */
35979 #ifdef HAVE_SYS_TYPES_H
35980 #  include <sys/types.h>
35981 #endif
35982 #ifdef HAVE_SYS_SOCKET_H
35983 #  include <sys/socket.h>
35984 #endif
35985 /* includes end */"
35986   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35987 "
35988 if test "x$ac_cv_header_sys_types_h" = xyes
35989 then :
35990   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35991
35992 fi
35993 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35994 "
35995 if test "x$ac_cv_header_sys_socket_h" = xyes
35996 then :
35997   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35998
35999 fi
36000
36001
36002
36003       #
36004   tst_links_closesocket_camel="unknown"
36005   tst_proto_closesocket_camel="unknown"
36006   tst_compi_closesocket_camel="unknown"
36007   tst_allow_closesocket_camel="unknown"
36008   #
36009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36010 printf %s "checking if CloseSocket can be linked... " >&6; }
36011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36012 /* end confdefs.h.  */
36013
36014
36015       $curl_includes_bsdsocket
36016       $curl_includes_sys_socket
36017
36018 int main (void)
36019 {
36020
36021       if(0 != CloseSocket(0))
36022         return 1;
36023
36024  ;
36025  return 0;
36026 }
36027
36028 _ACEOF
36029 if ac_fn_c_try_link "$LINENO"
36030 then :
36031
36032     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033 printf "%s\n" "yes" >&6; }
36034     tst_links_closesocket_camel="yes"
36035
36036 else $as_nop
36037
36038     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36039 printf "%s\n" "no" >&6; }
36040     tst_links_closesocket_camel="no"
36041
36042 fi
36043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36044     conftest$ac_exeext conftest.$ac_ext
36045   #
36046   if test "$tst_links_closesocket_camel" = "yes"; then
36047     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36048 printf %s "checking if CloseSocket is prototyped... " >&6; }
36049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36050 /* end confdefs.h.  */
36051
36052       $curl_includes_bsdsocket
36053       $curl_includes_sys_socket
36054
36055 _ACEOF
36056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36057   $EGREP "CloseSocket" >/dev/null 2>&1
36058 then :
36059
36060       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36061 printf "%s\n" "yes" >&6; }
36062       tst_proto_closesocket_camel="yes"
36063
36064 else $as_nop
36065
36066       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36067 printf "%s\n" "no" >&6; }
36068       tst_proto_closesocket_camel="no"
36069
36070 fi
36071 rm -rf conftest*
36072
36073   fi
36074   #
36075   if test "$tst_proto_closesocket_camel" = "yes"; then
36076     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36077 printf %s "checking if CloseSocket is compilable... " >&6; }
36078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36079 /* end confdefs.h.  */
36080
36081
36082         $curl_includes_bsdsocket
36083         $curl_includes_sys_socket
36084
36085 int main (void)
36086 {
36087
36088         if(0 != CloseSocket(0))
36089           return 1;
36090
36091  ;
36092  return 0;
36093 }
36094
36095 _ACEOF
36096 if ac_fn_c_try_compile "$LINENO"
36097 then :
36098
36099       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36100 printf "%s\n" "yes" >&6; }
36101       tst_compi_closesocket_camel="yes"
36102
36103 else $as_nop
36104
36105       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36106 printf "%s\n" "no" >&6; }
36107       tst_compi_closesocket_camel="no"
36108
36109 fi
36110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36111   fi
36112   #
36113   if test "$tst_compi_closesocket_camel" = "yes"; then
36114     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36115 printf %s "checking if CloseSocket usage allowed... " >&6; }
36116     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36117       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36118 printf "%s\n" "yes" >&6; }
36119       tst_allow_closesocket_camel="yes"
36120     else
36121       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122 printf "%s\n" "no" >&6; }
36123       tst_allow_closesocket_camel="no"
36124     fi
36125   fi
36126   #
36127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36128 printf %s "checking if CloseSocket might be used... " >&6; }
36129   if test "$tst_links_closesocket_camel" = "yes" &&
36130      test "$tst_proto_closesocket_camel" = "yes" &&
36131      test "$tst_compi_closesocket_camel" = "yes" &&
36132      test "$tst_allow_closesocket_camel" = "yes"; then
36133     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36134 printf "%s\n" "yes" >&6; }
36135
36136 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36137
36138     curl_cv_func_closesocket_camel="yes"
36139   else
36140     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36141 printf "%s\n" "no" >&6; }
36142     curl_cv_func_closesocket_camel="no"
36143   fi
36144
36145
36146 curl_includes_fcntl="\
36147 /* includes start */
36148 #ifdef HAVE_SYS_TYPES_H
36149 #  include <sys/types.h>
36150 #endif
36151 #ifdef HAVE_UNISTD_H
36152 #  include <unistd.h>
36153 #endif
36154 #ifdef HAVE_FCNTL_H
36155 #  include <fcntl.h>
36156 #endif
36157 /* includes end */"
36158   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36159 "
36160 if test "x$ac_cv_header_sys_types_h" = xyes
36161 then :
36162   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36163
36164 fi
36165 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36166 "
36167 if test "x$ac_cv_header_unistd_h" = xyes
36168 then :
36169   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36170
36171 fi
36172 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36173 "
36174 if test "x$ac_cv_header_fcntl_h" = xyes
36175 then :
36176   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36177
36178 fi
36179
36180
36181
36182     #
36183   tst_links_fcntl="unknown"
36184   tst_proto_fcntl="unknown"
36185   tst_compi_fcntl="unknown"
36186   tst_allow_fcntl="unknown"
36187   #
36188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36189 printf %s "checking if fcntl can be linked... " >&6; }
36190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36191 /* end confdefs.h.  */
36192
36193
36194 #define fcntl innocuous_fcntl
36195 #ifdef __STDC__
36196 # include <limits.h>
36197 #else
36198 # include <assert.h>
36199 #endif
36200 #undef fcntl
36201 #ifdef __cplusplus
36202 extern "C"
36203 #endif
36204 char fcntl ();
36205 #if defined __stub_fcntl || defined __stub___fcntl
36206 choke me
36207 #endif
36208
36209 int main (void)
36210 {
36211 return fcntl ();
36212  ;
36213  return 0;
36214 }
36215
36216 _ACEOF
36217 if ac_fn_c_try_link "$LINENO"
36218 then :
36219
36220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36221 printf "%s\n" "yes" >&6; }
36222     tst_links_fcntl="yes"
36223
36224 else $as_nop
36225
36226     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36227 printf "%s\n" "no" >&6; }
36228     tst_links_fcntl="no"
36229
36230 fi
36231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36232     conftest$ac_exeext conftest.$ac_ext
36233   #
36234   if test "$tst_links_fcntl" = "yes"; then
36235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36236 printf %s "checking if fcntl is prototyped... " >&6; }
36237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36238 /* end confdefs.h.  */
36239
36240       $curl_includes_fcntl
36241
36242 _ACEOF
36243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36244   $EGREP "fcntl" >/dev/null 2>&1
36245 then :
36246
36247       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36248 printf "%s\n" "yes" >&6; }
36249       tst_proto_fcntl="yes"
36250
36251 else $as_nop
36252
36253       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36254 printf "%s\n" "no" >&6; }
36255       tst_proto_fcntl="no"
36256
36257 fi
36258 rm -rf conftest*
36259
36260   fi
36261   #
36262   if test "$tst_proto_fcntl" = "yes"; then
36263     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36264 printf %s "checking if fcntl is compilable... " >&6; }
36265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36266 /* end confdefs.h.  */
36267
36268
36269         $curl_includes_fcntl
36270
36271 int main (void)
36272 {
36273
36274         if(0 != fcntl(0, 0, 0))
36275           return 1;
36276
36277  ;
36278  return 0;
36279 }
36280
36281 _ACEOF
36282 if ac_fn_c_try_compile "$LINENO"
36283 then :
36284
36285       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36286 printf "%s\n" "yes" >&6; }
36287       tst_compi_fcntl="yes"
36288
36289 else $as_nop
36290
36291       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36292 printf "%s\n" "no" >&6; }
36293       tst_compi_fcntl="no"
36294
36295 fi
36296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36297   fi
36298   #
36299   if test "$tst_compi_fcntl" = "yes"; then
36300     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36301 printf %s "checking if fcntl usage allowed... " >&6; }
36302     if test "x$curl_disallow_fcntl" != "xyes"; then
36303       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36304 printf "%s\n" "yes" >&6; }
36305       tst_allow_fcntl="yes"
36306     else
36307       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36308 printf "%s\n" "no" >&6; }
36309       tst_allow_fcntl="no"
36310     fi
36311   fi
36312   #
36313   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36314 printf %s "checking if fcntl might be used... " >&6; }
36315   if test "$tst_links_fcntl" = "yes" &&
36316      test "$tst_proto_fcntl" = "yes" &&
36317      test "$tst_compi_fcntl" = "yes" &&
36318      test "$tst_allow_fcntl" = "yes"; then
36319     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36320 printf "%s\n" "yes" >&6; }
36321
36322 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36323
36324     curl_cv_func_fcntl="yes"
36325
36326   #
36327   tst_compi_fcntl_o_nonblock="unknown"
36328   tst_allow_fcntl_o_nonblock="unknown"
36329   #
36330   case $host_os in
36331     sunos4* | aix3*)
36332             curl_disallow_fcntl_o_nonblock="yes"
36333       ;;
36334   esac
36335   #
36336   if test "$curl_cv_func_fcntl" = "yes"; then
36337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36338 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36340 /* end confdefs.h.  */
36341
36342
36343         $curl_includes_fcntl
36344
36345 int main (void)
36346 {
36347
36348         int flags = 0;
36349         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36350           return 1;
36351
36352  ;
36353  return 0;
36354 }
36355
36356 _ACEOF
36357 if ac_fn_c_try_compile "$LINENO"
36358 then :
36359
36360       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36361 printf "%s\n" "yes" >&6; }
36362       tst_compi_fcntl_o_nonblock="yes"
36363
36364 else $as_nop
36365
36366       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36367 printf "%s\n" "no" >&6; }
36368       tst_compi_fcntl_o_nonblock="no"
36369
36370 fi
36371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36372   fi
36373   #
36374   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36375     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36376 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36377     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36378       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36379 printf "%s\n" "yes" >&6; }
36380       tst_allow_fcntl_o_nonblock="yes"
36381     else
36382       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 printf "%s\n" "no" >&6; }
36384       tst_allow_fcntl_o_nonblock="no"
36385     fi
36386   fi
36387   #
36388   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36389 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36390   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36391      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36393 printf "%s\n" "yes" >&6; }
36394
36395 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36396
36397     curl_cv_func_fcntl_o_nonblock="yes"
36398   else
36399     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36400 printf "%s\n" "no" >&6; }
36401     curl_cv_func_fcntl_o_nonblock="no"
36402   fi
36403
36404   else
36405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36406 printf "%s\n" "no" >&6; }
36407     curl_cv_func_fcntl="no"
36408   fi
36409
36410
36411 curl_includes_ws2tcpip="\
36412 /* includes start */
36413 #ifdef HAVE_WINDOWS_H
36414 #  ifndef WIN32_LEAN_AND_MEAN
36415 #    define WIN32_LEAN_AND_MEAN
36416 #  endif
36417 #  ifdef HAVE_WINSOCK2_H
36418 #    include <winsock2.h>
36419 #    ifdef HAVE_WS2TCPIP_H
36420 #       include <ws2tcpip.h>
36421 #    endif
36422 #  endif
36423 #  include <windows.h>
36424 #endif
36425 /* includes end */"
36426
36427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36428 printf %s "checking for windows.h... " >&6; }
36429 if test ${curl_cv_header_windows_h+y}
36430 then :
36431   printf %s "(cached) " >&6
36432 else $as_nop
36433
36434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36435 /* end confdefs.h.  */
36436
36437
36438 #undef inline
36439 #ifndef WIN32_LEAN_AND_MEAN
36440 #define WIN32_LEAN_AND_MEAN
36441 #endif
36442 #include <windows.h>
36443
36444 int main (void)
36445 {
36446
36447 #if defined(__CYGWIN__) || defined(__CEGCC__)
36448         HAVE_WINDOWS_H shall not be defined.
36449 #else
36450         int dummy=2*WINVER;
36451 #endif
36452
36453  ;
36454  return 0;
36455 }
36456
36457 _ACEOF
36458 if ac_fn_c_try_compile "$LINENO"
36459 then :
36460
36461       curl_cv_header_windows_h="yes"
36462
36463 else $as_nop
36464
36465       curl_cv_header_windows_h="no"
36466
36467 fi
36468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36469
36470 fi
36471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36472 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36473   case "$curl_cv_header_windows_h" in
36474     yes)
36475
36476 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36477
36478       ;;
36479   esac
36480
36481
36482     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36483 printf %s "checking for winsock2.h... " >&6; }
36484 if test ${curl_cv_header_winsock2_h+y}
36485 then :
36486   printf %s "(cached) " >&6
36487 else $as_nop
36488
36489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36490 /* end confdefs.h.  */
36491
36492
36493 #undef inline
36494 #ifndef WIN32_LEAN_AND_MEAN
36495 #define WIN32_LEAN_AND_MEAN
36496 #endif
36497 #include <windows.h>
36498 #include <winsock2.h>
36499
36500 int main (void)
36501 {
36502
36503 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36504         HAVE_WINSOCK2_H shall not be defined.
36505 #else
36506         int dummy=2*IPPROTO_ESP;
36507 #endif
36508
36509  ;
36510  return 0;
36511 }
36512
36513 _ACEOF
36514 if ac_fn_c_try_compile "$LINENO"
36515 then :
36516
36517       curl_cv_header_winsock2_h="yes"
36518
36519 else $as_nop
36520
36521       curl_cv_header_winsock2_h="no"
36522
36523 fi
36524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36525
36526 fi
36527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36528 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36529   case "$curl_cv_header_winsock2_h" in
36530     yes)
36531
36532 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36533
36534       ;;
36535   esac
36536
36537
36538     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36539 printf %s "checking for ws2tcpip.h... " >&6; }
36540 if test ${curl_cv_header_ws2tcpip_h+y}
36541 then :
36542   printf %s "(cached) " >&6
36543 else $as_nop
36544
36545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36546 /* end confdefs.h.  */
36547
36548
36549 #undef inline
36550 #ifndef WIN32_LEAN_AND_MEAN
36551 #define WIN32_LEAN_AND_MEAN
36552 #endif
36553 #include <windows.h>
36554 #include <winsock2.h>
36555 #include <ws2tcpip.h>
36556
36557 int main (void)
36558 {
36559
36560 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36561         HAVE_WS2TCPIP_H shall not be defined.
36562 #else
36563         int dummy=2*IP_PKTINFO;
36564 #endif
36565
36566  ;
36567  return 0;
36568 }
36569
36570 _ACEOF
36571 if ac_fn_c_try_compile "$LINENO"
36572 then :
36573
36574       curl_cv_header_ws2tcpip_h="yes"
36575
36576 else $as_nop
36577
36578       curl_cv_header_ws2tcpip_h="no"
36579
36580 fi
36581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36582
36583 fi
36584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36585 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36586   case "$curl_cv_header_ws2tcpip_h" in
36587     yes)
36588
36589 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36590
36591       ;;
36592   esac
36593
36594
36595
36596 curl_includes_netdb="\
36597 /* includes start */
36598 #ifdef HAVE_SYS_TYPES_H
36599 #  include <sys/types.h>
36600 #endif
36601 #ifdef HAVE_NETDB_H
36602 #  include <netdb.h>
36603 #endif
36604 /* includes end */"
36605   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36606 "
36607 if test "x$ac_cv_header_sys_types_h" = xyes
36608 then :
36609   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36610
36611 fi
36612 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36613 "
36614 if test "x$ac_cv_header_netdb_h" = xyes
36615 then :
36616   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36617
36618 fi
36619
36620
36621
36622         #
36623   tst_links_freeaddrinfo="unknown"
36624   tst_proto_freeaddrinfo="unknown"
36625   tst_compi_freeaddrinfo="unknown"
36626   tst_allow_freeaddrinfo="unknown"
36627   #
36628   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36629 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36631 /* end confdefs.h.  */
36632
36633
36634       $curl_includes_ws2tcpip
36635       $curl_includes_sys_socket
36636       $curl_includes_netdb
36637
36638 int main (void)
36639 {
36640
36641       freeaddrinfo(0);
36642
36643  ;
36644  return 0;
36645 }
36646
36647 _ACEOF
36648 if ac_fn_c_try_link "$LINENO"
36649 then :
36650
36651     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36652 printf "%s\n" "yes" >&6; }
36653     tst_links_freeaddrinfo="yes"
36654
36655 else $as_nop
36656
36657     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 printf "%s\n" "no" >&6; }
36659     tst_links_freeaddrinfo="no"
36660
36661 fi
36662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36663     conftest$ac_exeext conftest.$ac_ext
36664   #
36665   if test "$tst_links_freeaddrinfo" = "yes"; then
36666     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36667 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36669 /* end confdefs.h.  */
36670
36671       $curl_includes_ws2tcpip
36672       $curl_includes_sys_socket
36673       $curl_includes_netdb
36674
36675 _ACEOF
36676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36677   $EGREP "freeaddrinfo" >/dev/null 2>&1
36678 then :
36679
36680       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36681 printf "%s\n" "yes" >&6; }
36682       tst_proto_freeaddrinfo="yes"
36683
36684 else $as_nop
36685
36686       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36687 printf "%s\n" "no" >&6; }
36688       tst_proto_freeaddrinfo="no"
36689
36690 fi
36691 rm -rf conftest*
36692
36693   fi
36694   #
36695   if test "$tst_proto_freeaddrinfo" = "yes"; then
36696     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36697 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h.  */
36700
36701
36702         $curl_includes_ws2tcpip
36703         $curl_includes_sys_socket
36704         $curl_includes_netdb
36705
36706 int main (void)
36707 {
36708
36709         freeaddrinfo(0);
36710
36711  ;
36712  return 0;
36713 }
36714
36715 _ACEOF
36716 if ac_fn_c_try_compile "$LINENO"
36717 then :
36718
36719       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 printf "%s\n" "yes" >&6; }
36721       tst_compi_freeaddrinfo="yes"
36722
36723 else $as_nop
36724
36725       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 printf "%s\n" "no" >&6; }
36727       tst_compi_freeaddrinfo="no"
36728
36729 fi
36730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36731   fi
36732   #
36733   if test "$tst_compi_freeaddrinfo" = "yes"; then
36734     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36735 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36736     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36737       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36738 printf "%s\n" "yes" >&6; }
36739       tst_allow_freeaddrinfo="yes"
36740     else
36741       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36742 printf "%s\n" "no" >&6; }
36743       tst_allow_freeaddrinfo="no"
36744     fi
36745   fi
36746   #
36747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36748 printf %s "checking if freeaddrinfo might be used... " >&6; }
36749   if test "$tst_links_freeaddrinfo" = "yes" &&
36750      test "$tst_proto_freeaddrinfo" = "yes" &&
36751      test "$tst_compi_freeaddrinfo" = "yes" &&
36752      test "$tst_allow_freeaddrinfo" = "yes"; then
36753     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36754 printf "%s\n" "yes" >&6; }
36755
36756 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36757
36758     curl_cv_func_freeaddrinfo="yes"
36759   else
36760     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36761 printf "%s\n" "no" >&6; }
36762     curl_cv_func_freeaddrinfo="no"
36763   fi
36764
36765
36766 curl_includes_sys_xattr="\
36767 /* includes start */
36768 #ifdef HAVE_SYS_TYPES_H
36769 #  include <sys/types.h>
36770 #endif
36771 #ifdef HAVE_SYS_XATTR_H
36772 #  include <sys/xattr.h>
36773 #endif
36774 /* includes end */"
36775   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36776 "
36777 if test "x$ac_cv_header_sys_types_h" = xyes
36778 then :
36779   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36780
36781 fi
36782 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36783 "
36784 if test "x$ac_cv_header_sys_xattr_h" = xyes
36785 then :
36786   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36787
36788 fi
36789
36790
36791
36792     #
36793   tst_links_fsetxattr="unknown"
36794   tst_proto_fsetxattr="unknown"
36795   tst_compi_fsetxattr="unknown"
36796   tst_allow_fsetxattr="unknown"
36797   tst_nargs_fsetxattr="unknown"
36798   #
36799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36800 printf %s "checking if fsetxattr can be linked... " >&6; }
36801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36802 /* end confdefs.h.  */
36803
36804
36805 #define fsetxattr innocuous_fsetxattr
36806 #ifdef __STDC__
36807 # include <limits.h>
36808 #else
36809 # include <assert.h>
36810 #endif
36811 #undef fsetxattr
36812 #ifdef __cplusplus
36813 extern "C"
36814 #endif
36815 char fsetxattr ();
36816 #if defined __stub_fsetxattr || defined __stub___fsetxattr
36817 choke me
36818 #endif
36819
36820 int main (void)
36821 {
36822 return fsetxattr ();
36823  ;
36824  return 0;
36825 }
36826
36827 _ACEOF
36828 if ac_fn_c_try_link "$LINENO"
36829 then :
36830
36831     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36832 printf "%s\n" "yes" >&6; }
36833     tst_links_fsetxattr="yes"
36834
36835 else $as_nop
36836
36837     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838 printf "%s\n" "no" >&6; }
36839     tst_links_fsetxattr="no"
36840
36841 fi
36842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36843     conftest$ac_exeext conftest.$ac_ext
36844   #
36845   if test "$tst_links_fsetxattr" = "yes"; then
36846     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36847 printf %s "checking if fsetxattr is prototyped... " >&6; }
36848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36849 /* end confdefs.h.  */
36850
36851       $curl_includes_sys_xattr
36852
36853 _ACEOF
36854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36855   $EGREP "fsetxattr" >/dev/null 2>&1
36856 then :
36857
36858       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36859 printf "%s\n" "yes" >&6; }
36860       tst_proto_fsetxattr="yes"
36861
36862 else $as_nop
36863
36864       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36865 printf "%s\n" "no" >&6; }
36866       tst_proto_fsetxattr="no"
36867
36868 fi
36869 rm -rf conftest*
36870
36871   fi
36872   #
36873   if test "$tst_proto_fsetxattr" = "yes"; then
36874     if test "$tst_nargs_fsetxattr" = "unknown"; then
36875       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36876 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36877       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36878 /* end confdefs.h.  */
36879
36880
36881           $curl_includes_sys_xattr
36882
36883 int main (void)
36884 {
36885
36886           if(0 != fsetxattr(0, 0, 0, 0, 0))
36887             return 1;
36888
36889  ;
36890  return 0;
36891 }
36892
36893 _ACEOF
36894 if ac_fn_c_try_compile "$LINENO"
36895 then :
36896
36897         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36898 printf "%s\n" "yes" >&6; }
36899         tst_compi_fsetxattr="yes"
36900         tst_nargs_fsetxattr="5"
36901
36902 else $as_nop
36903
36904         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36905 printf "%s\n" "no" >&6; }
36906         tst_compi_fsetxattr="no"
36907
36908 fi
36909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36910     fi
36911     if test "$tst_nargs_fsetxattr" = "unknown"; then
36912       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36913 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36914       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36915 /* end confdefs.h.  */
36916
36917
36918           $curl_includes_sys_xattr
36919
36920 int main (void)
36921 {
36922
36923           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36924             return 1;
36925
36926  ;
36927  return 0;
36928 }
36929
36930 _ACEOF
36931 if ac_fn_c_try_compile "$LINENO"
36932 then :
36933
36934         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36935 printf "%s\n" "yes" >&6; }
36936         tst_compi_fsetxattr="yes"
36937         tst_nargs_fsetxattr="6"
36938
36939 else $as_nop
36940
36941         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36942 printf "%s\n" "no" >&6; }
36943         tst_compi_fsetxattr="no"
36944
36945 fi
36946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36947     fi
36948     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36949 printf %s "checking if fsetxattr is compilable... " >&6; }
36950     if test "$tst_compi_fsetxattr" = "yes"; then
36951       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 printf "%s\n" "yes" >&6; }
36953     else
36954       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36955 printf "%s\n" "no" >&6; }
36956     fi
36957   fi
36958   #
36959   if test "$tst_compi_fsetxattr" = "yes"; then
36960     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36961 printf %s "checking if fsetxattr usage allowed... " >&6; }
36962     if test "x$curl_disallow_fsetxattr" != "xyes"; then
36963       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36964 printf "%s\n" "yes" >&6; }
36965       tst_allow_fsetxattr="yes"
36966     else
36967       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36968 printf "%s\n" "no" >&6; }
36969       tst_allow_fsetxattr="no"
36970     fi
36971   fi
36972   #
36973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36974 printf %s "checking if fsetxattr might be used... " >&6; }
36975   if test "$tst_links_fsetxattr" = "yes" &&
36976      test "$tst_proto_fsetxattr" = "yes" &&
36977      test "$tst_compi_fsetxattr" = "yes" &&
36978      test "$tst_allow_fsetxattr" = "yes"; then
36979     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36980 printf "%s\n" "yes" >&6; }
36981
36982 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36983
36984             #
36985     if test "$tst_nargs_fsetxattr" -eq "5"; then
36986
36987 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36988
36989     elif test "$tst_nargs_fsetxattr" -eq "6"; then
36990
36991 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36992
36993     fi
36994     #
36995     curl_cv_func_fsetxattr="yes"
36996   else
36997     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36998 printf "%s\n" "no" >&6; }
36999     curl_cv_func_fsetxattr="no"
37000   fi
37001
37002
37003     #
37004   tst_links_ftruncate="unknown"
37005   tst_proto_ftruncate="unknown"
37006   tst_compi_ftruncate="unknown"
37007   tst_allow_ftruncate="unknown"
37008   #
37009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37010 printf %s "checking if ftruncate can be linked... " >&6; }
37011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37012 /* end confdefs.h.  */
37013
37014
37015 #define ftruncate innocuous_ftruncate
37016 #ifdef __STDC__
37017 # include <limits.h>
37018 #else
37019 # include <assert.h>
37020 #endif
37021 #undef ftruncate
37022 #ifdef __cplusplus
37023 extern "C"
37024 #endif
37025 char ftruncate ();
37026 #if defined __stub_ftruncate || defined __stub___ftruncate
37027 choke me
37028 #endif
37029
37030 int main (void)
37031 {
37032 return ftruncate ();
37033  ;
37034  return 0;
37035 }
37036
37037 _ACEOF
37038 if ac_fn_c_try_link "$LINENO"
37039 then :
37040
37041     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37042 printf "%s\n" "yes" >&6; }
37043     tst_links_ftruncate="yes"
37044
37045 else $as_nop
37046
37047     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37048 printf "%s\n" "no" >&6; }
37049     tst_links_ftruncate="no"
37050
37051 fi
37052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37053     conftest$ac_exeext conftest.$ac_ext
37054   #
37055   if test "$tst_links_ftruncate" = "yes"; then
37056     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37057 printf %s "checking if ftruncate is prototyped... " >&6; }
37058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37059 /* end confdefs.h.  */
37060
37061       $curl_includes_unistd
37062
37063 _ACEOF
37064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37065   $EGREP "ftruncate" >/dev/null 2>&1
37066 then :
37067
37068       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37069 printf "%s\n" "yes" >&6; }
37070       tst_proto_ftruncate="yes"
37071
37072 else $as_nop
37073
37074       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37075 printf "%s\n" "no" >&6; }
37076       tst_proto_ftruncate="no"
37077
37078 fi
37079 rm -rf conftest*
37080
37081   fi
37082   #
37083   if test "$tst_proto_ftruncate" = "yes"; then
37084     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37085 printf %s "checking if ftruncate is compilable... " >&6; }
37086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37087 /* end confdefs.h.  */
37088
37089
37090         $curl_includes_unistd
37091
37092 int main (void)
37093 {
37094
37095         if(0 != ftruncate(0, 0))
37096           return 1;
37097
37098  ;
37099  return 0;
37100 }
37101
37102 _ACEOF
37103 if ac_fn_c_try_compile "$LINENO"
37104 then :
37105
37106       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37107 printf "%s\n" "yes" >&6; }
37108       tst_compi_ftruncate="yes"
37109
37110 else $as_nop
37111
37112       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37113 printf "%s\n" "no" >&6; }
37114       tst_compi_ftruncate="no"
37115
37116 fi
37117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37118   fi
37119   #
37120   if test "$tst_compi_ftruncate" = "yes"; then
37121     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37122 printf %s "checking if ftruncate usage allowed... " >&6; }
37123     if test "x$curl_disallow_ftruncate" != "xyes"; then
37124       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125 printf "%s\n" "yes" >&6; }
37126       tst_allow_ftruncate="yes"
37127     else
37128       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37129 printf "%s\n" "no" >&6; }
37130       tst_allow_ftruncate="no"
37131     fi
37132   fi
37133   #
37134   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37135 printf %s "checking if ftruncate might be used... " >&6; }
37136   if test "$tst_links_ftruncate" = "yes" &&
37137      test "$tst_proto_ftruncate" = "yes" &&
37138      test "$tst_compi_ftruncate" = "yes" &&
37139      test "$tst_allow_ftruncate" = "yes"; then
37140     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37141 printf "%s\n" "yes" >&6; }
37142
37143 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37144
37145     curl_cv_func_ftruncate="yes"
37146   else
37147     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37148 printf "%s\n" "no" >&6; }
37149     curl_cv_func_ftruncate="no"
37150   fi
37151
37152
37153 curl_includes_stdlib="\
37154 /* includes start */
37155 #ifdef HAVE_SYS_TYPES_H
37156 #  include <sys/types.h>
37157 #endif
37158 #include <stdlib.h>
37159 /* includes end */"
37160   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37161 "
37162 if test "x$ac_cv_header_sys_types_h" = xyes
37163 then :
37164   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37165
37166 fi
37167
37168
37169
37170               #
37171   tst_links_getaddrinfo="unknown"
37172   tst_proto_getaddrinfo="unknown"
37173   tst_compi_getaddrinfo="unknown"
37174   tst_works_getaddrinfo="unknown"
37175   tst_allow_getaddrinfo="unknown"
37176   tst_tsafe_getaddrinfo="unknown"
37177   #
37178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37179 printf %s "checking if getaddrinfo can be linked... " >&6; }
37180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37181 /* end confdefs.h.  */
37182
37183
37184       $curl_includes_ws2tcpip
37185       $curl_includes_sys_socket
37186       $curl_includes_netdb
37187
37188 int main (void)
37189 {
37190
37191       if(0 != getaddrinfo(0, 0, 0, 0))
37192         return 1;
37193
37194  ;
37195  return 0;
37196 }
37197
37198 _ACEOF
37199 if ac_fn_c_try_link "$LINENO"
37200 then :
37201
37202     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37203 printf "%s\n" "yes" >&6; }
37204     tst_links_getaddrinfo="yes"
37205
37206 else $as_nop
37207
37208     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37209 printf "%s\n" "no" >&6; }
37210     tst_links_getaddrinfo="no"
37211
37212 fi
37213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37214     conftest$ac_exeext conftest.$ac_ext
37215   #
37216   if test "$tst_links_getaddrinfo" = "yes"; then
37217     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37218 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37220 /* end confdefs.h.  */
37221
37222       $curl_includes_ws2tcpip
37223       $curl_includes_sys_socket
37224       $curl_includes_netdb
37225
37226 _ACEOF
37227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37228   $EGREP "getaddrinfo" >/dev/null 2>&1
37229 then :
37230
37231       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233       tst_proto_getaddrinfo="yes"
37234
37235 else $as_nop
37236
37237       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238 printf "%s\n" "no" >&6; }
37239       tst_proto_getaddrinfo="no"
37240
37241 fi
37242 rm -rf conftest*
37243
37244   fi
37245   #
37246   if test "$tst_proto_getaddrinfo" = "yes"; then
37247     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37248 printf %s "checking if getaddrinfo is compilable... " >&6; }
37249     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37250 /* end confdefs.h.  */
37251
37252
37253         $curl_includes_ws2tcpip
37254         $curl_includes_sys_socket
37255         $curl_includes_netdb
37256
37257 int main (void)
37258 {
37259
37260         if(0 != getaddrinfo(0, 0, 0, 0))
37261           return 1;
37262
37263  ;
37264  return 0;
37265 }
37266
37267 _ACEOF
37268 if ac_fn_c_try_compile "$LINENO"
37269 then :
37270
37271       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37272 printf "%s\n" "yes" >&6; }
37273       tst_compi_getaddrinfo="yes"
37274
37275 else $as_nop
37276
37277       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37278 printf "%s\n" "no" >&6; }
37279       tst_compi_getaddrinfo="no"
37280
37281 fi
37282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37283   fi
37284   #
37285     if test "x$cross_compiling" != "xyes" &&
37286     test "$tst_compi_getaddrinfo" = "yes"; then
37287     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37288 printf %s "checking if getaddrinfo seems to work... " >&6; }
37289
37290    case $host_os in
37291      darwin*)
37292       if test "$cross_compiling" = yes
37293 then :
37294   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37295 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37296 as_fn_error $? "cannot run test program while cross compiling
37297 See \`config.log' for more details" "$LINENO" 5; }
37298 else $as_nop
37299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37300 /* end confdefs.h.  */
37301
37302
37303         $curl_includes_ws2tcpip
37304         $curl_includes_stdlib
37305         $curl_includes_string
37306         $curl_includes_sys_socket
37307         $curl_includes_netdb
37308
37309 int main (void)
37310 {
37311
37312         struct addrinfo hints;
37313         struct addrinfo *ai = 0;
37314         int error;
37315
37316         #ifdef HAVE_WINSOCK2_H
37317         WSADATA wsa;
37318         if (WSAStartup(MAKEWORD(2,2), &wsa))
37319                 exit(2);
37320         #endif
37321
37322         memset(&hints, 0, sizeof(hints));
37323         hints.ai_flags = AI_NUMERICHOST;
37324         hints.ai_family = AF_UNSPEC;
37325         hints.ai_socktype = SOCK_STREAM;
37326         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37327         if(error || !ai)
37328           exit(1); /* fail */
37329         else
37330           exit(0);
37331
37332  ;
37333  return 0;
37334 }
37335
37336 _ACEOF
37337 if ac_fn_c_try_run "$LINENO"
37338 then :
37339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 printf "%s\n" "yes" >&6; }
37341       tst_works_getaddrinfo="yes"
37342
37343 else $as_nop
37344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37345 printf "%s\n" "no" >&6; }
37346       tst_works_getaddrinfo="no"
37347
37348 fi
37349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37350   conftest.$ac_objext conftest.beam conftest.$ac_ext
37351 fi
37352
37353      ;;
37354      *)
37355       oldcc=$CC
37356       old=$LD_LIBRARY_PATH
37357       CC="sh ./run-compiler"
37358       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37359       export LD_LIBRARY_PATH
37360       if test "$cross_compiling" = yes
37361 then :
37362   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37363 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37364 as_fn_error $? "cannot run test program while cross compiling
37365 See \`config.log' for more details" "$LINENO" 5; }
37366 else $as_nop
37367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37368 /* end confdefs.h.  */
37369
37370
37371         $curl_includes_ws2tcpip
37372         $curl_includes_stdlib
37373         $curl_includes_string
37374         $curl_includes_sys_socket
37375         $curl_includes_netdb
37376
37377 int main (void)
37378 {
37379
37380         struct addrinfo hints;
37381         struct addrinfo *ai = 0;
37382         int error;
37383
37384         #ifdef HAVE_WINSOCK2_H
37385         WSADATA wsa;
37386         if (WSAStartup(MAKEWORD(2,2), &wsa))
37387                 exit(2);
37388         #endif
37389
37390         memset(&hints, 0, sizeof(hints));
37391         hints.ai_flags = AI_NUMERICHOST;
37392         hints.ai_family = AF_UNSPEC;
37393         hints.ai_socktype = SOCK_STREAM;
37394         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37395         if(error || !ai)
37396           exit(1); /* fail */
37397         else
37398           exit(0);
37399
37400  ;
37401  return 0;
37402 }
37403
37404 _ACEOF
37405 if ac_fn_c_try_run "$LINENO"
37406 then :
37407   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37408 printf "%s\n" "yes" >&6; }
37409       tst_works_getaddrinfo="yes"
37410
37411 else $as_nop
37412   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37413 printf "%s\n" "no" >&6; }
37414       tst_works_getaddrinfo="no"
37415
37416 fi
37417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37418   conftest.$ac_objext conftest.beam conftest.$ac_ext
37419 fi
37420
37421       LD_LIBRARY_PATH=$old # restore
37422       CC=$oldcc
37423      ;;
37424    esac
37425
37426   fi
37427   #
37428   if test "$tst_compi_getaddrinfo" = "yes" &&
37429     test "$tst_works_getaddrinfo" != "no"; then
37430     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37431 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37432     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37433       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37434 printf "%s\n" "yes" >&6; }
37435       tst_allow_getaddrinfo="yes"
37436     else
37437       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37438 printf "%s\n" "no" >&6; }
37439       tst_allow_getaddrinfo="no"
37440     fi
37441   fi
37442   #
37443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37444 printf %s "checking if getaddrinfo might be used... " >&6; }
37445   if test "$tst_links_getaddrinfo" = "yes" &&
37446      test "$tst_proto_getaddrinfo" = "yes" &&
37447      test "$tst_compi_getaddrinfo" = "yes" &&
37448      test "$tst_allow_getaddrinfo" = "yes" &&
37449      test "$tst_works_getaddrinfo" != "no"; then
37450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37451 printf "%s\n" "yes" >&6; }
37452
37453 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37454
37455     curl_cv_func_getaddrinfo="yes"
37456   else
37457     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37458 printf "%s\n" "no" >&6; }
37459     curl_cv_func_getaddrinfo="no"
37460     curl_cv_func_getaddrinfo_threadsafe="no"
37461   fi
37462   #
37463   if test "$curl_cv_func_getaddrinfo" = "yes"; then
37464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37465 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37466     case $host_os in
37467       aix[1234].* | aix5.[01].*)
37468                 tst_tsafe_getaddrinfo="no"
37469         ;;
37470       aix*)
37471                 tst_tsafe_getaddrinfo="yes"
37472         ;;
37473       darwin[12345].*)
37474                 tst_tsafe_getaddrinfo="no"
37475         ;;
37476       darwin*)
37477                 tst_tsafe_getaddrinfo="yes"
37478         ;;
37479       freebsd[1234].* | freebsd5.[1234]*)
37480                 tst_tsafe_getaddrinfo="no"
37481         ;;
37482       freebsd*)
37483                 tst_tsafe_getaddrinfo="yes"
37484         ;;
37485       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37486                 tst_tsafe_getaddrinfo="no"
37487         ;;
37488       hpux*)
37489                 tst_tsafe_getaddrinfo="yes"
37490         ;;
37491       midnightbsd*)
37492                 tst_tsafe_getaddrinfo="yes"
37493         ;;
37494       netbsd[123].*)
37495                 tst_tsafe_getaddrinfo="no"
37496         ;;
37497       netbsd*)
37498                 tst_tsafe_getaddrinfo="yes"
37499         ;;
37500       *bsd*)
37501                 tst_tsafe_getaddrinfo="no"
37502         ;;
37503       solaris2*)
37504                 tst_tsafe_getaddrinfo="yes"
37505         ;;
37506     esac
37507     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37508        test "$curl_cv_native_windows" = "yes"; then
37509       tst_tsafe_getaddrinfo="yes"
37510     fi
37511     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37512
37513
37514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37515 /* end confdefs.h.  */
37516
37517
37518         $curl_includes_sys_socket
37519         $curl_includes_netdb
37520
37521 int main (void)
37522 {
37523 #ifdef h_errno
37524   return 0;
37525 #else
37526   force compilation error
37527 #endif
37528 }
37529
37530
37531 _ACEOF
37532 if ac_fn_c_try_compile "$LINENO"
37533 then :
37534
37535     tst_symbol_defined="yes"
37536
37537 else $as_nop
37538
37539     tst_symbol_defined="no"
37540
37541 fi
37542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37543   if test "$tst_symbol_defined" = "yes"; then
37544     curl_cv_have_def_h_errno=yes
37545
37546   else
37547     curl_cv_have_def_h_errno=no
37548
37549   fi
37550
37551       if test "$curl_cv_have_def_h_errno" = "yes"; then
37552         tst_h_errno_macro="yes"
37553       else
37554         tst_h_errno_macro="no"
37555       fi
37556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37557 /* end confdefs.h.  */
37558
37559
37560           $curl_includes_sys_socket
37561           $curl_includes_netdb
37562
37563 int main (void)
37564 {
37565
37566           h_errno = 2;
37567           if(0 != h_errno)
37568             return 1;
37569
37570  ;
37571  return 0;
37572 }
37573
37574 _ACEOF
37575 if ac_fn_c_try_compile "$LINENO"
37576 then :
37577
37578         tst_h_errno_modifiable_lvalue="yes"
37579
37580 else $as_nop
37581
37582         tst_h_errno_modifiable_lvalue="no"
37583
37584 fi
37585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37587 /* end confdefs.h.  */
37588
37589
37590
37591 int main (void)
37592 {
37593
37594 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37595           return 0;
37596 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37597           return 0;
37598 #else
37599           force compilation error
37600 #endif
37601
37602  ;
37603  return 0;
37604 }
37605
37606 _ACEOF
37607 if ac_fn_c_try_compile "$LINENO"
37608 then :
37609
37610         tst_h_errno_sbs_issue_7="yes"
37611
37612 else $as_nop
37613
37614         tst_h_errno_sbs_issue_7="no"
37615
37616 fi
37617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37618       if test "$tst_h_errno_macro" = "no" &&
37619          test "$tst_h_errno_modifiable_lvalue" = "no" &&
37620          test "$tst_h_errno_sbs_issue_7" = "no"; then
37621         tst_tsafe_getaddrinfo="no"
37622       else
37623         tst_tsafe_getaddrinfo="yes"
37624       fi
37625     fi
37626     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37627 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37628     if test "$tst_tsafe_getaddrinfo" = "yes"; then
37629
37630 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37631
37632       curl_cv_func_getaddrinfo_threadsafe="yes"
37633     else
37634       curl_cv_func_getaddrinfo_threadsafe="no"
37635     fi
37636   fi
37637
37638
37639       #
37640   tst_links_gethostbyname="unknown"
37641   tst_proto_gethostbyname="unknown"
37642   tst_compi_gethostbyname="unknown"
37643   tst_allow_gethostbyname="unknown"
37644   #
37645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37646 printf %s "checking if gethostbyname can be linked... " >&6; }
37647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37648 /* end confdefs.h.  */
37649
37650
37651       $curl_includes_winsock2
37652       $curl_includes_bsdsocket
37653       $curl_includes_netdb
37654
37655 int main (void)
37656 {
37657
37658       if(0 != gethostbyname(0))
37659         return 1;
37660
37661  ;
37662  return 0;
37663 }
37664
37665 _ACEOF
37666 if ac_fn_c_try_link "$LINENO"
37667 then :
37668
37669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37670 printf "%s\n" "yes" >&6; }
37671     tst_links_gethostbyname="yes"
37672
37673 else $as_nop
37674
37675     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37676 printf "%s\n" "no" >&6; }
37677     tst_links_gethostbyname="no"
37678
37679 fi
37680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37681     conftest$ac_exeext conftest.$ac_ext
37682   #
37683   if test "$tst_links_gethostbyname" = "yes"; then
37684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37685 printf %s "checking if gethostbyname is prototyped... " >&6; }
37686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37687 /* end confdefs.h.  */
37688
37689       $curl_includes_winsock2
37690       $curl_includes_bsdsocket
37691       $curl_includes_netdb
37692
37693 _ACEOF
37694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37695   $EGREP "gethostbyname" >/dev/null 2>&1
37696 then :
37697
37698       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37699 printf "%s\n" "yes" >&6; }
37700       tst_proto_gethostbyname="yes"
37701
37702 else $as_nop
37703
37704       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 printf "%s\n" "no" >&6; }
37706       tst_proto_gethostbyname="no"
37707
37708 fi
37709 rm -rf conftest*
37710
37711   fi
37712   #
37713   if test "$tst_proto_gethostbyname" = "yes"; then
37714     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37715 printf %s "checking if gethostbyname is compilable... " >&6; }
37716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37717 /* end confdefs.h.  */
37718
37719
37720         $curl_includes_winsock2
37721         $curl_includes_bsdsocket
37722         $curl_includes_netdb
37723
37724 int main (void)
37725 {
37726
37727         if(0 != gethostbyname(0))
37728           return 1;
37729
37730  ;
37731  return 0;
37732 }
37733
37734 _ACEOF
37735 if ac_fn_c_try_compile "$LINENO"
37736 then :
37737
37738       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37739 printf "%s\n" "yes" >&6; }
37740       tst_compi_gethostbyname="yes"
37741
37742 else $as_nop
37743
37744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37745 printf "%s\n" "no" >&6; }
37746       tst_compi_gethostbyname="no"
37747
37748 fi
37749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37750   fi
37751   #
37752   if test "$tst_compi_gethostbyname" = "yes"; then
37753     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37754 printf %s "checking if gethostbyname usage allowed... " >&6; }
37755     if test "x$curl_disallow_gethostbyname" != "xyes"; then
37756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37757 printf "%s\n" "yes" >&6; }
37758       tst_allow_gethostbyname="yes"
37759     else
37760       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37761 printf "%s\n" "no" >&6; }
37762       tst_allow_gethostbyname="no"
37763     fi
37764   fi
37765   #
37766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37767 printf %s "checking if gethostbyname might be used... " >&6; }
37768   if test "$tst_links_gethostbyname" = "yes" &&
37769      test "$tst_proto_gethostbyname" = "yes" &&
37770      test "$tst_compi_gethostbyname" = "yes" &&
37771      test "$tst_allow_gethostbyname" = "yes"; then
37772     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37773 printf "%s\n" "yes" >&6; }
37774
37775 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37776
37777     curl_cv_func_gethostbyname="yes"
37778   else
37779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37780 printf "%s\n" "no" >&6; }
37781     curl_cv_func_gethostbyname="no"
37782   fi
37783
37784
37785     #
37786   tst_links_gethostbyname_r="unknown"
37787   tst_proto_gethostbyname_r="unknown"
37788   tst_compi_gethostbyname_r="unknown"
37789   tst_allow_gethostbyname_r="unknown"
37790   tst_nargs_gethostbyname_r="unknown"
37791   #
37792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37793 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37795 /* end confdefs.h.  */
37796
37797
37798 #define gethostbyname_r innocuous_gethostbyname_r
37799 #ifdef __STDC__
37800 # include <limits.h>
37801 #else
37802 # include <assert.h>
37803 #endif
37804 #undef gethostbyname_r
37805 #ifdef __cplusplus
37806 extern "C"
37807 #endif
37808 char gethostbyname_r ();
37809 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37810 choke me
37811 #endif
37812
37813 int main (void)
37814 {
37815 return gethostbyname_r ();
37816  ;
37817  return 0;
37818 }
37819
37820 _ACEOF
37821 if ac_fn_c_try_link "$LINENO"
37822 then :
37823
37824     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37825 printf "%s\n" "yes" >&6; }
37826     tst_links_gethostbyname_r="yes"
37827
37828 else $as_nop
37829
37830     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37831 printf "%s\n" "no" >&6; }
37832     tst_links_gethostbyname_r="no"
37833
37834 fi
37835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37836     conftest$ac_exeext conftest.$ac_ext
37837   #
37838   if test "$tst_links_gethostbyname_r" = "yes"; then
37839     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37840 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37842 /* end confdefs.h.  */
37843
37844       $curl_includes_netdb
37845
37846 _ACEOF
37847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37848   $EGREP "gethostbyname_r" >/dev/null 2>&1
37849 then :
37850
37851       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37852 printf "%s\n" "yes" >&6; }
37853       tst_proto_gethostbyname_r="yes"
37854
37855 else $as_nop
37856
37857       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37858 printf "%s\n" "no" >&6; }
37859       tst_proto_gethostbyname_r="no"
37860
37861 fi
37862 rm -rf conftest*
37863
37864   fi
37865   #
37866   if test "$tst_proto_gethostbyname_r" = "yes"; then
37867     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37868       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37869 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37870       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37871 /* end confdefs.h.  */
37872
37873
37874           $curl_includes_netdb
37875           $curl_includes_bsdsocket
37876
37877 int main (void)
37878 {
37879
37880           if(0 != gethostbyname_r(0, 0, 0))
37881             return 1;
37882
37883  ;
37884  return 0;
37885 }
37886
37887 _ACEOF
37888 if ac_fn_c_try_compile "$LINENO"
37889 then :
37890
37891         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37892 printf "%s\n" "yes" >&6; }
37893         tst_compi_gethostbyname_r="yes"
37894         tst_nargs_gethostbyname_r="3"
37895
37896 else $as_nop
37897
37898         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37899 printf "%s\n" "no" >&6; }
37900         tst_compi_gethostbyname_r="no"
37901
37902 fi
37903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37904     fi
37905     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37906       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37907 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37909 /* end confdefs.h.  */
37910
37911
37912           $curl_includes_netdb
37913           $curl_includes_bsdsocket
37914
37915 int main (void)
37916 {
37917
37918           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37919             return 1;
37920
37921  ;
37922  return 0;
37923 }
37924
37925 _ACEOF
37926 if ac_fn_c_try_compile "$LINENO"
37927 then :
37928
37929         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37930 printf "%s\n" "yes" >&6; }
37931         tst_compi_gethostbyname_r="yes"
37932         tst_nargs_gethostbyname_r="5"
37933
37934 else $as_nop
37935
37936         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37937 printf "%s\n" "no" >&6; }
37938         tst_compi_gethostbyname_r="no"
37939
37940 fi
37941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37942     fi
37943     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37944       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37945 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37946       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947 /* end confdefs.h.  */
37948
37949
37950           $curl_includes_netdb
37951           $curl_includes_bsdsocket
37952
37953 int main (void)
37954 {
37955
37956           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37957             return 1;
37958
37959  ;
37960  return 0;
37961 }
37962
37963 _ACEOF
37964 if ac_fn_c_try_compile "$LINENO"
37965 then :
37966
37967         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37968 printf "%s\n" "yes" >&6; }
37969         tst_compi_gethostbyname_r="yes"
37970         tst_nargs_gethostbyname_r="6"
37971
37972 else $as_nop
37973
37974         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37975 printf "%s\n" "no" >&6; }
37976         tst_compi_gethostbyname_r="no"
37977
37978 fi
37979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37980     fi
37981     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37982 printf %s "checking if gethostbyname_r is compilable... " >&6; }
37983     if test "$tst_compi_gethostbyname_r" = "yes"; then
37984       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37985 printf "%s\n" "yes" >&6; }
37986     else
37987       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37988 printf "%s\n" "no" >&6; }
37989     fi
37990   fi
37991   #
37992   if test "$tst_compi_gethostbyname_r" = "yes"; then
37993     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37994 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37995     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37996       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37997 printf "%s\n" "yes" >&6; }
37998       tst_allow_gethostbyname_r="yes"
37999     else
38000       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001 printf "%s\n" "no" >&6; }
38002       tst_allow_gethostbyname_r="no"
38003     fi
38004   fi
38005   #
38006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38007 printf %s "checking if gethostbyname_r might be used... " >&6; }
38008   if test "$tst_links_gethostbyname_r" = "yes" &&
38009      test "$tst_proto_gethostbyname_r" = "yes" &&
38010      test "$tst_compi_gethostbyname_r" = "yes" &&
38011      test "$tst_allow_gethostbyname_r" = "yes"; then
38012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38013 printf "%s\n" "yes" >&6; }
38014
38015 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38016
38017             #
38018     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38019
38020 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38021
38022     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38023
38024 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38025
38026     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38027
38028 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38029
38030     fi
38031     #
38032     curl_cv_func_gethostbyname_r="yes"
38033   else
38034     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38035 printf "%s\n" "no" >&6; }
38036     curl_cv_func_gethostbyname_r="no"
38037   fi
38038
38039
38040 curl_preprocess_callconv="\
38041 /* preprocess start */
38042 #ifdef HAVE_WINDOWS_H
38043 #  define FUNCALLCONV __stdcall
38044 #else
38045 #  define FUNCALLCONV
38046 #endif
38047 /* preprocess end */"
38048
38049
38050           #
38051   tst_links_gethostname="unknown"
38052   tst_proto_gethostname="unknown"
38053   tst_compi_gethostname="unknown"
38054   tst_allow_gethostname="unknown"
38055   #
38056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38057 printf %s "checking if gethostname can be linked... " >&6; }
38058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38059 /* end confdefs.h.  */
38060
38061
38062       $curl_includes_winsock2
38063       $curl_includes_unistd
38064       $curl_includes_bsdsocket
38065
38066 int main (void)
38067 {
38068
38069       if(0 != gethostname(0, 0))
38070         return 1;
38071
38072  ;
38073  return 0;
38074 }
38075
38076 _ACEOF
38077 if ac_fn_c_try_link "$LINENO"
38078 then :
38079
38080     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38081 printf "%s\n" "yes" >&6; }
38082     tst_links_gethostname="yes"
38083
38084 else $as_nop
38085
38086     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38087 printf "%s\n" "no" >&6; }
38088     tst_links_gethostname="no"
38089
38090 fi
38091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38092     conftest$ac_exeext conftest.$ac_ext
38093   #
38094   if test "$tst_links_gethostname" = "yes"; then
38095     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38096 printf %s "checking if gethostname is prototyped... " >&6; }
38097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098 /* end confdefs.h.  */
38099
38100       $curl_includes_winsock2
38101       $curl_includes_unistd
38102       $curl_includes_bsdsocket
38103
38104 _ACEOF
38105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38106   $EGREP "gethostname" >/dev/null 2>&1
38107 then :
38108
38109       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38110 printf "%s\n" "yes" >&6; }
38111       tst_proto_gethostname="yes"
38112
38113 else $as_nop
38114
38115       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38116 printf "%s\n" "no" >&6; }
38117       tst_proto_gethostname="no"
38118
38119 fi
38120 rm -rf conftest*
38121
38122   fi
38123   #
38124   if test "$tst_proto_gethostname" = "yes"; then
38125     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38126 printf %s "checking if gethostname is compilable... " >&6; }
38127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38128 /* end confdefs.h.  */
38129
38130
38131         $curl_includes_winsock2
38132         $curl_includes_unistd
38133         $curl_includes_bsdsocket
38134
38135 int main (void)
38136 {
38137
38138         if(0 != gethostname(0, 0))
38139           return 1;
38140
38141  ;
38142  return 0;
38143 }
38144
38145 _ACEOF
38146 if ac_fn_c_try_compile "$LINENO"
38147 then :
38148
38149       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38150 printf "%s\n" "yes" >&6; }
38151       tst_compi_gethostname="yes"
38152
38153 else $as_nop
38154
38155       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38156 printf "%s\n" "no" >&6; }
38157       tst_compi_gethostname="no"
38158
38159 fi
38160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38161   fi
38162   #
38163   if test "$tst_compi_gethostname" = "yes"; then
38164     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38165 printf %s "checking for gethostname arg 2 data type... " >&6; }
38166     tst_gethostname_type_arg2="unknown"
38167     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38168       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38169         if test "$tst_gethostname_type_arg2" = "unknown"; then
38170           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38171 /* end confdefs.h.  */
38172
38173
38174               $curl_includes_winsock2
38175               $curl_includes_unistd
38176               $curl_includes_bsdsocket
38177               $curl_preprocess_callconv
38178               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38179
38180 int main (void)
38181 {
38182
38183               if(0 != gethostname(0, 0))
38184                 return 1;
38185
38186  ;
38187  return 0;
38188 }
38189
38190 _ACEOF
38191 if ac_fn_c_try_compile "$LINENO"
38192 then :
38193
38194             tst_gethostname_type_arg2="$tst_arg2"
38195
38196 fi
38197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38198         fi
38199       done
38200     done
38201     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38202 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38203     if test "$tst_gethostname_type_arg2" != "unknown"; then
38204
38205 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38206
38207     fi
38208   fi
38209   #
38210   if test "$tst_compi_gethostname" = "yes"; then
38211     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38212 printf %s "checking if gethostname usage allowed... " >&6; }
38213     if test "x$curl_disallow_gethostname" != "xyes"; then
38214       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38215 printf "%s\n" "yes" >&6; }
38216       tst_allow_gethostname="yes"
38217     else
38218       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 printf "%s\n" "no" >&6; }
38220       tst_allow_gethostname="no"
38221     fi
38222   fi
38223   #
38224   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38225 printf %s "checking if gethostname might be used... " >&6; }
38226   if test "$tst_links_gethostname" = "yes" &&
38227      test "$tst_proto_gethostname" = "yes" &&
38228      test "$tst_compi_gethostname" = "yes" &&
38229      test "$tst_allow_gethostname" = "yes"; then
38230     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38231 printf "%s\n" "yes" >&6; }
38232
38233 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38234
38235     curl_cv_func_gethostname="yes"
38236   else
38237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 printf "%s\n" "no" >&6; }
38239     curl_cv_func_gethostname="no"
38240   fi
38241
38242
38243           #
38244   tst_links_getpeername="unknown"
38245   tst_proto_getpeername="unknown"
38246   tst_compi_getpeername="unknown"
38247   tst_allow_getpeername="unknown"
38248   #
38249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38250 printf %s "checking if getpeername can be linked... " >&6; }
38251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38252 /* end confdefs.h.  */
38253
38254
38255       $curl_includes_winsock2
38256       $curl_includes_bsdsocket
38257       $curl_includes_sys_socket
38258
38259 int main (void)
38260 {
38261
38262       if(0 != getpeername(0, (void *)0, (void *)0))
38263         return 1;
38264
38265  ;
38266  return 0;
38267 }
38268
38269 _ACEOF
38270 if ac_fn_c_try_link "$LINENO"
38271 then :
38272
38273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38274 printf "%s\n" "yes" >&6; }
38275     tst_links_getpeername="yes"
38276
38277 else $as_nop
38278
38279     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38280 printf "%s\n" "no" >&6; }
38281     tst_links_getpeername="no"
38282
38283 fi
38284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38285     conftest$ac_exeext conftest.$ac_ext
38286   #
38287   if test "$tst_links_getpeername" = "yes"; then
38288     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38289 printf %s "checking if getpeername is prototyped... " >&6; }
38290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38291 /* end confdefs.h.  */
38292
38293       $curl_includes_winsock2
38294       $curl_includes_bsdsocket
38295       $curl_includes_sys_socket
38296
38297 _ACEOF
38298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38299   $EGREP "getpeername" >/dev/null 2>&1
38300 then :
38301
38302       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38303 printf "%s\n" "yes" >&6; }
38304       tst_proto_getpeername="yes"
38305
38306 else $as_nop
38307
38308       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38309 printf "%s\n" "no" >&6; }
38310       tst_proto_getpeername="no"
38311
38312 fi
38313 rm -rf conftest*
38314
38315   fi
38316   #
38317   if test "$tst_proto_getpeername" = "yes"; then
38318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38319 printf %s "checking if getpeername is compilable... " >&6; }
38320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38321 /* end confdefs.h.  */
38322
38323
38324         $curl_includes_winsock2
38325         $curl_includes_bsdsocket
38326         $curl_includes_sys_socket
38327
38328 int main (void)
38329 {
38330
38331         if(0 != getpeername(0, (void *)0, (void *)0))
38332           return 1;
38333
38334  ;
38335  return 0;
38336 }
38337
38338 _ACEOF
38339 if ac_fn_c_try_compile "$LINENO"
38340 then :
38341
38342       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38343 printf "%s\n" "yes" >&6; }
38344       tst_compi_getpeername="yes"
38345
38346 else $as_nop
38347
38348       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38349 printf "%s\n" "no" >&6; }
38350       tst_compi_getpeername="no"
38351
38352 fi
38353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38354   fi
38355   #
38356   if test "$tst_compi_getpeername" = "yes"; then
38357     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38358 printf %s "checking if getpeername usage allowed... " >&6; }
38359     if test "x$curl_disallow_getpeername" != "xyes"; then
38360       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38361 printf "%s\n" "yes" >&6; }
38362       tst_allow_getpeername="yes"
38363     else
38364       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38365 printf "%s\n" "no" >&6; }
38366       tst_allow_getpeername="no"
38367     fi
38368   fi
38369   #
38370   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38371 printf %s "checking if getpeername might be used... " >&6; }
38372   if test "$tst_links_getpeername" = "yes" &&
38373      test "$tst_proto_getpeername" = "yes" &&
38374      test "$tst_compi_getpeername" = "yes" &&
38375      test "$tst_allow_getpeername" = "yes"; then
38376     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38377 printf "%s\n" "yes" >&6; }
38378
38379 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38380
38381     curl_cv_func_getpeername="yes"
38382   else
38383     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38384 printf "%s\n" "no" >&6; }
38385     curl_cv_func_getpeername="no"
38386   fi
38387
38388
38389           #
38390   tst_links_getsockname="unknown"
38391   tst_proto_getsockname="unknown"
38392   tst_compi_getsockname="unknown"
38393   tst_allow_getsockname="unknown"
38394   #
38395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38396 printf %s "checking if getsockname can be linked... " >&6; }
38397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38398 /* end confdefs.h.  */
38399
38400
38401       $curl_includes_winsock2
38402       $curl_includes_bsdsocket
38403       $curl_includes_sys_socket
38404
38405 int main (void)
38406 {
38407
38408       if(0 != getsockname(0, (void *)0, (void *)0))
38409         return 1;
38410
38411  ;
38412  return 0;
38413 }
38414
38415 _ACEOF
38416 if ac_fn_c_try_link "$LINENO"
38417 then :
38418
38419     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38420 printf "%s\n" "yes" >&6; }
38421     tst_links_getsockname="yes"
38422
38423 else $as_nop
38424
38425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38426 printf "%s\n" "no" >&6; }
38427     tst_links_getsockname="no"
38428
38429 fi
38430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38431     conftest$ac_exeext conftest.$ac_ext
38432   #
38433   if test "$tst_links_getsockname" = "yes"; then
38434     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38435 printf %s "checking if getsockname is prototyped... " >&6; }
38436     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38437 /* end confdefs.h.  */
38438
38439       $curl_includes_winsock2
38440       $curl_includes_bsdsocket
38441       $curl_includes_sys_socket
38442
38443 _ACEOF
38444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38445   $EGREP "getsockname" >/dev/null 2>&1
38446 then :
38447
38448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38449 printf "%s\n" "yes" >&6; }
38450       tst_proto_getsockname="yes"
38451
38452 else $as_nop
38453
38454       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38455 printf "%s\n" "no" >&6; }
38456       tst_proto_getsockname="no"
38457
38458 fi
38459 rm -rf conftest*
38460
38461   fi
38462   #
38463   if test "$tst_proto_getsockname" = "yes"; then
38464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38465 printf %s "checking if getsockname is compilable... " >&6; }
38466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38467 /* end confdefs.h.  */
38468
38469
38470         $curl_includes_winsock2
38471         $curl_includes_bsdsocket
38472         $curl_includes_sys_socket
38473
38474 int main (void)
38475 {
38476
38477         if(0 != getsockname(0, (void *)0, (void *)0))
38478           return 1;
38479
38480  ;
38481  return 0;
38482 }
38483
38484 _ACEOF
38485 if ac_fn_c_try_compile "$LINENO"
38486 then :
38487
38488       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38489 printf "%s\n" "yes" >&6; }
38490       tst_compi_getsockname="yes"
38491
38492 else $as_nop
38493
38494       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38495 printf "%s\n" "no" >&6; }
38496       tst_compi_getsockname="no"
38497
38498 fi
38499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38500   fi
38501   #
38502   if test "$tst_compi_getsockname" = "yes"; then
38503     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38504 printf %s "checking if getsockname usage allowed... " >&6; }
38505     if test "x$curl_disallow_getsockname" != "xyes"; then
38506       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38507 printf "%s\n" "yes" >&6; }
38508       tst_allow_getsockname="yes"
38509     else
38510       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38511 printf "%s\n" "no" >&6; }
38512       tst_allow_getsockname="no"
38513     fi
38514   fi
38515   #
38516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38517 printf %s "checking if getsockname might be used... " >&6; }
38518   if test "$tst_links_getsockname" = "yes" &&
38519      test "$tst_proto_getsockname" = "yes" &&
38520      test "$tst_compi_getsockname" = "yes" &&
38521      test "$tst_allow_getsockname" = "yes"; then
38522     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38523 printf "%s\n" "yes" >&6; }
38524
38525 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38526
38527     curl_cv_func_getsockname="yes"
38528   else
38529     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38530 printf "%s\n" "no" >&6; }
38531     curl_cv_func_getsockname="no"
38532   fi
38533
38534
38535 curl_includes_netif="\
38536 /* includes start */
38537 #ifdef HAVE_NET_IF_H
38538 #  include <net/if.h>
38539 #endif
38540 /* includes end */"
38541   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38542 "
38543 if test "x$ac_cv_header_net_if_h" = xyes
38544 then :
38545   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38546
38547 fi
38548
38549
38550
38551         #
38552   tst_links_if_nametoindex="unknown"
38553   tst_proto_if_nametoindex="unknown"
38554   tst_compi_if_nametoindex="unknown"
38555   tst_allow_if_nametoindex="unknown"
38556   #
38557   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38558 printf %s "checking if if_nametoindex can be linked... " >&6; }
38559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38560 /* end confdefs.h.  */
38561
38562
38563       $curl_includes_winsock2
38564       $curl_includes_bsdsocket
38565       #include <net/if.h>
38566
38567 int main (void)
38568 {
38569
38570       if(0 != if_nametoindex(""))
38571         return 1;
38572
38573  ;
38574  return 0;
38575 }
38576
38577 _ACEOF
38578 if ac_fn_c_try_link "$LINENO"
38579 then :
38580
38581     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38582 printf "%s\n" "yes" >&6; }
38583     tst_links_if_nametoindex="yes"
38584
38585 else $as_nop
38586
38587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38588 printf "%s\n" "no" >&6; }
38589     tst_links_if_nametoindex="no"
38590
38591 fi
38592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38593     conftest$ac_exeext conftest.$ac_ext
38594   #
38595   if test "$tst_links_if_nametoindex" = "yes"; then
38596     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38597 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38599 /* end confdefs.h.  */
38600
38601       $curl_includes_winsock2
38602       $curl_includes_netif
38603
38604 _ACEOF
38605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38606   $EGREP "if_nametoindex" >/dev/null 2>&1
38607 then :
38608
38609       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38610 printf "%s\n" "yes" >&6; }
38611       tst_proto_if_nametoindex="yes"
38612
38613 else $as_nop
38614
38615       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38616 printf "%s\n" "no" >&6; }
38617       tst_proto_if_nametoindex="no"
38618
38619 fi
38620 rm -rf conftest*
38621
38622   fi
38623   #
38624   if test "$tst_proto_if_nametoindex" = "yes"; then
38625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38626 printf %s "checking if if_nametoindex is compilable... " >&6; }
38627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38628 /* end confdefs.h.  */
38629
38630
38631         $curl_includes_winsock2
38632         $curl_includes_netif
38633
38634 int main (void)
38635 {
38636
38637         if(0 != if_nametoindex(""))
38638           return 1;
38639
38640  ;
38641  return 0;
38642 }
38643
38644 _ACEOF
38645 if ac_fn_c_try_compile "$LINENO"
38646 then :
38647
38648       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38649 printf "%s\n" "yes" >&6; }
38650       tst_compi_if_nametoindex="yes"
38651
38652 else $as_nop
38653
38654       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38655 printf "%s\n" "no" >&6; }
38656       tst_compi_if_nametoindex="no"
38657
38658 fi
38659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38660   fi
38661   #
38662   if test "$tst_compi_if_nametoindex" = "yes"; then
38663     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38664 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38665     if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38666       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38667 printf "%s\n" "yes" >&6; }
38668       tst_allow_if_nametoindex="yes"
38669     else
38670       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38671 printf "%s\n" "no" >&6; }
38672       tst_allow_if_nametoindex="no"
38673     fi
38674   fi
38675   #
38676   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38677 printf %s "checking if if_nametoindex might be used... " >&6; }
38678   if test "$tst_links_if_nametoindex" = "yes" &&
38679      test "$tst_proto_if_nametoindex" = "yes" &&
38680      test "$tst_compi_if_nametoindex" = "yes" &&
38681      test "$tst_allow_if_nametoindex" = "yes"; then
38682     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38683 printf "%s\n" "yes" >&6; }
38684
38685 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38686
38687     curl_cv_func_if_nametoindex="yes"
38688   else
38689     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690 printf "%s\n" "no" >&6; }
38691     curl_cv_func_if_nametoindex="no"
38692   fi
38693
38694
38695 curl_includes_ifaddrs="\
38696 /* includes start */
38697 #ifdef HAVE_SYS_TYPES_H
38698 #  include <sys/types.h>
38699 #endif
38700 #ifdef HAVE_SYS_SOCKET_H
38701 #  include <sys/socket.h>
38702 #endif
38703 #ifdef HAVE_NETINET_IN_H
38704 #  include <netinet/in.h>
38705 #endif
38706 #ifdef HAVE_IFADDRS_H
38707 #  include <ifaddrs.h>
38708 #endif
38709 /* includes end */"
38710   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38711 "
38712 if test "x$ac_cv_header_sys_types_h" = xyes
38713 then :
38714   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38715
38716 fi
38717 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38718 "
38719 if test "x$ac_cv_header_sys_socket_h" = xyes
38720 then :
38721   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38722
38723 fi
38724 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38725 "
38726 if test "x$ac_cv_header_netinet_in_h" = xyes
38727 then :
38728   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38729
38730 fi
38731 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38732 "
38733 if test "x$ac_cv_header_ifaddrs_h" = xyes
38734 then :
38735   printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38736
38737 fi
38738
38739
38740
38741       #
38742   tst_links_getifaddrs="unknown"
38743   tst_proto_getifaddrs="unknown"
38744   tst_compi_getifaddrs="unknown"
38745   tst_works_getifaddrs="unknown"
38746   tst_allow_getifaddrs="unknown"
38747   #
38748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38749 printf %s "checking if getifaddrs can be linked... " >&6; }
38750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38751 /* end confdefs.h.  */
38752
38753
38754 #define getifaddrs innocuous_getifaddrs
38755 #ifdef __STDC__
38756 # include <limits.h>
38757 #else
38758 # include <assert.h>
38759 #endif
38760 #undef getifaddrs
38761 #ifdef __cplusplus
38762 extern "C"
38763 #endif
38764 char getifaddrs ();
38765 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38766 choke me
38767 #endif
38768
38769 int main (void)
38770 {
38771 return getifaddrs ();
38772  ;
38773  return 0;
38774 }
38775
38776 _ACEOF
38777 if ac_fn_c_try_link "$LINENO"
38778 then :
38779
38780     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38781 printf "%s\n" "yes" >&6; }
38782     tst_links_getifaddrs="yes"
38783
38784 else $as_nop
38785
38786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38787 printf "%s\n" "no" >&6; }
38788     tst_links_getifaddrs="no"
38789
38790 fi
38791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38792     conftest$ac_exeext conftest.$ac_ext
38793   #
38794   if test "$tst_links_getifaddrs" = "yes"; then
38795     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38796 printf %s "checking if getifaddrs is prototyped... " >&6; }
38797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38798 /* end confdefs.h.  */
38799
38800       $curl_includes_ifaddrs
38801
38802 _ACEOF
38803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38804   $EGREP "getifaddrs" >/dev/null 2>&1
38805 then :
38806
38807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38808 printf "%s\n" "yes" >&6; }
38809       tst_proto_getifaddrs="yes"
38810
38811 else $as_nop
38812
38813       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38814 printf "%s\n" "no" >&6; }
38815       tst_proto_getifaddrs="no"
38816
38817 fi
38818 rm -rf conftest*
38819
38820   fi
38821   #
38822   if test "$tst_proto_getifaddrs" = "yes"; then
38823     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38824 printf %s "checking if getifaddrs is compilable... " >&6; }
38825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38826 /* end confdefs.h.  */
38827
38828
38829         $curl_includes_ifaddrs
38830
38831 int main (void)
38832 {
38833
38834         if(0 != getifaddrs(0))
38835           return 1;
38836
38837  ;
38838  return 0;
38839 }
38840
38841 _ACEOF
38842 if ac_fn_c_try_compile "$LINENO"
38843 then :
38844
38845       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38846 printf "%s\n" "yes" >&6; }
38847       tst_compi_getifaddrs="yes"
38848
38849 else $as_nop
38850
38851       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38852 printf "%s\n" "no" >&6; }
38853       tst_compi_getifaddrs="no"
38854
38855 fi
38856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38857   fi
38858   #
38859     if test "x$cross_compiling" != "xyes" &&
38860     test "$tst_compi_getifaddrs" = "yes"; then
38861     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38862 printf %s "checking if getifaddrs seems to work... " >&6; }
38863
38864    case $host_os in
38865      darwin*)
38866       if test "$cross_compiling" = yes
38867 then :
38868   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38870 as_fn_error $? "cannot run test program while cross compiling
38871 See \`config.log' for more details" "$LINENO" 5; }
38872 else $as_nop
38873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38874 /* end confdefs.h.  */
38875
38876
38877         $curl_includes_stdlib
38878         $curl_includes_ifaddrs
38879
38880 int main (void)
38881 {
38882
38883         struct ifaddrs *ifa = 0;
38884         int error;
38885
38886         error = getifaddrs(&ifa);
38887         if(error || !ifa)
38888           exit(1); /* fail */
38889         else
38890           exit(0);
38891
38892  ;
38893  return 0;
38894 }
38895
38896 _ACEOF
38897 if ac_fn_c_try_run "$LINENO"
38898 then :
38899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38900 printf "%s\n" "yes" >&6; }
38901       tst_works_getifaddrs="yes"
38902
38903 else $as_nop
38904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38905 printf "%s\n" "no" >&6; }
38906       tst_works_getifaddrs="no"
38907
38908 fi
38909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38910   conftest.$ac_objext conftest.beam conftest.$ac_ext
38911 fi
38912
38913      ;;
38914      *)
38915       oldcc=$CC
38916       old=$LD_LIBRARY_PATH
38917       CC="sh ./run-compiler"
38918       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38919       export LD_LIBRARY_PATH
38920       if test "$cross_compiling" = yes
38921 then :
38922   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38924 as_fn_error $? "cannot run test program while cross compiling
38925 See \`config.log' for more details" "$LINENO" 5; }
38926 else $as_nop
38927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38928 /* end confdefs.h.  */
38929
38930
38931         $curl_includes_stdlib
38932         $curl_includes_ifaddrs
38933
38934 int main (void)
38935 {
38936
38937         struct ifaddrs *ifa = 0;
38938         int error;
38939
38940         error = getifaddrs(&ifa);
38941         if(error || !ifa)
38942           exit(1); /* fail */
38943         else
38944           exit(0);
38945
38946  ;
38947  return 0;
38948 }
38949
38950 _ACEOF
38951 if ac_fn_c_try_run "$LINENO"
38952 then :
38953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38954 printf "%s\n" "yes" >&6; }
38955       tst_works_getifaddrs="yes"
38956
38957 else $as_nop
38958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38959 printf "%s\n" "no" >&6; }
38960       tst_works_getifaddrs="no"
38961
38962 fi
38963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38964   conftest.$ac_objext conftest.beam conftest.$ac_ext
38965 fi
38966
38967       LD_LIBRARY_PATH=$old # restore
38968       CC=$oldcc
38969      ;;
38970    esac
38971
38972   fi
38973   #
38974   if test "$tst_compi_getifaddrs" = "yes" &&
38975     test "$tst_works_getifaddrs" != "no"; then
38976     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38977 printf %s "checking if getifaddrs usage allowed... " >&6; }
38978     if test "x$curl_disallow_getifaddrs" != "xyes"; then
38979       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38980 printf "%s\n" "yes" >&6; }
38981       tst_allow_getifaddrs="yes"
38982     else
38983       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38984 printf "%s\n" "no" >&6; }
38985       tst_allow_getifaddrs="no"
38986     fi
38987   fi
38988   #
38989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38990 printf %s "checking if getifaddrs might be used... " >&6; }
38991   if test "$tst_links_getifaddrs" = "yes" &&
38992      test "$tst_proto_getifaddrs" = "yes" &&
38993      test "$tst_compi_getifaddrs" = "yes" &&
38994      test "$tst_allow_getifaddrs" = "yes" &&
38995      test "$tst_works_getifaddrs" != "no"; then
38996     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38997 printf "%s\n" "yes" >&6; }
38998
38999 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39000
39001     curl_cv_func_getifaddrs="yes"
39002   else
39003     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39004 printf "%s\n" "no" >&6; }
39005     curl_cv_func_getifaddrs="no"
39006   fi
39007
39008
39009 curl_includes_time="\
39010 /* includes start */
39011 #ifdef HAVE_SYS_TYPES_H
39012 #  include <sys/types.h>
39013 #endif
39014 #ifdef HAVE_SYS_TIME_H
39015 #  include <sys/time.h>
39016 #endif
39017 #include <time.h>
39018 /* includes end */"
39019   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39020 "
39021 if test "x$ac_cv_header_sys_types_h" = xyes
39022 then :
39023   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39024
39025 fi
39026 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39027 "
39028 if test "x$ac_cv_header_sys_time_h" = xyes
39029 then :
39030   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39031
39032 fi
39033
39034
39035
39036       #
39037   tst_links_gmtime_r="unknown"
39038   tst_proto_gmtime_r="unknown"
39039   tst_compi_gmtime_r="unknown"
39040   tst_works_gmtime_r="unknown"
39041   tst_allow_gmtime_r="unknown"
39042   #
39043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39044 printf %s "checking if gmtime_r can be linked... " >&6; }
39045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39046 /* end confdefs.h.  */
39047
39048
39049 #define gmtime_r innocuous_gmtime_r
39050 #ifdef __STDC__
39051 # include <limits.h>
39052 #else
39053 # include <assert.h>
39054 #endif
39055 #undef gmtime_r
39056 #ifdef __cplusplus
39057 extern "C"
39058 #endif
39059 char gmtime_r ();
39060 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39061 choke me
39062 #endif
39063
39064 int main (void)
39065 {
39066 return gmtime_r ();
39067  ;
39068  return 0;
39069 }
39070
39071 _ACEOF
39072 if ac_fn_c_try_link "$LINENO"
39073 then :
39074
39075     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39076 printf "%s\n" "yes" >&6; }
39077     tst_links_gmtime_r="yes"
39078
39079 else $as_nop
39080
39081     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39082 printf "%s\n" "no" >&6; }
39083     tst_links_gmtime_r="no"
39084
39085 fi
39086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39087     conftest$ac_exeext conftest.$ac_ext
39088   #
39089   if test "$tst_links_gmtime_r" = "yes"; then
39090     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39091 printf %s "checking if gmtime_r is prototyped... " >&6; }
39092     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39093 /* end confdefs.h.  */
39094
39095       $curl_includes_time
39096
39097 _ACEOF
39098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39099   $EGREP "gmtime_r" >/dev/null 2>&1
39100 then :
39101
39102       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39103 printf "%s\n" "yes" >&6; }
39104       tst_proto_gmtime_r="yes"
39105
39106 else $as_nop
39107
39108       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39109 printf "%s\n" "no" >&6; }
39110       tst_proto_gmtime_r="no"
39111
39112 fi
39113 rm -rf conftest*
39114
39115   fi
39116   #
39117   if test "$tst_proto_gmtime_r" = "yes"; then
39118     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39119 printf %s "checking if gmtime_r is compilable... " >&6; }
39120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39121 /* end confdefs.h.  */
39122
39123
39124         $curl_includes_time
39125
39126 int main (void)
39127 {
39128
39129         if(0 != gmtime_r(0, 0))
39130           return 1;
39131
39132  ;
39133  return 0;
39134 }
39135
39136 _ACEOF
39137 if ac_fn_c_try_compile "$LINENO"
39138 then :
39139
39140       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39141 printf "%s\n" "yes" >&6; }
39142       tst_compi_gmtime_r="yes"
39143
39144 else $as_nop
39145
39146       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39147 printf "%s\n" "no" >&6; }
39148       tst_compi_gmtime_r="no"
39149
39150 fi
39151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39152   fi
39153   #
39154     if test "x$cross_compiling" != "xyes" &&
39155     test "$tst_compi_gmtime_r" = "yes"; then
39156     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39157 printf %s "checking if gmtime_r seems to work... " >&6; }
39158
39159    case $host_os in
39160      darwin*)
39161       if test "$cross_compiling" = yes
39162 then :
39163   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39164 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39165 as_fn_error $? "cannot run test program while cross compiling
39166 See \`config.log' for more details" "$LINENO" 5; }
39167 else $as_nop
39168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h.  */
39170
39171
39172         $curl_includes_stdlib
39173         $curl_includes_time
39174
39175 int main (void)
39176 {
39177
39178         time_t local = 1170352587;
39179         struct tm *gmt = 0;
39180         struct tm result;
39181         gmt = gmtime_r(&local, &result);
39182         if(gmt)
39183           exit(0);
39184         else
39185           exit(1);
39186
39187  ;
39188  return 0;
39189 }
39190
39191 _ACEOF
39192 if ac_fn_c_try_run "$LINENO"
39193 then :
39194   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39195 printf "%s\n" "yes" >&6; }
39196       tst_works_gmtime_r="yes"
39197
39198 else $as_nop
39199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39200 printf "%s\n" "no" >&6; }
39201       tst_works_gmtime_r="no"
39202
39203 fi
39204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39205   conftest.$ac_objext conftest.beam conftest.$ac_ext
39206 fi
39207
39208      ;;
39209      *)
39210       oldcc=$CC
39211       old=$LD_LIBRARY_PATH
39212       CC="sh ./run-compiler"
39213       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39214       export LD_LIBRARY_PATH
39215       if test "$cross_compiling" = yes
39216 then :
39217   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39218 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39219 as_fn_error $? "cannot run test program while cross compiling
39220 See \`config.log' for more details" "$LINENO" 5; }
39221 else $as_nop
39222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39223 /* end confdefs.h.  */
39224
39225
39226         $curl_includes_stdlib
39227         $curl_includes_time
39228
39229 int main (void)
39230 {
39231
39232         time_t local = 1170352587;
39233         struct tm *gmt = 0;
39234         struct tm result;
39235         gmt = gmtime_r(&local, &result);
39236         if(gmt)
39237           exit(0);
39238         else
39239           exit(1);
39240
39241  ;
39242  return 0;
39243 }
39244
39245 _ACEOF
39246 if ac_fn_c_try_run "$LINENO"
39247 then :
39248   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39249 printf "%s\n" "yes" >&6; }
39250       tst_works_gmtime_r="yes"
39251
39252 else $as_nop
39253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39254 printf "%s\n" "no" >&6; }
39255       tst_works_gmtime_r="no"
39256
39257 fi
39258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39259   conftest.$ac_objext conftest.beam conftest.$ac_ext
39260 fi
39261
39262       LD_LIBRARY_PATH=$old # restore
39263       CC=$oldcc
39264      ;;
39265    esac
39266
39267   fi
39268   #
39269   if test "$tst_compi_gmtime_r" = "yes" &&
39270     test "$tst_works_gmtime_r" != "no"; then
39271     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39272 printf %s "checking if gmtime_r usage allowed... " >&6; }
39273     if test "x$curl_disallow_gmtime_r" != "xyes"; then
39274       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39275 printf "%s\n" "yes" >&6; }
39276       tst_allow_gmtime_r="yes"
39277     else
39278       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39279 printf "%s\n" "no" >&6; }
39280       tst_allow_gmtime_r="no"
39281     fi
39282   fi
39283   #
39284   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39285 printf %s "checking if gmtime_r might be used... " >&6; }
39286   if test "$tst_links_gmtime_r" = "yes" &&
39287      test "$tst_proto_gmtime_r" = "yes" &&
39288      test "$tst_compi_gmtime_r" = "yes" &&
39289      test "$tst_allow_gmtime_r" = "yes" &&
39290      test "$tst_works_gmtime_r" != "no"; then
39291     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39292 printf "%s\n" "yes" >&6; }
39293
39294 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39295
39296     curl_cv_func_gmtime_r="yes"
39297   else
39298     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39299 printf "%s\n" "no" >&6; }
39300     curl_cv_func_gmtime_r="no"
39301   fi
39302
39303
39304 curl_includes_arpa_inet="\
39305 /* includes start */
39306 #ifdef HAVE_SYS_TYPES_H
39307 #  include <sys/types.h>
39308 #endif
39309 #ifdef HAVE_SYS_SOCKET_H
39310 #  include <sys/socket.h>
39311 #endif
39312 #ifdef HAVE_NETINET_IN_H
39313 #  include <netinet/in.h>
39314 #endif
39315 #ifdef HAVE_ARPA_INET_H
39316 #  include <arpa/inet.h>
39317 #endif
39318 #ifdef HAVE_WINSOCK2_H
39319 #include <winsock2.h>
39320 #include <ws2tcpip.h>
39321 #endif
39322 /* includes end */"
39323   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39324 "
39325 if test "x$ac_cv_header_sys_types_h" = xyes
39326 then :
39327   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39328
39329 fi
39330 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39331 "
39332 if test "x$ac_cv_header_sys_socket_h" = xyes
39333 then :
39334   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39335
39336 fi
39337 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39338 "
39339 if test "x$ac_cv_header_netinet_in_h" = xyes
39340 then :
39341   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39342
39343 fi
39344 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39345 "
39346 if test "x$ac_cv_header_arpa_inet_h" = xyes
39347 then :
39348   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39349
39350 fi
39351
39352
39353
39354         #
39355   tst_links_inet_ntop="unknown"
39356   tst_proto_inet_ntop="unknown"
39357   tst_compi_inet_ntop="unknown"
39358   tst_works_inet_ntop="unknown"
39359   tst_allow_inet_ntop="unknown"
39360   #
39361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39362 printf %s "checking if inet_ntop can be linked... " >&6; }
39363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39364 /* end confdefs.h.  */
39365
39366
39367 #define inet_ntop innocuous_inet_ntop
39368 #ifdef __STDC__
39369 # include <limits.h>
39370 #else
39371 # include <assert.h>
39372 #endif
39373 #undef inet_ntop
39374 #ifdef __cplusplus
39375 extern "C"
39376 #endif
39377 char inet_ntop ();
39378 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39379 choke me
39380 #endif
39381
39382 int main (void)
39383 {
39384 return inet_ntop ();
39385  ;
39386  return 0;
39387 }
39388
39389 _ACEOF
39390 if ac_fn_c_try_link "$LINENO"
39391 then :
39392
39393     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39394 printf "%s\n" "yes" >&6; }
39395     tst_links_inet_ntop="yes"
39396
39397 else $as_nop
39398
39399     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39400 printf "%s\n" "no" >&6; }
39401     tst_links_inet_ntop="no"
39402
39403 fi
39404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39405     conftest$ac_exeext conftest.$ac_ext
39406   #
39407   if test "$tst_links_inet_ntop" = "yes"; then
39408     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39409 printf %s "checking if inet_ntop is prototyped... " >&6; }
39410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39411 /* end confdefs.h.  */
39412
39413       $curl_includes_arpa_inet
39414
39415 _ACEOF
39416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39417   $EGREP "inet_ntop" >/dev/null 2>&1
39418 then :
39419
39420       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39421 printf "%s\n" "yes" >&6; }
39422       tst_proto_inet_ntop="yes"
39423
39424 else $as_nop
39425
39426       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39427 printf "%s\n" "no" >&6; }
39428       tst_proto_inet_ntop="no"
39429
39430 fi
39431 rm -rf conftest*
39432
39433   fi
39434   #
39435   if test "$tst_proto_inet_ntop" = "yes"; then
39436     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39437 printf %s "checking if inet_ntop is compilable... " >&6; }
39438     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39439 /* end confdefs.h.  */
39440
39441
39442         $curl_includes_arpa_inet
39443
39444 int main (void)
39445 {
39446
39447         if(0 != inet_ntop(0, 0, 0, 0))
39448           return 1;
39449
39450  ;
39451  return 0;
39452 }
39453
39454 _ACEOF
39455 if ac_fn_c_try_compile "$LINENO"
39456 then :
39457
39458       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39459 printf "%s\n" "yes" >&6; }
39460       tst_compi_inet_ntop="yes"
39461
39462 else $as_nop
39463
39464       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39465 printf "%s\n" "no" >&6; }
39466       tst_compi_inet_ntop="no"
39467
39468 fi
39469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39470   fi
39471   #
39472     if test "x$cross_compiling" != "xyes" &&
39473     test "$tst_compi_inet_ntop" = "yes"; then
39474     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39475 printf %s "checking if inet_ntop seems to work... " >&6; }
39476
39477    case $host_os in
39478      darwin*)
39479       if test "$cross_compiling" = yes
39480 then :
39481   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39482 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39483 as_fn_error $? "cannot run test program while cross compiling
39484 See \`config.log' for more details" "$LINENO" 5; }
39485 else $as_nop
39486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h.  */
39488
39489
39490         $curl_includes_stdlib
39491         $curl_includes_arpa_inet
39492         $curl_includes_string
39493
39494 int main (void)
39495 {
39496
39497         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39498         char ipv4res[sizeof "255.255.255.255"];
39499         unsigned char ipv6a[26];
39500         unsigned char ipv4a[5];
39501         char *ipv6ptr = 0;
39502         char *ipv4ptr = 0;
39503         /* - */
39504         ipv4res[0] = '\0';
39505         ipv4a[0] = 0xc0;
39506         ipv4a[1] = 0xa8;
39507         ipv4a[2] = 0x64;
39508         ipv4a[3] = 0x01;
39509         ipv4a[4] = 0x01;
39510         /* - */
39511         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39512         if(!ipv4ptr)
39513           exit(1); /* fail */
39514         if(ipv4ptr != ipv4res)
39515           exit(1); /* fail */
39516         if(!ipv4ptr[0])
39517           exit(1); /* fail */
39518         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39519           exit(1); /* fail */
39520         /* - */
39521         ipv6res[0] = '\0';
39522         memset(ipv6a, 0, sizeof(ipv6a));
39523         ipv6a[0] = 0xfe;
39524         ipv6a[1] = 0x80;
39525         ipv6a[8] = 0x02;
39526         ipv6a[9] = 0x14;
39527         ipv6a[10] = 0x4f;
39528         ipv6a[11] = 0xff;
39529         ipv6a[12] = 0xfe;
39530         ipv6a[13] = 0x0b;
39531         ipv6a[14] = 0x76;
39532         ipv6a[15] = 0xc8;
39533         ipv6a[25] = 0x01;
39534         /* - */
39535         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39536         if(!ipv6ptr)
39537           exit(1); /* fail */
39538         if(ipv6ptr != ipv6res)
39539           exit(1); /* fail */
39540         if(!ipv6ptr[0])
39541           exit(1); /* fail */
39542         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39543           exit(1); /* fail */
39544         /* - */
39545         exit(0);
39546
39547  ;
39548  return 0;
39549 }
39550
39551 _ACEOF
39552 if ac_fn_c_try_run "$LINENO"
39553 then :
39554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39555 printf "%s\n" "yes" >&6; }
39556       tst_works_inet_ntop="yes"
39557
39558 else $as_nop
39559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39560 printf "%s\n" "no" >&6; }
39561       tst_works_inet_ntop="no"
39562
39563 fi
39564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39565   conftest.$ac_objext conftest.beam conftest.$ac_ext
39566 fi
39567
39568      ;;
39569      *)
39570       oldcc=$CC
39571       old=$LD_LIBRARY_PATH
39572       CC="sh ./run-compiler"
39573       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39574       export LD_LIBRARY_PATH
39575       if test "$cross_compiling" = yes
39576 then :
39577   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39579 as_fn_error $? "cannot run test program while cross compiling
39580 See \`config.log' for more details" "$LINENO" 5; }
39581 else $as_nop
39582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39583 /* end confdefs.h.  */
39584
39585
39586         $curl_includes_stdlib
39587         $curl_includes_arpa_inet
39588         $curl_includes_string
39589
39590 int main (void)
39591 {
39592
39593         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39594         char ipv4res[sizeof "255.255.255.255"];
39595         unsigned char ipv6a[26];
39596         unsigned char ipv4a[5];
39597         char *ipv6ptr = 0;
39598         char *ipv4ptr = 0;
39599         /* - */
39600         ipv4res[0] = '\0';
39601         ipv4a[0] = 0xc0;
39602         ipv4a[1] = 0xa8;
39603         ipv4a[2] = 0x64;
39604         ipv4a[3] = 0x01;
39605         ipv4a[4] = 0x01;
39606         /* - */
39607         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39608         if(!ipv4ptr)
39609           exit(1); /* fail */
39610         if(ipv4ptr != ipv4res)
39611           exit(1); /* fail */
39612         if(!ipv4ptr[0])
39613           exit(1); /* fail */
39614         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39615           exit(1); /* fail */
39616         /* - */
39617         ipv6res[0] = '\0';
39618         memset(ipv6a, 0, sizeof(ipv6a));
39619         ipv6a[0] = 0xfe;
39620         ipv6a[1] = 0x80;
39621         ipv6a[8] = 0x02;
39622         ipv6a[9] = 0x14;
39623         ipv6a[10] = 0x4f;
39624         ipv6a[11] = 0xff;
39625         ipv6a[12] = 0xfe;
39626         ipv6a[13] = 0x0b;
39627         ipv6a[14] = 0x76;
39628         ipv6a[15] = 0xc8;
39629         ipv6a[25] = 0x01;
39630         /* - */
39631         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39632         if(!ipv6ptr)
39633           exit(1); /* fail */
39634         if(ipv6ptr != ipv6res)
39635           exit(1); /* fail */
39636         if(!ipv6ptr[0])
39637           exit(1); /* fail */
39638         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39639           exit(1); /* fail */
39640         /* - */
39641         exit(0);
39642
39643  ;
39644  return 0;
39645 }
39646
39647 _ACEOF
39648 if ac_fn_c_try_run "$LINENO"
39649 then :
39650   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39651 printf "%s\n" "yes" >&6; }
39652       tst_works_inet_ntop="yes"
39653
39654 else $as_nop
39655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656 printf "%s\n" "no" >&6; }
39657       tst_works_inet_ntop="no"
39658
39659 fi
39660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39661   conftest.$ac_objext conftest.beam conftest.$ac_ext
39662 fi
39663
39664       LD_LIBRARY_PATH=$old # restore
39665       CC=$oldcc
39666      ;;
39667    esac
39668
39669   fi
39670   #
39671   if test "$tst_compi_inet_ntop" = "yes" &&
39672     test "$tst_works_inet_ntop" != "no"; then
39673     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39674 printf %s "checking if inet_ntop usage allowed... " >&6; }
39675     if test "x$curl_disallow_inet_ntop" != "xyes"; then
39676       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39677 printf "%s\n" "yes" >&6; }
39678       tst_allow_inet_ntop="yes"
39679     else
39680       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39681 printf "%s\n" "no" >&6; }
39682       tst_allow_inet_ntop="no"
39683     fi
39684   fi
39685   #
39686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39687 printf %s "checking if inet_ntop might be used... " >&6; }
39688   if test "$tst_links_inet_ntop" = "yes" &&
39689      test "$tst_proto_inet_ntop" = "yes" &&
39690      test "$tst_compi_inet_ntop" = "yes" &&
39691      test "$tst_allow_inet_ntop" = "yes" &&
39692      test "$tst_works_inet_ntop" != "no"; then
39693     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39694 printf "%s\n" "yes" >&6; }
39695
39696 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39697
39698     curl_cv_func_inet_ntop="yes"
39699   else
39700     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39701 printf "%s\n" "no" >&6; }
39702     curl_cv_func_inet_ntop="no"
39703   fi
39704
39705
39706         #
39707   tst_links_inet_pton="unknown"
39708   tst_proto_inet_pton="unknown"
39709   tst_compi_inet_pton="unknown"
39710   tst_works_inet_pton="unknown"
39711   tst_allow_inet_pton="unknown"
39712   #
39713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39714 printf %s "checking if inet_pton can be linked... " >&6; }
39715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39716 /* end confdefs.h.  */
39717
39718
39719 #define inet_pton innocuous_inet_pton
39720 #ifdef __STDC__
39721 # include <limits.h>
39722 #else
39723 # include <assert.h>
39724 #endif
39725 #undef inet_pton
39726 #ifdef __cplusplus
39727 extern "C"
39728 #endif
39729 char inet_pton ();
39730 #if defined __stub_inet_pton || defined __stub___inet_pton
39731 choke me
39732 #endif
39733
39734 int main (void)
39735 {
39736 return inet_pton ();
39737  ;
39738  return 0;
39739 }
39740
39741 _ACEOF
39742 if ac_fn_c_try_link "$LINENO"
39743 then :
39744
39745     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39746 printf "%s\n" "yes" >&6; }
39747     tst_links_inet_pton="yes"
39748
39749 else $as_nop
39750
39751     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39752 printf "%s\n" "no" >&6; }
39753     tst_links_inet_pton="no"
39754
39755 fi
39756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39757     conftest$ac_exeext conftest.$ac_ext
39758   #
39759   if test "$tst_links_inet_pton" = "yes"; then
39760     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39761 printf %s "checking if inet_pton is prototyped... " >&6; }
39762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39763 /* end confdefs.h.  */
39764
39765       $curl_includes_arpa_inet
39766
39767 _ACEOF
39768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39769   $EGREP "inet_pton" >/dev/null 2>&1
39770 then :
39771
39772       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39773 printf "%s\n" "yes" >&6; }
39774       tst_proto_inet_pton="yes"
39775
39776 else $as_nop
39777
39778       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39779 printf "%s\n" "no" >&6; }
39780       tst_proto_inet_pton="no"
39781
39782 fi
39783 rm -rf conftest*
39784
39785   fi
39786   #
39787   if test "$tst_proto_inet_pton" = "yes"; then
39788     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39789 printf %s "checking if inet_pton is compilable... " >&6; }
39790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h.  */
39792
39793
39794         $curl_includes_arpa_inet
39795
39796 int main (void)
39797 {
39798
39799         if(0 != inet_pton(0, 0, 0))
39800           return 1;
39801
39802  ;
39803  return 0;
39804 }
39805
39806 _ACEOF
39807 if ac_fn_c_try_compile "$LINENO"
39808 then :
39809
39810       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39811 printf "%s\n" "yes" >&6; }
39812       tst_compi_inet_pton="yes"
39813
39814 else $as_nop
39815
39816       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39817 printf "%s\n" "no" >&6; }
39818       tst_compi_inet_pton="no"
39819
39820 fi
39821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39822   fi
39823   #
39824     if test "x$cross_compiling" != "xyes" &&
39825     test "$tst_compi_inet_pton" = "yes"; then
39826     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39827 printf %s "checking if inet_pton seems to work... " >&6; }
39828
39829    case $host_os in
39830      darwin*)
39831       if test "$cross_compiling" = yes
39832 then :
39833   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39834 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39835 as_fn_error $? "cannot run test program while cross compiling
39836 See \`config.log' for more details" "$LINENO" 5; }
39837 else $as_nop
39838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39839 /* end confdefs.h.  */
39840
39841
39842         $curl_includes_stdlib
39843         $curl_includes_arpa_inet
39844         $curl_includes_string
39845
39846 int main (void)
39847 {
39848
39849         unsigned char ipv6a[16+1];
39850         unsigned char ipv4a[4+1];
39851         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39852         const char *ipv4src = "192.168.100.1";
39853         /* - */
39854         memset(ipv4a, 1, sizeof(ipv4a));
39855         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39856           exit(1); /* fail */
39857         /* - */
39858         if( (ipv4a[0] != 0xc0) ||
39859             (ipv4a[1] != 0xa8) ||
39860             (ipv4a[2] != 0x64) ||
39861             (ipv4a[3] != 0x01) ||
39862             (ipv4a[4] != 0x01) )
39863           exit(1); /* fail */
39864         /* - */
39865         memset(ipv6a, 1, sizeof(ipv6a));
39866         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39867           exit(1); /* fail */
39868         /* - */
39869         if( (ipv6a[0]  != 0xfe) ||
39870             (ipv6a[1]  != 0x80) ||
39871             (ipv6a[8]  != 0x02) ||
39872             (ipv6a[9]  != 0x14) ||
39873             (ipv6a[10] != 0x4f) ||
39874             (ipv6a[11] != 0xff) ||
39875             (ipv6a[12] != 0xfe) ||
39876             (ipv6a[13] != 0x0b) ||
39877             (ipv6a[14] != 0x76) ||
39878             (ipv6a[15] != 0xc8) ||
39879             (ipv6a[16] != 0x01) )
39880           exit(1); /* fail */
39881         /* - */
39882         if( (ipv6a[2]  != 0x0) ||
39883             (ipv6a[3]  != 0x0) ||
39884             (ipv6a[4]  != 0x0) ||
39885             (ipv6a[5]  != 0x0) ||
39886             (ipv6a[6]  != 0x0) ||
39887             (ipv6a[7]  != 0x0) )
39888           exit(1); /* fail */
39889         /* - */
39890         exit(0);
39891
39892  ;
39893  return 0;
39894 }
39895
39896 _ACEOF
39897 if ac_fn_c_try_run "$LINENO"
39898 then :
39899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39900 printf "%s\n" "yes" >&6; }
39901       tst_works_inet_pton="yes"
39902
39903 else $as_nop
39904   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39905 printf "%s\n" "no" >&6; }
39906       tst_works_inet_pton="no"
39907
39908 fi
39909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39910   conftest.$ac_objext conftest.beam conftest.$ac_ext
39911 fi
39912
39913      ;;
39914      *)
39915       oldcc=$CC
39916       old=$LD_LIBRARY_PATH
39917       CC="sh ./run-compiler"
39918       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39919       export LD_LIBRARY_PATH
39920       if test "$cross_compiling" = yes
39921 then :
39922   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39924 as_fn_error $? "cannot run test program while cross compiling
39925 See \`config.log' for more details" "$LINENO" 5; }
39926 else $as_nop
39927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39928 /* end confdefs.h.  */
39929
39930
39931         $curl_includes_stdlib
39932         $curl_includes_arpa_inet
39933         $curl_includes_string
39934
39935 int main (void)
39936 {
39937
39938         unsigned char ipv6a[16+1];
39939         unsigned char ipv4a[4+1];
39940         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39941         const char *ipv4src = "192.168.100.1";
39942         /* - */
39943         memset(ipv4a, 1, sizeof(ipv4a));
39944         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39945           exit(1); /* fail */
39946         /* - */
39947         if( (ipv4a[0] != 0xc0) ||
39948             (ipv4a[1] != 0xa8) ||
39949             (ipv4a[2] != 0x64) ||
39950             (ipv4a[3] != 0x01) ||
39951             (ipv4a[4] != 0x01) )
39952           exit(1); /* fail */
39953         /* - */
39954         memset(ipv6a, 1, sizeof(ipv6a));
39955         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39956           exit(1); /* fail */
39957         /* - */
39958         if( (ipv6a[0]  != 0xfe) ||
39959             (ipv6a[1]  != 0x80) ||
39960             (ipv6a[8]  != 0x02) ||
39961             (ipv6a[9]  != 0x14) ||
39962             (ipv6a[10] != 0x4f) ||
39963             (ipv6a[11] != 0xff) ||
39964             (ipv6a[12] != 0xfe) ||
39965             (ipv6a[13] != 0x0b) ||
39966             (ipv6a[14] != 0x76) ||
39967             (ipv6a[15] != 0xc8) ||
39968             (ipv6a[16] != 0x01) )
39969           exit(1); /* fail */
39970         /* - */
39971         if( (ipv6a[2]  != 0x0) ||
39972             (ipv6a[3]  != 0x0) ||
39973             (ipv6a[4]  != 0x0) ||
39974             (ipv6a[5]  != 0x0) ||
39975             (ipv6a[6]  != 0x0) ||
39976             (ipv6a[7]  != 0x0) )
39977           exit(1); /* fail */
39978         /* - */
39979         exit(0);
39980
39981  ;
39982  return 0;
39983 }
39984
39985 _ACEOF
39986 if ac_fn_c_try_run "$LINENO"
39987 then :
39988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39989 printf "%s\n" "yes" >&6; }
39990       tst_works_inet_pton="yes"
39991
39992 else $as_nop
39993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39994 printf "%s\n" "no" >&6; }
39995       tst_works_inet_pton="no"
39996
39997 fi
39998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39999   conftest.$ac_objext conftest.beam conftest.$ac_ext
40000 fi
40001
40002       LD_LIBRARY_PATH=$old # restore
40003       CC=$oldcc
40004      ;;
40005    esac
40006
40007   fi
40008   #
40009   if test "$tst_compi_inet_pton" = "yes" &&
40010     test "$tst_works_inet_pton" != "no"; then
40011     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
40012 printf %s "checking if inet_pton usage allowed... " >&6; }
40013     if test "x$curl_disallow_inet_pton" != "xyes"; then
40014       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 printf "%s\n" "yes" >&6; }
40016       tst_allow_inet_pton="yes"
40017     else
40018       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40019 printf "%s\n" "no" >&6; }
40020       tst_allow_inet_pton="no"
40021     fi
40022   fi
40023   #
40024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
40025 printf %s "checking if inet_pton might be used... " >&6; }
40026   if test "$tst_links_inet_pton" = "yes" &&
40027      test "$tst_proto_inet_pton" = "yes" &&
40028      test "$tst_compi_inet_pton" = "yes" &&
40029      test "$tst_allow_inet_pton" = "yes" &&
40030      test "$tst_works_inet_pton" != "no"; then
40031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40032 printf "%s\n" "yes" >&6; }
40033
40034 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
40035
40036     curl_cv_func_inet_pton="yes"
40037   else
40038     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40039 printf "%s\n" "no" >&6; }
40040     curl_cv_func_inet_pton="no"
40041   fi
40042
40043
40044 curl_includes_stropts="\
40045 /* includes start */
40046 #ifdef HAVE_SYS_TYPES_H
40047 #  include <sys/types.h>
40048 #endif
40049 #ifdef HAVE_UNISTD_H
40050 #  include <unistd.h>
40051 #endif
40052 #ifdef HAVE_SYS_SOCKET_H
40053 #  include <sys/socket.h>
40054 #endif
40055 #ifdef HAVE_SYS_IOCTL_H
40056 #  include <sys/ioctl.h>
40057 #endif
40058 #ifdef HAVE_STROPTS_H
40059 #  include <stropts.h>
40060 #endif
40061 /* includes end */"
40062   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
40063 "
40064 if test "x$ac_cv_header_sys_types_h" = xyes
40065 then :
40066   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40067
40068 fi
40069 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
40070 "
40071 if test "x$ac_cv_header_unistd_h" = xyes
40072 then :
40073   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
40074
40075 fi
40076 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
40077 "
40078 if test "x$ac_cv_header_sys_socket_h" = xyes
40079 then :
40080   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
40081
40082 fi
40083 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
40084 "
40085 if test "x$ac_cv_header_sys_ioctl_h" = xyes
40086 then :
40087   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
40088
40089 fi
40090 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
40091 "
40092 if test "x$ac_cv_header_stropts_h" = xyes
40093 then :
40094   printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
40095
40096 fi
40097
40098
40099
40100     #
40101   tst_links_ioctl="unknown"
40102   tst_proto_ioctl="unknown"
40103   tst_compi_ioctl="unknown"
40104   tst_allow_ioctl="unknown"
40105   #
40106   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
40107 printf %s "checking if ioctl can be linked... " >&6; }
40108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40109 /* end confdefs.h.  */
40110
40111
40112 #define ioctl innocuous_ioctl
40113 #ifdef __STDC__
40114 # include <limits.h>
40115 #else
40116 # include <assert.h>
40117 #endif
40118 #undef ioctl
40119 #ifdef __cplusplus
40120 extern "C"
40121 #endif
40122 char ioctl ();
40123 #if defined __stub_ioctl || defined __stub___ioctl
40124 choke me
40125 #endif
40126
40127 int main (void)
40128 {
40129 return ioctl ();
40130  ;
40131  return 0;
40132 }
40133
40134 _ACEOF
40135 if ac_fn_c_try_link "$LINENO"
40136 then :
40137
40138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139 printf "%s\n" "yes" >&6; }
40140     tst_links_ioctl="yes"
40141
40142 else $as_nop
40143
40144     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40145 printf "%s\n" "no" >&6; }
40146     tst_links_ioctl="no"
40147
40148 fi
40149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40150     conftest$ac_exeext conftest.$ac_ext
40151   #
40152   if test "$tst_links_ioctl" = "yes"; then
40153     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40154 printf %s "checking if ioctl is prototyped... " >&6; }
40155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40156 /* end confdefs.h.  */
40157
40158       $curl_includes_stropts
40159
40160 _ACEOF
40161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40162   $EGREP "ioctl" >/dev/null 2>&1
40163 then :
40164
40165       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40166 printf "%s\n" "yes" >&6; }
40167       tst_proto_ioctl="yes"
40168
40169 else $as_nop
40170
40171       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40172 printf "%s\n" "no" >&6; }
40173       tst_proto_ioctl="no"
40174
40175 fi
40176 rm -rf conftest*
40177
40178   fi
40179   #
40180   if test "$tst_proto_ioctl" = "yes"; then
40181     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40182 printf %s "checking if ioctl is compilable... " >&6; }
40183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40184 /* end confdefs.h.  */
40185
40186
40187         $curl_includes_stropts
40188
40189 int main (void)
40190 {
40191
40192         if(0 != ioctl(0, 0, 0))
40193           return 1;
40194
40195  ;
40196  return 0;
40197 }
40198
40199 _ACEOF
40200 if ac_fn_c_try_compile "$LINENO"
40201 then :
40202
40203       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40204 printf "%s\n" "yes" >&6; }
40205       tst_compi_ioctl="yes"
40206
40207 else $as_nop
40208
40209       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40210 printf "%s\n" "no" >&6; }
40211       tst_compi_ioctl="no"
40212
40213 fi
40214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40215   fi
40216   #
40217   if test "$tst_compi_ioctl" = "yes"; then
40218     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40219 printf %s "checking if ioctl usage allowed... " >&6; }
40220     if test "x$curl_disallow_ioctl" != "xyes"; then
40221       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40222 printf "%s\n" "yes" >&6; }
40223       tst_allow_ioctl="yes"
40224     else
40225       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40226 printf "%s\n" "no" >&6; }
40227       tst_allow_ioctl="no"
40228     fi
40229   fi
40230   #
40231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40232 printf %s "checking if ioctl might be used... " >&6; }
40233   if test "$tst_links_ioctl" = "yes" &&
40234      test "$tst_proto_ioctl" = "yes" &&
40235      test "$tst_compi_ioctl" = "yes" &&
40236      test "$tst_allow_ioctl" = "yes"; then
40237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40238 printf "%s\n" "yes" >&6; }
40239
40240 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40241
40242     curl_cv_func_ioctl="yes"
40243
40244   #
40245   tst_compi_ioctl_fionbio="unknown"
40246   tst_allow_ioctl_fionbio="unknown"
40247   #
40248   if test "$curl_cv_func_ioctl" = "yes"; then
40249     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40250 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40252 /* end confdefs.h.  */
40253
40254
40255         $curl_includes_stropts
40256
40257 int main (void)
40258 {
40259
40260         int flags = 0;
40261         if(0 != ioctl(0, FIONBIO, &flags))
40262           return 1;
40263
40264  ;
40265  return 0;
40266 }
40267
40268 _ACEOF
40269 if ac_fn_c_try_compile "$LINENO"
40270 then :
40271
40272       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40273 printf "%s\n" "yes" >&6; }
40274       tst_compi_ioctl_fionbio="yes"
40275
40276 else $as_nop
40277
40278       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40279 printf "%s\n" "no" >&6; }
40280       tst_compi_ioctl_fionbio="no"
40281
40282 fi
40283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40284   fi
40285   #
40286   if test "$tst_compi_ioctl_fionbio" = "yes"; then
40287     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40288 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40289     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40290       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40291 printf "%s\n" "yes" >&6; }
40292       tst_allow_ioctl_fionbio="yes"
40293     else
40294       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40295 printf "%s\n" "no" >&6; }
40296       tst_allow_ioctl_fionbio="no"
40297     fi
40298   fi
40299   #
40300   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40301 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40302   if test "$tst_compi_ioctl_fionbio" = "yes" &&
40303      test "$tst_allow_ioctl_fionbio" = "yes"; then
40304     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40305 printf "%s\n" "yes" >&6; }
40306
40307 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40308
40309     curl_cv_func_ioctl_fionbio="yes"
40310   else
40311     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40312 printf "%s\n" "no" >&6; }
40313     curl_cv_func_ioctl_fionbio="no"
40314   fi
40315
40316
40317   #
40318   tst_compi_ioctl_siocgifaddr="unknown"
40319   tst_allow_ioctl_siocgifaddr="unknown"
40320   #
40321   if test "$curl_cv_func_ioctl" = "yes"; then
40322     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40323 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40325 /* end confdefs.h.  */
40326
40327
40328         $curl_includes_stropts
40329         #include <net/if.h>
40330
40331 int main (void)
40332 {
40333
40334         struct ifreq ifr;
40335         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40336           return 1;
40337
40338  ;
40339  return 0;
40340 }
40341
40342 _ACEOF
40343 if ac_fn_c_try_compile "$LINENO"
40344 then :
40345
40346       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40347 printf "%s\n" "yes" >&6; }
40348       tst_compi_ioctl_siocgifaddr="yes"
40349
40350 else $as_nop
40351
40352       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40353 printf "%s\n" "no" >&6; }
40354       tst_compi_ioctl_siocgifaddr="no"
40355
40356 fi
40357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40358   fi
40359   #
40360   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40361     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40362 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40363     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40364       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40365 printf "%s\n" "yes" >&6; }
40366       tst_allow_ioctl_siocgifaddr="yes"
40367     else
40368       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40369 printf "%s\n" "no" >&6; }
40370       tst_allow_ioctl_siocgifaddr="no"
40371     fi
40372   fi
40373   #
40374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40375 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40376   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40377      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40379 printf "%s\n" "yes" >&6; }
40380
40381 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40382
40383     curl_cv_func_ioctl_siocgifaddr="yes"
40384   else
40385     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40386 printf "%s\n" "no" >&6; }
40387     curl_cv_func_ioctl_siocgifaddr="no"
40388   fi
40389
40390   else
40391     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40392 printf "%s\n" "no" >&6; }
40393     curl_cv_func_ioctl="no"
40394   fi
40395
40396
40397     #
40398   tst_links_ioctlsocket="unknown"
40399   tst_proto_ioctlsocket="unknown"
40400   tst_compi_ioctlsocket="unknown"
40401   tst_allow_ioctlsocket="unknown"
40402   #
40403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40404 printf %s "checking if ioctlsocket can be linked... " >&6; }
40405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40406 /* end confdefs.h.  */
40407
40408
40409       $curl_includes_winsock2
40410
40411 int main (void)
40412 {
40413
40414       if(0 != ioctlsocket(0, 0, 0))
40415         return 1;
40416
40417  ;
40418  return 0;
40419 }
40420
40421 _ACEOF
40422 if ac_fn_c_try_link "$LINENO"
40423 then :
40424
40425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40426 printf "%s\n" "yes" >&6; }
40427     tst_links_ioctlsocket="yes"
40428
40429 else $as_nop
40430
40431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40432 printf "%s\n" "no" >&6; }
40433     tst_links_ioctlsocket="no"
40434
40435 fi
40436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40437     conftest$ac_exeext conftest.$ac_ext
40438   #
40439   if test "$tst_links_ioctlsocket" = "yes"; then
40440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40441 printf %s "checking if ioctlsocket is prototyped... " >&6; }
40442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40443 /* end confdefs.h.  */
40444
40445       $curl_includes_winsock2
40446
40447 _ACEOF
40448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40449   $EGREP "ioctlsocket" >/dev/null 2>&1
40450 then :
40451
40452       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40453 printf "%s\n" "yes" >&6; }
40454       tst_proto_ioctlsocket="yes"
40455
40456 else $as_nop
40457
40458       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40459 printf "%s\n" "no" >&6; }
40460       tst_proto_ioctlsocket="no"
40461
40462 fi
40463 rm -rf conftest*
40464
40465   fi
40466   #
40467   if test "$tst_proto_ioctlsocket" = "yes"; then
40468     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40469 printf %s "checking if ioctlsocket is compilable... " >&6; }
40470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40471 /* end confdefs.h.  */
40472
40473
40474         $curl_includes_winsock2
40475
40476 int main (void)
40477 {
40478
40479         if(0 != ioctlsocket(0, 0, 0))
40480           return 1;
40481
40482  ;
40483  return 0;
40484 }
40485
40486 _ACEOF
40487 if ac_fn_c_try_compile "$LINENO"
40488 then :
40489
40490       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40491 printf "%s\n" "yes" >&6; }
40492       tst_compi_ioctlsocket="yes"
40493
40494 else $as_nop
40495
40496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40497 printf "%s\n" "no" >&6; }
40498       tst_compi_ioctlsocket="no"
40499
40500 fi
40501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40502   fi
40503   #
40504   if test "$tst_compi_ioctlsocket" = "yes"; then
40505     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40506 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40507     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40508       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40509 printf "%s\n" "yes" >&6; }
40510       tst_allow_ioctlsocket="yes"
40511     else
40512       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40513 printf "%s\n" "no" >&6; }
40514       tst_allow_ioctlsocket="no"
40515     fi
40516   fi
40517   #
40518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40519 printf %s "checking if ioctlsocket might be used... " >&6; }
40520   if test "$tst_links_ioctlsocket" = "yes" &&
40521      test "$tst_proto_ioctlsocket" = "yes" &&
40522      test "$tst_compi_ioctlsocket" = "yes" &&
40523      test "$tst_allow_ioctlsocket" = "yes"; then
40524     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40525 printf "%s\n" "yes" >&6; }
40526
40527 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40528
40529     curl_cv_func_ioctlsocket="yes"
40530
40531   #
40532   tst_compi_ioctlsocket_fionbio="unknown"
40533   tst_allow_ioctlsocket_fionbio="unknown"
40534   #
40535   if test "$curl_cv_func_ioctlsocket" = "yes"; then
40536     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40537 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40539 /* end confdefs.h.  */
40540
40541
40542         $curl_includes_winsock2
40543
40544 int main (void)
40545 {
40546
40547         int flags = 0;
40548         if(0 != ioctlsocket(0, FIONBIO, &flags))
40549           return 1;
40550
40551  ;
40552  return 0;
40553 }
40554
40555 _ACEOF
40556 if ac_fn_c_try_compile "$LINENO"
40557 then :
40558
40559       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40560 printf "%s\n" "yes" >&6; }
40561       tst_compi_ioctlsocket_fionbio="yes"
40562
40563 else $as_nop
40564
40565       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40566 printf "%s\n" "no" >&6; }
40567       tst_compi_ioctlsocket_fionbio="no"
40568
40569 fi
40570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40571   fi
40572   #
40573   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40574     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40575 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40576     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40578 printf "%s\n" "yes" >&6; }
40579       tst_allow_ioctlsocket_fionbio="yes"
40580     else
40581       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40582 printf "%s\n" "no" >&6; }
40583       tst_allow_ioctlsocket_fionbio="no"
40584     fi
40585   fi
40586   #
40587   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40588 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40589   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40590      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40591     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40592 printf "%s\n" "yes" >&6; }
40593
40594 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40595
40596     curl_cv_func_ioctlsocket_fionbio="yes"
40597   else
40598     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40599 printf "%s\n" "no" >&6; }
40600     curl_cv_func_ioctlsocket_fionbio="no"
40601   fi
40602
40603   else
40604     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40605 printf "%s\n" "no" >&6; }
40606     curl_cv_func_ioctlsocket="no"
40607   fi
40608
40609
40610     #
40611   tst_links_ioctlsocket_camel="unknown"
40612   tst_proto_ioctlsocket_camel="unknown"
40613   tst_compi_ioctlsocket_camel="unknown"
40614   tst_allow_ioctlsocket_camel="unknown"
40615   #
40616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40617 printf %s "checking if IoctlSocket can be linked... " >&6; }
40618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40619 /* end confdefs.h.  */
40620
40621
40622       $curl_includes_bsdsocket
40623
40624 int main (void)
40625 {
40626
40627       IoctlSocket(0, 0, 0);
40628
40629  ;
40630  return 0;
40631 }
40632
40633 _ACEOF
40634 if ac_fn_c_try_link "$LINENO"
40635 then :
40636
40637     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638 printf "%s\n" "yes" >&6; }
40639     tst_links_ioctlsocket_camel="yes"
40640
40641 else $as_nop
40642
40643     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644 printf "%s\n" "no" >&6; }
40645     tst_links_ioctlsocket_camel="no"
40646
40647 fi
40648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40649     conftest$ac_exeext conftest.$ac_ext
40650   #
40651   if test "$tst_links_ioctlsocket_camel" = "yes"; then
40652     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40653 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40655 /* end confdefs.h.  */
40656
40657       $curl_includes_bsdsocket
40658
40659 _ACEOF
40660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40661   $EGREP "IoctlSocket" >/dev/null 2>&1
40662 then :
40663
40664       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40665 printf "%s\n" "yes" >&6; }
40666       tst_proto_ioctlsocket_camel="yes"
40667
40668 else $as_nop
40669
40670       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40671 printf "%s\n" "no" >&6; }
40672       tst_proto_ioctlsocket_camel="no"
40673
40674 fi
40675 rm -rf conftest*
40676
40677   fi
40678   #
40679   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40681 printf %s "checking if IoctlSocket is compilable... " >&6; }
40682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40683 /* end confdefs.h.  */
40684
40685
40686         $curl_includes_bsdsocket
40687
40688 int main (void)
40689 {
40690
40691         if(0 != IoctlSocket(0, 0, 0))
40692           return 1;
40693
40694  ;
40695  return 0;
40696 }
40697
40698 _ACEOF
40699 if ac_fn_c_try_compile "$LINENO"
40700 then :
40701
40702       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40703 printf "%s\n" "yes" >&6; }
40704       tst_compi_ioctlsocket_camel="yes"
40705
40706 else $as_nop
40707
40708       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709 printf "%s\n" "no" >&6; }
40710       tst_compi_ioctlsocket_camel="no"
40711
40712 fi
40713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40714   fi
40715   #
40716   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40717     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40718 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40719     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40720       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40721 printf "%s\n" "yes" >&6; }
40722       tst_allow_ioctlsocket_camel="yes"
40723     else
40724       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40725 printf "%s\n" "no" >&6; }
40726       tst_allow_ioctlsocket_camel="no"
40727     fi
40728   fi
40729   #
40730   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40731 printf %s "checking if IoctlSocket might be used... " >&6; }
40732   if test "$tst_links_ioctlsocket_camel" = "yes" &&
40733      test "$tst_proto_ioctlsocket_camel" = "yes" &&
40734      test "$tst_compi_ioctlsocket_camel" = "yes" &&
40735      test "$tst_allow_ioctlsocket_camel" = "yes"; then
40736     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40737 printf "%s\n" "yes" >&6; }
40738
40739 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40740
40741     curl_cv_func_ioctlsocket_camel="yes"
40742
40743     #
40744   tst_compi_ioctlsocket_camel_fionbio="unknown"
40745   tst_allow_ioctlsocket_camel_fionbio="unknown"
40746   #
40747   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40748     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40749 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40751 /* end confdefs.h.  */
40752
40753
40754         $curl_includes_bsdsocket
40755
40756 int main (void)
40757 {
40758
40759         long flags = 0;
40760         if(0 != IoctlSocket(0, FIONBIO, &flags))
40761           return 1;
40762
40763  ;
40764  return 0;
40765 }
40766
40767 _ACEOF
40768 if ac_fn_c_try_compile "$LINENO"
40769 then :
40770
40771       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40772 printf "%s\n" "yes" >&6; }
40773       tst_compi_ioctlsocket_camel_fionbio="yes"
40774
40775 else $as_nop
40776
40777       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40778 printf "%s\n" "no" >&6; }
40779       tst_compi_ioctlsocket_camel_fionbio="no"
40780
40781 fi
40782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40783   fi
40784   #
40785   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40787 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40788     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40789       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40790 printf "%s\n" "yes" >&6; }
40791       tst_allow_ioctlsocket_camel_fionbio="yes"
40792     else
40793       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40794 printf "%s\n" "no" >&6; }
40795       tst_allow_ioctlsocket_camel_fionbio="no"
40796     fi
40797   fi
40798   #
40799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40800 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40801   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40802      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40803     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40804 printf "%s\n" "yes" >&6; }
40805
40806 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40807
40808     curl_cv_func_ioctlsocket_camel_fionbio="yes"
40809   else
40810     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40811 printf "%s\n" "no" >&6; }
40812     curl_cv_func_ioctlsocket_camel_fionbio="no"
40813   fi
40814
40815   else
40816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40817 printf "%s\n" "no" >&6; }
40818     curl_cv_func_ioctlsocket_camel="no"
40819   fi
40820
40821
40822     #
40823   tst_links_memrchr="unknown"
40824   tst_macro_memrchr="unknown"
40825   tst_proto_memrchr="unknown"
40826   tst_compi_memrchr="unknown"
40827   tst_allow_memrchr="unknown"
40828   #
40829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40830 printf %s "checking if memrchr can be linked... " >&6; }
40831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40832 /* end confdefs.h.  */
40833
40834
40835 #define memrchr innocuous_memrchr
40836 #ifdef __STDC__
40837 # include <limits.h>
40838 #else
40839 # include <assert.h>
40840 #endif
40841 #undef memrchr
40842 #ifdef __cplusplus
40843 extern "C"
40844 #endif
40845 char memrchr ();
40846 #if defined __stub_memrchr || defined __stub___memrchr
40847 choke me
40848 #endif
40849
40850 int main (void)
40851 {
40852 return memrchr ();
40853  ;
40854  return 0;
40855 }
40856
40857 _ACEOF
40858 if ac_fn_c_try_link "$LINENO"
40859 then :
40860
40861     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40862 printf "%s\n" "yes" >&6; }
40863     tst_links_memrchr="yes"
40864
40865 else $as_nop
40866
40867     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40868 printf "%s\n" "no" >&6; }
40869     tst_links_memrchr="no"
40870
40871 fi
40872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40873     conftest$ac_exeext conftest.$ac_ext
40874   #
40875   if test "$tst_links_memrchr" = "no"; then
40876     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40877 printf %s "checking if memrchr seems a macro... " >&6; }
40878     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40879 /* end confdefs.h.  */
40880
40881
40882         $curl_includes_string
40883
40884 int main (void)
40885 {
40886
40887         if(0 != memrchr(0, 0, 0))
40888           return 1;
40889
40890  ;
40891  return 0;
40892 }
40893
40894 _ACEOF
40895 if ac_fn_c_try_link "$LINENO"
40896 then :
40897
40898       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899 printf "%s\n" "yes" >&6; }
40900       tst_macro_memrchr="yes"
40901
40902 else $as_nop
40903
40904       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905 printf "%s\n" "no" >&6; }
40906       tst_macro_memrchr="no"
40907
40908 fi
40909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40910     conftest$ac_exeext conftest.$ac_ext
40911   fi
40912   #
40913   if test "$tst_links_memrchr" = "yes"; then
40914     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40915 printf %s "checking if memrchr is prototyped... " >&6; }
40916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40917 /* end confdefs.h.  */
40918
40919       $curl_includes_string
40920
40921 _ACEOF
40922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40923   $EGREP "memrchr" >/dev/null 2>&1
40924 then :
40925
40926       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40927 printf "%s\n" "yes" >&6; }
40928       tst_proto_memrchr="yes"
40929
40930 else $as_nop
40931
40932       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40933 printf "%s\n" "no" >&6; }
40934       tst_proto_memrchr="no"
40935
40936 fi
40937 rm -rf conftest*
40938
40939   fi
40940   #
40941   if test "$tst_proto_memrchr" = "yes" ||
40942      test "$tst_macro_memrchr" = "yes"; then
40943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40944 printf %s "checking if memrchr is compilable... " >&6; }
40945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40946 /* end confdefs.h.  */
40947
40948
40949         $curl_includes_string
40950
40951 int main (void)
40952 {
40953
40954         if(0 != memrchr(0, 0, 0))
40955           return 1;
40956
40957  ;
40958  return 0;
40959 }
40960
40961 _ACEOF
40962 if ac_fn_c_try_compile "$LINENO"
40963 then :
40964
40965       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40966 printf "%s\n" "yes" >&6; }
40967       tst_compi_memrchr="yes"
40968
40969 else $as_nop
40970
40971       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40972 printf "%s\n" "no" >&6; }
40973       tst_compi_memrchr="no"
40974
40975 fi
40976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40977   fi
40978   #
40979   if test "$tst_compi_memrchr" = "yes"; then
40980     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40981 printf %s "checking if memrchr usage allowed... " >&6; }
40982     if test "x$curl_disallow_memrchr" != "xyes"; then
40983       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40984 printf "%s\n" "yes" >&6; }
40985       tst_allow_memrchr="yes"
40986     else
40987       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40988 printf "%s\n" "no" >&6; }
40989       tst_allow_memrchr="no"
40990     fi
40991   fi
40992   #
40993   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40994 printf %s "checking if memrchr might be used... " >&6; }
40995   if (test "$tst_proto_memrchr" = "yes" ||
40996       test "$tst_macro_memrchr" = "yes") &&
40997      test "$tst_compi_memrchr" = "yes" &&
40998      test "$tst_allow_memrchr" = "yes"; then
40999     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41000 printf "%s\n" "yes" >&6; }
41001
41002 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
41003
41004     curl_cv_func_memrchr="yes"
41005   else
41006     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41007 printf "%s\n" "no" >&6; }
41008     curl_cv_func_memrchr="no"
41009   fi
41010
41011
41012       #
41013   tst_links_poll="unknown"
41014   tst_proto_poll="unknown"
41015   tst_compi_poll="unknown"
41016   tst_works_poll="unknown"
41017   tst_allow_poll="unknown"
41018   #
41019   case $host_os in
41020     darwin*|interix*)
41021                                           curl_disallow_poll="yes"
41022       tst_compi_poll="no"
41023       ;;
41024   esac
41025   #
41026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
41027 printf %s "checking if poll can be linked... " >&6; }
41028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41029 /* end confdefs.h.  */
41030
41031
41032       $curl_includes_poll
41033
41034 int main (void)
41035 {
41036
41037       if(0 != poll(0, 0, 0))
41038         return 1;
41039
41040  ;
41041  return 0;
41042 }
41043
41044 _ACEOF
41045 if ac_fn_c_try_link "$LINENO"
41046 then :
41047
41048     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41049 printf "%s\n" "yes" >&6; }
41050     tst_links_poll="yes"
41051
41052 else $as_nop
41053
41054     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41055 printf "%s\n" "no" >&6; }
41056     tst_links_poll="no"
41057
41058 fi
41059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41060     conftest$ac_exeext conftest.$ac_ext
41061   #
41062   if test "$tst_links_poll" = "yes"; then
41063     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41064 printf %s "checking if poll is prototyped... " >&6; }
41065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41066 /* end confdefs.h.  */
41067
41068       $curl_includes_poll
41069
41070 _ACEOF
41071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41072   $EGREP "poll" >/dev/null 2>&1
41073 then :
41074
41075       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41076 printf "%s\n" "yes" >&6; }
41077       tst_proto_poll="yes"
41078
41079 else $as_nop
41080
41081       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41082 printf "%s\n" "no" >&6; }
41083       tst_proto_poll="no"
41084
41085 fi
41086 rm -rf conftest*
41087
41088   fi
41089   #
41090   if test "$tst_proto_poll" = "yes"; then
41091     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41092 printf %s "checking if poll is compilable... " >&6; }
41093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41094 /* end confdefs.h.  */
41095
41096
41097         $curl_includes_poll
41098
41099 int main (void)
41100 {
41101
41102         if(0 != poll(0, 0, 0))
41103           return 1;
41104
41105  ;
41106  return 0;
41107 }
41108
41109 _ACEOF
41110 if ac_fn_c_try_compile "$LINENO"
41111 then :
41112
41113       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41114 printf "%s\n" "yes" >&6; }
41115       tst_compi_poll="yes"
41116
41117 else $as_nop
41118
41119       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41120 printf "%s\n" "no" >&6; }
41121       tst_compi_poll="no"
41122
41123 fi
41124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41125   fi
41126   #
41127     if test "x$cross_compiling" != "xyes" &&
41128     test "$tst_compi_poll" = "yes"; then
41129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41130 printf %s "checking if poll seems to work... " >&6; }
41131
41132    case $host_os in
41133      darwin*)
41134       if test "$cross_compiling" = yes
41135 then :
41136   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41138 as_fn_error $? "cannot run test program while cross compiling
41139 See \`config.log' for more details" "$LINENO" 5; }
41140 else $as_nop
41141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41142 /* end confdefs.h.  */
41143
41144
41145         $curl_includes_stdlib
41146         $curl_includes_poll
41147         $curl_includes_time
41148
41149 int main (void)
41150 {
41151
41152         /* detect the original poll() breakage */
41153         if(0 != poll(0, 0, 10))
41154           exit(1); /* fail */
41155         else {
41156           /* detect the 10.12 poll() breakage */
41157           struct timeval before, after;
41158           int rc;
41159           size_t us;
41160
41161           gettimeofday(&before, NULL);
41162           rc = poll(NULL, 0, 500);
41163           gettimeofday(&after, NULL);
41164
41165           us = (after.tv_sec - before.tv_sec) * 1000000 +
41166             (after.tv_usec - before.tv_usec);
41167
41168           if(us < 400000)
41169             exit(1);
41170         }
41171
41172  ;
41173  return 0;
41174 }
41175
41176 _ACEOF
41177 if ac_fn_c_try_run "$LINENO"
41178 then :
41179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41180 printf "%s\n" "yes" >&6; }
41181       tst_works_poll="yes"
41182
41183 else $as_nop
41184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41185 printf "%s\n" "no" >&6; }
41186       tst_works_poll="no"
41187
41188 fi
41189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41190   conftest.$ac_objext conftest.beam conftest.$ac_ext
41191 fi
41192
41193      ;;
41194      *)
41195       oldcc=$CC
41196       old=$LD_LIBRARY_PATH
41197       CC="sh ./run-compiler"
41198       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41199       export LD_LIBRARY_PATH
41200       if test "$cross_compiling" = yes
41201 then :
41202   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41203 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41204 as_fn_error $? "cannot run test program while cross compiling
41205 See \`config.log' for more details" "$LINENO" 5; }
41206 else $as_nop
41207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41208 /* end confdefs.h.  */
41209
41210
41211         $curl_includes_stdlib
41212         $curl_includes_poll
41213         $curl_includes_time
41214
41215 int main (void)
41216 {
41217
41218         /* detect the original poll() breakage */
41219         if(0 != poll(0, 0, 10))
41220           exit(1); /* fail */
41221         else {
41222           /* detect the 10.12 poll() breakage */
41223           struct timeval before, after;
41224           int rc;
41225           size_t us;
41226
41227           gettimeofday(&before, NULL);
41228           rc = poll(NULL, 0, 500);
41229           gettimeofday(&after, NULL);
41230
41231           us = (after.tv_sec - before.tv_sec) * 1000000 +
41232             (after.tv_usec - before.tv_usec);
41233
41234           if(us < 400000)
41235             exit(1);
41236         }
41237
41238  ;
41239  return 0;
41240 }
41241
41242 _ACEOF
41243 if ac_fn_c_try_run "$LINENO"
41244 then :
41245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41246 printf "%s\n" "yes" >&6; }
41247       tst_works_poll="yes"
41248
41249 else $as_nop
41250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41251 printf "%s\n" "no" >&6; }
41252       tst_works_poll="no"
41253
41254 fi
41255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41256   conftest.$ac_objext conftest.beam conftest.$ac_ext
41257 fi
41258
41259       LD_LIBRARY_PATH=$old # restore
41260       CC=$oldcc
41261      ;;
41262    esac
41263
41264   fi
41265   #
41266   if test "$tst_compi_poll" = "yes" &&
41267     test "$tst_works_poll" != "no"; then
41268     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41269 printf %s "checking if poll usage allowed... " >&6; }
41270     if test "x$curl_disallow_poll" != "xyes"; then
41271       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41272 printf "%s\n" "yes" >&6; }
41273       tst_allow_poll="yes"
41274     else
41275       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41276 printf "%s\n" "no" >&6; }
41277       tst_allow_poll="no"
41278     fi
41279   fi
41280   #
41281   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41282 printf %s "checking if poll might be used... " >&6; }
41283   if test "$tst_links_poll" = "yes" &&
41284      test "$tst_proto_poll" = "yes" &&
41285      test "$tst_compi_poll" = "yes" &&
41286      test "$tst_allow_poll" = "yes" &&
41287      test "$tst_works_poll" != "no"; then
41288     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41289 printf "%s\n" "yes" >&6; }
41290
41291 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41292
41293     curl_cv_func_poll="yes"
41294   else
41295     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41296 printf "%s\n" "no" >&6; }
41297     curl_cv_func_poll="no"
41298   fi
41299
41300
41301 curl_includes_signal="\
41302 /* includes start */
41303 #ifdef HAVE_SYS_TYPES_H
41304 #  include <sys/types.h>
41305 #endif
41306 #include <signal.h>
41307 /* includes end */"
41308   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41309 "
41310 if test "x$ac_cv_header_sys_types_h" = xyes
41311 then :
41312   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41313
41314 fi
41315
41316
41317
41318     #
41319   tst_links_sigaction="unknown"
41320   tst_proto_sigaction="unknown"
41321   tst_compi_sigaction="unknown"
41322   tst_allow_sigaction="unknown"
41323   #
41324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41325 printf %s "checking if sigaction can be linked... " >&6; }
41326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41327 /* end confdefs.h.  */
41328
41329
41330 #define sigaction innocuous_sigaction
41331 #ifdef __STDC__
41332 # include <limits.h>
41333 #else
41334 # include <assert.h>
41335 #endif
41336 #undef sigaction
41337 #ifdef __cplusplus
41338 extern "C"
41339 #endif
41340 char sigaction ();
41341 #if defined __stub_sigaction || defined __stub___sigaction
41342 choke me
41343 #endif
41344
41345 int main (void)
41346 {
41347 return sigaction ();
41348  ;
41349  return 0;
41350 }
41351
41352 _ACEOF
41353 if ac_fn_c_try_link "$LINENO"
41354 then :
41355
41356     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41357 printf "%s\n" "yes" >&6; }
41358     tst_links_sigaction="yes"
41359
41360 else $as_nop
41361
41362     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41363 printf "%s\n" "no" >&6; }
41364     tst_links_sigaction="no"
41365
41366 fi
41367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41368     conftest$ac_exeext conftest.$ac_ext
41369   #
41370   if test "$tst_links_sigaction" = "yes"; then
41371     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41372 printf %s "checking if sigaction is prototyped... " >&6; }
41373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41374 /* end confdefs.h.  */
41375
41376       $curl_includes_signal
41377
41378 _ACEOF
41379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41380   $EGREP "sigaction" >/dev/null 2>&1
41381 then :
41382
41383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41384 printf "%s\n" "yes" >&6; }
41385       tst_proto_sigaction="yes"
41386
41387 else $as_nop
41388
41389       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41390 printf "%s\n" "no" >&6; }
41391       tst_proto_sigaction="no"
41392
41393 fi
41394 rm -rf conftest*
41395
41396   fi
41397   #
41398   if test "$tst_proto_sigaction" = "yes"; then
41399     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41400 printf %s "checking if sigaction is compilable... " >&6; }
41401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41402 /* end confdefs.h.  */
41403
41404
41405         $curl_includes_signal
41406
41407 int main (void)
41408 {
41409
41410         if(0 != sigaction(0, 0, 0))
41411           return 1;
41412
41413  ;
41414  return 0;
41415 }
41416
41417 _ACEOF
41418 if ac_fn_c_try_compile "$LINENO"
41419 then :
41420
41421       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41422 printf "%s\n" "yes" >&6; }
41423       tst_compi_sigaction="yes"
41424
41425 else $as_nop
41426
41427       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41428 printf "%s\n" "no" >&6; }
41429       tst_compi_sigaction="no"
41430
41431 fi
41432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41433   fi
41434   #
41435   if test "$tst_compi_sigaction" = "yes"; then
41436     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41437 printf %s "checking if sigaction usage allowed... " >&6; }
41438     if test "x$curl_disallow_sigaction" != "xyes"; then
41439       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41440 printf "%s\n" "yes" >&6; }
41441       tst_allow_sigaction="yes"
41442     else
41443       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41444 printf "%s\n" "no" >&6; }
41445       tst_allow_sigaction="no"
41446     fi
41447   fi
41448   #
41449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41450 printf %s "checking if sigaction might be used... " >&6; }
41451   if test "$tst_links_sigaction" = "yes" &&
41452      test "$tst_proto_sigaction" = "yes" &&
41453      test "$tst_compi_sigaction" = "yes" &&
41454      test "$tst_allow_sigaction" = "yes"; then
41455     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41456 printf "%s\n" "yes" >&6; }
41457
41458 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41459
41460     curl_cv_func_sigaction="yes"
41461   else
41462     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41463 printf "%s\n" "no" >&6; }
41464     curl_cv_func_sigaction="no"
41465   fi
41466
41467
41468     #
41469   tst_links_siginterrupt="unknown"
41470   tst_proto_siginterrupt="unknown"
41471   tst_compi_siginterrupt="unknown"
41472   tst_allow_siginterrupt="unknown"
41473   #
41474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41475 printf %s "checking if siginterrupt can be linked... " >&6; }
41476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41477 /* end confdefs.h.  */
41478
41479
41480 #define siginterrupt innocuous_siginterrupt
41481 #ifdef __STDC__
41482 # include <limits.h>
41483 #else
41484 # include <assert.h>
41485 #endif
41486 #undef siginterrupt
41487 #ifdef __cplusplus
41488 extern "C"
41489 #endif
41490 char siginterrupt ();
41491 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41492 choke me
41493 #endif
41494
41495 int main (void)
41496 {
41497 return siginterrupt ();
41498  ;
41499  return 0;
41500 }
41501
41502 _ACEOF
41503 if ac_fn_c_try_link "$LINENO"
41504 then :
41505
41506     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41507 printf "%s\n" "yes" >&6; }
41508     tst_links_siginterrupt="yes"
41509
41510 else $as_nop
41511
41512     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41513 printf "%s\n" "no" >&6; }
41514     tst_links_siginterrupt="no"
41515
41516 fi
41517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41518     conftest$ac_exeext conftest.$ac_ext
41519   #
41520   if test "$tst_links_siginterrupt" = "yes"; then
41521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41522 printf %s "checking if siginterrupt is prototyped... " >&6; }
41523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41524 /* end confdefs.h.  */
41525
41526       $curl_includes_signal
41527
41528 _ACEOF
41529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41530   $EGREP "siginterrupt" >/dev/null 2>&1
41531 then :
41532
41533       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41534 printf "%s\n" "yes" >&6; }
41535       tst_proto_siginterrupt="yes"
41536
41537 else $as_nop
41538
41539       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41540 printf "%s\n" "no" >&6; }
41541       tst_proto_siginterrupt="no"
41542
41543 fi
41544 rm -rf conftest*
41545
41546   fi
41547   #
41548   if test "$tst_proto_siginterrupt" = "yes"; then
41549     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41550 printf %s "checking if siginterrupt is compilable... " >&6; }
41551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41552 /* end confdefs.h.  */
41553
41554
41555         $curl_includes_signal
41556
41557 int main (void)
41558 {
41559
41560         if(0 != siginterrupt(0, 0))
41561           return 1;
41562
41563  ;
41564  return 0;
41565 }
41566
41567 _ACEOF
41568 if ac_fn_c_try_compile "$LINENO"
41569 then :
41570
41571       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41572 printf "%s\n" "yes" >&6; }
41573       tst_compi_siginterrupt="yes"
41574
41575 else $as_nop
41576
41577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41578 printf "%s\n" "no" >&6; }
41579       tst_compi_siginterrupt="no"
41580
41581 fi
41582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41583   fi
41584   #
41585   if test "$tst_compi_siginterrupt" = "yes"; then
41586     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41587 printf %s "checking if siginterrupt usage allowed... " >&6; }
41588     if test "x$curl_disallow_siginterrupt" != "xyes"; then
41589       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41590 printf "%s\n" "yes" >&6; }
41591       tst_allow_siginterrupt="yes"
41592     else
41593       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41594 printf "%s\n" "no" >&6; }
41595       tst_allow_siginterrupt="no"
41596     fi
41597   fi
41598   #
41599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41600 printf %s "checking if siginterrupt might be used... " >&6; }
41601   if test "$tst_links_siginterrupt" = "yes" &&
41602      test "$tst_proto_siginterrupt" = "yes" &&
41603      test "$tst_compi_siginterrupt" = "yes" &&
41604      test "$tst_allow_siginterrupt" = "yes"; then
41605     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41606 printf "%s\n" "yes" >&6; }
41607
41608 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41609
41610     curl_cv_func_siginterrupt="yes"
41611   else
41612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41613 printf "%s\n" "no" >&6; }
41614     curl_cv_func_siginterrupt="no"
41615   fi
41616
41617
41618     #
41619   tst_links_signal="unknown"
41620   tst_proto_signal="unknown"
41621   tst_compi_signal="unknown"
41622   tst_allow_signal="unknown"
41623   #
41624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41625 printf %s "checking if signal can be linked... " >&6; }
41626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41627 /* end confdefs.h.  */
41628
41629
41630 #define signal innocuous_signal
41631 #ifdef __STDC__
41632 # include <limits.h>
41633 #else
41634 # include <assert.h>
41635 #endif
41636 #undef signal
41637 #ifdef __cplusplus
41638 extern "C"
41639 #endif
41640 char signal ();
41641 #if defined __stub_signal || defined __stub___signal
41642 choke me
41643 #endif
41644
41645 int main (void)
41646 {
41647 return signal ();
41648  ;
41649  return 0;
41650 }
41651
41652 _ACEOF
41653 if ac_fn_c_try_link "$LINENO"
41654 then :
41655
41656     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41657 printf "%s\n" "yes" >&6; }
41658     tst_links_signal="yes"
41659
41660 else $as_nop
41661
41662     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41663 printf "%s\n" "no" >&6; }
41664     tst_links_signal="no"
41665
41666 fi
41667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41668     conftest$ac_exeext conftest.$ac_ext
41669   #
41670   if test "$tst_links_signal" = "yes"; then
41671     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41672 printf %s "checking if signal is prototyped... " >&6; }
41673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41674 /* end confdefs.h.  */
41675
41676       $curl_includes_signal
41677
41678 _ACEOF
41679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41680   $EGREP "signal" >/dev/null 2>&1
41681 then :
41682
41683       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41684 printf "%s\n" "yes" >&6; }
41685       tst_proto_signal="yes"
41686
41687 else $as_nop
41688
41689       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41690 printf "%s\n" "no" >&6; }
41691       tst_proto_signal="no"
41692
41693 fi
41694 rm -rf conftest*
41695
41696   fi
41697   #
41698   if test "$tst_proto_signal" = "yes"; then
41699     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41700 printf %s "checking if signal is compilable... " >&6; }
41701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41702 /* end confdefs.h.  */
41703
41704
41705         $curl_includes_signal
41706
41707 int main (void)
41708 {
41709
41710         if(0 != signal(0, 0))
41711           return 1;
41712
41713  ;
41714  return 0;
41715 }
41716
41717 _ACEOF
41718 if ac_fn_c_try_compile "$LINENO"
41719 then :
41720
41721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41722 printf "%s\n" "yes" >&6; }
41723       tst_compi_signal="yes"
41724
41725 else $as_nop
41726
41727       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41728 printf "%s\n" "no" >&6; }
41729       tst_compi_signal="no"
41730
41731 fi
41732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41733   fi
41734   #
41735   if test "$tst_compi_signal" = "yes"; then
41736     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41737 printf %s "checking if signal usage allowed... " >&6; }
41738     if test "x$curl_disallow_signal" != "xyes"; then
41739       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41740 printf "%s\n" "yes" >&6; }
41741       tst_allow_signal="yes"
41742     else
41743       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41744 printf "%s\n" "no" >&6; }
41745       tst_allow_signal="no"
41746     fi
41747   fi
41748   #
41749   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41750 printf %s "checking if signal might be used... " >&6; }
41751   if test "$tst_links_signal" = "yes" &&
41752      test "$tst_proto_signal" = "yes" &&
41753      test "$tst_compi_signal" = "yes" &&
41754      test "$tst_allow_signal" = "yes"; then
41755     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41756 printf "%s\n" "yes" >&6; }
41757
41758 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41759
41760     curl_cv_func_signal="yes"
41761   else
41762     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41763 printf "%s\n" "no" >&6; }
41764     curl_cv_func_signal="no"
41765   fi
41766
41767
41768 curl_includes_setjmp="\
41769 /* includes start */
41770 #ifdef HAVE_SYS_TYPES_H
41771 #  include <sys/types.h>
41772 #endif
41773 #include <setjmp.h>
41774 /* includes end */"
41775   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41776 "
41777 if test "x$ac_cv_header_sys_types_h" = xyes
41778 then :
41779   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41780
41781 fi
41782
41783
41784
41785     #
41786   tst_links_sigsetjmp="unknown"
41787   tst_macro_sigsetjmp="unknown"
41788   tst_proto_sigsetjmp="unknown"
41789   tst_compi_sigsetjmp="unknown"
41790   tst_allow_sigsetjmp="unknown"
41791   #
41792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41793 printf %s "checking if sigsetjmp can be linked... " >&6; }
41794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41795 /* end confdefs.h.  */
41796
41797
41798 #define sigsetjmp innocuous_sigsetjmp
41799 #ifdef __STDC__
41800 # include <limits.h>
41801 #else
41802 # include <assert.h>
41803 #endif
41804 #undef sigsetjmp
41805 #ifdef __cplusplus
41806 extern "C"
41807 #endif
41808 char sigsetjmp ();
41809 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41810 choke me
41811 #endif
41812
41813 int main (void)
41814 {
41815 return sigsetjmp ();
41816  ;
41817  return 0;
41818 }
41819
41820 _ACEOF
41821 if ac_fn_c_try_link "$LINENO"
41822 then :
41823
41824     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41825 printf "%s\n" "yes" >&6; }
41826     tst_links_sigsetjmp="yes"
41827
41828 else $as_nop
41829
41830     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41831 printf "%s\n" "no" >&6; }
41832     tst_links_sigsetjmp="no"
41833
41834 fi
41835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41836     conftest$ac_exeext conftest.$ac_ext
41837   #
41838   if test "$tst_links_sigsetjmp" = "no"; then
41839     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41840 printf %s "checking if sigsetjmp seems a macro... " >&6; }
41841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41842 /* end confdefs.h.  */
41843
41844
41845         $curl_includes_setjmp
41846
41847 int main (void)
41848 {
41849
41850         sigjmp_buf env;
41851         if(0 != sigsetjmp(env, 0))
41852           return 1;
41853
41854  ;
41855  return 0;
41856 }
41857
41858 _ACEOF
41859 if ac_fn_c_try_link "$LINENO"
41860 then :
41861
41862       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41863 printf "%s\n" "yes" >&6; }
41864       tst_macro_sigsetjmp="yes"
41865
41866 else $as_nop
41867
41868       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41869 printf "%s\n" "no" >&6; }
41870       tst_macro_sigsetjmp="no"
41871
41872 fi
41873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41874     conftest$ac_exeext conftest.$ac_ext
41875   fi
41876   #
41877   if test "$tst_links_sigsetjmp" = "yes"; then
41878     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41879 printf %s "checking if sigsetjmp is prototyped... " >&6; }
41880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41881 /* end confdefs.h.  */
41882
41883       $curl_includes_setjmp
41884
41885 _ACEOF
41886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41887   $EGREP "sigsetjmp" >/dev/null 2>&1
41888 then :
41889
41890       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41891 printf "%s\n" "yes" >&6; }
41892       tst_proto_sigsetjmp="yes"
41893
41894 else $as_nop
41895
41896       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41897 printf "%s\n" "no" >&6; }
41898       tst_proto_sigsetjmp="no"
41899
41900 fi
41901 rm -rf conftest*
41902
41903   fi
41904   #
41905   if test "$tst_proto_sigsetjmp" = "yes" ||
41906      test "$tst_macro_sigsetjmp" = "yes"; then
41907     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41908 printf %s "checking if sigsetjmp is compilable... " >&6; }
41909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41910 /* end confdefs.h.  */
41911
41912
41913         $curl_includes_setjmp
41914
41915 int main (void)
41916 {
41917
41918         sigjmp_buf env;
41919         if(0 != sigsetjmp(env, 0))
41920           return 1;
41921
41922  ;
41923  return 0;
41924 }
41925
41926 _ACEOF
41927 if ac_fn_c_try_compile "$LINENO"
41928 then :
41929
41930       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41931 printf "%s\n" "yes" >&6; }
41932       tst_compi_sigsetjmp="yes"
41933
41934 else $as_nop
41935
41936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41937 printf "%s\n" "no" >&6; }
41938       tst_compi_sigsetjmp="no"
41939
41940 fi
41941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41942   fi
41943   #
41944   if test "$tst_compi_sigsetjmp" = "yes"; then
41945     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41946 printf %s "checking if sigsetjmp usage allowed... " >&6; }
41947     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41949 printf "%s\n" "yes" >&6; }
41950       tst_allow_sigsetjmp="yes"
41951     else
41952       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41953 printf "%s\n" "no" >&6; }
41954       tst_allow_sigsetjmp="no"
41955     fi
41956   fi
41957   #
41958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41959 printf %s "checking if sigsetjmp might be used... " >&6; }
41960   if (test "$tst_proto_sigsetjmp" = "yes" ||
41961       test "$tst_macro_sigsetjmp" = "yes") &&
41962      test "$tst_compi_sigsetjmp" = "yes" &&
41963      test "$tst_allow_sigsetjmp" = "yes"; then
41964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41965 printf "%s\n" "yes" >&6; }
41966
41967 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41968
41969     curl_cv_func_sigsetjmp="yes"
41970   else
41971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41972 printf "%s\n" "no" >&6; }
41973     curl_cv_func_sigsetjmp="no"
41974   fi
41975
41976
41977         #
41978   tst_links_socket="unknown"
41979   tst_proto_socket="unknown"
41980   tst_compi_socket="unknown"
41981   tst_allow_socket="unknown"
41982   #
41983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41984 printf %s "checking if socket can be linked... " >&6; }
41985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41986 /* end confdefs.h.  */
41987
41988
41989       $curl_includes_winsock2
41990       $curl_includes_bsdsocket
41991       $curl_includes_sys_socket
41992       $curl_includes_socket
41993
41994 int main (void)
41995 {
41996
41997       if(0 != socket(0, 0, 0))
41998         return 1;
41999
42000  ;
42001  return 0;
42002 }
42003
42004 _ACEOF
42005 if ac_fn_c_try_link "$LINENO"
42006 then :
42007
42008     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42009 printf "%s\n" "yes" >&6; }
42010     tst_links_socket="yes"
42011
42012 else $as_nop
42013
42014     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42015 printf "%s\n" "no" >&6; }
42016     tst_links_socket="no"
42017
42018 fi
42019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42020     conftest$ac_exeext conftest.$ac_ext
42021   #
42022   if test "$tst_links_socket" = "yes"; then
42023     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
42024 printf %s "checking if socket is prototyped... " >&6; }
42025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42026 /* end confdefs.h.  */
42027
42028       $curl_includes_winsock2
42029       $curl_includes_bsdsocket
42030       $curl_includes_sys_socket
42031       $curl_includes_socket
42032
42033 _ACEOF
42034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42035   $EGREP "socket" >/dev/null 2>&1
42036 then :
42037
42038       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42039 printf "%s\n" "yes" >&6; }
42040       tst_proto_socket="yes"
42041
42042 else $as_nop
42043
42044       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42045 printf "%s\n" "no" >&6; }
42046       tst_proto_socket="no"
42047
42048 fi
42049 rm -rf conftest*
42050
42051   fi
42052   #
42053   if test "$tst_proto_socket" = "yes"; then
42054     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42055 printf %s "checking if socket is compilable... " >&6; }
42056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42057 /* end confdefs.h.  */
42058
42059
42060         $curl_includes_winsock2
42061         $curl_includes_bsdsocket
42062         $curl_includes_sys_socket
42063         $curl_includes_socket
42064
42065 int main (void)
42066 {
42067
42068         if(0 != socket(0, 0, 0))
42069           return 1;
42070
42071  ;
42072  return 0;
42073 }
42074
42075 _ACEOF
42076 if ac_fn_c_try_compile "$LINENO"
42077 then :
42078
42079       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42080 printf "%s\n" "yes" >&6; }
42081       tst_compi_socket="yes"
42082
42083 else $as_nop
42084
42085       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42086 printf "%s\n" "no" >&6; }
42087       tst_compi_socket="no"
42088
42089 fi
42090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42091   fi
42092   #
42093   if test "$tst_compi_socket" = "yes"; then
42094     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42095 printf %s "checking if socket usage allowed... " >&6; }
42096     if test "x$curl_disallow_socket" != "xyes"; then
42097       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42098 printf "%s\n" "yes" >&6; }
42099       tst_allow_socket="yes"
42100     else
42101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42102 printf "%s\n" "no" >&6; }
42103       tst_allow_socket="no"
42104     fi
42105   fi
42106   #
42107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42108 printf %s "checking if socket might be used... " >&6; }
42109   if test "$tst_links_socket" = "yes" &&
42110      test "$tst_proto_socket" = "yes" &&
42111      test "$tst_compi_socket" = "yes" &&
42112      test "$tst_allow_socket" = "yes"; then
42113     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42114 printf "%s\n" "yes" >&6; }
42115
42116 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42117
42118     curl_cv_func_socket="yes"
42119   else
42120     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42121 printf "%s\n" "no" >&6; }
42122     curl_cv_func_socket="no"
42123   fi
42124
42125
42126       #
42127   tst_links_socketpair="unknown"
42128   tst_proto_socketpair="unknown"
42129   tst_compi_socketpair="unknown"
42130   tst_allow_socketpair="unknown"
42131   #
42132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42133 printf %s "checking if socketpair can be linked... " >&6; }
42134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42135 /* end confdefs.h.  */
42136
42137
42138 #define socketpair innocuous_socketpair
42139 #ifdef __STDC__
42140 # include <limits.h>
42141 #else
42142 # include <assert.h>
42143 #endif
42144 #undef socketpair
42145 #ifdef __cplusplus
42146 extern "C"
42147 #endif
42148 char socketpair ();
42149 #if defined __stub_socketpair || defined __stub___socketpair
42150 choke me
42151 #endif
42152
42153 int main (void)
42154 {
42155 return socketpair ();
42156  ;
42157  return 0;
42158 }
42159
42160 _ACEOF
42161 if ac_fn_c_try_link "$LINENO"
42162 then :
42163
42164     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42165 printf "%s\n" "yes" >&6; }
42166     tst_links_socketpair="yes"
42167
42168 else $as_nop
42169
42170     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42171 printf "%s\n" "no" >&6; }
42172     tst_links_socketpair="no"
42173
42174 fi
42175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42176     conftest$ac_exeext conftest.$ac_ext
42177   #
42178   if test "$tst_links_socketpair" = "yes"; then
42179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42180 printf %s "checking if socketpair is prototyped... " >&6; }
42181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42182 /* end confdefs.h.  */
42183
42184       $curl_includes_sys_socket
42185       $curl_includes_socket
42186
42187 _ACEOF
42188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42189   $EGREP "socketpair" >/dev/null 2>&1
42190 then :
42191
42192       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42193 printf "%s\n" "yes" >&6; }
42194       tst_proto_socketpair="yes"
42195
42196 else $as_nop
42197
42198       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42199 printf "%s\n" "no" >&6; }
42200       tst_proto_socketpair="no"
42201
42202 fi
42203 rm -rf conftest*
42204
42205   fi
42206   #
42207   if test "$tst_proto_socketpair" = "yes"; then
42208     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42209 printf %s "checking if socketpair is compilable... " >&6; }
42210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42211 /* end confdefs.h.  */
42212
42213
42214         $curl_includes_sys_socket
42215         $curl_includes_socket
42216
42217 int main (void)
42218 {
42219
42220         int sv[2];
42221         if(0 != socketpair(0, 0, 0, sv))
42222           return 1;
42223
42224  ;
42225  return 0;
42226 }
42227
42228 _ACEOF
42229 if ac_fn_c_try_compile "$LINENO"
42230 then :
42231
42232       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42233 printf "%s\n" "yes" >&6; }
42234       tst_compi_socketpair="yes"
42235
42236 else $as_nop
42237
42238       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42239 printf "%s\n" "no" >&6; }
42240       tst_compi_socketpair="no"
42241
42242 fi
42243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42244   fi
42245   #
42246   if test "$tst_compi_socketpair" = "yes"; then
42247     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42248 printf %s "checking if socketpair usage allowed... " >&6; }
42249     if test "x$curl_disallow_socketpair" != "xyes"; then
42250       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42251 printf "%s\n" "yes" >&6; }
42252       tst_allow_socketpair="yes"
42253     else
42254       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42255 printf "%s\n" "no" >&6; }
42256       tst_allow_socketpair="no"
42257     fi
42258   fi
42259   #
42260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42261 printf %s "checking if socketpair might be used... " >&6; }
42262   if test "$tst_links_socketpair" = "yes" &&
42263      test "$tst_proto_socketpair" = "yes" &&
42264      test "$tst_compi_socketpair" = "yes" &&
42265      test "$tst_allow_socketpair" = "yes"; then
42266     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42267 printf "%s\n" "yes" >&6; }
42268
42269 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42270
42271     curl_cv_func_socketpair="yes"
42272   else
42273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42274 printf "%s\n" "no" >&6; }
42275     curl_cv_func_socketpair="no"
42276   fi
42277
42278
42279     #
42280   tst_links_strcasecmp="unknown"
42281   tst_proto_strcasecmp="unknown"
42282   tst_compi_strcasecmp="unknown"
42283   tst_allow_strcasecmp="unknown"
42284   #
42285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42286 printf %s "checking if strcasecmp can be linked... " >&6; }
42287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42288 /* end confdefs.h.  */
42289
42290
42291 #define strcasecmp innocuous_strcasecmp
42292 #ifdef __STDC__
42293 # include <limits.h>
42294 #else
42295 # include <assert.h>
42296 #endif
42297 #undef strcasecmp
42298 #ifdef __cplusplus
42299 extern "C"
42300 #endif
42301 char strcasecmp ();
42302 #if defined __stub_strcasecmp || defined __stub___strcasecmp
42303 choke me
42304 #endif
42305
42306 int main (void)
42307 {
42308 return strcasecmp ();
42309  ;
42310  return 0;
42311 }
42312
42313 _ACEOF
42314 if ac_fn_c_try_link "$LINENO"
42315 then :
42316
42317     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42318 printf "%s\n" "yes" >&6; }
42319     tst_links_strcasecmp="yes"
42320
42321 else $as_nop
42322
42323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42324 printf "%s\n" "no" >&6; }
42325     tst_links_strcasecmp="no"
42326
42327 fi
42328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42329     conftest$ac_exeext conftest.$ac_ext
42330   #
42331   if test "$tst_links_strcasecmp" = "yes"; then
42332     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42333 printf %s "checking if strcasecmp is prototyped... " >&6; }
42334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42335 /* end confdefs.h.  */
42336
42337       $curl_includes_string
42338
42339 _ACEOF
42340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42341   $EGREP "strcasecmp" >/dev/null 2>&1
42342 then :
42343
42344       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42345 printf "%s\n" "yes" >&6; }
42346       tst_proto_strcasecmp="yes"
42347
42348 else $as_nop
42349
42350       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42351 printf "%s\n" "no" >&6; }
42352       tst_proto_strcasecmp="no"
42353
42354 fi
42355 rm -rf conftest*
42356
42357   fi
42358   #
42359   if test "$tst_proto_strcasecmp" = "yes"; then
42360     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42361 printf %s "checking if strcasecmp is compilable... " >&6; }
42362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42363 /* end confdefs.h.  */
42364
42365
42366         $curl_includes_string
42367
42368 int main (void)
42369 {
42370
42371         if(0 != strcasecmp(0, 0))
42372           return 1;
42373
42374  ;
42375  return 0;
42376 }
42377
42378 _ACEOF
42379 if ac_fn_c_try_compile "$LINENO"
42380 then :
42381
42382       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42383 printf "%s\n" "yes" >&6; }
42384       tst_compi_strcasecmp="yes"
42385
42386 else $as_nop
42387
42388       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42389 printf "%s\n" "no" >&6; }
42390       tst_compi_strcasecmp="no"
42391
42392 fi
42393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42394   fi
42395   #
42396   if test "$tst_compi_strcasecmp" = "yes"; then
42397     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42398 printf %s "checking if strcasecmp usage allowed... " >&6; }
42399     if test "x$curl_disallow_strcasecmp" != "xyes"; then
42400       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42401 printf "%s\n" "yes" >&6; }
42402       tst_allow_strcasecmp="yes"
42403     else
42404       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42405 printf "%s\n" "no" >&6; }
42406       tst_allow_strcasecmp="no"
42407     fi
42408   fi
42409   #
42410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42411 printf %s "checking if strcasecmp might be used... " >&6; }
42412   if test "$tst_links_strcasecmp" = "yes" &&
42413      test "$tst_proto_strcasecmp" = "yes" &&
42414      test "$tst_compi_strcasecmp" = "yes" &&
42415      test "$tst_allow_strcasecmp" = "yes"; then
42416     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42417 printf "%s\n" "yes" >&6; }
42418
42419 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42420
42421     curl_cv_func_strcasecmp="yes"
42422   else
42423     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42424 printf "%s\n" "no" >&6; }
42425     curl_cv_func_strcasecmp="no"
42426   fi
42427
42428
42429     #
42430   tst_links_strcmpi="unknown"
42431   tst_proto_strcmpi="unknown"
42432   tst_compi_strcmpi="unknown"
42433   tst_allow_strcmpi="unknown"
42434   #
42435   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42436 printf %s "checking if strcmpi can be linked... " >&6; }
42437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42438 /* end confdefs.h.  */
42439
42440
42441 #define strcmpi innocuous_strcmpi
42442 #ifdef __STDC__
42443 # include <limits.h>
42444 #else
42445 # include <assert.h>
42446 #endif
42447 #undef strcmpi
42448 #ifdef __cplusplus
42449 extern "C"
42450 #endif
42451 char strcmpi ();
42452 #if defined __stub_strcmpi || defined __stub___strcmpi
42453 choke me
42454 #endif
42455
42456 int main (void)
42457 {
42458 return strcmpi ();
42459  ;
42460  return 0;
42461 }
42462
42463 _ACEOF
42464 if ac_fn_c_try_link "$LINENO"
42465 then :
42466
42467     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42468 printf "%s\n" "yes" >&6; }
42469     tst_links_strcmpi="yes"
42470
42471 else $as_nop
42472
42473     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42474 printf "%s\n" "no" >&6; }
42475     tst_links_strcmpi="no"
42476
42477 fi
42478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42479     conftest$ac_exeext conftest.$ac_ext
42480   #
42481   if test "$tst_links_strcmpi" = "yes"; then
42482     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42483 printf %s "checking if strcmpi is prototyped... " >&6; }
42484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42485 /* end confdefs.h.  */
42486
42487       $curl_includes_string
42488
42489 _ACEOF
42490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42491   $EGREP "strcmpi" >/dev/null 2>&1
42492 then :
42493
42494       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42495 printf "%s\n" "yes" >&6; }
42496       tst_proto_strcmpi="yes"
42497
42498 else $as_nop
42499
42500       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42501 printf "%s\n" "no" >&6; }
42502       tst_proto_strcmpi="no"
42503
42504 fi
42505 rm -rf conftest*
42506
42507   fi
42508   #
42509   if test "$tst_proto_strcmpi" = "yes"; then
42510     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42511 printf %s "checking if strcmpi is compilable... " >&6; }
42512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42513 /* end confdefs.h.  */
42514
42515
42516         $curl_includes_string
42517
42518 int main (void)
42519 {
42520
42521         if(0 != strcmpi(0, 0))
42522           return 1;
42523
42524  ;
42525  return 0;
42526 }
42527
42528 _ACEOF
42529 if ac_fn_c_try_compile "$LINENO"
42530 then :
42531
42532       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42533 printf "%s\n" "yes" >&6; }
42534       tst_compi_strcmpi="yes"
42535
42536 else $as_nop
42537
42538       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42539 printf "%s\n" "no" >&6; }
42540       tst_compi_strcmpi="no"
42541
42542 fi
42543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42544   fi
42545   #
42546   if test "$tst_compi_strcmpi" = "yes"; then
42547     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42548 printf %s "checking if strcmpi usage allowed... " >&6; }
42549     if test "x$curl_disallow_strcmpi" != "xyes"; then
42550       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42551 printf "%s\n" "yes" >&6; }
42552       tst_allow_strcmpi="yes"
42553     else
42554       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42555 printf "%s\n" "no" >&6; }
42556       tst_allow_strcmpi="no"
42557     fi
42558   fi
42559   #
42560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42561 printf %s "checking if strcmpi might be used... " >&6; }
42562   if test "$tst_links_strcmpi" = "yes" &&
42563      test "$tst_proto_strcmpi" = "yes" &&
42564      test "$tst_compi_strcmpi" = "yes" &&
42565      test "$tst_allow_strcmpi" = "yes"; then
42566     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42567 printf "%s\n" "yes" >&6; }
42568
42569 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42570
42571     curl_cv_func_strcmpi="yes"
42572   else
42573     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42574 printf "%s\n" "no" >&6; }
42575     curl_cv_func_strcmpi="no"
42576   fi
42577
42578
42579     #
42580   tst_links_strdup="unknown"
42581   tst_proto_strdup="unknown"
42582   tst_compi_strdup="unknown"
42583   tst_allow_strdup="unknown"
42584   #
42585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42586 printf %s "checking if strdup can be linked... " >&6; }
42587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42588 /* end confdefs.h.  */
42589
42590
42591 #define strdup innocuous_strdup
42592 #ifdef __STDC__
42593 # include <limits.h>
42594 #else
42595 # include <assert.h>
42596 #endif
42597 #undef strdup
42598 #ifdef __cplusplus
42599 extern "C"
42600 #endif
42601 char strdup ();
42602 #if defined __stub_strdup || defined __stub___strdup
42603 choke me
42604 #endif
42605
42606 int main (void)
42607 {
42608 return strdup ();
42609  ;
42610  return 0;
42611 }
42612
42613 _ACEOF
42614 if ac_fn_c_try_link "$LINENO"
42615 then :
42616
42617     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42618 printf "%s\n" "yes" >&6; }
42619     tst_links_strdup="yes"
42620
42621 else $as_nop
42622
42623     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42624 printf "%s\n" "no" >&6; }
42625     tst_links_strdup="no"
42626
42627 fi
42628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42629     conftest$ac_exeext conftest.$ac_ext
42630   #
42631   if test "$tst_links_strdup" = "yes"; then
42632     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42633 printf %s "checking if strdup is prototyped... " >&6; }
42634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42635 /* end confdefs.h.  */
42636
42637       $curl_includes_string
42638
42639 _ACEOF
42640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42641   $EGREP "strdup" >/dev/null 2>&1
42642 then :
42643
42644       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42645 printf "%s\n" "yes" >&6; }
42646       tst_proto_strdup="yes"
42647
42648 else $as_nop
42649
42650       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42651 printf "%s\n" "no" >&6; }
42652       tst_proto_strdup="no"
42653
42654 fi
42655 rm -rf conftest*
42656
42657   fi
42658   #
42659   if test "$tst_proto_strdup" = "yes"; then
42660     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42661 printf %s "checking if strdup is compilable... " >&6; }
42662     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42663 /* end confdefs.h.  */
42664
42665
42666         $curl_includes_string
42667
42668 int main (void)
42669 {
42670
42671         if(0 != strdup(0))
42672           return 1;
42673
42674  ;
42675  return 0;
42676 }
42677
42678 _ACEOF
42679 if ac_fn_c_try_compile "$LINENO"
42680 then :
42681
42682       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42683 printf "%s\n" "yes" >&6; }
42684       tst_compi_strdup="yes"
42685
42686 else $as_nop
42687
42688       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42689 printf "%s\n" "no" >&6; }
42690       tst_compi_strdup="no"
42691
42692 fi
42693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42694   fi
42695   #
42696   if test "$tst_compi_strdup" = "yes"; then
42697     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42698 printf %s "checking if strdup usage allowed... " >&6; }
42699     if test "x$curl_disallow_strdup" != "xyes"; then
42700       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42701 printf "%s\n" "yes" >&6; }
42702       tst_allow_strdup="yes"
42703     else
42704       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42705 printf "%s\n" "no" >&6; }
42706       tst_allow_strdup="no"
42707     fi
42708   fi
42709   #
42710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42711 printf %s "checking if strdup might be used... " >&6; }
42712   if test "$tst_links_strdup" = "yes" &&
42713      test "$tst_proto_strdup" = "yes" &&
42714      test "$tst_compi_strdup" = "yes" &&
42715      test "$tst_allow_strdup" = "yes"; then
42716     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42717 printf "%s\n" "yes" >&6; }
42718
42719 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42720
42721     curl_cv_func_strdup="yes"
42722   else
42723     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42724 printf "%s\n" "no" >&6; }
42725     curl_cv_func_strdup="no"
42726   fi
42727
42728
42729       #
42730   tst_links_strerror_r="unknown"
42731   tst_proto_strerror_r="unknown"
42732   tst_compi_strerror_r="unknown"
42733   tst_glibc_strerror_r="unknown"
42734   tst_posix_strerror_r="unknown"
42735   tst_allow_strerror_r="unknown"
42736   tst_works_glibc_strerror_r="unknown"
42737   tst_works_posix_strerror_r="unknown"
42738   tst_glibc_strerror_r_type_arg3="unknown"
42739   tst_posix_strerror_r_type_arg3="unknown"
42740   #
42741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42742 printf %s "checking if strerror_r can be linked... " >&6; }
42743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744 /* end confdefs.h.  */
42745
42746
42747 #define strerror_r innocuous_strerror_r
42748 #ifdef __STDC__
42749 # include <limits.h>
42750 #else
42751 # include <assert.h>
42752 #endif
42753 #undef strerror_r
42754 #ifdef __cplusplus
42755 extern "C"
42756 #endif
42757 char strerror_r ();
42758 #if defined __stub_strerror_r || defined __stub___strerror_r
42759 choke me
42760 #endif
42761
42762 int main (void)
42763 {
42764 return strerror_r ();
42765  ;
42766  return 0;
42767 }
42768
42769 _ACEOF
42770 if ac_fn_c_try_link "$LINENO"
42771 then :
42772
42773     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42774 printf "%s\n" "yes" >&6; }
42775     tst_links_strerror_r="yes"
42776
42777 else $as_nop
42778
42779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42780 printf "%s\n" "no" >&6; }
42781     tst_links_strerror_r="no"
42782
42783 fi
42784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42785     conftest$ac_exeext conftest.$ac_ext
42786   #
42787   if test "$tst_links_strerror_r" = "yes"; then
42788     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42789 printf %s "checking if strerror_r is prototyped... " >&6; }
42790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42791 /* end confdefs.h.  */
42792
42793       $curl_includes_string
42794
42795 _ACEOF
42796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42797   $EGREP "strerror_r" >/dev/null 2>&1
42798 then :
42799
42800       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42801 printf "%s\n" "yes" >&6; }
42802       tst_proto_strerror_r="yes"
42803
42804 else $as_nop
42805
42806       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42807 printf "%s\n" "no" >&6; }
42808       tst_proto_strerror_r="no"
42809
42810 fi
42811 rm -rf conftest*
42812
42813   fi
42814   #
42815   if test "$tst_proto_strerror_r" = "yes"; then
42816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42817 printf %s "checking if strerror_r is compilable... " >&6; }
42818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42819 /* end confdefs.h.  */
42820
42821
42822         $curl_includes_string
42823
42824 int main (void)
42825 {
42826
42827         if(0 != strerror_r(0, 0, 0))
42828           return 1;
42829
42830  ;
42831  return 0;
42832 }
42833
42834 _ACEOF
42835 if ac_fn_c_try_compile "$LINENO"
42836 then :
42837
42838       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42839 printf "%s\n" "yes" >&6; }
42840       tst_compi_strerror_r="yes"
42841
42842 else $as_nop
42843
42844       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42845 printf "%s\n" "no" >&6; }
42846       tst_compi_strerror_r="no"
42847
42848 fi
42849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42850   fi
42851   #
42852   if test "$tst_compi_strerror_r" = "yes"; then
42853     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42854 printf %s "checking if strerror_r is glibc like... " >&6; }
42855     tst_glibc_strerror_r_type_arg3="unknown"
42856     for arg3 in 'size_t' 'int' 'unsigned int'; do
42857       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42858         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42859 /* end confdefs.h.  */
42860
42861
42862             $curl_includes_string
42863             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42864
42865 int main (void)
42866 {
42867
42868             if(0 != strerror_r(0, 0, 0))
42869               return 1;
42870
42871  ;
42872  return 0;
42873 }
42874
42875 _ACEOF
42876 if ac_fn_c_try_compile "$LINENO"
42877 then :
42878
42879           tst_glibc_strerror_r_type_arg3="$arg3"
42880
42881 fi
42882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42883       fi
42884     done
42885     case "$tst_glibc_strerror_r_type_arg3" in
42886       unknown)
42887         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42888 printf "%s\n" "no" >&6; }
42889         tst_glibc_strerror_r="no"
42890         ;;
42891       *)
42892         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42893 printf "%s\n" "yes" >&6; }
42894         tst_glibc_strerror_r="yes"
42895         ;;
42896     esac
42897   fi
42898   #
42899     if test "x$cross_compiling" != "xyes" &&
42900     test "$tst_glibc_strerror_r" = "yes"; then
42901     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42902 printf %s "checking if strerror_r seems to work... " >&6; }
42903
42904    case $host_os in
42905      darwin*)
42906       if test "$cross_compiling" = yes
42907 then :
42908   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42910 as_fn_error $? "cannot run test program while cross compiling
42911 See \`config.log' for more details" "$LINENO" 5; }
42912 else $as_nop
42913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42914 /* end confdefs.h.  */
42915
42916
42917         $curl_includes_stdlib
42918         $curl_includes_string
42919 #       include <errno.h>
42920
42921 int main (void)
42922 {
42923
42924         char buffer[1024];
42925         char *string = 0;
42926         buffer[0] = '\0';
42927         string = strerror_r(EACCES, buffer, sizeof(buffer));
42928         if(!string)
42929           exit(1); /* fail */
42930         if(!string[0])
42931           exit(1); /* fail */
42932         else
42933           exit(0);
42934
42935  ;
42936  return 0;
42937 }
42938
42939 _ACEOF
42940 if ac_fn_c_try_run "$LINENO"
42941 then :
42942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42943 printf "%s\n" "yes" >&6; }
42944       tst_works_glibc_strerror_r="yes"
42945
42946 else $as_nop
42947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42948 printf "%s\n" "no" >&6; }
42949       tst_works_glibc_strerror_r="no"
42950
42951 fi
42952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42953   conftest.$ac_objext conftest.beam conftest.$ac_ext
42954 fi
42955
42956      ;;
42957      *)
42958       oldcc=$CC
42959       old=$LD_LIBRARY_PATH
42960       CC="sh ./run-compiler"
42961       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42962       export LD_LIBRARY_PATH
42963       if test "$cross_compiling" = yes
42964 then :
42965   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42966 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42967 as_fn_error $? "cannot run test program while cross compiling
42968 See \`config.log' for more details" "$LINENO" 5; }
42969 else $as_nop
42970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42971 /* end confdefs.h.  */
42972
42973
42974         $curl_includes_stdlib
42975         $curl_includes_string
42976 #       include <errno.h>
42977
42978 int main (void)
42979 {
42980
42981         char buffer[1024];
42982         char *string = 0;
42983         buffer[0] = '\0';
42984         string = strerror_r(EACCES, buffer, sizeof(buffer));
42985         if(!string)
42986           exit(1); /* fail */
42987         if(!string[0])
42988           exit(1); /* fail */
42989         else
42990           exit(0);
42991
42992  ;
42993  return 0;
42994 }
42995
42996 _ACEOF
42997 if ac_fn_c_try_run "$LINENO"
42998 then :
42999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43000 printf "%s\n" "yes" >&6; }
43001       tst_works_glibc_strerror_r="yes"
43002
43003 else $as_nop
43004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43005 printf "%s\n" "no" >&6; }
43006       tst_works_glibc_strerror_r="no"
43007
43008 fi
43009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43010   conftest.$ac_objext conftest.beam conftest.$ac_ext
43011 fi
43012
43013       LD_LIBRARY_PATH=$old # restore
43014       CC=$oldcc
43015      ;;
43016    esac
43017
43018   fi
43019   #
43020   if test "$tst_compi_strerror_r" = "yes" &&
43021     test "$tst_works_glibc_strerror_r" != "yes"; then
43022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
43023 printf %s "checking if strerror_r is POSIX like... " >&6; }
43024     tst_posix_strerror_r_type_arg3="unknown"
43025     for arg3 in 'size_t' 'int' 'unsigned int'; do
43026       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
43027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43028 /* end confdefs.h.  */
43029
43030
43031             $curl_includes_string
43032             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
43033
43034 int main (void)
43035 {
43036
43037             if(0 != strerror_r(0, 0, 0))
43038               return 1;
43039
43040  ;
43041  return 0;
43042 }
43043
43044 _ACEOF
43045 if ac_fn_c_try_compile "$LINENO"
43046 then :
43047
43048           tst_posix_strerror_r_type_arg3="$arg3"
43049
43050 fi
43051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43052       fi
43053     done
43054     case "$tst_posix_strerror_r_type_arg3" in
43055       unknown)
43056         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43057 printf "%s\n" "no" >&6; }
43058         tst_posix_strerror_r="no"
43059         ;;
43060       *)
43061         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43062 printf "%s\n" "yes" >&6; }
43063         tst_posix_strerror_r="yes"
43064         ;;
43065     esac
43066   fi
43067   #
43068     if test "x$cross_compiling" != "xyes" &&
43069     test "$tst_posix_strerror_r" = "yes"; then
43070     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43071 printf %s "checking if strerror_r seems to work... " >&6; }
43072
43073    case $host_os in
43074      darwin*)
43075       if test "$cross_compiling" = yes
43076 then :
43077   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43078 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43079 as_fn_error $? "cannot run test program while cross compiling
43080 See \`config.log' for more details" "$LINENO" 5; }
43081 else $as_nop
43082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43083 /* end confdefs.h.  */
43084
43085
43086         $curl_includes_stdlib
43087         $curl_includes_string
43088 #       include <errno.h>
43089
43090 int main (void)
43091 {
43092
43093         char buffer[1024];
43094         int error = 1;
43095         buffer[0] = '\0';
43096         error = strerror_r(EACCES, buffer, sizeof(buffer));
43097         if(error)
43098           exit(1); /* fail */
43099         if(buffer[0] == '\0')
43100           exit(1); /* fail */
43101         else
43102           exit(0);
43103
43104  ;
43105  return 0;
43106 }
43107
43108 _ACEOF
43109 if ac_fn_c_try_run "$LINENO"
43110 then :
43111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43112 printf "%s\n" "yes" >&6; }
43113       tst_works_posix_strerror_r="yes"
43114
43115 else $as_nop
43116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43117 printf "%s\n" "no" >&6; }
43118       tst_works_posix_strerror_r="no"
43119
43120 fi
43121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43122   conftest.$ac_objext conftest.beam conftest.$ac_ext
43123 fi
43124
43125      ;;
43126      *)
43127       oldcc=$CC
43128       old=$LD_LIBRARY_PATH
43129       CC="sh ./run-compiler"
43130       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43131       export LD_LIBRARY_PATH
43132       if test "$cross_compiling" = yes
43133 then :
43134   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43136 as_fn_error $? "cannot run test program while cross compiling
43137 See \`config.log' for more details" "$LINENO" 5; }
43138 else $as_nop
43139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43140 /* end confdefs.h.  */
43141
43142
43143         $curl_includes_stdlib
43144         $curl_includes_string
43145 #       include <errno.h>
43146
43147 int main (void)
43148 {
43149
43150         char buffer[1024];
43151         int error = 1;
43152         buffer[0] = '\0';
43153         error = strerror_r(EACCES, buffer, sizeof(buffer));
43154         if(error)
43155           exit(1); /* fail */
43156         if(buffer[0] == '\0')
43157           exit(1); /* fail */
43158         else
43159           exit(0);
43160
43161  ;
43162  return 0;
43163 }
43164
43165 _ACEOF
43166 if ac_fn_c_try_run "$LINENO"
43167 then :
43168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43169 printf "%s\n" "yes" >&6; }
43170       tst_works_posix_strerror_r="yes"
43171
43172 else $as_nop
43173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43174 printf "%s\n" "no" >&6; }
43175       tst_works_posix_strerror_r="no"
43176
43177 fi
43178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43179   conftest.$ac_objext conftest.beam conftest.$ac_ext
43180 fi
43181
43182       LD_LIBRARY_PATH=$old # restore
43183       CC=$oldcc
43184      ;;
43185    esac
43186
43187   fi
43188   #
43189   if test "$tst_works_glibc_strerror_r" = "yes"; then
43190     tst_posix_strerror_r="no"
43191   fi
43192   if test "$tst_works_posix_strerror_r" = "yes"; then
43193     tst_glibc_strerror_r="no"
43194   fi
43195   if test "$tst_glibc_strerror_r" = "yes" &&
43196     test "$tst_works_glibc_strerror_r" != "no" &&
43197     test "$tst_posix_strerror_r" != "yes"; then
43198     tst_allow_strerror_r="check"
43199   fi
43200   if test "$tst_posix_strerror_r" = "yes" &&
43201     test "$tst_works_posix_strerror_r" != "no" &&
43202     test "$tst_glibc_strerror_r" != "yes"; then
43203     tst_allow_strerror_r="check"
43204   fi
43205   if test "$tst_allow_strerror_r" = "check"; then
43206     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43207 printf %s "checking if strerror_r usage allowed... " >&6; }
43208     if test "x$curl_disallow_strerror_r" != "xyes"; then
43209       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43210 printf "%s\n" "yes" >&6; }
43211       tst_allow_strerror_r="yes"
43212     else
43213       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43214 printf "%s\n" "no" >&6; }
43215       tst_allow_strerror_r="no"
43216     fi
43217   fi
43218   #
43219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43220 printf %s "checking if strerror_r might be used... " >&6; }
43221   if test "$tst_links_strerror_r" = "yes" &&
43222      test "$tst_proto_strerror_r" = "yes" &&
43223      test "$tst_compi_strerror_r" = "yes" &&
43224      test "$tst_allow_strerror_r" = "yes"; then
43225     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43226 printf "%s\n" "yes" >&6; }
43227     if test "$tst_glibc_strerror_r" = "yes"; then
43228
43229 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43230
43231
43232 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43233
43234     fi
43235     if test "$tst_posix_strerror_r" = "yes"; then
43236
43237 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43238
43239
43240 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43241
43242     fi
43243     curl_cv_func_strerror_r="yes"
43244   else
43245     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43246 printf "%s\n" "no" >&6; }
43247     curl_cv_func_strerror_r="no"
43248   fi
43249   #
43250   if test "$tst_compi_strerror_r" = "yes" &&
43251      test "$tst_allow_strerror_r" = "unknown"; then
43252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43253 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43254   fi
43255   #
43256
43257
43258     #
43259   tst_links_stricmp="unknown"
43260   tst_proto_stricmp="unknown"
43261   tst_compi_stricmp="unknown"
43262   tst_allow_stricmp="unknown"
43263   #
43264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43265 printf %s "checking if stricmp can be linked... " >&6; }
43266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43267 /* end confdefs.h.  */
43268
43269
43270 #define stricmp innocuous_stricmp
43271 #ifdef __STDC__
43272 # include <limits.h>
43273 #else
43274 # include <assert.h>
43275 #endif
43276 #undef stricmp
43277 #ifdef __cplusplus
43278 extern "C"
43279 #endif
43280 char stricmp ();
43281 #if defined __stub_stricmp || defined __stub___stricmp
43282 choke me
43283 #endif
43284
43285 int main (void)
43286 {
43287 return stricmp ();
43288  ;
43289  return 0;
43290 }
43291
43292 _ACEOF
43293 if ac_fn_c_try_link "$LINENO"
43294 then :
43295
43296     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43297 printf "%s\n" "yes" >&6; }
43298     tst_links_stricmp="yes"
43299
43300 else $as_nop
43301
43302     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43303 printf "%s\n" "no" >&6; }
43304     tst_links_stricmp="no"
43305
43306 fi
43307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43308     conftest$ac_exeext conftest.$ac_ext
43309   #
43310   if test "$tst_links_stricmp" = "yes"; then
43311     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43312 printf %s "checking if stricmp is prototyped... " >&6; }
43313     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43314 /* end confdefs.h.  */
43315
43316       $curl_includes_string
43317
43318 _ACEOF
43319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43320   $EGREP "stricmp" >/dev/null 2>&1
43321 then :
43322
43323       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43324 printf "%s\n" "yes" >&6; }
43325       tst_proto_stricmp="yes"
43326
43327 else $as_nop
43328
43329       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43330 printf "%s\n" "no" >&6; }
43331       tst_proto_stricmp="no"
43332
43333 fi
43334 rm -rf conftest*
43335
43336   fi
43337   #
43338   if test "$tst_proto_stricmp" = "yes"; then
43339     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43340 printf %s "checking if stricmp is compilable... " >&6; }
43341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43342 /* end confdefs.h.  */
43343
43344
43345         $curl_includes_string
43346
43347 int main (void)
43348 {
43349
43350         if(0 != stricmp(0, 0))
43351           return 1;
43352
43353  ;
43354  return 0;
43355 }
43356
43357 _ACEOF
43358 if ac_fn_c_try_compile "$LINENO"
43359 then :
43360
43361       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43362 printf "%s\n" "yes" >&6; }
43363       tst_compi_stricmp="yes"
43364
43365 else $as_nop
43366
43367       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43368 printf "%s\n" "no" >&6; }
43369       tst_compi_stricmp="no"
43370
43371 fi
43372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43373   fi
43374   #
43375   if test "$tst_compi_stricmp" = "yes"; then
43376     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43377 printf %s "checking if stricmp usage allowed... " >&6; }
43378     if test "x$curl_disallow_stricmp" != "xyes"; then
43379       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43380 printf "%s\n" "yes" >&6; }
43381       tst_allow_stricmp="yes"
43382     else
43383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43384 printf "%s\n" "no" >&6; }
43385       tst_allow_stricmp="no"
43386     fi
43387   fi
43388   #
43389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43390 printf %s "checking if stricmp might be used... " >&6; }
43391   if test "$tst_links_stricmp" = "yes" &&
43392      test "$tst_proto_stricmp" = "yes" &&
43393      test "$tst_compi_stricmp" = "yes" &&
43394      test "$tst_allow_stricmp" = "yes"; then
43395     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43396 printf "%s\n" "yes" >&6; }
43397
43398 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43399
43400     curl_cv_func_stricmp="yes"
43401   else
43402     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43403 printf "%s\n" "no" >&6; }
43404     curl_cv_func_stricmp="no"
43405   fi
43406
43407
43408     #
43409   tst_links_strtok_r="unknown"
43410   tst_proto_strtok_r="unknown"
43411   tst_compi_strtok_r="unknown"
43412   tst_allow_strtok_r="unknown"
43413   #
43414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43415 printf %s "checking if strtok_r can be linked... " >&6; }
43416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43417 /* end confdefs.h.  */
43418
43419
43420 #define strtok_r innocuous_strtok_r
43421 #ifdef __STDC__
43422 # include <limits.h>
43423 #else
43424 # include <assert.h>
43425 #endif
43426 #undef strtok_r
43427 #ifdef __cplusplus
43428 extern "C"
43429 #endif
43430 char strtok_r ();
43431 #if defined __stub_strtok_r || defined __stub___strtok_r
43432 choke me
43433 #endif
43434
43435 int main (void)
43436 {
43437 return strtok_r ();
43438  ;
43439  return 0;
43440 }
43441
43442 _ACEOF
43443 if ac_fn_c_try_link "$LINENO"
43444 then :
43445
43446     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43447 printf "%s\n" "yes" >&6; }
43448     tst_links_strtok_r="yes"
43449
43450 else $as_nop
43451
43452     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43453 printf "%s\n" "no" >&6; }
43454     tst_links_strtok_r="no"
43455
43456 fi
43457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43458     conftest$ac_exeext conftest.$ac_ext
43459   #
43460   if test "$tst_links_strtok_r" = "yes"; then
43461     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43462 printf %s "checking if strtok_r is prototyped... " >&6; }
43463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43464 /* end confdefs.h.  */
43465
43466       $curl_includes_string
43467
43468 _ACEOF
43469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43470   $EGREP "strtok_r" >/dev/null 2>&1
43471 then :
43472
43473       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43474 printf "%s\n" "yes" >&6; }
43475       tst_proto_strtok_r="yes"
43476
43477 else $as_nop
43478
43479       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43480 printf "%s\n" "no" >&6; }
43481       tst_proto_strtok_r="no"
43482
43483 fi
43484 rm -rf conftest*
43485
43486   fi
43487   #
43488   if test "$tst_proto_strtok_r" = "yes"; then
43489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43490 printf %s "checking if strtok_r is compilable... " >&6; }
43491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43492 /* end confdefs.h.  */
43493
43494
43495         $curl_includes_string
43496
43497 int main (void)
43498 {
43499
43500         if(0 != strtok_r(0, 0, 0))
43501           return 1;
43502
43503  ;
43504  return 0;
43505 }
43506
43507 _ACEOF
43508 if ac_fn_c_try_compile "$LINENO"
43509 then :
43510
43511       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43512 printf "%s\n" "yes" >&6; }
43513       tst_compi_strtok_r="yes"
43514
43515 else $as_nop
43516
43517       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43518 printf "%s\n" "no" >&6; }
43519       tst_compi_strtok_r="no"
43520
43521 fi
43522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43523   fi
43524   #
43525   if test "$tst_compi_strtok_r" = "yes"; then
43526     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43527 printf %s "checking if strtok_r usage allowed... " >&6; }
43528     if test "x$curl_disallow_strtok_r" != "xyes"; then
43529       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43530 printf "%s\n" "yes" >&6; }
43531       tst_allow_strtok_r="yes"
43532     else
43533       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43534 printf "%s\n" "no" >&6; }
43535       tst_allow_strtok_r="no"
43536     fi
43537   fi
43538   #
43539   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43540 printf %s "checking if strtok_r might be used... " >&6; }
43541   if test "$tst_links_strtok_r" = "yes" &&
43542      test "$tst_proto_strtok_r" = "yes" &&
43543      test "$tst_compi_strtok_r" = "yes" &&
43544      test "$tst_allow_strtok_r" = "yes"; then
43545     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43546 printf "%s\n" "yes" >&6; }
43547
43548 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43549
43550     curl_cv_func_strtok_r="yes"
43551   else
43552     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43553 printf "%s\n" "no" >&6; }
43554     curl_cv_func_strtok_r="no"
43555   fi
43556
43557
43558     #
43559   tst_links_strtoll="unknown"
43560   tst_proto_strtoll="unknown"
43561   tst_compi_strtoll="unknown"
43562   tst_allow_strtoll="unknown"
43563   #
43564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43565 printf %s "checking if strtoll can be linked... " >&6; }
43566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43567 /* end confdefs.h.  */
43568
43569
43570 #define strtoll innocuous_strtoll
43571 #ifdef __STDC__
43572 # include <limits.h>
43573 #else
43574 # include <assert.h>
43575 #endif
43576 #undef strtoll
43577 #ifdef __cplusplus
43578 extern "C"
43579 #endif
43580 char strtoll ();
43581 #if defined __stub_strtoll || defined __stub___strtoll
43582 choke me
43583 #endif
43584
43585 int main (void)
43586 {
43587 return strtoll ();
43588  ;
43589  return 0;
43590 }
43591
43592 _ACEOF
43593 if ac_fn_c_try_link "$LINENO"
43594 then :
43595
43596     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43597 printf "%s\n" "yes" >&6; }
43598     tst_links_strtoll="yes"
43599
43600 else $as_nop
43601
43602     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43603 printf "%s\n" "no" >&6; }
43604     tst_links_strtoll="no"
43605
43606 fi
43607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43608     conftest$ac_exeext conftest.$ac_ext
43609   #
43610   if test "$tst_links_strtoll" = "yes"; then
43611     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43612 printf %s "checking if strtoll is prototyped... " >&6; }
43613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43614 /* end confdefs.h.  */
43615
43616       $curl_includes_stdlib
43617
43618 _ACEOF
43619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43620   $EGREP "strtoll" >/dev/null 2>&1
43621 then :
43622
43623       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43624 printf "%s\n" "yes" >&6; }
43625       tst_proto_strtoll="yes"
43626
43627 else $as_nop
43628
43629       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43630 printf "%s\n" "no" >&6; }
43631       tst_proto_strtoll="no"
43632
43633 fi
43634 rm -rf conftest*
43635
43636   fi
43637   #
43638   if test "$tst_proto_strtoll" = "yes"; then
43639     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43640 printf %s "checking if strtoll is compilable... " >&6; }
43641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43642 /* end confdefs.h.  */
43643
43644
43645         $curl_includes_stdlib
43646
43647 int main (void)
43648 {
43649
43650         if(0 != strtoll(0, 0, 0))
43651           return 1;
43652
43653  ;
43654  return 0;
43655 }
43656
43657 _ACEOF
43658 if ac_fn_c_try_compile "$LINENO"
43659 then :
43660
43661       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43662 printf "%s\n" "yes" >&6; }
43663       tst_compi_strtoll="yes"
43664
43665 else $as_nop
43666
43667       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43668 printf "%s\n" "no" >&6; }
43669       tst_compi_strtoll="no"
43670
43671 fi
43672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43673   fi
43674   #
43675   if test "$tst_compi_strtoll" = "yes"; then
43676     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43677 printf %s "checking if strtoll usage allowed... " >&6; }
43678     if test "x$curl_disallow_strtoll" != "xyes"; then
43679       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43680 printf "%s\n" "yes" >&6; }
43681       tst_allow_strtoll="yes"
43682     else
43683       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43684 printf "%s\n" "no" >&6; }
43685       tst_allow_strtoll="no"
43686     fi
43687   fi
43688   #
43689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43690 printf %s "checking if strtoll might be used... " >&6; }
43691   if test "$tst_links_strtoll" = "yes" &&
43692      test "$tst_proto_strtoll" = "yes" &&
43693      test "$tst_compi_strtoll" = "yes" &&
43694      test "$tst_allow_strtoll" = "yes"; then
43695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43696 printf "%s\n" "yes" >&6; }
43697
43698 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43699
43700     curl_cv_func_strtoll="yes"
43701   else
43702     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43703 printf "%s\n" "no" >&6; }
43704     curl_cv_func_strtoll="no"
43705   fi
43706
43707
43708 case $host in
43709   *msdosdjgpp)
43710      ac_cv_func_pipe=no
43711      skipcheck_pipe=yes
43712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43713 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43714     ;;
43715 esac
43716
43717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43718 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43719 if test ${ac_cv_c_undeclared_builtin_options+y}
43720 then :
43721   printf %s "(cached) " >&6
43722 else $as_nop
43723   ac_save_CFLAGS=$CFLAGS
43724    ac_cv_c_undeclared_builtin_options='cannot detect'
43725    for ac_arg in '' -fno-builtin; do
43726      CFLAGS="$ac_save_CFLAGS $ac_arg"
43727      # This test program should *not* compile successfully.
43728      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43729 /* end confdefs.h.  */
43730
43731 int main (void)
43732 {
43733 (void) strchr;
43734  ;
43735  return 0;
43736 }
43737 _ACEOF
43738 if ac_fn_c_try_compile "$LINENO"
43739 then :
43740
43741 else $as_nop
43742   # This test program should compile successfully.
43743         # No library function is consistently available on
43744         # freestanding implementations, so test against a dummy
43745         # declaration.  Include always-available headers on the
43746         # off chance that they somehow elicit warnings.
43747         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43748 /* end confdefs.h.  */
43749 #include <float.h>
43750 #include <limits.h>
43751 #include <stdarg.h>
43752 #include <stddef.h>
43753 extern void ac_decl (int, char *);
43754
43755 int main (void)
43756 {
43757 (void) ac_decl (0, (char *) 0);
43758   (void) ac_decl;
43759
43760  ;
43761  return 0;
43762 }
43763 _ACEOF
43764 if ac_fn_c_try_compile "$LINENO"
43765 then :
43766   if test x"$ac_arg" = x
43767 then :
43768   ac_cv_c_undeclared_builtin_options='none needed'
43769 else $as_nop
43770   ac_cv_c_undeclared_builtin_options=$ac_arg
43771 fi
43772           break
43773 fi
43774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43775 fi
43776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43777     done
43778     CFLAGS=$ac_save_CFLAGS
43779
43780 fi
43781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43782 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43783   case $ac_cv_c_undeclared_builtin_options in #(
43784   'cannot detect') :
43785     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43787 as_fn_error $? "cannot make $CC report undeclared builtins
43788 See \`config.log' for more details" "$LINENO" 5; } ;; #(
43789   'none needed') :
43790     ac_c_undeclared_builtin_options='' ;; #(
43791   *) :
43792     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43793 esac
43794
43795 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43796           #include <sys/types.h>
43797 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43798 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43799 then :
43800   ac_have_decl=1
43801 else $as_nop
43802   ac_have_decl=0
43803 fi
43804 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43805 if test $ac_have_decl = 1
43806 then :
43807
43808 else $as_nop
43809
43810 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43811
43812 fi
43813
43814
43815
43816   for ac_func in _fseeki64 arc4random fnmatch fseeko geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43817 do :
43818   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43820 if eval test \"x\$"$as_ac_var"\" = x"yes"
43821 then :
43822   cat >>confdefs.h <<_ACEOF
43823 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43824 _ACEOF
43825
43826
43827 else $as_nop
43828
43829   func="$ac_func"
43830   eval skipcheck=\$skipcheck_$func
43831   if test "x$skipcheck" != "xyes"; then
43832     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43833 printf %s "checking deeper for $func... " >&6; }
43834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43835 /* end confdefs.h.  */
43836
43837
43838
43839 int main (void)
43840 {
43841
43842         $func ();
43843
43844  ;
43845  return 0;
43846 }
43847
43848 _ACEOF
43849 if ac_fn_c_try_link "$LINENO"
43850 then :
43851
43852       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43853 printf "%s\n" "yes" >&6; }
43854       eval "ac_cv_func_$func=yes"
43855
43856 cat >>confdefs.h <<_ACEOF
43857 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43858 _ACEOF
43859
43860
43861 else $as_nop
43862
43863       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43864 printf "%s\n" "but still no" >&6; }
43865
43866 fi
43867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43868     conftest$ac_exeext conftest.$ac_ext
43869   fi
43870
43871 fi
43872
43873 done
43874
43875 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h>
43876 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43877 if test "x$ac_cv_have_decl_fseeko" = xyes
43878 then :
43879
43880 printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h
43881
43882 fi
43883
43884
43885         #
43886   tst_method="unknown"
43887
43888   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43889 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43890   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43891     tst_method="fcntl O_NONBLOCK"
43892   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43893     tst_method="ioctl FIONBIO"
43894   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43895     tst_method="ioctlsocket FIONBIO"
43896   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43897     tst_method="IoctlSocket FIONBIO"
43898   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43899     tst_method="setsockopt SO_NONBLOCK"
43900   fi
43901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43902 printf "%s\n" "$tst_method" >&6; }
43903   if test "$tst_method" = "unknown"; then
43904     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43905 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43906   fi
43907
43908
43909
43910 # Extract the first word of "perl", so it can be a program name with args.
43911 set dummy perl; ac_word=$2
43912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43913 printf %s "checking for $ac_word... " >&6; }
43914 if test ${ac_cv_path_PERL+y}
43915 then :
43916   printf %s "(cached) " >&6
43917 else $as_nop
43918   case $PERL in
43919   [\\/]* | ?:[\\/]*)
43920   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43921   ;;
43922   *)
43923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43924 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43925 for as_dir in $as_dummy
43926 do
43927   IFS=$as_save_IFS
43928   case $as_dir in #(((
43929     '') as_dir=./ ;;
43930     */) ;;
43931     *) as_dir=$as_dir/ ;;
43932   esac
43933     for ac_exec_ext in '' $ac_executable_extensions; do
43934   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43935     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43936     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43937     break 2
43938   fi
43939 done
43940   done
43941 IFS=$as_save_IFS
43942
43943   ;;
43944 esac
43945 fi
43946 PERL=$ac_cv_path_PERL
43947 if test -n "$PERL"; then
43948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43949 printf "%s\n" "$PERL" >&6; }
43950 else
43951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43952 printf "%s\n" "no" >&6; }
43953 fi
43954
43955
43956
43957
43958 for ac_prog in gnroff nroff
43959 do
43960   # Extract the first word of "$ac_prog", so it can be a program name with args.
43961 set dummy $ac_prog; ac_word=$2
43962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43963 printf %s "checking for $ac_word... " >&6; }
43964 if test ${ac_cv_path_NROFF+y}
43965 then :
43966   printf %s "(cached) " >&6
43967 else $as_nop
43968   case $NROFF in
43969   [\\/]* | ?:[\\/]*)
43970   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43971   ;;
43972   *)
43973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43974 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43975 for as_dir in $as_dummy
43976 do
43977   IFS=$as_save_IFS
43978   case $as_dir in #(((
43979     '') as_dir=./ ;;
43980     */) ;;
43981     *) as_dir=$as_dir/ ;;
43982   esac
43983     for ac_exec_ext in '' $ac_executable_extensions; do
43984   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43985     ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43986     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43987     break 2
43988   fi
43989 done
43990   done
43991 IFS=$as_save_IFS
43992
43993   ;;
43994 esac
43995 fi
43996 NROFF=$ac_cv_path_NROFF
43997 if test -n "$NROFF"; then
43998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43999 printf "%s\n" "$NROFF" >&6; }
44000 else
44001   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44002 printf "%s\n" "no" >&6; }
44003 fi
44004
44005
44006   test -n "$NROFF" && break
44007 done
44008
44009
44010
44011 if test -n "$NROFF"; then
44012
44013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
44014 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
44015   MANOPT="-man"
44016   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44017   if test -z "$mancheck"; then
44018     MANOPT="-mandoc"
44019    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44020     if test -z "$mancheck"; then
44021       MANOPT=""
44022       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
44023 printf "%s\n" "failed" >&6; }
44024       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
44025 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
44026     else
44027       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44028 printf "%s\n" "$MANOPT" >&6; }
44029     fi
44030   else
44031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44032 printf "%s\n" "$MANOPT" >&6; }
44033   fi
44034
44035 fi
44036
44037 if test -z "$MANOPT"
44038 then
44039       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
44040 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
44041   USE_MANUAL="no";
44042 fi
44043
44044
44045 if test "$USE_MANUAL" = "1"; then
44046
44047 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44048
44049   curl_manual_msg="enabled"
44050 fi
44051
44052  if test x"$USE_MANUAL" = x1; then
44053   USE_MANUAL_TRUE=
44054   USE_MANUAL_FALSE='#'
44055 else
44056   USE_MANUAL_TRUE='#'
44057   USE_MANUAL_FALSE=
44058 fi
44059
44060
44061
44062   #
44063   if test "$want_ares" = "yes"; then
44064         clean_CPPFLAGS="$CPPFLAGS"
44065     clean_LDFLAGS="$LDFLAGS"
44066     clean_LIBS="$LIBS"
44067     configure_runpath=`pwd`
44068     if test -n "$want_ares_path"; then
44069             ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44070
44071     if test -n "$PKG_CONFIG"; then
44072       PKGCONFIG="$PKG_CONFIG"
44073     else
44074       if test -n "$ac_tool_prefix"; then
44075   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44076 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44078 printf %s "checking for $ac_word... " >&6; }
44079 if test ${ac_cv_path_PKGCONFIG+y}
44080 then :
44081   printf %s "(cached) " >&6
44082 else $as_nop
44083   case $PKGCONFIG in
44084   [\\/]* | ?:[\\/]*)
44085   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44086   ;;
44087   *)
44088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44089 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44090 for as_dir in $as_dummy
44091 do
44092   IFS=$as_save_IFS
44093   case $as_dir in #(((
44094     '') as_dir=./ ;;
44095     */) ;;
44096     *) as_dir=$as_dir/ ;;
44097   esac
44098     for ac_exec_ext in '' $ac_executable_extensions; do
44099   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44100     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44101     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44102     break 2
44103   fi
44104 done
44105   done
44106 IFS=$as_save_IFS
44107
44108   ;;
44109 esac
44110 fi
44111 PKGCONFIG=$ac_cv_path_PKGCONFIG
44112 if test -n "$PKGCONFIG"; then
44113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44114 printf "%s\n" "$PKGCONFIG" >&6; }
44115 else
44116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44117 printf "%s\n" "no" >&6; }
44118 fi
44119
44120
44121 fi
44122 if test -z "$ac_cv_path_PKGCONFIG"; then
44123   ac_pt_PKGCONFIG=$PKGCONFIG
44124   # Extract the first word of "pkg-config", so it can be a program name with args.
44125 set dummy pkg-config; ac_word=$2
44126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44127 printf %s "checking for $ac_word... " >&6; }
44128 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44129 then :
44130   printf %s "(cached) " >&6
44131 else $as_nop
44132   case $ac_pt_PKGCONFIG in
44133   [\\/]* | ?:[\\/]*)
44134   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44135   ;;
44136   *)
44137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44138 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44139 for as_dir in $as_dummy
44140 do
44141   IFS=$as_save_IFS
44142   case $as_dir in #(((
44143     '') as_dir=./ ;;
44144     */) ;;
44145     *) as_dir=$as_dir/ ;;
44146   esac
44147     for ac_exec_ext in '' $ac_executable_extensions; do
44148   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44149     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44150     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44151     break 2
44152   fi
44153 done
44154   done
44155 IFS=$as_save_IFS
44156
44157   ;;
44158 esac
44159 fi
44160 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44161 if test -n "$ac_pt_PKGCONFIG"; then
44162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44163 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44164 else
44165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44166 printf "%s\n" "no" >&6; }
44167 fi
44168
44169   if test "x$ac_pt_PKGCONFIG" = x; then
44170     PKGCONFIG="no"
44171   else
44172     case $cross_compiling:$ac_tool_warned in
44173 yes:)
44174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44176 ac_tool_warned=yes ;;
44177 esac
44178     PKGCONFIG=$ac_pt_PKGCONFIG
44179   fi
44180 else
44181   PKGCONFIG="$ac_cv_path_PKGCONFIG"
44182 fi
44183
44184     fi
44185
44186     if test "x$PKGCONFIG" != "xno"; then
44187       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44188 printf %s "checking for libcares options with pkg-config... " >&6; }
44189             itexists=`
44190     if test -n "$ARES_PCDIR"; then
44191       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44192       export PKG_CONFIG_LIBDIR
44193     fi
44194          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44195
44196       if test -z "$itexists"; then
44197                         PKGCONFIG="no"
44198         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44199 printf "%s\n" "no" >&6; }
44200       else
44201         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44202 printf "%s\n" "found" >&6; }
44203       fi
44204     fi
44205
44206       if test "$PKGCONFIG" != "no" ; then
44207         ares_LIBS=`
44208     if test -n "$ARES_PCDIR"; then
44209       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44210       export PKG_CONFIG_LIBDIR
44211     fi
44212
44213           $PKGCONFIG --libs-only-l libcares`
44214         ares_LDFLAGS=`
44215     if test -n "$ARES_PCDIR"; then
44216       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44217       export PKG_CONFIG_LIBDIR
44218     fi
44219
44220           $PKGCONFIG --libs-only-L libcares`
44221         ares_CPPFLAGS=`
44222     if test -n "$ARES_PCDIR"; then
44223       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44224       export PKG_CONFIG_LIBDIR
44225     fi
44226
44227           $PKGCONFIG --cflags-only-I libcares`
44228         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
44229 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
44230         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
44231 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44232         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44233 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44234       else
44235                 ares_CPPFLAGS="-I$want_ares_path/include"
44236         ares_LDFLAGS="-L$want_ares_path/lib"
44237         ares_LIBS="-lcares"
44238       fi
44239     else
44240
44241     if test -n "$PKG_CONFIG"; then
44242       PKGCONFIG="$PKG_CONFIG"
44243     else
44244       if test -n "$ac_tool_prefix"; then
44245   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44246 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44248 printf %s "checking for $ac_word... " >&6; }
44249 if test ${ac_cv_path_PKGCONFIG+y}
44250 then :
44251   printf %s "(cached) " >&6
44252 else $as_nop
44253   case $PKGCONFIG in
44254   [\\/]* | ?:[\\/]*)
44255   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44256   ;;
44257   *)
44258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44259 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44260 for as_dir in $as_dummy
44261 do
44262   IFS=$as_save_IFS
44263   case $as_dir in #(((
44264     '') as_dir=./ ;;
44265     */) ;;
44266     *) as_dir=$as_dir/ ;;
44267   esac
44268     for ac_exec_ext in '' $ac_executable_extensions; do
44269   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44270     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44271     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44272     break 2
44273   fi
44274 done
44275   done
44276 IFS=$as_save_IFS
44277
44278   ;;
44279 esac
44280 fi
44281 PKGCONFIG=$ac_cv_path_PKGCONFIG
44282 if test -n "$PKGCONFIG"; then
44283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44284 printf "%s\n" "$PKGCONFIG" >&6; }
44285 else
44286   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44287 printf "%s\n" "no" >&6; }
44288 fi
44289
44290
44291 fi
44292 if test -z "$ac_cv_path_PKGCONFIG"; then
44293   ac_pt_PKGCONFIG=$PKGCONFIG
44294   # Extract the first word of "pkg-config", so it can be a program name with args.
44295 set dummy pkg-config; ac_word=$2
44296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44297 printf %s "checking for $ac_word... " >&6; }
44298 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44299 then :
44300   printf %s "(cached) " >&6
44301 else $as_nop
44302   case $ac_pt_PKGCONFIG in
44303   [\\/]* | ?:[\\/]*)
44304   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44305   ;;
44306   *)
44307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44309 for as_dir in $as_dummy
44310 do
44311   IFS=$as_save_IFS
44312   case $as_dir in #(((
44313     '') as_dir=./ ;;
44314     */) ;;
44315     *) as_dir=$as_dir/ ;;
44316   esac
44317     for ac_exec_ext in '' $ac_executable_extensions; do
44318   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44319     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44320     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44321     break 2
44322   fi
44323 done
44324   done
44325 IFS=$as_save_IFS
44326
44327   ;;
44328 esac
44329 fi
44330 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44331 if test -n "$ac_pt_PKGCONFIG"; then
44332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44333 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44334 else
44335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44336 printf "%s\n" "no" >&6; }
44337 fi
44338
44339   if test "x$ac_pt_PKGCONFIG" = x; then
44340     PKGCONFIG="no"
44341   else
44342     case $cross_compiling:$ac_tool_warned in
44343 yes:)
44344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44346 ac_tool_warned=yes ;;
44347 esac
44348     PKGCONFIG=$ac_pt_PKGCONFIG
44349   fi
44350 else
44351   PKGCONFIG="$ac_cv_path_PKGCONFIG"
44352 fi
44353
44354     fi
44355
44356     if test "x$PKGCONFIG" != "xno"; then
44357       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44358 printf %s "checking for libcares options with pkg-config... " >&6; }
44359             itexists=`
44360     if test -n ""; then
44361       PKG_CONFIG_LIBDIR=""
44362       export PKG_CONFIG_LIBDIR
44363     fi
44364          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44365
44366       if test -z "$itexists"; then
44367                         PKGCONFIG="no"
44368         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44369 printf "%s\n" "no" >&6; }
44370       else
44371         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44372 printf "%s\n" "found" >&6; }
44373       fi
44374     fi
44375
44376       if test "$PKGCONFIG" != "no" ; then
44377         ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44378         ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44379         ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44380         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44381 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44382         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44383 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44384         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44385 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44386       else
44387         ares_CPPFLAGS=""
44388         ares_LDFLAGS=""
44389         ares_LIBS="-lcares"
44390       fi
44391     fi
44392     #
44393     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44394     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44395     LIBS="$ares_LIBS $clean_LIBS"
44396     #
44397
44398         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44399 printf %s "checking that c-ares is good and recent enough... " >&6; }
44400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44401 /* end confdefs.h.  */
44402
44403
44404 #include <ares.h>
44405         /* set of dummy functions in case c-ares was built with debug */
44406         void curl_dofree() { }
44407         void curl_sclose() { }
44408         void curl_domalloc() { }
44409         void curl_docalloc() { }
44410         void curl_socket() { }
44411
44412 int main (void)
44413 {
44414
44415         ares_channel channel;
44416         ares_cancel(channel); /* added in 1.2.0 */
44417         ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44418         ares_dup(&channel, channel); /* added in 1.6.0 */
44419
44420  ;
44421  return 0;
44422 }
44423
44424 _ACEOF
44425 if ac_fn_c_try_link "$LINENO"
44426 then :
44427
44428       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44429 printf "%s\n" "yes" >&6; }
44430
44431 else $as_nop
44432
44433       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44434 printf "%s\n" "no" >&6; }
44435       as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44436             CPPFLAGS="$clean_CPPFLAGS"
44437       LDFLAGS="$clean_LDFLAGS"
44438       LIBS="$clean_LIBS"
44439       # prevent usage
44440       want_ares="no"
44441
44442 fi
44443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44444     conftest$ac_exeext conftest.$ac_ext
44445
44446     if test "$want_ares" = "yes"; then
44447
44448 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44449
44450       USE_ARES=1
44451
44452       curl_res_msg="c-ares"
44453     fi
44454   fi
44455
44456
44457 if test "x$curl_cv_native_windows" != "xyes" &&
44458    test "x$enable_shared" = "xyes"; then
44459   build_libhostname=yes
44460 else
44461   build_libhostname=no
44462 fi
44463  if test x$build_libhostname = xyes; then
44464   BUILD_LIBHOSTNAME_TRUE=
44465   BUILD_LIBHOSTNAME_FALSE='#'
44466 else
44467   BUILD_LIBHOSTNAME_TRUE='#'
44468   BUILD_LIBHOSTNAME_FALSE=
44469 fi
44470
44471
44472 if test "x$want_ares" != xyes; then
44473
44474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44475 printf %s "checking whether to enable the threaded resolver... " >&6; }
44476   OPT_THRES="default"
44477   # Check whether --enable-threaded_resolver was given.
44478 if test ${enable_threaded_resolver+y}
44479 then :
44480   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44481 fi
44482
44483   case "$OPT_THRES" in
44484     no)
44485             want_thres="no"
44486       ;;
44487     *)
44488             want_thres="yes"
44489       ;;
44490   esac
44491   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44492 printf "%s\n" "$want_thres" >&6; }
44493
44494 fi
44495
44496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44497 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44498 # Check whether --enable-pthreads was given.
44499 if test ${enable_pthreads+y}
44500 then :
44501   enableval=$enable_pthreads;  case "$enableval" in
44502   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44503 printf "%s\n" "no" >&6; }
44504        want_pthreads=no
44505        ;;
44506   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44507 printf "%s\n" "yes" >&6; }
44508        want_pthreads=yes
44509        ;;
44510   esac
44511 else $as_nop
44512
44513        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44514 printf "%s\n" "auto" >&6; }
44515        want_pthreads=auto
44516
44517
44518 fi
44519
44520
44521 if test "$want_pthreads" != "no"; then
44522   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44523     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44524   fi
44525   if test "$dontwant_rt" != "no"; then
44526         if test "$want_pthreads" = "yes"; then
44527       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44528 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44529     fi
44530     want_pthreads=no
44531   fi
44532 fi
44533
44534 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44535   want_pthreads=no
44536 fi
44537
44538 if test "$want_pthreads" != "no"; then
44539   ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44540 if test "x$ac_cv_header_pthread_h" = xyes
44541 then :
44542
44543 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44544
44545       save_CFLAGS="$CFLAGS"
44546                                     save_LIBS="$LIBS"
44547
44548       LIBS=
44549             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44550 if test "x$ac_cv_func_pthread_create" = xyes
44551 then :
44552   USE_THREADS_POSIX=1
44553 fi
44554
44555       LIBS="$save_LIBS"
44556
44557             case $host in
44558       *-hp-hpux*)
44559                   USE_THREADS_POSIX=""
44560          ;;
44561       *)
44562          ;;
44563       esac
44564
44565             if test "$USE_THREADS_POSIX" != "1"
44566       then
44567         # assign PTHREAD for pkg-config use
44568         PTHREAD=" -pthread"
44569
44570         case $host in
44571         *-ibm-aix*)
44572                       COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44573            if test x"$COMPILER_VERSION" = "x"; then
44574              CFLAGS="$CFLAGS -pthread"
44575            else
44576              CFLAGS="$CFLAGS -qthreaded"
44577            fi
44578            ;;
44579         powerpc-*amigaos*)
44580                       PTHREAD=" -lpthread"
44581            ;;
44582         *)
44583            CFLAGS="$CFLAGS -pthread"
44584            ;;
44585         esac
44586         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44587 printf %s "checking for pthread_create in -lpthread... " >&6; }
44588 if test ${ac_cv_lib_pthread_pthread_create+y}
44589 then :
44590   printf %s "(cached) " >&6
44591 else $as_nop
44592   ac_check_lib_save_LIBS=$LIBS
44593 LIBS="-lpthread  $LIBS"
44594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44595 /* end confdefs.h.  */
44596
44597
44598 #ifdef __cplusplus
44599 extern "C"
44600 #endif
44601 char pthread_create ();
44602 int main (void)
44603 {
44604 return pthread_create ();
44605  ;
44606  return 0;
44607 }
44608 _ACEOF
44609 if ac_fn_c_try_link "$LINENO"
44610 then :
44611   ac_cv_lib_pthread_pthread_create=yes
44612 else $as_nop
44613   ac_cv_lib_pthread_pthread_create=no
44614 fi
44615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44616     conftest$ac_exeext conftest.$ac_ext
44617 LIBS=$ac_check_lib_save_LIBS
44618 fi
44619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44620 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44621 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44622 then :
44623   USE_THREADS_POSIX=1
44624 else $as_nop
44625    CFLAGS="$save_CFLAGS"
44626 fi
44627
44628       fi
44629
44630       if test "x$USE_THREADS_POSIX" = "x1"
44631       then
44632
44633 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44634
44635         curl_res_msg="POSIX threaded"
44636       fi
44637
44638 fi
44639
44640 fi
44641
44642 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44643   if test "$want_pthreads" = "yes"; then
44644     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44645   fi
44646     if test "$curl_cv_native_windows" = "yes"; then
44647     USE_THREADS_WIN32=1
44648
44649 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44650
44651     curl_res_msg="Win32 threaded"
44652   else
44653     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44654   fi
44655 fi
44656
44657
44658       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44659 printf %s "checking convert -I options to -isystem... " >&6; }
44660   if test "$compiler_id" = "GNU_C" ||
44661     test "$compiler_id" = "CLANG"; then
44662     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44663 printf "%s\n" "yes" >&6; }
44664     tmp_has_include="no"
44665     tmp_chg_FLAGS="$CFLAGS"
44666     for word1 in $tmp_chg_FLAGS; do
44667       case "$word1" in
44668         -I*)
44669           tmp_has_include="yes"
44670           ;;
44671       esac
44672     done
44673     if test "$tmp_has_include" = "yes"; then
44674       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44675       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44676       CFLAGS="$tmp_chg_FLAGS"
44677       squeeze CFLAGS
44678     fi
44679     tmp_has_include="no"
44680     tmp_chg_FLAGS="$CPPFLAGS"
44681     for word1 in $tmp_chg_FLAGS; do
44682       case "$word1" in
44683         -I*)
44684           tmp_has_include="yes"
44685           ;;
44686       esac
44687     done
44688     if test "$tmp_has_include" = "yes"; then
44689       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44690       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44691       CPPFLAGS="$tmp_chg_FLAGS"
44692       squeeze CPPFLAGS
44693     fi
44694   else
44695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44696 printf "%s\n" "no" >&6; }
44697   fi
44698
44699
44700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44701 printf %s "checking whether to enable verbose strings... " >&6; }
44702 # Check whether --enable-verbose was given.
44703 if test ${enable_verbose+y}
44704 then :
44705   enableval=$enable_verbose;  case "$enableval" in
44706   no)
44707        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44708 printf "%s\n" "no" >&6; }
44709
44710 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44711
44712        curl_verbose_msg="no"
44713        ;;
44714   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44715 printf "%s\n" "yes" >&6; }
44716        ;;
44717   esac
44718 else $as_nop
44719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44720 printf "%s\n" "yes" >&6; }
44721
44722 fi
44723
44724
44725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44726 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44727 # Check whether --enable-sspi was given.
44728 if test ${enable_sspi+y}
44729 then :
44730   enableval=$enable_sspi;  case "$enableval" in
44731   yes)
44732        if test "$curl_cv_native_windows" = "yes"; then
44733          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44734 printf "%s\n" "yes" >&6; }
44735
44736 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44737
44738          USE_WINDOWS_SSPI=1
44739
44740          curl_sspi_msg="enabled"
44741        else
44742          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44743 printf "%s\n" "no" >&6; }
44744          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44745 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44746        fi
44747        ;;
44748   *)
44749        if test "x$SCHANNEL_ENABLED" = "x1"; then
44750          # --with-schannel implies --enable-sspi
44751          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44752 printf "%s\n" "yes" >&6; }
44753        else
44754          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44755 printf "%s\n" "no" >&6; }
44756        fi
44757        ;;
44758   esac
44759 else $as_nop
44760   if test "x$SCHANNEL_ENABLED" = "x1"; then
44761          # --with-schannel implies --enable-sspi
44762          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44763 printf "%s\n" "yes" >&6; }
44764        else
44765          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44766 printf "%s\n" "no" >&6; }
44767        fi
44768
44769 fi
44770
44771
44772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5
44773 printf %s "checking whether to enable basic authentication method... " >&6; }
44774 # Check whether --enable-basic-auth was given.
44775 if test ${enable_basic_auth+y}
44776 then :
44777   enableval=$enable_basic_auth;  case "$enableval" in
44778   no)
44779        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44780 printf "%s\n" "no" >&6; }
44781
44782 printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h
44783
44784        CURL_DISABLE_BASIC_AUTH=1
44785        ;;
44786   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44787 printf "%s\n" "yes" >&6; }
44788        ;;
44789   esac
44790 else $as_nop
44791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44792 printf "%s\n" "yes" >&6; }
44793
44794 fi
44795
44796
44797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5
44798 printf %s "checking whether to enable bearer authentication method... " >&6; }
44799 # Check whether --enable-bearer-auth was given.
44800 if test ${enable_bearer_auth+y}
44801 then :
44802   enableval=$enable_bearer_auth;  case "$enableval" in
44803   no)
44804        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44805 printf "%s\n" "no" >&6; }
44806
44807 printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h
44808
44809        CURL_DISABLE_BEARER_AUTH=1
44810        ;;
44811   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44812 printf "%s\n" "yes" >&6; }
44813        ;;
44814   esac
44815 else $as_nop
44816   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44817 printf "%s\n" "yes" >&6; }
44818
44819 fi
44820
44821
44822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5
44823 printf %s "checking whether to enable digest authentication method... " >&6; }
44824 # Check whether --enable-digest-auth was given.
44825 if test ${enable_digest_auth+y}
44826 then :
44827   enableval=$enable_digest_auth;  case "$enableval" in
44828   no)
44829        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44830 printf "%s\n" "no" >&6; }
44831
44832 printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h
44833
44834        CURL_DISABLE_DIGEST_AUTH=1
44835        ;;
44836   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44837 printf "%s\n" "yes" >&6; }
44838        ;;
44839   esac
44840 else $as_nop
44841   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44842 printf "%s\n" "yes" >&6; }
44843
44844 fi
44845
44846
44847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5
44848 printf %s "checking whether to enable kerberos authentication method... " >&6; }
44849 # Check whether --enable-kerberos-auth was given.
44850 if test ${enable_kerberos_auth+y}
44851 then :
44852   enableval=$enable_kerberos_auth;  case "$enableval" in
44853   no)
44854        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44855 printf "%s\n" "no" >&6; }
44856
44857 printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h
44858
44859        CURL_DISABLE_KERBEROS_AUTH=1
44860        ;;
44861   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44862 printf "%s\n" "yes" >&6; }
44863        ;;
44864   esac
44865 else $as_nop
44866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44867 printf "%s\n" "yes" >&6; }
44868
44869 fi
44870
44871
44872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5
44873 printf %s "checking whether to enable negotiate authentication method... " >&6; }
44874 # Check whether --enable-negotiate-auth was given.
44875 if test ${enable_negotiate_auth+y}
44876 then :
44877   enableval=$enable_negotiate_auth;  case "$enableval" in
44878   no)
44879        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44880 printf "%s\n" "no" >&6; }
44881
44882 printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h
44883
44884        CURL_DISABLE_NEGOTIATE_AUTH=1
44885        ;;
44886   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44887 printf "%s\n" "yes" >&6; }
44888        ;;
44889   esac
44890 else $as_nop
44891   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44892 printf "%s\n" "yes" >&6; }
44893
44894 fi
44895
44896
44897
44898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5
44899 printf %s "checking whether to enable aws sig methods... " >&6; }
44900 # Check whether --enable-aws was given.
44901 if test ${enable_aws+y}
44902 then :
44903   enableval=$enable_aws;  case "$enableval" in
44904   no)
44905        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44906 printf "%s\n" "no" >&6; }
44907
44908 printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h
44909
44910        CURL_DISABLE_AWS=1
44911        ;;
44912   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44913 printf "%s\n" "yes" >&6; }
44914        ;;
44915   esac
44916 else $as_nop
44917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44918 printf "%s\n" "yes" >&6; }
44919
44920 fi
44921
44922
44923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44924 printf %s "checking whether to support NTLM... " >&6; }
44925 # Check whether --enable-ntlm was given.
44926 if test ${enable_ntlm+y}
44927 then :
44928   enableval=$enable_ntlm;  case "$enableval" in
44929   no)
44930        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44931 printf "%s\n" "no" >&6; }
44932
44933 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44934
44935        CURL_DISABLE_NTLM=1
44936        ;;
44937   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44938 printf "%s\n" "yes" >&6; }
44939        ;;
44940   esac
44941 else $as_nop
44942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44943 printf "%s\n" "yes" >&6; }
44944
44945 fi
44946
44947
44948
44949     OPT_NTLM_WB="default"
44950   # Check whether --enable-ntlm-wb was given.
44951 if test ${enable_ntlm_wb+y}
44952 then :
44953   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44954 fi
44955
44956   want_ntlm_wb_file="/usr/bin/ntlm_auth"
44957   case "$OPT_NTLM_WB" in
44958     no)
44959             want_ntlm_wb="no"
44960       ;;
44961     default)
44962             want_ntlm_wb="yes"
44963       ;;
44964     *)
44965             want_ntlm_wb="yes"
44966       if test -n "$enableval" && test "$enableval" != "yes"; then
44967         want_ntlm_wb_file="$enableval"
44968       fi
44969       ;;
44970   esac
44971
44972
44973
44974       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44975 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44976   if test "$curl_cv_native_windows" = "yes" ||
44977     test "x$SSL_ENABLED" = "x"; then
44978     want_ntlm_wb_file=""
44979     want_ntlm_wb="no"
44980   elif test "x$ac_cv_func_fork" != "xyes"; then
44981         want_ntlm_wb="no"
44982   fi
44983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44984 printf "%s\n" "$want_ntlm_wb" >&6; }
44985   if test "$want_ntlm_wb" = "yes"; then
44986
44987 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44988
44989
44990 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44991
44992     NTLM_WB_ENABLED=1
44993   fi
44994
44995
44996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44997 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44998 # Check whether --enable-tls-srp was given.
44999 if test ${enable_tls_srp+y}
45000 then :
45001   enableval=$enable_tls_srp;  case "$enableval" in
45002   no)
45003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45004 printf "%s\n" "no" >&6; }
45005        want_tls_srp=no
45006        ;;
45007   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45008 printf "%s\n" "yes" >&6; }
45009        want_tls_srp=yes
45010        ;;
45011   esac
45012 else $as_nop
45013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45014 printf "%s\n" "yes" >&6; }
45015        want_tls_srp=yes
45016
45017 fi
45018
45019
45020 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
45021
45022 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
45023
45024    USE_TLS_SRP=1
45025    curl_tls_srp_msg="enabled"
45026 fi
45027
45028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
45029 printf %s "checking whether to enable Unix domain sockets... " >&6; }
45030 # Check whether --enable-unix-sockets was given.
45031 if test ${enable_unix_sockets+y}
45032 then :
45033   enableval=$enable_unix_sockets;  case "$enableval" in
45034   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45035 printf "%s\n" "no" >&6; }
45036        want_unix_sockets=no
45037        ;;
45038   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45039 printf "%s\n" "yes" >&6; }
45040        want_unix_sockets=yes
45041        ;;
45042   esac
45043 else $as_nop
45044
45045        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45046 printf "%s\n" "auto" >&6; }
45047        want_unix_sockets=auto
45048
45049
45050 fi
45051
45052 if test "x$want_unix_sockets" != "xno"; then
45053   if test "x$curl_cv_native_windows" = "xyes"; then
45054     USE_UNIX_SOCKETS=1
45055
45056 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45057
45058     curl_unix_sockets_msg="enabled"
45059   else
45060     ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45061       #include <sys/un.h>
45062
45063 "
45064 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45065 then :
45066
45067
45068 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45069
45070       USE_UNIX_SOCKETS=1
45071
45072       curl_unix_sockets_msg="enabled"
45073
45074 else $as_nop
45075
45076       if test "x$want_unix_sockets" = "xyes"; then
45077         as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45078       fi
45079
45080 fi
45081
45082   fi
45083 fi
45084
45085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45086 printf %s "checking whether to support cookies... " >&6; }
45087 # Check whether --enable-cookies was given.
45088 if test ${enable_cookies+y}
45089 then :
45090   enableval=$enable_cookies;  case "$enableval" in
45091   no)
45092        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45093 printf "%s\n" "no" >&6; }
45094
45095 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45096
45097        ;;
45098   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45099 printf "%s\n" "yes" >&6; }
45100        ;;
45101   esac
45102 else $as_nop
45103   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45104 printf "%s\n" "yes" >&6; }
45105
45106 fi
45107
45108
45109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45110 printf %s "checking whether to support socketpair... " >&6; }
45111 # Check whether --enable-socketpair was given.
45112 if test ${enable_socketpair+y}
45113 then :
45114   enableval=$enable_socketpair;  case "$enableval" in
45115   no)
45116        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45117 printf "%s\n" "no" >&6; }
45118
45119 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45120
45121        ;;
45122   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45123 printf "%s\n" "yes" >&6; }
45124        ;;
45125   esac
45126 else $as_nop
45127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45128 printf "%s\n" "yes" >&6; }
45129
45130 fi
45131
45132
45133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45134 printf %s "checking whether to support HTTP authentication... " >&6; }
45135 # Check whether --enable-http-auth was given.
45136 if test ${enable_http_auth+y}
45137 then :
45138   enableval=$enable_http_auth;  case "$enableval" in
45139   no)
45140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45141 printf "%s\n" "no" >&6; }
45142
45143 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45144
45145        ;;
45146   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45147 printf "%s\n" "yes" >&6; }
45148        ;;
45149   esac
45150 else $as_nop
45151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45152 printf "%s\n" "yes" >&6; }
45153
45154 fi
45155
45156
45157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45158 printf %s "checking whether to support DoH... " >&6; }
45159 # Check whether --enable-doh was given.
45160 if test ${enable_doh+y}
45161 then :
45162   enableval=$enable_doh;  case "$enableval" in
45163   no)
45164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45165 printf "%s\n" "no" >&6; }
45166
45167 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45168
45169        ;;
45170   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45171 printf "%s\n" "yes" >&6; }
45172        ;;
45173   esac
45174 else $as_nop
45175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45176 printf "%s\n" "yes" >&6; }
45177
45178 fi
45179
45180
45181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45182 printf %s "checking whether to support the MIME API... " >&6; }
45183 # Check whether --enable-mime was given.
45184 if test ${enable_mime+y}
45185 then :
45186   enableval=$enable_mime;  case "$enableval" in
45187   no)
45188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45189 printf "%s\n" "no" >&6; }
45190
45191 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45192
45193        ;;
45194   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45195 printf "%s\n" "yes" >&6; }
45196        ;;
45197   esac
45198 else $as_nop
45199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45200 printf "%s\n" "yes" >&6; }
45201
45202 fi
45203
45204
45205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5
45206 printf %s "checking whether to support binding connections locally... " >&6; }
45207 # Check whether --enable-bindlocal was given.
45208 if test ${enable_bindlocal+y}
45209 then :
45210   enableval=$enable_bindlocal;  case "$enableval" in
45211   no)
45212        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45213 printf "%s\n" "no" >&6; }
45214
45215 printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h
45216
45217        ;;
45218   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45219 printf "%s\n" "yes" >&6; }
45220        ;;
45221   esac
45222 else $as_nop
45223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45224 printf "%s\n" "yes" >&6; }
45225
45226 fi
45227
45228
45229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5
45230 printf %s "checking whether to support the form API... " >&6; }
45231 # Check whether --enable-form-api was given.
45232 if test ${enable_form_api+y}
45233 then :
45234   enableval=$enable_form_api;  case "$enableval" in
45235   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45236 printf "%s\n" "no" >&6; }
45237
45238 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45239
45240        ;;
45241   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45242 printf "%s\n" "yes" >&6; }
45243        test "$enable_mime" = no &&
45244          as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5
45245        ;;
45246   esac
45247 else $as_nop
45248
45249   if test "$enable_mime" = no; then
45250     enable_form_api=no
45251     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45252 printf "%s\n" "no" >&6; }
45253
45254 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45255
45256   else
45257     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45258 printf "%s\n" "yes" >&6; }
45259   fi
45260
45261 fi
45262
45263
45264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45265 printf %s "checking whether to support date parsing... " >&6; }
45266 # Check whether --enable-dateparse was given.
45267 if test ${enable_dateparse+y}
45268 then :
45269   enableval=$enable_dateparse;  case "$enableval" in
45270   no)
45271        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45272 printf "%s\n" "no" >&6; }
45273
45274 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45275
45276        ;;
45277   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45278 printf "%s\n" "yes" >&6; }
45279        ;;
45280   esac
45281 else $as_nop
45282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45283 printf "%s\n" "yes" >&6; }
45284
45285 fi
45286
45287
45288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45289 printf %s "checking whether to support netrc parsing... " >&6; }
45290 # Check whether --enable-netrc was given.
45291 if test ${enable_netrc+y}
45292 then :
45293   enableval=$enable_netrc;  case "$enableval" in
45294   no)
45295        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45296 printf "%s\n" "no" >&6; }
45297
45298 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45299
45300        ;;
45301   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45302 printf "%s\n" "yes" >&6; }
45303        ;;
45304   esac
45305 else $as_nop
45306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45307 printf "%s\n" "yes" >&6; }
45308
45309 fi
45310
45311
45312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45313 printf %s "checking whether to support progress-meter... " >&6; }
45314 # Check whether --enable-progress-meter was given.
45315 if test ${enable_progress_meter+y}
45316 then :
45317   enableval=$enable_progress_meter;  case "$enableval" in
45318   no)
45319        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45320 printf "%s\n" "no" >&6; }
45321
45322 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45323
45324        ;;
45325   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45326 printf "%s\n" "yes" >&6; }
45327        ;;
45328   esac
45329 else $as_nop
45330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45331 printf "%s\n" "yes" >&6; }
45332
45333 fi
45334
45335
45336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45337 printf %s "checking whether to support DNS shuffling... " >&6; }
45338 # Check whether --enable-dnsshuffle was given.
45339 if test ${enable_dnsshuffle+y}
45340 then :
45341   enableval=$enable_dnsshuffle;  case "$enableval" in
45342   no)
45343        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45344 printf "%s\n" "no" >&6; }
45345
45346 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45347
45348        ;;
45349   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45350 printf "%s\n" "yes" >&6; }
45351        ;;
45352   esac
45353 else $as_nop
45354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45355 printf "%s\n" "yes" >&6; }
45356
45357 fi
45358
45359
45360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45361 printf %s "checking whether to support curl_easy_option*... " >&6; }
45362 # Check whether --enable-get-easy-options was given.
45363 if test ${enable_get_easy_options+y}
45364 then :
45365   enableval=$enable_get_easy_options;  case "$enableval" in
45366   no)
45367        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45368 printf "%s\n" "no" >&6; }
45369
45370 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45371
45372        ;;
45373   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45374 printf "%s\n" "yes" >&6; }
45375        ;;
45376   esac
45377 else $as_nop
45378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45379 printf "%s\n" "yes" >&6; }
45380
45381 fi
45382
45383
45384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45385 printf %s "checking whether to support alt-svc... " >&6; }
45386 # Check whether --enable-alt-svc was given.
45387 if test ${enable_alt_svc+y}
45388 then :
45389   enableval=$enable_alt_svc;  case "$enableval" in
45390   no)
45391        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45392 printf "%s\n" "no" >&6; }
45393
45394 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45395
45396        curl_altsvc_msg="no";
45397        enable_altsvc="no"
45398        ;;
45399   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45400 printf "%s\n" "yes" >&6; }
45401        ;;
45402   esac
45403 else $as_nop
45404   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45405 printf "%s\n" "yes" >&6; }
45406
45407 fi
45408
45409
45410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45411 printf %s "checking whether to support headers-api... " >&6; }
45412 # Check whether --enable-headers-api was given.
45413 if test ${enable_headers_api+y}
45414 then :
45415   enableval=$enable_headers_api;  case "$enableval" in
45416   no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45417 printf "%s\n" "no" >&6; }
45418        curl_headers_msg="no      (--enable-headers-api)"
45419
45420 printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45421
45422        ;;
45423   *)
45424        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45425 printf "%s\n" "yes" >&6; }
45426        ;;
45427   esac
45428 else $as_nop
45429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45430 printf "%s\n" "yes" >&6; }
45431
45432 fi
45433
45434
45435 if test -n "$SSL_ENABLED"; then
45436         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45437 printf %s "checking whether to support HSTS... " >&6; }
45438   # Check whether --enable-hsts was given.
45439 if test ${enable_hsts+y}
45440 then :
45441   enableval=$enable_hsts;  case "$enableval" in
45442     no)
45443        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45444 printf "%s\n" "no" >&6; }
45445        hsts="no"
45446        ;;
45447     *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45448 printf "%s\n" "yes" >&6; }
45449        ;;
45450     esac
45451 else $as_nop
45452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45453 printf "%s\n" "$hsts" >&6; }
45454
45455 fi
45456
45457 else
45458   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45459 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45460   hsts="no"
45461 fi
45462
45463 if test "x$hsts" != "xyes"; then
45464   curl_hsts_msg="no      (--enable-hsts)";
45465
45466 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45467
45468 fi
45469
45470 if test "x$want_ech" != "xno"; then
45471   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45472 printf %s "checking whether ECH support is available... " >&6; }
45473
45474     ECH_ENABLED=0
45475   ECH_SUPPORT=''
45476
45477       if test "x$OPENSSL_ENABLED" = "x1"; then
45478
45479   for ac_func in SSL_get_ech_status
45480 do :
45481   ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
45482 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
45483 then :
45484   printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
45485  ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
45486       ECH_ENABLED=1
45487 fi
45488
45489 done
45490
45491     fi
45492
45493     if test "x$ECH_ENABLED" = "x1"; then
45494
45495 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45496
45497     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45498 printf "%s\n" "$ECH_SUPPORT" >&6; }
45499     experimental="$experimental ECH"
45500   else
45501     as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45502   fi
45503 fi
45504
45505 if test "x$OPENSSL_ENABLED" = "x1"; then
45506   ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45507 if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45508 then :
45509   printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45510
45511 fi
45512
45513 fi
45514
45515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45516 printf %s "checking whether to support WebSockets... " >&6; }
45517 # Check whether --enable-websockets was given.
45518 if test ${enable_websockets+y}
45519 then :
45520   enableval=$enable_websockets;  case "$enableval" in
45521   no)
45522      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45523 printf "%s\n" "no" >&6; }
45524      ;;
45525   *)
45526      if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45527          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45528 printf "%s\n" "yes" >&6; }
45529          curl_ws_msg="enabled"
45530
45531 printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45532
45533          SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45534          if test "x$SSL_ENABLED" = "x1"; then
45535            SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45536          fi
45537          experimental="$experimental Websockets"
45538      else
45539                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45540 printf "%s\n" "no" >&6; }
45541          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45542 printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45543      fi
45544      ;;
45545   esac
45546 else $as_nop
45547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45548 printf "%s\n" "no" >&6; }
45549
45550 fi
45551
45552
45553
45554
45555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45556 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45557   CFLAG_CURL_SYMBOL_HIDING=""
45558   doing_symbol_hiding="no"
45559   if test "$want_symbol_hiding" = "yes" &&
45560     test "$supports_symbol_hiding" = "yes"; then
45561     doing_symbol_hiding="yes"
45562     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45563
45564 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45565
45566     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45567 printf "%s\n" "yes" >&6; }
45568   else
45569     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45570 printf "%s\n" "no" >&6; }
45571   fi
45572    if test x$doing_symbol_hiding = xyes; then
45573   DOING_CURL_SYMBOL_HIDING_TRUE=
45574   DOING_CURL_SYMBOL_HIDING_FALSE='#'
45575 else
45576   DOING_CURL_SYMBOL_HIDING_TRUE='#'
45577   DOING_CURL_SYMBOL_HIDING_FALSE=
45578 fi
45579
45580
45581
45582
45583 LIBCURL_LIBS="$LIBS$PTHREAD"
45584
45585
45586
45587
45588
45589 BLANK_AT_MAKETIME=
45590
45591
45592  if test x$cross_compiling = xyes; then
45593   CROSSCOMPILING_TRUE=
45594   CROSSCOMPILING_FALSE='#'
45595 else
45596   CROSSCOMPILING_TRUE='#'
45597   CROSSCOMPILING_FALSE=
45598 fi
45599
45600
45601 ENABLE_SHARED="$enable_shared"
45602
45603
45604 ENABLE_STATIC="$enable_static"
45605
45606
45607 if test "x$enable_shared" = "xno"; then
45608   LIBCURL_NO_SHARED=$LIBCURL_LIBS
45609 else
45610   LIBCURL_NO_SHARED=
45611 fi
45612
45613
45614 rm $compilersh
45615
45616
45617 if test "x$OPENSSL_ENABLED" = "x1"; then
45618   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45619 elif test -n "$SSL_ENABLED"; then
45620   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45621 fi
45622 if test "x$IPV6_ENABLED" = "x1"; then
45623   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45624 fi
45625 if test "x$USE_UNIX_SOCKETS" = "x1"; then
45626   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45627 fi
45628 if test "x$HAVE_LIBZ" = "x1"; then
45629   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45630 fi
45631 if test "x$HAVE_BROTLI" = "x1"; then
45632   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45633 fi
45634 if test "x$HAVE_ZSTD" = "x1"; then
45635   SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45636 fi
45637 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45638                             -o "x$USE_THREADS_WIN32" = "x1"; then
45639   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45640 fi
45641 if test "x$IDN_ENABLED" = "x1"; then
45642   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45643 fi
45644 if test "x$USE_WINDOWS_SSPI" = "x1"; then
45645   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45646 fi
45647
45648 if test "x$HAVE_GSSAPI" = "x1"; then
45649   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45650 fi
45651
45652 if test "x$curl_psl_msg" = "xenabled"; then
45653   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45654 fi
45655
45656 if test "x$curl_gsasl_msg" = "xenabled"; then
45657   SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45658 fi
45659
45660 if test "x$enable_altsvc" = "xyes"; then
45661   SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45662 fi
45663 if test "x$hsts" = "xyes"; then
45664   SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45665 fi
45666
45667 if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
45668     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45669   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45670 fi
45671
45672 if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
45673     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45674   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45675 fi
45676
45677 use_curl_ntlm_core=no
45678
45679 if test "x$CURL_DISABLE_NTLM" != "x1"; then
45680   if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45681       -o "x$GNUTLS_ENABLED" = "x1" \
45682       -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45683       -o "x$USE_WIN32_CRYPTO" = "x1" \
45684       -o "x$WOLFSSL_NTLM" = "x1"; then
45685     use_curl_ntlm_core=yes
45686   fi
45687
45688   if test "x$use_curl_ntlm_core" = "xyes" \
45689       -o "x$USE_WINDOWS_SSPI" = "x1"; then
45690     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45691
45692     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45693         "x$NTLM_WB_ENABLED" = "x1"; then
45694       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45695     fi
45696   fi
45697 fi
45698
45699 if test "x$USE_TLS_SRP" = "x1"; then
45700   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45701 fi
45702
45703 if test "x$USE_NGHTTP2" = "x1"; then
45704   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45705 fi
45706
45707 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45708     -o "x$USE_MSH3" = "x1"; then
45709   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45710 fi
45711
45712 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45713   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45714 fi
45715
45716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5
45717 printf %s "checking if this build supports HTTPS-proxy... " >&6; }
45718 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45719   if test "x$https_proxy" != "xno"; then
45720     if test "x$OPENSSL_ENABLED" = "x1" \
45721         -o "x$GNUTLS_ENABLED" = "x1" \
45722         -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45723         -o "x$RUSTLS_ENABLED" = "x1" \
45724         -o "x$BEARSSL_ENABLED" = "x1" \
45725         -o "x$SCHANNEL_ENABLED" = "x1" \
45726         -o "x$GNUTLS_ENABLED" = "x1" \
45727         -o "x$MBEDTLS_ENABLED" = "x1"; then
45728       SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45729       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45730 printf "%s\n" "yes" >&6; }
45731     elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
45732       SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45733       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45734 printf "%s\n" "yes" >&6; }
45735     else
45736       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45737 printf "%s\n" "no" >&6; }
45738     fi
45739   else
45740     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45741 printf "%s\n" "no" >&6; }
45742   fi
45743 else
45744   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45745 printf "%s\n" "no" >&6; }
45746 fi
45747
45748 if test "x$ECH_ENABLED" = "x1"; then
45749   SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45750 fi
45751
45752 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45753   if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45754      "$curl_win32_file_api" = "win32_large_files"; then
45755     SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45756   fi
45757 fi
45758
45759 if test "$tst_atomic" = "yes"; then
45760   SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45761 elif test "x$USE_THREADS_POSIX" = "x1" -a \
45762      "x$ac_cv_header_pthread_h" = "xyes"; then
45763   SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45764 else
45765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45766 /* end confdefs.h.  */
45767
45768
45769       #include <windows.h>
45770
45771 int main (void)
45772 {
45773
45774       #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45775       #error
45776       #endif
45777
45778  ;
45779  return 0;
45780 }
45781
45782 _ACEOF
45783 if ac_fn_c_try_compile "$LINENO"
45784 then :
45785
45786      SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45787
45788 fi
45789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45790 fi
45791
45792 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45793
45794
45795 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45796   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45797   if test "x$SSL_ENABLED" = "x1"; then
45798     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45799   fi
45800 fi
45801 if test "x$CURL_DISABLE_FTP" != "x1"; then
45802   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45803   if test "x$SSL_ENABLED" = "x1"; then
45804     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45805   fi
45806 fi
45807 if test "x$CURL_DISABLE_FILE" != "x1"; then
45808   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45809 fi
45810 if test "x$CURL_DISABLE_TELNET" != "x1"; then
45811   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45812 fi
45813 if test "x$CURL_DISABLE_LDAP" != "x1"; then
45814   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45815   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45816     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45817       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
45818       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45819     fi
45820   fi
45821 fi
45822 if test "x$CURL_DISABLE_DICT" != "x1"; then
45823   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45824 fi
45825 if test "x$CURL_DISABLE_TFTP" != "x1"; then
45826   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45827 fi
45828 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45829   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45830   if test "x$SSL_ENABLED" = "x1"; then
45831     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45832   fi
45833 fi
45834 if test "x$CURL_DISABLE_MQTT" != "x1"; then
45835   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45836 fi
45837 if test "x$CURL_DISABLE_POP3" != "x1"; then
45838   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45839   if test "x$SSL_ENABLED" = "x1"; then
45840     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45841   fi
45842 fi
45843 if test "x$CURL_DISABLE_IMAP" != "x1"; then
45844   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45845   if test "x$SSL_ENABLED" = "x1"; then
45846     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45847   fi
45848 fi
45849 if test "x$CURL_DISABLE_SMB" != "x1" \
45850     -a "x$use_curl_ntlm_core" = "xyes"; then
45851   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45852   if test "x$SSL_ENABLED" = "x1"; then
45853     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45854   fi
45855 fi
45856 if test "x$CURL_DISABLE_SMTP" != "x1"; then
45857   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45858   if test "x$SSL_ENABLED" = "x1"; then
45859     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45860   fi
45861 fi
45862 if test "x$USE_LIBSSH2" = "x1"; then
45863   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45864   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45865 fi
45866 if test "x$USE_LIBSSH" = "x1"; then
45867   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45868   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45869 fi
45870 if test "x$USE_WOLFSSH" = "x1"; then
45871   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45872 fi
45873 if test "x$CURL_DISABLE_RTSP" != "x1"; then
45874   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45875 fi
45876 if test "x$USE_LIBRTMP" = "x1"; then
45877   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45878 fi
45879
45880 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45881
45882
45883
45884
45885 squeeze CFLAGS
45886 squeeze CPPFLAGS
45887 squeeze DEFS
45888 squeeze LDFLAGS
45889 squeeze LIBS
45890
45891 squeeze LIBCURL_LIBS
45892 squeeze CURL_NETWORK_LIBS
45893 squeeze CURL_NETWORK_AND_TIME_LIBS
45894
45895 squeeze SUPPORT_FEATURES
45896 squeeze SUPPORT_PROTOCOLS
45897
45898
45899
45900   xc_bad_var_libs=no
45901   for xc_word in $LIBS; do
45902     case "$xc_word" in
45903       -l* | --library=*)
45904         :
45905         ;;
45906       *)
45907         xc_bad_var_libs=yes
45908         ;;
45909     esac
45910   done
45911   if test $xc_bad_var_libs = yes; then
45912     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45913 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45914     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45915 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45916   fi
45917
45918
45919   xc_bad_var_ldflags=no
45920   for xc_word in $LDFLAGS; do
45921     case "$xc_word" in
45922       -D*)
45923         xc_bad_var_ldflags=yes
45924         ;;
45925       -U*)
45926         xc_bad_var_ldflags=yes
45927         ;;
45928       -I*)
45929         xc_bad_var_ldflags=yes
45930         ;;
45931       -l* | --library=*)
45932         xc_bad_var_ldflags=yes
45933         ;;
45934     esac
45935   done
45936   if test $xc_bad_var_ldflags = yes; then
45937     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45938 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45939     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45940     for xc_word in $LDFLAGS; do
45941       case "$xc_word" in
45942         -D*)
45943           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45944 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45945           ;;
45946         -U*)
45947           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45948 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45949           ;;
45950         -I*)
45951           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45952 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45953           ;;
45954         -l* | --library=*)
45955           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45956 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45957           ;;
45958       esac
45959     done
45960   fi
45961
45962
45963   xc_bad_var_cppflags=no
45964   for xc_word in $CPPFLAGS; do
45965     case "$xc_word" in
45966       -rpath*)
45967         xc_bad_var_cppflags=yes
45968         ;;
45969       -L* | --library-path=*)
45970         xc_bad_var_cppflags=yes
45971         ;;
45972       -l* | --library=*)
45973         xc_bad_var_cppflags=yes
45974         ;;
45975     esac
45976   done
45977   if test $xc_bad_var_cppflags = yes; then
45978     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45979 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45980     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45981     for xc_word in $CPPFLAGS; do
45982       case "$xc_word" in
45983         -rpath*)
45984           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45985 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45986           ;;
45987         -L* | --library-path=*)
45988           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45989 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45990           ;;
45991         -l* | --library=*)
45992           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45993 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45994           ;;
45995       esac
45996     done
45997   fi
45998
45999
46000   xc_bad_var_cflags=no
46001   for xc_word in $CFLAGS; do
46002     case "$xc_word" in
46003       -D*)
46004         xc_bad_var_cflags=yes
46005         ;;
46006       -U*)
46007         xc_bad_var_cflags=yes
46008         ;;
46009       -I*)
46010         xc_bad_var_cflags=yes
46011         ;;
46012       -rpath*)
46013         xc_bad_var_cflags=yes
46014         ;;
46015       -L* | --library-path=*)
46016         xc_bad_var_cflags=yes
46017         ;;
46018       -l* | --library=*)
46019         xc_bad_var_cflags=yes
46020         ;;
46021     esac
46022   done
46023   if test $xc_bad_var_cflags = yes; then
46024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
46025 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
46026     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
46027     for xc_word in $CFLAGS; do
46028       case "$xc_word" in
46029         -D*)
46030           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46031 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46032           ;;
46033         -U*)
46034           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46035 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46036           ;;
46037         -I*)
46038           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46039 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46040           ;;
46041         -rpath*)
46042           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46043 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46044           ;;
46045         -L* | --library-path=*)
46046           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46047 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46048           ;;
46049         -l* | --library=*)
46050           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46051 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46052           ;;
46053       esac
46054     done
46055   fi
46056
46057   if test $xc_bad_var_libs = yes ||
46058      test $xc_bad_var_cflags = yes ||
46059      test $xc_bad_var_ldflags = yes ||
46060      test $xc_bad_var_cppflags = yes; then
46061      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46062 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46063   fi
46064
46065
46066 SSL_BACKENDS=${ssl_backends}
46067
46068
46069 if test "x$want_curldebug_assumed" = "xyes" &&
46070   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46071   ac_configure_args="$ac_configure_args --enable-curldebug"
46072 fi
46073
46074 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers lib/libcurl.plist tests/Makefile tests/config tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/http/config.ini tests/http/Makefile tests/http/clients/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
46075
46076 cat >confcache <<\_ACEOF
46077 # This file is a shell script that caches the results of configure
46078 # tests run on this system so they can be shared between configure
46079 # scripts and configure runs, see configure's option --config-cache.
46080 # It is not useful on other systems.  If it contains results you don't
46081 # want to keep, you may remove or edit it.
46082 #
46083 # config.status only pays attention to the cache file if you give it
46084 # the --recheck option to rerun configure.
46085 #
46086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46088 # following values.
46089
46090 _ACEOF
46091
46092 # The following way of writing the cache mishandles newlines in values,
46093 # but we know of no workaround that is simple, portable, and efficient.
46094 # So, we kill variables containing newlines.
46095 # Ultrix sh set writes to stderr and can't be redirected directly,
46096 # and sets the high bit in the cache file unless we assign to the vars.
46097 (
46098   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46099     eval ac_val=\$$ac_var
46100     case $ac_val in #(
46101     *${as_nl}*)
46102       case $ac_var in #(
46103       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46104 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46105       esac
46106       case $ac_var in #(
46107       _ | IFS | as_nl) ;; #(
46108       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46109       *) { eval $ac_var=; unset $ac_var;} ;;
46110       esac ;;
46111     esac
46112   done
46113
46114   (set) 2>&1 |
46115     case $as_nl`(ac_space=' '; set) 2>&1` in #(
46116     *${as_nl}ac_space=\ *)
46117       # `set' does not quote correctly, so add quotes: double-quote
46118       # substitution turns \\\\ into \\, and sed turns \\ into \.
46119       sed -n \
46120         "s/'/'\\\\''/g;
46121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46122       ;; #(
46123     *)
46124       # `set' quotes correctly as required by POSIX, so do not add quotes.
46125       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46126       ;;
46127     esac |
46128     sort
46129 ) |
46130   sed '
46131      /^ac_cv_env_/b end
46132      t clear
46133      :clear
46134      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46135      t end
46136      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46137      :end' >>confcache
46138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46139   if test -w "$cache_file"; then
46140     if test "x$cache_file" != "x/dev/null"; then
46141       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46142 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46143       if test ! -f "$cache_file" || test -h "$cache_file"; then
46144         cat confcache >"$cache_file"
46145       else
46146         case $cache_file in #(
46147         */* | ?:*)
46148           mv -f confcache "$cache_file"$$ &&
46149           mv -f "$cache_file"$$ "$cache_file" ;; #(
46150         *)
46151           mv -f confcache "$cache_file" ;;
46152         esac
46153       fi
46154     fi
46155   else
46156     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46157 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46158   fi
46159 fi
46160 rm -f confcache
46161
46162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46163 # Let make expand exec_prefix.
46164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46165
46166 DEFS=-DHAVE_CONFIG_H
46167
46168 ac_libobjs=
46169 ac_ltlibobjs=
46170 U=
46171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46172   # 1. Remove the extension, and $U if already installed.
46173   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46174   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46175   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
46176   #    will be set to the directory where LIBOBJS objects are built.
46177   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46178   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46179 done
46180 LIBOBJS=$ac_libobjs
46181
46182 LTLIBOBJS=$ac_ltlibobjs
46183
46184
46185 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46186   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46188 fi
46189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46190 printf %s "checking that generated files are newer than configure... " >&6; }
46191    if test -n "$am_sleep_pid"; then
46192      # Hide warnings about reused PIDs.
46193      wait $am_sleep_pid 2>/dev/null
46194    fi
46195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46196 printf "%s\n" "done" >&6; }
46197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46198   as_fn_error $? "conditional \"AMDEP\" was never defined.
46199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46200 fi
46201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46202   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46204 fi
46205  if test -n "$EXEEXT"; then
46206   am__EXEEXT_TRUE=
46207   am__EXEEXT_FALSE='#'
46208 else
46209   am__EXEEXT_TRUE='#'
46210   am__EXEEXT_FALSE=
46211 fi
46212
46213 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46214   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46216 fi
46217 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46218   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46220 fi
46221 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46222   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46224 fi
46225 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46226   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46228 fi
46229 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46230   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46232 fi
46233 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46234   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46236 fi
46237 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46238   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46240 fi
46241 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46242   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46244 fi
46245 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
46246   as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
46247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46248 fi
46249 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46250   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46252 fi
46253 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46254   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46256 fi
46257 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46258   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46260 fi
46261 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46262   as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46264 fi
46265 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46266   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46268 fi
46269 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46270   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46272 fi
46273 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46274   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46276 fi
46277 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46278   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46280 fi
46281 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46282   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46284 fi
46285
46286 : "${CONFIG_STATUS=./config.status}"
46287 ac_write_fail=0
46288 ac_clean_files_save=$ac_clean_files
46289 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46291 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46292 as_write_fail=0
46293 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46294 #! $SHELL
46295 # Generated by $as_me.
46296 # Run this file to recreate the current configuration.
46297 # Compiler output produced by configure, useful for debugging
46298 # configure, is in config.log if it exists.
46299
46300 debug=false
46301 ac_cs_recheck=false
46302 ac_cs_silent=false
46303
46304 SHELL=\${CONFIG_SHELL-$SHELL}
46305 export SHELL
46306 _ASEOF
46307 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46308 ## -------------------- ##
46309 ## M4sh Initialization. ##
46310 ## -------------------- ##
46311
46312 # Be more Bourne compatible
46313 DUALCASE=1; export DUALCASE # for MKS sh
46314 as_nop=:
46315 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46316 then :
46317   emulate sh
46318   NULLCMD=:
46319   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46320   # is contrary to our usage.  Disable this feature.
46321   alias -g '${1+"$@"}'='"$@"'
46322   setopt NO_GLOB_SUBST
46323 else $as_nop
46324   case `(set -o) 2>/dev/null` in #(
46325   *posix*) :
46326     set -o posix ;; #(
46327   *) :
46328      ;;
46329 esac
46330 fi
46331
46332
46333
46334 # Reset variables that may have inherited troublesome values from
46335 # the environment.
46336
46337 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46338 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46339 # side effect of setting IFS to empty, thus disabling word splitting.)
46340 # Quoting is to prevent editors from complaining about space-tab.
46341 as_nl='
46342 '
46343 export as_nl
46344 IFS=" ""        $as_nl"
46345
46346 PS1='$ '
46347 PS2='> '
46348 PS4='+ '
46349
46350 # Ensure predictable behavior from utilities with locale-dependent output.
46351 LC_ALL=C
46352 export LC_ALL
46353 LANGUAGE=C
46354 export LANGUAGE
46355
46356 # We cannot yet rely on "unset" to work, but we need these variables
46357 # to be unset--not just set to an empty or harmless value--now, to
46358 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46359 # also avoids known problems related to "unset" and subshell syntax
46360 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46361 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46362 do eval test \${$as_var+y} \
46363   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46364 done
46365
46366 # Ensure that fds 0, 1, and 2 are open.
46367 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46368 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46369 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46370
46371
46372
46373 # Find who we are.  Look in the path if we contain no directory separator.
46374 as_myself=
46375 case $0 in #((
46376   *[\\/]* ) as_myself=$0 ;;
46377   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46378 for as_dir in $PATH
46379 do
46380   IFS=$as_save_IFS
46381   case $as_dir in #(((
46382     '') as_dir=./ ;;
46383     */) ;;
46384     *) as_dir=$as_dir/ ;;
46385   esac
46386     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46387   done
46388 IFS=$as_save_IFS
46389
46390      ;;
46391 esac
46392 # We did not find ourselves, most probably we were run as `sh COMMAND'
46393 # in which case we are not to be found in the path.
46394 if test "x$as_myself" = x; then
46395   as_myself=$0
46396 fi
46397 if test ! -f "$as_myself"; then
46398   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46399   exit 1
46400 fi
46401
46402
46403
46404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
46405 # ----------------------------------------
46406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46408 # script with STATUS, using 1 if that was 0.
46409 as_fn_error ()
46410 {
46411   as_status=$1; test $as_status -eq 0 && as_status=1
46412   if test "$4"; then
46413     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46414     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46415   fi
46416   printf "%s\n" "$as_me: error: $2" >&2
46417   as_fn_exit $as_status
46418 } # as_fn_error
46419
46420
46421
46422 # as_fn_set_status STATUS
46423 # -----------------------
46424 # Set $? to STATUS, without forking.
46425 as_fn_set_status ()
46426 {
46427   return $1
46428 } # as_fn_set_status
46429
46430 # as_fn_exit STATUS
46431 # -----------------
46432 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46433 as_fn_exit ()
46434 {
46435   set +e
46436   as_fn_set_status $1
46437   exit $1
46438 } # as_fn_exit
46439
46440 # as_fn_unset VAR
46441 # ---------------
46442 # Portably unset VAR.
46443 as_fn_unset ()
46444 {
46445   { eval $1=; unset $1;}
46446 }
46447 as_unset=as_fn_unset
46448
46449 # as_fn_append VAR VALUE
46450 # ----------------------
46451 # Append the text in VALUE to the end of the definition contained in VAR. Take
46452 # advantage of any shell optimizations that allow amortized linear growth over
46453 # repeated appends, instead of the typical quadratic growth present in naive
46454 # implementations.
46455 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46456 then :
46457   eval 'as_fn_append ()
46458   {
46459     eval $1+=\$2
46460   }'
46461 else $as_nop
46462   as_fn_append ()
46463   {
46464     eval $1=\$$1\$2
46465   }
46466 fi # as_fn_append
46467
46468 # as_fn_arith ARG...
46469 # ------------------
46470 # Perform arithmetic evaluation on the ARGs, and store the result in the
46471 # global $as_val. Take advantage of shells that can avoid forks. The arguments
46472 # must be portable across $(()) and expr.
46473 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46474 then :
46475   eval 'as_fn_arith ()
46476   {
46477     as_val=$(( $* ))
46478   }'
46479 else $as_nop
46480   as_fn_arith ()
46481   {
46482     as_val=`expr "$@" || test $? -eq 1`
46483   }
46484 fi # as_fn_arith
46485
46486
46487 if expr a : '\(a\)' >/dev/null 2>&1 &&
46488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46489   as_expr=expr
46490 else
46491   as_expr=false
46492 fi
46493
46494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46495   as_basename=basename
46496 else
46497   as_basename=false
46498 fi
46499
46500 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46501   as_dirname=dirname
46502 else
46503   as_dirname=false
46504 fi
46505
46506 as_me=`$as_basename -- "$0" ||
46507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46508          X"$0" : 'X\(//\)$' \| \
46509          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46510 printf "%s\n" X/"$0" |
46511     sed '/^.*\/\([^/][^/]*\)\/*$/{
46512             s//\1/
46513             q
46514           }
46515           /^X\/\(\/\/\)$/{
46516             s//\1/
46517             q
46518           }
46519           /^X\/\(\/\).*/{
46520             s//\1/
46521             q
46522           }
46523           s/.*/./; q'`
46524
46525 # Avoid depending upon Character Ranges.
46526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46529 as_cr_digits='0123456789'
46530 as_cr_alnum=$as_cr_Letters$as_cr_digits
46531
46532
46533 # Determine whether it's possible to make 'echo' print without a newline.
46534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46535 # for compatibility with existing Makefiles.
46536 ECHO_C= ECHO_N= ECHO_T=
46537 case `echo -n x` in #(((((
46538 -n*)
46539   case `echo 'xy\c'` in
46540   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
46541   xy)  ECHO_C='\c';;
46542   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46543        ECHO_T=' ';;
46544   esac;;
46545 *)
46546   ECHO_N='-n';;
46547 esac
46548
46549 # For backward compatibility with old third-party macros, we provide
46550 # the shell variables $as_echo and $as_echo_n.  New code should use
46551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46552 as_echo='printf %s\n'
46553 as_echo_n='printf %s'
46554
46555 rm -f conf$$ conf$$.exe conf$$.file
46556 if test -d conf$$.dir; then
46557   rm -f conf$$.dir/conf$$.file
46558 else
46559   rm -f conf$$.dir
46560   mkdir conf$$.dir 2>/dev/null
46561 fi
46562 if (echo >conf$$.file) 2>/dev/null; then
46563   if ln -s conf$$.file conf$$ 2>/dev/null; then
46564     as_ln_s='ln -s'
46565     # ... but there are two gotchas:
46566     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46567     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46568     # In both cases, we have to default to `cp -pR'.
46569     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46570       as_ln_s='cp -pR'
46571   elif ln conf$$.file conf$$ 2>/dev/null; then
46572     as_ln_s=ln
46573   else
46574     as_ln_s='cp -pR'
46575   fi
46576 else
46577   as_ln_s='cp -pR'
46578 fi
46579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46580 rmdir conf$$.dir 2>/dev/null
46581
46582
46583 # as_fn_mkdir_p
46584 # -------------
46585 # Create "$as_dir" as a directory, including parents if necessary.
46586 as_fn_mkdir_p ()
46587 {
46588
46589   case $as_dir in #(
46590   -*) as_dir=./$as_dir;;
46591   esac
46592   test -d "$as_dir" || eval $as_mkdir_p || {
46593     as_dirs=
46594     while :; do
46595       case $as_dir in #(
46596       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46597       *) as_qdir=$as_dir;;
46598       esac
46599       as_dirs="'$as_qdir' $as_dirs"
46600       as_dir=`$as_dirname -- "$as_dir" ||
46601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46602          X"$as_dir" : 'X\(//\)[^/]' \| \
46603          X"$as_dir" : 'X\(//\)$' \| \
46604          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46605 printf "%s\n" X"$as_dir" |
46606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46607             s//\1/
46608             q
46609           }
46610           /^X\(\/\/\)[^/].*/{
46611             s//\1/
46612             q
46613           }
46614           /^X\(\/\/\)$/{
46615             s//\1/
46616             q
46617           }
46618           /^X\(\/\).*/{
46619             s//\1/
46620             q
46621           }
46622           s/.*/./; q'`
46623       test -d "$as_dir" && break
46624     done
46625     test -z "$as_dirs" || eval "mkdir $as_dirs"
46626   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46627
46628
46629 } # as_fn_mkdir_p
46630 if mkdir -p . 2>/dev/null; then
46631   as_mkdir_p='mkdir -p "$as_dir"'
46632 else
46633   test -d ./-p && rmdir ./-p
46634   as_mkdir_p=false
46635 fi
46636
46637
46638 # as_fn_executable_p FILE
46639 # -----------------------
46640 # Test if FILE is an executable regular file.
46641 as_fn_executable_p ()
46642 {
46643   test -f "$1" && test -x "$1"
46644 } # as_fn_executable_p
46645 as_test_x='test -x'
46646 as_executable_p=as_fn_executable_p
46647
46648 # Sed expression to map a string onto a valid CPP name.
46649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46650
46651 # Sed expression to map a string onto a valid variable name.
46652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46653
46654
46655 exec 6>&1
46656 ## ----------------------------------- ##
46657 ## Main body of $CONFIG_STATUS script. ##
46658 ## ----------------------------------- ##
46659 _ASEOF
46660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46661
46662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46663 # Save the log message, to keep $0 and so on meaningful, and to
46664 # report actual input values of CONFIG_FILES etc. instead of their
46665 # values after options handling.
46666 ac_log="
46667 This file was extended by curl $as_me -, which was
46668 generated by GNU Autoconf 2.71.  Invocation command line was
46669
46670   CONFIG_FILES    = $CONFIG_FILES
46671   CONFIG_HEADERS  = $CONFIG_HEADERS
46672   CONFIG_LINKS    = $CONFIG_LINKS
46673   CONFIG_COMMANDS = $CONFIG_COMMANDS
46674   $ $0 $@
46675
46676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46677 "
46678
46679 _ACEOF
46680
46681 case $ac_config_files in *"
46682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46683 esac
46684
46685 case $ac_config_headers in *"
46686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46687 esac
46688
46689
46690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46691 # Files that config.status was made for.
46692 config_files="$ac_config_files"
46693 config_headers="$ac_config_headers"
46694 config_commands="$ac_config_commands"
46695
46696 _ACEOF
46697
46698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46699 ac_cs_usage="\
46700 \`$as_me' instantiates files and other configuration actions
46701 from templates according to the current configuration.  Unless the files
46702 and actions are specified as TAGs, all are instantiated by default.
46703
46704 Usage: $0 [OPTION]... [TAG]...
46705
46706   -h, --help       print this help, then exit
46707   -V, --version    print version number and configuration settings, then exit
46708       --config     print configuration, then exit
46709   -q, --quiet, --silent
46710                    do not print progress messages
46711   -d, --debug      don't remove temporary files
46712       --recheck    update $as_me by reconfiguring in the same conditions
46713       --file=FILE[:TEMPLATE]
46714                    instantiate the configuration file FILE
46715       --header=FILE[:TEMPLATE]
46716                    instantiate the configuration header FILE
46717
46718 Configuration files:
46719 $config_files
46720
46721 Configuration headers:
46722 $config_headers
46723
46724 Configuration commands:
46725 $config_commands
46726
46727 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46728
46729 _ACEOF
46730 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46731 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46733 ac_cs_config='$ac_cs_config_escaped'
46734 ac_cs_version="\\
46735 curl config.status -
46736 configured by $0, generated by GNU Autoconf 2.71,
46737   with options \\"\$ac_cs_config\\"
46738
46739 Copyright (C) 2021 Free Software Foundation, Inc.
46740 This config.status script is free software; the Free Software Foundation
46741 gives unlimited permission to copy, distribute and modify it."
46742
46743 ac_pwd='$ac_pwd'
46744 srcdir='$srcdir'
46745 INSTALL='$INSTALL'
46746 MKDIR_P='$MKDIR_P'
46747 AWK='$AWK'
46748 test -n "\$AWK" || AWK=awk
46749 _ACEOF
46750
46751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46752 # The default lists apply if the user does not specify any file.
46753 ac_need_defaults=:
46754 while test $# != 0
46755 do
46756   case $1 in
46757   --*=?*)
46758     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46759     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46760     ac_shift=:
46761     ;;
46762   --*=)
46763     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46764     ac_optarg=
46765     ac_shift=:
46766     ;;
46767   *)
46768     ac_option=$1
46769     ac_optarg=$2
46770     ac_shift=shift
46771     ;;
46772   esac
46773
46774   case $ac_option in
46775   # Handling of the options.
46776   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46777     ac_cs_recheck=: ;;
46778   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46779     printf "%s\n" "$ac_cs_version"; exit ;;
46780   --config | --confi | --conf | --con | --co | --c )
46781     printf "%s\n" "$ac_cs_config"; exit ;;
46782   --debug | --debu | --deb | --de | --d | -d )
46783     debug=: ;;
46784   --file | --fil | --fi | --f )
46785     $ac_shift
46786     case $ac_optarg in
46787     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46788     '') as_fn_error $? "missing file argument" ;;
46789     esac
46790     as_fn_append CONFIG_FILES " '$ac_optarg'"
46791     ac_need_defaults=false;;
46792   --header | --heade | --head | --hea )
46793     $ac_shift
46794     case $ac_optarg in
46795     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46796     esac
46797     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46798     ac_need_defaults=false;;
46799   --he | --h)
46800     # Conflict between --help and --header
46801     as_fn_error $? "ambiguous option: \`$1'
46802 Try \`$0 --help' for more information.";;
46803   --help | --hel | -h )
46804     printf "%s\n" "$ac_cs_usage"; exit ;;
46805   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46806   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46807     ac_cs_silent=: ;;
46808
46809   # This is an error.
46810   -*) as_fn_error $? "unrecognized option: \`$1'
46811 Try \`$0 --help' for more information." ;;
46812
46813   *) as_fn_append ac_config_targets " $1"
46814      ac_need_defaults=false ;;
46815
46816   esac
46817   shift
46818 done
46819
46820 ac_configure_extra_args=
46821
46822 if $ac_cs_silent; then
46823   exec 6>/dev/null
46824   ac_configure_extra_args="$ac_configure_extra_args --silent"
46825 fi
46826
46827 _ACEOF
46828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46829 if \$ac_cs_recheck; then
46830   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46831   shift
46832   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46833   CONFIG_SHELL='$SHELL'
46834   export CONFIG_SHELL
46835   exec "\$@"
46836 fi
46837
46838 _ACEOF
46839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46840 exec 5>>config.log
46841 {
46842   echo
46843   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46844 ## Running $as_me. ##
46845 _ASBOX
46846   printf "%s\n" "$ac_log"
46847 } >&5
46848
46849 _ACEOF
46850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46851 #
46852 # INIT-COMMANDS
46853 #
46854 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46855
46856
46857 # The HP-UX ksh and POSIX shell print the target directory to stdout
46858 # if CDPATH is set.
46859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46860
46861 sed_quote_subst='$sed_quote_subst'
46862 double_quote_subst='$double_quote_subst'
46863 delay_variable_subst='$delay_variable_subst'
46864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46866 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46867 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46868 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46869 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46870 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46871 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46872 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46873 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46874 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46875 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46876 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46877 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46878 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46879 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46880 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46881 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46882 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46883 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46884 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46885 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46886 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46887 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46888 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46889 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46890 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46891 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46892 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46893 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46894 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46895 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46896 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46897 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46898 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46899 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46900 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46901 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46902 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46903 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46904 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46905 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46906 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46907 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46908 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46909 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46910 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46911 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46912 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46913 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46914 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46915 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46916 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46917 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46918 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46919 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46920 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46921 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46922 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46923 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46924 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46925 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"`'
46926 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46927 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46928 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46929 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46930 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46931 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46932 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46933 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46934 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46935 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46936 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46937 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46938 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46939 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46940 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46941 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46942 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46943 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46944 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46945 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46946 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46947 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46948 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46949 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46950 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46951 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46952 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46953 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46954 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46955 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46956 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46957 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46958 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46959 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46960 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46961 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46962 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46963 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46964 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46965 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46966 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46967 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46968 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46969 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46970 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46971 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46972 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46973 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46974 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46975 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46976 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46977 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46978 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46979 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46980 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46981 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46982 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46983 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46984 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46985 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46986 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46987 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46988 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46989 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46990 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46991 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46992 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46993 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46994 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46995 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46996 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46997 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46998 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46999 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
47000 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
47001 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
47002 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
47003 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
47004 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
47005 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47006 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
47007 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
47008 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
47009 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
47010 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
47011 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
47012 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
47013 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
47014 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
47015 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47016 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47017 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
47018 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
47019 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
47020 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47021 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47022 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
47023 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47024 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
47025 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47026 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47027 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47028 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
47029 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
47030 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
47031 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
47032 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
47033 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
47034 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
47035 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
47036 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
47037 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
47038 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47039 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47040 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47041 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47042 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
47043 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
47044
47045 LTCC='$LTCC'
47046 LTCFLAGS='$LTCFLAGS'
47047 compiler='$compiler_DEFAULT'
47048
47049 # A function that is used when there is no print builtin or printf.
47050 func_fallback_echo ()
47051 {
47052   eval 'cat <<_LTECHO_EOF
47053 \$1
47054 _LTECHO_EOF'
47055 }
47056
47057 # Quote evaled strings.
47058 for var in AS \
47059 DLLTOOL \
47060 OBJDUMP \
47061 SHELL \
47062 ECHO \
47063 PATH_SEPARATOR \
47064 SED \
47065 GREP \
47066 EGREP \
47067 FGREP \
47068 LD \
47069 NM \
47070 LN_S \
47071 lt_SP2NL \
47072 lt_NL2SP \
47073 reload_flag \
47074 FILECMD \
47075 deplibs_check_method \
47076 file_magic_cmd \
47077 file_magic_glob \
47078 want_nocaseglob \
47079 sharedlib_from_linklib_cmd \
47080 AR \
47081 archiver_list_spec \
47082 STRIP \
47083 RANLIB \
47084 CC \
47085 CFLAGS \
47086 compiler \
47087 lt_cv_sys_global_symbol_pipe \
47088 lt_cv_sys_global_symbol_to_cdecl \
47089 lt_cv_sys_global_symbol_to_import \
47090 lt_cv_sys_global_symbol_to_c_name_address \
47091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47092 lt_cv_nm_interface \
47093 nm_file_list_spec \
47094 lt_cv_truncate_bin \
47095 lt_prog_compiler_no_builtin_flag \
47096 lt_prog_compiler_pic \
47097 lt_prog_compiler_wl \
47098 lt_prog_compiler_static \
47099 lt_cv_prog_compiler_c_o \
47100 need_locks \
47101 MANIFEST_TOOL \
47102 DSYMUTIL \
47103 NMEDIT \
47104 LIPO \
47105 OTOOL \
47106 OTOOL64 \
47107 shrext_cmds \
47108 export_dynamic_flag_spec \
47109 whole_archive_flag_spec \
47110 compiler_needs_object \
47111 with_gnu_ld \
47112 allow_undefined_flag \
47113 no_undefined_flag \
47114 hardcode_libdir_flag_spec \
47115 hardcode_libdir_separator \
47116 exclude_expsyms \
47117 include_expsyms \
47118 file_list_spec \
47119 variables_saved_for_relink \
47120 libname_spec \
47121 library_names_spec \
47122 soname_spec \
47123 install_override_mode \
47124 finish_eval \
47125 old_striplib \
47126 striplib \
47127 LD_RC \
47128 reload_flag_RC \
47129 compiler_RC \
47130 lt_prog_compiler_no_builtin_flag_RC \
47131 lt_prog_compiler_pic_RC \
47132 lt_prog_compiler_wl_RC \
47133 lt_prog_compiler_static_RC \
47134 lt_cv_prog_compiler_c_o_RC \
47135 export_dynamic_flag_spec_RC \
47136 whole_archive_flag_spec_RC \
47137 compiler_needs_object_RC \
47138 with_gnu_ld_RC \
47139 allow_undefined_flag_RC \
47140 no_undefined_flag_RC \
47141 hardcode_libdir_flag_spec_RC \
47142 hardcode_libdir_separator_RC \
47143 exclude_expsyms_RC \
47144 include_expsyms_RC \
47145 file_list_spec_RC; do
47146     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47147     *[\\\\\\\`\\"\\\$]*)
47148       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47149       ;;
47150     *)
47151       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47152       ;;
47153     esac
47154 done
47155
47156 # Double-quote double-evaled strings.
47157 for var in reload_cmds \
47158 old_postinstall_cmds \
47159 old_postuninstall_cmds \
47160 old_archive_cmds \
47161 extract_expsyms_cmds \
47162 old_archive_from_new_cmds \
47163 old_archive_from_expsyms_cmds \
47164 archive_cmds \
47165 archive_expsym_cmds \
47166 module_cmds \
47167 module_expsym_cmds \
47168 export_symbols_cmds \
47169 prelink_cmds \
47170 postlink_cmds \
47171 postinstall_cmds \
47172 postuninstall_cmds \
47173 finish_cmds \
47174 sys_lib_search_path_spec \
47175 configure_time_dlsearch_path \
47176 configure_time_lt_sys_library_path \
47177 reload_cmds_RC \
47178 old_archive_cmds_RC \
47179 old_archive_from_new_cmds_RC \
47180 old_archive_from_expsyms_cmds_RC \
47181 archive_cmds_RC \
47182 archive_expsym_cmds_RC \
47183 module_cmds_RC \
47184 module_expsym_cmds_RC \
47185 export_symbols_cmds_RC \
47186 prelink_cmds_RC \
47187 postlink_cmds_RC; do
47188     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47189     *[\\\\\\\`\\"\\\$]*)
47190       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47191       ;;
47192     *)
47193       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47194       ;;
47195     esac
47196 done
47197
47198 ac_aux_dir='$ac_aux_dir'
47199
47200 # See if we are running on zsh, and set the options that allow our
47201 # commands through without removal of \ escapes INIT.
47202 if test -n "\${ZSH_VERSION+set}"; then
47203    setopt NO_GLOB_SUBST
47204 fi
47205
47206
47207     PACKAGE='$PACKAGE'
47208     VERSION='$VERSION'
47209     RM='$RM'
47210     ofile='$ofile'
47211
47212
47213
47214
47215
47216
47217 _ACEOF
47218
47219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47220
47221 # Handling of arguments.
47222 for ac_config_target in $ac_config_targets
47223 do
47224   case $ac_config_target in
47225     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47226     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47227     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47228     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47229     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47230     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47231     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47232     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47233     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47234     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47235     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47236     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47237     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47238     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47239     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47240     "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
47241     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47242     "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
47243     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47244     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47245     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47246     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47247     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47248     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47249     "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
47250     "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
47251     "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;;
47252     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47253     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47254     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47255     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47256
47257   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47258   esac
47259 done
47260
47261
47262 # If the user did not use the arguments to specify the items to instantiate,
47263 # then the envvar interface is used.  Set only those that are not.
47264 # We use the long form for the default assignment because of an extremely
47265 # bizarre bug on SunOS 4.1.3.
47266 if $ac_need_defaults; then
47267   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47268   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47269   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47270 fi
47271
47272 # Have a temporary directory for convenience.  Make it in the build tree
47273 # simply because there is no reason against having it here, and in addition,
47274 # creating and moving files from /tmp can sometimes cause problems.
47275 # Hook for its removal unless debugging.
47276 # Note that there is a small window in which the directory will not be cleaned:
47277 # after its creation but before its name has been assigned to `$tmp'.
47278 $debug ||
47279 {
47280   tmp= ac_tmp=
47281   trap 'exit_status=$?
47282   : "${ac_tmp:=$tmp}"
47283   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47284 ' 0
47285   trap 'as_fn_exit 1' 1 2 13 15
47286 }
47287 # Create a (secure) tmp directory for tmp files.
47288
47289 {
47290   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47291   test -d "$tmp"
47292 }  ||
47293 {
47294   tmp=./conf$$-$RANDOM
47295   (umask 077 && mkdir "$tmp")
47296 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47297 ac_tmp=$tmp
47298
47299 # Set up the scripts for CONFIG_FILES section.
47300 # No need to generate them if there are no CONFIG_FILES.
47301 # This happens for instance with `./config.status config.h'.
47302 if test -n "$CONFIG_FILES"; then
47303
47304
47305 ac_cr=`echo X | tr X '\015'`
47306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
47307 # But we know of no other shell where ac_cr would be empty at this
47308 # point, so we can use a bashism as a fallback.
47309 if test "x$ac_cr" = x; then
47310   eval ac_cr=\$\'\\r\'
47311 fi
47312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47314   ac_cs_awk_cr='\\r'
47315 else
47316   ac_cs_awk_cr=$ac_cr
47317 fi
47318
47319 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47320 _ACEOF
47321
47322
47323 {
47324   echo "cat >conf$$subs.awk <<_ACEOF" &&
47325   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47326   echo "_ACEOF"
47327 } >conf$$subs.sh ||
47328   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47330 ac_delim='%!_!# '
47331 for ac_last_try in false false false false false :; do
47332   . ./conf$$subs.sh ||
47333     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47334
47335   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47336   if test $ac_delim_n = $ac_delim_num; then
47337     break
47338   elif $ac_last_try; then
47339     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47340   else
47341     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47342   fi
47343 done
47344 rm -f conf$$subs.sh
47345
47346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47347 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47348 _ACEOF
47349 sed -n '
47350 h
47351 s/^/S["/; s/!.*/"]=/
47352 p
47353 g
47354 s/^[^!]*!//
47355 :repl
47356 t repl
47357 s/'"$ac_delim"'$//
47358 t delim
47359 :nl
47360 h
47361 s/\(.\{148\}\)..*/\1/
47362 t more1
47363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47364 p
47365 n
47366 b repl
47367 :more1
47368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47369 p
47370 g
47371 s/.\{148\}//
47372 t nl
47373 :delim
47374 h
47375 s/\(.\{148\}\)..*/\1/
47376 t more2
47377 s/["\\]/\\&/g; s/^/"/; s/$/"/
47378 p
47379 b
47380 :more2
47381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47382 p
47383 g
47384 s/.\{148\}//
47385 t delim
47386 ' <conf$$subs.awk | sed '
47387 /^[^""]/{
47388   N
47389   s/\n//
47390 }
47391 ' >>$CONFIG_STATUS || ac_write_fail=1
47392 rm -f conf$$subs.awk
47393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47394 _ACAWK
47395 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47396   for (key in S) S_is_set[key] = 1
47397   FS = "\a"
47398
47399 }
47400 {
47401   line = $ 0
47402   nfields = split(line, field, "@")
47403   substed = 0
47404   len = length(field[1])
47405   for (i = 2; i < nfields; i++) {
47406     key = field[i]
47407     keylen = length(key)
47408     if (S_is_set[key]) {
47409       value = S[key]
47410       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47411       len += length(value) + length(field[++i])
47412       substed = 1
47413     } else
47414       len += 1 + keylen
47415   }
47416
47417   print line
47418 }
47419
47420 _ACAWK
47421 _ACEOF
47422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47424   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47425 else
47426   cat
47427 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47428   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47429 _ACEOF
47430
47431 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47432 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47433 # trailing colons and then remove the whole line if VPATH becomes empty
47434 # (actually we leave an empty line to preserve line numbers).
47435 if test "x$srcdir" = x.; then
47436   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
47437 h
47438 s///
47439 s/^/:/
47440 s/[      ]*$/:/
47441 s/:\$(srcdir):/:/g
47442 s/:\${srcdir}:/:/g
47443 s/:@srcdir@:/:/g
47444 s/^:*//
47445 s/:*$//
47446 x
47447 s/\(=[   ]*\).*/\1/
47448 G
47449 s/\n//
47450 s/^[^=]*=[       ]*$//
47451 }'
47452 fi
47453
47454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47455 fi # test -n "$CONFIG_FILES"
47456
47457 # Set up the scripts for CONFIG_HEADERS section.
47458 # No need to generate them if there are no CONFIG_HEADERS.
47459 # This happens for instance with `./config.status Makefile'.
47460 if test -n "$CONFIG_HEADERS"; then
47461 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47462 BEGIN {
47463 _ACEOF
47464
47465 # Transform confdefs.h into an awk script `defines.awk', embedded as
47466 # here-document in config.status, that substitutes the proper values into
47467 # config.h.in to produce config.h.
47468
47469 # Create a delimiter string that does not exist in confdefs.h, to ease
47470 # handling of long lines.
47471 ac_delim='%!_!# '
47472 for ac_last_try in false false :; do
47473   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47474   if test -z "$ac_tt"; then
47475     break
47476   elif $ac_last_try; then
47477     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47478   else
47479     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47480   fi
47481 done
47482
47483 # For the awk script, D is an array of macro values keyed by name,
47484 # likewise P contains macro parameters if any.  Preserve backslash
47485 # newline sequences.
47486
47487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47488 sed -n '
47489 s/.\{148\}/&'"$ac_delim"'/g
47490 t rset
47491 :rset
47492 s/^[     ]*#[    ]*define[       ][      ]*/ /
47493 t def
47494 d
47495 :def
47496 s/\\$//
47497 t bsnl
47498 s/["\\]/\\&/g
47499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47500 D["\1"]=" \3"/p
47501 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
47502 d
47503 :bsnl
47504 s/["\\]/\\&/g
47505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47506 D["\1"]=" \3\\\\\\n"\\/p
47507 t cont
47508 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47509 t cont
47510 d
47511 :cont
47512 n
47513 s/.\{148\}/&'"$ac_delim"'/g
47514 t clear
47515 :clear
47516 s/\\$//
47517 t bsnlc
47518 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47519 d
47520 :bsnlc
47521 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47522 b cont
47523 ' <confdefs.h | sed '
47524 s/'"$ac_delim"'/"\\\
47525 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47526
47527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47528   for (key in D) D_is_set[key] = 1
47529   FS = "\a"
47530 }
47531 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47532   line = \$ 0
47533   split(line, arg, " ")
47534   if (arg[1] == "#") {
47535     defundef = arg[2]
47536     mac1 = arg[3]
47537   } else {
47538     defundef = substr(arg[1], 2)
47539     mac1 = arg[2]
47540   }
47541   split(mac1, mac2, "(") #)
47542   macro = mac2[1]
47543   prefix = substr(line, 1, index(line, defundef) - 1)
47544   if (D_is_set[macro]) {
47545     # Preserve the white space surrounding the "#".
47546     print prefix "define", macro P[macro] D[macro]
47547     next
47548   } else {
47549     # Replace #undef with comments.  This is necessary, for example,
47550     # in the case of _POSIX_SOURCE, which is predefined and required
47551     # on some systems where configure will not decide to define it.
47552     if (defundef == "undef") {
47553       print "/*", prefix defundef, macro, "*/"
47554       next
47555     }
47556   }
47557 }
47558 { print }
47559 _ACAWK
47560 _ACEOF
47561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47562   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47563 fi # test -n "$CONFIG_HEADERS"
47564
47565
47566 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47567 shift
47568 for ac_tag
47569 do
47570   case $ac_tag in
47571   :[FHLC]) ac_mode=$ac_tag; continue;;
47572   esac
47573   case $ac_mode$ac_tag in
47574   :[FHL]*:*);;
47575   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47576   :[FH]-) ac_tag=-:-;;
47577   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47578   esac
47579   ac_save_IFS=$IFS
47580   IFS=:
47581   set x $ac_tag
47582   IFS=$ac_save_IFS
47583   shift
47584   ac_file=$1
47585   shift
47586
47587   case $ac_mode in
47588   :L) ac_source=$1;;
47589   :[FH])
47590     ac_file_inputs=
47591     for ac_f
47592     do
47593       case $ac_f in
47594       -) ac_f="$ac_tmp/stdin";;
47595       *) # Look for the file first in the build tree, then in the source tree
47596          # (if the path is not absolute).  The absolute path cannot be DOS-style,
47597          # because $ac_f cannot contain `:'.
47598          test -f "$ac_f" ||
47599            case $ac_f in
47600            [\\/$]*) false;;
47601            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47602            esac ||
47603            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47604       esac
47605       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47606       as_fn_append ac_file_inputs " '$ac_f'"
47607     done
47608
47609     # Let's still pretend it is `configure' which instantiates (i.e., don't
47610     # use $as_me), people would be surprised to read:
47611     #    /* config.h.  Generated by config.status.  */
47612     configure_input='Generated from '`
47613           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47614         `' by configure.'
47615     if test x"$ac_file" != x-; then
47616       configure_input="$ac_file.  $configure_input"
47617       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47618 printf "%s\n" "$as_me: creating $ac_file" >&6;}
47619     fi
47620     # Neutralize special characters interpreted by sed in replacement strings.
47621     case $configure_input in #(
47622     *\&* | *\|* | *\\* )
47623        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47624        sed 's/[\\\\&|]/\\\\&/g'`;; #(
47625     *) ac_sed_conf_input=$configure_input;;
47626     esac
47627
47628     case $ac_tag in
47629     *:-:* | *:-) cat >"$ac_tmp/stdin" \
47630       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47631     esac
47632     ;;
47633   esac
47634
47635   ac_dir=`$as_dirname -- "$ac_file" ||
47636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47637          X"$ac_file" : 'X\(//\)[^/]' \| \
47638          X"$ac_file" : 'X\(//\)$' \| \
47639          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47640 printf "%s\n" X"$ac_file" |
47641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47642             s//\1/
47643             q
47644           }
47645           /^X\(\/\/\)[^/].*/{
47646             s//\1/
47647             q
47648           }
47649           /^X\(\/\/\)$/{
47650             s//\1/
47651             q
47652           }
47653           /^X\(\/\).*/{
47654             s//\1/
47655             q
47656           }
47657           s/.*/./; q'`
47658   as_dir="$ac_dir"; as_fn_mkdir_p
47659   ac_builddir=.
47660
47661 case "$ac_dir" in
47662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47663 *)
47664   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47665   # A ".." for each directory in $ac_dir_suffix.
47666   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47667   case $ac_top_builddir_sub in
47668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47670   esac ;;
47671 esac
47672 ac_abs_top_builddir=$ac_pwd
47673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47674 # for backward compatibility:
47675 ac_top_builddir=$ac_top_build_prefix
47676
47677 case $srcdir in
47678   .)  # We are building in place.
47679     ac_srcdir=.
47680     ac_top_srcdir=$ac_top_builddir_sub
47681     ac_abs_top_srcdir=$ac_pwd ;;
47682   [\\/]* | ?:[\\/]* )  # Absolute name.
47683     ac_srcdir=$srcdir$ac_dir_suffix;
47684     ac_top_srcdir=$srcdir
47685     ac_abs_top_srcdir=$srcdir ;;
47686   *) # Relative name.
47687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47688     ac_top_srcdir=$ac_top_build_prefix$srcdir
47689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47690 esac
47691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47692
47693
47694   case $ac_mode in
47695   :F)
47696   #
47697   # CONFIG_FILE
47698   #
47699
47700   case $INSTALL in
47701   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47702   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47703   esac
47704   ac_MKDIR_P=$MKDIR_P
47705   case $MKDIR_P in
47706   [\\/$]* | ?:[\\/]* ) ;;
47707   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47708   esac
47709 _ACEOF
47710
47711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47712 # If the template does not know about datarootdir, expand it.
47713 # FIXME: This hack should be removed a few years after 2.60.
47714 ac_datarootdir_hack=; ac_datarootdir_seen=
47715 ac_sed_dataroot='
47716 /datarootdir/ {
47717   p
47718   q
47719 }
47720 /@datadir@/p
47721 /@docdir@/p
47722 /@infodir@/p
47723 /@localedir@/p
47724 /@mandir@/p'
47725 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47726 *datarootdir*) ac_datarootdir_seen=yes;;
47727 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47728   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47729 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47730 _ACEOF
47731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47732   ac_datarootdir_hack='
47733   s&@datadir@&$datadir&g
47734   s&@docdir@&$docdir&g
47735   s&@infodir@&$infodir&g
47736   s&@localedir@&$localedir&g
47737   s&@mandir@&$mandir&g
47738   s&\\\${datarootdir}&$datarootdir&g' ;;
47739 esac
47740 _ACEOF
47741
47742 # Neutralize VPATH when `$srcdir' = `.'.
47743 # Shell code in configure.ac might set extrasub.
47744 # FIXME: do we really want to maintain this feature?
47745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47746 ac_sed_extra="$ac_vpsub
47747 $extrasub
47748 _ACEOF
47749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47750 :t
47751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47752 s|@configure_input@|$ac_sed_conf_input|;t t
47753 s&@top_builddir@&$ac_top_builddir_sub&;t t
47754 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47755 s&@srcdir@&$ac_srcdir&;t t
47756 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47757 s&@top_srcdir@&$ac_top_srcdir&;t t
47758 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47759 s&@builddir@&$ac_builddir&;t t
47760 s&@abs_builddir@&$ac_abs_builddir&;t t
47761 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47762 s&@INSTALL@&$ac_INSTALL&;t t
47763 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47764 $ac_datarootdir_hack
47765 "
47766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47767   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47768
47769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47770   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47771   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
47772       "$ac_tmp/out"`; test -z "$ac_out"; } &&
47773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47774 which seems to be undefined.  Please make sure it is defined" >&5
47775 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47776 which seems to be undefined.  Please make sure it is defined" >&2;}
47777
47778   rm -f "$ac_tmp/stdin"
47779   case $ac_file in
47780   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47781   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47782   esac \
47783   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47784  ;;
47785   :H)
47786   #
47787   # CONFIG_HEADER
47788   #
47789   if test x"$ac_file" != x-; then
47790     {
47791       printf "%s\n" "/* $configure_input  */" >&1 \
47792       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47793     } >"$ac_tmp/config.h" \
47794       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47795     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47796       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47797 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47798     else
47799       rm -f "$ac_file"
47800       mv "$ac_tmp/config.h" "$ac_file" \
47801         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47802     fi
47803   else
47804     printf "%s\n" "/* $configure_input  */" >&1 \
47805       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47806       || as_fn_error $? "could not create -" "$LINENO" 5
47807   fi
47808 # Compute "$ac_file"'s index in $config_headers.
47809 _am_arg="$ac_file"
47810 _am_stamp_count=1
47811 for _am_header in $config_headers :; do
47812   case $_am_header in
47813     $_am_arg | $_am_arg:* )
47814       break ;;
47815     * )
47816       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47817   esac
47818 done
47819 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47820 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47821          X"$_am_arg" : 'X\(//\)[^/]' \| \
47822          X"$_am_arg" : 'X\(//\)$' \| \
47823          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47824 printf "%s\n" X"$_am_arg" |
47825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47826             s//\1/
47827             q
47828           }
47829           /^X\(\/\/\)[^/].*/{
47830             s//\1/
47831             q
47832           }
47833           /^X\(\/\/\)$/{
47834             s//\1/
47835             q
47836           }
47837           /^X\(\/\).*/{
47838             s//\1/
47839             q
47840           }
47841           s/.*/./; q'`/stamp-h$_am_stamp_count
47842  ;;
47843
47844   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47845 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47846  ;;
47847   esac
47848
47849
47850   case $ac_file$ac_mode in
47851     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47852   # Older Autoconf quotes --file arguments for eval, but not when files
47853   # are listed without --file.  Let's play safe and only enable the eval
47854   # if we detect the quoting.
47855   # TODO: see whether this extra hack can be removed once we start
47856   # requiring Autoconf 2.70 or later.
47857   case $CONFIG_FILES in #(
47858   *\'*) :
47859     eval set x "$CONFIG_FILES" ;; #(
47860   *) :
47861     set x $CONFIG_FILES ;; #(
47862   *) :
47863      ;;
47864 esac
47865   shift
47866   # Used to flag and report bootstrapping failures.
47867   am_rc=0
47868   for am_mf
47869   do
47870     # Strip MF so we end up with the name of the file.
47871     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47872     # Check whether this is an Automake generated Makefile which includes
47873     # dependency-tracking related rules and includes.
47874     # Grep'ing the whole file directly is not great: AIX grep has a line
47875     # limit of 2048, but all sed's we know have understand at least 4000.
47876     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47877       || continue
47878     am_dirpart=`$as_dirname -- "$am_mf" ||
47879 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47880          X"$am_mf" : 'X\(//\)[^/]' \| \
47881          X"$am_mf" : 'X\(//\)$' \| \
47882          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47883 printf "%s\n" X"$am_mf" |
47884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47885             s//\1/
47886             q
47887           }
47888           /^X\(\/\/\)[^/].*/{
47889             s//\1/
47890             q
47891           }
47892           /^X\(\/\/\)$/{
47893             s//\1/
47894             q
47895           }
47896           /^X\(\/\).*/{
47897             s//\1/
47898             q
47899           }
47900           s/.*/./; q'`
47901     am_filepart=`$as_basename -- "$am_mf" ||
47902 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47903          X"$am_mf" : 'X\(//\)$' \| \
47904          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47905 printf "%s\n" X/"$am_mf" |
47906     sed '/^.*\/\([^/][^/]*\)\/*$/{
47907             s//\1/
47908             q
47909           }
47910           /^X\/\(\/\/\)$/{
47911             s//\1/
47912             q
47913           }
47914           /^X\/\(\/\).*/{
47915             s//\1/
47916             q
47917           }
47918           s/.*/./; q'`
47919     { echo "$as_me:$LINENO: cd "$am_dirpart" \
47920       && sed -e '/# am--include-marker/d' "$am_filepart" \
47921         | $MAKE -f - am--depfiles" >&5
47922    (cd "$am_dirpart" \
47923       && sed -e '/# am--include-marker/d' "$am_filepart" \
47924         | $MAKE -f - am--depfiles) >&5 2>&5
47925    ac_status=$?
47926    echo "$as_me:$LINENO: \$? = $ac_status" >&5
47927    (exit $ac_status); } || am_rc=$?
47928   done
47929   if test $am_rc -ne 0; then
47930     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47932 as_fn_error $? "Something went wrong bootstrapping makefile fragments
47933     for automatic dependency tracking.  If GNU make was not used, consider
47934     re-running the configure script with MAKE=\"gmake\" (or whatever is
47935     necessary).  You can also try re-running configure with the
47936     '--disable-dependency-tracking' option to at least be able to build
47937     the package (albeit without support for automatic dependency tracking).
47938 See \`config.log' for more details" "$LINENO" 5; }
47939   fi
47940   { am_dirpart=; unset am_dirpart;}
47941   { am_filepart=; unset am_filepart;}
47942   { am_mf=; unset am_mf;}
47943   { am_rc=; unset am_rc;}
47944   rm -f conftest-deps.mk
47945 }
47946  ;;
47947     "libtool":C)
47948
47949     # See if we are running on zsh, and set the options that allow our
47950     # commands through without removal of \ escapes.
47951     if test -n "${ZSH_VERSION+set}"; then
47952       setopt NO_GLOB_SUBST
47953     fi
47954
47955     cfgfile=${ofile}T
47956     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47957     $RM "$cfgfile"
47958
47959     cat <<_LT_EOF >> "$cfgfile"
47960 #! $SHELL
47961 # Generated automatically by $as_me ($PACKAGE) $VERSION
47962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47963
47964 # Provide generalized library-building support services.
47965 # Written by Gordon Matzigkeit, 1996
47966
47967 # Copyright (C) 2014 Free Software Foundation, Inc.
47968 # This is free software; see the source for copying conditions.  There is NO
47969 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47970
47971 # GNU Libtool is free software; you can redistribute it and/or modify
47972 # it under the terms of the GNU General Public License as published by
47973 # the Free Software Foundation; either version 2 of of the License, or
47974 # (at your option) any later version.
47975 #
47976 # As a special exception to the GNU General Public License, if you
47977 # distribute this file as part of a program or library that is built
47978 # using GNU Libtool, you may include this file under the  same
47979 # distribution terms that you use for the rest of that program.
47980 #
47981 # GNU Libtool is distributed in the hope that it will be useful, but
47982 # WITHOUT ANY WARRANTY; without even the implied warranty of
47983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47984 # GNU General Public License for more details.
47985 #
47986 # You should have received a copy of the GNU General Public License
47987 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
47988
47989
47990 # The names of the tagged configurations supported by this script.
47991 available_tags='RC '
47992
47993 # Configured defaults for sys_lib_dlsearch_path munging.
47994 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47995
47996 # ### BEGIN LIBTOOL CONFIG
47997
47998 # Which release of libtool.m4 was used?
47999 macro_version=$macro_version
48000 macro_revision=$macro_revision
48001
48002 # Assembler program.
48003 AS=$lt_AS
48004
48005 # DLL creation program.
48006 DLLTOOL=$lt_DLLTOOL
48007
48008 # Object dumper program.
48009 OBJDUMP=$lt_OBJDUMP
48010
48011 # Whether or not to build shared libraries.
48012 build_libtool_libs=$enable_shared
48013
48014 # Whether or not to build static libraries.
48015 build_old_libs=$enable_static
48016
48017 # What type of objects to build.
48018 pic_mode=$pic_mode
48019
48020 # Whether or not to optimize for fast installation.
48021 fast_install=$enable_fast_install
48022
48023 # Shared archive member basename,for filename based shared library versioning on AIX.
48024 shared_archive_member_spec=$shared_archive_member_spec
48025
48026 # Shell to use when invoking shell scripts.
48027 SHELL=$lt_SHELL
48028
48029 # An echo program that protects backslashes.
48030 ECHO=$lt_ECHO
48031
48032 # The PATH separator for the build system.
48033 PATH_SEPARATOR=$lt_PATH_SEPARATOR
48034
48035 # The host system.
48036 host_alias=$host_alias
48037 host=$host
48038 host_os=$host_os
48039
48040 # The build system.
48041 build_alias=$build_alias
48042 build=$build
48043 build_os=$build_os
48044
48045 # A sed program that does not truncate output.
48046 SED=$lt_SED
48047
48048 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
48049 Xsed="\$SED -e 1s/^X//"
48050
48051 # A grep program that handles long lines.
48052 GREP=$lt_GREP
48053
48054 # An ERE matcher.
48055 EGREP=$lt_EGREP
48056
48057 # A literal string matcher.
48058 FGREP=$lt_FGREP
48059
48060 # A BSD- or MS-compatible name lister.
48061 NM=$lt_NM
48062
48063 # Whether we need soft or hard links.
48064 LN_S=$lt_LN_S
48065
48066 # What is the maximum length of a command?
48067 max_cmd_len=$max_cmd_len
48068
48069 # Object file suffix (normally "o").
48070 objext=$ac_objext
48071
48072 # Executable file suffix (normally "").
48073 exeext=$exeext
48074
48075 # whether the shell understands "unset".
48076 lt_unset=$lt_unset
48077
48078 # turn spaces into newlines.
48079 SP2NL=$lt_lt_SP2NL
48080
48081 # turn newlines into spaces.
48082 NL2SP=$lt_lt_NL2SP
48083
48084 # convert \$build file names to \$host format.
48085 to_host_file_cmd=$lt_cv_to_host_file_cmd
48086
48087 # convert \$build files to toolchain format.
48088 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48089
48090 # A file(cmd) program that detects file types.
48091 FILECMD=$lt_FILECMD
48092
48093 # Method to check whether dependent libraries are shared objects.
48094 deplibs_check_method=$lt_deplibs_check_method
48095
48096 # Command to use when deplibs_check_method = "file_magic".
48097 file_magic_cmd=$lt_file_magic_cmd
48098
48099 # How to find potential files when deplibs_check_method = "file_magic".
48100 file_magic_glob=$lt_file_magic_glob
48101
48102 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48103 want_nocaseglob=$lt_want_nocaseglob
48104
48105 # Command to associate shared and link libraries.
48106 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48107
48108 # The archiver.
48109 AR=$lt_AR
48110
48111 # Flags to create an archive (by configure).
48112 lt_ar_flags=$lt_ar_flags
48113
48114 # Flags to create an archive.
48115 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
48116
48117 # How to feed a file listing to the archiver.
48118 archiver_list_spec=$lt_archiver_list_spec
48119
48120 # A symbol stripping program.
48121 STRIP=$lt_STRIP
48122
48123 # Commands used to install an old-style archive.
48124 RANLIB=$lt_RANLIB
48125 old_postinstall_cmds=$lt_old_postinstall_cmds
48126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48127
48128 # Whether to use a lock for old archive extraction.
48129 lock_old_archive_extraction=$lock_old_archive_extraction
48130
48131 # A C compiler.
48132 LTCC=$lt_CC
48133
48134 # LTCC compiler flags.
48135 LTCFLAGS=$lt_CFLAGS
48136
48137 # Take the output of nm and produce a listing of raw symbols and C names.
48138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48139
48140 # Transform the output of nm in a proper C declaration.
48141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48142
48143 # Transform the output of nm into a list of symbols to manually relocate.
48144 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48145
48146 # Transform the output of nm in a C name address pair.
48147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48148
48149 # Transform the output of nm in a C name address pair when lib prefix is needed.
48150 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48151
48152 # The name lister interface.
48153 nm_interface=$lt_lt_cv_nm_interface
48154
48155 # Specify filename containing input files for \$NM.
48156 nm_file_list_spec=$lt_nm_file_list_spec
48157
48158 # The root where to search for dependent libraries,and where our libraries should be installed.
48159 lt_sysroot=$lt_sysroot
48160
48161 # Command to truncate a binary pipe.
48162 lt_truncate_bin=$lt_lt_cv_truncate_bin
48163
48164 # The name of the directory that contains temporary libtool files.
48165 objdir=$objdir
48166
48167 # Used to examine libraries when file_magic_cmd begins with "file".
48168 MAGIC_CMD=$MAGIC_CMD
48169
48170 # Must we lock files when doing compilation?
48171 need_locks=$lt_need_locks
48172
48173 # Manifest tool.
48174 MANIFEST_TOOL=$lt_MANIFEST_TOOL
48175
48176 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48177 DSYMUTIL=$lt_DSYMUTIL
48178
48179 # Tool to change global to local symbols on Mac OS X.
48180 NMEDIT=$lt_NMEDIT
48181
48182 # Tool to manipulate fat objects and archives on Mac OS X.
48183 LIPO=$lt_LIPO
48184
48185 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
48186 OTOOL=$lt_OTOOL
48187
48188 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48189 OTOOL64=$lt_OTOOL64
48190
48191 # Old archive suffix (normally "a").
48192 libext=$libext
48193
48194 # Shared library suffix (normally ".so").
48195 shrext_cmds=$lt_shrext_cmds
48196
48197 # The commands to extract the exported symbol list from a shared archive.
48198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48199
48200 # Variables whose values should be saved in libtool wrapper scripts and
48201 # restored at link time.
48202 variables_saved_for_relink=$lt_variables_saved_for_relink
48203
48204 # Do we need the "lib" prefix for modules?
48205 need_lib_prefix=$need_lib_prefix
48206
48207 # Do we need a version for libraries?
48208 need_version=$need_version
48209
48210 # Library versioning type.
48211 version_type=$version_type
48212
48213 # Shared library runtime path variable.
48214 runpath_var=$runpath_var
48215
48216 # Shared library path variable.
48217 shlibpath_var=$shlibpath_var
48218
48219 # Is shlibpath searched before the hard-coded library search path?
48220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48221
48222 # Format of library name prefix.
48223 libname_spec=$lt_libname_spec
48224
48225 # List of archive names.  First name is the real one, the rest are links.
48226 # The last name is the one that the linker finds with -lNAME
48227 library_names_spec=$lt_library_names_spec
48228
48229 # The coded name of the library, if different from the real name.
48230 soname_spec=$lt_soname_spec
48231
48232 # Permission mode override for installation of shared libraries.
48233 install_override_mode=$lt_install_override_mode
48234
48235 # Command to use after installation of a shared archive.
48236 postinstall_cmds=$lt_postinstall_cmds
48237
48238 # Command to use after uninstallation of a shared archive.
48239 postuninstall_cmds=$lt_postuninstall_cmds
48240
48241 # Commands used to finish a libtool library installation in a directory.
48242 finish_cmds=$lt_finish_cmds
48243
48244 # As "finish_cmds", except a single script fragment to be evaled but
48245 # not shown.
48246 finish_eval=$lt_finish_eval
48247
48248 # Whether we should hardcode library paths into libraries.
48249 hardcode_into_libs=$hardcode_into_libs
48250
48251 # Compile-time system search path for libraries.
48252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48253
48254 # Detected run-time system search path for libraries.
48255 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48256
48257 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48258 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48259
48260 # Whether dlopen is supported.
48261 dlopen_support=$enable_dlopen
48262
48263 # Whether dlopen of programs is supported.
48264 dlopen_self=$enable_dlopen_self
48265
48266 # Whether dlopen of statically linked programs is supported.
48267 dlopen_self_static=$enable_dlopen_self_static
48268
48269 # Commands to strip libraries.
48270 old_striplib=$lt_old_striplib
48271 striplib=$lt_striplib
48272
48273
48274 # The linker used to build libraries.
48275 LD=$lt_LD
48276
48277 # How to create reloadable object files.
48278 reload_flag=$lt_reload_flag
48279 reload_cmds=$lt_reload_cmds
48280
48281 # Commands used to build an old-style archive.
48282 old_archive_cmds=$lt_old_archive_cmds
48283
48284 # A language specific compiler.
48285 CC=$lt_compiler
48286
48287 # Is the compiler the GNU compiler?
48288 with_gcc=$GCC
48289
48290 # Compiler flag to turn off builtin functions.
48291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48292
48293 # Additional compiler flags for building library objects.
48294 pic_flag=$lt_lt_prog_compiler_pic
48295
48296 # How to pass a linker flag through the compiler.
48297 wl=$lt_lt_prog_compiler_wl
48298
48299 # Compiler flag to prevent dynamic linking.
48300 link_static_flag=$lt_lt_prog_compiler_static
48301
48302 # Does compiler simultaneously support -c and -o options?
48303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48304
48305 # Whether or not to add -lc for building shared libraries.
48306 build_libtool_need_lc=$archive_cmds_need_lc
48307
48308 # Whether or not to disallow shared libs when runtime libs are static.
48309 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48310
48311 # Compiler flag to allow reflexive dlopens.
48312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48313
48314 # Compiler flag to generate shared objects directly from archives.
48315 whole_archive_flag_spec=$lt_whole_archive_flag_spec
48316
48317 # Whether the compiler copes with passing no objects directly.
48318 compiler_needs_object=$lt_compiler_needs_object
48319
48320 # Create an old-style archive from a shared archive.
48321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48322
48323 # Create a temporary old-style archive to link instead of a shared archive.
48324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48325
48326 # Commands used to build a shared archive.
48327 archive_cmds=$lt_archive_cmds
48328 archive_expsym_cmds=$lt_archive_expsym_cmds
48329
48330 # Commands used to build a loadable module if different from building
48331 # a shared archive.
48332 module_cmds=$lt_module_cmds
48333 module_expsym_cmds=$lt_module_expsym_cmds
48334
48335 # Whether we are building with GNU ld or not.
48336 with_gnu_ld=$lt_with_gnu_ld
48337
48338 # Flag that allows shared libraries with undefined symbols to be built.
48339 allow_undefined_flag=$lt_allow_undefined_flag
48340
48341 # Flag that enforces no undefined symbols.
48342 no_undefined_flag=$lt_no_undefined_flag
48343
48344 # Flag to hardcode \$libdir into a binary during linking.
48345 # This must work even if \$libdir does not exist
48346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48347
48348 # Whether we need a single "-rpath" flag with a separated argument.
48349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48350
48351 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48352 # DIR into the resulting binary.
48353 hardcode_direct=$hardcode_direct
48354
48355 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48356 # DIR into the resulting binary and the resulting library dependency is
48357 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48358 # library is relocated.
48359 hardcode_direct_absolute=$hardcode_direct_absolute
48360
48361 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48362 # into the resulting binary.
48363 hardcode_minus_L=$hardcode_minus_L
48364
48365 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48366 # into the resulting binary.
48367 hardcode_shlibpath_var=$hardcode_shlibpath_var
48368
48369 # Set to "yes" if building a shared library automatically hardcodes DIR
48370 # into the library and all subsequent libraries and executables linked
48371 # against it.
48372 hardcode_automatic=$hardcode_automatic
48373
48374 # Set to yes if linker adds runtime paths of dependent libraries
48375 # to runtime path list.
48376 inherit_rpath=$inherit_rpath
48377
48378 # Whether libtool must link a program against all its dependency libraries.
48379 link_all_deplibs=$link_all_deplibs
48380
48381 # Set to "yes" if exported symbols are required.
48382 always_export_symbols=$always_export_symbols
48383
48384 # The commands to list exported symbols.
48385 export_symbols_cmds=$lt_export_symbols_cmds
48386
48387 # Symbols that should not be listed in the preloaded symbols.
48388 exclude_expsyms=$lt_exclude_expsyms
48389
48390 # Symbols that must always be exported.
48391 include_expsyms=$lt_include_expsyms
48392
48393 # Commands necessary for linking programs (against libraries) with templates.
48394 prelink_cmds=$lt_prelink_cmds
48395
48396 # Commands necessary for finishing linking programs.
48397 postlink_cmds=$lt_postlink_cmds
48398
48399 # Specify filename containing input files.
48400 file_list_spec=$lt_file_list_spec
48401
48402 # How to hardcode a shared library path into an executable.
48403 hardcode_action=$hardcode_action
48404
48405 # ### END LIBTOOL CONFIG
48406
48407 _LT_EOF
48408
48409     cat <<'_LT_EOF' >> "$cfgfile"
48410
48411 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48412
48413 # func_munge_path_list VARIABLE PATH
48414 # -----------------------------------
48415 # VARIABLE is name of variable containing _space_ separated list of
48416 # directories to be munged by the contents of PATH, which is string
48417 # having a format:
48418 # "DIR[:DIR]:"
48419 #       string "DIR[ DIR]" will be prepended to VARIABLE
48420 # ":DIR[:DIR]"
48421 #       string "DIR[ DIR]" will be appended to VARIABLE
48422 # "DIRP[:DIRP]::[DIRA:]DIRA"
48423 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48424 #       "DIRA[ DIRA]" will be appended to VARIABLE
48425 # "DIR[:DIR]"
48426 #       VARIABLE will be replaced by "DIR[ DIR]"
48427 func_munge_path_list ()
48428 {
48429     case x$2 in
48430     x)
48431         ;;
48432     *:)
48433         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48434         ;;
48435     x:*)
48436         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48437         ;;
48438     *::*)
48439         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48440         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48441         ;;
48442     *)
48443         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48444         ;;
48445     esac
48446 }
48447
48448
48449 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48450 func_cc_basename ()
48451 {
48452     for cc_temp in $*""; do
48453       case $cc_temp in
48454         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48455         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48456         \-*) ;;
48457         *) break;;
48458       esac
48459     done
48460     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48461 }
48462
48463
48464 # ### END FUNCTIONS SHARED WITH CONFIGURE
48465
48466 _LT_EOF
48467
48468   case $host_os in
48469   aix3*)
48470     cat <<\_LT_EOF >> "$cfgfile"
48471 # AIX sometimes has problems with the GCC collect2 program.  For some
48472 # reason, if we set the COLLECT_NAMES environment variable, the problems
48473 # vanish in a puff of smoke.
48474 if test set != "${COLLECT_NAMES+set}"; then
48475   COLLECT_NAMES=
48476   export COLLECT_NAMES
48477 fi
48478 _LT_EOF
48479     ;;
48480   esac
48481
48482
48483
48484 ltmain=$ac_aux_dir/ltmain.sh
48485
48486
48487   # We use sed instead of cat because bash on DJGPP gets confused if
48488   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48489   # text mode, it properly converts lines to CR/LF.  This bash problem
48490   # is reportedly fixed, but why not run on old versions too?
48491   $SED '$q' "$ltmain" >> "$cfgfile" \
48492      || (rm -f "$cfgfile"; exit 1)
48493
48494    mv -f "$cfgfile" "$ofile" ||
48495     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48496   chmod +x "$ofile"
48497
48498
48499     cat <<_LT_EOF >> "$ofile"
48500
48501 # ### BEGIN LIBTOOL TAG CONFIG: RC
48502
48503 # The linker used to build libraries.
48504 LD=$lt_LD_RC
48505
48506 # How to create reloadable object files.
48507 reload_flag=$lt_reload_flag_RC
48508 reload_cmds=$lt_reload_cmds_RC
48509
48510 # Commands used to build an old-style archive.
48511 old_archive_cmds=$lt_old_archive_cmds_RC
48512
48513 # A language specific compiler.
48514 CC=$lt_compiler_RC
48515
48516 # Is the compiler the GNU compiler?
48517 with_gcc=$GCC_RC
48518
48519 # Compiler flag to turn off builtin functions.
48520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48521
48522 # Additional compiler flags for building library objects.
48523 pic_flag=$lt_lt_prog_compiler_pic_RC
48524
48525 # How to pass a linker flag through the compiler.
48526 wl=$lt_lt_prog_compiler_wl_RC
48527
48528 # Compiler flag to prevent dynamic linking.
48529 link_static_flag=$lt_lt_prog_compiler_static_RC
48530
48531 # Does compiler simultaneously support -c and -o options?
48532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48533
48534 # Whether or not to add -lc for building shared libraries.
48535 build_libtool_need_lc=$archive_cmds_need_lc_RC
48536
48537 # Whether or not to disallow shared libs when runtime libs are static.
48538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48539
48540 # Compiler flag to allow reflexive dlopens.
48541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48542
48543 # Compiler flag to generate shared objects directly from archives.
48544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48545
48546 # Whether the compiler copes with passing no objects directly.
48547 compiler_needs_object=$lt_compiler_needs_object_RC
48548
48549 # Create an old-style archive from a shared archive.
48550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48551
48552 # Create a temporary old-style archive to link instead of a shared archive.
48553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48554
48555 # Commands used to build a shared archive.
48556 archive_cmds=$lt_archive_cmds_RC
48557 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48558
48559 # Commands used to build a loadable module if different from building
48560 # a shared archive.
48561 module_cmds=$lt_module_cmds_RC
48562 module_expsym_cmds=$lt_module_expsym_cmds_RC
48563
48564 # Whether we are building with GNU ld or not.
48565 with_gnu_ld=$lt_with_gnu_ld_RC
48566
48567 # Flag that allows shared libraries with undefined symbols to be built.
48568 allow_undefined_flag=$lt_allow_undefined_flag_RC
48569
48570 # Flag that enforces no undefined symbols.
48571 no_undefined_flag=$lt_no_undefined_flag_RC
48572
48573 # Flag to hardcode \$libdir into a binary during linking.
48574 # This must work even if \$libdir does not exist
48575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48576
48577 # Whether we need a single "-rpath" flag with a separated argument.
48578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48579
48580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48581 # DIR into the resulting binary.
48582 hardcode_direct=$hardcode_direct_RC
48583
48584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48585 # DIR into the resulting binary and the resulting library dependency is
48586 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48587 # library is relocated.
48588 hardcode_direct_absolute=$hardcode_direct_absolute_RC
48589
48590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48591 # into the resulting binary.
48592 hardcode_minus_L=$hardcode_minus_L_RC
48593
48594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48595 # into the resulting binary.
48596 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48597
48598 # Set to "yes" if building a shared library automatically hardcodes DIR
48599 # into the library and all subsequent libraries and executables linked
48600 # against it.
48601 hardcode_automatic=$hardcode_automatic_RC
48602
48603 # Set to yes if linker adds runtime paths of dependent libraries
48604 # to runtime path list.
48605 inherit_rpath=$inherit_rpath_RC
48606
48607 # Whether libtool must link a program against all its dependency libraries.
48608 link_all_deplibs=$link_all_deplibs_RC
48609
48610 # Set to "yes" if exported symbols are required.
48611 always_export_symbols=$always_export_symbols_RC
48612
48613 # The commands to list exported symbols.
48614 export_symbols_cmds=$lt_export_symbols_cmds_RC
48615
48616 # Symbols that should not be listed in the preloaded symbols.
48617 exclude_expsyms=$lt_exclude_expsyms_RC
48618
48619 # Symbols that must always be exported.
48620 include_expsyms=$lt_include_expsyms_RC
48621
48622 # Commands necessary for linking programs (against libraries) with templates.
48623 prelink_cmds=$lt_prelink_cmds_RC
48624
48625 # Commands necessary for finishing linking programs.
48626 postlink_cmds=$lt_postlink_cmds_RC
48627
48628 # Specify filename containing input files.
48629 file_list_spec=$lt_file_list_spec_RC
48630
48631 # How to hardcode a shared library path into an executable.
48632 hardcode_action=$hardcode_action_RC
48633
48634 # ### END LIBTOOL TAG CONFIG: RC
48635 _LT_EOF
48636
48637  ;;
48638
48639   esac
48640 done # for ac_tag
48641
48642
48643 as_fn_exit 0
48644 _ACEOF
48645 ac_clean_files=$ac_clean_files_save
48646
48647 test $ac_write_fail = 0 ||
48648   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48649
48650
48651 # configure is writing to config.log, and then calls config.status.
48652 # config.status does its own redirection, appending to config.log.
48653 # Unfortunately, on DOS this fails, as config.log is still kept open
48654 # by configure, so config.status won't be able to write to it; its
48655 # output is simply discarded.  So we exec the FD to /dev/null,
48656 # effectively closing config.log, so it can be properly (re)opened and
48657 # appended to by config.status.  When coming back to configure, we
48658 # need to make the FD available again.
48659 if test "$no_create" != yes; then
48660   ac_cs_success=:
48661   ac_config_status_args=
48662   test "$silent" = yes &&
48663     ac_config_status_args="$ac_config_status_args --quiet"
48664   exec 5>/dev/null
48665   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48666   exec 5>>config.log
48667   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48668   # would make configure fail if this is the last instruction.
48669   $ac_cs_success || as_fn_exit 1
48670 fi
48671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48673 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48674 fi
48675
48676
48677
48678     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48679   if test -z "$tmp_cpp"; then
48680     tmp_cpp='cpp'
48681   fi
48682   cat >./tests/configurehelp.pm <<_EOF
48683 # This is a generated file.  Do not edit.
48684
48685 package configurehelp;
48686
48687 use strict;
48688 use warnings;
48689 use Exporter;
48690
48691 use vars qw(
48692     @ISA
48693     @EXPORT_OK
48694     \$Cpreprocessor
48695     );
48696
48697 @ISA = qw(Exporter);
48698
48699 @EXPORT_OK = qw(
48700     \$Cpreprocessor
48701     );
48702
48703 \$Cpreprocessor = '$tmp_cpp';
48704
48705 1;
48706 _EOF
48707
48708
48709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48710
48711   Host setup:       ${host}
48712   Install prefix:   ${prefix}
48713   Compiler:         ${CC}
48714    CFLAGS:          ${CFLAGS}
48715    CPPFLAGS:        ${CPPFLAGS}
48716    LDFLAGS:         ${LDFLAGS}
48717    LIBS:            ${LIBS}
48718
48719   curl version:     ${CURLVERSION}
48720   SSL:              ${curl_ssl_msg}
48721   SSH:              ${curl_ssh_msg}
48722   zlib:             ${curl_zlib_msg}
48723   brotli:           ${curl_brotli_msg}
48724   zstd:             ${curl_zstd_msg}
48725   GSS-API:          ${curl_gss_msg}
48726   GSASL:            ${curl_gsasl_msg}
48727   TLS-SRP:          ${curl_tls_srp_msg}
48728   resolver:         ${curl_res_msg}
48729   IPv6:             ${curl_ipv6_msg}
48730   Unix sockets:     ${curl_unix_sockets_msg}
48731   IDN:              ${curl_idn_msg}
48732   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48733   Built-in manual:  ${curl_manual_msg}
48734   --libcurl option: ${curl_libcurl_msg}
48735   Verbose errors:   ${curl_verbose_msg}
48736   Code coverage:    ${curl_coverage_msg}
48737   SSPI:             ${curl_sspi_msg}
48738   ca cert bundle:   ${ca}${ca_warning}
48739   ca cert path:     ${capath}${capath_warning}
48740   ca fallback:      ${with_ca_fallback}
48741   LDAP:             ${curl_ldap_msg}
48742   LDAPS:            ${curl_ldaps_msg}
48743   RTSP:             ${curl_rtsp_msg}
48744   RTMP:             ${curl_rtmp_msg}
48745   PSL:              ${curl_psl_msg}
48746   Alt-svc:          ${curl_altsvc_msg}
48747   Headers API:      ${curl_headers_msg}
48748   HSTS:             ${curl_hsts_msg}
48749   HTTP1:            ${curl_h1_msg}
48750   HTTP2:            ${curl_h2_msg}
48751   HTTP3:            ${curl_h3_msg}
48752   ECH:              ${curl_ech_msg}
48753   WebSockets:       ${curl_ws_msg}
48754   Protocols:        ${SUPPORT_PROTOCOLS}
48755   Features:         ${SUPPORT_FEATURES}
48756 " >&5
48757 printf "%s\n" "$as_me: Configured to build curl/libcurl:
48758
48759   Host setup:       ${host}
48760   Install prefix:   ${prefix}
48761   Compiler:         ${CC}
48762    CFLAGS:          ${CFLAGS}
48763    CPPFLAGS:        ${CPPFLAGS}
48764    LDFLAGS:         ${LDFLAGS}
48765    LIBS:            ${LIBS}
48766
48767   curl version:     ${CURLVERSION}
48768   SSL:              ${curl_ssl_msg}
48769   SSH:              ${curl_ssh_msg}
48770   zlib:             ${curl_zlib_msg}
48771   brotli:           ${curl_brotli_msg}
48772   zstd:             ${curl_zstd_msg}
48773   GSS-API:          ${curl_gss_msg}
48774   GSASL:            ${curl_gsasl_msg}
48775   TLS-SRP:          ${curl_tls_srp_msg}
48776   resolver:         ${curl_res_msg}
48777   IPv6:             ${curl_ipv6_msg}
48778   Unix sockets:     ${curl_unix_sockets_msg}
48779   IDN:              ${curl_idn_msg}
48780   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48781   Built-in manual:  ${curl_manual_msg}
48782   --libcurl option: ${curl_libcurl_msg}
48783   Verbose errors:   ${curl_verbose_msg}
48784   Code coverage:    ${curl_coverage_msg}
48785   SSPI:             ${curl_sspi_msg}
48786   ca cert bundle:   ${ca}${ca_warning}
48787   ca cert path:     ${capath}${capath_warning}
48788   ca fallback:      ${with_ca_fallback}
48789   LDAP:             ${curl_ldap_msg}
48790   LDAPS:            ${curl_ldaps_msg}
48791   RTSP:             ${curl_rtsp_msg}
48792   RTMP:             ${curl_rtmp_msg}
48793   PSL:              ${curl_psl_msg}
48794   Alt-svc:          ${curl_altsvc_msg}
48795   Headers API:      ${curl_headers_msg}
48796   HSTS:             ${curl_hsts_msg}
48797   HTTP1:            ${curl_h1_msg}
48798   HTTP2:            ${curl_h2_msg}
48799   HTTP3:            ${curl_h3_msg}
48800   ECH:              ${curl_ech_msg}
48801   WebSockets:       ${curl_ws_msg}
48802   Protocols:        ${SUPPORT_PROTOCOLS}
48803   Features:         ${SUPPORT_FEATURES}
48804 " >&6;}
48805 if test -n "$experimental"; then
48806  cat >&2 << _EOF
48807   WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48808 _EOF
48809 fi
48810